|
Terrier IR Platform 2.2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.gla.terrier.structures.indexing.singlepass.hadoop.MapEmittedTerm
public class MapEmittedTerm
Represents a term emitted during indexing time. Each term also has a the map number and flush number that is was emitted from.
Nested Class Summary | |
---|---|
static class |
MapEmittedTerm.TermComparator
Comparator for MapEmittedTerm objects - order only by Term. |
static class |
MapEmittedTerm.TermMapFlushComparator
Raw Comparator class to compare MapEmittedTerm objects stage 1. |
Constructor Summary | |
---|---|
MapEmittedTerm()
Empty Constructor |
|
MapEmittedTerm(java.lang.String s,
java.lang.String _mapTaskID,
int _flushNumber)
Constructor |
Method Summary | |
---|---|
int |
compareTo(MapEmittedTerm o)
Text Comparator on the Term contained in this object |
static MapEmittedTerm |
create_TextPlus(java.lang.String s,
java.lang.String a,
int b)
Factory Method |
int |
getFlush()
|
java.lang.String |
getMap()
|
org.apache.hadoop.io.Text |
getText()
|
void |
readFields(java.io.DataInput in)
Reads in this object from the Input Stream 'in' |
void |
setFlush(int flush)
|
void |
setMap(java.lang.String id)
|
void |
setText(org.apache.hadoop.io.Text text)
|
void |
write(java.io.DataOutput out)
Writes this object to the Output Stream 'out' |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MapEmittedTerm()
public MapEmittedTerm(java.lang.String s, java.lang.String _mapTaskID, int _flushNumber)
s
- - Term_mapTaskID
- - Map Number_flushNumber
- - Flush NumberMethod Detail |
---|
public static MapEmittedTerm create_TextPlus(java.lang.String s, java.lang.String a, int b)
s
- - Terma
- - Map Numberb
- - Flush Number
public java.lang.String getMap()
public void setMap(java.lang.String id)
public int getFlush()
public void setFlush(int flush)
public org.apache.hadoop.io.Text getText()
public void setText(org.apache.hadoop.io.Text text)
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(MapEmittedTerm o)
compareTo
in interface java.lang.Comparable<MapEmittedTerm>
|
Terrier IR Platform 2.2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |