hadoop-formats-0.2.1.1: Read/write file formats commonly used by Hadoop.

Safe HaskellNone
LanguageHaskell2010

Data.Hadoop.Writable

Synopsis

Documentation

class (Collection a ~ c a) => Writable c a where Source

Equivalent to the java interface org.apache.hadoop.io.Writable. All serializable key or value types in the Hadoop Map-Reduce framework implement this interface.

Methods

javaType :: a -> T.Text Source

Gets the package qualified name of a in Java land. Does not inspect the value of a, simply uses it for type information.

decoder :: Decoder (c a) Source

Gets a decoder for this writable type.

data Decoder a Source

A specialized decoder for different types of writable.

Constructors

Variable (B.ByteString -> U.Vector Int -> a)

The slowest. Variable length data.

LE16 (B.ByteString -> a)

All values are 16-bit little endian.

LE32 (B.ByteString -> a)

All values are 32-bit little endian.

LE64 (B.ByteString -> a)

All values are 64-bit little endian.

BE16 (B.ByteString -> a)

All values are 16-bit big endian.

BE32 (B.ByteString -> a)

All values are 32-bit big endian.

BE64 (B.ByteString -> a)

All values are 64-bit big endian.

Instances

split :: G.Vector v a => (B.ByteString -> a) -> B.ByteString -> U.Vector Int -> v a Source