Documentation ¶
Index ¶
- func GetCommonDataType(a *PlanRange, b *PlanRange) schemapb.DataType
- func IntRangeOverlap(range1 *IntRange, range2 *IntRange) bool
- func ParseExprFromPlan(plan *planpb.PlanNode) (*planpb.Expr, error)
- func ParseKeys(expr *planpb.Expr, kType KeyType) []*planpb.GenericValue
- func ParseKeysFromExpr(expr *planpb.Expr, keyType KeyType) ([]*planpb.GenericValue, bool)
- func ParsePartitionKeysFromBinaryExpr(expr *planpb.BinaryExpr, keyType KeyType) ([]*planpb.GenericValue, bool)
- func ParsePartitionKeysFromTermExpr(expr *planpb.TermExpr, keyType KeyType) ([]*planpb.GenericValue, bool)
- func ParsePartitionKeysFromUnaryExpr(expr *planpb.UnaryExpr, keyType KeyType) ([]*planpb.GenericValue, bool)
- func ParsePartitionKeysFromUnaryRangeExpr(expr *planpb.UnaryRangeExpr, keyType KeyType) ([]*planpb.GenericValue, bool)
- func StrRangeOverlap(range1 *StrRange, range2 *StrRange) bool
- func ValidatePartitionKeyIsolation(expr *planpb.Expr) error
- type IntRange
- type KeyType
- type PlanRange
- func Intersect(a *PlanRange, b *PlanRange) *PlanRange
- func ParseRanges(expr *planpb.Expr, kType KeyType) ([]*PlanRange, bool)
- func ParseRangesFromBinaryExpr(expr *planpb.BinaryExpr, kType KeyType) ([]*PlanRange, bool)
- func ParseRangesFromTermExpr(expr *planpb.TermExpr, kType KeyType) ([]*PlanRange, bool)
- func ParseRangesFromUnaryRangeExpr(expr *planpb.UnaryRangeExpr, kType KeyType) ([]*PlanRange, bool)
- type StrRange
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IntRangeOverlap ¶
func ParseKeysFromExpr ¶
func ParsePartitionKeysFromBinaryExpr ¶
func ParsePartitionKeysFromBinaryExpr(expr *planpb.BinaryExpr, keyType KeyType) ([]*planpb.GenericValue, bool)
func ParsePartitionKeysFromUnaryRangeExpr ¶
func ParsePartitionKeysFromUnaryRangeExpr(expr *planpb.UnaryRangeExpr, keyType KeyType) ([]*planpb.GenericValue, bool)
func StrRangeOverlap ¶
Types ¶
type KeyType ¶
type KeyType int64
const ( PartitionKey KeyType = iota ClusteringKey KeyType = PartitionKey + 1 )
type PlanRange ¶
type PlanRange struct {
// contains filtered or unexported fields
}
func ParseRangesFromBinaryExpr ¶
func ParseRangesFromBinaryExpr(expr *planpb.BinaryExpr, kType KeyType) ([]*PlanRange, bool)
func ParseRangesFromTermExpr ¶
func ParseRangesFromUnaryRangeExpr ¶
func ParseRangesFromUnaryRangeExpr(expr *planpb.UnaryRangeExpr, kType KeyType) ([]*PlanRange, bool)
func (*PlanRange) ToIntRange ¶
func (*PlanRange) ToStrRange ¶
Click to show internal directories.
Click to hide internal directories.