bulkoperation

package
v0.0.0-...-53ff736 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BLOCK_COUNT = 1
)

Variables

This section is empty.

Functions

func ComputeIterations

func ComputeIterations(decoder common.Decoder, valueCount, ramBudget int) int

Types

type BaseBulkOperation

type BaseBulkOperation struct {
	Decoder common.Decoder
}

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

func (b *Packed1) DecodeBytes(blocks []byte, values []uint64, iterations int)

func (*Packed1) DecodeUint64

func (b *Packed1) DecodeUint64(blocks []uint64, values []uint64, iterations int)

type Packed10

type Packed10 struct {
	*BulkOperationPacked
}

func NewPacked10

func NewPacked10() *Packed10

func (*Packed10) DecodeBytes

func (b *Packed10) DecodeBytes(blocks []byte, values []uint64, iterations int)

func (*Packed10) DecodeUint64

func (b *Packed10) DecodeUint64(blocks []uint64, values []uint64, iterations int)

type Packed11

type Packed11 struct {
	*BulkOperationPacked
}

func NewPacked11

func NewPacked11() *Packed11

func (*Packed11) DecodeBytes

func (b *Packed11) DecodeBytes(blocks []byte, values []uint64, iterations int)

func (*Packed11) DecodeUint64

func (b *Packed11) DecodeUint64(blocks []uint64, values []uint64, iterations int)

type Packed12

type Packed12 struct {
	*BulkOperationPacked
}

func NewPacked12

func NewPacked12() *Packed12

func (*Packed12) DecodeBytes

func (b *Packed12) DecodeBytes(blocks []byte, values []uint64, iterations int)

func (*Packed12) DecodeUint64

func (b *Packed12) DecodeUint64(blocks []uint64, values []uint64, iterations int)

type Packed13

type Packed13 struct {
	*BulkOperationPacked
}

func NewPacked13

func NewPacked13() *Packed13

func (*Packed13) DecodeBytes

func (b *Packed13) DecodeBytes(blocks []byte, values []uint64, iterations int)

func (*Packed13) DecodeUint64

func (b *Packed13) DecodeUint64(blocks []uint64, values []uint64, iterations int)

type Packed14

type Packed14 struct {
	*BulkOperationPacked
}

func NewPacked14

func NewPacked14() *Packed14

func (*Packed14) DecodeBytes

func (b *Packed14) DecodeBytes(blocks []byte, values []uint64, iterations int)

func (*Packed14) DecodeUint64

func (b *Packed14) DecodeUint64(blocks []uint64, values []uint64, iterations int)

type Packed15

type Packed15 struct {
	*BulkOperationPacked
}

func NewPacked15

func NewPacked15() *Packed15

func (*Packed15) DecodeBytes

func (b *Packed15) DecodeBytes(blocks []byte, values []uint64, iterations int)

func (*Packed15) DecodeUint64

func (b *Packed15) DecodeUint64(blocks []uint64, values []uint64, iterations int)

type Packed16

type Packed16 struct {
	*BulkOperationPacked
}

func NewPacked16

func NewPacked16() *Packed16

func (*Packed16) DecodeBytes

func (b *Packed16) DecodeBytes(blocks []byte, values []uint64, iterations int)

func (*Packed16) DecodeUint64

func (b *Packed16) DecodeUint64(blocks []uint64, values []uint64, iterations int)

type Packed17

type Packed17 struct {
	*BulkOperationPacked
}

func NewPacked17

func NewPacked17() *Packed17

func (*Packed17) DecodeBytes

func (b *Packed17) DecodeBytes(blocks []byte, values []uint64, iterations int)

func (*Packed17) DecodeUint64

func (b *Packed17) DecodeUint64(blocks []uint64, values []uint64, iterations int)

type Packed18

type Packed18 struct {
	*BulkOperationPacked
}

func NewPacked18

func NewPacked18() *Packed18

func (*Packed18) DecodeBytes

func (b *Packed18) DecodeBytes(blocks []byte, values []uint64, iterations int)

func (*Packed18) DecodeUint64

func (b *Packed18) DecodeUint64(blocks []uint64, values []uint64, iterations int)

type Packed19

type Packed19 struct {
	*BulkOperationPacked
}

func NewPacked19

func NewPacked19() *Packed19

func (*Packed19) DecodeBytes

func (b *Packed19) DecodeBytes(blocks []byte, values []uint64, iterations int)

func (*Packed19) DecodeUint64

func (b *Packed19) DecodeUint64(blocks []uint64, values []uint64, iterations int)

type Packed2

type Packed2 struct {
	*BulkOperationPacked
}

func NewPacked2

func NewPacked2() *Packed2

func (*Packed2) DecodeBytes

func (b *Packed2) DecodeBytes(blocks []byte, values []uint64, iterations int)

func (*Packed2) DecodeUint64

func (b *Packed2) DecodeUint64(blocks []uint64, values []uint64, iterations int)

type Packed20

type Packed20 struct {
	*BulkOperationPacked
}

func NewPacked20

func NewPacked20() *Packed20

func (*Packed20) DecodeBytes

func (b *Packed20) DecodeBytes(blocks []byte, values []uint64, iterations int)

func (*Packed20) DecodeUint64

func (b *Packed20) DecodeUint64(blocks []uint64, values []uint64, iterations int)

type Packed21

type Packed21 struct {
	*BulkOperationPacked
}

func NewPacked21

func NewPacked21() *Packed21

func (*Packed21) DecodeBytes

func (b *Packed21) DecodeBytes(blocks []byte, values []uint64, iterations int)

func (*Packed21) DecodeUint64

func (b *Packed21) DecodeUint64(blocks []uint64, values []uint64, iterations int)

type Packed22

type Packed22 struct {
	*BulkOperationPacked
}

func NewPacked22

func NewPacked22() *Packed22

func (*Packed22) DecodeBytes

func (b *Packed22) DecodeBytes(blocks []byte, values []uint64, iterations int)

func (*Packed22) DecodeUint64

func (b *Packed22) DecodeUint64(blocks []uint64, values []uint64, iterations int)

type Packed23

type Packed23 struct {
	*BulkOperationPacked
}

func NewPacked23

func NewPacked23() *Packed23

func (*Packed23) DecodeBytes

func (b *Packed23) DecodeBytes(blocks []byte, values []uint64, iterations int)

func (*Packed23) DecodeUint64

func (b *Packed23) DecodeUint64(blocks []uint64, values []uint64, iterations int)

type Packed24

type Packed24 struct {
	*BulkOperationPacked
}

func NewPacked24

func NewPacked24() *Packed24

func (*Packed24) DecodeBytes

func (b *Packed24) DecodeBytes(blocks []byte, values []uint64, iterations int)

func (*Packed24) DecodeUint64

func (b *Packed24) DecodeUint64(blocks []uint64, values []uint64, iterations int)

type Packed3

type Packed3 struct {
	*BulkOperationPacked
}

func NewPacked3

func NewPacked3() *Packed3

func (*Packed3) DecodeBytes

func (b *Packed3) DecodeBytes(blocks []byte, values []uint64, iterations int)

func (*Packed3) DecodeUint64

func (b *Packed3) DecodeUint64(blocks []uint64, values []uint64, iterations int)

type Packed4

type Packed4 struct {
	*BulkOperationPacked
}

func NewPacked4

func NewPacked4() *Packed4

func (*Packed4) DecodeBytes

func (b *Packed4) DecodeBytes(blocks []byte, values []uint64, iterations int)

func (*Packed4) DecodeUint64

func (b *Packed4) DecodeUint64(blocks []uint64, values []uint64, iterations int)

type Packed5

type Packed5 struct {
	*BulkOperationPacked
}

func NewPacked5

func NewPacked5() *Packed5

func (*Packed5) DecodeBytes

func (b *Packed5) DecodeBytes(blocks []byte, values []uint64, iterations int)

func (*Packed5) DecodeUint64

func (b *Packed5) DecodeUint64(blocks []uint64, values []uint64, iterations int)

type Packed6

type Packed6 struct {
	*BulkOperationPacked
}

func NewPacked6

func NewPacked6() *Packed6

func (*Packed6) DecodeBytes

func (b *Packed6) DecodeBytes(blocks []byte, values []uint64, iterations int)

func (*Packed6) DecodeUint64

func (b *Packed6) DecodeUint64(blocks []uint64, values []uint64, iterations int)

type Packed7

type Packed7 struct {
	*BulkOperationPacked
}

func NewPacked7

func NewPacked7() *Packed7

func (*Packed7) DecodeBytes

func (b *Packed7) DecodeBytes(blocks []byte, values []uint64, iterations int)

func (*Packed7) DecodeUint64

func (b *Packed7) DecodeUint64(blocks []uint64, values []uint64, iterations int)

type Packed8

type Packed8 struct {
	*BulkOperationPacked
}

func NewPacked8

func NewPacked8() *Packed8

func (*Packed8) DecodeBytes

func (b *Packed8) DecodeBytes(blocks []byte, values []uint64, iterations int)

func (*Packed8) DecodeUint64

func (b *Packed8) DecodeUint64(blocks []uint64, values []uint64, iterations int)

type Packed9

type Packed9 struct {
	*BulkOperationPacked
}

func NewPacked9

func NewPacked9() *Packed9

func (*Packed9) DecodeBytes

func (b *Packed9) DecodeBytes(blocks []byte, values []uint64, iterations int)

func (*Packed9) DecodeUint64

func (b *Packed9) DecodeUint64(blocks []uint64, values []uint64, iterations int)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL