-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SSL/TLS support for Dagger Kafka Source Add support for kafka producer config linger.ms in kafka sink feat: stencil schema auto refresh and fix typehandler bug fix:[longbow] excluded module google-cloud-bigtable from minimaljar feat: bump version to 0.9.6
- Loading branch information
Showing
766 changed files
with
5,709 additions
and
4,100 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
.github/workflows/core_dependencies.yml → .github/workflows/dependencies-publish.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: core-dependencies | ||
name: dependencies-publish | ||
|
||
on: | ||
workflow_dispatch | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 0 additions & 57 deletions
57
dagger-common/src/main/java/io/odpf/dagger/common/serde/typehandler/TypeHandlerFactory.java
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...r/common/configuration/Configuration.java → ...r/common/configuration/Configuration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 12 additions & 2 deletions
14
...io/odpf/dagger/common/core/Constants.java → ...aystack/dagger/common/core/Constants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...dpf/dagger/common/core/DaggerContext.java → ...ack/dagger/common/core/DaggerContext.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 58 additions & 0 deletions
58
dagger-common/src/main/java/org/raystack/dagger/common/core/FieldDescriptorCache.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
package org.raystack.dagger.common.core; | ||
|
||
import com.google.protobuf.Descriptors; | ||
|
||
import java.io.Serializable; | ||
import java.util.HashMap; | ||
import java.util.List; | ||
import java.util.Map; | ||
|
||
|
||
public class FieldDescriptorCache implements Serializable { | ||
private final Map<String, Integer> fieldDescriptorIndexMap = new HashMap<>(); | ||
private final Map<String, Integer> protoDescriptorArityMap = new HashMap<>(); | ||
|
||
public FieldDescriptorCache(Descriptors.Descriptor descriptor) { | ||
|
||
cacheFieldDescriptorMap(descriptor); | ||
} | ||
|
||
public void cacheFieldDescriptorMap(Descriptors.Descriptor descriptor) { | ||
|
||
if (protoDescriptorArityMap.containsKey(descriptor.getFullName())) { | ||
return; | ||
} | ||
List<Descriptors.FieldDescriptor> descriptorFields = descriptor.getFields(); | ||
protoDescriptorArityMap.putIfAbsent(descriptor.getFullName(), descriptorFields.size()); | ||
|
||
for (Descriptors.FieldDescriptor fieldDescriptor : descriptorFields) { | ||
fieldDescriptorIndexMap.putIfAbsent(fieldDescriptor.getFullName(), fieldDescriptor.getIndex()); | ||
} | ||
|
||
for (Descriptors.FieldDescriptor fieldDescriptor : descriptorFields) { | ||
if (fieldDescriptor.getType().toString().equals("MESSAGE")) { | ||
cacheFieldDescriptorMap(fieldDescriptor.getMessageType()); | ||
|
||
} | ||
} | ||
} | ||
|
||
public int getOriginalFieldIndex(Descriptors.FieldDescriptor fieldDescriptor) { | ||
if (!fieldDescriptorIndexMap.containsKey(fieldDescriptor.getFullName())) { | ||
throw new IllegalArgumentException("The Field Descriptor " + fieldDescriptor.getFullName() + " was not found in the cache"); | ||
} | ||
return fieldDescriptorIndexMap.get(fieldDescriptor.getFullName()); | ||
} | ||
|
||
public boolean containsField(String fieldName) { | ||
|
||
return fieldDescriptorIndexMap.containsKey(fieldName); | ||
} | ||
|
||
public int getOriginalFieldCount(Descriptors.Descriptor descriptor) { | ||
if (!protoDescriptorArityMap.containsKey(descriptor.getFullName())) { | ||
throw new IllegalArgumentException("The Proto Descriptor " + descriptor.getFullName() + " was not found in the cache"); | ||
} | ||
return protoDescriptorArityMap.get(descriptor.getFullName()); | ||
} | ||
} |
Oops, something went wrong.