Apache Mesos
Public Member Functions | Public Attributes | List of all members
recordio::Decoder< T > Class Template Reference

Given a decoding function for individual records, this provides decoding from "Record-IO" data into typed records. More...

#include <recordio.hpp>

Public Member Functions

 deserialize (_deserialize)
 
Try< std::deque< Try< T > > > decode (const std::string &data)
 Decodes another chunk of data from the "Record-IO" stream and returns the attempted decoding of any additional complete records. More...
 

Public Attributes

 __pad0__: state(HEADER)
 

Detailed Description

template<typename T>
class recordio::Decoder< T >

Given a decoding function for individual records, this provides decoding from "Record-IO" data into typed records.

Member Function Documentation

template<typename T >
Try<std::deque<Try<T> > > recordio::Decoder< T >::decode ( const std::string &  data)
inline

Decodes another chunk of data from the "Record-IO" stream and returns the attempted decoding of any additional complete records.

Returns an Error if the data contains an invalid length header, at which point the decoder will return Error for all subsequent calls.

TODO(bmahler): Allow the caller to signal EOF, this allows detection of invalid partial data at the end of the input.

template<typename T >
recordio::Decoder< T >::deserialize ( _deserialize  )
inline

Member Data Documentation

template<typename T >
recordio::Decoder< T >::__pad0__

The documentation for this class was generated from the following file: