org.apache.hadoop.hive.metastore.api
Class StorageDescriptor
java.lang.Object
org.apache.hadoop.hive.metastore.api.StorageDescriptor
- All Implemented Interfaces:
- Serializable, Cloneable, org.apache.thrift.TBase
public class StorageDescriptor
- extends Object
- implements org.apache.thrift.TBase, Serializable, Cloneable
- See Also:
- Serialized Form
Constructor Summary |
StorageDescriptor()
|
StorageDescriptor(List<FieldSchema> cols,
String location,
String inputFormat,
String outputFormat,
boolean compressed,
int numBuckets,
SerDeInfo serdeInfo,
List<String> bucketCols,
List<Order> sortCols,
Map<String,String> parameters)
|
StorageDescriptor(StorageDescriptor other)
Performs a deep copy on other. |
COLS
public static final int COLS
- See Also:
- Constant Field Values
LOCATION
public static final int LOCATION
- See Also:
- Constant Field Values
INPUTFORMAT
public static final int INPUTFORMAT
- See Also:
- Constant Field Values
OUTPUTFORMAT
public static final int OUTPUTFORMAT
- See Also:
- Constant Field Values
COMPRESSED
public static final int COMPRESSED
- See Also:
- Constant Field Values
NUMBUCKETS
public static final int NUMBUCKETS
- See Also:
- Constant Field Values
SERDEINFO
public static final int SERDEINFO
- See Also:
- Constant Field Values
BUCKETCOLS
public static final int BUCKETCOLS
- See Also:
- Constant Field Values
SORTCOLS
public static final int SORTCOLS
- See Also:
- Constant Field Values
PARAMETERS
public static final int PARAMETERS
- See Also:
- Constant Field Values
metaDataMap
public static final Map<Integer,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
StorageDescriptor
public StorageDescriptor()
StorageDescriptor
public StorageDescriptor(List<FieldSchema> cols,
String location,
String inputFormat,
String outputFormat,
boolean compressed,
int numBuckets,
SerDeInfo serdeInfo,
List<String> bucketCols,
List<Order> sortCols,
Map<String,String> parameters)
StorageDescriptor
public StorageDescriptor(StorageDescriptor other)
- Performs a deep copy on other.
clone
public StorageDescriptor clone()
- Overrides:
clone
in class Object
getColsSize
public int getColsSize()
getColsIterator
public Iterator<FieldSchema> getColsIterator()
addToCols
public void addToCols(FieldSchema elem)
getCols
public List<FieldSchema> getCols()
setCols
public void setCols(List<FieldSchema> cols)
unsetCols
public void unsetCols()
isSetCols
public boolean isSetCols()
getLocation
public String getLocation()
setLocation
public void setLocation(String location)
unsetLocation
public void unsetLocation()
isSetLocation
public boolean isSetLocation()
getInputFormat
public String getInputFormat()
setInputFormat
public void setInputFormat(String inputFormat)
unsetInputFormat
public void unsetInputFormat()
isSetInputFormat
public boolean isSetInputFormat()
getOutputFormat
public String getOutputFormat()
setOutputFormat
public void setOutputFormat(String outputFormat)
unsetOutputFormat
public void unsetOutputFormat()
isSetOutputFormat
public boolean isSetOutputFormat()
isCompressed
public boolean isCompressed()
setCompressed
public void setCompressed(boolean compressed)
unsetCompressed
public void unsetCompressed()
isSetCompressed
public boolean isSetCompressed()
getNumBuckets
public int getNumBuckets()
setNumBuckets
public void setNumBuckets(int numBuckets)
unsetNumBuckets
public void unsetNumBuckets()
isSetNumBuckets
public boolean isSetNumBuckets()
getSerdeInfo
public SerDeInfo getSerdeInfo()
setSerdeInfo
public void setSerdeInfo(SerDeInfo serdeInfo)
unsetSerdeInfo
public void unsetSerdeInfo()
isSetSerdeInfo
public boolean isSetSerdeInfo()
getBucketColsSize
public int getBucketColsSize()
getBucketColsIterator
public Iterator<String> getBucketColsIterator()
addToBucketCols
public void addToBucketCols(String elem)
getBucketCols
public List<String> getBucketCols()
setBucketCols
public void setBucketCols(List<String> bucketCols)
unsetBucketCols
public void unsetBucketCols()
isSetBucketCols
public boolean isSetBucketCols()
getSortColsSize
public int getSortColsSize()
getSortColsIterator
public Iterator<Order> getSortColsIterator()
addToSortCols
public void addToSortCols(Order elem)
getSortCols
public List<Order> getSortCols()
setSortCols
public void setSortCols(List<Order> sortCols)
unsetSortCols
public void unsetSortCols()
isSetSortCols
public boolean isSetSortCols()
getParametersSize
public int getParametersSize()
putToParameters
public void putToParameters(String key,
String val)
getParameters
public Map<String,String> getParameters()
setParameters
public void setParameters(Map<String,String> parameters)
unsetParameters
public void unsetParameters()
isSetParameters
public boolean isSetParameters()
setFieldValue
public void setFieldValue(int fieldID,
Object value)
- Specified by:
setFieldValue
in interface org.apache.thrift.TBase
getFieldValue
public Object getFieldValue(int fieldID)
- Specified by:
getFieldValue
in interface org.apache.thrift.TBase
isSet
public boolean isSet(int fieldID)
- Specified by:
isSet
in interface org.apache.thrift.TBase
equals
public boolean equals(Object that)
- Overrides:
equals
in class Object
equals
public boolean equals(StorageDescriptor that)
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
read
public void read(org.apache.thrift.protocol.TProtocol iprot)
throws org.apache.thrift.TException
- Specified by:
read
in interface org.apache.thrift.TBase
- Throws:
org.apache.thrift.TException
write
public void write(org.apache.thrift.protocol.TProtocol oprot)
throws org.apache.thrift.TException
- Specified by:
write
in interface org.apache.thrift.TBase
- Throws:
org.apache.thrift.TException
toString
public String toString()
- Overrides:
toString
in class Object
validate
public void validate()
throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
Copyright © 2009 The Apache Software Foundation