public class TableMasterClientServiceHandler extends TableMasterClientServiceGrpc.TableMasterClientServiceImplBase
Constructor and Description |
---|
TableMasterClientServiceHandler(TableMaster tableMaster)
Creates a new instance of
TableMasterClientServiceHandler . |
Modifier and Type | Method and Description |
---|---|
void |
attachDatabase(AttachDatabasePRequest request,
io.grpc.stub.StreamObserver<AttachDatabasePResponse> responseObserver)
Attach an existing database into the catalog as a new database name
|
void |
detachDatabase(DetachDatabasePRequest request,
io.grpc.stub.StreamObserver<DetachDatabasePResponse> responseObserver)
Detach existing database into the catalog, removing any metadata about the table
|
void |
getAllDatabases(GetAllDatabasesPRequest request,
io.grpc.stub.StreamObserver<GetAllDatabasesPResponse> responseObserver)
Returns all databases in the catalog
|
void |
getAllTables(GetAllTablesPRequest request,
io.grpc.stub.StreamObserver<GetAllTablesPResponse> responseObserver)
Returns all tables in the database
|
void |
getDatabase(GetDatabasePRequest request,
io.grpc.stub.StreamObserver<GetDatabasePResponse> responseObserver)
Gets a database by name from the table master
|
void |
getPartitionColumnStatistics(GetPartitionColumnStatisticsPRequest request,
io.grpc.stub.StreamObserver<GetPartitionColumnStatisticsPResponse> responseObserver) |
void |
getTable(GetTablePRequest request,
io.grpc.stub.StreamObserver<GetTablePResponse> responseObserver)
Returns a specific table info
|
void |
getTableColumnStatistics(GetTableColumnStatisticsPRequest request,
io.grpc.stub.StreamObserver<GetTableColumnStatisticsPResponse> responseObserver) |
void |
getTransformJobInfo(GetTransformJobInfoPRequest request,
io.grpc.stub.StreamObserver<GetTransformJobInfoPResponse> responseObserver)
Gets information of transformation jobs.
|
void |
readTable(ReadTablePRequest request,
io.grpc.stub.StreamObserver<ReadTablePResponse> responseObserver) |
void |
syncDatabase(SyncDatabasePRequest request,
io.grpc.stub.StreamObserver<SyncDatabasePResponse> responseObserver)
Sync existing database into the catalog
|
void |
transformTable(TransformTablePRequest request,
io.grpc.stub.StreamObserver<TransformTablePResponse> responseObserver) |
bindService
public TableMasterClientServiceHandler(TableMaster tableMaster)
TableMasterClientServiceHandler
.tableMaster
- the TableMaster
the handler uses internallypublic void attachDatabase(AttachDatabasePRequest request, io.grpc.stub.StreamObserver<AttachDatabasePResponse> responseObserver)
TableMasterClientServiceGrpc.TableMasterClientServiceImplBase
Attach an existing database into the catalog as a new database name
attachDatabase
in class TableMasterClientServiceGrpc.TableMasterClientServiceImplBase
public void detachDatabase(DetachDatabasePRequest request, io.grpc.stub.StreamObserver<DetachDatabasePResponse> responseObserver)
TableMasterClientServiceGrpc.TableMasterClientServiceImplBase
Detach existing database into the catalog, removing any metadata about the table
detachDatabase
in class TableMasterClientServiceGrpc.TableMasterClientServiceImplBase
public void getAllDatabases(GetAllDatabasesPRequest request, io.grpc.stub.StreamObserver<GetAllDatabasesPResponse> responseObserver)
TableMasterClientServiceGrpc.TableMasterClientServiceImplBase
Returns all databases in the catalog
getAllDatabases
in class TableMasterClientServiceGrpc.TableMasterClientServiceImplBase
public void getAllTables(GetAllTablesPRequest request, io.grpc.stub.StreamObserver<GetAllTablesPResponse> responseObserver)
TableMasterClientServiceGrpc.TableMasterClientServiceImplBase
Returns all tables in the database
getAllTables
in class TableMasterClientServiceGrpc.TableMasterClientServiceImplBase
public void getDatabase(GetDatabasePRequest request, io.grpc.stub.StreamObserver<GetDatabasePResponse> responseObserver)
TableMasterClientServiceGrpc.TableMasterClientServiceImplBase
Gets a database by name from the table master
getDatabase
in class TableMasterClientServiceGrpc.TableMasterClientServiceImplBase
public void getTable(GetTablePRequest request, io.grpc.stub.StreamObserver<GetTablePResponse> responseObserver)
TableMasterClientServiceGrpc.TableMasterClientServiceImplBase
Returns a specific table info
getTable
in class TableMasterClientServiceGrpc.TableMasterClientServiceImplBase
public void getTableColumnStatistics(GetTableColumnStatisticsPRequest request, io.grpc.stub.StreamObserver<GetTableColumnStatisticsPResponse> responseObserver)
public void getPartitionColumnStatistics(GetPartitionColumnStatisticsPRequest request, io.grpc.stub.StreamObserver<GetPartitionColumnStatisticsPResponse> responseObserver)
public void readTable(ReadTablePRequest request, io.grpc.stub.StreamObserver<ReadTablePResponse> responseObserver)
readTable
in class TableMasterClientServiceGrpc.TableMasterClientServiceImplBase
public void transformTable(TransformTablePRequest request, io.grpc.stub.StreamObserver<TransformTablePResponse> responseObserver)
transformTable
in class TableMasterClientServiceGrpc.TableMasterClientServiceImplBase
public void syncDatabase(SyncDatabasePRequest request, io.grpc.stub.StreamObserver<SyncDatabasePResponse> responseObserver)
TableMasterClientServiceGrpc.TableMasterClientServiceImplBase
Sync existing database into the catalog
syncDatabase
in class TableMasterClientServiceGrpc.TableMasterClientServiceImplBase
public void getTransformJobInfo(GetTransformJobInfoPRequest request, io.grpc.stub.StreamObserver<GetTransformJobInfoPResponse> responseObserver)
TableMasterClientServiceGrpc.TableMasterClientServiceImplBase
Gets information of transformation jobs. If the job ID exists in the request, the information for that job is returned; Otherwise, information of all the jobs kept in table master will be returned.
getTransformJobInfo
in class TableMasterClientServiceGrpc.TableMasterClientServiceImplBase
Copyright © 2023. All Rights Reserved.