|
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
public class WritableByteArray
Represents a Writable Posting List. Contains the Posting List, DOcument Frequency and Term Frequency.
Constructor Summary | |
---|---|
WritableByteArray()
Empty Constructor |
|
WritableByteArray(int c)
Constructor - with Document Frequency |
|
WritableByteArray(int c,
int c2)
Constructor - with Document Frequency and Term Frequency |
Method Summary | |
---|---|
static WritableByteArray |
create_Hadoop_WritableByteArray(byte[] b)
Factory Method |
static WritableByteArray |
create_Hadoop_WritableByteArray(byte[] b,
int c)
Factory Method |
static WritableByteArray |
create_Hadoop_WritableByteArray(byte[] b,
int c,
int c2)
Factory Method |
byte[] |
getArray()
|
int |
getDocumentFreq()
|
int |
getTermFreq()
|
void |
readFields(java.io.DataInput arg0)
Read this object from the input stream 'in' |
void |
setArray(byte[] b)
|
void |
setDocumentFreq(int DocumentFreq)
|
void |
setTermFrequency(int TermFreq)
|
java.lang.String |
toString()
|
void |
write(java.io.DataOutput arg0)
Write this object to the output stream 'out' |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public WritableByteArray()
public WritableByteArray(int c)
c
- - Document Frequencypublic WritableByteArray(int c, int c2)
c
- - Document Frequencyc2
- - Term FrequencyMethod Detail |
---|
public static WritableByteArray create_Hadoop_WritableByteArray(byte[] b) throws java.io.IOException
b
- - Posting List
java.io.IOException
public static WritableByteArray create_Hadoop_WritableByteArray(byte[] b, int c) throws java.io.IOException
b
- - Posting Listc
- - Document Frequency
java.io.IOException
public static WritableByteArray create_Hadoop_WritableByteArray(byte[] b, int c, int c2) throws java.io.IOException
b
- - Posting Listc
- - Document Frequencyc2
- - Term Frequency
java.io.IOException
public void readFields(java.io.DataInput arg0) throws java.io.IOException
readFields
in interface org.apache.hadoop.io.Writable
java.io.IOException
public void write(java.io.DataOutput arg0) throws java.io.IOException
write
in interface org.apache.hadoop.io.Writable
java.io.IOException
public void setArray(byte[] b)
public byte[] getArray()
public java.lang.String toString()
toString
in class java.lang.Object
public int getDocumentFreq()
public void setDocumentFreq(int DocumentFreq)
public int getTermFreq()
public void setTermFrequency(int TermFreq)
|
Terrier IR Platform 2.2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |