public class LineDocTextAndOp
extends java.lang.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(java.io.DataInput in) |
void |
setOp(DocumentAndOp.Op op)
Set the type of the operation.
|
java.lang.String |
toString() |
void |
write(java.io.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 java.lang.String toString()
toString in class java.lang.Objectpublic void write(java.io.DataOutput out)
throws java.io.IOException
write in interface org.apache.hadoop.io.Writablejava.io.IOExceptionpublic void readFields(java.io.DataInput in)
throws java.io.IOException
readFields in interface org.apache.hadoop.io.Writablejava.io.IOExceptionCopyright © 2009 The Apache Software Foundation