Modifier and Type | Method and Description |
---|---|
static String |
formatParameter(String name,
Object value) |
static String |
formatPartitionSpec(CatalogPartitionSpec spec) |
static String |
formatProperties(Map<String,String> properties) |
static <T extends Operation> |
formatWithChildren(String operationName,
Map<String,Object> parameters,
List<T> children,
Function<T,String> childToString)
Formats a Tree of
Operation in a unified way. |
public static <T extends Operation> String formatWithChildren(String operationName, Map<String,Object> parameters, List<T> children, Function<T,String> childToString)
Operation
in 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>
T
- The type of the child.operationName
- The operation name.parameters
- The operation's parameters.children
- The operation's children.childToString
- The function to convert child to String.public static String formatPartitionSpec(CatalogPartitionSpec spec)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.