org.apache.accumulo.core.file.map
Class MySequenceFile.Metadata
java.lang.Object
org.apache.accumulo.core.file.map.MySequenceFile.Metadata
- All Implemented Interfaces:
- org.apache.hadoop.io.Writable
- Enclosing class:
- MySequenceFile
public static class MySequenceFile.Metadata
- extends Object
- implements org.apache.hadoop.io.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.
MySequenceFile.Metadata
public MySequenceFile.Metadata()
MySequenceFile.Metadata
public MySequenceFile.Metadata(TreeMap<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text> arg)
get
public org.apache.hadoop.io.Text get(org.apache.hadoop.io.Text name)
set
public void set(org.apache.hadoop.io.Text name,
org.apache.hadoop.io.Text value)
getMetadata
public TreeMap<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text> getMetadata()
write
public void write(DataOutput out)
throws IOException
- Specified by:
write
in interface org.apache.hadoop.io.Writable
- Throws:
IOException
readFields
public void readFields(DataInput in)
throws IOException
- Specified by:
readFields
in interface org.apache.hadoop.io.Writable
- Throws:
IOException
equals
public boolean equals(MySequenceFile.Metadata other)
equals
public boolean equals(Object other)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.