Apache Mesos
Public Member Functions | List of all members
recordio::Decoder Class Reference

Decodes records from "Record-IO" data (see above). More...

#include <recordio.hpp>

Public Member Functions

 Decoder ()
 
Try< std::deque< std::string > > 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...
 

Detailed Description

Decodes records from "Record-IO" data (see above).

Constructor & Destructor Documentation

recordio::Decoder::Decoder ( )
inline

Member Function Documentation

Try<std::deque<std::string> > recordio::Decoder::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.


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