Documentation
¶
Overview ¶
Copyright 2022 Huawei Cloud Computing Technologies Co., Ltd.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
nolint
Copyright 2022 Huawei Cloud Computing Technologies Co., Ltd.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
nolint
Index ¶
Constants ¶
const (
DataBlockMaxRowNum = 100000
)
Variables ¶
This section is empty.
Functions ¶
func StreamDataBlockPut ¶ added in v1.0.0
func StreamDataBlockPut(data *DataBlock)
Types ¶
type DataBlock ¶ added in v1.0.0
type DataBlock struct {
ReqBuf []byte
Rows []influx.Row
TagPool []influx.Tag
FieldPool []influx.Field
IndexKeyPool []byte
IndexOptionPool []influx.IndexOption
LastResetTime uint64
}
func NewDataBlock ¶ added in v1.0.0
func NewDataBlock() *DataBlock
func StreamDataBlockGet ¶ added in v1.0.0
func StreamDataBlockGet() *DataBlock
type DataBlockPool ¶ added in v1.0.0
type DataBlockPool struct {
// contains filtered or unexported fields
}
type ListPool ¶ added in v1.0.0
type ListPool struct {
// contains filtered or unexported fields
}
func NewListPool ¶ added in v1.0.0
func NewListPool() *ListPool
type Uint32Array ¶
type Uint32Array struct {
// contains filtered or unexported fields
}
func NewUint32Array ¶
func NewUint32Array() *Uint32Array
func (*Uint32Array) Get ¶
func (u *Uint32Array) Get(size int) []uint32
func (*Uint32Array) HitRatio ¶
func (u *Uint32Array) HitRatio() float64
func (*Uint32Array) Put ¶
func (u *Uint32Array) Put(v []uint32)