Package alluxio.job.plan.transform
Class PartitionInfo
- java.lang.Object
-
- alluxio.job.plan.transform.PartitionInfo
-
- All Implemented Interfaces:
java.io.Serializable
public class PartitionInfo extends java.lang.Object implements java.io.SerializableMetadata about a partition in Alluxio catalog service.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPARQUET_COMPRESSIONKey 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.util.ArrayList<FieldSchema>getFields()FormatgetFormat(java.lang.String filename)java.lang.StringgetInputFormatClass()java.lang.StringgetSerdeClass()java.util.HashMap<java.lang.String,java.lang.String>getSerdeProperties()java.util.HashMap<java.lang.String,java.lang.String>getTableProperties()inthashCode()java.lang.StringtoString()
-
-
-
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 nameinputFormatClass- the full input format class nameserdeProperties- the serde PropertiestableProperties- the table Propertiesfields- 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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-