Library related objects
arcticdb.version_store.library.NormalizableType
module-attribute
¶
NormalizableType = Union[NORMALIZABLE_TYPES]
Types that can be normalised into Arctic's internal storage structure.
See Also¶
Library.write: for more documentation on normalisation.
arcticdb.version_store.library.ReadInfoRequest ¶
Bases: NamedTuple
ReadInfoRequest is useful for batch methods like read_metadata_batch and get_description_batch, where we only need to specify the symbol and the version information. Therefore, construction of this object is only required for these batch operations.
ATTRIBUTE | DESCRIPTION |
---|---|
symbol |
See
TYPE:
|
as_of |
See
TYPE:
|
See Also¶
Library.read: For documentation on the parameters.
arcticdb.version_store.library.ReadRequest ¶
Bases: NamedTuple
ReadRequest is designed to enable batching of read operations with an API that mirrors the singular read
API.
Therefore, construction of this object is only required for batch read operations.
ATTRIBUTE | DESCRIPTION |
---|---|
as_of |
See
TYPE:
|
date_range |
See
TYPE:
|
row_range |
See
TYPE:
|
columns |
See
TYPE:
|
query_builder |
See
TYPE:
|
See Also¶
Library.read: For documentation on the parameters.
arcticdb.version_store.library.SymbolDescription ¶
Bases: NamedTuple
A named tuple. Descriptive information about the data stored under a particular symbol.
ATTRIBUTE | DESCRIPTION |
---|---|
columns |
Columns stored under the symbol.
TYPE:
|
index |
Index of the symbol.
TYPE:
|
index_type |
Whether the index is a simple index or a multi_index.
TYPE:
|
row_count |
Number of rows.
TYPE:
|
last_update_time |
The time of the last update to the symbol, in UTC.
TYPE:
|
date_range |
The times in UTC that data for this symbol spans. If the data is not timeseries indexed then this value will be
TYPE:
|
arcticdb.version_store.library.SymbolVersion ¶
Bases: NamedTuple
A named tuple. A symbol name - version pair.
ATTRIBUTE | DESCRIPTION |
---|---|
symbol |
Symbol name.
TYPE:
|
version |
Version of the symbol.
TYPE:
|
arcticdb.version_store.library.VersionedItem ¶
Return value for many operations that captures the result and associated information.
ATTRIBUTE | DESCRIPTION |
---|---|
library |
Library this result relates to.
TYPE:
|
symbol |
Read or modified symbol.
TYPE:
|
data |
For data retrieval (read) operations, contains the data read. For data modification operations, the value might not be populated.
TYPE:
|
version |
For data retrieval operations, the version the
TYPE:
|
metadata |
The metadata saved alongside
TYPE:
|
host |
Informational / for backwards compatibility.
TYPE:
|
arcticdb.version_store.library.VersionInfo ¶
Bases: NamedTuple
A named tuple. Descriptive information about a particular version of a symbol.
ATTRIBUTE | DESCRIPTION |
---|---|
date |
Time that the version was written in UTC.
TYPE:
|
deleted |
True if the version has been deleted and is only being kept alive via a snapshot.
TYPE:
|
snapshots |
Snapshots that refer to this version.
TYPE:
|
arcticdb.version_store.library.WritePayload ¶
WritePayload is designed to enable batching of multiple operations with an API that mirrors the singular
write
API.
Construction of WritePayload
objects is only required for batch write operations.
One instance of WritePayload
refers to one unit that can be written through to ArcticDB.
__init__ ¶
__init__(
symbol: str,
data: Union[Any, NormalizableType],
metadata: Any = None,
)
Constructor.
PARAMETER | DESCRIPTION |
---|---|
symbol |
Symbol name. Limited to 255 characters. The following characters are not supported in symbols:
TYPE:
|
data |
Data to be written. If data is not of NormalizableType then it will be pickled.
TYPE:
|
metadata |
Optional metadata to persist along with the symbol.
TYPE:
|
See Also¶
Library.write_pickle: For information on the implications of providing data that needs to be pickled.