(tsBlockColumnIndex int32)
| 345 | } |
| 346 | |
| 347 | func (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 | |
| 360 | func (s *IoTDBRpcDataSet) getFloatByIndex(columnIndex int32) (float32, error) { |
| 361 | if index, err := s.getTsBlockColumnIndexForColumnIndex(columnIndex); err != nil { |
no test coverage detected