コード例 #1
0
 public KsqlStore(KsqlQueryExecutor queryExecutor, Mapper <TValue> mapper, string stream, string table = null)
 {
     table ??= stream;
     _queryExecutor = queryExecutor;
     _mapper        = mapper;
     _tableName     = table;
     _consumer      = new KsqlConsumer <TValue>(_queryExecutor,
                                                mapper,
                                                new KsqlQuery
     {
         Ksql = $"Select * from {stream} emit changes;"
     });
     _consumer.Start();
 }
コード例 #2
0
 public KsqlConsumer(KsqlQueryExecutor queryExecutor, Mapper <TValue> mapper, KsqlQuery query)
 {
     _queryExecutor = queryExecutor;
     _mapper        = mapper;
     _query         = query;
 }