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

Function printDataSet2

example/session_example.go:251–271  ·  view source on GitHub ↗
(sds *client.SessionDataSet)

Source from the content-addressed store, hash-verified

249}
250
251func printDataSet2(sds *client.SessionDataSet) {
252 columnNames := sds.GetColumnNames()
253 for _, value := range columnNames {
254 fmt.Printf("%s\t", value)
255 }
256 fmt.Println()
257
258 for next, err := sds.Next(); err == nil && next; next, err = sds.Next() {
259 for i := int32(0); i < int32(len(columnNames)); i++ {
260 isNull, _ := sds.IsNullByIndex(i)
261
262 if isNull {
263 fmt.Printf("%v\t\t", "null")
264 } else {
265 v, _ := sds.GetStringByIndex(i)
266 fmt.Printf("%v\t\t", v)
267 }
268 }
269 fmt.Println()
270 }
271}
272
273func setStorageGroup(sg string) {
274 checkError(session.SetStorageGroup(sg))

Callers 2

executeRawDataQueryFunction · 0.70
executeBatchStatementFunction · 0.70

Calls 4

GetColumnNamesMethod · 0.80
IsNullByIndexMethod · 0.80
GetStringByIndexMethod · 0.80
NextMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…