This project has retired. For details please refer to its Attic page.
SerDe (Apache Crunch 0.9.0 API)

org.apache.crunch.impl.spark.serde
Interface SerDe<T>

All Superinterfaces:
Serializable
All Known Implementing Classes:
AvroSerDe, WritableSerDe

public interface SerDe<T>
extends Serializable


Method Summary
 T fromBytes(byte[] bytes)
           
 com.google.common.base.Function<byte[],T> fromBytesFunction()
           
 byte[] toBytes(T obj)
           
 

Method Detail

toBytes

byte[] toBytes(T obj)
               throws Exception
Throws:
Exception

fromBytes

T fromBytes(byte[] bytes)

fromBytesFunction

com.google.common.base.Function<byte[],T> fromBytesFunction()


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