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

Function NewFloatColumn

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

Source from the content-addressed store, hash-verified

369}
370
371func NewFloatColumn(arrayOffset int32, positionCount int32, valueIsNull []bool, values []float32) (*FloatColumn, error) {
372 if arrayOffset < 0 {
373 return nil, fmt.Errorf("arrayOffset is negative")
374 }
375 if positionCount < 0 {
376 return nil, fmt.Errorf("positionCount is negative")
377 }
378 if int32(len(values))-arrayOffset < positionCount {
379 return nil, fmt.Errorf("values length is less than positionCount")
380 }
381 if valueIsNull != nil && int32(len(valueIsNull))-arrayOffset < positionCount {
382 return nil, fmt.Errorf("isNull length is less than positionCount")
383 }
384 return &FloatColumn{
385 arrayOffset: arrayOffset,
386 positionCount: positionCount,
387 valueIsNull: valueIsNull,
388 values: values,
389 }, nil
390}
391
392func (c *FloatColumn) GetDataType() TSDataType {
393 return FLOAT

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…