org.apache.hadoop.hive.metastore.api
Class StorageDescriptor

java.lang.Object
  extended by 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

Field Summary
static int BUCKETCOLS
           
static int COLS
           
static int COMPRESSED
           
static int INPUTFORMAT
           
static int LOCATION
           
static Map<Integer,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
static int NUMBUCKETS
           
static int OUTPUTFORMAT
           
static int PARAMETERS
           
static int SERDEINFO
           
static int SORTCOLS
           
 
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.
 
Method Summary
 void addToBucketCols(String elem)
           
 void addToCols(FieldSchema elem)
           
 void addToSortCols(Order elem)
           
 StorageDescriptor clone()
           
 boolean equals(Object that)
           
 boolean equals(StorageDescriptor that)
           
 List<String> getBucketCols()
           
 Iterator<String> getBucketColsIterator()
           
 int getBucketColsSize()
           
 List<FieldSchema> getCols()
           
 Iterator<FieldSchema> getColsIterator()
           
 int getColsSize()
           
 Object getFieldValue(int fieldID)
           
 String getInputFormat()
           
 String getLocation()
           
 int getNumBuckets()
           
 String getOutputFormat()
           
 Map<String,String> getParameters()
           
 int getParametersSize()
           
 SerDeInfo getSerdeInfo()
           
 List<Order> getSortCols()
           
 Iterator<Order> getSortColsIterator()
           
 int getSortColsSize()
           
 int hashCode()
           
 boolean isCompressed()
           
 boolean isSet(int fieldID)
           
 boolean isSetBucketCols()
           
 boolean isSetCols()
           
 boolean isSetCompressed()
           
 boolean isSetInputFormat()
           
 boolean isSetLocation()
           
 boolean isSetNumBuckets()
           
 boolean isSetOutputFormat()
           
 boolean isSetParameters()
           
 boolean isSetSerdeInfo()
           
 boolean isSetSortCols()
           
 void putToParameters(String key, String val)
           
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 void setBucketCols(List<String> bucketCols)
           
 void setCols(List<FieldSchema> cols)
           
 void setCompressed(boolean compressed)
           
 void setFieldValue(int fieldID, Object value)
           
 void setInputFormat(String inputFormat)
           
 void setLocation(String location)
           
 void setNumBuckets(int numBuckets)
           
 void setOutputFormat(String outputFormat)
           
 void setParameters(Map<String,String> parameters)
           
 void setSerdeInfo(SerDeInfo serdeInfo)
           
 void setSortCols(List<Order> sortCols)
           
 String toString()
           
 void unsetBucketCols()
           
 void unsetCols()
           
 void unsetCompressed()
           
 void unsetInputFormat()
           
 void unsetLocation()
           
 void unsetNumBuckets()
           
 void unsetOutputFormat()
           
 void unsetParameters()
           
 void unsetSerdeInfo()
           
 void unsetSortCols()
           
 void validate()
           
 void write(org.apache.thrift.protocol.TProtocol oprot)
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

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.

Method Detail

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 © 2010 The Apache Software Foundation