(arrayOffset int32, positionCount int32, valueIsNull []bool, values []float32)
| 369 | } |
| 370 | |
| 371 | func NewFloatColumn(arrayOffset int32, positionCount int32, valueIsNull []bool, values []float32) (*FloatColumn, error) { |
| 372 | if arrayOffset < 0 { |
| 373 | return nil, fmt.Errorf("arrayOffset is negative") |
| 374 | } |
| 375 | if positionCount < 0 { |
| 376 | return nil, fmt.Errorf("positionCount is negative") |
| 377 | } |
| 378 | if int32(len(values))-arrayOffset < positionCount { |
| 379 | return nil, fmt.Errorf("values length is less than positionCount") |
| 380 | } |
| 381 | if valueIsNull != nil && int32(len(valueIsNull))-arrayOffset < positionCount { |
| 382 | return nil, fmt.Errorf("isNull length is less than positionCount") |
| 383 | } |
| 384 | return &FloatColumn{ |
| 385 | arrayOffset: arrayOffset, |
| 386 | positionCount: positionCount, |
| 387 | valueIsNull: valueIsNull, |
| 388 | values: values, |
| 389 | }, nil |
| 390 | } |
| 391 | |
| 392 | func (c *FloatColumn) GetDataType() TSDataType { |
| 393 | return FLOAT |
no outgoing calls
no test coverage detected
searching dependent graphs…