Class PartitionInfo

  • All Implemented Interfaces:
    java.io.Serializable

    public class PartitionInfo
    extends java.lang.Object
    implements java.io.Serializable
    Metadata about a partition in Alluxio catalog service.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String PARQUET_COMPRESSION
      Key in Serde Properties to denote parquet compression method.
    • Constructor Summary

      Constructors 
      Constructor Description
      PartitionInfo​(java.lang.String serdeClass, java.lang.String inputFormatClass, java.util.HashMap<java.lang.String,​java.lang.String> serdeProperties, java.util.HashMap<java.lang.String,​java.lang.String> tableProperties, java.util.ArrayList<FieldSchema> fields)  
    • Field Detail

      • PARQUET_COMPRESSION

        public static final java.lang.String PARQUET_COMPRESSION
        Key in Serde Properties to denote parquet compression method.
        See Also:
        Constant Field Values
    • Constructor Detail

      • PartitionInfo

        public PartitionInfo​(java.lang.String serdeClass,
                             java.lang.String inputFormatClass,
                             java.util.HashMap<java.lang.String,​java.lang.String> serdeProperties,
                             java.util.HashMap<java.lang.String,​java.lang.String> tableProperties,
                             java.util.ArrayList<FieldSchema> fields)
        Parameters:
        serdeClass - the full serde class name
        inputFormatClass - the full input format class name
        serdeProperties - the serde Properties
        tableProperties - the table Properties
        fields - the fields
    • Method Detail

      • getFormat

        public Format getFormat​(java.lang.String filename)
                         throws java.io.IOException
        Parameters:
        filename - the filename
        Returns:
        the format of the files in the partition
        Throws:
        java.io.IOException - when failed to determine format
      • getInputFormatClass

        public java.lang.String getInputFormatClass()
        Returns:
        the input format class name
      • getSerdeClass

        public java.lang.String getSerdeClass()
        Returns:
        the serde class name
      • getSerdeProperties

        public java.util.HashMap<java.lang.String,​java.lang.String> getSerdeProperties()
        Returns:
        the serde properties
      • getTableProperties

        public java.util.HashMap<java.lang.String,​java.lang.String> getTableProperties()
        Returns:
        the table properties
      • getFields

        public java.util.ArrayList<FieldSchema> getFields()
        Returns:
        the fields
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object