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

Method getDoubleByTsBlockColumnIndex

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

Source from the content-addressed store, hash-verified

345}
346
347func (s *IoTDBRpcDataSet) getDoubleByTsBlockColumnIndex(tsBlockColumnIndex int32) (float64, error) {
348 if err := s.checkRecord(); err != nil {
349 return 0, err
350 }
351 if !s.isNull(tsBlockColumnIndex, s.tsBlockIndex) {
352 s.lastReadWasNull = false
353 return s.curTsBlock.GetColumn(tsBlockColumnIndex).GetDouble(s.tsBlockIndex)
354 } else {
355 s.lastReadWasNull = true
356 return 0, nil
357 }
358}
359
360func (s *IoTDBRpcDataSet) getFloatByIndex(columnIndex int32) (float32, error) {
361 if index, err := s.getTsBlockColumnIndexForColumnIndex(columnIndex); err != nil {

Callers 2

getDoubleByIndexMethod · 0.95
getDoubleMethod · 0.95

Calls 4

checkRecordMethod · 0.95
isNullMethod · 0.95
GetColumnMethod · 0.80
GetDoubleMethod · 0.65

Tested by

no test coverage detected