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

java.lang.Object
  extended by org.apache.hadoop.hive.metastore.api.StorageDescriptor
All Implemented Interfaces:
com.facebook.thrift.TBase, Serializable

public class StorageDescriptor
extends Object
implements com.facebook.thrift.TBase, Serializable

See Also:
Serialized Form

Nested Class Summary
static class StorageDescriptor.Isset
           
 
Field Summary
 StorageDescriptor.Isset __isset
           
 
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)
           
 
Method Summary
 void addToBucketCols(String elem)
           
 void addToCols(FieldSchema elem)
           
 void addToSortCols(Order elem)
           
 boolean equals(Object that)
           
 boolean equals(StorageDescriptor that)
           
 List<String> getBucketCols()
           
 Iterator<String> getBucketColsIterator()
           
 int getBucketColsSize()
           
 List<FieldSchema> getCols()
           
 Iterator<FieldSchema> getColsIterator()
           
 int getColsSize()
           
 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()
           
 void putToParameters(String key, String val)
           
 void read(com.facebook.thrift.protocol.TProtocol iprot)
           
 void setBucketCols(List<String> bucketCols)
           
 void setCols(List<FieldSchema> cols)
           
 void setCompressed(boolean compressed)
           
 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 write(com.facebook.thrift.protocol.TProtocol oprot)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

__isset

public final StorageDescriptor.Isset __isset
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)
Method Detail

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()

getLocation

public String getLocation()

setLocation

public void setLocation(String location)

unsetLocation

public void unsetLocation()

getInputFormat

public String getInputFormat()

setInputFormat

public void setInputFormat(String inputFormat)

unsetInputFormat

public void unsetInputFormat()

getOutputFormat

public String getOutputFormat()

setOutputFormat

public void setOutputFormat(String outputFormat)

unsetOutputFormat

public void unsetOutputFormat()

isCompressed

public boolean isCompressed()

setCompressed

public void setCompressed(boolean compressed)

unsetCompressed

public void unsetCompressed()

getNumBuckets

public int getNumBuckets()

setNumBuckets

public void setNumBuckets(int numBuckets)

unsetNumBuckets

public void unsetNumBuckets()

getSerdeInfo

public SerDeInfo getSerdeInfo()

setSerdeInfo

public void setSerdeInfo(SerDeInfo serdeInfo)

unsetSerdeInfo

public void unsetSerdeInfo()

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()

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()

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()

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(com.facebook.thrift.protocol.TProtocol iprot)
          throws com.facebook.thrift.TException
Specified by:
read in interface com.facebook.thrift.TBase
Throws:
com.facebook.thrift.TException

write

public void write(com.facebook.thrift.protocol.TProtocol oprot)
           throws com.facebook.thrift.TException
Specified by:
write in interface com.facebook.thrift.TBase
Throws:
com.facebook.thrift.TException

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009 The Apache Software Foundation