Documentation
¶
Index ¶
- Constants
- Variables
- func FieldTypeString(fieldType int32) string
- func GetBytesBuffer() []byte
- func GetOriginMstName(nameWithVer string) string
- func MeasurementName(src []byte) ([]byte, []byte, error)
- func PutBytesBuffer(b []byte)
- type Field
- type Fields
- type IndexOption
- type IndexOptions
- type PointTags
- type Row
- type Tag
Constants ¶
View Source
const ( Field_Type_Unknown = 0 Field_Type_Int = 1 Field_Type_UInt = 2 Field_Type_Float = 3 Field_Type_String = 4 Field_Type_Boolean = 5 Field_Type_Tag = 6 Field_Type_Last = 7 )
View Source
const ByteSplit = 0x00
Variables ¶
View Source
var ( // ErrPointMustHaveAField is returned when operating on a point that does not have any fields. ErrPointMustHaveAField = errno.NewError(errno.WritePointMustHaveAField) // ErrInvalidPoint is returned when a point cannot be parsed correctly. ErrInvalidPoint = errno.NewError(errno.WriteInvalidPoint) )
Functions ¶
func FieldTypeString ¶
func GetBytesBuffer ¶
func GetBytesBuffer() []byte
func GetOriginMstName ¶
func MeasurementName ¶
MeasurementName extract measurement from series key, return measurement_name_with_version, tail, error
func PutBytesBuffer ¶
func PutBytesBuffer(b []byte)
Types ¶
type IndexOption ¶
IndexOption represents index option.
type IndexOptions ¶
type IndexOptions []IndexOption
type Row ¶
type Row struct {
// if streamOnly is false, it means that the source table data of the stream will also be written,
// otherwise the source table data of the stream will not be written
StreamOnly bool
Timestamp int64
SeriesId uint64
PrimaryId uint64
Name string // measurement name with version
Tags PointTags
Fields Fields
IndexKey []byte
ShardKey []byte
StreamId []uint64 // it used to indicate that the data is shared by multiple streams
IndexOptions IndexOptions
ColumnToIndex map[string]int // it indicates the sorted tagKey, fieldKey and index mapping relationship
ReadyBuildColumnToIndex bool
// contains filtered or unexported fields
}
Row is a single influx row.
Click to show internal directories.
Click to hide internal directories.