@Generated(value="Autogenerated by Thrift Compiler (0.9.3)", date="2018-03-29") public class FileMetaData extends Object implements org.apache.thrift.TBase<FileMetaData,FileMetaData._Fields>, Serializable, Cloneable, Comparable<FileMetaData>
Modifier and Type | Class and Description |
---|---|
static class |
FileMetaData._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
|
Modifier and Type | Field and Description |
---|---|
List<ColumnOrder> |
column_orders
Sort order used for the min_value and max_value fields of each column in
this file.
|
String |
created_by
String for application that wrote this file.
|
List<KeyValue> |
key_value_metadata
Optional key/value metadata *
|
static Map<FileMetaData._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
long |
num_rows
Number of rows in this file *
|
List<RowGroup> |
row_groups
Row groups in this file *
|
List<SchemaElement> |
schema
Parquet schema for this file.
|
int |
version
Version of this file *
|
Constructor and Description |
---|
FileMetaData() |
FileMetaData(FileMetaData other)
Performs a deep copy on other.
|
FileMetaData(int version,
List<SchemaElement> schema,
long num_rows,
List<RowGroup> row_groups) |
Modifier and Type | Method and Description |
---|---|
void |
addToColumn_orders(ColumnOrder elem) |
void |
addToKey_value_metadata(KeyValue elem) |
void |
addToRow_groups(RowGroup elem) |
void |
addToSchema(SchemaElement elem) |
void |
clear() |
int |
compareTo(FileMetaData other) |
FileMetaData |
deepCopy() |
boolean |
equals(FileMetaData that) |
boolean |
equals(Object that) |
FileMetaData._Fields |
fieldForId(int fieldId) |
List<ColumnOrder> |
getColumn_orders()
Sort order used for the min_value and max_value fields of each column in
this file.
|
Iterator<ColumnOrder> |
getColumn_ordersIterator() |
int |
getColumn_ordersSize() |
String |
getCreated_by()
String for application that wrote this file.
|
Object |
getFieldValue(FileMetaData._Fields field) |
List<KeyValue> |
getKey_value_metadata()
Optional key/value metadata *
|
Iterator<KeyValue> |
getKey_value_metadataIterator() |
int |
getKey_value_metadataSize() |
long |
getNum_rows()
Number of rows in this file *
|
List<RowGroup> |
getRow_groups()
Row groups in this file *
|
Iterator<RowGroup> |
getRow_groupsIterator() |
int |
getRow_groupsSize() |
List<SchemaElement> |
getSchema()
Parquet schema for this file.
|
Iterator<SchemaElement> |
getSchemaIterator() |
int |
getSchemaSize() |
int |
getVersion()
Version of this file *
|
int |
hashCode() |
boolean |
isSet(FileMetaData._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
|
boolean |
isSetColumn_orders()
Returns true if field column_orders is set (has been assigned a value) and false otherwise
|
boolean |
isSetCreated_by()
Returns true if field created_by 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_rows()
Returns true if field num_rows is set (has been assigned a value) and false otherwise
|
boolean |
isSetRow_groups()
Returns true if field row_groups is set (has been assigned a value) and false otherwise
|
boolean |
isSetSchema()
Returns true if field schema is set (has been assigned a value) and false otherwise
|
boolean |
isSetVersion()
Returns true if field version is set (has been assigned a value) and false otherwise
|
void |
read(org.apache.thrift.protocol.TProtocol iprot) |
FileMetaData |
setColumn_orders(List<ColumnOrder> column_orders)
Sort order used for the min_value and max_value fields of each column in
this file.
|
void |
setColumn_ordersIsSet(boolean value) |
FileMetaData |
setCreated_by(String created_by)
String for application that wrote this file.
|
void |
setCreated_byIsSet(boolean value) |
void |
setFieldValue(FileMetaData._Fields field,
Object value) |
FileMetaData |
setKey_value_metadata(List<KeyValue> key_value_metadata)
Optional key/value metadata *
|
void |
setKey_value_metadataIsSet(boolean value) |
FileMetaData |
setNum_rows(long num_rows)
Number of rows in this file *
|
void |
setNum_rowsIsSet(boolean value) |
FileMetaData |
setRow_groups(List<RowGroup> row_groups)
Row groups in this file *
|
void |
setRow_groupsIsSet(boolean value) |
FileMetaData |
setSchema(List<SchemaElement> schema)
Parquet schema for this file.
|
void |
setSchemaIsSet(boolean value) |
FileMetaData |
setVersion(int version)
Version of this file *
|
void |
setVersionIsSet(boolean value) |
String |
toString() |
void |
unsetColumn_orders() |
void |
unsetCreated_by() |
void |
unsetKey_value_metadata() |
void |
unsetNum_rows() |
void |
unsetRow_groups() |
void |
unsetSchema() |
void |
unsetVersion() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public int version
public List<SchemaElement> schema
public long num_rows
public String created_by
public List<ColumnOrder> column_orders
public static final Map<FileMetaData._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public FileMetaData()
public FileMetaData(int version, List<SchemaElement> schema, long num_rows, List<RowGroup> row_groups)
public FileMetaData(FileMetaData other)
public FileMetaData deepCopy()
deepCopy
in interface org.apache.thrift.TBase<FileMetaData,FileMetaData._Fields>
public void clear()
clear
in interface org.apache.thrift.TBase<FileMetaData,FileMetaData._Fields>
public int getVersion()
public FileMetaData setVersion(int version)
public void unsetVersion()
public boolean isSetVersion()
public void setVersionIsSet(boolean value)
public int getSchemaSize()
public Iterator<SchemaElement> getSchemaIterator()
public void addToSchema(SchemaElement elem)
public List<SchemaElement> getSchema()
public FileMetaData setSchema(List<SchemaElement> schema)
public void unsetSchema()
public boolean isSetSchema()
public void setSchemaIsSet(boolean value)
public long getNum_rows()
public FileMetaData setNum_rows(long num_rows)
public void unsetNum_rows()
public boolean isSetNum_rows()
public void setNum_rowsIsSet(boolean value)
public int getRow_groupsSize()
public void addToRow_groups(RowGroup elem)
public FileMetaData setRow_groups(List<RowGroup> row_groups)
public void unsetRow_groups()
public boolean isSetRow_groups()
public void setRow_groupsIsSet(boolean value)
public int getKey_value_metadataSize()
public void addToKey_value_metadata(KeyValue elem)
public FileMetaData 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 String getCreated_by()
public FileMetaData setCreated_by(String created_by)
public void unsetCreated_by()
public boolean isSetCreated_by()
public void setCreated_byIsSet(boolean value)
public int getColumn_ordersSize()
public Iterator<ColumnOrder> getColumn_ordersIterator()
public void addToColumn_orders(ColumnOrder elem)
public List<ColumnOrder> getColumn_orders()
public FileMetaData setColumn_orders(List<ColumnOrder> column_orders)
public void unsetColumn_orders()
public boolean isSetColumn_orders()
public void setColumn_ordersIsSet(boolean value)
public void setFieldValue(FileMetaData._Fields field, Object value)
setFieldValue
in interface org.apache.thrift.TBase<FileMetaData,FileMetaData._Fields>
public Object getFieldValue(FileMetaData._Fields field)
getFieldValue
in interface org.apache.thrift.TBase<FileMetaData,FileMetaData._Fields>
public boolean isSet(FileMetaData._Fields field)
isSet
in interface org.apache.thrift.TBase<FileMetaData,FileMetaData._Fields>
public boolean equals(FileMetaData that)
public int compareTo(FileMetaData other)
compareTo
in interface Comparable<FileMetaData>
public FileMetaData._Fields fieldForId(int fieldId)
fieldForId
in interface org.apache.thrift.TBase<FileMetaData,FileMetaData._Fields>
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
read
in interface org.apache.thrift.TBase<FileMetaData,FileMetaData._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<FileMetaData,FileMetaData._Fields>
org.apache.thrift.TException
public void validate() throws org.apache.thrift.TException
org.apache.thrift.TException
Copyright © 2018 The Apache Software Foundation. All rights reserved.