store

package
v0.0.0-...-56e19d2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 26, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultChunkSize int64 = 0
View Source
var DefaultGroupSize int32 = 4096

Functions

func NewArrowTableCloseableIterator

func NewArrowTableCloseableIterator(inMemoryRecords arrow.Record, records []arrow.Record) *engine.CloseableIterator

func ToArrowSchema

func ToArrowSchema(schema *common.Schema) (*arrow.Schema, error)

Types

type Filter

type Filter func(compute.Datum) (compute.Datum, error)

type InMemoryStore

type InMemoryStore struct {
	// contains filtered or unexported fields
}

func (*InMemoryStore) Close

func (store *InMemoryStore) Close()

func (*InMemoryStore) Iterator

func (store *InMemoryStore) Iterator() (*engine.CloseableIterator, error)

func (*InMemoryStore) NamedStruct

func (store *InMemoryStore) NamedStruct() types.NamedStruct

func (*InMemoryStore) Put

func (store *InMemoryStore) Put(_ int64, _ []byte, value []byte) error

func (*InMemoryStore) Schema

func (store *InMemoryStore) Schema() *arrow.Schema

type InputFormatType

type InputFormatType string
const (
	Json InputFormatType = "json"
)

type Store

type Store interface {
	Put(offset int64, key []byte, value []byte) error
	Close()
	Iterator() (*engine.CloseableIterator, error)
	Schema() *arrow.Schema
	NamedStruct() types.NamedStruct
}

func NewInMemoryStore

func NewInMemoryStore(allocator *memory.Allocator, inputFormatType InputFormatType, schema *common.Schema) (*Store, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL