partitions

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GoUnusedProtection__ int
View Source
var TDataPartition_PartitionExprs_DEFAULT []*exprs.TExpr

Functions

This section is empty.

Types

type TDataPartition

type TDataPartition struct {
	Type           TPartitionType `thrift:"type,1,required" db:"type" json:"type"`
	PartitionExprs []*exprs.TExpr `thrift:"partition_exprs,2" db:"partition_exprs" json:"partition_exprs,omitempty"`
}

Attributes:

  • Type
  • PartitionExprs

func NewTDataPartition

func NewTDataPartition() *TDataPartition

func (*TDataPartition) Equals added in v0.16.0

func (p *TDataPartition) Equals(other *TDataPartition) bool

func (*TDataPartition) GetPartitionExprs

func (p *TDataPartition) GetPartitionExprs() []*exprs.TExpr

func (*TDataPartition) GetType

func (p *TDataPartition) GetType() TPartitionType

func (*TDataPartition) IsSetPartitionExprs

func (p *TDataPartition) IsSetPartitionExprs() bool

func (*TDataPartition) Read

func (p *TDataPartition) Read(ctx context.Context, iprot thrift.TProtocol) error

func (*TDataPartition) ReadField1

func (p *TDataPartition) ReadField1(ctx context.Context, iprot thrift.TProtocol) error

func (*TDataPartition) ReadField2

func (p *TDataPartition) ReadField2(ctx context.Context, iprot thrift.TProtocol) error

func (*TDataPartition) String

func (p *TDataPartition) String() string

func (*TDataPartition) Write

func (p *TDataPartition) Write(ctx context.Context, oprot thrift.TProtocol) error

type TPartitionType

type TPartitionType int64
const (
	TPartitionType_UNPARTITIONED     TPartitionType = 0
	TPartitionType_RANDOM            TPartitionType = 1
	TPartitionType_HASH_PARTITIONED  TPartitionType = 2
	TPartitionType_RANGE_PARTITIONED TPartitionType = 3
	TPartitionType_KUDU              TPartitionType = 4
)

func TPartitionTypeFromString

func TPartitionTypeFromString(s string) (TPartitionType, error)

func TPartitionTypePtr

func TPartitionTypePtr(v TPartitionType) *TPartitionType

func (TPartitionType) MarshalText

func (p TPartitionType) MarshalText() ([]byte, error)

func (*TPartitionType) Scan

func (p *TPartitionType) Scan(value interface{}) error

func (TPartitionType) String

func (p TPartitionType) String() string

func (*TPartitionType) UnmarshalText

func (p *TPartitionType) UnmarshalText(text []byte) error

func (*TPartitionType) Value

func (p *TPartitionType) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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