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

Function printDataSet1

example/session_pool/session_pool_example.go:683–703  ·  view source on GitHub ↗
(sds *client.SessionDataSet)

Source from the content-addressed store, hash-verified

681}
682
683func printDataSet1(sds *client.SessionDataSet) {
684 columnNames := sds.GetColumnNames()
685 for _, value := range columnNames {
686 fmt.Printf("%s\t", value)
687 }
688 fmt.Println()
689
690 for next, err := sds.Next(); err == nil && next; next, err = sds.Next() {
691 for _, columnName := range columnNames {
692 isNull, _ := sds.IsNull(columnName)
693
694 if isNull {
695 fmt.Printf("%v\t\t", "null")
696 } else {
697 v, _ := sds.GetString(columnName)
698 fmt.Printf("%v\t\t", v)
699 }
700 }
701 fmt.Println()
702 }
703}
704
705func printDataSet2(sds *client.SessionDataSet) {
706 columnNames := sds.GetColumnNames()

Callers 1

executeQueryStatementFunction · 0.70

Calls 4

GetColumnNamesMethod · 0.80
GetStringMethod · 0.80
IsNullMethod · 0.65
NextMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…