GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
MTBL_METADATA(3)   MTBL_METADATA(3)

mtbl_metadata - get MTBL file metadata

#include <mtbl.h>

mtbl_file_version
mtbl_metadata_file_version(const struct mtbl_metadata *m);

uint64_t
mtbl_metadata_index_block_offset(const struct mtbl_metadata *m);

uint64_t
mtbl_metadata_data_block_size(const struct mtbl_metadata *m);

mtbl_compression_type
mtbl_metadata_compression_algorithm(const struct mtbl_metadata *m);

uint64_t
mtbl_metadata_count_entries(const struct mtbl_metadata *m);

uint64_t
mtbl_metadata_count_data_blocks(const struct mtbl_metadata *m);

uint64_t
mtbl_metadata_bytes_data_blocks(const struct mtbl_metadata *m);

uint64_t
mtbl_metadata_bytes_index_block(const struct mtbl_metadata *m);

uint64_t
mtbl_metadata_bytes_keys(const struct mtbl_metadata *m);

uint64_t
mtbl_metadata_bytes_values(const struct mtbl_metadata *m);

An mtbl_metadata object may be obtained from an mtbl_reader(3). Its accessors export attributes and file statistics that are recorded in the metadata block.

File format version of the MTBL file. Either MTBL_FORMAT_V1 or MTBL_FORMAT_V2.

Byte offset in the MTBL file where the index begins.

Maximum size of an uncompressed data block, see mtbl_writer(3).

One of the compression values allowed by mtbl_writer(3).

Total number of key-value entries.

Total number of data blocks.

Total number of bytes consumed by data blocks.

Total number of bytes consumed by the index.

Total number of bytes that all keys would occupy if stored end-to-end in a byte array with no delimiters.

Total number of bytes that all values in the file would occupy if stored end-to-end in a byte array with no delimiters.
02/10/2017  

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.