public class WritableByteArray extends Object implements org.apache.hadoop.io.Writable
| Modifier and Type | Field and Description | 
|---|---|
| protected byte[] | arrayPosting List | 
| protected int | arraylengthSize of the Posting List | 
| protected int | DocumentFreqDocument Frequency | 
| protected int | TermFreqTerm Frequency | 
| Constructor and Description | 
|---|
| WritableByteArray()Empty Constructor | 
| WritableByteArray(int c)Constructor - with Document Frequency | 
| WritableByteArray(int c,
                 int c2)Constructor - with Document Frequency and Term Frequency | 
| Modifier and Type | Method and Description | 
|---|---|
| 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()Gets the byte array | 
| int | getDocumentFreq()Get the document frequency | 
| int | getTermFreq()Get the term frequency | 
| void | readFields(DataInput arg0)Read this object from the input stream 'in' | 
| void | setArray(byte[] b)Sets the byte array | 
| void | setDocumentFreq(int _DocumentFreq)Set the document frequency | 
| void | setTermFrequency(int _TermFreq)Set the term frequency | 
| String | toString() | 
| void | write(DataOutput arg0)Write this object to the output stream 'out' | 
protected byte[] array
protected int DocumentFreq
protected int TermFreq
protected int arraylength
public WritableByteArray()
public WritableByteArray(int c)
c - - Document Frequencypublic WritableByteArray(int c,
                 int c2)
c - - Document Frequencyc2 - - Term Frequencypublic static WritableByteArray create_Hadoop_WritableByteArray(byte[] b) throws IOException
b - - Posting ListIOExceptionpublic static WritableByteArray create_Hadoop_WritableByteArray(byte[] b, int c) throws IOException
b - - Posting Listc - - Document FrequencyIOExceptionpublic static WritableByteArray create_Hadoop_WritableByteArray(byte[] b, int c, int c2) throws IOException
b - - Posting Listc - - Document Frequencyc2 - - Term FrequencyIOExceptionpublic void readFields(DataInput arg0) throws IOException
readFields in interface org.apache.hadoop.io.WritableIOExceptionpublic void write(DataOutput arg0) throws IOException
write in interface org.apache.hadoop.io.WritableIOExceptionpublic void setArray(byte[] b)
public byte[] getArray()
public int getDocumentFreq()
public void setDocumentFreq(int _DocumentFreq)
public int getTermFreq()
public void setTermFrequency(int _TermFreq)
Terrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow