org.apache.hadoop.io
Class SequenceFile.Metadata
java.lang.Object
org.apache.hadoop.io.SequenceFile.Metadata
- All Implemented Interfaces:
- Writable
- Enclosing class:
- SequenceFile
public static class SequenceFile.Metadata
- extends java.lang.Object
- implements Writable
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
SequenceFile.Metadata
public SequenceFile.Metadata()
SequenceFile.Metadata
public SequenceFile.Metadata(java.util.TreeMap<Text,Text> arg)
get
public Text get(Text name)
set
public void set(Text name,
Text value)
getMetadata
public java.util.TreeMap<Text,Text> getMetadata()
write
public void write(java.io.DataOutput out)
throws java.io.IOException
- Description copied from interface:
Writable
- Serialize the fields of this object to
out
.
- Specified by:
write
in interface Writable
- Parameters:
out
- DataOuput
to serialize this object into.
- Throws:
java.io.IOException
readFields
public void readFields(java.io.DataInput in)
throws java.io.IOException
- Description copied from interface:
Writable
- Deserialize the fields of this object from
in
.
For efficiency, implementations should attempt to re-use storage in the
existing object where possible.
- Specified by:
readFields
in interface Writable
- Parameters:
in
- DataInput
to deseriablize this object from.
- Throws:
java.io.IOException
equals
public boolean equals(SequenceFile.Metadata other)
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2009 The Apache Software Foundation