org.apache.hadoop.hbase.io
Class SequenceFile.Metadata

java.lang.Object
  extended by org.apache.hadoop.hbase.io.SequenceFile.Metadata
All Implemented Interfaces:
org.apache.hadoop.io.Writable
Enclosing class:
SequenceFile

public static class SequenceFile.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
SequenceFile.Metadata()
           
SequenceFile.Metadata(TreeMap<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text> arg)
           
 
Method Summary
 boolean equals(SequenceFile.Metadata 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, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SequenceFile.Metadata

public SequenceFile.Metadata()

SequenceFile.Metadata

public SequenceFile.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(SequenceFile.Metadata other)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2008 The Apache Software Foundation