Interface QueryOperation
-
- All Superinterfaces:
Operation
- All Known Implementing Classes:
AggregateQueryOperation,CorrelatedFunctionQueryOperation,DistinctQueryOperation,FilterQueryOperation,FunctionQueryOperation,JoinQueryOperation,PartitionQueryOperation,ProjectQueryOperation,SetQueryOperation,SortQueryOperation,SourceQueryOperation,TableSourceQueryOperation,ValuesQueryOperation,WindowAggregateQueryOperation
@PublicEvolving public interface QueryOperation extends Operation
Base class for representing an operation structure behind a user-facingTableAPI.It represents an operation that can be a node of a relational query. It has a schema, that can be used to validate a
QueryOperationapplied on top of this one.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default <T> Taccept(QueryOperationVisitor<T> visitor)default StringasSerializableString()Returns a SQL string that fully serializes this instance.default StringasSerializableString(org.apache.flink.table.expressions.SqlFactory sqlFactory)Returns a SQL string that fully serializes this instance.List<QueryOperation>getChildren()org.apache.flink.table.catalog.ResolvedSchemagetResolvedSchema()Resolved schema of this operation.-
Methods inherited from interface org.apache.flink.table.operations.Operation
asSummaryString
-
-
-
-
Method Detail
-
getResolvedSchema
org.apache.flink.table.catalog.ResolvedSchema getResolvedSchema()
Resolved schema of this operation.
-
asSerializableString
default String asSerializableString()
Returns a SQL string that fully serializes this instance. The serialized string can be used for storing the query in e.g. aCatalogas a view.- Returns:
- detailed string for persisting in a catalog
- See Also:
Operation.asSummaryString()
-
asSerializableString
default String asSerializableString(org.apache.flink.table.expressions.SqlFactory sqlFactory)
Returns a SQL string that fully serializes this instance. The serialized string can be used for storing the query in e.g. aCatalogas a view.- Parameters:
sqlFactory- can be used to customize the serialization to a SQL string- Returns:
- Flink SQL string for persisting in a catalog
- See Also:
Operation.asSummaryString(),EnvironmentSettings.Builder.withSqlFactory(SqlFactory)
-
getChildren
List<QueryOperation> getChildren()
-
accept
default <T> T accept(QueryOperationVisitor<T> visitor)
-
-