Package io.deephaven.server.table.ops
Class HeadOrTailGrpcImpl
java.lang.Object
io.deephaven.server.table.ops.GrpcTableOperation<HeadOrTailRequest>
io.deephaven.server.table.ops.HeadOrTailGrpcImpl
- Direct Known Subclasses:
HeadOrTailGrpcImpl.HeadGrpcImpl
,HeadOrTailGrpcImpl.TailGrpcImpl
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
protected static interface
static class
Nested classes/interfaces inherited from class io.deephaven.server.table.ops.GrpcTableOperation
GrpcTableOperation.MultiDependencyFunction<T>, GrpcTableOperation.PermissionFunction<T>
-
Constructor Summary
ModifierConstructorDescriptionprotected
HeadOrTailGrpcImpl
(GrpcTableOperation.PermissionFunction<HeadOrTailRequest> permission, Function<BatchTableRequest.Operation, HeadOrTailRequest> getRequest, HeadOrTailGrpcImpl.RealTableOperation realTableOperation) -
Method Summary
Modifier and TypeMethodDescriptioncreate
(HeadOrTailRequest request, List<SessionState.ExportObject<Table>> sourceTables) This actually performs the operation.void
validateRequest
(HeadOrTailRequest request) This method validates preconditions of the request.Methods inherited from class io.deephaven.server.table.ops.GrpcTableOperation
checkPermission, getRequestFromOperation, getResultTicket, getTableReferences
-
Constructor Details
-
HeadOrTailGrpcImpl
protected HeadOrTailGrpcImpl(GrpcTableOperation.PermissionFunction<HeadOrTailRequest> permission, Function<BatchTableRequest.Operation, HeadOrTailRequest> getRequest, HeadOrTailGrpcImpl.RealTableOperation realTableOperation)
-
-
Method Details
-
validateRequest
Description copied from class:GrpcTableOperation
This method validates preconditions of the request.- Overrides:
validateRequest
in classGrpcTableOperation<HeadOrTailRequest>
- Parameters:
request
- the original request from the user- Throws:
io.grpc.StatusRuntimeException
- on the first failed precondition
-
create
Description copied from class:GrpcTableOperation
This actually performs the operation. It will typically be performed after the- Specified by:
create
in classGrpcTableOperation<HeadOrTailRequest>
- Parameters:
request
- the original request from the usersourceTables
- the source tables that this operation may or may not need- Returns:
- the resulting table
-