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 java.lang.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.
Method Summary |
boolean |
equals(MySequenceFile.Metadata other)
|
boolean |
equals(java.lang.Object other)
|
org.apache.hadoop.io.Text |
get(org.apache.hadoop.io.Text name)
|
java.util.TreeMap<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text> |
getMetadata()
|
int |
hashCode()
|
void |
readFields(java.io.DataInput in)
|
void |
set(org.apache.hadoop.io.Text name,
org.apache.hadoop.io.Text value)
|
java.lang.String |
toString()
|
void |
write(java.io.DataOutput out)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
MySequenceFile.Metadata
public MySequenceFile.Metadata()
MySequenceFile.Metadata
public MySequenceFile.Metadata(java.util.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 java.util.TreeMap<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text> getMetadata()
write
public void write(java.io.DataOutput out)
throws java.io.IOException
- Specified by:
write
in interface org.apache.hadoop.io.Writable
- Throws:
java.io.IOException
readFields
public void readFields(java.io.DataInput in)
throws java.io.IOException
- Specified by:
readFields
in interface org.apache.hadoop.io.Writable
- Throws:
java.io.IOException
equals
public boolean equals(MySequenceFile.Metadata other)
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in class java.lang.Object
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 © 2012 The Apache Software Foundation. All Rights Reserved.