cassandra

package
v0.0.0-...-21a93f5 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: Apache-2.0 Imports: 14 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MapperReadShard = gio.RegisterMapper(readShard)
)

Functions

This section is empty.

Types

type CassandraShardInfo

type CassandraShardInfo struct {
	Hosts                 string
	StartToken, StopToken string
	PartitionKeys         []string
	TimeoutSeconds        int

	Select   string
	Keyspace string
	Table    string
	Where    string
	Limit    int
}

func (*CassandraShardInfo) ReadSplit

func (s *CassandraShardInfo) ReadSplit() error

type CassandraSource

type CassandraSource struct {
	Concurrency      int
	ShardCount       int
	LimitInEachShard int
	TimeoutSeconds   int
	// contains filtered or unexported fields
}

func Hosts

func Hosts(hosts string) *CassandraSource

func (*CassandraSource) From

func (s *CassandraSource) From(table string) *CassandraSource

func (*CassandraSource) Generate

func (s *CassandraSource) Generate(f *flow.Flow) *flow.Dataset

Generate generates data shard info, partitions them via round robin, and reads each shard on each executor

func (*CassandraSource) Keyspace

func (s *CassandraSource) Keyspace(keyspace string) *CassandraSource

func (*CassandraSource) Select

func (s *CassandraSource) Select(selectClause string) *CassandraSource

func (*CassandraSource) Where

func (s *CassandraSource) Where(whereClause string) *CassandraSource

Jump to

Keyboard shortcuts

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