|
||||||||||
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.MapData
public class MapData
Storage class for information about each Map. Stores the number of the Map, the number of documents processed by the map and the number of documents stored in each flush of the map.
Field Summary | |
---|---|
protected java.util.LinkedList<java.lang.Integer> |
flushDocSizes
Number of Documents in each flush of the map |
protected int |
int_mapTaskId
The map task id stored as an integer |
protected static org.apache.log4j.Logger |
logger
|
protected java.lang.String |
mapTaskID
TaskID of the Map |
protected int |
numMapDocs
Number of Documents Processed by the Map |
protected int |
splitnum
The Split number |
Constructor Summary | |
---|---|
MapData(java.io.DataInputStream in)
Constructor - Loads the Map Information from the DataInputStream Provided |
Method Summary | |
---|---|
int |
compareTo(MapData o)
|
boolean |
equals(java.lang.Object obj)
|
java.util.LinkedList<java.lang.Integer> |
getFlushDocSizes()
Contains one element, for each run (aka flush) outputted by this map. |
java.lang.String |
getMap()
get map |
int |
getMapDocs()
get mapDocs |
int |
getMapId()
get map id |
int |
getSplitnum()
|
int |
hashCode()
|
void |
setMapDocs(int runDocs)
set mapDocs |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final org.apache.log4j.Logger logger
protected java.lang.String mapTaskID
protected int numMapDocs
protected java.util.LinkedList<java.lang.Integer> flushDocSizes
protected int splitnum
protected int int_mapTaskId
Constructor Detail |
---|
public MapData(java.io.DataInputStream in) throws java.io.IOException
in
- - Stream of the Map data file
java.io.IOException
Method Detail |
---|
public java.lang.String getMap()
public int getMapId()
public int getMapDocs()
public void setMapDocs(int runDocs)
runDocs
- public java.util.LinkedList<java.lang.Integer> getFlushDocSizes()
public int compareTo(MapData o)
compareTo
in interface java.lang.Comparable<MapData>
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int getSplitnum()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |