MCPcopy Index your code
hub / github.com/apache/iotdb-client-go / insertAlignedTablet

Function insertAlignedTablet

example/session_example.go:476–491  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

474}
475
476func insertAlignedTablet() {
477 if tablet, err := createTablet(12); err == nil {
478 err = session.InsertAlignedTablet(tablet, false)
479 tablet.Reset()
480 checkError(err)
481 } else {
482 log.Fatal(err)
483 }
484 var timeout int64 = 1000
485 if ds, err := session.ExecuteQueryStatement("select * from root.ln.device1", &timeout); err == nil {
486 printDevice1(ds)
487 ds.Close()
488 } else {
489 log.Fatal(err)
490 }
491}
492
493func createTablet(rowCount int) (*client.Tablet, error) {
494 tablet, err := client.NewTablet("root.ln.device1", []*client.MeasurementSchema{

Callers 1

mainFunction · 0.70

Calls 7

InsertAlignedTabletMethod · 0.80
ResetMethod · 0.80
createTabletFunction · 0.70
checkErrorFunction · 0.70
printDevice1Function · 0.70
ExecuteQueryStatementMethod · 0.65
CloseMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…