org.apache.accumulo.core.file.map
Class MySequenceFile.Metadata

java.lang.Object
  extended by 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.


Constructor Summary
MySequenceFile.Metadata()
           
MySequenceFile.Metadata(TreeMap<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text> arg)
           
 
Method Summary
 boolean equals(MySequenceFile.Metadata other)
           
 boolean equals(Object other)
           
 org.apache.hadoop.io.Text get(org.apache.hadoop.io.Text name)
           
 TreeMap<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text> getMetadata()
           
 int hashCode()
           
 void readFields(DataInput in)
           
 void set(org.apache.hadoop.io.Text name, org.apache.hadoop.io.Text value)
           
 String toString()
           
 void write(DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MySequenceFile.Metadata

public MySequenceFile.Metadata()

MySequenceFile.Metadata

public MySequenceFile.Metadata(TreeMap<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text> arg)
Method Detail

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 © 2014 The Apache Software Foundation. All Rights Reserved.