[][src]Module compressed_vec::vector

Structs

BinaryVector

BinaryVector: a compressed vector storing data of the same type enabling high speed operations on compressed data without the need for decompressing (in many cases, exceptions noted)

FixedSectStats
VectorAppender

A builder for a BinaryVector holding encoded/compressed integral/floating values as 256-element FixedSections. Buffers elements to be written and writes them in 256-element sections at a time. This builder owns its own write buffer memory, expanding it as needed. finish() wraps up the vector, cloning a copy, and reset() can be called to reuse this appender. The write buffer stays with this builder to minimize allocations. NOTE: the vector state (elements, num bytes etc) are only updated when a section is updated. So readers who read just the vector itself will not get the updates in write_buf. This appender must be consulted for querying write_buf values.

VectorItemIter

Iterator struct over all items in a vector, for convenience Panics on decoding error - there's no really good way for an iterator to return an error

VectorReader

A reader for reading sections and elements from a VectorAppender written vector. Use the same base type - eg VectorU32Appender -> VectorReader:: Can be reused many times; it has no mutable state and creates new iterators every time.

VectorStats

Detailed stats, for debugging or perf analysis, on a Vector. Includes the section types.

Enums

VectorSubType
VectorType

Traits

BaseSubtypeMapping

Mapping of VectBase type to VectorSubType. Allows checking of vector type by reader.

Type Definitions

VectorF32XorAppender

Regular F32 appender with XOR-based optimizing encoder

VectorU32Appender

Regular U32 appender with AutoEncoder

VectorU64Appender

Regular U64 appender with AutoEncoder