public class ColumnMetaData extends Object implements org.apache.thrift.TBase<ColumnMetaData,ColumnMetaData._Fields>, Serializable, Cloneable, Comparable<ColumnMetaData>
Modifier and Type | Class and Description |
---|---|
static class |
ColumnMetaData._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
|
Modifier and Type | Field and Description |
---|---|
CompressionCodec |
codec
Compression codec *
|
long |
data_page_offset
Byte offset from beginning of file to first data page *
|
long |
dictionary_page_offset
Byte offset from the beginning of file to first (only) dictionary page *
|
List<Encoding> |
encodings
Set of all encodings used for this column.
|
long |
index_page_offset
Byte offset from beginning of file to root index page *
|
List<KeyValue> |
key_value_metadata
Optional key/value metadata *
|
static Map<ColumnMetaData._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
long |
num_values
Number of values in this column *
|
List<String> |
path_in_schema
Path in schema *
|
Statistics |
statistics
optional statistics for this column chunk
|
long |
total_compressed_size
total byte size of all compressed pages in this column chunk (including the headers) *
|
long |
total_uncompressed_size
total byte size of all uncompressed pages in this column chunk (including the headers) *
|
Type |
type
Type of this column *
|
Constructor and Description |
---|
ColumnMetaData() |
ColumnMetaData(ColumnMetaData other)
Performs a deep copy on other.
|
ColumnMetaData(Type type,
List<Encoding> encodings,
List<String> path_in_schema,
CompressionCodec codec,
long num_values,
long total_uncompressed_size,
long total_compressed_size,
long data_page_offset) |
Modifier and Type | Method and Description |
---|---|
void |
addToEncodings(Encoding elem) |
void |
addToKey_value_metadata(KeyValue elem) |
void |
addToPath_in_schema(String elem) |
void |
clear() |
int |
compareTo(ColumnMetaData other) |
ColumnMetaData |
deepCopy() |
boolean |
equals(ColumnMetaData that) |
boolean |
equals(Object that) |
ColumnMetaData._Fields |
fieldForId(int fieldId) |
CompressionCodec |
getCodec()
Compression codec *
|
long |
getData_page_offset()
Byte offset from beginning of file to first data page *
|
long |
getDictionary_page_offset()
Byte offset from the beginning of file to first (only) dictionary page *
|
List<Encoding> |
getEncodings()
Set of all encodings used for this column.
|
Iterator<Encoding> |
getEncodingsIterator() |
int |
getEncodingsSize() |
Object |
getFieldValue(ColumnMetaData._Fields field) |
long |
getIndex_page_offset()
Byte offset from beginning of file to root index page *
|
List<KeyValue> |
getKey_value_metadata()
Optional key/value metadata *
|
Iterator<KeyValue> |
getKey_value_metadataIterator() |
int |
getKey_value_metadataSize() |
long |
getNum_values()
Number of values in this column *
|
List<String> |
getPath_in_schema()
Path in schema *
|
Iterator<String> |
getPath_in_schemaIterator() |
int |
getPath_in_schemaSize() |
Statistics |
getStatistics()
optional statistics for this column chunk
|
long |
getTotal_compressed_size()
total byte size of all compressed pages in this column chunk (including the headers) *
|
long |
getTotal_uncompressed_size()
total byte size of all uncompressed pages in this column chunk (including the headers) *
|
Type |
getType()
Type of this column *
|
int |
hashCode() |
boolean |
isSet(ColumnMetaData._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
|
boolean |
isSetCodec()
Returns true if field codec is set (has been assigned a value) and false otherwise
|
boolean |
isSetData_page_offset()
Returns true if field data_page_offset is set (has been assigned a value) and false otherwise
|
boolean |
isSetDictionary_page_offset()
Returns true if field dictionary_page_offset is set (has been assigned a value) and false otherwise
|
boolean |
isSetEncodings()
Returns true if field encodings is set (has been assigned a value) and false otherwise
|
boolean |
isSetIndex_page_offset()
Returns true if field index_page_offset is set (has been assigned a value) and false otherwise
|
boolean |
isSetKey_value_metadata()
Returns true if field key_value_metadata is set (has been assigned a value) and false otherwise
|
boolean |
isSetNum_values()
Returns true if field num_values is set (has been assigned a value) and false otherwise
|
boolean |
isSetPath_in_schema()
Returns true if field path_in_schema is set (has been assigned a value) and false otherwise
|
boolean |
isSetStatistics()
Returns true if field statistics is set (has been assigned a value) and false otherwise
|
boolean |
isSetTotal_compressed_size()
Returns true if field total_compressed_size is set (has been assigned a value) and false otherwise
|
boolean |
isSetTotal_uncompressed_size()
Returns true if field total_uncompressed_size is set (has been assigned a value) and false otherwise
|
boolean |
isSetType()
Returns true if field type is set (has been assigned a value) and false otherwise
|
void |
read(org.apache.thrift.protocol.TProtocol iprot) |
ColumnMetaData |
setCodec(CompressionCodec codec)
Compression codec *
|
void |
setCodecIsSet(boolean value) |
ColumnMetaData |
setData_page_offset(long data_page_offset)
Byte offset from beginning of file to first data page *
|
void |
setData_page_offsetIsSet(boolean value) |
ColumnMetaData |
setDictionary_page_offset(long dictionary_page_offset)
Byte offset from the beginning of file to first (only) dictionary page *
|
void |
setDictionary_page_offsetIsSet(boolean value) |
ColumnMetaData |
setEncodings(List<Encoding> encodings)
Set of all encodings used for this column.
|
void |
setEncodingsIsSet(boolean value) |
void |
setFieldValue(ColumnMetaData._Fields field,
Object value) |
ColumnMetaData |
setIndex_page_offset(long index_page_offset)
Byte offset from beginning of file to root index page *
|
void |
setIndex_page_offsetIsSet(boolean value) |
ColumnMetaData |
setKey_value_metadata(List<KeyValue> key_value_metadata)
Optional key/value metadata *
|
void |
setKey_value_metadataIsSet(boolean value) |
ColumnMetaData |
setNum_values(long num_values)
Number of values in this column *
|
void |
setNum_valuesIsSet(boolean value) |
ColumnMetaData |
setPath_in_schema(List<String> path_in_schema)
Path in schema *
|
void |
setPath_in_schemaIsSet(boolean value) |
ColumnMetaData |
setStatistics(Statistics statistics)
optional statistics for this column chunk
|
void |
setStatisticsIsSet(boolean value) |
ColumnMetaData |
setTotal_compressed_size(long total_compressed_size)
total byte size of all compressed pages in this column chunk (including the headers) *
|
void |
setTotal_compressed_sizeIsSet(boolean value) |
ColumnMetaData |
setTotal_uncompressed_size(long total_uncompressed_size)
total byte size of all uncompressed pages in this column chunk (including the headers) *
|
void |
setTotal_uncompressed_sizeIsSet(boolean value) |
ColumnMetaData |
setType(Type type)
Type of this column *
|
void |
setTypeIsSet(boolean value) |
String |
toString() |
void |
unsetCodec() |
void |
unsetData_page_offset() |
void |
unsetDictionary_page_offset() |
void |
unsetEncodings() |
void |
unsetIndex_page_offset() |
void |
unsetKey_value_metadata() |
void |
unsetNum_values() |
void |
unsetPath_in_schema() |
void |
unsetStatistics() |
void |
unsetTotal_compressed_size() |
void |
unsetTotal_uncompressed_size() |
void |
unsetType() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public List<Encoding> encodings
public CompressionCodec codec
CompressionCodec
public long num_values
public long total_uncompressed_size
public long total_compressed_size
public long data_page_offset
public long index_page_offset
public long dictionary_page_offset
public Statistics statistics
public static final Map<ColumnMetaData._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public ColumnMetaData()
public ColumnMetaData(Type type, List<Encoding> encodings, List<String> path_in_schema, CompressionCodec codec, long num_values, long total_uncompressed_size, long total_compressed_size, long data_page_offset)
public ColumnMetaData(ColumnMetaData other)
public ColumnMetaData deepCopy()
deepCopy
in interface org.apache.thrift.TBase<ColumnMetaData,ColumnMetaData._Fields>
public void clear()
clear
in interface org.apache.thrift.TBase<ColumnMetaData,ColumnMetaData._Fields>
public ColumnMetaData setType(Type type)
Type
public void unsetType()
public boolean isSetType()
public void setTypeIsSet(boolean value)
public int getEncodingsSize()
public void addToEncodings(Encoding elem)
public List<Encoding> getEncodings()
public ColumnMetaData setEncodings(List<Encoding> encodings)
public void unsetEncodings()
public boolean isSetEncodings()
public void setEncodingsIsSet(boolean value)
public int getPath_in_schemaSize()
public void addToPath_in_schema(String elem)
public ColumnMetaData setPath_in_schema(List<String> path_in_schema)
public void unsetPath_in_schema()
public boolean isSetPath_in_schema()
public void setPath_in_schemaIsSet(boolean value)
public CompressionCodec getCodec()
CompressionCodec
public ColumnMetaData setCodec(CompressionCodec codec)
CompressionCodec
public void unsetCodec()
public boolean isSetCodec()
public void setCodecIsSet(boolean value)
public long getNum_values()
public ColumnMetaData setNum_values(long num_values)
public void unsetNum_values()
public boolean isSetNum_values()
public void setNum_valuesIsSet(boolean value)
public long getTotal_uncompressed_size()
public ColumnMetaData setTotal_uncompressed_size(long total_uncompressed_size)
public void unsetTotal_uncompressed_size()
public boolean isSetTotal_uncompressed_size()
public void setTotal_uncompressed_sizeIsSet(boolean value)
public long getTotal_compressed_size()
public ColumnMetaData setTotal_compressed_size(long total_compressed_size)
public void unsetTotal_compressed_size()
public boolean isSetTotal_compressed_size()
public void setTotal_compressed_sizeIsSet(boolean value)
public int getKey_value_metadataSize()
public void addToKey_value_metadata(KeyValue elem)
public ColumnMetaData setKey_value_metadata(List<KeyValue> key_value_metadata)
public void unsetKey_value_metadata()
public boolean isSetKey_value_metadata()
public void setKey_value_metadataIsSet(boolean value)
public long getData_page_offset()
public ColumnMetaData setData_page_offset(long data_page_offset)
public void unsetData_page_offset()
public boolean isSetData_page_offset()
public void setData_page_offsetIsSet(boolean value)
public long getIndex_page_offset()
public ColumnMetaData setIndex_page_offset(long index_page_offset)
public void unsetIndex_page_offset()
public boolean isSetIndex_page_offset()
public void setIndex_page_offsetIsSet(boolean value)
public long getDictionary_page_offset()
public ColumnMetaData setDictionary_page_offset(long dictionary_page_offset)
public void unsetDictionary_page_offset()
public boolean isSetDictionary_page_offset()
public void setDictionary_page_offsetIsSet(boolean value)
public Statistics getStatistics()
public ColumnMetaData setStatistics(Statistics statistics)
public void unsetStatistics()
public boolean isSetStatistics()
public void setStatisticsIsSet(boolean value)
public void setFieldValue(ColumnMetaData._Fields field, Object value)
setFieldValue
in interface org.apache.thrift.TBase<ColumnMetaData,ColumnMetaData._Fields>
public Object getFieldValue(ColumnMetaData._Fields field)
getFieldValue
in interface org.apache.thrift.TBase<ColumnMetaData,ColumnMetaData._Fields>
public boolean isSet(ColumnMetaData._Fields field)
isSet
in interface org.apache.thrift.TBase<ColumnMetaData,ColumnMetaData._Fields>
public boolean equals(ColumnMetaData that)
public int compareTo(ColumnMetaData other)
compareTo
in interface Comparable<ColumnMetaData>
public ColumnMetaData._Fields fieldForId(int fieldId)
fieldForId
in interface org.apache.thrift.TBase<ColumnMetaData,ColumnMetaData._Fields>
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
read
in interface org.apache.thrift.TBase<ColumnMetaData,ColumnMetaData._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<ColumnMetaData,ColumnMetaData._Fields>
org.apache.thrift.TException
public void validate() throws org.apache.thrift.TException
org.apache.thrift.TException
Copyright © 2015. All rights reserved.