This project has retired. For details please refer to its Attic page.
GenericArrayWritable (Apache Crunch 0.4.0-incubating API)

org.apache.crunch.types.writable
Class GenericArrayWritable<T>

java.lang.Object
  extended by org.apache.crunch.types.writable.GenericArrayWritable<T>
All Implemented Interfaces:
org.apache.hadoop.io.Writable

public class GenericArrayWritable<T>
extends Object
implements org.apache.hadoop.io.Writable


Constructor Summary
GenericArrayWritable()
           
GenericArrayWritable(Class<? extends org.apache.hadoop.io.Writable> valueClass)
           
 
Method Summary
 boolean equals(Object obj)
           
 org.apache.hadoop.io.Writable[] get()
           
 int hashCode()
           
 void readFields(DataInput in)
           
 void set(org.apache.hadoop.io.Writable[] values)
           
 String toString()
           
 void write(DataOutput out)
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GenericArrayWritable

public GenericArrayWritable(Class<? extends org.apache.hadoop.io.Writable> valueClass)

GenericArrayWritable

public GenericArrayWritable()
Method Detail

set

public void set(org.apache.hadoop.io.Writable[] values)

get

public org.apache.hadoop.io.Writable[] get()

readFields

public void readFields(DataInput in)
                throws IOException
Specified by:
readFields in interface org.apache.hadoop.io.Writable
Throws:
IOException

write

public void write(DataOutput out)
           throws IOException
Specified by:
write in interface org.apache.hadoop.io.Writable
Throws:
IOException

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.