Interface AppendOnlyTable
-
- All Known Implementing Classes:
AppendOnlyKeyValueTable
public interface AppendOnlyTable
A representation of a table to which the records can only be appended, never updated.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Variant
fetch(String key)
Fetches the most recent value stored under the provided key.List<Variant>
getAllWhere(Column filter)
Returns all values from this table where the record matches the provided filter.void
insert(String key, Variant value)
Inserts the provided value under the provided key into this table.
-
-
-
Method Detail
-
fetch
Variant fetch(String key)
Fetches the most recent value stored under the provided key.- Parameters:
key
- key associated with the value- Returns:
- most recent value stored under the provided key
- Throws:
KeyNotFoundException
- if no object under provided key exists
-
insert
void insert(String key, Variant value)
Inserts the provided value under the provided key into this table.- Parameters:
key
- key associated with the valuevalue
- value
-
-