@Generated(value="Autogenerated by Thrift Compiler (0.16.0)") @InterfaceAudience.Public @InterfaceStability.Stable 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 |
|---|---|
static Map<FileMetadata._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
| Constructor and Description |
|---|
FileMetadata() |
FileMetadata(byte type,
byte version,
List<ByteBuffer> data) |
FileMetadata(FileMetadata other)
Performs a deep copy on other.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addToData(ByteBuffer elem) |
void |
clear() |
int |
compareTo(FileMetadata other) |
FileMetadata |
deepCopy() |
boolean |
equals(FileMetadata that) |
boolean |
equals(Object that) |
FileMetadata._Fields |
fieldForId(int fieldId) |
List<ByteBuffer> |
getData() |
Iterator<ByteBuffer> |
getDataIterator() |
int |
getDataSize() |
Object |
getFieldValue(FileMetadata._Fields field) |
byte |
getType() |
byte |
getVersion() |
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 |
isSetData()
Returns true if field data 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
|
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) |
void |
setData(List<ByteBuffer> data) |
void |
setDataIsSet(boolean value) |
void |
setFieldValue(FileMetadata._Fields field,
Object value) |
void |
setType(byte type) |
void |
setTypeIsSet(boolean value) |
void |
setVersion(byte version) |
void |
setVersionIsSet(boolean value) |
String |
toString() |
void |
unsetData() |
void |
unsetType() |
void |
unsetVersion() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public static final Map<FileMetadata._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public FileMetadata()
public FileMetadata(byte type,
byte version,
List<ByteBuffer> data)
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 byte getType()
public void setType(byte type)
public void unsetType()
public boolean isSetType()
public void setTypeIsSet(boolean value)
public byte getVersion()
public void setVersion(byte version)
public void unsetVersion()
public boolean isSetVersion()
public void setVersionIsSet(boolean value)
public int getDataSize()
public Iterator<ByteBuffer> getDataIterator()
public void addToData(ByteBuffer elem)
public List<ByteBuffer> getData()
public void setData(List<ByteBuffer> data)
public void unsetData()
public boolean isSetData()
public void setDataIsSet(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.TSerializableorg.apache.thrift.TExceptionpublic void write(org.apache.thrift.protocol.TProtocol oprot)
throws org.apache.thrift.TException
write in interface org.apache.thrift.TSerializableorg.apache.thrift.TExceptionpublic void validate()
throws org.apache.thrift.TException
org.apache.thrift.TExceptionCopyright © 2024 The Apache Software Foundation. All rights reserved.