(arrayOffset int32, positionCount int32, valueIsNull []bool, values []int32)
| 297 | } |
| 298 | |
| 299 | func NewIntColumn(arrayOffset int32, positionCount int32, valueIsNull []bool, values []int32) (*IntColumn, error) { |
| 300 | if arrayOffset < 0 { |
| 301 | return nil, fmt.Errorf("arrayOffset is negative") |
| 302 | } |
| 303 | if positionCount < 0 { |
| 304 | return nil, fmt.Errorf("positionCount is negative") |
| 305 | } |
| 306 | if int32(len(values))-arrayOffset < positionCount { |
| 307 | return nil, fmt.Errorf("values length is less than positionCount") |
| 308 | } |
| 309 | if valueIsNull != nil && int32(len(valueIsNull))-arrayOffset < positionCount { |
| 310 | return nil, fmt.Errorf("isNull length is less than positionCount") |
| 311 | } |
| 312 | return &IntColumn{ |
| 313 | arrayOffset: arrayOffset, |
| 314 | positionCount: positionCount, |
| 315 | valueIsNull: valueIsNull, |
| 316 | values: values, |
| 317 | }, nil |
| 318 | } |
| 319 | |
| 320 | func (c *IntColumn) GetDataType() TSDataType { |
| 321 | return INT32 |
no outgoing calls
no test coverage detected
searching dependent graphs…