public static class InvertedIndex.InvertedIndexKey
extends java.lang.Object
implements org.apache.hadoop.io.Writable
InvertedIndex.InvertedIndexKey.SortingComparator
InvertedIndex.InvertedIndexKey.GroupingComparator
InvertedIndex.InvertedIndexKey.WordPartitioner
Modifier and Type | Class and Description |
---|---|
static class |
InvertedIndex.InvertedIndexKey.GroupingComparator
This comparator compares only the key element (the word) of this composite key class.
|
static class |
InvertedIndex.InvertedIndexKey.SortingComparator
This comparator extends
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 hash code.
|
Constructor and Description |
---|
InvertedIndex.InvertedIndexKey() |
Modifier and Type | Method and Description |
---|---|
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) |
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.Writable
java.io.IOException
public 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.Writable
java.io.IOException