public class SplitEmittedTerm extends Object implements org.apache.hadoop.io.WritableComparable<SplitEmittedTerm>
Modifier and Type | Class and Description |
---|---|
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 and Description |
---|
SplitEmittedTerm()
Empty Constructor
|
SplitEmittedTerm(String _term,
int _splitno,
int _flushno)
Constructor for a Term key.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(SplitEmittedTerm term2)
Compares this Term key to another term key.
|
static SplitEmittedTerm |
createNewTerm(String term,
int splitno,
int flushno)
Factory method for creating a new Term key object
|
boolean |
equals(Object _o) |
int |
getFlushno() |
int |
getSplitno() |
String |
getTerm() |
int |
hashCode() |
void |
readFields(DataInput in)
Read in a Term key object from the input stream 'in'
|
void |
setFlushno(int _flushno) |
void |
setSplitno(int _splitno) |
void |
setTerm(String _term) |
String |
toString() |
void |
write(DataOutput out)
Write out this Term key to output stream 'out'
|
public SplitEmittedTerm()
public SplitEmittedTerm(String _term, int _splitno, int _flushno)
_term
- _splitno
- _flushno
- public static SplitEmittedTerm createNewTerm(String term, int splitno, int flushno)
term
- splitno
- flushno
- public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
public int compareTo(SplitEmittedTerm term2)
compareTo
in interface Comparable<SplitEmittedTerm>
public String getTerm()
public void setTerm(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 setTerrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow