influxdb/tsdb/cursor.go

34 lines
1.3 KiB
Go

package tsdb
import "github.com/influxdata/influxdb/tsdb/cursors"
// These aliases exist to maintain api compatibility when they were moved
// into their own package to avoid having a heavy dependency in order to
// talk about consuming data.
type (
IntegerArray = cursors.IntegerArray
FloatArray = cursors.FloatArray
UnsignedArray = cursors.UnsignedArray
StringArray = cursors.StringArray
BooleanArray = cursors.BooleanArray
TimestampArray = cursors.TimestampArray
IntegerArrayCursor = cursors.IntegerArrayCursor
FloatArrayCursor = cursors.FloatArrayCursor
UnsignedArrayCursor = cursors.UnsignedArrayCursor
StringArrayCursor = cursors.StringArrayCursor
BooleanArrayCursor = cursors.BooleanArrayCursor
Cursor = cursors.Cursor
CursorRequest = cursors.CursorRequest
CursorIterator = cursors.CursorIterator
CursorIterators = cursors.CursorIterators
)
func NewIntegerArrayLen(sz int) *IntegerArray { return cursors.NewIntegerArrayLen(sz) }
func NewFloatArrayLen(sz int) *FloatArray { return cursors.NewFloatArrayLen(sz) }
func NewUnsignedArrayLen(sz int) *UnsignedArray { return cursors.NewUnsignedArrayLen(sz) }
func NewStringArrayLen(sz int) *StringArray { return cursors.NewStringArrayLen(sz) }
func NewBooleanArrayLen(sz int) *BooleanArray { return cursors.NewBooleanArrayLen(sz) }