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

Function NewLongColumn

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

Source from the content-addressed store, hash-verified

441}
442
443func 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
464func (c *LongColumn) GetDataType() TSDataType {
465 return INT64

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…