Search in sources :

Example 11 with WrappedStateStore

use of org.apache.kafka.streams.state.internals.WrappedStateStore in project kafka by apache.

the class StoresTest method shouldCreateRocksDbTimestampedWindowStore.

@Test
public void shouldCreateRocksDbTimestampedWindowStore() {
    final WindowStore store = Stores.persistentTimestampedWindowStore("store", ofMillis(1L), ofMillis(1L), false).get();
    final StateStore wrapped = ((WrappedStateStore) store).wrapped();
    assertThat(store, instanceOf(RocksDBWindowStore.class));
    assertThat(wrapped, instanceOf(RocksDBTimestampedSegmentedBytesStore.class));
}
Also used : RocksDBWindowStore(org.apache.kafka.streams.state.internals.RocksDBWindowStore) WrappedStateStore(org.apache.kafka.streams.state.internals.WrappedStateStore) RocksDBTimestampedSegmentedBytesStore(org.apache.kafka.streams.state.internals.RocksDBTimestampedSegmentedBytesStore) WrappedStateStore(org.apache.kafka.streams.state.internals.WrappedStateStore) StateStore(org.apache.kafka.streams.processor.StateStore) RocksDBWindowStore(org.apache.kafka.streams.state.internals.RocksDBWindowStore) Test(org.junit.Test)

Aggregations

WrappedStateStore (org.apache.kafka.streams.state.internals.WrappedStateStore)11 Test (org.junit.Test)11 MaterializedInternal (org.apache.kafka.streams.kstream.internals.MaterializedInternal)9 KeyValueStore (org.apache.kafka.streams.state.KeyValueStore)9 InMemoryKeyValueStore (org.apache.kafka.streams.state.internals.InMemoryKeyValueStore)9 StateStore (org.apache.kafka.streams.processor.StateStore)7 KeyValueStoreMaterializer (org.apache.kafka.streams.kstream.internals.KeyValueStoreMaterializer)5 Bytes (org.apache.kafka.common.utils.Bytes)4 TimestampedKeyValueStoreMaterializer (org.apache.kafka.streams.kstream.internals.TimestampedKeyValueStoreMaterializer)4 TimestampedKeyValueStore (org.apache.kafka.streams.state.TimestampedKeyValueStore)4 CachedStateStore (org.apache.kafka.streams.state.internals.CachedStateStore)4 CachingKeyValueStore (org.apache.kafka.streams.state.internals.CachingKeyValueStore)4 MeteredTimestampedKeyValueStore (org.apache.kafka.streams.state.internals.MeteredTimestampedKeyValueStore)4 ChangeLoggingKeyValueBytesStore (org.apache.kafka.streams.state.internals.ChangeLoggingKeyValueBytesStore)3 RocksDBTimestampedSegmentedBytesStore (org.apache.kafka.streams.state.internals.RocksDBTimestampedSegmentedBytesStore)2 RocksDBWindowStore (org.apache.kafka.streams.state.internals.RocksDBWindowStore)2 KeyValueBytesStoreSupplier (org.apache.kafka.streams.state.KeyValueBytesStoreSupplier)1 ChangeLoggingTimestampedKeyValueBytesStore (org.apache.kafka.streams.state.internals.ChangeLoggingTimestampedKeyValueBytesStore)1 MeteredKeyValueBytesStore (org.apache.kafka.streams.state.internals.MeteredKeyValueBytesStore)1