|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mahout.common.IntegerTuple
public class IntegerTuple
An Ordered List of Integers which can be used in a Hadoop Map/Reduce Job
Constructor Summary | |
---|---|
IntegerTuple()
|
|
IntegerTuple(java.util.Collection<java.lang.Integer> entries)
|
|
IntegerTuple(java.lang.Integer firstEntry)
|
|
IntegerTuple(java.lang.Integer[] entries)
|
Method Summary | |
---|---|
boolean |
add(java.lang.Integer entry)
add an entry to the end of the list |
int |
compareTo(IntegerTuple otherTuple)
|
boolean |
equals(java.lang.Object obj)
|
java.util.List<java.lang.Integer> |
getEntries()
Fetch the list of entries from the tuple |
int |
hashCode()
|
java.lang.Integer |
integerAt(int index)
Fetches the string at the given location |
int |
length()
Returns the length of the tuple |
void |
readFields(java.io.DataInput in)
|
java.lang.Integer |
replaceAt(int index,
java.lang.Integer newInteger)
Replaces the string at the given index with the given newString |
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 |
Constructor Detail |
---|
public IntegerTuple()
public IntegerTuple(java.lang.Integer firstEntry)
public IntegerTuple(java.util.Collection<java.lang.Integer> entries)
public IntegerTuple(java.lang.Integer[] entries)
Method Detail |
---|
public boolean add(java.lang.Integer entry)
entry
-
public java.lang.Integer integerAt(int index)
index
-
public java.lang.Integer replaceAt(int index, java.lang.Integer newInteger)
index
- newInteger
-
public java.util.List<java.lang.Integer> getEntries()
public int length()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public void readFields(java.io.DataInput in) throws java.io.IOException
readFields
in interface org.apache.hadoop.io.Writable
java.io.IOException
public void write(java.io.DataOutput out) throws java.io.IOException
write
in interface org.apache.hadoop.io.Writable
java.io.IOException
public int compareTo(IntegerTuple otherTuple)
compareTo
in interface java.lang.Comparable<IntegerTuple>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |