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

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

#include <recordio.hpp>

Public Member Functions

 Encoder (std::function< std::string(const T &)> _serialize)
 
std::string encode (const T &record) const
 Returns the "Record-IO" encoded record. More...
 

Detailed Description

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

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

Constructor & Destructor Documentation

template<typename T>
recordio::Encoder< T >::Encoder ( std::function< std::string(const T &)>  _serialize)
inline

Member Function Documentation

template<typename T>
std::string recordio::Encoder< T >::encode ( const T &  record) const
inline

Returns the "Record-IO" encoded record.


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