public class LineDocTextAndOp extends Object implements org.apache.hadoop.io.Writable
| Constructor and Description |
|---|
LineDocTextAndOp()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
DocumentAndOp.Op |
getOp()
Get the type of the operation.
|
org.apache.hadoop.io.Text |
getText()
Get the text that represents a document.
|
void |
readFields(DataInput in) |
void |
setOp(DocumentAndOp.Op op)
Set the type of the operation.
|
String |
toString() |
void |
write(DataOutput out) |
public void setOp(DocumentAndOp.Op op)
op - the type of the operationpublic DocumentAndOp.Op getOp()
public org.apache.hadoop.io.Text getText()
public void write(DataOutput out) throws IOException
write in interface org.apache.hadoop.io.WritableIOExceptionpublic void readFields(DataInput in) throws IOException
readFields in interface org.apache.hadoop.io.WritableIOExceptionCopyright © 2009 The Apache Software Foundation