Documentation ¶
Index ¶
- Constants
- func ComputeIterations(decoder common.Decoder, valueCount, ramBudget int) int
- type BaseBulkOperation
- type BulkOperationPacked
- func (b *BulkOperationPacked) ByteBlockCount() int
- func (b *BulkOperationPacked) ByteValueCount() int
- func (b *BulkOperationPacked) ComputeIterations(valueCount, ramBudget int) int
- func (b *BulkOperationPacked) DecodeBytes(blocks []byte, values []uint64, iterations int)
- func (b *BulkOperationPacked) DecodeUint64(blocks []uint64, values []uint64, iterations int)
- func (b *BulkOperationPacked) EncodeBytes(values []uint64, blocks []byte, iterations int)
- func (b *BulkOperationPacked) EncodeUint64(values []uint64, blocks []uint64, iterations int)
- func (b *BulkOperationPacked) LongBlockCount() int
- func (b *BulkOperationPacked) LongValueCount() int
- type Packed1
- type Packed10
- type Packed11
- type Packed12
- type Packed13
- type Packed14
- type Packed15
- type Packed16
- type Packed17
- type Packed18
- type Packed19
- type Packed2
- type Packed20
- type Packed21
- type Packed22
- type Packed23
- type Packed24
- type Packed3
- type Packed4
- type Packed5
- type Packed6
- type Packed7
- type Packed8
- type Packed9
- type PackedSingleBlock
- func (b *PackedSingleBlock) ByteBlockCount() int
- func (b *PackedSingleBlock) ByteValueCount() int
- func (b *PackedSingleBlock) DecodeByteToInt(blocks []byte, values []int32, iterations int)
- func (b *PackedSingleBlock) DecodeBytes(blocks []byte, values []uint64, iterations int)
- func (b *PackedSingleBlock) DecodeUint64(blocks []uint64, values []uint64, iterations int)
- func (b *PackedSingleBlock) EncodeBytes(values []uint64, blocks []byte, iterations int)
- func (b *PackedSingleBlock) EncodeI32ToBytes(values []int32, blocks []byte, iterations int)
- func (b *PackedSingleBlock) EncodeUint64(values []uint64, blocks []uint64, iterations int)
- func (b *PackedSingleBlock) LongBlockCount() int
- func (b *PackedSingleBlock) LongValueCount() int
Constants ¶
const (
BLOCK_COUNT = 1
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BaseBulkOperation ¶
func (*BaseBulkOperation) ComputeIterations ¶
func (b *BaseBulkOperation) ComputeIterations(valueCount, ramBudget int) int
ComputeIterations For every number of bits per value, there is a minimum number of blocks (b) / values (v) you need to write in order to reach the next block boundary: - 16 bits per value -> b=2, v=1 - 24 bits per value -> b=3, v=1 - 50 bits per value -> b=25, v=4 - 63 bits per value -> b=63, v=8 - ... A bulk read consists in copying iterations*v values that are contained in iterations*b blocks into a long[] (higher values of iterations are likely to yield a better throughput): this requires n * (b + 8v) bytes of memory. This method computes iterations as ramBudget / (b + 8v) (since a long is 8 bytes).
type BulkOperationPacked ¶
type BulkOperationPacked struct {
// contains filtered or unexported fields
}
BulkOperationPacked Non-specialized BulkOperation for PackedInts.Format.PACKED.
func NewPacked ¶
func NewPacked(bitsPerValue int) *BulkOperationPacked
func (*BulkOperationPacked) ByteBlockCount ¶
func (b *BulkOperationPacked) ByteBlockCount() int
func (*BulkOperationPacked) ByteValueCount ¶
func (b *BulkOperationPacked) ByteValueCount() int
func (*BulkOperationPacked) ComputeIterations ¶
func (b *BulkOperationPacked) ComputeIterations(valueCount, ramBudget int) int
func (*BulkOperationPacked) DecodeBytes ¶
func (b *BulkOperationPacked) DecodeBytes(blocks []byte, values []uint64, iterations int)
func (*BulkOperationPacked) DecodeUint64 ¶
func (b *BulkOperationPacked) DecodeUint64(blocks []uint64, values []uint64, iterations int)
func (*BulkOperationPacked) EncodeBytes ¶
func (b *BulkOperationPacked) EncodeBytes(values []uint64, blocks []byte, iterations int)
EncodeBytes
func (*BulkOperationPacked) EncodeUint64 ¶
func (b *BulkOperationPacked) EncodeUint64(values []uint64, blocks []uint64, iterations int)
func (*BulkOperationPacked) LongBlockCount ¶
func (b *BulkOperationPacked) LongBlockCount() int
func (*BulkOperationPacked) LongValueCount ¶
func (b *BulkOperationPacked) LongValueCount() int
type Packed1 ¶
type Packed1 struct {
*BulkOperationPacked
}
func NewPacked1 ¶
func NewPacked1() *Packed1
func (*Packed1) DecodeBytes ¶
type Packed10 ¶
type Packed10 struct {
*BulkOperationPacked
}
func NewPacked10 ¶
func NewPacked10() *Packed10
func (*Packed10) DecodeBytes ¶
type Packed11 ¶
type Packed11 struct {
*BulkOperationPacked
}
func NewPacked11 ¶
func NewPacked11() *Packed11
func (*Packed11) DecodeBytes ¶
type Packed12 ¶
type Packed12 struct {
*BulkOperationPacked
}
func NewPacked12 ¶
func NewPacked12() *Packed12
func (*Packed12) DecodeBytes ¶
type Packed13 ¶
type Packed13 struct {
*BulkOperationPacked
}
func NewPacked13 ¶
func NewPacked13() *Packed13
func (*Packed13) DecodeBytes ¶
type Packed14 ¶
type Packed14 struct {
*BulkOperationPacked
}
func NewPacked14 ¶
func NewPacked14() *Packed14
func (*Packed14) DecodeBytes ¶
type Packed15 ¶
type Packed15 struct {
*BulkOperationPacked
}
func NewPacked15 ¶
func NewPacked15() *Packed15
func (*Packed15) DecodeBytes ¶
type Packed16 ¶
type Packed16 struct {
*BulkOperationPacked
}
func NewPacked16 ¶
func NewPacked16() *Packed16
func (*Packed16) DecodeBytes ¶
type Packed17 ¶
type Packed17 struct {
*BulkOperationPacked
}
func NewPacked17 ¶
func NewPacked17() *Packed17
func (*Packed17) DecodeBytes ¶
type Packed18 ¶
type Packed18 struct {
*BulkOperationPacked
}
func NewPacked18 ¶
func NewPacked18() *Packed18
func (*Packed18) DecodeBytes ¶
type Packed19 ¶
type Packed19 struct {
*BulkOperationPacked
}
func NewPacked19 ¶
func NewPacked19() *Packed19
func (*Packed19) DecodeBytes ¶
type Packed2 ¶
type Packed2 struct {
*BulkOperationPacked
}
func NewPacked2 ¶
func NewPacked2() *Packed2
func (*Packed2) DecodeBytes ¶
type Packed20 ¶
type Packed20 struct {
*BulkOperationPacked
}
func NewPacked20 ¶
func NewPacked20() *Packed20
func (*Packed20) DecodeBytes ¶
type Packed21 ¶
type Packed21 struct {
*BulkOperationPacked
}
func NewPacked21 ¶
func NewPacked21() *Packed21
func (*Packed21) DecodeBytes ¶
type Packed22 ¶
type Packed22 struct {
*BulkOperationPacked
}
func NewPacked22 ¶
func NewPacked22() *Packed22
func (*Packed22) DecodeBytes ¶
type Packed23 ¶
type Packed23 struct {
*BulkOperationPacked
}
func NewPacked23 ¶
func NewPacked23() *Packed23
func (*Packed23) DecodeBytes ¶
type Packed24 ¶
type Packed24 struct {
*BulkOperationPacked
}
func NewPacked24 ¶
func NewPacked24() *Packed24
func (*Packed24) DecodeBytes ¶
type Packed3 ¶
type Packed3 struct {
*BulkOperationPacked
}
func NewPacked3 ¶
func NewPacked3() *Packed3
func (*Packed3) DecodeBytes ¶
type Packed4 ¶
type Packed4 struct {
*BulkOperationPacked
}
func NewPacked4 ¶
func NewPacked4() *Packed4
func (*Packed4) DecodeBytes ¶
type Packed5 ¶
type Packed5 struct {
*BulkOperationPacked
}
func NewPacked5 ¶
func NewPacked5() *Packed5
func (*Packed5) DecodeBytes ¶
type Packed6 ¶
type Packed6 struct {
*BulkOperationPacked
}
func NewPacked6 ¶
func NewPacked6() *Packed6
func (*Packed6) DecodeBytes ¶
type Packed7 ¶
type Packed7 struct {
*BulkOperationPacked
}
func NewPacked7 ¶
func NewPacked7() *Packed7
func (*Packed7) DecodeBytes ¶
type Packed8 ¶
type Packed8 struct {
*BulkOperationPacked
}
func NewPacked8 ¶
func NewPacked8() *Packed8
func (*Packed8) DecodeBytes ¶
type Packed9 ¶
type Packed9 struct {
*BulkOperationPacked
}
func NewPacked9 ¶
func NewPacked9() *Packed9
func (*Packed9) DecodeBytes ¶
type PackedSingleBlock ¶
type PackedSingleBlock struct {
// contains filtered or unexported fields
}
func NewPackedSingleBlock ¶
func NewPackedSingleBlock(bitsPerValue int) *PackedSingleBlock
func (*PackedSingleBlock) ByteBlockCount ¶
func (b *PackedSingleBlock) ByteBlockCount() int
func (*PackedSingleBlock) ByteValueCount ¶
func (b *PackedSingleBlock) ByteValueCount() int
func (*PackedSingleBlock) DecodeByteToInt ¶
func (b *PackedSingleBlock) DecodeByteToInt(blocks []byte, values []int32, iterations int)
func (*PackedSingleBlock) DecodeBytes ¶
func (b *PackedSingleBlock) DecodeBytes(blocks []byte, values []uint64, iterations int)
func (*PackedSingleBlock) DecodeUint64 ¶
func (b *PackedSingleBlock) DecodeUint64(blocks []uint64, values []uint64, iterations int)
func (*PackedSingleBlock) EncodeBytes ¶
func (b *PackedSingleBlock) EncodeBytes(values []uint64, blocks []byte, iterations int)
func (*PackedSingleBlock) EncodeI32ToBytes ¶
func (b *PackedSingleBlock) EncodeI32ToBytes(values []int32, blocks []byte, iterations int)
func (*PackedSingleBlock) EncodeUint64 ¶
func (b *PackedSingleBlock) EncodeUint64(values []uint64, blocks []uint64, iterations int)
func (*PackedSingleBlock) LongBlockCount ¶
func (b *PackedSingleBlock) LongBlockCount() int
func (*PackedSingleBlock) LongValueCount ¶
func (b *PackedSingleBlock) LongValueCount() int
Source Files ¶
- bulkoperationpacked.go
- bulkoperationpacked1.go
- bulkoperationpacked10.go
- bulkoperationpacked11.go
- bulkoperationpacked12.go
- bulkoperationpacked13.go
- bulkoperationpacked14.go
- bulkoperationpacked15.go
- bulkoperationpacked16.go
- bulkoperationpacked17.go
- bulkoperationpacked18.go
- bulkoperationpacked19.go
- bulkoperationpacked2.go
- bulkoperationpacked20.go
- bulkoperationpacked21.go
- bulkoperationpacked22.go
- bulkoperationpacked23.go
- bulkoperationpacked24.go
- bulkoperationpacked3.go
- bulkoperationpacked4.go
- bulkoperationpacked5.go
- bulkoperationpacked6.go
- bulkoperationpacked7.go
- bulkoperationpacked8.go
- bulkoperationpacked9.go
- bulkoperationpackedsingleblock.go