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

Function NewBooleanColumn

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

Source from the content-addressed store, hash-verified

585}
586
587func NewBooleanColumn(arrayOffset int32, positionCount int32, valueIsNull []bool, values []bool) (*BooleanColumn, error) {
588 if arrayOffset < 0 {
589 return nil, fmt.Errorf("arrayOffset is negative")
590 }
591 if positionCount < 0 {
592 return nil, fmt.Errorf("positionCount is negative")
593 }
594 if int32(len(values))-arrayOffset < positionCount {
595 return nil, fmt.Errorf("values length is less than positionCount")
596 }
597 if valueIsNull != nil && int32(len(valueIsNull))-arrayOffset < positionCount {
598 return nil, fmt.Errorf("isNull length is less than positionCount")
599 }
600 return &BooleanColumn{
601 arrayOffset: arrayOffset,
602 positionCount: positionCount,
603 valueIsNull: valueIsNull,
604 values: values,
605 }, nil
606}
607
608func (c *BooleanColumn) GetDataType() TSDataType {
609 return BOOLEAN

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…