Package org.vitrivr.cottontail.grpc
Class DMLGrpc.DMLStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractAsyncStub<DMLGrpc.DMLStub>
org.vitrivr.cottontail.grpc.DMLGrpc.DMLStub
- Enclosing class:
- DMLGrpc
A stub to allow clients to do asynchronous 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
ConstructorsModifierConstructorDescriptionprivateDMLStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) -
Method Summary
Modifier and TypeMethodDescriptionprotected DMLGrpc.DMLStubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) voiddelete(CottontailGrpc.DeleteMessage request, io.grpc.stub.StreamObserver<CottontailGrpc.QueryResponseMessage> responseObserver) Deletes data from an entity.voidinsert(CottontailGrpc.InsertMessage request, io.grpc.stub.StreamObserver<CottontailGrpc.QueryResponseMessage> responseObserver) Inserts data into an entity.voidinsertBatch(CottontailGrpc.BatchInsertMessage request, io.grpc.stub.StreamObserver<CottontailGrpc.QueryResponseMessage> responseObserver) Inserts data into an entity in batches! InsertMessages are collected until Cottontail DBs cache is saturated and then persisted in one go.voidupdate(CottontailGrpc.UpdateMessage request, io.grpc.stub.StreamObserver<CottontailGrpc.QueryResponseMessage> responseObserver) Updates data in an entity.Methods inherited from class io.grpc.stub.AbstractAsyncStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOption, withWaitForReady
-
Constructor Details
-
DMLStub
private DMLStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
-
-
Method Details
-
build
- Specified by:
buildin classio.grpc.stub.AbstractStub<DMLGrpc.DMLStub>
-
insert
public void insert(CottontailGrpc.InsertMessage request, io.grpc.stub.StreamObserver<CottontailGrpc.QueryResponseMessage> responseObserver) Inserts data into an entity. Each INSERT returns a record with a status.
-
insertBatch
public void insertBatch(CottontailGrpc.BatchInsertMessage request, io.grpc.stub.StreamObserver<CottontailGrpc.QueryResponseMessage> responseObserver) Inserts data into an entity in batches! InsertMessages are collected until Cottontail DBs cache is saturated and then persisted in one go.
-
update
public void update(CottontailGrpc.UpdateMessage request, io.grpc.stub.StreamObserver<CottontailGrpc.QueryResponseMessage> responseObserver) Updates data in an entity. Each UPDATE returns a record with a status.
-
delete
public void delete(CottontailGrpc.DeleteMessage request, io.grpc.stub.StreamObserver<CottontailGrpc.QueryResponseMessage> responseObserver) Deletes data from an entity. Each DELETE returns a record with a status.
-