target
stringlengths
20
113k
src_fm
stringlengths
11
86.3k
src_fm_fc
stringlengths
21
86.4k
src_fm_fc_co
stringlengths
30
86.4k
src_fm_fc_ms
stringlengths
42
86.8k
src_fm_fc_ms_ff
stringlengths
43
86.8k
@Test(expected = NullPointerException.class) public void shouldNotAllowNullTableOnJoinWithGlobalTable() throws Exception { testStream.join((GlobalKTable) null, MockKeyValueMapper.<String, String>SelectValueMapper(), MockValueJoiner.TOSTRING_JOINER); }
@Override public <V1, R> KStream<K, R> join( final KStream<K, V1> other, final ValueJoiner<? super V, ? super V1, ? extends R> joiner, final JoinWindows windows, final Serde<K> keySerde, final Serde<V> thisValueSerde, final Serde<V1> otherValueSerde) { return doJoin(other, joiner, windows, keySerde, thisValueSerde, oth...
KStreamImpl extends AbstractStream<K> implements KStream<K, V> { @Override public <V1, R> KStream<K, R> join( final KStream<K, V1> other, final ValueJoiner<? super V, ? super V1, ? extends R> joiner, final JoinWindows windows, final Serde<K> keySerde, final Serde<V> thisValueSerde, final Serde<V1> otherValueSerde) { re...
KStreamImpl extends AbstractStream<K> implements KStream<K, V> { @Override public <V1, R> KStream<K, R> join( final KStream<K, V1> other, final ValueJoiner<? super V, ? super V1, ? extends R> joiner, final JoinWindows windows, final Serde<K> keySerde, final Serde<V> thisValueSerde, final Serde<V1> otherValueSerde) { re...
KStreamImpl extends AbstractStream<K> implements KStream<K, V> { @Override public <V1, R> KStream<K, R> join( final KStream<K, V1> other, final ValueJoiner<? super V, ? super V1, ? extends R> joiner, final JoinWindows windows, final Serde<K> keySerde, final Serde<V> thisValueSerde, final Serde<V1> otherValueSerde) { re...
KStreamImpl extends AbstractStream<K> implements KStream<K, V> { @Override public <V1, R> KStream<K, R> join( final KStream<K, V1> other, final ValueJoiner<? super V, ? super V1, ? extends R> joiner, final JoinWindows windows, final Serde<K> keySerde, final Serde<V> thisValueSerde, final Serde<V1> otherValueSerde) { re...
@Test(expected = NullPointerException.class) public void shouldNotAllowNullMapperOnJoinWithGlobalTable() throws Exception { testStream.join(builder.globalTable(Serdes.String(), Serdes.String(), null, "global", "global"), null, MockValueJoiner.TOSTRING_JOINER); }
@Override public <V1, R> KStream<K, R> join( final KStream<K, V1> other, final ValueJoiner<? super V, ? super V1, ? extends R> joiner, final JoinWindows windows, final Serde<K> keySerde, final Serde<V> thisValueSerde, final Serde<V1> otherValueSerde) { return doJoin(other, joiner, windows, keySerde, thisValueSerde, oth...
KStreamImpl extends AbstractStream<K> implements KStream<K, V> { @Override public <V1, R> KStream<K, R> join( final KStream<K, V1> other, final ValueJoiner<? super V, ? super V1, ? extends R> joiner, final JoinWindows windows, final Serde<K> keySerde, final Serde<V> thisValueSerde, final Serde<V1> otherValueSerde) { re...
KStreamImpl extends AbstractStream<K> implements KStream<K, V> { @Override public <V1, R> KStream<K, R> join( final KStream<K, V1> other, final ValueJoiner<? super V, ? super V1, ? extends R> joiner, final JoinWindows windows, final Serde<K> keySerde, final Serde<V> thisValueSerde, final Serde<V1> otherValueSerde) { re...
KStreamImpl extends AbstractStream<K> implements KStream<K, V> { @Override public <V1, R> KStream<K, R> join( final KStream<K, V1> other, final ValueJoiner<? super V, ? super V1, ? extends R> joiner, final JoinWindows windows, final Serde<K> keySerde, final Serde<V> thisValueSerde, final Serde<V1> otherValueSerde) { re...
KStreamImpl extends AbstractStream<K> implements KStream<K, V> { @Override public <V1, R> KStream<K, R> join( final KStream<K, V1> other, final ValueJoiner<? super V, ? super V1, ? extends R> joiner, final JoinWindows windows, final Serde<K> keySerde, final Serde<V> thisValueSerde, final Serde<V1> otherValueSerde) { re...
@Test(expected = NullPointerException.class) public void shouldNotAllowNullJoinerOnJoinWithGlobalTable() throws Exception { testStream.join(builder.globalTable(Serdes.String(), Serdes.String(), null, "global", "global"), MockKeyValueMapper.<String, String>SelectValueMapper(), null); }
@Override public <V1, R> KStream<K, R> join( final KStream<K, V1> other, final ValueJoiner<? super V, ? super V1, ? extends R> joiner, final JoinWindows windows, final Serde<K> keySerde, final Serde<V> thisValueSerde, final Serde<V1> otherValueSerde) { return doJoin(other, joiner, windows, keySerde, thisValueSerde, oth...
KStreamImpl extends AbstractStream<K> implements KStream<K, V> { @Override public <V1, R> KStream<K, R> join( final KStream<K, V1> other, final ValueJoiner<? super V, ? super V1, ? extends R> joiner, final JoinWindows windows, final Serde<K> keySerde, final Serde<V> thisValueSerde, final Serde<V1> otherValueSerde) { re...
KStreamImpl extends AbstractStream<K> implements KStream<K, V> { @Override public <V1, R> KStream<K, R> join( final KStream<K, V1> other, final ValueJoiner<? super V, ? super V1, ? extends R> joiner, final JoinWindows windows, final Serde<K> keySerde, final Serde<V> thisValueSerde, final Serde<V1> otherValueSerde) { re...
KStreamImpl extends AbstractStream<K> implements KStream<K, V> { @Override public <V1, R> KStream<K, R> join( final KStream<K, V1> other, final ValueJoiner<? super V, ? super V1, ? extends R> joiner, final JoinWindows windows, final Serde<K> keySerde, final Serde<V> thisValueSerde, final Serde<V1> otherValueSerde) { re...
KStreamImpl extends AbstractStream<K> implements KStream<K, V> { @Override public <V1, R> KStream<K, R> join( final KStream<K, V1> other, final ValueJoiner<? super V, ? super V1, ? extends R> joiner, final JoinWindows windows, final Serde<K> keySerde, final Serde<V> thisValueSerde, final Serde<V1> otherValueSerde) { re...
@Test(expected = ConfigException.class) public void testConfigInvalidTargetType() { final Cast<SourceRecord> xform = new Cast.Key<>(); xform.configure(Collections.singletonMap(Cast.SPEC_CONFIG, "foo:array")); }
@Override public void configure(Map<String, ?> props) { final SimpleConfig config = new SimpleConfig(CONFIG_DEF, props); casts = parseFieldTypes(config.getList(SPEC_CONFIG)); wholeValueCastType = casts.get(WHOLE_VALUE_CAST); schemaUpdateCache = new SynchronizedCache<>(new LRUCache<Schema, Schema>(16)); }
Cast implements Transformation<R> { @Override public void configure(Map<String, ?> props) { final SimpleConfig config = new SimpleConfig(CONFIG_DEF, props); casts = parseFieldTypes(config.getList(SPEC_CONFIG)); wholeValueCastType = casts.get(WHOLE_VALUE_CAST); schemaUpdateCache = new SynchronizedCache<>(new LRUCache<Sc...
Cast implements Transformation<R> { @Override public void configure(Map<String, ?> props) { final SimpleConfig config = new SimpleConfig(CONFIG_DEF, props); casts = parseFieldTypes(config.getList(SPEC_CONFIG)); wholeValueCastType = casts.get(WHOLE_VALUE_CAST); schemaUpdateCache = new SynchronizedCache<>(new LRUCache<Sc...
Cast implements Transformation<R> { @Override public void configure(Map<String, ?> props) { final SimpleConfig config = new SimpleConfig(CONFIG_DEF, props); casts = parseFieldTypes(config.getList(SPEC_CONFIG)); wholeValueCastType = casts.get(WHOLE_VALUE_CAST); schemaUpdateCache = new SynchronizedCache<>(new LRUCache<Sc...
Cast implements Transformation<R> { @Override public void configure(Map<String, ?> props) { final SimpleConfig config = new SimpleConfig(CONFIG_DEF, props); casts = parseFieldTypes(config.getList(SPEC_CONFIG)); wholeValueCastType = casts.get(WHOLE_VALUE_CAST); schemaUpdateCache = new SynchronizedCache<>(new LRUCache<Sc...
@Test(expected = NullPointerException.class) public void shouldNotAllowNullTableOnJLeftJoinWithGlobalTable() throws Exception { testStream.leftJoin((GlobalKTable) null, MockKeyValueMapper.<String, String>SelectValueMapper(), MockValueJoiner.TOSTRING_JOINER); }
@Override public <V1, R> KStream<K, R> leftJoin( final KStream<K, V1> other, final ValueJoiner<? super V, ? super V1, ? extends R> joiner, final JoinWindows windows, final Serde<K> keySerde, final Serde<V> thisValSerde, final Serde<V1> otherValueSerde) { return doJoin(other, joiner, windows, keySerde, thisValSerde, oth...
KStreamImpl extends AbstractStream<K> implements KStream<K, V> { @Override public <V1, R> KStream<K, R> leftJoin( final KStream<K, V1> other, final ValueJoiner<? super V, ? super V1, ? extends R> joiner, final JoinWindows windows, final Serde<K> keySerde, final Serde<V> thisValSerde, final Serde<V1> otherValueSerde) { ...
KStreamImpl extends AbstractStream<K> implements KStream<K, V> { @Override public <V1, R> KStream<K, R> leftJoin( final KStream<K, V1> other, final ValueJoiner<? super V, ? super V1, ? extends R> joiner, final JoinWindows windows, final Serde<K> keySerde, final Serde<V> thisValSerde, final Serde<V1> otherValueSerde) { ...
KStreamImpl extends AbstractStream<K> implements KStream<K, V> { @Override public <V1, R> KStream<K, R> leftJoin( final KStream<K, V1> other, final ValueJoiner<? super V, ? super V1, ? extends R> joiner, final JoinWindows windows, final Serde<K> keySerde, final Serde<V> thisValSerde, final Serde<V1> otherValueSerde) { ...
KStreamImpl extends AbstractStream<K> implements KStream<K, V> { @Override public <V1, R> KStream<K, R> leftJoin( final KStream<K, V1> other, final ValueJoiner<? super V, ? super V1, ? extends R> joiner, final JoinWindows windows, final Serde<K> keySerde, final Serde<V> thisValSerde, final Serde<V1> otherValueSerde) { ...
@Test(expected = NullPointerException.class) public void shouldNotAllowNullMapperOnLeftJoinWithGlobalTable() throws Exception { testStream.leftJoin(builder.globalTable(Serdes.String(), Serdes.String(), null, "global", "global"), null, MockValueJoiner.TOSTRING_JOINER); }
@Override public <V1, R> KStream<K, R> leftJoin( final KStream<K, V1> other, final ValueJoiner<? super V, ? super V1, ? extends R> joiner, final JoinWindows windows, final Serde<K> keySerde, final Serde<V> thisValSerde, final Serde<V1> otherValueSerde) { return doJoin(other, joiner, windows, keySerde, thisValSerde, oth...
KStreamImpl extends AbstractStream<K> implements KStream<K, V> { @Override public <V1, R> KStream<K, R> leftJoin( final KStream<K, V1> other, final ValueJoiner<? super V, ? super V1, ? extends R> joiner, final JoinWindows windows, final Serde<K> keySerde, final Serde<V> thisValSerde, final Serde<V1> otherValueSerde) { ...
KStreamImpl extends AbstractStream<K> implements KStream<K, V> { @Override public <V1, R> KStream<K, R> leftJoin( final KStream<K, V1> other, final ValueJoiner<? super V, ? super V1, ? extends R> joiner, final JoinWindows windows, final Serde<K> keySerde, final Serde<V> thisValSerde, final Serde<V1> otherValueSerde) { ...
KStreamImpl extends AbstractStream<K> implements KStream<K, V> { @Override public <V1, R> KStream<K, R> leftJoin( final KStream<K, V1> other, final ValueJoiner<? super V, ? super V1, ? extends R> joiner, final JoinWindows windows, final Serde<K> keySerde, final Serde<V> thisValSerde, final Serde<V1> otherValueSerde) { ...
KStreamImpl extends AbstractStream<K> implements KStream<K, V> { @Override public <V1, R> KStream<K, R> leftJoin( final KStream<K, V1> other, final ValueJoiner<? super V, ? super V1, ? extends R> joiner, final JoinWindows windows, final Serde<K> keySerde, final Serde<V> thisValSerde, final Serde<V1> otherValueSerde) { ...
@Test(expected = NullPointerException.class) public void shouldNotAllowNullJoinerOnLeftJoinWithGlobalTable() throws Exception { testStream.leftJoin(builder.globalTable(Serdes.String(), Serdes.String(), null, "global", "global"), MockKeyValueMapper.<String, String>SelectValueMapper(), null); }
@Override public <V1, R> KStream<K, R> leftJoin( final KStream<K, V1> other, final ValueJoiner<? super V, ? super V1, ? extends R> joiner, final JoinWindows windows, final Serde<K> keySerde, final Serde<V> thisValSerde, final Serde<V1> otherValueSerde) { return doJoin(other, joiner, windows, keySerde, thisValSerde, oth...
KStreamImpl extends AbstractStream<K> implements KStream<K, V> { @Override public <V1, R> KStream<K, R> leftJoin( final KStream<K, V1> other, final ValueJoiner<? super V, ? super V1, ? extends R> joiner, final JoinWindows windows, final Serde<K> keySerde, final Serde<V> thisValSerde, final Serde<V1> otherValueSerde) { ...
KStreamImpl extends AbstractStream<K> implements KStream<K, V> { @Override public <V1, R> KStream<K, R> leftJoin( final KStream<K, V1> other, final ValueJoiner<? super V, ? super V1, ? extends R> joiner, final JoinWindows windows, final Serde<K> keySerde, final Serde<V> thisValSerde, final Serde<V1> otherValueSerde) { ...
KStreamImpl extends AbstractStream<K> implements KStream<K, V> { @Override public <V1, R> KStream<K, R> leftJoin( final KStream<K, V1> other, final ValueJoiner<? super V, ? super V1, ? extends R> joiner, final JoinWindows windows, final Serde<K> keySerde, final Serde<V> thisValSerde, final Serde<V1> otherValueSerde) { ...
KStreamImpl extends AbstractStream<K> implements KStream<K, V> { @Override public <V1, R> KStream<K, R> leftJoin( final KStream<K, V1> other, final ValueJoiner<? super V, ? super V1, ? extends R> joiner, final JoinWindows windows, final Serde<K> keySerde, final Serde<V> thisValSerde, final Serde<V1> otherValueSerde) { ...
@SuppressWarnings("unchecked") @Test public void testKStreamBranch() { KStreamBuilder builder = new KStreamBuilder(); builder.setApplicationId("X"); Predicate<Integer, String> isEven = new Predicate<Integer, String>() { @Override public boolean test(Integer key, String value) { return (key % 2) == 0; } }; Predicate<Int...
@SuppressWarnings("unchecked") public KStreamBranch(Predicate<K, V> ... predicates) { this.predicates = predicates; }
KStreamBranch implements ProcessorSupplier<K, V> { @SuppressWarnings("unchecked") public KStreamBranch(Predicate<K, V> ... predicates) { this.predicates = predicates; } }
KStreamBranch implements ProcessorSupplier<K, V> { @SuppressWarnings("unchecked") public KStreamBranch(Predicate<K, V> ... predicates) { this.predicates = predicates; } @SuppressWarnings("unchecked") KStreamBranch(Predicate<K, V> ... predicates); }
KStreamBranch implements ProcessorSupplier<K, V> { @SuppressWarnings("unchecked") public KStreamBranch(Predicate<K, V> ... predicates) { this.predicates = predicates; } @SuppressWarnings("unchecked") KStreamBranch(Predicate<K, V> ... predicates); @Override Processor<K, V> get(); }
KStreamBranch implements ProcessorSupplier<K, V> { @SuppressWarnings("unchecked") public KStreamBranch(Predicate<K, V> ... predicates) { this.predicates = predicates; } @SuppressWarnings("unchecked") KStreamBranch(Predicate<K, V> ... predicates); @Override Processor<K, V> get(); }
@Test public void shouldAllowNullStoreNameOnCount() { groupedTable.count((String) null); }
@Override public KTable<K, Long> count(final String queryableStoreName) { determineIsQueryable(queryableStoreName); return count(keyValueStore(keySerde, Serdes.Long(), getOrCreateName(queryableStoreName, AGGREGATE_NAME))); }
KGroupedTableImpl extends AbstractStream<K> implements KGroupedTable<K, V> { @Override public KTable<K, Long> count(final String queryableStoreName) { determineIsQueryable(queryableStoreName); return count(keyValueStore(keySerde, Serdes.Long(), getOrCreateName(queryableStoreName, AGGREGATE_NAME))); } }
KGroupedTableImpl extends AbstractStream<K> implements KGroupedTable<K, V> { @Override public KTable<K, Long> count(final String queryableStoreName) { determineIsQueryable(queryableStoreName); return count(keyValueStore(keySerde, Serdes.Long(), getOrCreateName(queryableStoreName, AGGREGATE_NAME))); } KGroupedTableImpl(...
KGroupedTableImpl extends AbstractStream<K> implements KGroupedTable<K, V> { @Override public KTable<K, Long> count(final String queryableStoreName) { determineIsQueryable(queryableStoreName); return count(keyValueStore(keySerde, Serdes.Long(), getOrCreateName(queryableStoreName, AGGREGATE_NAME))); } KGroupedTableImpl(...
KGroupedTableImpl extends AbstractStream<K> implements KGroupedTable<K, V> { @Override public KTable<K, Long> count(final String queryableStoreName) { determineIsQueryable(queryableStoreName); return count(keyValueStore(keySerde, Serdes.Long(), getOrCreateName(queryableStoreName, AGGREGATE_NAME))); } KGroupedTableImpl(...
@Test public void shouldAllowNullStoreNameOnAggregate() throws Exception { groupedTable.aggregate(MockInitializer.STRING_INIT, MockAggregator.TOSTRING_ADDER, MockAggregator.TOSTRING_REMOVER, (String) null); }
@Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> adder, final Aggregator<? super K, ? super V, T> subtractor, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return aggregate(initializer, ad...
KGroupedTableImpl extends AbstractStream<K> implements KGroupedTable<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> adder, final Aggregator<? super K, ? super V, T> subtractor, final Serde<T> aggValueSerde, final String queryableStoreName)...
KGroupedTableImpl extends AbstractStream<K> implements KGroupedTable<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> adder, final Aggregator<? super K, ? super V, T> subtractor, final Serde<T> aggValueSerde, final String queryableStoreName)...
KGroupedTableImpl extends AbstractStream<K> implements KGroupedTable<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> adder, final Aggregator<? super K, ? super V, T> subtractor, final Serde<T> aggValueSerde, final String queryableStoreName)...
KGroupedTableImpl extends AbstractStream<K> implements KGroupedTable<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> adder, final Aggregator<? super K, ? super V, T> subtractor, final Serde<T> aggValueSerde, final String queryableStoreName)...
@Test(expected = InvalidTopicException.class) public void shouldNotAllowInvalidStoreNameOnAggregate() throws Exception { groupedTable.aggregate(MockInitializer.STRING_INIT, MockAggregator.TOSTRING_ADDER, MockAggregator.TOSTRING_REMOVER, INVALID_STORE_NAME); }
@Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> adder, final Aggregator<? super K, ? super V, T> subtractor, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return aggregate(initializer, ad...
KGroupedTableImpl extends AbstractStream<K> implements KGroupedTable<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> adder, final Aggregator<? super K, ? super V, T> subtractor, final Serde<T> aggValueSerde, final String queryableStoreName)...
KGroupedTableImpl extends AbstractStream<K> implements KGroupedTable<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> adder, final Aggregator<? super K, ? super V, T> subtractor, final Serde<T> aggValueSerde, final String queryableStoreName)...
KGroupedTableImpl extends AbstractStream<K> implements KGroupedTable<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> adder, final Aggregator<? super K, ? super V, T> subtractor, final Serde<T> aggValueSerde, final String queryableStoreName)...
KGroupedTableImpl extends AbstractStream<K> implements KGroupedTable<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> adder, final Aggregator<? super K, ? super V, T> subtractor, final Serde<T> aggValueSerde, final String queryableStoreName)...
@Test(expected = NullPointerException.class) public void shouldNotAllowNullInitializerOnAggregate() throws Exception { groupedTable.aggregate(null, MockAggregator.TOSTRING_ADDER, MockAggregator.TOSTRING_REMOVER, "store"); }
@Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> adder, final Aggregator<? super K, ? super V, T> subtractor, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return aggregate(initializer, ad...
KGroupedTableImpl extends AbstractStream<K> implements KGroupedTable<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> adder, final Aggregator<? super K, ? super V, T> subtractor, final Serde<T> aggValueSerde, final String queryableStoreName)...
KGroupedTableImpl extends AbstractStream<K> implements KGroupedTable<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> adder, final Aggregator<? super K, ? super V, T> subtractor, final Serde<T> aggValueSerde, final String queryableStoreName)...
KGroupedTableImpl extends AbstractStream<K> implements KGroupedTable<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> adder, final Aggregator<? super K, ? super V, T> subtractor, final Serde<T> aggValueSerde, final String queryableStoreName)...
KGroupedTableImpl extends AbstractStream<K> implements KGroupedTable<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> adder, final Aggregator<? super K, ? super V, T> subtractor, final Serde<T> aggValueSerde, final String queryableStoreName)...
@Test(expected = ConfigException.class) public void testConfigInvalidMap() { final Cast<SourceRecord> xform = new Cast.Key<>(); xform.configure(Collections.singletonMap(Cast.SPEC_CONFIG, "foo:int8:extra")); }
@Override public void configure(Map<String, ?> props) { final SimpleConfig config = new SimpleConfig(CONFIG_DEF, props); casts = parseFieldTypes(config.getList(SPEC_CONFIG)); wholeValueCastType = casts.get(WHOLE_VALUE_CAST); schemaUpdateCache = new SynchronizedCache<>(new LRUCache<Schema, Schema>(16)); }
Cast implements Transformation<R> { @Override public void configure(Map<String, ?> props) { final SimpleConfig config = new SimpleConfig(CONFIG_DEF, props); casts = parseFieldTypes(config.getList(SPEC_CONFIG)); wholeValueCastType = casts.get(WHOLE_VALUE_CAST); schemaUpdateCache = new SynchronizedCache<>(new LRUCache<Sc...
Cast implements Transformation<R> { @Override public void configure(Map<String, ?> props) { final SimpleConfig config = new SimpleConfig(CONFIG_DEF, props); casts = parseFieldTypes(config.getList(SPEC_CONFIG)); wholeValueCastType = casts.get(WHOLE_VALUE_CAST); schemaUpdateCache = new SynchronizedCache<>(new LRUCache<Sc...
Cast implements Transformation<R> { @Override public void configure(Map<String, ?> props) { final SimpleConfig config = new SimpleConfig(CONFIG_DEF, props); casts = parseFieldTypes(config.getList(SPEC_CONFIG)); wholeValueCastType = casts.get(WHOLE_VALUE_CAST); schemaUpdateCache = new SynchronizedCache<>(new LRUCache<Sc...
Cast implements Transformation<R> { @Override public void configure(Map<String, ?> props) { final SimpleConfig config = new SimpleConfig(CONFIG_DEF, props); casts = parseFieldTypes(config.getList(SPEC_CONFIG)); wholeValueCastType = casts.get(WHOLE_VALUE_CAST); schemaUpdateCache = new SynchronizedCache<>(new LRUCache<Sc...
@Test public void doubleToConnect() { assertEquals(new SchemaAndValue(Schema.FLOAT64_SCHEMA, 12.34), converter.toConnectData(TOPIC, "{ \"schema\": { \"type\": \"double\" }, \"payload\": 12.34 }".getBytes())); }
@Override public SchemaAndValue toConnectData(String topic, byte[] value) { JsonNode jsonValue; try { jsonValue = deserializer.deserialize(topic, value); } catch (SerializationException e) { throw new DataException("Converting byte[] to Kafka Connect data failed due to serialization error: ", e); } if (enableSchemas &&...
JsonConverter implements Converter { @Override public SchemaAndValue toConnectData(String topic, byte[] value) { JsonNode jsonValue; try { jsonValue = deserializer.deserialize(topic, value); } catch (SerializationException e) { throw new DataException("Converting byte[] to Kafka Connect data failed due to serialization...
JsonConverter implements Converter { @Override public SchemaAndValue toConnectData(String topic, byte[] value) { JsonNode jsonValue; try { jsonValue = deserializer.deserialize(topic, value); } catch (SerializationException e) { throw new DataException("Converting byte[] to Kafka Connect data failed due to serialization...
JsonConverter implements Converter { @Override public SchemaAndValue toConnectData(String topic, byte[] value) { JsonNode jsonValue; try { jsonValue = deserializer.deserialize(topic, value); } catch (SerializationException e) { throw new DataException("Converting byte[] to Kafka Connect data failed due to serialization...
JsonConverter implements Converter { @Override public SchemaAndValue toConnectData(String topic, byte[] value) { JsonNode jsonValue; try { jsonValue = deserializer.deserialize(topic, value); } catch (SerializationException e) { throw new DataException("Converting byte[] to Kafka Connect data failed due to serialization...
@Test(expected = NullPointerException.class) public void shouldNotAllowNullAdderOnAggregate() throws Exception { groupedTable.aggregate(MockInitializer.STRING_INIT, null, MockAggregator.TOSTRING_REMOVER, "store"); }
@Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> adder, final Aggregator<? super K, ? super V, T> subtractor, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return aggregate(initializer, ad...
KGroupedTableImpl extends AbstractStream<K> implements KGroupedTable<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> adder, final Aggregator<? super K, ? super V, T> subtractor, final Serde<T> aggValueSerde, final String queryableStoreName)...
KGroupedTableImpl extends AbstractStream<K> implements KGroupedTable<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> adder, final Aggregator<? super K, ? super V, T> subtractor, final Serde<T> aggValueSerde, final String queryableStoreName)...
KGroupedTableImpl extends AbstractStream<K> implements KGroupedTable<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> adder, final Aggregator<? super K, ? super V, T> subtractor, final Serde<T> aggValueSerde, final String queryableStoreName)...
KGroupedTableImpl extends AbstractStream<K> implements KGroupedTable<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> adder, final Aggregator<? super K, ? super V, T> subtractor, final Serde<T> aggValueSerde, final String queryableStoreName)...
@Test(expected = NullPointerException.class) public void shouldNotAllowNullSubtractorOnAggregate() throws Exception { groupedTable.aggregate(MockInitializer.STRING_INIT, MockAggregator.TOSTRING_ADDER, null, "store"); }
@Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> adder, final Aggregator<? super K, ? super V, T> subtractor, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return aggregate(initializer, ad...
KGroupedTableImpl extends AbstractStream<K> implements KGroupedTable<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> adder, final Aggregator<? super K, ? super V, T> subtractor, final Serde<T> aggValueSerde, final String queryableStoreName)...
KGroupedTableImpl extends AbstractStream<K> implements KGroupedTable<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> adder, final Aggregator<? super K, ? super V, T> subtractor, final Serde<T> aggValueSerde, final String queryableStoreName)...
KGroupedTableImpl extends AbstractStream<K> implements KGroupedTable<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> adder, final Aggregator<? super K, ? super V, T> subtractor, final Serde<T> aggValueSerde, final String queryableStoreName)...
KGroupedTableImpl extends AbstractStream<K> implements KGroupedTable<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> adder, final Aggregator<? super K, ? super V, T> subtractor, final Serde<T> aggValueSerde, final String queryableStoreName)...
@Test(expected = NullPointerException.class) public void shouldNotAllowNullAdderOnReduce() throws Exception { groupedTable.reduce(null, MockReducer.STRING_REMOVER, "store"); }
@Override public KTable<K, V> reduce(final Reducer<V> adder, final Reducer<V> subtractor, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(adder, subtractor, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_NAME))); }
KGroupedTableImpl extends AbstractStream<K> implements KGroupedTable<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> adder, final Reducer<V> subtractor, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(adder, subtractor, keyValueStore(keySerde, valSerde, getOrCrea...
KGroupedTableImpl extends AbstractStream<K> implements KGroupedTable<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> adder, final Reducer<V> subtractor, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(adder, subtractor, keyValueStore(keySerde, valSerde, getOrCrea...
KGroupedTableImpl extends AbstractStream<K> implements KGroupedTable<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> adder, final Reducer<V> subtractor, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(adder, subtractor, keyValueStore(keySerde, valSerde, getOrCrea...
KGroupedTableImpl extends AbstractStream<K> implements KGroupedTable<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> adder, final Reducer<V> subtractor, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(adder, subtractor, keyValueStore(keySerde, valSerde, getOrCrea...
@Test(expected = NullPointerException.class) public void shouldNotAllowNullSubtractorOnReduce() throws Exception { groupedTable.reduce(MockReducer.STRING_ADDER, null, "store"); }
@Override public KTable<K, V> reduce(final Reducer<V> adder, final Reducer<V> subtractor, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(adder, subtractor, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_NAME))); }
KGroupedTableImpl extends AbstractStream<K> implements KGroupedTable<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> adder, final Reducer<V> subtractor, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(adder, subtractor, keyValueStore(keySerde, valSerde, getOrCrea...
KGroupedTableImpl extends AbstractStream<K> implements KGroupedTable<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> adder, final Reducer<V> subtractor, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(adder, subtractor, keyValueStore(keySerde, valSerde, getOrCrea...
KGroupedTableImpl extends AbstractStream<K> implements KGroupedTable<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> adder, final Reducer<V> subtractor, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(adder, subtractor, keyValueStore(keySerde, valSerde, getOrCrea...
KGroupedTableImpl extends AbstractStream<K> implements KGroupedTable<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> adder, final Reducer<V> subtractor, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(adder, subtractor, keyValueStore(keySerde, valSerde, getOrCrea...
@Test public void shouldAllowNullStoreNameOnReduce() throws Exception { groupedTable.reduce(MockReducer.STRING_ADDER, MockReducer.STRING_REMOVER, (String) null); }
@Override public KTable<K, V> reduce(final Reducer<V> adder, final Reducer<V> subtractor, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(adder, subtractor, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_NAME))); }
KGroupedTableImpl extends AbstractStream<K> implements KGroupedTable<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> adder, final Reducer<V> subtractor, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(adder, subtractor, keyValueStore(keySerde, valSerde, getOrCrea...
KGroupedTableImpl extends AbstractStream<K> implements KGroupedTable<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> adder, final Reducer<V> subtractor, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(adder, subtractor, keyValueStore(keySerde, valSerde, getOrCrea...
KGroupedTableImpl extends AbstractStream<K> implements KGroupedTable<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> adder, final Reducer<V> subtractor, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(adder, subtractor, keyValueStore(keySerde, valSerde, getOrCrea...
KGroupedTableImpl extends AbstractStream<K> implements KGroupedTable<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> adder, final Reducer<V> subtractor, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(adder, subtractor, keyValueStore(keySerde, valSerde, getOrCrea...
@Test(expected = InvalidTopicException.class) public void shouldNotAllowInvalidStoreNameOnReduce() throws Exception { groupedTable.reduce(MockReducer.STRING_ADDER, MockReducer.STRING_REMOVER, INVALID_STORE_NAME); }
@Override public KTable<K, V> reduce(final Reducer<V> adder, final Reducer<V> subtractor, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(adder, subtractor, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_NAME))); }
KGroupedTableImpl extends AbstractStream<K> implements KGroupedTable<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> adder, final Reducer<V> subtractor, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(adder, subtractor, keyValueStore(keySerde, valSerde, getOrCrea...
KGroupedTableImpl extends AbstractStream<K> implements KGroupedTable<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> adder, final Reducer<V> subtractor, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(adder, subtractor, keyValueStore(keySerde, valSerde, getOrCrea...
KGroupedTableImpl extends AbstractStream<K> implements KGroupedTable<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> adder, final Reducer<V> subtractor, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(adder, subtractor, keyValueStore(keySerde, valSerde, getOrCrea...
KGroupedTableImpl extends AbstractStream<K> implements KGroupedTable<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> adder, final Reducer<V> subtractor, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(adder, subtractor, keyValueStore(keySerde, valSerde, getOrCrea...
@Test(expected = NullPointerException.class) public void shouldNotAllowNullStoreSupplierOnReduce() throws Exception { groupedTable.reduce(MockReducer.STRING_ADDER, MockReducer.STRING_REMOVER, (StateStoreSupplier<KeyValueStore>) null); }
@Override public KTable<K, V> reduce(final Reducer<V> adder, final Reducer<V> subtractor, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(adder, subtractor, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_NAME))); }
KGroupedTableImpl extends AbstractStream<K> implements KGroupedTable<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> adder, final Reducer<V> subtractor, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(adder, subtractor, keyValueStore(keySerde, valSerde, getOrCrea...
KGroupedTableImpl extends AbstractStream<K> implements KGroupedTable<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> adder, final Reducer<V> subtractor, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(adder, subtractor, keyValueStore(keySerde, valSerde, getOrCrea...
KGroupedTableImpl extends AbstractStream<K> implements KGroupedTable<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> adder, final Reducer<V> subtractor, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(adder, subtractor, keyValueStore(keySerde, valSerde, getOrCrea...
KGroupedTableImpl extends AbstractStream<K> implements KGroupedTable<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> adder, final Reducer<V> subtractor, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(adder, subtractor, keyValueStore(keySerde, valSerde, getOrCrea...
@Test public void shouldReduce() throws Exception { final String topic = "input"; final KeyValueMapper<String, Number, KeyValue<String, Integer>> intProjection = new KeyValueMapper<String, Number, KeyValue<String, Integer>>() { @Override public KeyValue<String, Integer> apply(String key, Number value) { return KeyValue...
@Override public KTable<K, V> reduce(final Reducer<V> adder, final Reducer<V> subtractor, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(adder, subtractor, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_NAME))); }
KGroupedTableImpl extends AbstractStream<K> implements KGroupedTable<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> adder, final Reducer<V> subtractor, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(adder, subtractor, keyValueStore(keySerde, valSerde, getOrCrea...
KGroupedTableImpl extends AbstractStream<K> implements KGroupedTable<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> adder, final Reducer<V> subtractor, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(adder, subtractor, keyValueStore(keySerde, valSerde, getOrCrea...
KGroupedTableImpl extends AbstractStream<K> implements KGroupedTable<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> adder, final Reducer<V> subtractor, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(adder, subtractor, keyValueStore(keySerde, valSerde, getOrCrea...
KGroupedTableImpl extends AbstractStream<K> implements KGroupedTable<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> adder, final Reducer<V> subtractor, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(adder, subtractor, keyValueStore(keySerde, valSerde, getOrCrea...
@Test public void shouldReduceWithInternalStoreName() throws Exception { final String topic = "input"; final KeyValueMapper<String, Number, KeyValue<String, Integer>> intProjection = new KeyValueMapper<String, Number, KeyValue<String, Integer>>() { @Override public KeyValue<String, Integer> apply(String key, Number val...
@Override public KTable<K, V> reduce(final Reducer<V> adder, final Reducer<V> subtractor, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(adder, subtractor, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_NAME))); }
KGroupedTableImpl extends AbstractStream<K> implements KGroupedTable<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> adder, final Reducer<V> subtractor, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(adder, subtractor, keyValueStore(keySerde, valSerde, getOrCrea...
KGroupedTableImpl extends AbstractStream<K> implements KGroupedTable<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> adder, final Reducer<V> subtractor, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(adder, subtractor, keyValueStore(keySerde, valSerde, getOrCrea...
KGroupedTableImpl extends AbstractStream<K> implements KGroupedTable<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> adder, final Reducer<V> subtractor, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(adder, subtractor, keyValueStore(keySerde, valSerde, getOrCrea...
KGroupedTableImpl extends AbstractStream<K> implements KGroupedTable<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> adder, final Reducer<V> subtractor, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(adder, subtractor, keyValueStore(keySerde, valSerde, getOrCrea...
@Test public void shouldSerializeNullToNull() throws Exception { assertNull(sessionKeySerde.serializer().serialize(topic, null)); }
@Override public Serializer<Windowed<K>> serializer() { return new SessionKeySerializer(keySerde.serializer()); }
SessionKeySerde implements Serde<Windowed<K>> { @Override public Serializer<Windowed<K>> serializer() { return new SessionKeySerializer(keySerde.serializer()); } }
SessionKeySerde implements Serde<Windowed<K>> { @Override public Serializer<Windowed<K>> serializer() { return new SessionKeySerializer(keySerde.serializer()); } SessionKeySerde(final Serde<K> keySerde); }
SessionKeySerde implements Serde<Windowed<K>> { @Override public Serializer<Windowed<K>> serializer() { return new SessionKeySerializer(keySerde.serializer()); } SessionKeySerde(final Serde<K> keySerde); @Override void configure(final Map<String, ?> configs, final boolean isKey); @Override void close(); @Override Seria...
SessionKeySerde implements Serde<Windowed<K>> { @Override public Serializer<Windowed<K>> serializer() { return new SessionKeySerializer(keySerde.serializer()); } SessionKeySerde(final Serde<K> keySerde); @Override void configure(final Map<String, ?> configs, final boolean isKey); @Override void close(); @Override Seria...
@Test(expected = ConfigException.class) public void testConfigMixWholeAndFieldTransformation() { final Cast<SourceRecord> xform = new Cast.Key<>(); xform.configure(Collections.singletonMap(Cast.SPEC_CONFIG, "foo:int8,int32")); }
@Override public void configure(Map<String, ?> props) { final SimpleConfig config = new SimpleConfig(CONFIG_DEF, props); casts = parseFieldTypes(config.getList(SPEC_CONFIG)); wholeValueCastType = casts.get(WHOLE_VALUE_CAST); schemaUpdateCache = new SynchronizedCache<>(new LRUCache<Schema, Schema>(16)); }
Cast implements Transformation<R> { @Override public void configure(Map<String, ?> props) { final SimpleConfig config = new SimpleConfig(CONFIG_DEF, props); casts = parseFieldTypes(config.getList(SPEC_CONFIG)); wholeValueCastType = casts.get(WHOLE_VALUE_CAST); schemaUpdateCache = new SynchronizedCache<>(new LRUCache<Sc...
Cast implements Transformation<R> { @Override public void configure(Map<String, ?> props) { final SimpleConfig config = new SimpleConfig(CONFIG_DEF, props); casts = parseFieldTypes(config.getList(SPEC_CONFIG)); wholeValueCastType = casts.get(WHOLE_VALUE_CAST); schemaUpdateCache = new SynchronizedCache<>(new LRUCache<Sc...
Cast implements Transformation<R> { @Override public void configure(Map<String, ?> props) { final SimpleConfig config = new SimpleConfig(CONFIG_DEF, props); casts = parseFieldTypes(config.getList(SPEC_CONFIG)); wholeValueCastType = casts.get(WHOLE_VALUE_CAST); schemaUpdateCache = new SynchronizedCache<>(new LRUCache<Sc...
Cast implements Transformation<R> { @Override public void configure(Map<String, ?> props) { final SimpleConfig config = new SimpleConfig(CONFIG_DEF, props); casts = parseFieldTypes(config.getList(SPEC_CONFIG)); wholeValueCastType = casts.get(WHOLE_VALUE_CAST); schemaUpdateCache = new SynchronizedCache<>(new LRUCache<Sc...
@Test public void shouldDeSerializeEmtpyByteArrayToNull() throws Exception { assertNull(sessionKeySerde.deserializer().deserialize(topic, new byte[0])); }
@Override public Deserializer<Windowed<K>> deserializer() { return new SessionKeyDeserializer(keySerde.deserializer()); }
SessionKeySerde implements Serde<Windowed<K>> { @Override public Deserializer<Windowed<K>> deserializer() { return new SessionKeyDeserializer(keySerde.deserializer()); } }
SessionKeySerde implements Serde<Windowed<K>> { @Override public Deserializer<Windowed<K>> deserializer() { return new SessionKeyDeserializer(keySerde.deserializer()); } SessionKeySerde(final Serde<K> keySerde); }
SessionKeySerde implements Serde<Windowed<K>> { @Override public Deserializer<Windowed<K>> deserializer() { return new SessionKeyDeserializer(keySerde.deserializer()); } SessionKeySerde(final Serde<K> keySerde); @Override void configure(final Map<String, ?> configs, final boolean isKey); @Override void close(); @Overri...
SessionKeySerde implements Serde<Windowed<K>> { @Override public Deserializer<Windowed<K>> deserializer() { return new SessionKeyDeserializer(keySerde.deserializer()); } SessionKeySerde(final Serde<K> keySerde); @Override void configure(final Map<String, ?> configs, final boolean isKey); @Override void close(); @Overri...
@Test public void shouldDeSerializeNullToNull() throws Exception { assertNull(sessionKeySerde.deserializer().deserialize(topic, null)); }
@Override public Deserializer<Windowed<K>> deserializer() { return new SessionKeyDeserializer(keySerde.deserializer()); }
SessionKeySerde implements Serde<Windowed<K>> { @Override public Deserializer<Windowed<K>> deserializer() { return new SessionKeyDeserializer(keySerde.deserializer()); } }
SessionKeySerde implements Serde<Windowed<K>> { @Override public Deserializer<Windowed<K>> deserializer() { return new SessionKeyDeserializer(keySerde.deserializer()); } SessionKeySerde(final Serde<K> keySerde); }
SessionKeySerde implements Serde<Windowed<K>> { @Override public Deserializer<Windowed<K>> deserializer() { return new SessionKeyDeserializer(keySerde.deserializer()); } SessionKeySerde(final Serde<K> keySerde); @Override void configure(final Map<String, ?> configs, final boolean isKey); @Override void close(); @Overri...
SessionKeySerde implements Serde<Windowed<K>> { @Override public Deserializer<Windowed<K>> deserializer() { return new SessionKeyDeserializer(keySerde.deserializer()); } SessionKeySerde(final Serde<K> keySerde); @Override void configure(final Map<String, ?> configs, final boolean isKey); @Override void close(); @Overri...
@Test public void testMap() { KStreamBuilder builder = new KStreamBuilder(); KeyValueMapper<Integer, String, KeyValue<String, Integer>> mapper = new KeyValueMapper<Integer, String, KeyValue<String, Integer>>() { @Override public KeyValue<String, Integer> apply(Integer key, String value) { return KeyValue.pair(value, ke...
@Override public Processor<K, V> get() { return new KStreamMapProcessor(); }
KStreamMap implements ProcessorSupplier<K, V> { @Override public Processor<K, V> get() { return new KStreamMapProcessor(); } }
KStreamMap implements ProcessorSupplier<K, V> { @Override public Processor<K, V> get() { return new KStreamMapProcessor(); } KStreamMap(KeyValueMapper<? super K, ? super V, ? extends KeyValue<? extends K1, ? extends V1>> mapper); }
KStreamMap implements ProcessorSupplier<K, V> { @Override public Processor<K, V> get() { return new KStreamMapProcessor(); } KStreamMap(KeyValueMapper<? super K, ? super V, ? extends KeyValue<? extends K1, ? extends V1>> mapper); @Override Processor<K, V> get(); }
KStreamMap implements ProcessorSupplier<K, V> { @Override public Processor<K, V> get() { return new KStreamMapProcessor(); } KStreamMap(KeyValueMapper<? super K, ? super V, ? extends KeyValue<? extends K1, ? extends V1>> mapper); @Override Processor<K, V> get(); }
@Test public void testTransform() { KStreamBuilder builder = new KStreamBuilder(); TransformerSupplier<Number, Number, KeyValue<Integer, Integer>> transformerSupplier = new TransformerSupplier<Number, Number, KeyValue<Integer, Integer>>() { public Transformer<Number, Number, KeyValue<Integer, Integer>> get() { return n...
@Override public Processor<K, V> get() { return new KStreamTransformProcessor<>(transformerSupplier.get()); }
KStreamTransform implements ProcessorSupplier<K, V> { @Override public Processor<K, V> get() { return new KStreamTransformProcessor<>(transformerSupplier.get()); } }
KStreamTransform implements ProcessorSupplier<K, V> { @Override public Processor<K, V> get() { return new KStreamTransformProcessor<>(transformerSupplier.get()); } KStreamTransform(TransformerSupplier<? super K, ? super V, ? extends KeyValue<? extends K1, ? extends V1>> transformerSupplier); }
KStreamTransform implements ProcessorSupplier<K, V> { @Override public Processor<K, V> get() { return new KStreamTransformProcessor<>(transformerSupplier.get()); } KStreamTransform(TransformerSupplier<? super K, ? super V, ? extends KeyValue<? extends K1, ? extends V1>> transformerSupplier); @Override Processor<K, V> g...
KStreamTransform implements ProcessorSupplier<K, V> { @Override public Processor<K, V> get() { return new KStreamTransformProcessor<>(transformerSupplier.get()); } KStreamTransform(TransformerSupplier<? super K, ? super V, ? extends KeyValue<? extends K1, ? extends V1>> transformerSupplier); @Override Processor<K, V> g...
@Test public void testJoin() throws Exception { final KStreamBuilder builder = new KStreamBuilder(); final int[] expectedKeys = new int[]{0, 1, 2, 3}; KTable<Integer, String> table1 = builder.table(intSerde, stringSerde, topic1, storeName1); KTable<Integer, String> table2 = builder.table(intSerde, stringSerde, topic2, ...
@Override public Processor<K, Change<V1>> get() { return new KTableKTableLeftJoinProcessor(valueGetterSupplier2.get()); }
KTableKTableLeftJoin extends KTableKTableAbstractJoin<K, R, V1, V2> { @Override public Processor<K, Change<V1>> get() { return new KTableKTableLeftJoinProcessor(valueGetterSupplier2.get()); } }
KTableKTableLeftJoin extends KTableKTableAbstractJoin<K, R, V1, V2> { @Override public Processor<K, Change<V1>> get() { return new KTableKTableLeftJoinProcessor(valueGetterSupplier2.get()); } KTableKTableLeftJoin(KTableImpl<K, ?, V1> table1, KTableImpl<K, ?, V2> table2, ValueJoiner<? super V1, ? super V2, ? extends R> ...
KTableKTableLeftJoin extends KTableKTableAbstractJoin<K, R, V1, V2> { @Override public Processor<K, Change<V1>> get() { return new KTableKTableLeftJoinProcessor(valueGetterSupplier2.get()); } KTableKTableLeftJoin(KTableImpl<K, ?, V1> table1, KTableImpl<K, ?, V2> table2, ValueJoiner<? super V1, ? super V2, ? extends R> ...
KTableKTableLeftJoin extends KTableKTableAbstractJoin<K, R, V1, V2> { @Override public Processor<K, Change<V1>> get() { return new KTableKTableLeftJoinProcessor(valueGetterSupplier2.get()); } KTableKTableLeftJoin(KTableImpl<K, ?, V1> table1, KTableImpl<K, ?, V2> table2, ValueJoiner<? super V1, ? super V2, ? extends R> ...
@Test public void testValueGetter() throws IOException { final KStreamBuilder builder = new KStreamBuilder(); String topic1 = "topic1"; KTableImpl<String, String, String> table1 = (KTableImpl<String, String, String>) builder.table(stringSerde, stringSerde, topic1, "anyStoreName"); KTableValueGetterSupplier<String, Stri...
@Override public Processor<K, V> get() { return new KTableSourceProcessor(); }
KTableSource implements ProcessorSupplier<K, V> { @Override public Processor<K, V> get() { return new KTableSourceProcessor(); } }
KTableSource implements ProcessorSupplier<K, V> { @Override public Processor<K, V> get() { return new KTableSourceProcessor(); } KTableSource(String storeName); }
KTableSource implements ProcessorSupplier<K, V> { @Override public Processor<K, V> get() { return new KTableSourceProcessor(); } KTableSource(String storeName); @Override Processor<K, V> get(); void enableSendingOldValues(); }
KTableSource implements ProcessorSupplier<K, V> { @Override public Processor<K, V> get() { return new KTableSourceProcessor(); } KTableSource(String storeName); @Override Processor<K, V> get(); void enableSendingOldValues(); final String storeName; }
@Test public void testSendingOldValue() throws IOException { final KStreamBuilder builder = new KStreamBuilder(); String topic1 = "topic1"; KTableImpl<String, String, String> table1 = (KTableImpl<String, String, String>) builder.table(stringSerde, stringSerde, topic1, "anyStoreName"); table1.enableSendingOldValues(); a...
public void enableSendingOldValues() { sendOldValues = true; }
KTableSource implements ProcessorSupplier<K, V> { public void enableSendingOldValues() { sendOldValues = true; } }
KTableSource implements ProcessorSupplier<K, V> { public void enableSendingOldValues() { sendOldValues = true; } KTableSource(String storeName); }
KTableSource implements ProcessorSupplier<K, V> { public void enableSendingOldValues() { sendOldValues = true; } KTableSource(String storeName); @Override Processor<K, V> get(); void enableSendingOldValues(); }
KTableSource implements ProcessorSupplier<K, V> { public void enableSendingOldValues() { sendOldValues = true; } KTableSource(String storeName); @Override Processor<K, V> get(); void enableSendingOldValues(); final String storeName; }
@Test public void testSendingOldValue() throws IOException { KStreamBuilder builder = new KStreamBuilder(); String topic1 = "topic1"; KTableImpl<String, String, String> table1 = (KTableImpl<String, String, String>) builder.table(stringSerde, stringSerde, topic1, "anyStoreName"); KTableImpl<String, String, Integer> tabl...
@Override public void enableSendingOldValues() { parent.enableSendingOldValues(); sendOldValues = true; }
KTableMapValues implements KTableProcessorSupplier<K, V, V1> { @Override public void enableSendingOldValues() { parent.enableSendingOldValues(); sendOldValues = true; } }
KTableMapValues implements KTableProcessorSupplier<K, V, V1> { @Override public void enableSendingOldValues() { parent.enableSendingOldValues(); sendOldValues = true; } KTableMapValues(final KTableImpl<K, ?, V> parent, final ValueMapper<? super V, ? extends V1> mapper, final String queryableN...
KTableMapValues implements KTableProcessorSupplier<K, V, V1> { @Override public void enableSendingOldValues() { parent.enableSendingOldValues(); sendOldValues = true; } KTableMapValues(final KTableImpl<K, ?, V> parent, final ValueMapper<? super V, ? extends V1> mapper, final String queryableN...
KTableMapValues implements KTableProcessorSupplier<K, V, V1> { @Override public void enableSendingOldValues() { parent.enableSendingOldValues(); sendOldValues = true; } KTableMapValues(final KTableImpl<K, ?, V> parent, final ValueMapper<? super V, ? extends V1> mapper, final String queryableN...
@Test public void testFromConnect() { assertArrayEquals( SAMPLE_BYTES, converter.fromConnectData(TOPIC, Schema.BYTES_SCHEMA, SAMPLE_BYTES) ); }
@Override public byte[] fromConnectData(String topic, Schema schema, Object value) { if (schema != null && schema.type() != Schema.Type.BYTES) throw new DataException("Invalid schema type for ByteArrayConverter: " + schema.type().toString()); if (value != null && !(value instanceof byte[])) throw new DataException("Byt...
ByteArrayConverter implements Converter { @Override public byte[] fromConnectData(String topic, Schema schema, Object value) { if (schema != null && schema.type() != Schema.Type.BYTES) throw new DataException("Invalid schema type for ByteArrayConverter: " + schema.type().toString()); if (value != null && !(value instan...
ByteArrayConverter implements Converter { @Override public byte[] fromConnectData(String topic, Schema schema, Object value) { if (schema != null && schema.type() != Schema.Type.BYTES) throw new DataException("Invalid schema type for ByteArrayConverter: " + schema.type().toString()); if (value != null && !(value instan...
ByteArrayConverter implements Converter { @Override public byte[] fromConnectData(String topic, Schema schema, Object value) { if (schema != null && schema.type() != Schema.Type.BYTES) throw new DataException("Invalid schema type for ByteArrayConverter: " + schema.type().toString()); if (value != null && !(value instan...
ByteArrayConverter implements Converter { @Override public byte[] fromConnectData(String topic, Schema schema, Object value) { if (schema != null && schema.type() != Schema.Type.BYTES) throw new DataException("Invalid schema type for ByteArrayConverter: " + schema.type().toString()); if (value != null && !(value instan...
@Test public void testTransform() { KStreamBuilder builder = new KStreamBuilder(); ValueTransformerSupplier<Number, Integer> valueTransformerSupplier = new ValueTransformerSupplier<Number, Integer>() { public ValueTransformer<Number, Integer> get() { return new ValueTransformer<Number, Integer>() { private int total = ...
@Override public Processor<K, V> get() { return new KStreamTransformValuesProcessor<>(valueTransformerSupplier.get()); }
KStreamTransformValues implements ProcessorSupplier<K, V> { @Override public Processor<K, V> get() { return new KStreamTransformValuesProcessor<>(valueTransformerSupplier.get()); } }
KStreamTransformValues implements ProcessorSupplier<K, V> { @Override public Processor<K, V> get() { return new KStreamTransformValuesProcessor<>(valueTransformerSupplier.get()); } KStreamTransformValues(ValueTransformerSupplier<V, R> valueTransformerSupplier); }
KStreamTransformValues implements ProcessorSupplier<K, V> { @Override public Processor<K, V> get() { return new KStreamTransformValuesProcessor<>(valueTransformerSupplier.get()); } KStreamTransformValues(ValueTransformerSupplier<V, R> valueTransformerSupplier); @Override Processor<K, V> get(); }
KStreamTransformValues implements ProcessorSupplier<K, V> { @Override public Processor<K, V> get() { return new KStreamTransformValuesProcessor<>(valueTransformerSupplier.get()); } KStreamTransformValues(ValueTransformerSupplier<V, R> valueTransformerSupplier); @Override Processor<K, V> get(); }
@Test public void shouldNotAllowValueTransformerToCallInternalProcessorContextMethods() { final KStreamTransformValues<Integer, Integer, Integer> transformValue = new KStreamTransformValues<>(new ValueTransformerSupplier<Integer, Integer>() { @Override public ValueTransformer<Integer, Integer> get() { return new BadVal...
@Override public Processor<K, V> get() { return new KStreamTransformValuesProcessor<>(valueTransformerSupplier.get()); }
KStreamTransformValues implements ProcessorSupplier<K, V> { @Override public Processor<K, V> get() { return new KStreamTransformValuesProcessor<>(valueTransformerSupplier.get()); } }
KStreamTransformValues implements ProcessorSupplier<K, V> { @Override public Processor<K, V> get() { return new KStreamTransformValuesProcessor<>(valueTransformerSupplier.get()); } KStreamTransformValues(ValueTransformerSupplier<V, R> valueTransformerSupplier); }
KStreamTransformValues implements ProcessorSupplier<K, V> { @Override public Processor<K, V> get() { return new KStreamTransformValuesProcessor<>(valueTransformerSupplier.get()); } KStreamTransformValues(ValueTransformerSupplier<V, R> valueTransformerSupplier); @Override Processor<K, V> get(); }
KStreamTransformValues implements ProcessorSupplier<K, V> { @Override public Processor<K, V> get() { return new KStreamTransformValuesProcessor<>(valueTransformerSupplier.get()); } KStreamTransformValues(ValueTransformerSupplier<V, R> valueTransformerSupplier); @Override Processor<K, V> get(); }
@Test public void testFlatMapValues() { KStreamBuilder builder = new KStreamBuilder(); ValueMapper<CharSequence, Integer> mapper = new ValueMapper<CharSequence, Integer>() { @Override public Integer apply(CharSequence value) { return value.length(); } }; final int[] expectedKeys = {1, 10, 100, 1000}; KStream<Integer, S...
@Override public Processor<K, V> get() { return new KStreamMapProcessor(); }
KStreamMapValues implements ProcessorSupplier<K, V> { @Override public Processor<K, V> get() { return new KStreamMapProcessor(); } }
KStreamMapValues implements ProcessorSupplier<K, V> { @Override public Processor<K, V> get() { return new KStreamMapProcessor(); } KStreamMapValues(ValueMapper<V, V1> mapper); }
KStreamMapValues implements ProcessorSupplier<K, V> { @Override public Processor<K, V> get() { return new KStreamMapProcessor(); } KStreamMapValues(ValueMapper<V, V1> mapper); @Override Processor<K, V> get(); }
KStreamMapValues implements ProcessorSupplier<K, V> { @Override public Processor<K, V> get() { return new KStreamMapProcessor(); } KStreamMapValues(ValueMapper<V, V1> mapper); @Override Processor<K, V> get(); }
@Test(expected = NullPointerException.class) public void shouldNotHaveNullReducerOnReduce() throws Exception { groupedStream.reduce(null, "store"); }
@Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_NAME))); }
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_N...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_N...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_N...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_N...
@Test public void shouldAllowNullStoreNameOnReduce() throws Exception { groupedStream.reduce(MockReducer.STRING_ADDER, (String) null); }
@Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_NAME))); }
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_N...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_N...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_N...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_N...
@Test public void testFromConnectSchemaless() { assertArrayEquals( SAMPLE_BYTES, converter.fromConnectData(TOPIC, null, SAMPLE_BYTES) ); }
@Override public byte[] fromConnectData(String topic, Schema schema, Object value) { if (schema != null && schema.type() != Schema.Type.BYTES) throw new DataException("Invalid schema type for ByteArrayConverter: " + schema.type().toString()); if (value != null && !(value instanceof byte[])) throw new DataException("Byt...
ByteArrayConverter implements Converter { @Override public byte[] fromConnectData(String topic, Schema schema, Object value) { if (schema != null && schema.type() != Schema.Type.BYTES) throw new DataException("Invalid schema type for ByteArrayConverter: " + schema.type().toString()); if (value != null && !(value instan...
ByteArrayConverter implements Converter { @Override public byte[] fromConnectData(String topic, Schema schema, Object value) { if (schema != null && schema.type() != Schema.Type.BYTES) throw new DataException("Invalid schema type for ByteArrayConverter: " + schema.type().toString()); if (value != null && !(value instan...
ByteArrayConverter implements Converter { @Override public byte[] fromConnectData(String topic, Schema schema, Object value) { if (schema != null && schema.type() != Schema.Type.BYTES) throw new DataException("Invalid schema type for ByteArrayConverter: " + schema.type().toString()); if (value != null && !(value instan...
ByteArrayConverter implements Converter { @Override public byte[] fromConnectData(String topic, Schema schema, Object value) { if (schema != null && schema.type() != Schema.Type.BYTES) throw new DataException("Invalid schema type for ByteArrayConverter: " + schema.type().toString()); if (value != null && !(value instan...
@Test(expected = InvalidTopicException.class) public void shouldNotHaveInvalidStoreNameOnReduce() throws Exception { groupedStream.reduce(MockReducer.STRING_ADDER, INVALID_STORE_NAME); }
@Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_NAME))); }
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_N...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_N...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_N...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_N...
@Test(expected = NullPointerException.class) public void shouldNotHaveNullStoreSupplierOnReduce() throws Exception { groupedStream.reduce(MockReducer.STRING_ADDER, (StateStoreSupplier<KeyValueStore>) null); }
@Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_NAME))); }
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_N...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_N...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_N...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_N...
@Test(expected = NullPointerException.class) public void shouldNotHaveNullStoreSupplierOnCount() throws Exception { groupedStream.count((StateStoreSupplier<KeyValueStore>) null); }
@Override public KTable<K, Long> count(final String queryableStoreName) { determineIsQueryable(queryableStoreName); return count(keyValueStore(keySerde, Serdes.Long(), getOrCreateName(queryableStoreName, AGGREGATE_NAME))); }
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, Long> count(final String queryableStoreName) { determineIsQueryable(queryableStoreName); return count(keyValueStore(keySerde, Serdes.Long(), getOrCreateName(queryableStoreName, AGGREGATE_NAME))); } }
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, Long> count(final String queryableStoreName) { determineIsQueryable(queryableStoreName); return count(keyValueStore(keySerde, Serdes.Long(), getOrCreateName(queryableStoreName, AGGREGATE_NAME))); } KGroupedStreamIm...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, Long> count(final String queryableStoreName) { determineIsQueryable(queryableStoreName); return count(keyValueStore(keySerde, Serdes.Long(), getOrCreateName(queryableStoreName, AGGREGATE_NAME))); } KGroupedStreamIm...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, Long> count(final String queryableStoreName) { determineIsQueryable(queryableStoreName); return count(keyValueStore(keySerde, Serdes.Long(), getOrCreateName(queryableStoreName, AGGREGATE_NAME))); } KGroupedStreamIm...
@Test(expected = NullPointerException.class) public void shouldNotHaveNullStoreSupplierOnWindowedCount() throws Exception { groupedStream.count(TimeWindows.of(10), (StateStoreSupplier<WindowStore>) null); }
@Override public KTable<K, Long> count(final String queryableStoreName) { determineIsQueryable(queryableStoreName); return count(keyValueStore(keySerde, Serdes.Long(), getOrCreateName(queryableStoreName, AGGREGATE_NAME))); }
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, Long> count(final String queryableStoreName) { determineIsQueryable(queryableStoreName); return count(keyValueStore(keySerde, Serdes.Long(), getOrCreateName(queryableStoreName, AGGREGATE_NAME))); } }
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, Long> count(final String queryableStoreName) { determineIsQueryable(queryableStoreName); return count(keyValueStore(keySerde, Serdes.Long(), getOrCreateName(queryableStoreName, AGGREGATE_NAME))); } KGroupedStreamIm...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, Long> count(final String queryableStoreName) { determineIsQueryable(queryableStoreName); return count(keyValueStore(keySerde, Serdes.Long(), getOrCreateName(queryableStoreName, AGGREGATE_NAME))); } KGroupedStreamIm...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, Long> count(final String queryableStoreName) { determineIsQueryable(queryableStoreName); return count(keyValueStore(keySerde, Serdes.Long(), getOrCreateName(queryableStoreName, AGGREGATE_NAME))); } KGroupedStreamIm...
@Test(expected = NullPointerException.class) public void shouldNotHaveNullReducerWithWindowedReduce() throws Exception { groupedStream.reduce(null, TimeWindows.of(10), "store"); }
@Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_NAME))); }
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_N...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_N...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_N...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_N...
@Test(expected = NullPointerException.class) public void shouldNotHaveNullWindowsWithWindowedReduce() throws Exception { groupedStream.reduce(MockReducer.STRING_ADDER, (Windows) null, "store"); }
@Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_NAME))); }
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_N...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_N...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_N...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_N...
@Test public void shouldAllowNullStoreNameWithWindowedReduce() throws Exception { groupedStream.reduce(MockReducer.STRING_ADDER, TimeWindows.of(10), (String) null); }
@Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_NAME))); }
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_N...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_N...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_N...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_N...
@Test(expected = InvalidTopicException.class) public void shouldNotHaveInvalidStoreNameWithWindowedReduce() throws Exception { groupedStream.reduce(MockReducer.STRING_ADDER, TimeWindows.of(10), INVALID_STORE_NAME); }
@Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_NAME))); }
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_N...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_N...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_N...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_N...
@Test(expected = NullPointerException.class) public void shouldNotHaveNullInitializerOnAggregate() throws Exception { groupedStream.aggregate(null, MockAggregator.TOSTRING_ADDER, Serdes.String(), "store"); }
@Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return aggregate(initializer, aggregator, keyValueStore(keySerde, aggValueSerde, ...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
@Test(expected = NullPointerException.class) public void shouldNotHaveNullAdderOnAggregate() throws Exception { groupedStream.aggregate(MockInitializer.STRING_INIT, null, Serdes.String(), "store"); }
@Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return aggregate(initializer, aggregator, keyValueStore(keySerde, aggValueSerde, ...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
@Test(expected = DataException.class) public void testFromConnectBadSchema() { converter.fromConnectData(TOPIC, Schema.INT32_SCHEMA, SAMPLE_BYTES); }
@Override public byte[] fromConnectData(String topic, Schema schema, Object value) { if (schema != null && schema.type() != Schema.Type.BYTES) throw new DataException("Invalid schema type for ByteArrayConverter: " + schema.type().toString()); if (value != null && !(value instanceof byte[])) throw new DataException("Byt...
ByteArrayConverter implements Converter { @Override public byte[] fromConnectData(String topic, Schema schema, Object value) { if (schema != null && schema.type() != Schema.Type.BYTES) throw new DataException("Invalid schema type for ByteArrayConverter: " + schema.type().toString()); if (value != null && !(value instan...
ByteArrayConverter implements Converter { @Override public byte[] fromConnectData(String topic, Schema schema, Object value) { if (schema != null && schema.type() != Schema.Type.BYTES) throw new DataException("Invalid schema type for ByteArrayConverter: " + schema.type().toString()); if (value != null && !(value instan...
ByteArrayConverter implements Converter { @Override public byte[] fromConnectData(String topic, Schema schema, Object value) { if (schema != null && schema.type() != Schema.Type.BYTES) throw new DataException("Invalid schema type for ByteArrayConverter: " + schema.type().toString()); if (value != null && !(value instan...
ByteArrayConverter implements Converter { @Override public byte[] fromConnectData(String topic, Schema schema, Object value) { if (schema != null && schema.type() != Schema.Type.BYTES) throw new DataException("Invalid schema type for ByteArrayConverter: " + schema.type().toString()); if (value != null && !(value instan...
@Test public void shouldAllowNullStoreNameOnAggregate() throws Exception { groupedStream.aggregate(MockInitializer.STRING_INIT, MockAggregator.TOSTRING_ADDER, Serdes.String(), null); }
@Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return aggregate(initializer, aggregator, keyValueStore(keySerde, aggValueSerde, ...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
@Test(expected = InvalidTopicException.class) public void shouldNotHaveInvalidStoreNameOnAggregate() throws Exception { groupedStream.aggregate(MockInitializer.STRING_INIT, MockAggregator.TOSTRING_ADDER, Serdes.String(), INVALID_STORE_NAME); }
@Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return aggregate(initializer, aggregator, keyValueStore(keySerde, aggValueSerde, ...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
@Test(expected = NullPointerException.class) public void shouldNotHaveNullInitializerOnWindowedAggregate() throws Exception { groupedStream.aggregate(null, MockAggregator.TOSTRING_ADDER, TimeWindows.of(10), Serdes.String(), "store"); }
@Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return aggregate(initializer, aggregator, keyValueStore(keySerde, aggValueSerde, ...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
@Test(expected = NullPointerException.class) public void shouldNotHaveNullAdderOnWindowedAggregate() throws Exception { groupedStream.aggregate(MockInitializer.STRING_INIT, null, TimeWindows.of(10), Serdes.String(), "store"); }
@Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return aggregate(initializer, aggregator, keyValueStore(keySerde, aggValueSerde, ...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
@Test(expected = NullPointerException.class) public void shouldNotHaveNullWindowsOnWindowedAggregate() throws Exception { groupedStream.aggregate(MockInitializer.STRING_INIT, MockAggregator.TOSTRING_ADDER, null, Serdes.String(), "store"); }
@Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return aggregate(initializer, aggregator, keyValueStore(keySerde, aggValueSerde, ...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
@Test public void shouldAllowNullStoreNameOnWindowedAggregate() throws Exception { groupedStream.aggregate(MockInitializer.STRING_INIT, MockAggregator.TOSTRING_ADDER, TimeWindows.of(10), Serdes.String(), null); }
@Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return aggregate(initializer, aggregator, keyValueStore(keySerde, aggValueSerde, ...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
@Test(expected = InvalidTopicException.class) public void shouldNotHaveInvalidStoreNameOnWindowedAggregate() throws Exception { groupedStream.aggregate(MockInitializer.STRING_INIT, MockAggregator.TOSTRING_ADDER, TimeWindows.of(10), Serdes.String(), INVALID_STORE_NAME); }
@Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return aggregate(initializer, aggregator, keyValueStore(keySerde, aggValueSerde, ...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
@Test(expected = NullPointerException.class) public void shouldNotHaveNullStoreSupplierOnWindowedAggregate() throws Exception { groupedStream.aggregate(MockInitializer.STRING_INIT, MockAggregator.TOSTRING_ADDER, TimeWindows.of(10), (StateStoreSupplier<WindowStore>) null); }
@Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return aggregate(initializer, aggregator, keyValueStore(keySerde, aggValueSerde, ...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
@Test public void shouldAggregateSessionWindows() throws Exception { final Map<Windowed<String>, Integer> results = new HashMap<>(); KTable table = groupedStream.aggregate(new Initializer<Integer>() { @Override public Integer apply() { return 0; } }, new Aggregator<String, String, Integer>() { @Override public Integer ...
@Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return aggregate(initializer, aggregator, keyValueStore(keySerde, aggValueSerde, ...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
@Test public void shouldAggregateSessionWindowsWithInternalStoreName() throws Exception { final Map<Windowed<String>, Integer> results = new HashMap<>(); KTable table = groupedStream.aggregate(new Initializer<Integer>() { @Override public Integer apply() { return 0; } }, new Aggregator<String, String, Integer>() { @Ove...
@Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return aggregate(initializer, aggregator, keyValueStore(keySerde, aggValueSerde, ...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
@Test(expected = DataException.class) public void testFromConnectInvalidValue() { converter.fromConnectData(TOPIC, Schema.BYTES_SCHEMA, 12); }
@Override public byte[] fromConnectData(String topic, Schema schema, Object value) { if (schema != null && schema.type() != Schema.Type.BYTES) throw new DataException("Invalid schema type for ByteArrayConverter: " + schema.type().toString()); if (value != null && !(value instanceof byte[])) throw new DataException("Byt...
ByteArrayConverter implements Converter { @Override public byte[] fromConnectData(String topic, Schema schema, Object value) { if (schema != null && schema.type() != Schema.Type.BYTES) throw new DataException("Invalid schema type for ByteArrayConverter: " + schema.type().toString()); if (value != null && !(value instan...
ByteArrayConverter implements Converter { @Override public byte[] fromConnectData(String topic, Schema schema, Object value) { if (schema != null && schema.type() != Schema.Type.BYTES) throw new DataException("Invalid schema type for ByteArrayConverter: " + schema.type().toString()); if (value != null && !(value instan...
ByteArrayConverter implements Converter { @Override public byte[] fromConnectData(String topic, Schema schema, Object value) { if (schema != null && schema.type() != Schema.Type.BYTES) throw new DataException("Invalid schema type for ByteArrayConverter: " + schema.type().toString()); if (value != null && !(value instan...
ByteArrayConverter implements Converter { @Override public byte[] fromConnectData(String topic, Schema schema, Object value) { if (schema != null && schema.type() != Schema.Type.BYTES) throw new DataException("Invalid schema type for ByteArrayConverter: " + schema.type().toString()); if (value != null && !(value instan...
@Test public void shouldCountSessionWindows() throws Exception { final Map<Windowed<String>, Long> results = new HashMap<>(); KTable table = groupedStream.count(SessionWindows.with(30), "session-store"); table.foreach(new ForeachAction<Windowed<String>, Long>() { @Override public void apply(final Windowed<String> key, ...
@Override public KTable<K, Long> count(final String queryableStoreName) { determineIsQueryable(queryableStoreName); return count(keyValueStore(keySerde, Serdes.Long(), getOrCreateName(queryableStoreName, AGGREGATE_NAME))); }
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, Long> count(final String queryableStoreName) { determineIsQueryable(queryableStoreName); return count(keyValueStore(keySerde, Serdes.Long(), getOrCreateName(queryableStoreName, AGGREGATE_NAME))); } }
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, Long> count(final String queryableStoreName) { determineIsQueryable(queryableStoreName); return count(keyValueStore(keySerde, Serdes.Long(), getOrCreateName(queryableStoreName, AGGREGATE_NAME))); } KGroupedStreamIm...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, Long> count(final String queryableStoreName) { determineIsQueryable(queryableStoreName); return count(keyValueStore(keySerde, Serdes.Long(), getOrCreateName(queryableStoreName, AGGREGATE_NAME))); } KGroupedStreamIm...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, Long> count(final String queryableStoreName) { determineIsQueryable(queryableStoreName); return count(keyValueStore(keySerde, Serdes.Long(), getOrCreateName(queryableStoreName, AGGREGATE_NAME))); } KGroupedStreamIm...
@Test public void shouldCountSessionWindowsWithInternalStoreName() throws Exception { final Map<Windowed<String>, Long> results = new HashMap<>(); KTable table = groupedStream.count(SessionWindows.with(30)); table.foreach(new ForeachAction<Windowed<String>, Long>() { @Override public void apply(final Windowed<String> k...
@Override public KTable<K, Long> count(final String queryableStoreName) { determineIsQueryable(queryableStoreName); return count(keyValueStore(keySerde, Serdes.Long(), getOrCreateName(queryableStoreName, AGGREGATE_NAME))); }
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, Long> count(final String queryableStoreName) { determineIsQueryable(queryableStoreName); return count(keyValueStore(keySerde, Serdes.Long(), getOrCreateName(queryableStoreName, AGGREGATE_NAME))); } }
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, Long> count(final String queryableStoreName) { determineIsQueryable(queryableStoreName); return count(keyValueStore(keySerde, Serdes.Long(), getOrCreateName(queryableStoreName, AGGREGATE_NAME))); } KGroupedStreamIm...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, Long> count(final String queryableStoreName) { determineIsQueryable(queryableStoreName); return count(keyValueStore(keySerde, Serdes.Long(), getOrCreateName(queryableStoreName, AGGREGATE_NAME))); } KGroupedStreamIm...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, Long> count(final String queryableStoreName) { determineIsQueryable(queryableStoreName); return count(keyValueStore(keySerde, Serdes.Long(), getOrCreateName(queryableStoreName, AGGREGATE_NAME))); } KGroupedStreamIm...
@Test public void shouldReduceSessionWindows() throws Exception { final Map<Windowed<String>, String> results = new HashMap<>(); KTable table = groupedStream.reduce( new Reducer<String>() { @Override public String apply(final String value1, final String value2) { return value1 + ":" + value2; } }, SessionWindows.with(3...
@Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_NAME))); }
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_N...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_N...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_N...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_N...
@Test public void shouldReduceSessionWindowsWithInternalStoreName() throws Exception { final Map<Windowed<String>, String> results = new HashMap<>(); KTable table = groupedStream.reduce( new Reducer<String>() { @Override public String apply(final String value1, final String value2) { return value1 + ":" + value2; } }, ...
@Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_NAME))); }
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_N...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_N...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_N...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_N...
@Test(expected = NullPointerException.class) public void shouldNotAcceptNullReducerWhenReducingSessionWindows() throws Exception { groupedStream.reduce(null, SessionWindows.with(10), "store"); }
@Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_NAME))); }
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_N...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_N...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_N...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_N...
@Test(expected = NullPointerException.class) public void shouldNotAcceptNullSessionWindowsReducingSessionWindows() throws Exception { groupedStream.reduce(MockReducer.STRING_ADDER, (SessionWindows) null, "store"); }
@Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_NAME))); }
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_N...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_N...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_N...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_N...
@Test public void shouldAcceptNullStoreNameWhenReducingSessionWindows() throws Exception { groupedStream.reduce(MockReducer.STRING_ADDER, SessionWindows.with(10), (String) null); }
@Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_NAME))); }
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_N...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_N...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_N...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_N...
@Test(expected = InvalidTopicException.class) public void shouldNotAcceptInvalidStoreNameWhenReducingSessionWindows() throws Exception { groupedStream.reduce(MockReducer.STRING_ADDER, SessionWindows.with(10), INVALID_STORE_NAME); }
@Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_NAME))); }
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_N...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_N...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_N...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_N...
@Test(expected = NullPointerException.class) public void shouldNotAcceptNullStateStoreSupplierWhenReducingSessionWindows() throws Exception { groupedStream.reduce(MockReducer.STRING_ADDER, SessionWindows.with(10), (StateStoreSupplier<SessionStore>) null); }
@Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_NAME))); }
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_N...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_N...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_N...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, V> reduce(final Reducer<V> reducer, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return reduce(reducer, keyValueStore(keySerde, valSerde, getOrCreateName(queryableStoreName, REDUCE_N...
@Test(expected = NullPointerException.class) public void shouldNotAcceptNullInitializerWhenAggregatingSessionWindows() throws Exception { groupedStream.aggregate(null, MockAggregator.TOSTRING_ADDER, new Merger<String, String>() { @Override public String apply(final String aggKey, final String aggOne, final String aggTw...
@Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return aggregate(initializer, aggregator, keyValueStore(keySerde, aggValueSerde, ...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
@Test public void testFromConnectNull() { assertNull(converter.fromConnectData(TOPIC, Schema.BYTES_SCHEMA, null)); }
@Override public byte[] fromConnectData(String topic, Schema schema, Object value) { if (schema != null && schema.type() != Schema.Type.BYTES) throw new DataException("Invalid schema type for ByteArrayConverter: " + schema.type().toString()); if (value != null && !(value instanceof byte[])) throw new DataException("Byt...
ByteArrayConverter implements Converter { @Override public byte[] fromConnectData(String topic, Schema schema, Object value) { if (schema != null && schema.type() != Schema.Type.BYTES) throw new DataException("Invalid schema type for ByteArrayConverter: " + schema.type().toString()); if (value != null && !(value instan...
ByteArrayConverter implements Converter { @Override public byte[] fromConnectData(String topic, Schema schema, Object value) { if (schema != null && schema.type() != Schema.Type.BYTES) throw new DataException("Invalid schema type for ByteArrayConverter: " + schema.type().toString()); if (value != null && !(value instan...
ByteArrayConverter implements Converter { @Override public byte[] fromConnectData(String topic, Schema schema, Object value) { if (schema != null && schema.type() != Schema.Type.BYTES) throw new DataException("Invalid schema type for ByteArrayConverter: " + schema.type().toString()); if (value != null && !(value instan...
ByteArrayConverter implements Converter { @Override public byte[] fromConnectData(String topic, Schema schema, Object value) { if (schema != null && schema.type() != Schema.Type.BYTES) throw new DataException("Invalid schema type for ByteArrayConverter: " + schema.type().toString()); if (value != null && !(value instan...
@Test(expected = NullPointerException.class) public void shouldNotAcceptNullAggregatorWhenAggregatingSessionWindows() throws Exception { groupedStream.aggregate(MockInitializer.STRING_INIT, null, new Merger<String, String>() { @Override public String apply(final String aggKey, final String aggOne, final String aggTwo) ...
@Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return aggregate(initializer, aggregator, keyValueStore(keySerde, aggValueSerde, ...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
@Test(expected = NullPointerException.class) public void shouldNotAcceptNullSessionMergerWhenAggregatingSessionWindows() throws Exception { groupedStream.aggregate(MockInitializer.STRING_INIT, MockAggregator.TOSTRING_ADDER, null, SessionWindows.with(10), Serdes.String(), "storeName"); }
@Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return aggregate(initializer, aggregator, keyValueStore(keySerde, aggValueSerde, ...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
@Test(expected = NullPointerException.class) public void shouldNotAcceptNullSessionWindowsWhenAggregatingSessionWindows() throws Exception { groupedStream.aggregate(MockInitializer.STRING_INIT, MockAggregator.TOSTRING_ADDER, new Merger<String, String>() { @Override public String apply(final String aggKey, final String ...
@Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return aggregate(initializer, aggregator, keyValueStore(keySerde, aggValueSerde, ...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
@Test public void shouldAcceptNullStoreNameWhenAggregatingSessionWindows() throws Exception { groupedStream.aggregate(MockInitializer.STRING_INIT, MockAggregator.TOSTRING_ADDER, new Merger<String, String>() { @Override public String apply(final String aggKey, final String aggOne, final String aggTwo) { return null; } }...
@Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return aggregate(initializer, aggregator, keyValueStore(keySerde, aggValueSerde, ...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
@Test(expected = InvalidTopicException.class) public void shouldNotAcceptInvalidStoreNameWhenAggregatingSessionWindows() throws Exception { groupedStream.aggregate(MockInitializer.STRING_INIT, MockAggregator.TOSTRING_ADDER, new Merger<String, String>() { @Override public String apply(final String aggKey, final String a...
@Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return aggregate(initializer, aggregator, keyValueStore(keySerde, aggValueSerde, ...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
@Test(expected = NullPointerException.class) public void shouldNotAcceptNullStateStoreSupplierNameWhenAggregatingSessionWindows() throws Exception { groupedStream.aggregate(MockInitializer.STRING_INIT, MockAggregator.TOSTRING_ADDER, new Merger<String, String>() { @Override public String apply(final String aggKey, final...
@Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); return aggregate(initializer, aggregator, keyValueStore(keySerde, aggValueSerde, ...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public <T> KTable<K, T> aggregate(final Initializer<T> initializer, final Aggregator<? super K, ? super V, T> aggregator, final Serde<T> aggValueSerde, final String queryableStoreName) { determineIsQueryable(queryableStoreName); re...
@Test(expected = NullPointerException.class) public void shouldNotAcceptNullSessionWindowsWhenCountingSessionWindows() throws Exception { groupedStream.count((SessionWindows) null, "store"); }
@Override public KTable<K, Long> count(final String queryableStoreName) { determineIsQueryable(queryableStoreName); return count(keyValueStore(keySerde, Serdes.Long(), getOrCreateName(queryableStoreName, AGGREGATE_NAME))); }
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, Long> count(final String queryableStoreName) { determineIsQueryable(queryableStoreName); return count(keyValueStore(keySerde, Serdes.Long(), getOrCreateName(queryableStoreName, AGGREGATE_NAME))); } }
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, Long> count(final String queryableStoreName) { determineIsQueryable(queryableStoreName); return count(keyValueStore(keySerde, Serdes.Long(), getOrCreateName(queryableStoreName, AGGREGATE_NAME))); } KGroupedStreamIm...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, Long> count(final String queryableStoreName) { determineIsQueryable(queryableStoreName); return count(keyValueStore(keySerde, Serdes.Long(), getOrCreateName(queryableStoreName, AGGREGATE_NAME))); } KGroupedStreamIm...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, Long> count(final String queryableStoreName) { determineIsQueryable(queryableStoreName); return count(keyValueStore(keySerde, Serdes.Long(), getOrCreateName(queryableStoreName, AGGREGATE_NAME))); } KGroupedStreamIm...
@Test public void shouldAcceptNullStoreNameWhenCountingSessionWindows() throws Exception { groupedStream.count(SessionWindows.with(90), (String) null); }
@Override public KTable<K, Long> count(final String queryableStoreName) { determineIsQueryable(queryableStoreName); return count(keyValueStore(keySerde, Serdes.Long(), getOrCreateName(queryableStoreName, AGGREGATE_NAME))); }
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, Long> count(final String queryableStoreName) { determineIsQueryable(queryableStoreName); return count(keyValueStore(keySerde, Serdes.Long(), getOrCreateName(queryableStoreName, AGGREGATE_NAME))); } }
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, Long> count(final String queryableStoreName) { determineIsQueryable(queryableStoreName); return count(keyValueStore(keySerde, Serdes.Long(), getOrCreateName(queryableStoreName, AGGREGATE_NAME))); } KGroupedStreamIm...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, Long> count(final String queryableStoreName) { determineIsQueryable(queryableStoreName); return count(keyValueStore(keySerde, Serdes.Long(), getOrCreateName(queryableStoreName, AGGREGATE_NAME))); } KGroupedStreamIm...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, Long> count(final String queryableStoreName) { determineIsQueryable(queryableStoreName); return count(keyValueStore(keySerde, Serdes.Long(), getOrCreateName(queryableStoreName, AGGREGATE_NAME))); } KGroupedStreamIm...
@Test(expected = InvalidTopicException.class) public void shouldNotAcceptInvalidStoreNameWhenCountingSessionWindows() throws Exception { groupedStream.count(SessionWindows.with(90), INVALID_STORE_NAME); }
@Override public KTable<K, Long> count(final String queryableStoreName) { determineIsQueryable(queryableStoreName); return count(keyValueStore(keySerde, Serdes.Long(), getOrCreateName(queryableStoreName, AGGREGATE_NAME))); }
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, Long> count(final String queryableStoreName) { determineIsQueryable(queryableStoreName); return count(keyValueStore(keySerde, Serdes.Long(), getOrCreateName(queryableStoreName, AGGREGATE_NAME))); } }
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, Long> count(final String queryableStoreName) { determineIsQueryable(queryableStoreName); return count(keyValueStore(keySerde, Serdes.Long(), getOrCreateName(queryableStoreName, AGGREGATE_NAME))); } KGroupedStreamIm...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, Long> count(final String queryableStoreName) { determineIsQueryable(queryableStoreName); return count(keyValueStore(keySerde, Serdes.Long(), getOrCreateName(queryableStoreName, AGGREGATE_NAME))); } KGroupedStreamIm...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, Long> count(final String queryableStoreName) { determineIsQueryable(queryableStoreName); return count(keyValueStore(keySerde, Serdes.Long(), getOrCreateName(queryableStoreName, AGGREGATE_NAME))); } KGroupedStreamIm...
@Test(expected = NullPointerException.class) public void shouldNotAcceptNullStateStoreSupplierWhenCountingSessionWindows() throws Exception { groupedStream.count(SessionWindows.with(90), (StateStoreSupplier<SessionStore>) null); }
@Override public KTable<K, Long> count(final String queryableStoreName) { determineIsQueryable(queryableStoreName); return count(keyValueStore(keySerde, Serdes.Long(), getOrCreateName(queryableStoreName, AGGREGATE_NAME))); }
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, Long> count(final String queryableStoreName) { determineIsQueryable(queryableStoreName); return count(keyValueStore(keySerde, Serdes.Long(), getOrCreateName(queryableStoreName, AGGREGATE_NAME))); } }
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, Long> count(final String queryableStoreName) { determineIsQueryable(queryableStoreName); return count(keyValueStore(keySerde, Serdes.Long(), getOrCreateName(queryableStoreName, AGGREGATE_NAME))); } KGroupedStreamIm...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, Long> count(final String queryableStoreName) { determineIsQueryable(queryableStoreName); return count(keyValueStore(keySerde, Serdes.Long(), getOrCreateName(queryableStoreName, AGGREGATE_NAME))); } KGroupedStreamIm...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, Long> count(final String queryableStoreName) { determineIsQueryable(queryableStoreName); return count(keyValueStore(keySerde, Serdes.Long(), getOrCreateName(queryableStoreName, AGGREGATE_NAME))); } KGroupedStreamIm...
@Test public void testToConnect() { SchemaAndValue data = converter.toConnectData(TOPIC, SAMPLE_BYTES); assertEquals(Schema.OPTIONAL_BYTES_SCHEMA, data.schema()); assertTrue(Arrays.equals(SAMPLE_BYTES, (byte[]) data.value())); }
@Override public SchemaAndValue toConnectData(String topic, byte[] value) { return new SchemaAndValue(Schema.OPTIONAL_BYTES_SCHEMA, value); }
ByteArrayConverter implements Converter { @Override public SchemaAndValue toConnectData(String topic, byte[] value) { return new SchemaAndValue(Schema.OPTIONAL_BYTES_SCHEMA, value); } }
ByteArrayConverter implements Converter { @Override public SchemaAndValue toConnectData(String topic, byte[] value) { return new SchemaAndValue(Schema.OPTIONAL_BYTES_SCHEMA, value); } }
ByteArrayConverter implements Converter { @Override public SchemaAndValue toConnectData(String topic, byte[] value) { return new SchemaAndValue(Schema.OPTIONAL_BYTES_SCHEMA, value); } @Override void configure(Map<String, ?> configs, boolean isKey); @Override byte[] fromConnectData(String topic, Schema schema, Object v...
ByteArrayConverter implements Converter { @Override public SchemaAndValue toConnectData(String topic, byte[] value) { return new SchemaAndValue(Schema.OPTIONAL_BYTES_SCHEMA, value); } @Override void configure(Map<String, ?> configs, boolean isKey); @Override byte[] fromConnectData(String topic, Schema schema, Object v...
@Test public void shouldCountWindowed() throws Exception { final List<KeyValue<Windowed<String>, Long>> results = new ArrayList<>(); groupedStream.count( TimeWindows.of(500L), "aggregate-by-key-windowed") .foreach(new ForeachAction<Windowed<String>, Long>() { @Override public void apply(final Windowed<String> key, fina...
@Override public KTable<K, Long> count(final String queryableStoreName) { determineIsQueryable(queryableStoreName); return count(keyValueStore(keySerde, Serdes.Long(), getOrCreateName(queryableStoreName, AGGREGATE_NAME))); }
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, Long> count(final String queryableStoreName) { determineIsQueryable(queryableStoreName); return count(keyValueStore(keySerde, Serdes.Long(), getOrCreateName(queryableStoreName, AGGREGATE_NAME))); } }
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, Long> count(final String queryableStoreName) { determineIsQueryable(queryableStoreName); return count(keyValueStore(keySerde, Serdes.Long(), getOrCreateName(queryableStoreName, AGGREGATE_NAME))); } KGroupedStreamIm...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, Long> count(final String queryableStoreName) { determineIsQueryable(queryableStoreName); return count(keyValueStore(keySerde, Serdes.Long(), getOrCreateName(queryableStoreName, AGGREGATE_NAME))); } KGroupedStreamIm...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, Long> count(final String queryableStoreName) { determineIsQueryable(queryableStoreName); return count(keyValueStore(keySerde, Serdes.Long(), getOrCreateName(queryableStoreName, AGGREGATE_NAME))); } KGroupedStreamIm...
@Test public void shouldCountWindowedWithInternalStoreName() throws Exception { final List<KeyValue<Windowed<String>, Long>> results = new ArrayList<>(); groupedStream.count( TimeWindows.of(500L)) .foreach(new ForeachAction<Windowed<String>, Long>() { @Override public void apply(final Windowed<String> key, final Long v...
@Override public KTable<K, Long> count(final String queryableStoreName) { determineIsQueryable(queryableStoreName); return count(keyValueStore(keySerde, Serdes.Long(), getOrCreateName(queryableStoreName, AGGREGATE_NAME))); }
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, Long> count(final String queryableStoreName) { determineIsQueryable(queryableStoreName); return count(keyValueStore(keySerde, Serdes.Long(), getOrCreateName(queryableStoreName, AGGREGATE_NAME))); } }
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, Long> count(final String queryableStoreName) { determineIsQueryable(queryableStoreName); return count(keyValueStore(keySerde, Serdes.Long(), getOrCreateName(queryableStoreName, AGGREGATE_NAME))); } KGroupedStreamIm...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, Long> count(final String queryableStoreName) { determineIsQueryable(queryableStoreName); return count(keyValueStore(keySerde, Serdes.Long(), getOrCreateName(queryableStoreName, AGGREGATE_NAME))); } KGroupedStreamIm...
KGroupedStreamImpl extends AbstractStream<K> implements KGroupedStream<K, V> { @Override public KTable<K, Long> count(final String queryableStoreName) { determineIsQueryable(queryableStoreName); return count(keyValueStore(keySerde, Serdes.Long(), getOrCreateName(queryableStoreName, AGGREGATE_NAME))); } KGroupedStreamIm...
@Test(expected = IllegalArgumentException.class) public void windowSizeMustNotBeNegative() { SessionWindows.with(-1); }
public static SessionWindows with(final long inactivityGapMs) { if (inactivityGapMs <= 0) { throw new IllegalArgumentException("Gap time (inactivityGapMs) cannot be zero or negative."); } return new SessionWindows(inactivityGapMs); }
SessionWindows { public static SessionWindows with(final long inactivityGapMs) { if (inactivityGapMs <= 0) { throw new IllegalArgumentException("Gap time (inactivityGapMs) cannot be zero or negative."); } return new SessionWindows(inactivityGapMs); } }
SessionWindows { public static SessionWindows with(final long inactivityGapMs) { if (inactivityGapMs <= 0) { throw new IllegalArgumentException("Gap time (inactivityGapMs) cannot be zero or negative."); } return new SessionWindows(inactivityGapMs); } private SessionWindows(final long gapMs); }
SessionWindows { public static SessionWindows with(final long inactivityGapMs) { if (inactivityGapMs <= 0) { throw new IllegalArgumentException("Gap time (inactivityGapMs) cannot be zero or negative."); } return new SessionWindows(inactivityGapMs); } private SessionWindows(final long gapMs); static SessionWindows with...
SessionWindows { public static SessionWindows with(final long inactivityGapMs) { if (inactivityGapMs <= 0) { throw new IllegalArgumentException("Gap time (inactivityGapMs) cannot be zero or negative."); } return new SessionWindows(inactivityGapMs); } private SessionWindows(final long gapMs); static SessionWindows with...
@Test(expected = IllegalArgumentException.class) public void windowSizeMustNotBeZero() { SessionWindows.with(0); }
public static SessionWindows with(final long inactivityGapMs) { if (inactivityGapMs <= 0) { throw new IllegalArgumentException("Gap time (inactivityGapMs) cannot be zero or negative."); } return new SessionWindows(inactivityGapMs); }
SessionWindows { public static SessionWindows with(final long inactivityGapMs) { if (inactivityGapMs <= 0) { throw new IllegalArgumentException("Gap time (inactivityGapMs) cannot be zero or negative."); } return new SessionWindows(inactivityGapMs); } }
SessionWindows { public static SessionWindows with(final long inactivityGapMs) { if (inactivityGapMs <= 0) { throw new IllegalArgumentException("Gap time (inactivityGapMs) cannot be zero or negative."); } return new SessionWindows(inactivityGapMs); } private SessionWindows(final long gapMs); }
SessionWindows { public static SessionWindows with(final long inactivityGapMs) { if (inactivityGapMs <= 0) { throw new IllegalArgumentException("Gap time (inactivityGapMs) cannot be zero or negative."); } return new SessionWindows(inactivityGapMs); } private SessionWindows(final long gapMs); static SessionWindows with...
SessionWindows { public static SessionWindows with(final long inactivityGapMs) { if (inactivityGapMs <= 0) { throw new IllegalArgumentException("Gap time (inactivityGapMs) cannot be zero or negative."); } return new SessionWindows(inactivityGapMs); } private SessionWindows(final long gapMs); static SessionWindows with...
@Test(expected = IllegalArgumentException.class) public void timeDifferenceMustNotBeNegative() { JoinWindows.of(-1); }
public static JoinWindows of(final long timeDifferenceMs) throws IllegalArgumentException { return new JoinWindows(timeDifferenceMs, timeDifferenceMs); }
JoinWindows extends Windows<Window> { public static JoinWindows of(final long timeDifferenceMs) throws IllegalArgumentException { return new JoinWindows(timeDifferenceMs, timeDifferenceMs); } }
JoinWindows extends Windows<Window> { public static JoinWindows of(final long timeDifferenceMs) throws IllegalArgumentException { return new JoinWindows(timeDifferenceMs, timeDifferenceMs); } private JoinWindows(final long beforeMs, final long afterMs); }
JoinWindows extends Windows<Window> { public static JoinWindows of(final long timeDifferenceMs) throws IllegalArgumentException { return new JoinWindows(timeDifferenceMs, timeDifferenceMs); } private JoinWindows(final long beforeMs, final long afterMs); static JoinWindows of(final long timeDifferenceMs); JoinWindows b...
JoinWindows extends Windows<Window> { public static JoinWindows of(final long timeDifferenceMs) throws IllegalArgumentException { return new JoinWindows(timeDifferenceMs, timeDifferenceMs); } private JoinWindows(final long beforeMs, final long afterMs); static JoinWindows of(final long timeDifferenceMs); JoinWindows b...
@Test public void shouldComputeGroupingForTwoGroups() { final PartitionGrouper grouper = new DefaultPartitionGrouper(); final Map<TaskId, Set<TopicPartition>> expectedPartitionsForTask = new HashMap<>(); final Map<Integer, Set<String>> topicGroups = new HashMap<>(); int topicGroupId = 0; topicGroups.put(topicGroupId, m...
public Map<TaskId, Set<TopicPartition>> partitionGroups(Map<Integer, Set<String>> topicGroups, Cluster metadata) { Map<TaskId, Set<TopicPartition>> groups = new HashMap<>(); for (Map.Entry<Integer, Set<String>> entry : topicGroups.entrySet()) { Integer topicGroupId = entry.getKey(); Set<String> topicGroup = entry.getVa...
DefaultPartitionGrouper implements PartitionGrouper { public Map<TaskId, Set<TopicPartition>> partitionGroups(Map<Integer, Set<String>> topicGroups, Cluster metadata) { Map<TaskId, Set<TopicPartition>> groups = new HashMap<>(); for (Map.Entry<Integer, Set<String>> entry : topicGroups.entrySet()) { Integer topicGroupId ...
DefaultPartitionGrouper implements PartitionGrouper { public Map<TaskId, Set<TopicPartition>> partitionGroups(Map<Integer, Set<String>> topicGroups, Cluster metadata) { Map<TaskId, Set<TopicPartition>> groups = new HashMap<>(); for (Map.Entry<Integer, Set<String>> entry : topicGroups.entrySet()) { Integer topicGroupId ...
DefaultPartitionGrouper implements PartitionGrouper { public Map<TaskId, Set<TopicPartition>> partitionGroups(Map<Integer, Set<String>> topicGroups, Cluster metadata) { Map<TaskId, Set<TopicPartition>> groups = new HashMap<>(); for (Map.Entry<Integer, Set<String>> entry : topicGroups.entrySet()) { Integer topicGroupId ...
DefaultPartitionGrouper implements PartitionGrouper { public Map<TaskId, Set<TopicPartition>> partitionGroups(Map<Integer, Set<String>> topicGroups, Cluster metadata) { Map<TaskId, Set<TopicPartition>> groups = new HashMap<>(); for (Map.Entry<Integer, Set<String>> entry : topicGroups.entrySet()) { Integer topicGroupId ...
@Test public void shouldComputeGroupingForSingleGroupWithMultipleTopics() { final PartitionGrouper grouper = new DefaultPartitionGrouper(); final Map<TaskId, Set<TopicPartition>> expectedPartitionsForTask = new HashMap<>(); final Map<Integer, Set<String>> topicGroups = new HashMap<>(); final int topicGroupId = 0; topic...
public Map<TaskId, Set<TopicPartition>> partitionGroups(Map<Integer, Set<String>> topicGroups, Cluster metadata) { Map<TaskId, Set<TopicPartition>> groups = new HashMap<>(); for (Map.Entry<Integer, Set<String>> entry : topicGroups.entrySet()) { Integer topicGroupId = entry.getKey(); Set<String> topicGroup = entry.getVa...
DefaultPartitionGrouper implements PartitionGrouper { public Map<TaskId, Set<TopicPartition>> partitionGroups(Map<Integer, Set<String>> topicGroups, Cluster metadata) { Map<TaskId, Set<TopicPartition>> groups = new HashMap<>(); for (Map.Entry<Integer, Set<String>> entry : topicGroups.entrySet()) { Integer topicGroupId ...
DefaultPartitionGrouper implements PartitionGrouper { public Map<TaskId, Set<TopicPartition>> partitionGroups(Map<Integer, Set<String>> topicGroups, Cluster metadata) { Map<TaskId, Set<TopicPartition>> groups = new HashMap<>(); for (Map.Entry<Integer, Set<String>> entry : topicGroups.entrySet()) { Integer topicGroupId ...
DefaultPartitionGrouper implements PartitionGrouper { public Map<TaskId, Set<TopicPartition>> partitionGroups(Map<Integer, Set<String>> topicGroups, Cluster metadata) { Map<TaskId, Set<TopicPartition>> groups = new HashMap<>(); for (Map.Entry<Integer, Set<String>> entry : topicGroups.entrySet()) { Integer topicGroupId ...
DefaultPartitionGrouper implements PartitionGrouper { public Map<TaskId, Set<TopicPartition>> partitionGroups(Map<Integer, Set<String>> topicGroups, Cluster metadata) { Map<TaskId, Set<TopicPartition>> groups = new HashMap<>(); for (Map.Entry<Integer, Set<String>> entry : topicGroups.entrySet()) { Integer topicGroupId ...
@Test public void shouldNotCreateAnyTasksBecauseOneTopicHasUnknownPartitions() { final PartitionGrouper grouper = new DefaultPartitionGrouper(); final Map<TaskId, Set<TopicPartition>> expectedPartitionsForTask = new HashMap<>(); final Map<Integer, Set<String>> topicGroups = new HashMap<>(); final int topicGroupId = 0; ...
public Map<TaskId, Set<TopicPartition>> partitionGroups(Map<Integer, Set<String>> topicGroups, Cluster metadata) { Map<TaskId, Set<TopicPartition>> groups = new HashMap<>(); for (Map.Entry<Integer, Set<String>> entry : topicGroups.entrySet()) { Integer topicGroupId = entry.getKey(); Set<String> topicGroup = entry.getVa...
DefaultPartitionGrouper implements PartitionGrouper { public Map<TaskId, Set<TopicPartition>> partitionGroups(Map<Integer, Set<String>> topicGroups, Cluster metadata) { Map<TaskId, Set<TopicPartition>> groups = new HashMap<>(); for (Map.Entry<Integer, Set<String>> entry : topicGroups.entrySet()) { Integer topicGroupId ...
DefaultPartitionGrouper implements PartitionGrouper { public Map<TaskId, Set<TopicPartition>> partitionGroups(Map<Integer, Set<String>> topicGroups, Cluster metadata) { Map<TaskId, Set<TopicPartition>> groups = new HashMap<>(); for (Map.Entry<Integer, Set<String>> entry : topicGroups.entrySet()) { Integer topicGroupId ...
DefaultPartitionGrouper implements PartitionGrouper { public Map<TaskId, Set<TopicPartition>> partitionGroups(Map<Integer, Set<String>> topicGroups, Cluster metadata) { Map<TaskId, Set<TopicPartition>> groups = new HashMap<>(); for (Map.Entry<Integer, Set<String>> entry : topicGroups.entrySet()) { Integer topicGroupId ...
DefaultPartitionGrouper implements PartitionGrouper { public Map<TaskId, Set<TopicPartition>> partitionGroups(Map<Integer, Set<String>> topicGroups, Cluster metadata) { Map<TaskId, Set<TopicPartition>> groups = new HashMap<>(); for (Map.Entry<Integer, Set<String>> entry : topicGroups.entrySet()) { Integer topicGroupId ...
@Test public void extractSystemTimestamp() { final TimestampExtractor extractor = new WallclockTimestampExtractor(); final long before = System.currentTimeMillis(); final long timestamp = extractor.extract(new ConsumerRecord<>("anyTopic", 0, 0, null, null), 42); final long after = System.currentTimeMillis(); assertThat...
@Override public long extract(final ConsumerRecord<Object, Object> record, final long previousTimestamp) { return System.currentTimeMillis(); }
WallclockTimestampExtractor implements TimestampExtractor { @Override public long extract(final ConsumerRecord<Object, Object> record, final long previousTimestamp) { return System.currentTimeMillis(); } }
WallclockTimestampExtractor implements TimestampExtractor { @Override public long extract(final ConsumerRecord<Object, Object> record, final long previousTimestamp) { return System.currentTimeMillis(); } }
WallclockTimestampExtractor implements TimestampExtractor { @Override public long extract(final ConsumerRecord<Object, Object> record, final long previousTimestamp) { return System.currentTimeMillis(); } @Override long extract(final ConsumerRecord<Object, Object> record, final long previousTimestamp); }
WallclockTimestampExtractor implements TimestampExtractor { @Override public long extract(final ConsumerRecord<Object, Object> record, final long previousTimestamp) { return System.currentTimeMillis(); } @Override long extract(final ConsumerRecord<Object, Object> record, final long previousTimestamp); }
@Test public void shouldCallRestoreOnRestoreCallback() throws Exception { restorer.restore(new byte[0], new byte[0]); assertThat(callback.restored.size(), equalTo(1)); }
void restore(final byte[] key, final byte[] value) { stateRestoreCallback.restore(key, value); }
StateRestorer { void restore(final byte[] key, final byte[] value) { stateRestoreCallback.restore(key, value); } }
StateRestorer { void restore(final byte[] key, final byte[] value) { stateRestoreCallback.restore(key, value); } StateRestorer(final TopicPartition partition, final StateRestoreCallback stateRestoreCallback, final Long checkpoint, final long offsetLimit, ...
StateRestorer { void restore(final byte[] key, final byte[] value) { stateRestoreCallback.restore(key, value); } StateRestorer(final TopicPartition partition, final StateRestoreCallback stateRestoreCallback, final Long checkpoint, final long offsetLimit, ...
StateRestorer { void restore(final byte[] key, final byte[] value) { stateRestoreCallback.restore(key, value); } StateRestorer(final TopicPartition partition, final StateRestoreCallback stateRestoreCallback, final Long checkpoint, final long offsetLimit, ...
@Test public void testToConnectNull() { SchemaAndValue data = converter.toConnectData(TOPIC, null); assertEquals(Schema.OPTIONAL_BYTES_SCHEMA, data.schema()); assertNull(data.value()); }
@Override public SchemaAndValue toConnectData(String topic, byte[] value) { return new SchemaAndValue(Schema.OPTIONAL_BYTES_SCHEMA, value); }
ByteArrayConverter implements Converter { @Override public SchemaAndValue toConnectData(String topic, byte[] value) { return new SchemaAndValue(Schema.OPTIONAL_BYTES_SCHEMA, value); } }
ByteArrayConverter implements Converter { @Override public SchemaAndValue toConnectData(String topic, byte[] value) { return new SchemaAndValue(Schema.OPTIONAL_BYTES_SCHEMA, value); } }
ByteArrayConverter implements Converter { @Override public SchemaAndValue toConnectData(String topic, byte[] value) { return new SchemaAndValue(Schema.OPTIONAL_BYTES_SCHEMA, value); } @Override void configure(Map<String, ?> configs, boolean isKey); @Override byte[] fromConnectData(String topic, Schema schema, Object v...
ByteArrayConverter implements Converter { @Override public SchemaAndValue toConnectData(String topic, byte[] value) { return new SchemaAndValue(Schema.OPTIONAL_BYTES_SCHEMA, value); } @Override void configure(Map<String, ?> configs, boolean isKey); @Override byte[] fromConnectData(String topic, Schema schema, Object v...
@Test public void shouldBeCompletedIfRecordOffsetGreaterThanEndOffset() throws Exception { assertTrue(restorer.hasCompleted(11, 10)); }
boolean hasCompleted(final long recordOffset, final long endOffset) { return endOffset == 0 || recordOffset >= readTo(endOffset); }
StateRestorer { boolean hasCompleted(final long recordOffset, final long endOffset) { return endOffset == 0 || recordOffset >= readTo(endOffset); } }
StateRestorer { boolean hasCompleted(final long recordOffset, final long endOffset) { return endOffset == 0 || recordOffset >= readTo(endOffset); } StateRestorer(final TopicPartition partition, final StateRestoreCallback stateRestoreCallback, final Long checkpoint, ...
StateRestorer { boolean hasCompleted(final long recordOffset, final long endOffset) { return endOffset == 0 || recordOffset >= readTo(endOffset); } StateRestorer(final TopicPartition partition, final StateRestoreCallback stateRestoreCallback, final Long checkpoint, ...
StateRestorer { boolean hasCompleted(final long recordOffset, final long endOffset) { return endOffset == 0 || recordOffset >= readTo(endOffset); } StateRestorer(final TopicPartition partition, final StateRestoreCallback stateRestoreCallback, final Long checkpoint, ...
@Test public void shouldBeCompletedIfRecordOffsetGreaterThanOffsetLimit() throws Exception { assertTrue(restorer.hasCompleted(51, 100)); }
boolean hasCompleted(final long recordOffset, final long endOffset) { return endOffset == 0 || recordOffset >= readTo(endOffset); }
StateRestorer { boolean hasCompleted(final long recordOffset, final long endOffset) { return endOffset == 0 || recordOffset >= readTo(endOffset); } }
StateRestorer { boolean hasCompleted(final long recordOffset, final long endOffset) { return endOffset == 0 || recordOffset >= readTo(endOffset); } StateRestorer(final TopicPartition partition, final StateRestoreCallback stateRestoreCallback, final Long checkpoint, ...
StateRestorer { boolean hasCompleted(final long recordOffset, final long endOffset) { return endOffset == 0 || recordOffset >= readTo(endOffset); } StateRestorer(final TopicPartition partition, final StateRestoreCallback stateRestoreCallback, final Long checkpoint, ...
StateRestorer { boolean hasCompleted(final long recordOffset, final long endOffset) { return endOffset == 0 || recordOffset >= readTo(endOffset); } StateRestorer(final TopicPartition partition, final StateRestoreCallback stateRestoreCallback, final Long checkpoint, ...
@Test public void shouldBeCompletedIfEndOffsetAndRecordOffsetAreZero() throws Exception { assertTrue(restorer.hasCompleted(0, 0)); }
boolean hasCompleted(final long recordOffset, final long endOffset) { return endOffset == 0 || recordOffset >= readTo(endOffset); }
StateRestorer { boolean hasCompleted(final long recordOffset, final long endOffset) { return endOffset == 0 || recordOffset >= readTo(endOffset); } }
StateRestorer { boolean hasCompleted(final long recordOffset, final long endOffset) { return endOffset == 0 || recordOffset >= readTo(endOffset); } StateRestorer(final TopicPartition partition, final StateRestoreCallback stateRestoreCallback, final Long checkpoint, ...
StateRestorer { boolean hasCompleted(final long recordOffset, final long endOffset) { return endOffset == 0 || recordOffset >= readTo(endOffset); } StateRestorer(final TopicPartition partition, final StateRestoreCallback stateRestoreCallback, final Long checkpoint, ...
StateRestorer { boolean hasCompleted(final long recordOffset, final long endOffset) { return endOffset == 0 || recordOffset >= readTo(endOffset); } StateRestorer(final TopicPartition partition, final StateRestoreCallback stateRestoreCallback, final Long checkpoint, ...
@Test public void shouldBeCompletedIfOffsetAndOffsetLimitAreZero() throws Exception { final StateRestorer restorer = new StateRestorer(new TopicPartition("topic", 1), callback, null, 0, true); assertTrue(restorer.hasCompleted(0, 10)); }
boolean hasCompleted(final long recordOffset, final long endOffset) { return endOffset == 0 || recordOffset >= readTo(endOffset); }
StateRestorer { boolean hasCompleted(final long recordOffset, final long endOffset) { return endOffset == 0 || recordOffset >= readTo(endOffset); } }
StateRestorer { boolean hasCompleted(final long recordOffset, final long endOffset) { return endOffset == 0 || recordOffset >= readTo(endOffset); } StateRestorer(final TopicPartition partition, final StateRestoreCallback stateRestoreCallback, final Long checkpoint, ...
StateRestorer { boolean hasCompleted(final long recordOffset, final long endOffset) { return endOffset == 0 || recordOffset >= readTo(endOffset); } StateRestorer(final TopicPartition partition, final StateRestoreCallback stateRestoreCallback, final Long checkpoint, ...
StateRestorer { boolean hasCompleted(final long recordOffset, final long endOffset) { return endOffset == 0 || recordOffset >= readTo(endOffset); } StateRestorer(final TopicPartition partition, final StateRestoreCallback stateRestoreCallback, final Long checkpoint, ...
@Test public void shouldNotThrowIllegalStateExceptionOnRegisterWhenContextIsNotInitialized() throws Exception { context.register(stateStore, false, null); }
@Override public void register(final StateStore store, final boolean loggingEnabled, final StateRestoreCallback stateRestoreCallback) { if (initialized) { throw new IllegalStateException("Can only create state stores during initialization."); } Objects.requireNonNull(store, "store must not be null"); stateManager.regis...
AbstractProcessorContext implements InternalProcessorContext { @Override public void register(final StateStore store, final boolean loggingEnabled, final StateRestoreCallback stateRestoreCallback) { if (initialized) { throw new IllegalStateException("Can only create state stores during initialization."); } Objects.requ...
AbstractProcessorContext implements InternalProcessorContext { @Override public void register(final StateStore store, final boolean loggingEnabled, final StateRestoreCallback stateRestoreCallback) { if (initialized) { throw new IllegalStateException("Can only create state stores during initialization."); } Objects.requ...
AbstractProcessorContext implements InternalProcessorContext { @Override public void register(final StateStore store, final boolean loggingEnabled, final StateRestoreCallback stateRestoreCallback) { if (initialized) { throw new IllegalStateException("Can only create state stores during initialization."); } Objects.requ...
AbstractProcessorContext implements InternalProcessorContext { @Override public void register(final StateStore store, final boolean loggingEnabled, final StateRestoreCallback stateRestoreCallback) { if (initialized) { throw new IllegalStateException("Can only create state stores during initialization."); } Objects.requ...