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-facingTable
API.It represents an operation that can be a node of a relational query. It has a schema, that can be used to validate a
QueryOperation
applied on top of this one.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default <T> T
accept(QueryOperationVisitor<T> visitor)
default String
asSerializableString()
Returns a SQL string that fully serializes this instance.default String
asSerializableString(org.apache.flink.table.expressions.SqlFactory sqlFactory)
Returns a SQL string that fully serializes this instance.List<QueryOperation>
getChildren()
org.apache.flink.table.catalog.ResolvedSchema
getResolvedSchema()
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. aCatalog
as 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. aCatalog
as 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)
-
-