(arrayOffset int32, positionCount int32, valueIsNull []bool, values []int64)
| 441 | } |
| 442 | |
| 443 | func NewLongColumn(arrayOffset int32, positionCount int32, valueIsNull []bool, values []int64) (*LongColumn, error) { |
| 444 | if arrayOffset < 0 { |
| 445 | return nil, fmt.Errorf("arrayOffset is negative") |
| 446 | } |
| 447 | if positionCount < 0 { |
| 448 | return nil, fmt.Errorf("positionCount is negative") |
| 449 | } |
| 450 | if int32(len(values))-arrayOffset < positionCount { |
| 451 | return nil, fmt.Errorf("values length is less than positionCount") |
| 452 | } |
| 453 | if valueIsNull != nil && int32(len(valueIsNull))-arrayOffset < positionCount { |
| 454 | return nil, fmt.Errorf("isNull length is less than positionCount") |
| 455 | } |
| 456 | return &LongColumn{ |
| 457 | arrayOffset: arrayOffset, |
| 458 | positionCount: positionCount, |
| 459 | valueIsNull: valueIsNull, |
| 460 | values: values, |
| 461 | }, nil |
| 462 | } |
| 463 | |
| 464 | func (c *LongColumn) GetDataType() TSDataType { |
| 465 | return INT64 |
no outgoing calls
no test coverage detected
searching dependent graphs…