schema

package
v3.5.2 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2025 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Overview

Package schema provides types and utilities for working with dataset schemas

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ColumnSchema

type ColumnSchema struct {
	// Name is the identifier of the column
	Name string
	// Type represents the data type of values in this column
	Type ValueType
}

ColumnSchema describes a column in a dataset, including its name and data type.

type Schema

type Schema struct {
	// Columns is a slice of ColumnSchema defining all columns in the dataset
	Columns []ColumnSchema
}

Schema represents the complete structure of a dataset, containing all column definitions.

func FromColumns

func FromColumns(columns []ColumnSchema) Schema

func (*Schema) Filter

func (s *Schema) Filter(projection []string) Schema

Filter returns a new Schema with only the columns specified in projection

type ValueType

type ValueType uint32

ValueType represents the type of a literal in a literal expression.

const (
	ValueTypeBool ValueType
	ValueTypeInt64
	ValueTypeUint64 // Do we need a separate value type for uint64 if we already have int64?
	ValueTypeTimestamp
	ValueTypeString
)

func (ValueType) String

func (t ValueType) String() string

Jump to

Keyboard shortcuts

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