In file SerialUtils.hh:
-
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
-
void serializeInt(int32_t t, OutStream& stream)
-
int32_t deserializeInt(InStream& stream)
-
void serializeLong(int64_t t, OutStream& stream)
-
int64_t deserializeLong(InStream& stream)
-
void serializeFloat(float t, OutStream& stream)
-
float deserializeFloat(InStream& stream)
-
void serializeString(const std::string& t, OutStream& stream)
-
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
void serializeInt(int32_t t, OutStream& stream)
int32_t deserializeInt(InStream& stream)
void serializeLong(int64_t t, OutStream& stream)
int64_t deserializeLong(InStream& stream)
void serializeFloat(float t, OutStream& stream)
float deserializeFloat(InStream& stream)
void serializeString(const std::string& t, OutStream& stream)
void deserializeString(std::string& t, InStream& stream)
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.