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

Function NewBinaryColumn

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

Source from the content-addressed store, hash-verified

225}
226
227func 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
248func (c *BinaryColumn) GetDataType() TSDataType {
249 return TEXT

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…