@ThriftService(value="presto",
idlName="PrestoThriftService")
public interface PrestoThriftService
| Modifier and Type | Method and Description |
|---|---|
com.google.common.util.concurrent.ListenableFuture<PrestoThriftSplitBatch> |
getIndexSplits(PrestoThriftSchemaTableName schemaTableName,
List<String> indexColumnNames,
List<String> outputColumnNames,
PrestoThriftPageResult keys,
PrestoThriftTupleDomain outputConstraint,
int maxSplitCount,
PrestoThriftNullableToken nextToken)
Returns a batch of index splits for the given batch of keys.
|
com.google.common.util.concurrent.ListenableFuture<PrestoThriftPageResult> |
getRows(PrestoThriftId splitId,
List<String> columns,
long maxBytes,
PrestoThriftNullableToken nextToken)
Returns a batch of rows for the given split.
|
com.google.common.util.concurrent.ListenableFuture<PrestoThriftSplitBatch> |
getSplits(PrestoThriftSchemaTableName schemaTableName,
PrestoThriftNullableColumnSet desiredColumns,
PrestoThriftTupleDomain outputConstraint,
int maxSplitCount,
PrestoThriftNullableToken nextToken)
Returns a batch of splits.
|
PrestoThriftNullableTableMetadata |
getTableMetadata(PrestoThriftSchemaTableName schemaTableName)
Returns metadata for a given table.
|
List<String> |
listSchemaNames()
Returns available schema names.
|
List<PrestoThriftSchemaTableName> |
listTables(PrestoThriftNullableSchemaName schemaNameOrNull)
Returns tables for the given schema name.
|
@ThriftMethod(value="prestoListSchemaNames") List<String> listSchemaNames() throws PrestoThriftServiceException, com.facebook.drift.TException
PrestoThriftServiceExceptioncom.facebook.drift.TException@ThriftMethod(value="prestoListTables") List<PrestoThriftSchemaTableName> listTables(@ThriftField(name="schemaNameOrNull") PrestoThriftNullableSchemaName schemaNameOrNull) throws PrestoThriftServiceException, com.facebook.drift.TException
schemaNameOrNull - a structure containing schema name or nullPrestoThriftServiceExceptioncom.facebook.drift.TException@ThriftMethod(value="prestoGetTableMetadata") PrestoThriftNullableTableMetadata getTableMetadata(@ThriftField(name="schemaTableName") PrestoThriftSchemaTableName schemaTableName) throws PrestoThriftServiceException, com.facebook.drift.TException
schemaTableName - schema and table namePrestoThriftServiceExceptioncom.facebook.drift.TException@ThriftMethod(value="prestoGetSplits",
exception=@ThriftException(type=PrestoThriftServiceException.class,id=1))
com.google.common.util.concurrent.ListenableFuture<PrestoThriftSplitBatch> getSplits(@ThriftField(name="schemaTableName")
PrestoThriftSchemaTableName schemaTableName,
@ThriftField(name="desiredColumns")
PrestoThriftNullableColumnSet desiredColumns,
@ThriftField(name="outputConstraint")
PrestoThriftTupleDomain outputConstraint,
@ThriftField(name="maxSplitCount")
int maxSplitCount,
@ThriftField(name="nextToken")
PrestoThriftNullableToken nextToken)
schemaTableName - schema and table namedesiredColumns - a superset of columns to return; empty set means "no columns", null set means "all columns"outputConstraint - constraint on the returned datamaxSplitCount - maximum number of splits to returnnextToken - token from a previous split batch or null if it is the first call@ThriftMethod(value="prestoGetIndexSplits",
exception=@ThriftException(type=PrestoThriftServiceException.class,id=1))
com.google.common.util.concurrent.ListenableFuture<PrestoThriftSplitBatch> getIndexSplits(@ThriftField(name="schemaTableName")
PrestoThriftSchemaTableName schemaTableName,
@ThriftField(name="indexColumnNames")
List<String> indexColumnNames,
@ThriftField(name="outputColumnNames")
List<String> outputColumnNames,
@ThriftField(name="keys")
PrestoThriftPageResult keys,
@ThriftField(name="outputConstraint")
PrestoThriftTupleDomain outputConstraint,
@ThriftField(name="maxSplitCount")
int maxSplitCount,
@ThriftField(name="nextToken")
PrestoThriftNullableToken nextToken)
schemaTableName - schema and table nameindexColumnNames - specifies columns and their order for keysoutputColumnNames - a list of column names to returnkeys - keys for which records need to be returned; includes only unique and non-null valuesoutputConstraint - constraint on the returned datamaxSplitCount - maximum number of splits to returnnextToken - token from a previous split batch or null if it is the first call@ThriftMethod(value="prestoGetRows",
exception=@ThriftException(type=PrestoThriftServiceException.class,id=1))
com.google.common.util.concurrent.ListenableFuture<PrestoThriftPageResult> getRows(@ThriftField(name="splitId")
PrestoThriftId splitId,
@ThriftField(name="columns")
List<String> columns,
@ThriftField(name="maxBytes")
long maxBytes,
@ThriftField(name="nextToken")
PrestoThriftNullableToken nextToken)
splitId - split id as returned in split batchcolumns - a list of column names to returnmaxBytes - maximum size of returned data in bytesnextToken - token from a previous batch or null if it is the first callCopyright © 2012–2023. All rights reserved.