(arrayOffset int32, positionCount int32, valueIsNull []bool, values []*Binary)
| 225 | } |
| 226 | |
| 227 | func NewBinaryColumn(arrayOffset int32, positionCount int32, valueIsNull []bool, values []*Binary) (*BinaryColumn, error) { |
| 228 | if arrayOffset < 0 { |
| 229 | return nil, fmt.Errorf("arrayOffset is negative") |
| 230 | } |
| 231 | if positionCount < 0 { |
| 232 | return nil, fmt.Errorf("positionCount is negative") |
| 233 | } |
| 234 | if int32(len(values))-arrayOffset < positionCount { |
| 235 | return nil, fmt.Errorf("values length is less than positionCount") |
| 236 | } |
| 237 | if valueIsNull != nil && int32(len(valueIsNull))-arrayOffset < positionCount { |
| 238 | return nil, fmt.Errorf("isNull length is less than positionCount") |
| 239 | } |
| 240 | return &BinaryColumn{ |
| 241 | arrayOffset: arrayOffset, |
| 242 | positionCount: positionCount, |
| 243 | valueIsNull: valueIsNull, |
| 244 | values: values, |
| 245 | }, nil |
| 246 | } |
| 247 | |
| 248 | func (c *BinaryColumn) GetDataType() TSDataType { |
| 249 | return TEXT |
no outgoing calls
no test coverage detected
searching dependent graphs…