public void Setup() { kvStore = this.CreateMockStore <IKeyValueStore <object, object> >(); timestampedKVStore = this.CreateMockStore <TimestampedKeyValueStore <object, object> >(); stores = new Dictionary <string, IStateStore> { { "kv-store", kvStore }, { "ts-kv-store", timestampedKVStore } }; }
public override void Init(ProcessorContext context) { base.Init(context); if (this.queryableName != null) { store = (TimestampedKeyValueStore <K, V>)context.GetStateStore(queryableName); tupleForwarder = new TimestampedTupleForwarder <K, V>(this, sendOldValues); } }
public override void Init(ProcessorContext context) { base.Init(context); if (this.queryableName != null) { store = (TimestampedKeyValueStore <K, V>)context.GetStateStore(queryableName); // TODO : //tupleForwarder = new TimestampedTupleForwarder<>( // store, // context, // new TimestampedCacheFlushListener<>(context), // sendOldValues); } }
public override void Init(ProcessorContext context) { base.Init(context); if (queryableStoreName != null) { store = (TimestampedKeyValueStore <KS, VS>)context.GetStateStore(queryableStoreName); tupleForwarder = new TimestampedTupleForwarder <K, V>(this, sendOldValues); } if (throwException && (queryableStoreName == null || store == null || tupleForwarder == null)) { throw new StreamsException($"{logPrefix}Processor {Name} doesn't have queryable store name. Please set a correct name to materialed view !"); } }
public ReadOnlyKeyValueStoreFacade(TimestampedKeyValueStore <K, V> store) { innerStore = store; }
public void Init(ProcessorContext context) { store = (TimestampedKeyValueStore <K, V>)context.GetStateStore(storeName); }
public override void Init(ProcessorContext context) { base.Init(context); store = (TimestampedKeyValueStore <K, T>)context.GetStateStore(storeName); tupleForwarder = new TimestampedTupleForwarder <K, V>(this, enableSendOldValues); }