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

Function NewDoubleColumn

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

Source from the content-addressed store, hash-verified

513}
514
515func NewDoubleColumn(arrayOffset int32, positionCount int32, valueIsNull []bool, values []float64) (*DoubleColumn, error) {
516 if arrayOffset < 0 {
517 return nil, fmt.Errorf("arrayOffset is negative")
518 }
519 if positionCount < 0 {
520 return nil, fmt.Errorf("positionCount is negative")
521 }
522 if int32(len(values))-arrayOffset < positionCount {
523 return nil, fmt.Errorf("values length is less than positionCount")
524 }
525 if valueIsNull != nil && int32(len(valueIsNull))-arrayOffset < positionCount {
526 return nil, fmt.Errorf("isNull length is less than positionCount")
527 }
528 return &DoubleColumn{
529 arrayOffset: arrayOffset,
530 positionCount: positionCount,
531 valueIsNull: valueIsNull,
532 values: values,
533 }, nil
534}
535
536func (c *DoubleColumn) GetDataType() TSDataType {
537 return DOUBLE

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…