(arrayOffset int32, positionCount int32, valueIsNull []bool, values []bool)
| 585 | } |
| 586 | |
| 587 | func NewBooleanColumn(arrayOffset int32, positionCount int32, valueIsNull []bool, values []bool) (*BooleanColumn, error) { |
| 588 | if arrayOffset < 0 { |
| 589 | return nil, fmt.Errorf("arrayOffset is negative") |
| 590 | } |
| 591 | if positionCount < 0 { |
| 592 | return nil, fmt.Errorf("positionCount is negative") |
| 593 | } |
| 594 | if int32(len(values))-arrayOffset < positionCount { |
| 595 | return nil, fmt.Errorf("values length is less than positionCount") |
| 596 | } |
| 597 | if valueIsNull != nil && int32(len(valueIsNull))-arrayOffset < positionCount { |
| 598 | return nil, fmt.Errorf("isNull length is less than positionCount") |
| 599 | } |
| 600 | return &BooleanColumn{ |
| 601 | arrayOffset: arrayOffset, |
| 602 | positionCount: positionCount, |
| 603 | valueIsNull: valueIsNull, |
| 604 | values: values, |
| 605 | }, nil |
| 606 | } |
| 607 | |
| 608 | func (c *BooleanColumn) GetDataType() TSDataType { |
| 609 | return BOOLEAN |
no outgoing calls
no test coverage detected
searching dependent graphs…