Module ra_log_reader

Data Types

access_pattern()

access_pattern() = sequential | random

holds static or rarely changing fields

segment_ref()

segment_ref() = {From::ra_index(), To::ra_index(), File::string()}

state()

abstract datatype: state()

Function Index

close/1
closed_mem_tables/1
delete_closed_mem_table_object/2
fetch_term/2
fold/5
handle_log_update/2
init/6
init/8
num_open_segments/1
open_mem_table_lookup/1
range_overlap/4
segment_refs/1
sparse_read/3
update_first_index/2
update_segments/2

Function Details

close/1

close(X1::state()) -> ok

closed_mem_tables/1

closed_mem_tables(X1::state()) -> list()

delete_closed_mem_table_object/2

delete_closed_mem_table_object(X1::state(), Id::term()) -> true

fetch_term/2

fetch_term(Idx::ra_index(), State0::state()) -> {option(ra_index()), state()}

fold/5

fold(FromIdx::ra_index(), ToIdx::ra_index(), Fun::function(), Acc::term(), State::state()) -> {state(), term()}

handle_log_update/2

handle_log_update(X1::{ra_log_update, undefined | pid(), ra_index(), [segment_ref()]}, State::state()) -> state()

init/6

init(UId::ra_uid(), Dir::file:filename(), FirstIdx::ra_index(), MaxOpen::non_neg_integer(), SegRefs::[segment_ref()], Names::ra_system:names()) -> state()

init/8

init(UId::ra_uid(), Dir::file:filename(), FirstIdx::ra_index(), MaxOpen::non_neg_integer(), AccessPattern::access_pattern(), SegRefs::[segment_ref()], X7::ra_system:names(), Counter::undefined | counters:counters_ref()) -> state()

num_open_segments/1

num_open_segments(X1::state()) -> non_neg_integer()

open_mem_table_lookup/1

open_mem_table_lookup(X1::state()) -> list()

range_overlap/4

range_overlap(F, L, S, E) -> any()

segment_refs/1

segment_refs(X1::state()) -> [segment_ref()]

sparse_read/3

sparse_read(State::state(), Indexes0::[ra_index()], Entries0::[log_entry()]) -> {[log_entry()], state()}

update_first_index/2

update_first_index(FstIdx::ra_index(), State::state()) -> {state(), [segment_ref()]}

update_segments/2

update_segments(NewSegmentRefs::[segment_ref()], State::state()) -> state()


Generated by EDoc