crate::ix!();
pub struct TableBuilder {
rep: *mut TableBuilderRep,
}
impl Drop for TableBuilder {
fn drop(&mut self) {
todo!();
}
}
impl TableBuilder {
pub fn new(
options: &Options,
file: *mut dyn WritableFile) -> Self {
todo!();
}
pub fn change_options(&mut self, options: &Options) -> crate::Status {
todo!();
}
pub fn add(&mut self,
key_: &Slice,
value: &Slice) {
todo!();
}
pub fn flush(&mut self) {
todo!();
}
pub fn write_block(&mut self,
block: *mut BlockBuilder,
handle: *mut BlockHandle) {
todo!();
}
pub fn write_raw_block(&mut self,
block_contents: &Slice,
ty: CompressionType,
handle: *mut BlockHandle) {
todo!();
}
pub fn status(&self) -> Status {
todo!();
}
pub fn finish(&mut self) -> Status {
todo!();
}
pub fn abandon(&mut self) {
todo!();
}
pub fn num_entries(&self) -> u64 {
todo!();
}
pub fn file_size(&self) -> u64 {
todo!();
}
pub fn ok(&self) -> bool {
todo!();
}
}
pub struct TableBuilderRep {
options: Options,
index_block_options: Options,
file: *mut dyn WritableFile,
offset: u64,
status: Status,
data_block: BlockBuilder,
index_block: BlockBuilder,
last_key_: String,
num_entries: i64,
closed: bool,
filter_block: *mut FilterBlockBuilder,
pending_index_entry: bool,
pending_handle: BlockHandle,
compressed_output: String,
}
impl TableBuilderRep {
pub fn new(
opt: &Options,
f: *mut dyn WritableFile) -> Self {
todo!();
}
}