Package com.twicedb.client.api
Interface Client
- All Known Implementing Classes:
ClientImpl
public interface Client
A TwiceDB client. This interface provides the API for storing and retrieving data.
-
Method Summary
Modifier and TypeMethodDescriptioncatchUpLsqt
(Tt catchUpTo, Duration maxWaitDuration) boolean
boolean
commitTxnAsync
(Txn txn) <I extends Indexable<I>>
AggregationResponsecountByIndexedQuery
(IndexedQuery<I> iq, TemporalCoordinates tc) <I extends Indexable<I>>
Future<AggregationResponse>deleteAsync
(ObjectId objectId, Tt lastRead, Vt vtFrom) <I extends Indexable<I>>
WrittenObjectdeleteObject
(I object, Vt vtFrom) <I extends Indexable<I>>
Future<WriteAsyncResponse>deleteObjectAsync
(I object, Vt vtFrom) entitle
(EmailAddress emailAddress, Fqn fqn, ReadEntitlement read, WriteEntitlement write, EntitleEntitlement entitle, Vt vt, BackfillTt backfillTt) getLsqt()
long
getServerStatus
(ServerType serverType) long
<I extends Indexable<I>>
AggregationResponsemaxByIndexedQuery
(IndexedQuery<I> iq, ProjectedFieldKey fieldKey, TemporalCoordinates tc) <I extends Indexable<I>>
Future<AggregationResponse>maxByIndexedQueryAsync
(IndexedQuery<I> iq, ProjectedFieldKey fieldKey, TemporalCoordinates tc) <I extends Indexable<I>>
AggregationResponsemeanByIndexedQuery
(IndexedQuery<I> iq, ProjectedFieldKey fieldKey, TemporalCoordinates tc) <I extends Indexable<I>>
Future<AggregationResponse>meanByIndexedQueryAsync
(IndexedQuery<I> iq, ProjectedFieldKey fieldKey, TemporalCoordinates tc) <I extends Indexable<I>>
AggregationResponsemedianByIndexedQuery
(IndexedQuery<I> iq, ProjectedFieldKey fieldKey, TemporalCoordinates tc) <I extends Indexable<I>>
Future<AggregationResponse>medianByIndexedQueryAsync
(IndexedQuery<I> iq, ProjectedFieldKey fieldKey, TemporalCoordinates tc) <I extends Indexable<I>>
AggregationResponseminByIndexedQuery
(IndexedQuery<I> iq, ProjectedFieldKey fieldKey, TemporalCoordinates tc) <I extends Indexable<I>>
Future<AggregationResponse>minByIndexedQueryAsync
(IndexedQuery<I> iq, ProjectedFieldKey fieldKey, TemporalCoordinates tc) <I extends Indexable<I>>
AggregationResponsepercentileByIndexedQuery
(IndexedQuery<I> iq, ProjectedFieldKey fieldKey, Percentile p, TemporalCoordinates tc) <I extends Indexable<I>>
Future<AggregationResponse>percentileByIndexedQueryAsync
(IndexedQuery<I> iq, ProjectedFieldKey fieldKey, Percentile p, TemporalCoordinates tc) <I extends Indexable<I>>
WrittenObject<I extends Indexable<I>>
Future<WriteAsyncResponse>putObjectAsync
(I object, Vt vtFrom) <E extends Event<E>>
EreadEventAsync
(EventId eventId, Fqn fqn, Tt tt) readEventForObject
(Indexable<I> ixbl) readEventForObjectAsync
(Indexable<I> ixbl) readLsqt()
<I extends Indexable<I>>
ReadObjectreadObject
(I ixbl, TemporalCoordinates tc) <I extends Indexable<I>>
Future<ReadObject>readObjectAsync
(I ixbl, TemporalCoordinates tc) readObjects
(I object, TemporalCoordinates tc) <I extends Indexable<I>>
Future<ReadAsyncResponse>readObjectsAsync
(I object, TemporalCoordinates tc) readObjectsAtTt
(I ixbl, Tt tt) <I extends Indexable<I>>
Future<ReadAsyncResponse>readObjectsAtTtAsync
(I ixbl, Tt tt) readObjectsAtVt
(I ixbl, TemporalCoordinates tc) <I extends Indexable<I>>
Future<ReadAsyncResponse>readObjectsAtVtAsync
(I ixbl, TemporalCoordinates tc) readObjectsByEvent
(E e) readObjectsByFqn
(Fqn fqn, Tt maxSeenTtFrom, TimesliceId maxSeenTimesliceId, Tt maxTtFrom, BatchSize batchSize) <I extends Indexable<I>>
Future<ReadAsyncResponse>readPoint
(ObjectId objectId, TemporalCoordinates tc) readPointAsync
(ObjectId objectId, TemporalCoordinates tc) <I extends Indexable<I>>
WrittenObjectreindexObject
(I ixbl) <I extends Indexable<I>>
Future<WriteAsyncResponse>reindexObjectAsync
(I ixbl) reinstateAsync
(ObjectId objectId, Tt lastRead, Vt vtFrom) <I extends Indexable<I>>
WrittenObjectreinstateObject
(I object, Vt vtFrom) <I extends Indexable<I>>
Future<WriteAsyncResponse>reinstateObjectAsync
(I object, Vt vtFrom) void
start()
<I extends Indexable<I>>
AggregationResponsestdevByIndexedQuery
(IndexedQuery<I> iq, ProjectedFieldKey fieldKey, TemporalCoordinates tc) <I extends Indexable<I>>
Future<AggregationResponse>stdevByIndexedQueryAsync
(IndexedQuery<I> iq, ProjectedFieldKey fieldKey, TemporalCoordinates tc) void
stop()
<I extends Indexable<I>>
voidsubscribeToIndexedQuery
(IndexedQuery<I> iq, Function<SubscribeResponse, Boolean> cback) void
subscribeToObjectId
(ObjectId oid, Function<SubscribeResponse, Boolean> cback) <I extends Indexable<I>>
AggregationResponsesumByIndexedQuery
(IndexedQuery<I> iq, ProjectedFieldKey fieldKey, TemporalCoordinates tc) <I extends Indexable<I>>
Future<AggregationResponse>sumByIndexedQueryAsync
(IndexedQuery<I> iq, ProjectedFieldKey fieldKey, TemporalCoordinates tc) <I extends Indexable<I>>
AggregationResponsevarByIndexedQuery
(IndexedQuery<I> iq, ProjectedFieldKey fieldKey, TemporalCoordinates tc) <I extends Indexable<I>>
Future<AggregationResponse>varByIndexedQueryAsync
(IndexedQuery<I> iq, ProjectedFieldKey fieldKey, TemporalCoordinates tc)
-
Method Details
-
getReadQueueCap
long getReadQueueCap() -
getWriteQueueCap
long getWriteQueueCap() -
getLsqt
Lsqt getLsqt() -
readLsqt
Lsqt readLsqt() -
getMetrics
ClientMetrics getMetrics() -
start
void start() -
stop
void stop() -
checkReader
boolean checkReader() -
checkWriter
boolean checkWriter() -
readEventForObject
-
readEventForObjectAsync
-
readObjectsByEvent
-
readObjectsByEventAsync
-
readObjectsToIndexables
-
commitTxn
-
commitTxnAsync
-
listLockedFqns
-
reindexObject
-
reindexObjectAsync
-
subscribeToIndexedQuery
<I extends Indexable<I>> void subscribeToIndexedQuery(IndexedQuery<I> iq, Function<SubscribeResponse, Boolean> cback)
-