|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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 LinkedList<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 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(DataInputStream in)
Constructor - Loads the Map Information from the DataInputStream Provided |
Method Summary | |
---|---|
int |
compareTo(MapData o)
|
boolean |
equals(Object obj)
|
LinkedList<Integer> |
getFlushDocSizes()
Contains one element, for each run (aka flush) outputted by this map. |
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 String mapTaskID
protected int numMapDocs
protected LinkedList<Integer> flushDocSizes
protected int splitnum
protected int int_mapTaskId
Constructor Detail |
---|
public MapData(DataInputStream in) throws IOException
in
- - Stream of the Map data file
IOException
Method Detail |
---|
public String getMap()
public int getMapId()
public int getMapDocs()
public void setMapDocs(int runDocs)
runDocs
- public LinkedList<Integer> getFlushDocSizes()
public int compareTo(MapData o)
compareTo
in interface Comparable<MapData>
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public int getSplitnum()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |