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

Method getBooleanByTsBlockColumnIndex

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

Source from the content-addressed store, hash-verified

316}
317
318func (s *IoTDBRpcDataSet) getBooleanByTsBlockColumnIndex(tsBlockColumnIndex int32) (bool, error) {
319 if err := s.checkRecord(); err != nil {
320 return false, err
321 }
322 if !s.isNull(tsBlockColumnIndex, s.tsBlockIndex) {
323 s.lastReadWasNull = false
324 return s.curTsBlock.GetColumn(tsBlockColumnIndex).GetBoolean(s.tsBlockIndex)
325 } else {
326 s.lastReadWasNull = true
327 return false, nil
328 }
329}
330
331func (s *IoTDBRpcDataSet) getDoubleByIndex(columnIndex int32) (float64, error) {
332 if index, err := s.getTsBlockColumnIndexForColumnIndex(columnIndex); err != nil {

Callers 2

getBooleanByIndexMethod · 0.95
getBooleanMethod · 0.95

Calls 4

checkRecordMethod · 0.95
isNullMethod · 0.95
GetColumnMethod · 0.80
GetBooleanMethod · 0.65

Tested by

no test coverage detected