package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev

# Functions

AssertEquivalentBatches is a testing function that asserts that expected and actual are equivalent.
BatchSize is the maximum number of tuples that fit in a column batch.
GetValueAt is an inefficient helper to get the value in a Vec when the type is unknown.
NewBytes returns a Bytes struct with enough capacity to store n []byte values.
NewJSONs returns a new JSONs presized to n elements.
NewMemBatch allocates a new in-memory Batch.
NewMemBatchNoCols creates a "skeleton" of new in-memory Batch.
NewMemBatchWithCapacity allocates a new in-memory Batch with the given column size.
NewNulls returns a new nulls vector, initialized with a length.
NewVec returns a new Vec, initialized with a length using the given column factory.
ProportionalSize calls the method of the same name on bytes-like vectors, panicking if not bytes-like.
ResetIfBytesLike calls Reset on v if it is bytes-like, noop otherwise.
SetBatchSizeForTests modifies batchSize variable.
SetValueAt is an inefficient helper to set the value in a Vec when the type is unknown.

# Constants

BytesMaxInlineLength is the maximum length of a []byte that can be inlined within element.
DefaultColdataBatchSize is the default value of coldata-batch-size.
ElementSize is the size of element object.
FlatBytesOverhead is the overhead of Bytes in bytes.
MaxBatchSize is the maximum acceptable size of batches.

# Variables

GetBatchMemSize returns the total memory footprint of the batch.
StandardColumnFactory is a factory that produces columns of types that are explicitly supported by the vectorized engine (i.e.
VecsToStringWithRowPrefix returns a pretty representation of the vectors.
ZeroBatch is a schema-less Batch of length 0.

# Structs

Bytes is a vector that stores []byte values.
JSONs is a representation of columnar JSON data.
MemBatch is an in-memory implementation of Batch.
Nulls represents a list of potentially nullable values using a bitmap.
SliceArgs represents the arguments passed in to Vec.Append and Nulls.set.
TypedVecs represents a slice of Vecs that have been converted into the typed columns.
Vec is a column vector that's accessible by Go native types.

# Interfaces

Batch is the type that columnar operators receive and produce.
Column is an interface that represents a raw array of a Go native type.
ColumnFactory is an interface that can construct columns for Batches.
Datum is abstract type for elements inside DatumVec, this type in reality should be tree.Datum.
DatumVec is the interface for a specialized vector that operates on tree.Datums in the vectorized engine.

# Type aliases

Bools is a slice of bool.
Decimals is a slice of apd.Decimal.
Durations is a slice of duration.Duration.
Float64s is a slice of float64.
Int16s is a slice of int16.
Int32s is a slice of int32.
Int64s is a slice of int64.
Times is a slice of time.Time.