|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.terrier.structures.indexing.singlepass.hadoop.SplitEmittedTerm
public class SplitEmittedTerm
Represents a Term key used during MapReduce Indexing. Term keys are emitted from each map task, and are used for sorting and partitioning the output. Paritioning is done by splitno. Two options for sorting (a) term only, (b) term, split, flush
Nested Class Summary | |
---|---|
static class |
SplitEmittedTerm.SETPartitioner
Partitions SplitEmittedTerms by split that they came from. |
static class |
SplitEmittedTerm.SETPartitionerLowercaseAlphaTerm
Partitions SplitEmittedTerms by term. |
static class |
SplitEmittedTerm.SETRawComparatorTerm
Sorter by term only |
static class |
SplitEmittedTerm.SETRawComparatorTermSplitFlush
A comparator for comparing different split emitted terms. |
Constructor Summary | |
---|---|
SplitEmittedTerm()
Empty Constructor |
|
SplitEmittedTerm(java.lang.String _term,
int _splitno,
int _flushno)
Constructor for a Term key. |
Method Summary | |
---|---|
int |
compareTo(SplitEmittedTerm term2)
Compares this Term key to another term key. |
static SplitEmittedTerm |
createNewTerm(java.lang.String term,
int splitno,
int flushno)
Factory method for creating a new Term key object |
boolean |
equals(java.lang.Object _o)
|
int |
getFlushno()
|
int |
getSplitno()
|
java.lang.String |
getTerm()
|
int |
hashCode()
|
void |
readFields(java.io.DataInput in)
Read in a Term key object from the input stream 'in' |
void |
setFlushno(int _flushno)
|
void |
setSplitno(int _splitno)
|
void |
setTerm(java.lang.String _term)
|
java.lang.String |
toString()
|
void |
write(java.io.DataOutput out)
Write out this Term key to output stream 'out' |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SplitEmittedTerm()
public SplitEmittedTerm(java.lang.String _term, int _splitno, int _flushno)
_term
- _splitno
- _flushno
- Method Detail |
---|
public static SplitEmittedTerm createNewTerm(java.lang.String term, int splitno, int flushno)
term
- splitno
- flushno
-
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object _o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
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 void write(java.io.DataOutput out) throws java.io.IOException
write
in interface org.apache.hadoop.io.Writable
java.io.IOException
public int compareTo(SplitEmittedTerm term2)
compareTo
in interface java.lang.Comparable<SplitEmittedTerm>
public java.lang.String getTerm()
public void setTerm(java.lang.String _term)
_term
- the term to setpublic int getSplitno()
public void setSplitno(int _splitno)
_splitno
- the splitno to setpublic int getFlushno()
public void setFlushno(int _flushno)
_flushno
- the flushno to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |