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

Method getBinaryByTsBlockColumnIndex

client/rpcdataset.go:483–494  ·  view source on GitHub ↗
(tsBlockColumnIndex int32)

Source from the content-addressed store, hash-verified

481}
482
483func (s *IoTDBRpcDataSet) getBinaryByTsBlockColumnIndex(tsBlockColumnIndex int32) (*Binary, error) {
484 if err := s.checkRecord(); err != nil {
485 return nil, err
486 }
487 if !s.isNull(tsBlockColumnIndex, s.tsBlockIndex) {
488 s.lastReadWasNull = false
489 return s.curTsBlock.GetColumn(tsBlockColumnIndex).GetBinary(s.tsBlockIndex)
490 } else {
491 s.lastReadWasNull = true
492 return nil, nil
493 }
494}
495
496func (s *IoTDBRpcDataSet) getObjectByIndex(columnIndex int32) (interface{}, error) {
497 if index, err := s.getTsBlockColumnIndexForColumnIndex(columnIndex); err != nil {

Callers 2

getBinaryByIndexMethod · 0.95
getBinaryMethod · 0.95

Calls 4

checkRecordMethod · 0.95
isNullMethod · 0.95
GetColumnMethod · 0.80
GetBinaryMethod · 0.65

Tested by

no test coverage detected