use of org.apache.kafka.streams.state.NoOpWindowStore in project apache-kafka-on-k8s by banzaicloud.
the class WrappingStoreProviderTest method before.
@Before
public void before() {
final StateStoreProviderStub stubProviderOne = new StateStoreProviderStub(false);
final StateStoreProviderStub stubProviderTwo = new StateStoreProviderStub(false);
stubProviderOne.addStore("kv", StateStoreTestUtils.newKeyValueStore("kv", "app-id", String.class, String.class));
stubProviderOne.addStore("window", new NoOpWindowStore());
stubProviderTwo.addStore("kv", StateStoreTestUtils.newKeyValueStore("kv", "app-id", String.class, String.class));
stubProviderTwo.addStore("window", new NoOpWindowStore());
wrappingStoreProvider = new WrappingStoreProvider(Arrays.<StateStoreProvider>asList(stubProviderOne, stubProviderTwo));
}
use of org.apache.kafka.streams.state.NoOpWindowStore in project kafka by apache.
the class WrappingStoreProviderTest method before.
@Before
public void before() {
final StateStoreProviderStub stubProviderOne = new StateStoreProviderStub(false);
final StateStoreProviderStub stubProviderTwo = new StateStoreProviderStub(false);
for (int partition = 0; partition < numStateStorePartitions; partition++) {
stubProviderOne.addStore("kv", partition, Stores.keyValueStoreBuilder(Stores.inMemoryKeyValueStore("kv"), Serdes.serdeFrom(String.class), Serdes.serdeFrom(String.class)).build());
stubProviderOne.addStore("window", partition, new NoOpWindowStore());
wrappingStoreProvider = new WrappingStoreProvider(Arrays.asList(stubProviderOne, stubProviderTwo), StoreQueryParameters.fromNameAndType("kv", QueryableStoreTypes.keyValueStore()));
}
}
use of org.apache.kafka.streams.state.NoOpWindowStore in project apache-kafka-on-k8s by banzaicloud.
the class QueryableStoreProviderTest method before.
@Before
public void before() {
final StateStoreProviderStub theStoreProvider = new StateStoreProviderStub(false);
theStoreProvider.addStore(keyValueStore, new NoOpReadOnlyStore<>());
theStoreProvider.addStore(windowStore, new NoOpWindowStore());
globalStateStores = new HashMap<>();
storeProvider = new QueryableStoreProvider(Collections.<StateStoreProvider>singletonList(theStoreProvider), new GlobalStateStoreProvider(globalStateStores));
}
use of org.apache.kafka.streams.state.NoOpWindowStore in project kafka by apache.
the class QueryableStoreProviderTest method before.
@Before
public void before() {
final StateStoreProviderStub theStoreProvider = new StateStoreProviderStub(false);
for (int partition = 0; partition < numStateStorePartitions; partition++) {
theStoreProvider.addStore(keyValueStore, partition, new NoOpReadOnlyStore<>());
theStoreProvider.addStore(windowStore, partition, new NoOpWindowStore());
}
globalStateStores = new HashMap<>();
storeProvider = new QueryableStoreProvider(new GlobalStateStoreProvider(globalStateStores));
storeProvider.addStoreProviderForThread("thread1", theStoreProvider);
}
Aggregations