|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.conf.Configured org.apache.crunch.types.writable.TupleWritable
public class TupleWritable
A serialization format for Tuple
.
tuple_writable ::= card field+ card ::= vint field ::= code [body_size body] code ::= vint body_size ::= vint body ::= byte[]
Nested Class Summary | |
---|---|
static class |
TupleWritable.Comparator
|
Constructor Summary | |
---|---|
TupleWritable()
Create an empty tuple with no allocated storage for writables. |
|
TupleWritable(org.apache.hadoop.io.Writable[] values)
|
|
TupleWritable(org.apache.hadoop.io.Writable[] values,
int[] written)
Initialize tuple with storage; unknown whether any of them contain "written" values. |
Method Summary | |
---|---|
void |
clear()
|
int |
compareTo(TupleWritable that)
|
boolean |
equals(Object other)
|
org.apache.hadoop.io.Writable |
get(int i)
Get ith Writable from Tuple. |
boolean |
has(int i)
Return true if tuple has an element at the position provided. |
int |
hashCode()
|
void |
readFields(DataInput in)
|
void |
set(int index,
org.apache.hadoop.io.Writable w)
|
void |
setConf(org.apache.hadoop.conf.Configuration conf)
|
int |
size()
The number of children in this Tuple. |
String |
toString()
Convert Tuple to String as in the following. |
void |
write(DataOutput out)
Writes each Writable to out . |
Methods inherited from class org.apache.hadoop.conf.Configured |
---|
getConf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TupleWritable()
public TupleWritable(org.apache.hadoop.io.Writable[] values)
public TupleWritable(org.apache.hadoop.io.Writable[] values, int[] written)
Method Detail |
---|
public void setConf(org.apache.hadoop.conf.Configuration conf)
setConf
in interface org.apache.hadoop.conf.Configurable
setConf
in class org.apache.hadoop.conf.Configured
public boolean has(int i)
public org.apache.hadoop.io.Writable get(int i)
public int size()
public boolean equals(Object other)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public void clear()
public void set(int index, org.apache.hadoop.io.Writable w)
public void write(DataOutput out) throws IOException
out
.
write
in interface org.apache.hadoop.io.Writable
IOException
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
public int compareTo(TupleWritable that)
compareTo
in interface Comparable<TupleWritable>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |