Request parameters for create requests.
More...
#include <Create.h>
Request parameters for create requests.
Definition at line 46 of file Create.h.
Hypertable::FsBroker::Lib::Request::Parameters::Create::Create |
( |
| ) |
|
|
inline |
Constructor.
Empty initialization for decoding.
Definition at line 51 of file Create.h.
Hypertable::FsBroker::Lib::Request::Parameters::Create::Create |
( |
const string & |
fname, |
|
|
uint32_t |
flags, |
|
|
int32_t |
bufsz, |
|
|
int32_t |
replication, |
|
|
int64_t |
blksz |
|
) |
| |
|
inline |
Constructor.
Initializes with parameters for encoding. Sets m_fname to fname
, m_flags to flags
, m_bufsz to bufsz
, m_replication to replication
, and m_blksz to blksz
.
- Parameters
-
fname | File name |
flags | Create flags |
bufsz | Buffer size |
replication | Replication factor |
blksz | Block size |
Definition at line 63 of file Create.h.
void Create::decode_internal |
( |
uint8_t |
version, |
|
|
const uint8_t ** |
bufp, |
|
|
size_t * |
remainp |
|
) |
| |
|
overrideprivatevirtual |
Reads serialized representation of object from a buffer.
This function is to be overridden by derived classes and should decode the object per-se as encoded with encode_internal().
- Parameters
-
version | Encoding version |
bufp | Address of destination buffer pointer (advanced by call) |
remainp | Address of integer holding amount of serialized encoding remaining |
- See also
- encode_internal() for encoding format
Implements Hypertable::Serializable.
Definition at line 53 of file Create.cc.
void Create::encode_internal |
( |
uint8_t ** |
bufp | ) |
const |
|
overrideprivatevirtual |
Writes serialized representation of object to a buffer.
This function is to be overridden by derived classes and should encode the object per-se.
- Parameters
-
bufp | Address of destination buffer pointer (advanced by call) |
Implements Hypertable::Serializable.
Definition at line 45 of file Create.cc.
size_t Create::encoded_length_internal |
( |
| ) |
const |
|
overrideprivatevirtual |
Returns internal serialized length.
This function is to be overridden by derived classes and should return the length of the the serialized object per-se.
- Returns
- Internal serialized length
- See also
- encode_internal() for encoding format
Implements Hypertable::Serializable.
Definition at line 42 of file Create.cc.
uint8_t Create::encoding_version |
( |
| ) |
const |
|
overrideprivatevirtual |
int64_t Hypertable::FsBroker::Lib::Request::Parameters::Create::get_block_size |
( |
| ) |
|
|
inline |
Gets block size.
- Returns
- Block size
Definition at line 86 of file Create.h.
int32_t Hypertable::FsBroker::Lib::Request::Parameters::Create::get_buffer_size |
( |
| ) |
|
|
inline |
Gets buffer size.
- Returns
- Buffer size
Definition at line 78 of file Create.h.
uint32_t Hypertable::FsBroker::Lib::Request::Parameters::Create::get_flags |
( |
| ) |
|
|
inline |
const char* Hypertable::FsBroker::Lib::Request::Parameters::Create::get_name |
( |
| ) |
|
|
inline |
Gets file name.
- Returns
- File name
Definition at line 70 of file Create.h.
int32_t Hypertable::FsBroker::Lib::Request::Parameters::Create::get_replication |
( |
| ) |
|
|
inline |
Gets replication factor.
- Returns
- Replication factor
Definition at line 82 of file Create.h.
int64_t Hypertable::FsBroker::Lib::Request::Parameters::Create::m_blksz |
|
private |
int32_t Hypertable::FsBroker::Lib::Request::Parameters::Create::m_bufsz |
|
private |
uint32_t Hypertable::FsBroker::Lib::Request::Parameters::Create::m_flags |
|
private |
string Hypertable::FsBroker::Lib::Request::Parameters::Create::m_fname |
|
private |
int32_t Hypertable::FsBroker::Lib::Request::Parameters::Create::m_replication |
|
private |
The documentation for this class was generated from the following files:
- /home/doug/src/hypertable/src/cc/FsBroker/Lib/Request/Parameters/Create.h
- /home/doug/src/hypertable/src/cc/FsBroker/Lib/Request/Parameters/Create.cc