Package org.vitrivr.cottontail.grpc
Class DMLGrpc.DMLFutureStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractFutureStub<DMLGrpc.DMLFutureStub>
org.vitrivr.cottontail.grpc.DMLGrpc.DMLFutureStub
- Enclosing class:
- DMLGrpc
public static final class DMLGrpc.DMLFutureStub
extends io.grpc.stub.AbstractFutureStub<DMLGrpc.DMLFutureStub>
A stub to allow clients to do ListenableFuture-style rpc calls to service DML.
Endpoint for data management (INSERT, UPDATE and DELETE).
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateDMLFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) -
Method Summary
Modifier and TypeMethodDescriptionprotected DMLGrpc.DMLFutureStubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) com.google.common.util.concurrent.ListenableFuture<CottontailGrpc.QueryResponseMessage>delete(CottontailGrpc.DeleteMessage request) Deletes data from an entity.com.google.common.util.concurrent.ListenableFuture<CottontailGrpc.QueryResponseMessage>insert(CottontailGrpc.InsertMessage request) Inserts data into an entity.com.google.common.util.concurrent.ListenableFuture<CottontailGrpc.QueryResponseMessage>Inserts data into an entity in batches! InsertMessages are collected until Cottontail DBs cache is saturated and then persisted in one go.com.google.common.util.concurrent.ListenableFuture<CottontailGrpc.QueryResponseMessage>update(CottontailGrpc.UpdateMessage request) Updates data in an entity.Methods inherited from class io.grpc.stub.AbstractFutureStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOption, withWaitForReady
-
Constructor Details
-
DMLFutureStub
private DMLFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
-
-
Method Details
-
build
- Specified by:
buildin classio.grpc.stub.AbstractStub<DMLGrpc.DMLFutureStub>
-
insert
public com.google.common.util.concurrent.ListenableFuture<CottontailGrpc.QueryResponseMessage> insert(CottontailGrpc.InsertMessage request) Inserts data into an entity. Each INSERT returns a record with a status.
-
insertBatch
public com.google.common.util.concurrent.ListenableFuture<CottontailGrpc.QueryResponseMessage> insertBatch(CottontailGrpc.BatchInsertMessage request) Inserts data into an entity in batches! InsertMessages are collected until Cottontail DBs cache is saturated and then persisted in one go.
-
update
public com.google.common.util.concurrent.ListenableFuture<CottontailGrpc.QueryResponseMessage> update(CottontailGrpc.UpdateMessage request) Updates data in an entity. Each UPDATE returns a record with a status.
-
delete
public com.google.common.util.concurrent.ListenableFuture<CottontailGrpc.QueryResponseMessage> delete(CottontailGrpc.DeleteMessage request) Deletes data from an entity. Each DELETE returns a record with a status.
-