This project has retired. For details please refer to its
Attic page.
UnionWritable (Apache Crunch 0.11.0 API)
org.apache.crunch.types.writable
Class UnionWritable
java.lang.Object
org.apache.crunch.types.writable.UnionWritable
- All Implemented Interfaces:
- Comparable<UnionWritable>, org.apache.hadoop.io.Writable, org.apache.hadoop.io.WritableComparable<UnionWritable>
public class UnionWritable
- extends Object
- implements org.apache.hadoop.io.WritableComparable<UnionWritable>
UnionWritable
public UnionWritable()
UnionWritable
public UnionWritable(int index,
org.apache.hadoop.io.BytesWritable value)
getIndex
public int getIndex()
getValue
public org.apache.hadoop.io.BytesWritable getValue()
compareTo
public int compareTo(UnionWritable other)
- Specified by:
compareTo
in interface Comparable<UnionWritable>
write
public void write(DataOutput out)
throws IOException
- Specified by:
write
in interface org.apache.hadoop.io.Writable
- Throws:
IOException
readFields
public void readFields(DataInput in)
throws IOException
- Specified by:
readFields
in interface org.apache.hadoop.io.Writable
- Throws:
IOException
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.