@Internal public class DataSetQueryOperation<E> extends Object implements QueryOperation
DataSet
.
This operation may expose only part, or change the order of the fields available in a
CompositeType
of the underlying DataSet
.
The getFieldIndices()
describes the mapping between fields of the
TableSchema
to the CompositeType
.
Constructor and Description |
---|
DataSetQueryOperation(DataSet<E> dataSet,
int[] fieldIndices,
TableSchema tableSchema) |
Modifier and Type | Method and Description |
---|---|
<T> T |
accept(QueryOperationVisitor<T> visitor) |
String |
asSummaryString()
Returns a string that summarizes this operation for printing to a console.
|
List<QueryOperation> |
getChildren() |
DataSet<E> |
getDataSet() |
int[] |
getFieldIndices() |
TableSchema |
getTableSchema()
Resolved schema of this operation.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asSerializableString
public DataSetQueryOperation(DataSet<E> dataSet, int[] fieldIndices, TableSchema tableSchema)
public int[] getFieldIndices()
public TableSchema getTableSchema()
QueryOperation
getTableSchema
in interface QueryOperation
public String asSummaryString()
Operation
asSummaryString
in interface Operation
public List<QueryOperation> getChildren()
getChildren
in interface QueryOperation
public <T> T accept(QueryOperationVisitor<T> visitor)
accept
in interface QueryOperation
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.