Documentation
¶
Index ¶
Constants ¶
const MaxTypesPerObject = 2500
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Object ¶
type Object struct {
// contains filtered or unexported fields
}
Object represents the collection of vectors that are loaded into memory for a given data object as referenced by its ID. An Object structure mirrors the metadata structures used in VNG but here we support dynamic loading of vectors as they are needed and data and metadata are all cached in memory.
func NewObject ¶
func NewObject(ctx context.Context, engine storage.Engine, uri *storage.URI, id ksuid.KSUID) (*Object, error)
NewObject creates a new in-memory Object corresponding to a VNG object residing in storage. It loads the list of VNG root types (one per value in the file) and the VNG metadata for vector reassembly. This provides the metadata needed to load vector chunks on demand only as they are referenced.
func (*Object) NewProjection ¶
func (o *Object) NewProjection(fields []string) (*Projection, error)
type Projection ¶
type Projection struct {
// contains filtered or unexported fields
}
func NewProjection ¶
func NewProjection(o *Object, names []string) (*Projection, error)
type Vector ¶
Vector is the primary interface to in-memory sequences of Zed values representing the VNG vector format. As we implement additional optimizations and various forms of pushdown, we will enhance this interface with corresponding methods.