MCPcopy Create free account
hub / github.com/apache/iotdb-client-go / NewClusterTableSession

Function NewClusterTableSession

client/tablesession.go:106–116  ·  view source on GitHub ↗

NewClusterTableSession creates a new TableSession instance for a cluster setup. Parameters: - clusterConfig: The configuration for the cluster session. - enableRPCCompression: A boolean indicating whether RPC compression is enabled. Returns: - An ITableSession instance if the session is successful

(clusterConfig *ClusterConfig, enableRPCCompression bool)

Source from the content-addressed store, hash-verified

104// - An ITableSession instance if the session is successfully created.
105// - An error if there is an issue during session initialization.
106func NewClusterTableSession(clusterConfig *ClusterConfig, enableRPCCompression bool) (ITableSession, error) {
107 clusterConfig.sqlDialect = TableSqlDialect
108 session, err := newClusterSessionWithSqlDialect(clusterConfig)
109 if err != nil {
110 return nil, err
111 }
112 if err = session.OpenCluster(enableRPCCompression); err != nil {
113 return nil, err
114 }
115 return &TableSession{session: session}, nil
116}
117
118// Insert inserts a Tablet into the IoTDB.
119//

Callers 1

SetupSuiteMethod · 0.92

Calls 2

OpenClusterMethod · 0.80

Tested by 1

SetupSuiteMethod · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…