public class MapData extends Object implements Comparable<MapData>
Modifier and Type | Field and Description |
---|---|
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.slf4j.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 and Description |
---|
MapData(DataInputStream in)
Constructor - Loads the Map Information from the DataInputStream Provided
|
Modifier and Type | Method and Description |
---|---|
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
|
protected static final org.slf4j.Logger logger
protected String mapTaskID
protected int numMapDocs
protected LinkedList<Integer> flushDocSizes
protected int splitnum
protected int int_mapTaskId
public MapData(DataInputStream in) throws IOException
in
- - Stream of the Map data fileIOException
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 int getSplitnum()
Terrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow