Class TTDKeyValueTable
- java.lang.Object
-
- dev.responsive.kafka.internal.stores.TTDTable<org.apache.kafka.common.utils.Bytes>
-
- dev.responsive.kafka.internal.stores.TTDKeyValueTable
-
- All Implemented Interfaces:
dev.responsive.kafka.internal.db.RemoteKVTable,dev.responsive.kafka.internal.db.RemoteTable<org.apache.kafka.common.utils.Bytes>
public class TTDKeyValueTable extends TTDTable<org.apache.kafka.common.utils.Bytes> implements dev.responsive.kafka.internal.db.RemoteKVTable
-
-
Constructor Summary
Constructors Constructor Description TTDKeyValueTable(dev.responsive.kafka.internal.db.spec.CassandraTableSpec spec, TTDCassandraClient client)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.kafka.streams.state.KeyValueIterator<org.apache.kafka.common.utils.Bytes,byte[]>all(int partition, long minValidTs)longcount()static TTDKeyValueTablecreate(dev.responsive.kafka.internal.db.spec.CassandraTableSpec spec, dev.responsive.kafka.internal.db.CassandraClient client)com.datastax.oss.driver.api.core.cql.BoundStatementdelete(int partitionKey, org.apache.kafka.common.utils.Bytes key)byte[]get(int partition, org.apache.kafka.common.utils.Bytes key, long minValidTs)com.datastax.oss.driver.api.core.cql.BoundStatementinsert(int partitionKey, org.apache.kafka.common.utils.Bytes key, byte[] value, long epochMillis)java.lang.Stringname()org.apache.kafka.streams.state.KeyValueIterator<org.apache.kafka.common.utils.Bytes,byte[]>range(int partition, org.apache.kafka.common.utils.Bytes from, org.apache.kafka.common.utils.Bytes to, long minValidTs)-
Methods inherited from class dev.responsive.kafka.internal.stores.TTDTable
approximateNumEntries, init, metadata, setOffset
-
-
-
-
Constructor Detail
-
TTDKeyValueTable
public TTDKeyValueTable(dev.responsive.kafka.internal.db.spec.CassandraTableSpec spec, TTDCassandraClient client)
-
-
Method Detail
-
create
public static TTDKeyValueTable create(dev.responsive.kafka.internal.db.spec.CassandraTableSpec spec, dev.responsive.kafka.internal.db.CassandraClient client)
-
count
public long count()
-
name
public java.lang.String name()
- Specified by:
namein interfacedev.responsive.kafka.internal.db.RemoteTable<org.apache.kafka.common.utils.Bytes>
-
insert
public com.datastax.oss.driver.api.core.cql.BoundStatement insert(int partitionKey, org.apache.kafka.common.utils.Bytes key, byte[] value, long epochMillis)- Specified by:
insertin interfacedev.responsive.kafka.internal.db.RemoteTable<org.apache.kafka.common.utils.Bytes>
-
delete
public com.datastax.oss.driver.api.core.cql.BoundStatement delete(int partitionKey, org.apache.kafka.common.utils.Bytes key)- Specified by:
deletein interfacedev.responsive.kafka.internal.db.RemoteTable<org.apache.kafka.common.utils.Bytes>
-
get
public byte[] get(int partition, org.apache.kafka.common.utils.Bytes key, long minValidTs)- Specified by:
getin interfacedev.responsive.kafka.internal.db.RemoteKVTable
-
range
public org.apache.kafka.streams.state.KeyValueIterator<org.apache.kafka.common.utils.Bytes,byte[]> range(int partition, org.apache.kafka.common.utils.Bytes from, org.apache.kafka.common.utils.Bytes to, long minValidTs)- Specified by:
rangein interfacedev.responsive.kafka.internal.db.RemoteKVTable
-
all
public org.apache.kafka.streams.state.KeyValueIterator<org.apache.kafka.common.utils.Bytes,byte[]> all(int partition, long minValidTs)- Specified by:
allin interfacedev.responsive.kafka.internal.db.RemoteKVTable
-
-