Terrier IR Platform
2.2.1

uk.ac.gla.terrier.structures.indexing.singlepass.hadoop
Class MapData

java.lang.Object
  extended by uk.ac.gla.terrier.structures.indexing.singlepass.hadoop.MapData

public class MapData
extends java.lang.Object

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.

Since:
2.2
Version:
$Revision: 1.2 $
Author:
Richard McCreadie

Constructor Summary
MapData(java.io.DataInputStream in)
          Constructor - Loads the Map Information from the DataInputStream Provided
 
Method Summary
 java.util.LinkedList<java.lang.Integer> getFlushDocSizes()
          Contains one element, for each run (aka flush) outputted by this map.
 java.lang.String getMap()
           
 int getMapDocs()
           
 void setMapDocs(int runDocs)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapData

public MapData(java.io.DataInputStream in)
        throws java.io.IOException
Constructor - Loads the Map Information from the DataInputStream Provided

Parameters:
in - - Stream of the Map data file
Throws:
java.io.IOException
Method Detail

getMap

public java.lang.String getMap()

getMapDocs

public int getMapDocs()

setMapDocs

public void setMapDocs(int runDocs)

getFlushDocSizes

public java.util.LinkedList<java.lang.Integer> getFlushDocSizes()
Contains one element, for each run (aka flush) outputted by this map. The element is the number of documents covered by all previous runs in that map.


Terrier IR Platform
2.2.1

Terrier Information Retrieval Platform 2.2.1. Copyright 2004-2008 University of Glasgow