(tsBlockColumnIndex int32)
| 316 | } |
| 317 | |
| 318 | func (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 | |
| 331 | func (s *IoTDBRpcDataSet) getDoubleByIndex(columnIndex int32) (float64, error) { |
| 332 | if index, err := s.getTsBlockColumnIndexForColumnIndex(columnIndex); err != nil { |
no test coverage detected