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