historian v0.11.0-beta.3 Historian.PageBuffer View Source
A buffer to manage paging your history... by "snapshotting" when the buffer was created.
Link to this section Summary
Link to this section Types
Link to this type
page_result()
View Sourcepage_result() ::
{:ok, Historian.History.t(Historian.History.Item.t())} | {:ok, :done}
Link to this type
t()
View Sourcet() :: %Historian.PageBuffer{
item_count: non_neg_integer(),
offset: non_neg_integer(),
page: non_neg_integer(),
page_size: pos_integer(),
ref: reference(),
table: pos_integer(),
total_pages: non_neg_integer()
}
Link to this section Functions
Link to this function
get(pager, page_number)
View Sourceget(page_buffer_pid :: pid(), non_neg_integer()) :: page_result()
Link to this function
get_line(pager, line_number)
View Sourceget_line(page_buffer_pid :: pid(), line_number :: non_neg_integer()) :: {:ok, Historian.History.Item.t() | nil}
Link to this function
set_page(pager, page)
View Sourceset_page(page_buffer_pid :: pid(), non_neg_integer()) :: page_result()