com.cloudera.crunch.type.writable
Class GenericArrayWritable<T>

java.lang.Object
  extended by com.cloudera.crunch.type.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)
           
protected  void setValueType(String valueType)
           
 String toString()
           
 void write(DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, 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

setValueType

protected void setValueType(String valueType)

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. All Rights Reserved.