(arrayOffset int32, positionCount int32, valueIsNull []bool, values []float64)
| 513 | } |
| 514 | |
| 515 | func NewDoubleColumn(arrayOffset int32, positionCount int32, valueIsNull []bool, values []float64) (*DoubleColumn, error) { |
| 516 | if arrayOffset < 0 { |
| 517 | return nil, fmt.Errorf("arrayOffset is negative") |
| 518 | } |
| 519 | if positionCount < 0 { |
| 520 | return nil, fmt.Errorf("positionCount is negative") |
| 521 | } |
| 522 | if int32(len(values))-arrayOffset < positionCount { |
| 523 | return nil, fmt.Errorf("values length is less than positionCount") |
| 524 | } |
| 525 | if valueIsNull != nil && int32(len(valueIsNull))-arrayOffset < positionCount { |
| 526 | return nil, fmt.Errorf("isNull length is less than positionCount") |
| 527 | } |
| 528 | return &DoubleColumn{ |
| 529 | arrayOffset: arrayOffset, |
| 530 | positionCount: positionCount, |
| 531 | valueIsNull: valueIsNull, |
| 532 | values: values, |
| 533 | }, nil |
| 534 | } |
| 535 | |
| 536 | func (c *DoubleColumn) GetDataType() TSDataType { |
| 537 | return DOUBLE |
no outgoing calls
no test coverage detected
searching dependent graphs…