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.