In file SerialUtils.hh:

namespace HadoopUtils


class Error
A simple exception class that records a message for the user
define HADOOP_ASSERT(CONDITION, MESSAGE)
Check to make sure that the condition is true, and throw an exception if it is not.
class InStream
An interface for an input stream
class OutStream
An interface for an output stream
class FileInStream: public InStream
A class to read a file as a stream
class FileOutStream: public OutStream
A class to write a stream to a file
class StringInStream: public InStream
A stream that reads from a string
[more]void serializeInt(int32_t t, OutStream& stream)
[more]int32_t deserializeInt(InStream& stream)
[more]void serializeLong(int64_t t, OutStream& stream)
[more]int64_t deserializeLong(InStream& stream)
[more]void serializeFloat(float t, OutStream& stream)
[more]float deserializeFloat(InStream& stream)
[more]void serializeString(const std::string& t, OutStream& stream)
[more]void deserializeString(std::string& t, InStream& stream)
std::string toString(int32_t x)
Convert an integer to a string
int32_t toInt(const std::string& val)
Convert a string to an integer.
float toFloat(const std::string& val)
Convert the string to a float.
bool toBool(const std::string& val)
Convert the string to a boolean.
uint64_t getCurrentMillis()
Get the current time in the number of milliseconds since 1970
std::vector<std::string> splitString(const std::string& str, const char* separator)
Split a string into "words".
std::string quoteString(const std::string& str, const char* deliminators)
Quote a string to avoid "\", non-printable characters, and the deliminators.
std::string unquoteString(const std::string& str)
Unquote the given string to return the original string.


Documentation

ovoid serializeInt(int32_t t, OutStream& stream)

oint32_t deserializeInt(InStream& stream)

ovoid serializeLong(int64_t t, OutStream& stream)

oint64_t deserializeLong(InStream& stream)

ovoid serializeFloat(float t, OutStream& stream)

ofloat deserializeFloat(InStream& stream)

ovoid serializeString(const std::string& t, OutStream& stream)

ovoid deserializeString(std::string& t, InStream& stream)

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.