MCPcopy Create free account
hub / github.com/apache/iotdb-client-go / NewIntColumn

Function NewIntColumn

client/column.go:299–318  ·  view source on GitHub ↗
(arrayOffset int32, positionCount int32, valueIsNull []bool, values []int32)

Source from the content-addressed store, hash-verified

297}
298
299func 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
320func (c *IntColumn) GetDataType() TSDataType {
321 return INT32

Callers 1

ReadColumnMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…