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
  extended by 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>


Constructor Summary
UnionWritable()
           
UnionWritable(int index, org.apache.hadoop.io.BytesWritable value)
           
 
Method Summary
 int compareTo(UnionWritable other)
           
 int getIndex()
           
 org.apache.hadoop.io.BytesWritable getValue()
           
 void readFields(DataInput in)
           
 void write(DataOutput out)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnionWritable

public UnionWritable()

UnionWritable

public UnionWritable(int index,
                     org.apache.hadoop.io.BytesWritable value)
Method Detail

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.