Class OperationUtils
- java.lang.Object
-
- org.apache.flink.table.operations.OperationUtils
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringformatParameter(String name, Object value)static StringformatPartitionSpec(Map<String,String> spec)static StringformatPartitionSpec(org.apache.flink.table.catalog.CatalogPartitionSpec spec)static StringformatProperties(Map<String,String> properties)static StringformatSelectColumns(org.apache.flink.table.catalog.ResolvedSchema schema, String inputAlias)static <T extends Operation>
StringformatWithChildren(String operationName, Map<String,Object> parameters, List<T> children, Function<T,String> childToString)Formats a Tree ofOperationin a unified way.static Stringindent(String item)Increases indentation for description of string of childOperation.
-
-
-
Method Detail
-
indent
public static String indent(String item)
Increases indentation for description of string of childOperation. The input can already contain indentation. This will increase all the indentations by one level.- Parameters:
item- result ofOperation.asSummaryString()- Returns:
- string with increased indentation
-
formatWithChildren
public static <T extends Operation> String formatWithChildren(String operationName, Map<String,Object> parameters, List<T> children, Function<T,String> childToString)
Formats a Tree ofOperationin a unified way. It prints all the parameters and adds all children formatted and properly indented in the following lines.The format is
<operationName>: [(key1: [value1], key2: [v1, v2])] <child1> <child2> <child3>- Type Parameters:
T- The type of the child.- Parameters:
operationName- The operation name.parameters- The operation's parameters.children- The operation's children.childToString- The function to convert child to String.- Returns:
- String representation of the given operation.
-
formatSelectColumns
public static String formatSelectColumns(org.apache.flink.table.catalog.ResolvedSchema schema, @Nullable String inputAlias)
-
formatPartitionSpec
public static String formatPartitionSpec(org.apache.flink.table.catalog.CatalogPartitionSpec spec)
-
-