utils

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2020 License: Apache-2.0, Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BOOLEAN int32 = 0
	INT32   int32 = 1
	INT64   int32 = 2
	FLOAT   int32 = 3
	DOUBLE  int32 = 4
	TEXT    int32 = 5
	INT     int32 = 6
)
View Source
const (
	PLAIN            int32 = 0
	PLAIN_DICTIONARY int32 = 1
	RLE              int32 = 2
	DIFF             int32 = 3
	TS_2DIFF         int32 = 4
	BITMAP           int32 = 5
	GORILLA_V1       int32 = 6
	REGULAR          int32 = 7
	GORILLA          int32 = 8
)
View Source
const (
	UNCOMPRESSED int32 = 0
	SNAPPY       int32 = 1
	GZIP         int32 = 2
	LZO          int32 = 3
	SDT          int32 = 4
	PAA          int32 = 5
	PLA          int32 = 6
	LZ4          int32 = 7
)
View Source
const (
	Flag         = 0x80
	StarIndex    = 2
	TimeStampStr = "Time"
)
View Source
const (
	DefaultFetchSize int32 = 10000
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Field

type Field struct {
	DataType string
	// contains filtered or unexported fields
}

func Copy

func Copy(field Field) Field

func NewField

func NewField(DataType string) Field

func (*Field) GetBinaryV

func (f *Field) GetBinaryV() []byte

func (*Field) GetBoolV

func (f *Field) GetBoolV() bool

func (*Field) GetDoubleV

func (f *Field) GetDoubleV() float64

func (*Field) GetField

func (f *Field) GetField(value interface{}, dateType string) *Field

func (*Field) GetFloatV

func (f *Field) GetFloatV() float32

func (*Field) GetIntV

func (f *Field) GetIntV() int32

func (*Field) GetLongV

func (f *Field) GetLongV() int64

func (*Field) GetObjectValue

func (f *Field) GetObjectValue(dateType string) interface{}

func (*Field) GetStringValue

func (f *Field) GetStringValue() string

func (*Field) IsNull

func (f *Field) IsNull() bool

func (*Field) SetBinaryV

func (f *Field) SetBinaryV(binaryVal []byte)

func (*Field) SetBoolV

func (f *Field) SetBoolV(boolVal bool)

func (*Field) SetDoubleV

func (f *Field) SetDoubleV(doubleVal float64)

func (*Field) SetFloatV

func (f *Field) SetFloatV(floatVal float32)

func (*Field) SetIntV

func (f *Field) SetIntV(intVal int32)

func (*Field) SetLongV

func (f *Field) SetLongV(longVal int64)

func (*Field) ToString

func (f *Field) ToString() string

type IoTDBRpcDataSet

type IoTDBRpcDataSet struct {
	Sql             string
	ColumnNameList  []string
	ColumnTypeList  []string
	ColumnNameIndex map[string]int32
	QueryId         int64
	SessionId       int64
	IgnoreTimeStamp bool
	Client          *rpc.TSIServiceClient
	QueryDataSet    *rpc.TSQueryDataSet
	FetchSize       int32

	ColumnTypeDeduplicatedList []string
	Values                     [][]byte
	HasCachedRecord            bool
	ColumnOrdinalMap           map[string]int32
	// contains filtered or unexported fields
}

func NewIoTDBRpcDataSet

func NewIoTDBRpcDataSet(dataSet *SessionDataSet, fetchSize int32) *IoTDBRpcDataSet

type RowRecord

type RowRecord struct {
	Timestamp int64
	Fields    []Field
}

func (*RowRecord) AddField

func (r *RowRecord) AddField(field Field)

type SessionDataSet

type SessionDataSet struct {
	Sql             string
	ColumnNameList  []string
	ColumnTypeList  []string
	ColumnNameIndex map[string]int32
	QueryId         int64
	SessionId       int64
	IgnoreTimeStamp bool
	Client          *rpc.TSIServiceClient
	QueryDataSet    *rpc.TSQueryDataSet
	// contains filtered or unexported fields
}

func NewSessionDataSet

func NewSessionDataSet(dataSet *SessionDataSet) *SessionDataSet

func (*SessionDataSet) CloseOperationHandle

func (s *SessionDataSet) CloseOperationHandle()

func (*SessionDataSet) GetColumnNames

func (s *SessionDataSet) GetColumnNames() []string

func (*SessionDataSet) GetColumnTypes

func (s *SessionDataSet) GetColumnTypes() []string

func (*SessionDataSet) HasNext

func (s *SessionDataSet) HasNext() bool

func (*SessionDataSet) Next

func (s *SessionDataSet) Next() *RowRecord

type Tablet

type Tablet struct {
	DeviceId     string
	Measurements []string
	Values       []interface{}
	Timestamps   []int64
	Types        []int32
}

func (*Tablet) GetBinaryTimestamps

func (t *Tablet) GetBinaryTimestamps() []byte

func (*Tablet) GetBinaryValues

func (t *Tablet) GetBinaryValues() []byte

func (*Tablet) GetDeviceId

func (t *Tablet) GetDeviceId() string

func (*Tablet) GetMeasurements

func (t *Tablet) GetMeasurements() []string

func (*Tablet) GetRowNumber

func (t *Tablet) GetRowNumber() int32

func (*Tablet) GetTypes

func (t *Tablet) GetTypes() []int32

func (*Tablet) SortTablet

func (t *Tablet) SortTablet()

Jump to

Keyboard shortcuts

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