public class StorageDescriptor extends Object implements org.apache.thrift.TBase<StorageDescriptor,StorageDescriptor._Fields>, Serializable, Cloneable
Modifier and Type | Class and Description |
---|---|
static class |
StorageDescriptor._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
|
Modifier and Type | Field and Description |
---|---|
static Map<StorageDescriptor._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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() |
SkewedInfo |
getSkewedInfo() |
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 assigned a value) and false otherwise
|
boolean |
isSetBucketCols()
Returns true if field bucketCols is set (has been assigned a value) and false otherwise
|
boolean |
isSetCols()
Returns true if field cols is set (has been assigned a value) and false otherwise
|
boolean |
isSetCompressed()
Returns true if field compressed is set (has been assigned a value) and false otherwise
|
boolean |
isSetInputFormat()
Returns true if field inputFormat is set (has been assigned a value) and false otherwise
|
boolean |
isSetLocation()
Returns true if field location is set (has been assigned a value) and false otherwise
|
boolean |
isSetNumBuckets()
Returns true if field numBuckets is set (has been assigned a value) and false otherwise
|
boolean |
isSetOutputFormat()
Returns true if field outputFormat is set (has been assigned a value) and false otherwise
|
boolean |
isSetParameters()
Returns true if field parameters is set (has been assigned a value) and false otherwise
|
boolean |
isSetSerdeInfo()
Returns true if field serdeInfo is set (has been assigned a value) and false otherwise
|
boolean |
isSetSkewedInfo()
Returns true if field skewedInfo is set (has been assigned a value) and false otherwise
|
boolean |
isSetSortCols()
Returns true if field sortCols is set (has been assigned a value) and false otherwise
|
boolean |
isSetStoredAsSubDirectories()
Returns true if field storedAsSubDirectories is set (has been assigned a value) and false otherwise
|
boolean |
isStoredAsSubDirectories() |
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 |
setSkewedInfo(SkewedInfo skewedInfo) |
void |
setSkewedInfoIsSet(boolean value) |
void |
setSortCols(List<Order> sortCols) |
void |
setSortColsIsSet(boolean value) |
void |
setStoredAsSubDirectories(boolean storedAsSubDirectories) |
void |
setStoredAsSubDirectoriesIsSet(boolean value) |
String |
toString() |
void |
unsetBucketCols() |
void |
unsetCols() |
void |
unsetCompressed() |
void |
unsetInputFormat() |
void |
unsetLocation() |
void |
unsetNumBuckets() |
void |
unsetOutputFormat() |
void |
unsetParameters() |
void |
unsetSerdeInfo() |
void |
unsetSkewedInfo() |
void |
unsetSortCols() |
void |
unsetStoredAsSubDirectories() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public static final Map<StorageDescriptor._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public 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)
public StorageDescriptor(StorageDescriptor other)
public StorageDescriptor deepCopy()
deepCopy
in interface org.apache.thrift.TBase<StorageDescriptor,StorageDescriptor._Fields>
public void clear()
clear
in interface org.apache.thrift.TBase<StorageDescriptor,StorageDescriptor._Fields>
public int getColsSize()
public Iterator<FieldSchema> getColsIterator()
public void addToCols(FieldSchema elem)
public List<FieldSchema> getCols()
public void setCols(List<FieldSchema> cols)
public void unsetCols()
public boolean isSetCols()
public void setColsIsSet(boolean value)
public String getLocation()
public void setLocation(String location)
public void unsetLocation()
public boolean isSetLocation()
public void setLocationIsSet(boolean value)
public String getInputFormat()
public void setInputFormat(String inputFormat)
public void unsetInputFormat()
public boolean isSetInputFormat()
public void setInputFormatIsSet(boolean value)
public String getOutputFormat()
public void setOutputFormat(String outputFormat)
public void unsetOutputFormat()
public boolean isSetOutputFormat()
public void setOutputFormatIsSet(boolean value)
public boolean isCompressed()
public void setCompressed(boolean compressed)
public void unsetCompressed()
public boolean isSetCompressed()
public void setCompressedIsSet(boolean value)
public int getNumBuckets()
public void setNumBuckets(int numBuckets)
public void unsetNumBuckets()
public boolean isSetNumBuckets()
public void setNumBucketsIsSet(boolean value)
public SerDeInfo getSerdeInfo()
public void setSerdeInfo(SerDeInfo serdeInfo)
public void unsetSerdeInfo()
public boolean isSetSerdeInfo()
public void setSerdeInfoIsSet(boolean value)
public int getBucketColsSize()
public void addToBucketCols(String elem)
public void unsetBucketCols()
public boolean isSetBucketCols()
public void setBucketColsIsSet(boolean value)
public int getSortColsSize()
public void addToSortCols(Order elem)
public void unsetSortCols()
public boolean isSetSortCols()
public void setSortColsIsSet(boolean value)
public int getParametersSize()
public void unsetParameters()
public boolean isSetParameters()
public void setParametersIsSet(boolean value)
public SkewedInfo getSkewedInfo()
public void setSkewedInfo(SkewedInfo skewedInfo)
public void unsetSkewedInfo()
public boolean isSetSkewedInfo()
public void setSkewedInfoIsSet(boolean value)
public boolean isStoredAsSubDirectories()
public void setStoredAsSubDirectories(boolean storedAsSubDirectories)
public void unsetStoredAsSubDirectories()
public boolean isSetStoredAsSubDirectories()
public void setStoredAsSubDirectoriesIsSet(boolean value)
public void setFieldValue(StorageDescriptor._Fields field, Object value)
setFieldValue
in interface org.apache.thrift.TBase<StorageDescriptor,StorageDescriptor._Fields>
public Object getFieldValue(StorageDescriptor._Fields field)
getFieldValue
in interface org.apache.thrift.TBase<StorageDescriptor,StorageDescriptor._Fields>
public boolean isSet(StorageDescriptor._Fields field)
isSet
in interface org.apache.thrift.TBase<StorageDescriptor,StorageDescriptor._Fields>
public boolean equals(StorageDescriptor that)
public int compareTo(StorageDescriptor other)
compareTo
in interface Comparable<StorageDescriptor>
public StorageDescriptor._Fields fieldForId(int fieldId)
fieldForId
in interface org.apache.thrift.TBase<StorageDescriptor,StorageDescriptor._Fields>
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
read
in interface org.apache.thrift.TBase<StorageDescriptor,StorageDescriptor._Fields>
org.apache.thrift.TException
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException
write
in interface org.apache.thrift.TBase<StorageDescriptor,StorageDescriptor._Fields>
org.apache.thrift.TException
public void validate() throws org.apache.thrift.TException
org.apache.thrift.TException
Copyright © 2017 The Apache Software Foundation. All rights reserved.