public final class IntegerTuple extends Object implements org.apache.hadoop.io.WritableComparable<IntegerTuple>
| Constructor and Description |
|---|
IntegerTuple() |
IntegerTuple(Integer firstEntry) |
IntegerTuple(Integer[] entries) |
IntegerTuple(Iterable<Integer> entries) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Integer entry)
add an entry to the end of the list
|
int |
compareTo(IntegerTuple otherTuple) |
boolean |
equals(Object obj) |
List<Integer> |
getEntries()
Fetch the list of entries from the tuple
|
int |
hashCode() |
Integer |
integerAt(int index)
Fetches the string at the given location
|
int |
length()
Returns the length of the tuple
|
void |
readFields(DataInput in) |
Integer |
replaceAt(int index,
Integer newInteger)
Replaces the string at the given index with the given newString
|
String |
toString() |
void |
write(DataOutput out) |
public IntegerTuple()
public IntegerTuple(Integer firstEntry)
public IntegerTuple(Integer[] entries)
public boolean add(Integer entry)
entry - public Integer integerAt(int index)
index - public Integer replaceAt(int index, Integer newInteger)
index - newInteger - public List<Integer> getEntries()
public int length()
public void readFields(DataInput in) throws IOException
readFields in interface org.apache.hadoop.io.WritableIOExceptionpublic void write(DataOutput out) throws IOException
write in interface org.apache.hadoop.io.WritableIOExceptionpublic int compareTo(IntegerTuple otherTuple)
compareTo in interface Comparable<IntegerTuple>Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.