|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.hpi.fgis.voidgen.hadoop.datatypes.StringArrayWritableComparable
public class StringArrayWritableComparable
Encapsulates reading and writing String arrays in Hadoop sequence files.
Field Summary | |
---|---|
protected java.lang.String[] |
values
The String values. |
Constructor Summary | |
---|---|
StringArrayWritableComparable()
Default Constructor. |
|
StringArrayWritableComparable(int size)
Constructor specifying the size of the array. |
Method Summary | |
---|---|
int |
compareTo(StringArrayWritableComparable arg0)
|
boolean |
equals(java.lang.Object obj)
|
int |
hashCode()
|
void |
readFields(java.io.DataInput arg0)
|
void |
set(int index,
java.lang.String value)
Sets the value at the given index. |
java.lang.String |
toString()
|
void |
write(java.io.DataOutput arg0)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.String[] values
Constructor Detail |
---|
public StringArrayWritableComparable()
public StringArrayWritableComparable(int size)
size
- the size of the array.Method Detail |
---|
public void readFields(java.io.DataInput arg0) throws java.io.IOException
readFields
in interface org.apache.hadoop.io.Writable
java.io.IOException
public void write(java.io.DataOutput arg0) throws java.io.IOException
write
in interface org.apache.hadoop.io.Writable
java.io.IOException
public int compareTo(StringArrayWritableComparable arg0)
compareTo
in interface java.lang.Comparable<StringArrayWritableComparable>
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public void set(int index, java.lang.String value)
index
- The index of the value to set (overwrite).value
- The value to set.
java.lang.ArrayIndexOutOfBoundsException
- if the index is out of rangepublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |