|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.crunch.impl.spark.serde.AvroSerDe<T>
public class AvroSerDe<T>
| Constructor Summary | |
|---|---|
AvroSerDe(AvroType<T> avroType,
Map<String,String> modeProperties)
|
|
| 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,
Map<String,String> modeProperties)
| Method Detail |
|---|
public byte[] toBytes(T obj)
throws Exception
toBytes in interface SerDe<T>Exceptionpublic 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 | ||||||||