|
||||||||||
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.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 java.lang.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(java.lang.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(java.lang.String mapTaskID,
int flushNo,
int splitNo,
byte[] postingList,
int DocumentFreq,
int TermFreq)
Factory Method |
int |
getFlushNo()
get flush no |
java.lang.String |
getMap()
get Map |
int |
getSplitNo()
|
void |
printArray()
print array |
void |
readFields(java.io.DataInput in)
Reads this object from the input stream 'in' |
void |
readFieldsMinusArray(java.io.DataInput in)
Reads this object from the input stream 'in' apart from the array. |
void |
setFlushNo(int flush)
set flush no |
void |
setMap(java.lang.String map)
set map |
void |
setSplitNo(int _splitNo)
|
java.lang.String |
toString()
Returns the Map & Flush Number |
void |
write(java.io.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 java.lang.String Map
protected int flushNo
protected int splitNo
Constructor Detail |
---|
public MapEmittedPostingList(java.lang.String map, int flush, int split, int c, int c2)
map
- - Map task idflush
- - Flush Numbersplit
- - Split Numberc
- - Document Frequencyc2
- - Term Frequencypublic MapEmittedPostingList(int c, int c2)
c
- - Document Frequencyc2
- - Term Frequencypublic MapEmittedPostingList()
Method Detail |
---|
public static MapEmittedPostingList create_Hadoop_WritableRunPostingData(java.lang.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 java.lang.String toString()
toString
in class WritableByteArray
public java.lang.String getMap()
public void setMap(java.lang.String map)
map
- public int getFlushNo()
public void setFlushNo(int flush)
flush
- public int getSplitNo()
public void setSplitNo(int _splitNo)
_splitNo
- the splitNo to setpublic void readFields(java.io.DataInput in) throws java.io.IOException
readFields
in interface org.apache.hadoop.io.Writable
readFields
in class WritableByteArray
java.io.IOException
public void readFieldsMinusArray(java.io.DataInput in) throws java.io.IOException
in
-
java.io.IOException
public void write(java.io.DataOutput out) throws java.io.IOException
write
in interface org.apache.hadoop.io.Writable
write
in class WritableByteArray
java.io.IOException
public void printArray()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |