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