public class RecordTypeInfo extends Record
构造器和说明 |
---|
RecordTypeInfo()
Create an empty RecordTypeInfo object.
|
RecordTypeInfo(String name)
Create a RecordTypeInfo object representing a record with the given name
|
限定符和类型 | 方法和说明 |
---|---|
void |
addField(String fieldName,
TypeID tid)
Add a field.
|
int |
compareTo(Object peer_)
This class doesn't implement Comparable as it's not meant to be used
for anything besides de/serializing.
|
void |
deserialize(RecordInput rin,
String tag)
Deserialize the type information for a record
|
Collection<FieldTypeInfo> |
getFieldTypeInfos()
Return a collection of field type infos
|
String |
getName()
return the name of the record
|
RecordTypeInfo |
getNestedStructTypeInfo(String name)
Return the type info of a nested record.
|
void |
serialize(RecordOutput rout,
String tag)
Serialize the type information for a record
|
void |
setName(String name)
set the name of the record
|
deserialize, readFields, serialize, toString, write
public RecordTypeInfo()
public RecordTypeInfo(String name)
name
- Name of the recordpublic String getName()
public void setName(String name)
public void addField(String fieldName, TypeID tid)
fieldName
- Name of the fieldtid
- Type ID of the fieldpublic Collection<FieldTypeInfo> getFieldTypeInfos()
public RecordTypeInfo getNestedStructTypeInfo(String name)
name
- Name of the nested recordpublic void serialize(RecordOutput rout, String tag) throws IOException
serialize
在类中 Record
rout
- Record output destinationtag
- record tag (Used only in tagged serialization e.g. XML)IOException
public void deserialize(RecordInput rin, String tag) throws IOException
deserialize
在类中 Record
rin
- Record input sourcetag
- Record tag (Used only in tagged serialization e.g. XML)IOException
public int compareTo(Object peer_) throws ClassCastException
compareTo
在接口中 Comparable
compareTo
在类中 Record
ClassCastException
Copyright © 2009 The Apache Software Foundation