|
Terrier IR Platform 2.2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.gla.terrier.structures.indexing.singlepass.hadoop.WritableByteArray uk.ac.gla.terrier.structures.indexing.singlepass.hadoop.MapEmittedPostingList
public class MapEmittedPostingList
Sub-Class of WritableByteArray with additional information about which Map and Flush it came from
Constructor Summary | |
---|---|
MapEmittedPostingList()
Empty Constructor |
|
MapEmittedPostingList(int c,
int c2)
Super Constructor |
|
MapEmittedPostingList(java.lang.String map,
int run,
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,
byte[] postingList,
int DocumentFreq,
int TermFreq)
Factory Method |
java.lang.String |
getMap()
|
int |
getRun()
|
void |
printArray()
|
void |
readFields(java.io.DataInput arg0)
Reads this object from the input stream 'in' |
void |
readFieldsMinusArray(java.io.DataInput arg0)
Reads this object from the input stream 'in' apart from the array. |
void |
setMap(java.lang.String map)
|
void |
setRun(int run)
|
java.lang.String |
toString()
Returns the Map & Flush Number |
void |
write(java.io.DataOutput arg0)
Write this object to the output stream 'out' |
Methods inherited from class uk.ac.gla.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 |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MapEmittedPostingList(java.lang.String map, int run, int c, int c2)
map
- - Map task idrun
- - Flush 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, byte[] postingList, int DocumentFreq, int TermFreq)
mapTaskID
- - Map NumberflushNo
- - Flush 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)
public int getRun()
public void setRun(int run)
public void readFields(java.io.DataInput arg0) 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 arg0) throws java.io.IOException
arg0
-
java.io.IOException
public void write(java.io.DataOutput arg0) throws java.io.IOException
write
in interface org.apache.hadoop.io.Writable
write
in class WritableByteArray
java.io.IOException
public void printArray()
|
Terrier IR Platform 2.2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |