public class WritableByteArray extends Object implements org.apache.hadoop.io.Writable
Modifier and Type | Field and Description |
---|---|
protected byte[] |
array
Posting List
|
protected int |
arraylength
Size of the Posting List
|
protected int |
DocumentFreq
Document Frequency
|
protected int |
TermFreq
Term 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 ListIOException
public static WritableByteArray create_Hadoop_WritableByteArray(byte[] b, int c) throws IOException
b
- - Posting Listc
- - Document FrequencyIOException
public static WritableByteArray create_Hadoop_WritableByteArray(byte[] b, int c, int c2) throws IOException
b
- - Posting Listc
- - Document Frequencyc2
- - Term FrequencyIOException
public void readFields(DataInput arg0) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
public void write(DataOutput arg0) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
public void setArray(byte[] b)
public byte[] getArray()
public int getDocumentFreq()
public void setDocumentFreq(int _DocumentFreq)
public int getTermFreq()
public void setTermFrequency(int _TermFreq)
Terrier 4.0. Copyright © 2004-2014 University of Glasgow