@Internal public class DataStreamQueryOperation<E> extends Object implements QueryOperation
DataStream
.
This is only used for testing.
This operation may expose only part, or change the order of the fields available in a
CompositeType
of the underlying DataStream
.
The getFieldIndices()
describes the mapping between fields of the
TableSchema
to the CompositeType
.
Constructor and Description |
---|
DataStreamQueryOperation(DataStream<E> dataStream,
int[] fieldIndices,
TableSchema tableSchema,
boolean[] fieldNullables,
boolean producesUpdates,
boolean isAccRetract,
org.apache.flink.table.planner.plan.stats.FlinkStatistic statistic) |
DataStreamQueryOperation(DataStream<E> dataStream,
int[] fieldIndices,
TableSchema tableSchema,
boolean[] fieldNullables,
org.apache.flink.table.planner.plan.stats.FlinkStatistic statistic) |
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() |
DataStream<E> |
getDataStream() |
int[] |
getFieldIndices() |
boolean[] |
getFieldNullables() |
List<String> |
getQualifiedName() |
org.apache.flink.table.planner.plan.stats.FlinkStatistic |
getStatistic() |
TableSchema |
getTableSchema()
Resolved schema of this operation.
|
boolean |
isAccRetract() |
boolean |
isProducesUpdates() |
void |
setQualifiedName(List<String> qualifiedName) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asSerializableString
public DataStreamQueryOperation(DataStream<E> dataStream, int[] fieldIndices, TableSchema tableSchema, boolean[] fieldNullables, boolean producesUpdates, boolean isAccRetract, org.apache.flink.table.planner.plan.stats.FlinkStatistic statistic)
public DataStreamQueryOperation(DataStream<E> dataStream, int[] fieldIndices, TableSchema tableSchema, boolean[] fieldNullables, org.apache.flink.table.planner.plan.stats.FlinkStatistic statistic)
public DataStream<E> getDataStream()
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
public boolean[] getFieldNullables()
public boolean isProducesUpdates()
public boolean isAccRetract()
public org.apache.flink.table.planner.plan.stats.FlinkStatistic getStatistic()
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.