{"modulePath":"github.com/apache/iotdb-client-go","version":"v1.3.7","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package client\n\n## Constants\n\n```go\nconst (\n\tBYTE_ARRAY_COLUMN_ENCODING = ColumnEncoding(iota)\n\tINT32_ARRAY_COLUMN_ENCODING\n\tINT64_ARRAY_COLUMN_ENCODING\n\tBINARY_ARRAY_COLUMN_ENCODING\n\tRLE_COLUMN_ENCODING\n)\n```\n\n```go\nconst (\n\tSuccessStatus       int32 = 200\n\tIncompatibleVersion int32 = 201\n\tConfigurationError  int32 = 202\n\tStartUpError        int32 = 203\n\tShutDownError       int32 = 204\n\n\tUnsupportedOperation    int32 = 300\n\tExecuteStatementError   int32 = 301\n\tMultipleError           int32 = 302\n\tIllegalParameter        int32 = 303\n\tOverlapWithExistingTask int32 = 304\n\tInternalServerError     int32 = 305\n\n\tRedirectionRecommend int32 = 400\n\n\tDatabaseNotExist        int32 = 500\n\tDatabaseAlreadyExists   int32 = 501\n\tSeriesOverflow          int32 = 502\n\tTimeseriesAlreadyExist  int32 = 503\n\tTimeseriesInBlackList   int32 = 504\n\tAliasAlreadyExist       int32 = 505\n\tPathAlreadyExist        int32 = 506\n\tMetadataError           int32 = 507\n\tPathNotExist            int32 = 508\n\tIllegalPath             int32 = 509\n\tCreateTemplateError     int32 = 510\n\tDuplicatedTemplate      int32 = 511\n\tUndefinedTemplate       int32 = 512\n\tTemplateNotSet          int32 = 513\n\tDifferentTemplate       int32 = 514\n\tTemplateIsInUse         int32 = 515\n\tTemplateIncompatible    int32 = 516\n\tSegmentNotFound         int32 = 517\n\tPageOutOfSpace          int32 = 518\n\tRecordDuplicated        int32 = 519\n\tSegmentOutOfSpace       int32 = 520\n\tSchemaFileNotExists     int32 = 521\n\tOversizeRecord          int32 = 522\n\tSchemaFileRedoLogBroken int32 = 523\n\tTemplateNotActivated    int32 = 524\n\n\tSystemReadOnly         int32 = 600\n\tStorageEngineError     int32 = 601\n\tStorageEngineNotReady  int32 = 602\n\tDataregionProcessError int32 = 603\n\tTsfileProcessorError   int32 = 604\n\tWriteProcessError      int32 = 605\n\tWriteProcessReject     int32 = 606\n\tOutOfTtl               int32 = 607\n\tCompactionError        int32 = 608\n\tAlignedTimeseriesError int32 = 609\n\tWalError               int32 = 610\n\tDiskSpaceInsufficient  int32 = 611\n\n\tSqlParseError             int32 = 700\n\tSemanticError             int32 = 701\n\tGenerateTimeZoneError     int32 = 702\n\tSetTimeZoneError          int32 = 703\n\tQueryNotAllowed           int32 = 704\n\tLogicalOperatorError      int32 = 705\n\tLogicalOptimizeError      int32 = 706\n\tUnsupportedFillType       int32 = 707\n\tQueryProcessError         int32 = 708\n\tMppMemoryNotEnough        int32 = 709\n\tCloseOperationError       int32 = 710\n\tTsblockSerializeError     int32 = 711\n\tInternalRequestTimeOut    int32 = 712\n\tInternalRequestRetryError int32 = 713\n\n\tInitAuthError             int32 = 800\n\tWrongLoginPassword        int32 = 801\n\tNotLogin                  int32 = 802\n\tNoPermission              int32 = 803\n\tUserNotExist              int32 = 804\n\tUserAlreadyExist          int32 = 805\n\tUserAlreadyHasRole        int32 = 806\n\tUserNotHasRole            int32 = 807\n\tRoleNotExist              int32 = 808\n\tRoleAlreadyExist          int32 = 809\n\tAlreadyHasPrivilege       int32 = 810\n\tNotHasPrivilege           int32 = 811\n\tClearPermissionCacheError int32 = 812\n\tUnknownAuthPrivilege      int32 = 813\n\tUnsupportedAuthOperation  int32 = 814\n\tAuthIoException           int32 = 815\n\n\tMigrateRegionError        int32 = 900\n\tCreateRegionError         int32 = 901\n\tDeleteRegionError         int32 = 902\n\tPartitionCacheUpdateError int32 = 903\n\tConsensusNotInitialized   int32 = 904\n\tRegionLeaderChangeError   int32 = 905\n\tNoAvailableRegionGroup    int32 = 906\n\n\tDatanodeAlreadyRegistered int32 = 1000\n\tNoEnoughDatanode          int32 = 1001\n\tAddConfignodeError        int32 = 1002\n\tRemoveConfignodeError     int32 = 1003\n\tDatanodeNotExist          int32 = 1004\n\tDatanodeStopError         int32 = 1005\n\tRemoveDatanodeError       int32 = 1006\n\tRegisterRemovedDatanode   int32 = 1007\n\tCanNotConnectDatanode     int32 = 1008\n\n\tLoadFileError                 int32 = 1100\n\tLoadPieceOfTsfileError        int32 = 1101\n\tDeserializePieceOfTsfileError int32 = 1102\n\tSyncConnectionError           int32 = 1103\n\tSyncFileRedirectionError      int32 = 1104\n\tSyncFileError                 int32 = 1105\n\tCreatePipeSinkError           int32 = 1106\n\tPipeError                     int32 = 1107\n\tPipeserverError               int32 = 1108\n\tVerifyMetadataError           int32 = 1109\n\n\tUdfLoadClassError        int32 = 1200\n\tUdfDownloadError         int32 = 1201\n\tCreateUdfOnDatanodeError int32 = 1202\n\tDropUdfOnDatanodeError   int32 = 1203\n\n\tCreateTriggerError         int32 = 1300\n\tDropTriggerError           int32 = 1301\n\tTriggerFireError           int32 = 1302\n\tTriggerLoadClassError      int32 = 1303\n\tTriggerDownloadError       int32 = 1304\n\tCreateTriggerInstanceError int32 = 1305\n\tActiveTriggerInstanceError int32 = 1306\n\tDropTriggerInstanceError   int32 = 1307\n\tUpdateTriggerLocationError int32 = 1308\n\n\tNoSuchCq                  int32 = 1400\n\tCqAlreadyActive           int32 = 1401\n\tCqAlreadyExist            int32 = 1402\n\tCqUpdateLastExecTimeError int32 = 1403\n)\n```\nTSStatusCode\n\n```go\nconst (\n\tDefaultTimeZone        = \"Asia/Shanghai\"\n\tDefaultFetchSize       = 1024\n\tDefaultConnectRetryMax = 3\n)\n```\n\n```go\nconst (\n\tTimestampColumnName = \"Time\"\n)\n```\n\n## Variables\n\n```go\nvar BitUtil = []byte{1, 2, 4, 8, 16, 32, 64, 128}\n```\n\n```go\nvar UnmarkBitUtil = []byte{\n\t0xFE,\n\t0xFD,\n\t0xFB,\n\t0xF7,\n\t0xEF,\n\t0xDF,\n\t0xBF,\n\t0x7F,\n}\n```\n\n## Functions\n\n```go\nfunc DateToInt32(localDate time.Time) (int32, error)\n```\n\n```go\nfunc Int32ToDate(val int32) (time.Time, error)\n```\n\n```go\nfunc VerifySuccess(status *common.TSStatus) error\n```\n\n## Types\n\n```go\ntype BatchError struct {\n\tMessage string\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (e *BatchError) Error() string\n```\n\n```go\nfunc (e *BatchError) GetStatuses() []*common.TSStatus\n```\n\n```go\ntype Binary struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewBinary(v []byte) *Binary\n```\n\n```go\nfunc (b *Binary) GetStringValue() string\n```\n\n```go\nfunc (b *Binary) GetValues() []byte\n```\n\n```go\ntype BinaryArrayColumnDecoder struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (decoder *BinaryArrayColumnDecoder) ReadColumn(reader *bytes.Reader, dataType TSDataType, positionCount int32) (Column, error)\n```\n\n```go\nfunc (_ *BinaryArrayColumnDecoder) ReadTimeColumn(_ *bytes.Reader, _ int32) (*TimeColumn, error)\n```\n\n```go\ntype BinaryColumn struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewBinaryColumn(arrayOffset int32, positionCount int32, valueIsNull []bool, values []*Binary) (*BinaryColumn, error)\n```\n\n```go\nfunc (c *BinaryColumn) GetBinaries() ([]*Binary, error)\n```\n\n```go\nfunc (c *BinaryColumn) GetBinary(position int32) (*Binary, error)\n```\n\n```go\nfunc (c *BinaryColumn) GetBoolean(_ int32) (bool, error)\n```\n\n```go\nfunc (c *BinaryColumn) GetBooleans() ([]bool, error)\n```\n\n```go\nfunc (c *BinaryColumn) GetDataType() TSDataType\n```\n\n```go\nfunc (c *BinaryColumn) GetDouble(_ int32) (float64, error)\n```\n\n```go\nfunc (c *BinaryColumn) GetDoubles() ([]float64, error)\n```\n\n```go\nfunc (c *BinaryColumn) GetEncoding() ColumnEncoding\n```\n\n```go\nfunc (c *BinaryColumn) GetFloat(_ int32) (float32, error)\n```\n\n```go\nfunc (c *BinaryColumn) GetFloats() ([]float32, error)\n```\n\n```go\nfunc (c *BinaryColumn) GetInt(_ int32) (int32, error)\n```\n\n```go\nfunc (c *BinaryColumn) GetInts() ([]int32, error)\n```\n\n```go\nfunc (c *BinaryColumn) GetLong(_ int32) (int64, error)\n```\n\n```go\nfunc (c *BinaryColumn) GetLongs() ([]int64, error)\n```\n\n```go\nfunc (c *BinaryColumn) GetObject(position int32) (interface{}, error)\n```\n\n```go\nfunc (c *BinaryColumn) GetObjects() ([]interface{}, error)\n```\n\n```go\nfunc (c *BinaryColumn) GetPositionCount() int32\n```\n\n```go\nfunc (c *BinaryColumn) IsNull(position int32) bool\n```\n\n```go\nfunc (c *BinaryColumn) IsNulls() []bool\n```\n\n```go\nfunc (c *BinaryColumn) MayHaveNull() bool\n```\n\n```go\ntype BitMap struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewBitMap(size int) *BitMap\n```\n\n```go\nfunc (b *BitMap) GetBits() []byte\n```\n\n```go\nfunc (b *BitMap) IsAllUnmarked() bool\n```\n\n```go\nfunc (b *BitMap) IsMarked(position int) bool\n```\n\n```go\nfunc (b *BitMap) Mark(position int)\n```\n\n```go\nfunc (b *BitMap) UnMark(position int)\n```\n\n```go\ntype BooleanColumn struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewBooleanColumn(arrayOffset int32, positionCount int32, valueIsNull []bool, values []bool) (*BooleanColumn, error)\n```\n\n```go\nfunc (c *BooleanColumn) GetBinaries() ([]*Binary, error)\n```\n\n```go\nfunc (c *BooleanColumn) GetBinary(_ int32) (*Binary, error)\n```\n\n```go\nfunc (c *BooleanColumn) GetBoolean(position int32) (bool, error)\n```\n\n```go\nfunc (c *BooleanColumn) GetBooleans() ([]bool, error)\n```\n\n```go\nfunc (c *BooleanColumn) GetDataType() TSDataType\n```\n\n```go\nfunc (c *BooleanColumn) GetDouble(_ int32) (float64, error)\n```\n\n```go\nfunc (c *BooleanColumn) GetDoubles() ([]float64, error)\n```\n\n```go\nfunc (c *BooleanColumn) GetEncoding() ColumnEncoding\n```\n\n```go\nfunc (c *BooleanColumn) GetFloat(_ int32) (float32, error)\n```\n\n```go\nfunc (c *BooleanColumn) GetFloats() ([]float32, error)\n```\n\n```go\nfunc (c *BooleanColumn) GetInt(_ int32) (int32, error)\n```\n\n```go\nfunc (c *BooleanColumn) GetInts() ([]int32, error)\n```\n\n```go\nfunc (c *BooleanColumn) GetLong(_ int32) (int64, error)\n```\n\n```go\nfunc (c *BooleanColumn) GetLongs() ([]int64, error)\n```\n\n```go\nfunc (c *BooleanColumn) GetObject(position int32) (interface{}, error)\n```\n\n```go\nfunc (c *BooleanColumn) GetObjects() ([]interface{}, error)\n```\n\n```go\nfunc (c *BooleanColumn) GetPositionCount() int32\n```\n\n```go\nfunc (c *BooleanColumn) IsNull(position int32) bool\n```\n\n```go\nfunc (c *BooleanColumn) IsNulls() []bool\n```\n\n```go\nfunc (c *BooleanColumn) MayHaveNull() bool\n```\n\n```go\ntype ByteArrayColumnDecoder struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (decoder *ByteArrayColumnDecoder) ReadColumn(reader *bytes.Reader, dataType TSDataType, positionCount int32) (Column, error)\n```\n\n```go\nfunc (_ *ByteArrayColumnDecoder) ReadTimeColumn(_ *bytes.Reader, _ int32) (*TimeColumn, error)\n```\n\n```go\ntype ClusterConfig struct {\n\tNodeUrls        []string //ip:port\n\tUserName        string\n\tPassword        string\n\tFetchSize       int32\n\tTimeZone        string\n\tConnectRetryMax int\n}\n```\n\n```go\ntype ClusterSession struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\ntype Column interface {\n\tGetDataType() TSDataType\n\tGetEncoding() ColumnEncoding\n\tGetBoolean(position int32) (bool, error)\n\tGetInt(position int32) (int32, error)\n\tGetLong(position int32) (int64, error)\n\tGetFloat(position int32) (float32, error)\n\tGetDouble(position int32) (float64, error)\n\tGetBinary(position int32) (*Binary, error)\n\tGetObject(position int32) (interface{}, error)\n\n\tGetBooleans() ([]bool, error)\n\tGetInts() ([]int32, error)\n\tGetLongs() ([]int64, error)\n\tGetFloats() ([]float32, error)\n\tGetDoubles() ([]float64, error)\n\tGetBinaries() ([]*Binary, error)\n\tGetObjects() ([]interface{}, error)\n\n\tMayHaveNull() bool\n\tIsNull(position int32) bool\n\tIsNulls() []bool\n\n\tGetPositionCount() int32\n}\n```\n\n```go\ntype ColumnDecoder interface {\n\tReadTimeColumn(reader *bytes.Reader, positionCount int32) (*TimeColumn, error)\n\tReadColumn(reader *bytes.Reader, dataType TSDataType, positionCount int32) (Column, error)\n}\n```\n\n```go\ntype ColumnEncoding uint8\n```\n\n```go\ntype Config struct {\n\tHost            string\n\tPort            string\n\tUserName        string\n\tPassword        string\n\tFetchSize       int32\n\tTimeZone        string\n\tConnectRetryMax int\n}\n```\n\n```go\ntype DoubleColumn struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewDoubleColumn(arrayOffset int32, positionCount int32, valueIsNull []bool, values []float64) (*DoubleColumn, error)\n```\n\n```go\nfunc (c *DoubleColumn) GetBinaries() ([]*Binary, error)\n```\n\n```go\nfunc (c *DoubleColumn) GetBinary(_ int32) (*Binary, error)\n```\n\n```go\nfunc (c *DoubleColumn) GetBoolean(_ int32) (bool, error)\n```\n\n```go\nfunc (c *DoubleColumn) GetBooleans() ([]bool, error)\n```\n\n```go\nfunc (c *DoubleColumn) GetDataType() TSDataType\n```\n\n```go\nfunc (c *DoubleColumn) GetDouble(position int32) (float64, error)\n```\n\n```go\nfunc (c *DoubleColumn) GetDoubles() ([]float64, error)\n```\n\n```go\nfunc (c *DoubleColumn) GetEncoding() ColumnEncoding\n```\n\n```go\nfunc (c *DoubleColumn) GetFloat(_ int32) (float32, error)\n```\n\n```go\nfunc (c *DoubleColumn) GetFloats() ([]float32, error)\n```\n\n```go\nfunc (c *DoubleColumn) GetInt(_ int32) (int32, error)\n```\n\n```go\nfunc (c *DoubleColumn) GetInts() ([]int32, error)\n```\n\n```go\nfunc (c *DoubleColumn) GetLong(_ int32) (int64, error)\n```\n\n```go\nfunc (c *DoubleColumn) GetLongs() ([]int64, error)\n```\n\n```go\nfunc (c *DoubleColumn) GetObject(position int32) (interface{}, error)\n```\n\n```go\nfunc (c *DoubleColumn) GetObjects() ([]interface{}, error)\n```\n\n```go\nfunc (c *DoubleColumn) GetPositionCount() int32\n```\n\n```go\nfunc (c *DoubleColumn) IsNull(position int32) bool\n```\n\n```go\nfunc (c *DoubleColumn) IsNulls() []bool\n```\n\n```go\nfunc (c *DoubleColumn) MayHaveNull() bool\n```\n\n```go\ntype ExecutionError struct {\n\tCode    int32\n\tMessage string\n}\n```\nExecutionError represents an error returned by the server via TSStatus. It is NOT a connection error and should not cause session drops.\n\n```go\nfunc (e *ExecutionError) Error() string\n```\n\n```go\ntype Field struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (f *Field) GetDataType() TSDataType\n```\n\n```go\nfunc (f *Field) GetFloat32() float32\n```\n\n```go\nfunc (f *Field) GetFloat64() float64\n```\n\n```go\nfunc (f *Field) GetInt32() int32\n```\n\n```go\nfunc (f *Field) GetInt64() int64\n```\n\n```go\nfunc (f *Field) GetName() string\n```\n\n```go\nfunc (f *Field) GetText() string\n```\n\n```go\nfunc (f *Field) GetValue() interface{}\n```\n\n```go\nfunc (f *Field) IsNull() bool\n```\n\n```go\ntype FloatColumn struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewFloatColumn(arrayOffset int32, positionCount int32, valueIsNull []bool, values []float32) (*FloatColumn, error)\n```\n\n```go\nfunc (c *FloatColumn) GetBinaries() ([]*Binary, error)\n```\n\n```go\nfunc (c *FloatColumn) GetBinary(_ int32) (*Binary, error)\n```\n\n```go\nfunc (c *FloatColumn) GetBoolean(_ int32) (bool, error)\n```\n\n```go\nfunc (c *FloatColumn) GetBooleans() ([]bool, error)\n```\n\n```go\nfunc (c *FloatColumn) GetDataType() TSDataType\n```\n\n```go\nfunc (c *FloatColumn) GetDouble(_ int32) (float64, error)\n```\n\n```go\nfunc (c *FloatColumn) GetDoubles() ([]float64, error)\n```\n\n```go\nfunc (c *FloatColumn) GetEncoding() ColumnEncoding\n```\n\n```go\nfunc (c *FloatColumn) GetFloat(position int32) (float32, error)\n```\n\n```go\nfunc (c *FloatColumn) GetFloats() ([]float32, error)\n```\n\n```go\nfunc (c *FloatColumn) GetInt(_ int32) (int32, error)\n```\n\n```go\nfunc (c *FloatColumn) GetInts() ([]int32, error)\n```\n\n```go\nfunc (c *FloatColumn) GetLong(_ int32) (int64, error)\n```\n\n```go\nfunc (c *FloatColumn) GetLongs() ([]int64, error)\n```\n\n```go\nfunc (c *FloatColumn) GetObject(position int32) (interface{}, error)\n```\n\n```go\nfunc (c *FloatColumn) GetObjects() ([]interface{}, error)\n```\n\n```go\nfunc (c *FloatColumn) GetPositionCount() int32\n```\n\n```go\nfunc (c *FloatColumn) IsNull(position int32) bool\n```\n\n```go\nfunc (c *FloatColumn) IsNulls() []bool\n```\n\n```go\nfunc (c *FloatColumn) MayHaveNull() bool\n```\n\n```go\ntype Int32ArrayColumnDecoder struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (decoder *Int32ArrayColumnDecoder) ReadColumn(reader *bytes.Reader, dataType TSDataType, positionCount int32) (Column, error)\n```\n\n```go\nfunc (_ *Int32ArrayColumnDecoder) ReadTimeColumn(_ *bytes.Reader, _ int32) (*TimeColumn, error)\n```\n\n```go\ntype Int64ArrayColumnDecoder struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (decoder *Int64ArrayColumnDecoder) ReadColumn(reader *bytes.Reader, dataType TSDataType, positionCount int32) (Column, error)\n```\n\n```go\nfunc (decoder *Int64ArrayColumnDecoder) ReadTimeColumn(reader *bytes.Reader, positionCount int32) (*TimeColumn, error)\n```\n\n```go\ntype IntColumn struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewIntColumn(arrayOffset int32, positionCount int32, valueIsNull []bool, values []int32) (*IntColumn, error)\n```\n\n```go\nfunc (c *IntColumn) GetBinaries() ([]*Binary, error)\n```\n\n```go\nfunc (c *IntColumn) GetBinary(_ int32) (*Binary, error)\n```\n\n```go\nfunc (c *IntColumn) GetBoolean(_ int32) (bool, error)\n```\n\n```go\nfunc (c *IntColumn) GetBooleans() ([]bool, error)\n```\n\n```go\nfunc (c *IntColumn) GetDataType() TSDataType\n```\n\n```go\nfunc (c *IntColumn) GetDouble(_ int32) (float64, error)\n```\n\n```go\nfunc (c *IntColumn) GetDoubles() ([]float64, error)\n```\n\n```go\nfunc (c *IntColumn) GetEncoding() ColumnEncoding\n```\n\n```go\nfunc (c *IntColumn) GetFloat(_ int32) (float32, error)\n```\n\n```go\nfunc (c *IntColumn) GetFloats() ([]float32, error)\n```\n\n```go\nfunc (c *IntColumn) GetInt(position int32) (int32, error)\n```\n\n```go\nfunc (c *IntColumn) GetInts() ([]int32, error)\n```\n\n```go\nfunc (c *IntColumn) GetLong(_ int32) (int64, error)\n```\n\n```go\nfunc (c *IntColumn) GetLongs() ([]int64, error)\n```\n\n```go\nfunc (c *IntColumn) GetObject(position int32) (interface{}, error)\n```\n\n```go\nfunc (c *IntColumn) GetObjects() ([]interface{}, error)\n```\n\n```go\nfunc (c *IntColumn) GetPositionCount() int32\n```\n\n```go\nfunc (c *IntColumn) IsNull(position int32) bool\n```\n\n```go\nfunc (c *IntColumn) IsNulls() []bool\n```\n\n```go\nfunc (c *IntColumn) MayHaveNull() bool\n```\n\n```go\ntype IoTDBRpcDataSet struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewIoTDBRpcDataSet(sql string, columnNameList []string, columnTypeList []string, columnNameIndex map[string]int32, ignoreTimestamp bool, moreData bool, queryId int64, statementId int64, client *rpc.IClientRPCServiceClient, sessionId int64, queryResult [][]byte, fetchSize int32, timeout *int64) (rpcDataSet *IoTDBRpcDataSet, err error)\n```\n\n```go\nfunc (s *IoTDBRpcDataSet) Close() (err error)\n```\n\n```go\nfunc (s *IoTDBRpcDataSet) GetDate(columnName string) (time.Time, error)\n```\n\n```go\nfunc (s *IoTDBRpcDataSet) GetDateByIndex(columnIndex int32) (time.Time, error)\n```\n\n```go\nfunc (s *IoTDBRpcDataSet) Next() (result bool, err error)\n```\n\n```go\ntype LongColumn struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewLongColumn(arrayOffset int32, positionCount int32, valueIsNull []bool, values []int64) (*LongColumn, error)\n```\n\n```go\nfunc (c *LongColumn) GetBinaries() ([]*Binary, error)\n```\n\n```go\nfunc (c *LongColumn) GetBinary(_ int32) (*Binary, error)\n```\n\n```go\nfunc (c *LongColumn) GetBoolean(_ int32) (bool, error)\n```\n\n```go\nfunc (c *LongColumn) GetBooleans() ([]bool, error)\n```\n\n```go\nfunc (c *LongColumn) GetDataType() TSDataType\n```\n\n```go\nfunc (c *LongColumn) GetDouble(_ int32) (float64, error)\n```\n\n```go\nfunc (c *LongColumn) GetDoubles() ([]float64, error)\n```\n\n```go\nfunc (c *LongColumn) GetEncoding() ColumnEncoding\n```\n\n```go\nfunc (c *LongColumn) GetFloat(_ int32) (float32, error)\n```\n\n```go\nfunc (c *LongColumn) GetFloats() ([]float32, error)\n```\n\n```go\nfunc (c *LongColumn) GetInt(_ int32) (int32, error)\n```\n\n```go\nfunc (c *LongColumn) GetInts() ([]int32, error)\n```\n\n```go\nfunc (c *LongColumn) GetLong(position int32) (int64, error)\n```\n\n```go\nfunc (c *LongColumn) GetLongs() ([]int64, error)\n```\n\n```go\nfunc (c *LongColumn) GetObject(position int32) (interface{}, error)\n```\n\n```go\nfunc (c *LongColumn) GetObjects() ([]interface{}, error)\n```\n\n```go\nfunc (c *LongColumn) GetPositionCount() int32\n```\n\n```go\nfunc (c *LongColumn) IsNull(position int32) bool\n```\n\n```go\nfunc (c *LongColumn) IsNulls() []bool\n```\n\n```go\nfunc (c *LongColumn) MayHaveNull() bool\n```\n\n```go\ntype MeasurementSchema struct {\n\tMeasurement string\n\tDataType    TSDataType\n}\n```\n\n```go\ntype PoolConfig struct {\n\tHost            string\n\tPort            string\n\tNodeUrls        []string\n\tUserName        string\n\tPassword        string\n\tFetchSize       int32\n\tTimeZone        string\n\tConnectRetryMax int\n}\n```\n\n```go\ntype RowRecord struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r *RowRecord) GetFields() []*Field\n```\n\n```go\nfunc (r *RowRecord) GetTimestamp() int64\n```\n\n```go\ntype RunLengthColumnDecoder struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (decoder *RunLengthColumnDecoder) ReadColumn(reader *bytes.Reader, dataType TSDataType, positionCount int32) (Column, error)\n```\n\n```go\nfunc (_ *RunLengthColumnDecoder) ReadTimeColumn(_ *bytes.Reader, _ int32) (*TimeColumn, error)\n```\n\n```go\ntype RunLengthEncodedColumn struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewRunLengthEncodedColumn(value Column, positionCount int32) (*RunLengthEncodedColumn, error)\n```\n\n```go\nfunc (c *RunLengthEncodedColumn) GetBinaries() ([]*Binary, error)\n```\n\n```go\nfunc (c *RunLengthEncodedColumn) GetBinary(_ int32) (*Binary, error)\n```\n\n```go\nfunc (c *RunLengthEncodedColumn) GetBoolean(_ int32) (bool, error)\n```\n\n```go\nfunc (c *RunLengthEncodedColumn) GetBooleans() ([]bool, error)\n```\n\n```go\nfunc (c *RunLengthEncodedColumn) GetDataType() TSDataType\n```\n\n```go\nfunc (c *RunLengthEncodedColumn) GetDouble(_ int32) (float64, error)\n```\n\n```go\nfunc (c *RunLengthEncodedColumn) GetDoubles() ([]float64, error)\n```\n\n```go\nfunc (c *RunLengthEncodedColumn) GetEncoding() ColumnEncoding\n```\n\n```go\nfunc (c *RunLengthEncodedColumn) GetFloat(_ int32) (float32, error)\n```\n\n```go\nfunc (c *RunLengthEncodedColumn) GetFloats() ([]float32, error)\n```\n\n```go\nfunc (c *RunLengthEncodedColumn) GetInt(_ int32) (int32, error)\n```\n\n```go\nfunc (c *RunLengthEncodedColumn) GetInts() ([]int32, error)\n```\n\n```go\nfunc (c *RunLengthEncodedColumn) GetLong(_ int32) (int64, error)\n```\n\n```go\nfunc (c *RunLengthEncodedColumn) GetLongs() ([]int64, error)\n```\n\n```go\nfunc (c *RunLengthEncodedColumn) GetObject(_ int32) (interface{}, error)\n```\n\n```go\nfunc (c *RunLengthEncodedColumn) GetObjects() ([]interface{}, error)\n```\n\n```go\nfunc (c *RunLengthEncodedColumn) GetPositionCount() int32\n```\n\n```go\nfunc (c *RunLengthEncodedColumn) GetValue() Column\n```\n\n```go\nfunc (c *RunLengthEncodedColumn) IsNull(_ int32) bool\n```\n\n```go\nfunc (c *RunLengthEncodedColumn) IsNulls() []bool\n```\n\n```go\nfunc (c *RunLengthEncodedColumn) MayHaveNull() bool\n```\n\n```go\ntype Session struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewClusterSession(clusterConfig *ClusterConfig) (Session, error)\n```\n\n```go\nfunc NewSession(config *Config) Session\n```\n\n```go\nfunc (s *Session) Close() error\n```\n\n```go\nfunc (s *Session) CreateAlignedTimeseries(prefixPath string, measurements []string, dataTypes []TSDataType, encodings []TSEncoding, compressors []TSCompressionType, measurementAlias []string) error\n```\n\\*create single aligned time series \\*params \\*prefixPath: string, time series prefix path (starts from root) \\*measurements: \\[]string, sensor names \\*dataTypes: \\[]int32, data types for time series \\*encodings: \\[]int32, encodings for time series \\*compressors: \\[]int32, compressing types for time series \\*measurementAlias: \\[]string, sensor names alias \\*return \\*error: correctness of operation\n\n```go\nfunc (s *Session) CreateMultiTimeseries(paths []string, dataTypes []TSDataType, encodings []TSEncoding, compressors []TSCompressionType) error\n```\n\\*create multiple time series \\*params \\*paths: \\[]string, complete time series paths (starts from root) \\*dataTypes: \\[]int32, data types for time series \\*encodings: \\[]int32, encodings for time series \\*compressors: \\[]int32, compressing types for time series \\*return \\*error: correctness of operation\n\n```go\nfunc (s *Session) CreateTimeseries(path string, dataType TSDataType, encoding TSEncoding, compressor TSCompressionType, attributes map[string]string, tags map[string]string) error\n```\n\\*create single time series \\*params \\*path: string, complete time series path (starts from root) \\*dataType: int32, data type for this time series \\*encoding: int32, data type for this time series \\*compressor: int32, compressing type for this time series \\*return \\*error: correctness of operation\n\n```go\nfunc (s *Session) DeleteData(paths []string, startTime int64, endTime int64) error\n```\n\\*delete all startTime \\\u003c= data \\\u003c= endTime in multiple time series \\*params \\*paths: \\[]string, time series array that the data in \\*startTime: int64, start time of deletion range \\*endTime: int64, end time of deletion range \\*return \\*error: correctness of operation\n\n```go\nfunc (s *Session) DeleteStorageGroup(storageGroupId string) error\n```\n\\*delete one storage group \\*param \\*storageGroupId: string, storage group name (starts from root) \\*return \\*error: correctness of operation\n\n```go\nfunc (s *Session) DeleteStorageGroups(storageGroupIds ...string) error\n```\n\\*delete multiple storage group \\*param \\*storageGroupIds: \\[]string, paths of the target storage groups \\*return \\*error: correctness of operation\n\n```go\nfunc (s *Session) DeleteTimeseries(paths []string) error\n```\n\\*delete multiple time series, including data and schema \\*params \\*paths: \\[]string, time series paths, which should be complete (starts from root) \\*return \\*error: correctness of operation\n\n```go\nfunc (s *Session) ExecuteAggregationQuery(paths []string, aggregations []common.TAggregationType,\n\tstartTime *int64, endTime *int64, interval *int64,\n\ttimeoutMs *int64) (*SessionDataSet, error)\n```\n\n```go\nfunc (s *Session) ExecuteAggregationQueryWithLegalNodes(paths []string, aggregations []common.TAggregationType,\n\tstartTime *int64, endTime *int64, interval *int64,\n\ttimeoutMs *int64, legalNodes *bool) (*SessionDataSet, error)\n```\n\n```go\nfunc (s *Session) ExecuteBatchStatement(inserts []string) error\n```\n\n```go\nfunc (s *Session) ExecuteNonQueryStatement(sql string) error\n```\n\n```go\nfunc (s *Session) ExecuteQueryStatement(sql string, timeoutMs *int64) (*SessionDataSet, error)\n```\n\n```go\nfunc (s *Session) ExecuteRawDataQuery(paths []string, startTime int64, endTime int64) (*SessionDataSet, error)\n```\n\n```go\nfunc (s *Session) ExecuteStatement(sql string) (*SessionDataSet, error)\n```\n\n```go\nfunc (s *Session) ExecuteStatementWithContext(ctx context.Context, sql string) (*SessionDataSet, error)\n```\n\n```go\nfunc (s *Session) ExecuteUpdateStatement(sql string) (*SessionDataSet, error)\n```\n\n```go\nfunc (s *Session) GetSessionId() int64\n```\n\n```go\nfunc (s *Session) GetTimeZone() (string, error)\n```\n\n```go\nfunc (s *Session) InsertAlignedRecord(deviceId string, measurements []string, dataTypes []TSDataType, values []interface{}, timestamp int64) error\n```\n\n```go\nfunc (s *Session) InsertAlignedRecords(deviceIds []string, measurements [][]string, dataTypes [][]TSDataType, values [][]interface{},\n\ttimestamps []int64,\n) error\n```\n\n```go\nfunc (s *Session) InsertAlignedRecordsOfOneDevice(deviceId string, timestamps []int64, measurementsSlice [][]string, dataTypesSlice [][]TSDataType, valuesSlice [][]interface{}, sorted bool) error\n```\n\n```go\nfunc (s *Session) InsertAlignedTablet(tablet *Tablet, sorted bool) error\n```\n\n```go\nfunc (s *Session) InsertAlignedTablets(tablets []*Tablet, sorted bool) error\n```\n\n```go\nfunc (s *Session) InsertRecord(deviceId string, measurements []string, dataTypes []TSDataType, values []interface{}, timestamp int64) error\n```\n\n```go\nfunc (s *Session) InsertRecords(deviceIds []string, measurements [][]string, dataTypes [][]TSDataType, values [][]interface{},\n\ttimestamps []int64,\n) error\n```\n\\*insert multiple rows of data, records are independent to each other, in other words, there's no relationship \\*between those records \\* \\*params \\*deviceIds: \\[]string, time series paths for device \\*measurements: \\[]\\[]string, each element of outer list indicates measurements of a device \\*dataTypes: \\[]\\[]int32, each element of outer list indicates sensor data types of a device \\*values: \\[]\\[]interface{}, values to be inserted, for each device \\*timestamps: \\[]int64, timestamps for records \\*\n\n```go\nfunc (s *Session) InsertRecordsOfOneDevice(deviceId string, timestamps []int64, measurementsSlice [][]string, dataTypesSlice [][]TSDataType, valuesSlice [][]interface{}, sorted bool) error\n```\nInsertRecordsOfOneDevice Insert multiple rows, which can reduce the overhead of network. This method is just like jdbc executeBatch, we pack some insert request in batch and send them to server. If you want improve your performance, please see insertTablet method Each row is independent, which could have different insertTargetName, time, number of measurements\n\n```go\nfunc (s *Session) InsertStringRecord(deviceId string, measurements []string, values []string, timestamp int64) error\n```\n\\*special case for inserting one row of String (TEXT) value \\*params \\*deviceId: string, time series path for device \\*measurements: \\[]string, sensor names \\*values: \\[]string, values to be inserted, for each sensor \\*timestamp: int64, indicate the timestamp of the row of data \\*return \\*error: correctness of operation\n\n```go\nfunc (s *Session) InsertTablet(tablet *Tablet, sorted bool) error\n```\n\n```go\nfunc (s *Session) InsertTablets(tablets []*Tablet, sorted bool) error\n```\n\\* InsertTablets insert multiple tablets, tablets are independent to each other \\*params \\*tablets: \\[]\\*client.Tablet, list of tablets\n\n```go\nfunc (s *Session) Open(enableRPCCompression bool, connectionTimeoutInMs int) error\n```\n\n```go\nfunc (s *Session) OpenCluster(enableRPCCompression bool) error\n```\n\n```go\nfunc (s *Session) SetFetchSize(fetchSize int32)\n```\n\n```go\nfunc (s *Session) SetStorageGroup(storageGroupId string) error\n```\n\\*set one storage group \\*param \\*storageGroupId: string, storage group name (starts from root) \\*return \\*error: correctness of operation\n\n```go\nfunc (s *Session) SetTimeZone(timeZone string) error\n```\n\n```go\ntype SessionDataSet struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewSessionDataSet(sql string, columnNameList []string, columnTypeList []string, columnNameIndex map[string]int32, queryId int64, statementId int64, client *rpc.IClientRPCServiceClient, sessionId int64, queryResult [][]byte, ignoreTimestamp bool, timeout *int64, moreData bool, fetchSize int32) (*SessionDataSet, error)\n```\n\n```go\nfunc (s *SessionDataSet) Close() error\n```\n\n```go\nfunc (s *SessionDataSet) FindColumn(columnName string) int32\n```\n\n```go\nfunc (s *SessionDataSet) GetBlob(columnName string) (*Binary, error)\n```\n\n```go\nfunc (s *SessionDataSet) GetBlobByIndex(columnIndex int32) (*Binary, error)\n```\n\n```go\nfunc (s *SessionDataSet) GetBoolean(columnName string) (bool, error)\n```\n\n```go\nfunc (s *SessionDataSet) GetBooleanByIndex(columnIndex int32) (bool, error)\n```\n\n```go\nfunc (s *SessionDataSet) GetColumnNames() []string\n```\n\n```go\nfunc (s *SessionDataSet) GetColumnTypes() []string\n```\n\n```go\nfunc (s *SessionDataSet) GetDate(columnName string) (time.Time, error)\n```\n\n```go\nfunc (s *SessionDataSet) GetDateByIndex(columnIndex int32) (time.Time, error)\n```\n\n```go\nfunc (s *SessionDataSet) GetDouble(columnName string) (float64, error)\n```\n\n```go\nfunc (s *SessionDataSet) GetDoubleByIndex(columnIndex int32) (float64, error)\n```\n\n```go\nfunc (s *SessionDataSet) GetFloat(columnName string) (float32, error)\n```\n\n```go\nfunc (s *SessionDataSet) GetFloatByIndex(columnIndex int32) (float32, error)\n```\n\n```go\nfunc (s *SessionDataSet) GetInt(columnName string) (int32, error)\n```\n\n```go\nfunc (s *SessionDataSet) GetIntByIndex(columnIndex int32) (int32, error)\n```\n\n```go\nfunc (s *SessionDataSet) GetLong(columnName string) (int64, error)\n```\n\n```go\nfunc (s *SessionDataSet) GetLongByIndex(columnIndex int32) (int64, error)\n```\n\n```go\nfunc (s *SessionDataSet) GetObject(columnName string) (interface{}, error)\n```\n\n```go\nfunc (s *SessionDataSet) GetObjectByIndex(columnIndex int32) (interface{}, error)\n```\n\n```go\nfunc (s *SessionDataSet) GetString(columnName string) (string, error)\n```\n\n```go\nfunc (s *SessionDataSet) GetStringByIndex(columnIndex int32) (string, error)\n```\n\n```go\nfunc (s *SessionDataSet) GetTimestamp(columnName string) (time.Time, error)\n```\n\n```go\nfunc (s *SessionDataSet) GetTimestampByIndex(columnIndex int32) (time.Time, error)\n```\n\n```go\nfunc (s *SessionDataSet) IsNull(columnName string) (bool, error)\n```\n\n```go\nfunc (s *SessionDataSet) IsNullByIndex(columnIndex int32) (bool, error)\n```\n\n```go\nfunc (s *SessionDataSet) Next() (bool, error)\n```\n\n```go\ntype SessionPool struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewSessionPool(conf *PoolConfig, maxSize, connectionTimeoutInMs, waitToGetSessionTimeoutInMs int,\n\tenableCompression bool) SessionPool\n```\n\n```go\nfunc (spool *SessionPool) Close()\n```\n\n```go\nfunc (spool *SessionPool) ConstructSession(config *PoolConfig) (session Session, err error)\n```\n\n```go\nfunc (spool *SessionPool) GetSession() (session Session, err error)\n```\n\n```go\nfunc (spool *SessionPool) PutBack(session Session)\n```\n\n```go\ntype TSCompressionType uint8\n```\n\n```go\nconst (\n\tUNCOMPRESSED TSCompressionType = 0\n\tSNAPPY       TSCompressionType = 1\n\tGZIP         TSCompressionType = 2\n\tLZ4          TSCompressionType = 7\n\tZSTD         TSCompressionType = 8\n\tLZMA2        TSCompressionType = 9\n)\n```\n\n```go\ntype TSDataType int8\n```\n\n```go\nconst (\n\tUNKNOWN   TSDataType = -1\n\tBOOLEAN   TSDataType = 0\n\tINT32     TSDataType = 1\n\tINT64     TSDataType = 2\n\tFLOAT     TSDataType = 3\n\tDOUBLE    TSDataType = 4\n\tTEXT      TSDataType = 5\n\tTIMESTAMP TSDataType = 8\n\tDATE      TSDataType = 9\n\tBLOB      TSDataType = 10\n\tSTRING    TSDataType = 11\n)\n```\n\n```go\nfunc GetDataTypeByStr(name string) (TSDataType, error)\n```\n\n```go\ntype TSEncoding uint8\n```\n\n```go\nconst (\n\tPLAIN      TSEncoding = 0\n\tDICTIONARY TSEncoding = 1\n\tRLE        TSEncoding = 2\n\tDIFF       TSEncoding = 3\n\tTS_2DIFF   TSEncoding = 4\n\tBITMAP     TSEncoding = 5\n\tGORILLA_V1 TSEncoding = 6\n\tREGULAR    TSEncoding = 7\n\tGORILLA    TSEncoding = 8\n\tZIGZAG     TSEncoding = 9\n\tFREQ       TSEncoding = 10\n\tCHIMP      TSEncoding = 11\n\tSPRINTZ    TSEncoding = 12\n\tRLBE       TSEncoding = 13\n)\n```\n\n```go\ntype Tablet struct {\n\tRowSize int\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewTablet(deviceId string, measurementSchemas []*MeasurementSchema, maxRowNumber int) (*Tablet, error)\n```\n\n```go\nfunc (t *Tablet) GetMeasurements() []string\n```\n\n```go\nfunc (t *Tablet) GetRowCount() int\n```\n\n```go\nfunc (t *Tablet) GetTimestampBytes() []byte\n```\n\n```go\nfunc (t *Tablet) GetValueAt(columnIndex, rowIndex int) (interface{}, error)\n```\n\n```go\nfunc (t *Tablet) Len() int\n```\n\n```go\nfunc (t *Tablet) Less(i, j int) bool\n```\n\n```go\nfunc (t *Tablet) Reset()\n```\n\n```go\nfunc (t *Tablet) SetTimestamp(timestamp int64, rowIndex int)\n```\n\n```go\nfunc (t *Tablet) SetValueAt(value interface{}, columnIndex, rowIndex int) error\n```\n\n```go\nfunc (t *Tablet) Sort() error\n```\n\n```go\nfunc (t *Tablet) Swap(i, j int)\n```\n\n```go\ntype TimeColumn struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewTimeColumn(arrayOffset int32, positionCount int32, values []int64) (*TimeColumn, error)\n```\n\n```go\nfunc (c *TimeColumn) GetBinaries() ([]*Binary, error)\n```\n\n```go\nfunc (c *TimeColumn) GetBinary(_ int32) (*Binary, error)\n```\n\n```go\nfunc (c *TimeColumn) GetBoolean(_ int32) (bool, error)\n```\n\n```go\nfunc (c *TimeColumn) GetBooleans() ([]bool, error)\n```\n\n```go\nfunc (tc *TimeColumn) GetDataType() TSDataType\n```\n\n```go\nfunc (c *TimeColumn) GetDouble(_ int32) (float64, error)\n```\n\n```go\nfunc (c *TimeColumn) GetDoubles() ([]float64, error)\n```\n\n```go\nfunc (tc *TimeColumn) GetEncoding() ColumnEncoding\n```\n\n```go\nfunc (tc *TimeColumn) GetEndTime() int64\n```\n\n```go\nfunc (c *TimeColumn) GetFloat(_ int32) (float32, error)\n```\n\n```go\nfunc (c *TimeColumn) GetFloats() ([]float32, error)\n```\n\n```go\nfunc (c *TimeColumn) GetInt(_ int32) (int32, error)\n```\n\n```go\nfunc (c *TimeColumn) GetInts() ([]int32, error)\n```\n\n```go\nfunc (tc *TimeColumn) GetLong(position int32) (int64, error)\n```\n\n```go\nfunc (tc *TimeColumn) GetLongs() ([]int64, error)\n```\n\n```go\nfunc (c *TimeColumn) GetObject(_ int32) (interface{}, error)\n```\n\n```go\nfunc (c *TimeColumn) GetObjects() ([]interface{}, error)\n```\n\n```go\nfunc (tc *TimeColumn) GetPositionCount() int32\n```\n\n```go\nfunc (tc *TimeColumn) GetStartTime() int64\n```\n\n```go\nfunc (tc *TimeColumn) GetTimes() []int64\n```\n\n```go\nfunc (tc *TimeColumn) IsNull(_ int32) bool\n```\n\n```go\nfunc (tc *TimeColumn) IsNulls() []bool\n```\n\n```go\nfunc (tc *TimeColumn) MayHaveNull() bool\n```\n\n```go\ntype TsBlock struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc DeserializeTsBlock(data []byte) (*TsBlock, error)\n```\n\n```go\nfunc NewTsBlock(positionCount int32, timeColumn *TimeColumn, valueColumns ...Column) (*TsBlock, error)\n```\n\n```go\nfunc (t *TsBlock) GetColumn(columnIndex int32) Column\n```\n\n```go\nfunc (t *TsBlock) GetEndTime() int64\n```\n\n```go\nfunc (t *TsBlock) GetPositionCount() int32\n```\n\n```go\nfunc (t *TsBlock) GetStartTime() int64\n```\n\n```go\nfunc (t *TsBlock) GetTimeByIndex(index int32) (int64, error)\n```\n\n```go\nfunc (t *TsBlock) GetTimeColumn() Column\n```\n\n```go\nfunc (t *TsBlock) GetValueColumnCount() int32\n```\n\n```go\nfunc (t *TsBlock) GetValueColumns() *[]Column\n```\n\n```go\nfunc (t *TsBlock) IsEmpty() bool\n```\n\n","path":"github.com/apache/iotdb-client-go/client","name":"client","synopsis":"","isRedistributable":true}
