|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.crunch.impl.spark.serde.AvroSerDe<T>
public class AvroSerDe<T>
Constructor Summary | |
---|---|
AvroSerDe(AvroType<T> avroType)
|
Method Summary | |
---|---|
T |
fromBytes(byte[] bytes)
|
com.google.common.base.Function<byte[],T> |
fromBytesFunction()
|
byte[] |
toBytes(T obj)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AvroSerDe(AvroType<T> avroType)
Method Detail |
---|
public byte[] toBytes(T obj) throws Exception
toBytes
in interface SerDe<T>
Exception
public T fromBytes(byte[] bytes)
fromBytes
in interface SerDe<T>
public com.google.common.base.Function<byte[],T> fromBytesFunction()
fromBytesFunction
in interface SerDe<T>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |