test

package
v3.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2025 License: Apache-2.0 Imports: 14 Imported by: 0 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

View Source
var (
	DfsDBPath    = "dfs://test_dfsTable"
	TbName1      = "tb1"
	TbName2      = "tb2"
	DfsTBName1   = "pt1"
	DfsTBName2   = "pt2"
	DiskDBPath   = setup.WORK_DIR + `/testTable`
	DBhandler    = "db"
	MemTableName = "memTable"
)

Functions

func AssertEqual

func AssertEqual(s, d interface{})

func AssertNil

func AssertNil(err error)

func CheckmodelTableEqual

func CheckmodelTableEqual(t1 *model.Table, t2 *model.Table, n int) bool

func CheckmodelTableEqual_throttle

func CheckmodelTableEqual_throttle(t1 *model.Table, t2 *model.Table, m int, n int) bool

func ClearEnv

func ClearEnv(addr string)

func ClearStreamTable

func ClearStreamTable(addr string, tableName string)

func CompareTables

func CompareTables(tableName1 *api.Table, tableName2 *api.Table) bool

func CompareTablesDataformTable

func CompareTablesDataformTable(tableName1 *model.Table, tableName2 *api.Table) bool

func CreateDBConnectionPool

func CreateDBConnectionPool(addr string, threadNumCount int, loadbalance bool) *api.DBConnectionPool

func CreateDatabase

func CreateDatabase(ddb api.DolphinDB, dbPath string, dbhandler string, partitionType string, partitionScheme string, location string, engineType string, atomic string) (*api.Database, error)

func CreateDefPartitionedTable

func CreateDefPartitionedTable(ddb *api.Database, tableName string, partitionedTableName string, partitioncolumns []string) (*api.Table, error)

func CreateDfsCompoRangeHashdb

func CreateDfsCompoRangeHashdb(addr string, dbPath string, tableName1 string, tableName2 string)

func CreateDfsCompoRangeListdb

func CreateDfsCompoRangeListdb(addr string, dbPath string, tableName1 string, tableName2 string)

func CreateDfsCompoRangeRangedb

func CreateDfsCompoRangeRangedb(addr string, dbPath string, tableName1 string, tableName2 string)

func CreateDfsCompoRangeRangedbChunkGranularity

func CreateDfsCompoRangeRangedbChunkGranularity(addr string, dbPath string, tableName1 string, tableName2 string)

func CreateDfsCompoRangeValuedb

func CreateDfsCompoRangeValuedb(addr string, dbPath string, tableName1 string, tableName2 string)

func CreateDfsDimensiondb

func CreateDfsDimensiondb(addr string, dbPath string, tableName1 string, tableName2 string)

func CreateDfsHashdb

func CreateDfsHashdb(addr string, dbPath string, tableName1 string, tableName2 string)

func CreateDfsHashdbChunkGranularity

func CreateDfsHashdbChunkGranularity(addr string, dbPath string, tableName1 string, tableName2 string)

func CreateDfsListdb

func CreateDfsListdb(addr string, dbPath string, tableName1 string, tableName2 string)

func CreateDfsListdbChunkGranularity

func CreateDfsListdbChunkGranularity(addr string, dbPath string, tableName1 string, tableName2 string)

func CreateDfsRangedb

func CreateDfsRangedb(addr string, dbPath string, tableName1 string, tableName2 string)

func CreateDfsRangedbChunkGranularity

func CreateDfsRangedbChunkGranularity(addr string, dbPath string, tableName1 string, tableName2 string)

func CreateDfsValuedb

func CreateDfsValuedb(addr string, dbPath string, tableName1 string, tableName2 string)

func CreateDfsValuedbChunkGranularity

func CreateDfsValuedbChunkGranularity(addr string, dbPath string, tableName1 string, tableName2 string)

func CreateDiskCompoRangeRangedb

func CreateDiskCompoRangeRangedb(addr string, dbPath string, tableName1 string, tableName2 string)

func CreateDiskHashdb

func CreateDiskHashdb(addr string, dbPath string, tableName1 string, tableName2 string)

func CreateDiskListdb

func CreateDiskListdb(addr string, dbPath string, tableName1 string, tableName2 string)

func CreateDiskRangedb

func CreateDiskRangedb(addr string, dbPath string, tableName1 string, tableName2 string)

func CreateDiskUnpartitioneddb

func CreateDiskUnpartitioneddb(addr string, dbPath string, tbName1 string, tbName2 string)

func CreateDiskValuedb

func CreateDiskValuedb(addr string, dbPath string, tableName1 string, tableName2 string)

func CreateMemTable

func CreateMemTable(ddb api.DolphinDB, tableName string, colName1 string, colName2 string, colName3 string, colName4 string, dataList1 string, dataList2 string, dataList3 string, dataList4 string) (*api.Table, error)

func CreateStreamingTableWithRandomName

func CreateStreamingTableWithRandomName(conn api.DolphinDB) (string, string)

func CreateStreamingTableWithRandomName_allTypes

func CreateStreamingTableWithRandomName_allTypes(conn api.DolphinDB, dataType model.DataTypeByte, vecVal string) (string, string)

func CreateStreamingTableWithRandomName_av

func CreateStreamingTableWithRandomName_av(conn api.DolphinDB, dataType model.DataTypeByte, vecVal string) (string, string)

func CreateTable

func CreateTable(db *api.Database, tableName string, dimensionTableName string) (*api.Table, error)

func CreateTableWithCapacity

func CreateTableWithCapacity(ddb api.DolphinDB, tableName string, capcity int32, size int32, colName []string, typeName []string) (*api.Table, error)

func Database

func Database(ddb api.DolphinDB, dbPath string, dbhandler string) (*api.Database, error)

func DropDatabase

func DropDatabase(ddb api.DolphinDB, dbPath string) error

func DropPartition

func DropPartition(db api.DolphinDB, partitionedTableName string, dbPath string, partitionPaths string) error

func DropTable

func DropTable(ddb api.DolphinDB, tableName string, dfsDBPath string) error

func ExistsDatabase

func ExistsDatabase(ddb api.DolphinDB, dbPath string) (bool, error)

func ExistsTable

func ExistsTable(ddb api.DolphinDB, dbPath string, tableName string) (bool, error)

func LoadPartitionedTable

func LoadPartitionedTable(db api.DolphinDB, partitionedTableName string, dbPath string) (*api.Table, error)

func LoadTable

func LoadTable(ddb api.DolphinDB, tableName string, dbPath string) (*api.Table, error)

func LoadTableBySQL

func LoadTableBySQL(ddb api.DolphinDB, na string, loadSQL string, dbPath string, partitionedTableName string) (*api.Table, error)

func LoadTableMemoryMode

func LoadTableMemoryMode(ddb api.DolphinDB, tableName string, dbPath string, memoryMode bool) (*api.Table, error)

func LoadTablePartitions

func LoadTablePartitions(ddb api.DolphinDB, tableName string, dbPath string, partitions string) (*api.Table, error)

func LoadTextDelimiter

func LoadTextDelimiter(ddb api.DolphinDB, remoteFilePath string, delimiter string) (*api.Table, error)

func LoadTextFileName

func LoadTextFileName(ddb api.DolphinDB, remoteFilePath string) (*api.Table, error)

func PloadTextDelimiter

func PloadTextDelimiter(ddb api.DolphinDB, remoteFilePath string, delimiter string) (*api.Table, error)

func PloadTextFileName

func PloadTextFileName(ddb api.DolphinDB, remoteFilePath string) (*api.Table, error)

func SaveTable

func SaveTable(ddb api.DolphinDB, dbPath string, tableName string, dbhandler string) error

func SaveText

func SaveText(ddb api.DolphinDB, obj string, remoteFilePath string) error

Types

type MessageBatchHandler

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

func (*MessageBatchHandler) DoEvent

func (s *MessageBatchHandler) DoEvent(msgv []streaming.IMessage)

type MessageBatchHandler_allTypes

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

func (*MessageBatchHandler_allTypes) DoEvent

func (s *MessageBatchHandler_allTypes) DoEvent(msgv []streaming.IMessage)

type MessageBatchHandler_av

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

func (*MessageBatchHandler_av) DoEvent

func (s *MessageBatchHandler_av) DoEvent(msgv []streaming.IMessage)

type MessageHandler

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

func (*MessageHandler) DoEvent

func (s *MessageHandler) DoEvent(msg streaming.IMessage)

type MessageHandler_allTypes

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

func (*MessageHandler_allTypes) DoEvent

func (s *MessageHandler_allTypes) DoEvent(msg streaming.IMessage)

type MessageHandler_av

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

test with msgAsTable=true

func (*MessageHandler_av) DoEvent

func (s *MessageHandler_av) DoEvent(msg streaming.IMessage)

type MessageHandler_table

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

func (*MessageHandler_table) DoEvent

func (s *MessageHandler_table) DoEvent(msg streaming.IMessage)

type MessageHandler_unsubscribeInDoEvent

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

func (*MessageHandler_unsubscribeInDoEvent) DoEvent

type Tuple

type Tuple struct {
	Dt     model.DataTypeByte
	VecVal string
}

Jump to

Keyboard shortcuts

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