|
Oracle® Big Data Appliance Perfect Balance Java API Reference Release 1.1 E49335-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
oracle.hadoop.balancer.examples.invindx.InvertedIndex.InvertedIndexKey
public static class InvertedIndex.InvertedIndexKey
Key class for the inverted index application. Since we want Hadoop to do a secondary-sort (produce a sorted list of reduce-values per key), we have a composite key class that contains both key and value elements.
#compareTo(InvertedIndexKey)InvertedIndexKey.WordComparatorInvertedIndex.InvertedIndexKey.WordPartitioner| Nested Class Summary | |
|---|---|
static class |
InvertedIndex.InvertedIndexKey.GroupingComparatorThis comparator compares only the key element (the word) of this composite key class. |
static class |
InvertedIndex.InvertedIndexKey.SortingComparatorThis comparator extends the InvertedIndex.InvertedIndexKey.GroupingComparator and compares the value elements (location and offset) of this composite key. |
static class |
InvertedIndex.InvertedIndexKey.WordPartitioner<V>Partition on the word's hashcode. |
| Constructor Summary | |
|---|---|
InvertedIndex.InvertedIndexKey() |
|
| Method Summary | |
|---|---|
int |
hashCode() |
void |
readFields(java.io.DataInput in) |
java.lang.String |
toString()TextOutputFormat calls this to print the key |
void |
write(java.io.DataOutput out) |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public InvertedIndex.InvertedIndexKey()
| Method Detail |
|---|
public int hashCode()
hashCode in class java.lang.Object
public void readFields(java.io.DataInput in)
throws java.io.IOException
readFields in interface org.apache.hadoop.io.Writablejava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Object
public void write(java.io.DataOutput out)
throws java.io.IOException
write in interface org.apache.hadoop.io.Writablejava.io.IOException
|
Oracle® Big Data Appliance Perfect Balance Java API Reference Release 1.1 E49335-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||