Class SubColumnFinder


  • public class SubColumnFinder
    extends Object
    Helper class to find all leaf columns in an immutable schema given a fieldId.
    • Constructor Detail

      • SubColumnFinder

        public SubColumnFinder​(org.apache.parquet.schema.MessageType 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
      • getPath

        public List<String> getPath​(org.apache.parquet.schema.Type.ID id)
        Get the path of a node in the schema.
        Parameters:
        id - Field ID of the node
        Returns:
        Path of the node