domain

package
v3.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: Apache-2.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Domain

type Domain interface {
	// GetPartitionKeys returns partition keys for partitioned table append
	GetPartitionKeys(partitionCol *model.Vector) ([]int, error)
}

Domain interface declares functions to get partition keys.

func CreateDomain

func CreateDomain(p PartitionType, d model.DataTypeByte, schema model.DataForm) (Domain, error)

CreateDomain inits a Domain according to the pt.

type HashDomain

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

HashDomain implements the Domain interface. You can use it to calculate partition keys with HASH partitionType.

func (*HashDomain) GetPartitionKeys

func (h *HashDomain) GetPartitionKeys(partitionCol *model.Vector) ([]int, error)

GetPartitionKeys returns partition keys for partitioned table append.

type ListDomain

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

ListDomain implements the Domain interface. You can use it to calculate partition keys with LIST partitionType.

func NewListDomain

func NewListDomain(vct *model.Vector, d model.DataTypeByte, cat model.CategoryString) (*ListDomain, error)

NewListDomain inits a ListDomain object.

func (*ListDomain) GetPartitionKeys

func (l *ListDomain) GetPartitionKeys(partitionCol *model.Vector) ([]int, error)

GetPartitionKeys returns partition keys for partitioned table append.

type PartitionType

type PartitionType string

PartitionType decides how to append partitioned table.

const (
	// SEQ s the string type of PartitionType SEQ.
	SEQ PartitionType = "SEQ"
	// VALUE s the string type of PartitionType VALUE.
	VALUE PartitionType = "VALUE"
	// RANGE s the string type of PartitionType RANGE.
	RANGE PartitionType = "RANGE"
	// LIST s the string type of PartitionType LIST.
	LIST PartitionType = "LIST"
	// COMPO s the string type of PartitionType COMPO.
	COMPO PartitionType = "COMPO"
	// HASH s the string type of PartitionType HASH.
	HASH PartitionType = "HASH"
)

func GetPartitionType

func GetPartitionType(ind int) PartitionType

GetPartitionType returns the string format of PartitionType with the ind. You can get the ind when you run schema(<TableName>).

type RangeDomain

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

RangeDomain implements the Domain interface. You can use it to calculate partition keys with RANGE partitionType.

func (*RangeDomain) GetPartitionKeys

func (r *RangeDomain) GetPartitionKeys(partitionCol *model.Vector) ([]int, error)

GetPartitionKeys returns partition keys for partitioned table append.

type ValueDomain

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

ValueDomain implements the Domain interface. You can use it to calculate partition keys with VALUE partitionType.

func (*ValueDomain) GetPartitionKeys

func (v *ValueDomain) GetPartitionKeys(partitionCol *model.Vector) ([]int, error)

GetPartitionKeys returns partition keys for partitioned table append.

Jump to

Keyboard shortcuts

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