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, Comparable<StorageDescriptor>, org.apache.thrift.TBase<StorageDescriptor,StorageDescriptor._Fields>

public class StorageDescriptor
extends Object
implements org.apache.thrift.TBase<StorageDescriptor,StorageDescriptor._Fields>, Serializable, Cloneable

See Also:
Serialized Form

Nested Class Summary
static class StorageDescriptor._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
static Map<StorageDescriptor._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 
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)
           
 void clear()
           
 int compareTo(StorageDescriptor other)
           
 StorageDescriptor deepCopy()
           
 boolean equals(Object that)
           
 boolean equals(StorageDescriptor that)
           
 StorageDescriptor._Fields fieldForId(int fieldId)
           
 List<String> getBucketCols()
           
 Iterator<String> getBucketColsIterator()
           
 int getBucketColsSize()
           
 List<FieldSchema> getCols()
           
 Iterator<FieldSchema> getColsIterator()
           
 int getColsSize()
           
 Object getFieldValue(StorageDescriptor._Fields field)
           
 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(StorageDescriptor._Fields field)
          Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise
 boolean isSetBucketCols()
          Returns true if field bucketCols is set (has been asigned a value) and false otherwise
 boolean isSetCols()
          Returns true if field cols is set (has been asigned a value) and false otherwise
 boolean isSetCompressed()
          Returns true if field compressed is set (has been asigned a value) and false otherwise
 boolean isSetInputFormat()
          Returns true if field inputFormat is set (has been asigned a value) and false otherwise
 boolean isSetLocation()
          Returns true if field location is set (has been asigned a value) and false otherwise
 boolean isSetNumBuckets()
          Returns true if field numBuckets is set (has been asigned a value) and false otherwise
 boolean isSetOutputFormat()
          Returns true if field outputFormat is set (has been asigned a value) and false otherwise
 boolean isSetParameters()
          Returns true if field parameters is set (has been asigned a value) and false otherwise
 boolean isSetSerdeInfo()
          Returns true if field serdeInfo is set (has been asigned a value) and false otherwise
 boolean isSetSortCols()
          Returns true if field sortCols is set (has been asigned a value) and false otherwise
 void putToParameters(String key, String val)
           
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 void setBucketCols(List<String> bucketCols)
           
 void setBucketColsIsSet(boolean value)
           
 void setCols(List<FieldSchema> cols)
           
 void setColsIsSet(boolean value)
           
 void setCompressed(boolean compressed)
           
 void setCompressedIsSet(boolean value)
           
 void setFieldValue(StorageDescriptor._Fields field, Object value)
           
 void setInputFormat(String inputFormat)
           
 void setInputFormatIsSet(boolean value)
           
 void setLocation(String location)
           
 void setLocationIsSet(boolean value)
           
 void setNumBuckets(int numBuckets)
           
 void setNumBucketsIsSet(boolean value)
           
 void setOutputFormat(String outputFormat)
           
 void setOutputFormatIsSet(boolean value)
           
 void setParameters(Map<String,String> parameters)
           
 void setParametersIsSet(boolean value)
           
 void setSerdeInfo(SerDeInfo serdeInfo)
           
 void setSerdeInfoIsSet(boolean value)
           
 void setSortCols(List<Order> sortCols)
           
 void setSortColsIsSet(boolean value)
           
 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
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

metaDataMap

public static final Map<StorageDescriptor._Fields,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

deepCopy

public StorageDescriptor deepCopy()
Specified by:
deepCopy in interface org.apache.thrift.TBase<StorageDescriptor,StorageDescriptor._Fields>

clear

public void clear()
Specified by:
clear in interface org.apache.thrift.TBase<StorageDescriptor,StorageDescriptor._Fields>

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()
Returns true if field cols is set (has been asigned a value) and false otherwise


setColsIsSet

public void setColsIsSet(boolean value)

getLocation

public String getLocation()

setLocation

public void setLocation(String location)

unsetLocation

public void unsetLocation()

isSetLocation

public boolean isSetLocation()
Returns true if field location is set (has been asigned a value) and false otherwise


setLocationIsSet

public void setLocationIsSet(boolean value)

getInputFormat

public String getInputFormat()

setInputFormat

public void setInputFormat(String inputFormat)

unsetInputFormat

public void unsetInputFormat()

isSetInputFormat

public boolean isSetInputFormat()
Returns true if field inputFormat is set (has been asigned a value) and false otherwise


setInputFormatIsSet

public void setInputFormatIsSet(boolean value)

getOutputFormat

public String getOutputFormat()

setOutputFormat

public void setOutputFormat(String outputFormat)

unsetOutputFormat

public void unsetOutputFormat()

isSetOutputFormat

public boolean isSetOutputFormat()
Returns true if field outputFormat is set (has been asigned a value) and false otherwise


setOutputFormatIsSet

public void setOutputFormatIsSet(boolean value)

isCompressed

public boolean isCompressed()

setCompressed

public void setCompressed(boolean compressed)

unsetCompressed

public void unsetCompressed()

isSetCompressed

public boolean isSetCompressed()
Returns true if field compressed is set (has been asigned a value) and false otherwise


setCompressedIsSet

public void setCompressedIsSet(boolean value)

getNumBuckets

public int getNumBuckets()

setNumBuckets

public void setNumBuckets(int numBuckets)

unsetNumBuckets

public void unsetNumBuckets()

isSetNumBuckets

public boolean isSetNumBuckets()
Returns true if field numBuckets is set (has been asigned a value) and false otherwise


setNumBucketsIsSet

public void setNumBucketsIsSet(boolean value)

getSerdeInfo

public SerDeInfo getSerdeInfo()

setSerdeInfo

public void setSerdeInfo(SerDeInfo serdeInfo)

unsetSerdeInfo

public void unsetSerdeInfo()

isSetSerdeInfo

public boolean isSetSerdeInfo()
Returns true if field serdeInfo is set (has been asigned a value) and false otherwise


setSerdeInfoIsSet

public void setSerdeInfoIsSet(boolean value)

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()
Returns true if field bucketCols is set (has been asigned a value) and false otherwise


setBucketColsIsSet

public void setBucketColsIsSet(boolean value)

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()
Returns true if field sortCols is set (has been asigned a value) and false otherwise


setSortColsIsSet

public void setSortColsIsSet(boolean value)

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()
Returns true if field parameters is set (has been asigned a value) and false otherwise


setParametersIsSet

public void setParametersIsSet(boolean value)

setFieldValue

public void setFieldValue(StorageDescriptor._Fields field,
                          Object value)
Specified by:
setFieldValue in interface org.apache.thrift.TBase<StorageDescriptor,StorageDescriptor._Fields>

getFieldValue

public Object getFieldValue(StorageDescriptor._Fields field)
Specified by:
getFieldValue in interface org.apache.thrift.TBase<StorageDescriptor,StorageDescriptor._Fields>

isSet

public boolean isSet(StorageDescriptor._Fields field)
Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise

Specified by:
isSet in interface org.apache.thrift.TBase<StorageDescriptor,StorageDescriptor._Fields>

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

compareTo

public int compareTo(StorageDescriptor other)
Specified by:
compareTo in interface Comparable<StorageDescriptor>

fieldForId

public StorageDescriptor._Fields fieldForId(int fieldId)
Specified by:
fieldForId in interface org.apache.thrift.TBase<StorageDescriptor,StorageDescriptor._Fields>

read

public void read(org.apache.thrift.protocol.TProtocol iprot)
          throws org.apache.thrift.TException
Specified by:
read in interface org.apache.thrift.TBase<StorageDescriptor,StorageDescriptor._Fields>
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<StorageDescriptor,StorageDescriptor._Fields>
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 © 2011 The Apache Software Foundation