|
Oracle® Big Data Appliance Perfect Balance Java API Reference Release 1 (1.0) E41667-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 component of this class (the word). |
static class |
InvertedIndex.InvertedIndexKey.SortingComparator |
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 java.lang.String toString()
toString in class java.lang.Objectpublic 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.IOException
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.0) E41667-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||