Package net.snowflake.ingest.utils
Class SubColumnFinder
- java.lang.Object
-
- net.snowflake.ingest.utils.SubColumnFinder
-
public class SubColumnFinder extends Object
Helper class to find all leaf columns in an immutable schema given a fieldId.
-
-
Constructor Summary
Constructors Constructor Description SubColumnFinder(org.apache.parquet.schema.MessageType schema)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDotPath(org.apache.parquet.schema.Type.ID id)
Get the dot path of a node in the schema.List<String>
getPath(org.apache.parquet.schema.Type.ID id)
Get the path of a node in the schema.List<String>
getSubColumns(org.apache.parquet.schema.Type.ID id)
Get all leaf sub-column's field id of a node in the schema.
-
-
-
Method Detail
-
getSubColumns
public List<String> getSubColumns(org.apache.parquet.schema.Type.ID id)
Get all leaf sub-column's field id of a node in the schema.- Parameters:
id
- Field id of the node- Returns:
- List of sub-column's field id
-
getDotPath
public String getDotPath(org.apache.parquet.schema.Type.ID id)
Get the dot path of a node in the schema.- Parameters:
id
- Field ID of the node- Returns:
- Dot path of the node
-
-