21 #include "../ThriftBroker/SerializedCellsReader.h"
22 #include "../ThriftBroker/SerializedCellsWriter.h"
24 #include <boost/python.hpp>
30 const char *column_family,
const char *column_qualifier,
31 int64_t timestamp,
const char *value, int32_t value_length,
40 boost::python::object obj(handle<>(PyBuffer_FromMemory(
42 return boost::python::incref(obj.ptr());
60 class_<SerializedCellsReader>(
"SerializedCellsReader",
61 init<const char *, uint32_t>())
64 return_value_policy<return_by_value>())
66 return_value_policy<return_by_value>())
68 return_value_policy<return_by_value>())
70 return_value_policy<return_by_value>())
72 return_value_policy<return_by_value>())
75 return_value_policy<return_by_value>())
82 class_<SerializedCellsWriter, boost::noncopyable>(
"SerializedCellsWriter",
83 init<int32_t, bool>())
88 .def(
"__len__",
lenfn)
const char *(SerializedCellsWriter::* getfn)()
const char * column_family()
const char * column_qualifier()
Filesystem::Flags convert(std::string str)
Converts string mnemonic to corresponding Filesystem::Flags value.
Po::typed_value< String > * str(String *v=0)
const char * column_qualifier
BOOST_PYTHON_MODULE(libHyperPython)
Compatibility Macros for C/C++.
bool(SerializedCellsWriter::* addfn)(const char *row, const char *column_family, const char *column_qualifier, int64_t timestamp, const char *value, int32_t value_length, int cell_flag)
int32_t(SerializedCellsWriter::* getlenfn)()
int32_t get_buffer_length()
void sanity_check() const
const char * column_family
void finalize(uint8_t flag)