|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.terrier.structures.indexing.singlepass.hadoop.WritableByteArray
org.terrier.structures.indexing.singlepass.hadoop.MapEmittedPostingList
public class MapEmittedPostingList
Sub-Class of WritableByteArray, i.e. the posting list, with additional information about which Map and Flush it came from.
| Field Summary | |
|---|---|
protected int |
flushNo
The Flush Number |
protected String |
Map
The Map Number |
protected int |
splitNo
The Split Number |
| Fields inherited from class org.terrier.structures.indexing.singlepass.hadoop.WritableByteArray |
|---|
array, arraylength, DocumentFreq, TermFreq |
| Constructor Summary | |
|---|---|
MapEmittedPostingList()
Empty Constructor |
|
MapEmittedPostingList(int c,
int c2)
Super Constructor |
|
MapEmittedPostingList(String map,
int flush,
int split,
int c,
int c2)
Constructor |
|
| Method Summary | |
|---|---|
static MapEmittedPostingList |
create_Hadoop_WritableRunPostingData(byte[] postingList,
int DocumentFreq,
int TermFreq)
Super Factory Method |
static MapEmittedPostingList |
create_Hadoop_WritableRunPostingData(String mapTaskID,
int flushNo,
int splitNo,
byte[] postingList,
int DocumentFreq,
int TermFreq)
Factory Method |
int |
getFlushNo()
get flush no |
String |
getMap()
get Map |
int |
getSplitNo()
|
void |
printArray()
print array |
void |
readFields(DataInput in)
Reads this object from the input stream 'in' |
void |
readFieldsMinusArray(DataInput in)
Reads this object from the input stream 'in' apart from the array. |
void |
setFlushNo(int flush)
set flush no |
void |
setMap(String map)
set map |
void |
setSplitNo(int _splitNo)
|
String |
toString()
Returns the Map & Flush Number |
void |
write(DataOutput out)
Write this object to the output stream 'out' |
| Methods inherited from class org.terrier.structures.indexing.singlepass.hadoop.WritableByteArray |
|---|
create_Hadoop_WritableByteArray, create_Hadoop_WritableByteArray, create_Hadoop_WritableByteArray, getArray, getDocumentFreq, getTermFreq, setArray, setDocumentFreq, setTermFrequency |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected String Map
protected int flushNo
protected int splitNo
| Constructor Detail |
|---|
public MapEmittedPostingList(String map,
int flush,
int split,
int c,
int c2)
map - - Map task idflush - - Flush Numbersplit - - Split Numberc - - Document Frequencyc2 - - Term Frequency
public MapEmittedPostingList(int c,
int c2)
c - - Document Frequencyc2 - - Term Frequencypublic MapEmittedPostingList()
| Method Detail |
|---|
public static MapEmittedPostingList create_Hadoop_WritableRunPostingData(String mapTaskID,
int flushNo,
int splitNo,
byte[] postingList,
int DocumentFreq,
int TermFreq)
mapTaskID - - Map NumberflushNo - - Flush NumbersplitNo - - Split NumberpostingList - - Posting ListDocumentFreq - - Document FrequencyTermFreq - - Term Frequency
public static MapEmittedPostingList create_Hadoop_WritableRunPostingData(byte[] postingList,
int DocumentFreq,
int TermFreq)
postingList - - Posting ListDocumentFreq - - Document FrequencyTermFreq - - Term Frequency
public String toString()
toString in class WritableByteArraypublic String getMap()
public void setMap(String map)
map - public int getFlushNo()
public void setFlushNo(int flush)
flush - public int getSplitNo()
public void setSplitNo(int _splitNo)
_splitNo - the splitNo to set
public void readFields(DataInput in)
throws IOException
readFields in interface org.apache.hadoop.io.WritablereadFields in class WritableByteArrayIOException
public void readFieldsMinusArray(DataInput in)
throws IOException
in -
IOException
public void write(DataOutput out)
throws IOException
write in interface org.apache.hadoop.io.Writablewrite in class WritableByteArrayIOExceptionpublic void printArray()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||