Package org.apache.hadoop.io
Class SequenceFile.Metadata
java.lang.Object
org.apache.hadoop.io.SequenceFile.Metadata
- All Implemented Interfaces:
Writable
- Enclosing class:
- SequenceFile
The class encapsulating with the metadata of a file.
The metadata of a file is a list of attribute name/value
pairs of Text type.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanequals(SequenceFile.Metadata other) inthashCode()voidreadFields(DataInput in) Deserialize the fields of this object fromin.voidtoString()voidwrite(DataOutput out) Serialize the fields of this object toout.
-
Constructor Details
-
Metadata
public Metadata() -
Metadata
-
-
Method Details
-
get
-
set
-
getMetadata
-
write
Description copied from interface:WritableSerialize the fields of this object toout.- Specified by:
writein interfaceWritable- Parameters:
out-DataOuputto serialize this object into.- Throws:
IOException- any other problem for write.
-
readFields
Description copied from interface:WritableDeserialize the fields of this object fromin.For efficiency, implementations should attempt to re-use storage in the existing object where possible.
- Specified by:
readFieldsin interfaceWritable- Parameters:
in-DataInputto deseriablize this object from.- Throws:
IOException- any other problem for readFields.
-
equals
-
equals
-
hashCode
public int hashCode() -
toString
-