public class MapEmittedPostingList extends WritableByteArray
Modifier and Type | Field and Description |
---|---|
protected int |
flushNo
The Flush Number
|
protected String |
Map
The Map Number
|
protected int |
splitNo
The Split Number
|
array, arraylength, DocumentFreq, TermFreq
Constructor and Description |
---|
MapEmittedPostingList()
Empty Constructor
|
MapEmittedPostingList(int c,
int c2)
Super Constructor
|
MapEmittedPostingList(String map,
int flush,
int split,
int c,
int c2)
Constructor
|
Modifier and Type | Method and Description |
---|---|
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'
|
create_Hadoop_WritableByteArray, create_Hadoop_WritableByteArray, create_Hadoop_WritableByteArray, getArray, getDocumentFreq, getTermFreq, setArray, setDocumentFreq, setTermFrequency
protected String Map
protected int flushNo
protected int splitNo
public MapEmittedPostingList(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()
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 Frequencypublic static MapEmittedPostingList create_Hadoop_WritableRunPostingData(byte[] postingList, int DocumentFreq, int TermFreq)
postingList
- - Posting ListDocumentFreq
- - Document FrequencyTermFreq
- - Term Frequencypublic String toString()
toString
in class WritableByteArray
public 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 setpublic void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
readFields
in class WritableByteArray
IOException
public void readFieldsMinusArray(DataInput in) throws IOException
in
- IOException
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
write
in class WritableByteArray
IOException
public void printArray()
Terrier 4.0. Copyright © 2004-2014 University of Glasgow