/** * Constructs an {@link InputDescriptor} instance. * * @param streamId id of the stream * @param valueSerde serde the values in the messages in the stream * @param systemDescriptor system descriptor this stream descriptor was obtained from */ <T> KinesisInputDescriptor(String streamId, Serde<T> valueSerde, SystemDescriptor systemDescriptor) { super(streamId, KVSerde.of(new NoOpSerde<>(), valueSerde), systemDescriptor, null); }
public IntermediateMessageSerde(Serde userMessageSerde) { this.userMessageSerde = userMessageSerde; this.watermarkSerde = new JsonSerdeV2<>(WatermarkMessage.class); this.eosSerde = new JsonSerdeV2<>(EndOfStreamMessage.class); }
/** * Constructs the serde. * * @param includeLocationInfo * Whether to include location info in the logging event or not. */ @SuppressWarnings("rawtypes") public LoggingEventJsonSerde(boolean includeLocationInfo) { this.includeLocationInfo = includeLocationInfo; this.jsonSerde = new JsonSerde(); }
private LocalTableDescriptor createTableDescriptor() { return new MockLocalTableDescriptor(TABLE_ID, new KVSerde(new StringSerde(), new IntegerSerde())); }
/** * Constructs an {@link OutputDescriptor} instance. Hdfs output has no key. Value type is determined by * writer class (see {@link HdfsSystemDescriptor#withWriterClassName}). * * @param streamId id of the stream * @param systemDescriptor system descriptor this stream descriptor was obtained from */ HdfsOutputDescriptor(String streamId, SystemDescriptor systemDescriptor) { super(streamId, new NoOpSerde(), systemDescriptor); } }
public Serde<T> getSerde(String name, Config config) { return new SerializableSerde<>(); } }
@Override public Serde<MetricsSnapshot> getSerde(String name, Config config) { return new MetricsSnapshotSerdeV2(); } }
public Serde<Double> getSerde(String name, Config config) { return new DoubleSerde(); } }
public IntermediateMessageSerde(Serde userMessageSerde) { this.userMessageSerde = userMessageSerde; this.watermarkSerde = new JsonSerdeV2<>(WatermarkMessage.class); this.eosSerde = new JsonSerdeV2<>(EndOfStreamMessage.class); }
/** * Constructs an {@link InputDescriptor} instance. Hdfs input has no key. Value type is determined by * reader type (see {@link HdfsSystemDescriptor#withReaderType}). * * @param streamId id of the stream * @param systemDescriptor system descriptor this stream descriptor was obtained from */ HdfsInputDescriptor(String streamId, SystemDescriptor systemDescriptor) { super(streamId, new NoOpSerde(), systemDescriptor, null); } }
public CoordinatorStreamSystemProducer(SystemStream systemStream, SystemProducer systemProducer, SystemAdmin systemAdmin) { this.systemStream = systemStream; this.systemProducer = systemProducer; this.systemAdmin = systemAdmin; this.keySerde = new JsonSerde<>(); this.messageSerde = new JsonSerde<>(); }
public JsonSerdeV2<Object> getSerde(String name, Config config) { return new JsonSerdeV2<>(); } }
/** * Constructs the serde. * * @param includeLocationInfo * Whether to include location info in the logging event or not. */ @SuppressWarnings("rawtypes") public LoggingEventJsonSerde(boolean includeLocationInfo) { this.includeLocationInfo = includeLocationInfo; this.jsonSerde = new JsonSerde(); }
public IntermediateMessageSerde(Serde userMessageSerde) { this.userMessageSerde = userMessageSerde; this.watermarkSerde = new JsonSerdeV2<>(WatermarkMessage.class); this.eosSerde = new JsonSerdeV2<>(EndOfStreamMessage.class); }
public CoordinatorStreamSystemProducer(SystemStream systemStream, SystemProducer systemProducer, SystemAdmin systemAdmin) { this.systemStream = systemStream; this.systemProducer = systemProducer; this.systemAdmin = systemAdmin; this.keySerde = new JsonSerde<>(); this.messageSerde = new JsonSerde<>(); }
public IntermediateMessageSerde(Serde userMessageSerde) { this.userMessageSerde = userMessageSerde; this.watermarkSerde = new JsonSerdeV2<>(WatermarkMessage.class); this.eosSerde = new JsonSerdeV2<>(EndOfStreamMessage.class); }
public CoordinatorStreamKeySerde(String type) { this.type = type; this.keySerde = new JsonSerde<>(); }