attributes

package
v0.0.0-...-b4d2799 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package attributes provides utilities for managing and manipulating attribute key-value pairs in Arrow format.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttributeID

func AttributeID(k, v string) string

AttributeID generates a unique identifier for the attribute key-value pair.

Types

type AttributeBuilder

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

AttributeBuilder presents a builder for constructing attribute key-value pairs.

func NewAttributeBuilder

func NewAttributeBuilder(allocator memory.Allocator) *AttributeBuilder

NewAttributeBuilder creates a new AttributesBuilder using the provided RecordBuilder.

func (*AttributeBuilder) Append

func (ab *AttributeBuilder) Append(key, val string) uint32

Append appends a key-value pair to the attributes builder and returns the primary key.

func (*AttributeBuilder) Build

func (ab *AttributeBuilder) Build() arrow.RecordBatch

Build builds and returns the RecordBatch containing the attributes.

func (*AttributeBuilder) Release

func (ab *AttributeBuilder) Release()

Release releases the resources held by the RecordBuilder.

func (*AttributeBuilder) Schema

func (ab *AttributeBuilder) Schema() *arrow.Schema

Schema returns the schema of the attributes record.

type Reader

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

func NewReader

func NewReader(record arrow.RecordBatch) *Reader

func (*Reader) Key

func (r *Reader) Key(row int) string

func (*Reader) Reset

func (r *Reader) Reset(record arrow.RecordBatch)

func (*Reader) Value

func (r *Reader) Value(row int) string

Directories

Path Synopsis
Package v1 provides Arrow schema definitions for attribute data.
Package v1 provides Arrow schema definitions for attribute data.

Jump to

Keyboard shortcuts

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