Documentation
¶
Index ¶
- Constants
- func CompressDeltaBinPackInt32(in []int32, out []uint32) ([]int32, []uint32)
- func CompressDeltaBinPackInt64(in []int64, out []uint64) ([]int64, []uint64)
- func CompressDeltaBinPackUint32(in, out []uint32) ([]uint32, []uint32)
- func CompressDeltaBinPackUint64(in, out []uint64) ([]uint64, []uint64)
- func CompressDeltaVarByteInt32(in []int32, out []uint32) []uint32
- func CompressDeltaVarByteInt64(in []int64, out []uint64) []uint64
- func CompressDeltaVarByteUint32(in, out []uint32) []uint32
- func CompressDeltaVarByteUint64(in, out []uint64) []uint64
- func CompressInt32(in []int32, out []uint32) []uint32
- func CompressInt64(in []int64, out []uint64) []uint64
- func CompressUint32(in, out []uint32) []uint32
- func CompressUint64(in, out []uint64) []uint64
- func UncompressDeltaBinPackInt32(in []uint32, out []int32) ([]uint32, []int32)
- func UncompressDeltaBinPackInt64(in []uint64, out []int64) ([]uint64, []int64)
- func UncompressDeltaBinPackUint32(in, out []uint32) ([]uint32, []uint32)
- func UncompressDeltaBinPackUint64(in, out []uint64) ([]uint64, []uint64)
- func UncompressDeltaVarByteInt32(in []uint32, out []int32) ([]uint32, []int32)
- func UncompressDeltaVarByteInt64(in []uint64, out []int64) ([]uint64, []int64)
- func UncompressDeltaVarByteUint32(in, out []uint32) ([]uint32, []uint32)
- func UncompressDeltaVarByteUint64(in, out []uint64) ([]uint64, []uint64)
- func UncompressInt32(in []uint32, out []int32) []int32
- func UncompressInt64(in []uint64, out []int64) []int64
- func UncompressUint32(in, out []uint32) []uint32
- func UncompressUint64(in, out []uint64) []uint64
Constants ¶
const ( BitPackingBlockSize32 = 128 BitPackingBlockSize64 = 256 )
Variables ¶
This section is empty.
Functions ¶
func CompressDeltaBinPackInt32 ¶
CompressDeltaBinPackInt32 compress blocks of 128 integers from `in` and append to `out`. `out` slice will be resized if necessary. The function returns the values from `in` that were not compressed (could not fit into a block), and the updated `out` slice.
Compression logic:
- Difference of consecutive inputs is computed (differential coding)
- ZigZag encoding is applied if a block contains at least one negative delta value
- The result is bit packed into the optimal number of bits for the block
func CompressDeltaBinPackInt64 ¶
CompressDeltaBinPackInt64 compress blocks of 256 integers from `in` and append to `out`. `out` slice will be resized if necessary. The function returns the values from `in` that were not compressed (could not fit into a block), and the updated `out` slice.
Compression logic:
- Difference of consecutive inputs is computed (differential coding)
- ZigZag encoding is applied if a block contains at least one negative delta value
- The result is bit packed into the optimal number of bits for the block
func CompressDeltaBinPackUint32 ¶
CompressDeltaBinPackUint32 compress blocks of 128 integers from `in` and append to `out`. `out` slice will be resized if necessary. The function returns the values from `in` that were not compressed (could not fit into a block), and the updated `out` slice.
Compression logic:
- Difference of consecutive inputs is computed (differential coding)
- ZigZag encoding is applied if a block contains at least one negative delta value
- The result is bit packed into the optimal number of bits for the block
func CompressDeltaBinPackUint64 ¶
CompressDeltaBinPackUint64 compress blocks of 256 integers from `in` and append to `out`. `out` slice will be resized if necessary. The function returns the values from `in` that were not compressed (could not fit into a block), and the updated `out` slice.
Compression logic:
- Difference of consecutive inputs is computed (differential coding)
- ZigZag encoding is applied if a block contains at least one negative delta value
- The result is bit packed into the optimal number of bits for the block
func CompressDeltaVarByteInt32 ¶
CompressDeltaVarByteInt32 compress integers from `in` and append to `out`. `out` slice will be resized if necessary, the modified slice is returned.
Compression logic:
- Difference of consecutive inputs is computed (differential coding)
- Variable byte encoding is applied
func CompressDeltaVarByteInt64 ¶
CompressDeltaVarByteInt64 compress integers from `in` and append to `out`. `out` slice will be resized if necessary, the modified slice is returned.
Compression logic:
- Difference of consecutive inputs is computed (differential coding)
- Variable byte encoding is applied
func CompressDeltaVarByteUint32 ¶
CompressDeltaVarByteUint32 compress integers from `in` and append to `out`. `out` slice will be resized if necessary, the modified slice is returned.
Compression logic:
- Difference of consecutive inputs is computed (differential coding)
- Variable byte encoding is applied
func CompressDeltaVarByteUint64 ¶
CompressDeltaVarByteUint64 compress integers from `in` and append to `out`. `out` slice will be resized if necessary, the modified slice is returned.
Compression logic:
- Difference of consecutive inputs is computed (differential coding)
- Variable byte encoding is applied
func CompressInt32 ¶
CompressInt32 compress integers from `in` and append to `out`. `out` slice will be resized if necessary, the modified slice is returned.
Compression logic:
- Compress as many input as possible using `CompressDeltaBinPackInt32`
- Compress the remaining input with `CompressDeltaBinPackInt32`
func CompressInt64 ¶
CompressInt64 compress integers from `in` and append to `out`. `out` slice will be resized if necessary, the modified slice is returned.
Compression logic:
- Compress as many input as possible using `CompressDeltaBinPackInt64`
- Compress the remaining input with `CompressDeltaBinPackInt64`
func CompressUint32 ¶
CompressUint32 compress integers from `in` and append to `out`. `out` slice will be resized if necessary, the modified slice is returned.
Compression logic:
- Compress as many input as possible using `CompressDeltaBinPackUint32`
- Compress the remaining input with `CompressDeltaBinPackUint32`
func CompressUint64 ¶
CompressUint64 compress integers from `in` and append to `out`. `out` slice will be resized if necessary, the modified slice is returned.
Compression logic:
- Compress as many input as possible using `CompressDeltaBinPackUint64`
- Compress the remaining input with `CompressDeltaBinPackUint64`
func UncompressDeltaBinPackInt32 ¶
UncompressDeltaBinPackInt32 uncompress one ore more blocks of 128 integers from `in` and append the result to `out`. `out` slice will be resized if necessary. The function returns the values from `in` that were not uncompressed, and the updated `out` slice.
func UncompressDeltaBinPackInt64 ¶
UncompressDeltaBinPackInt64 uncompress one ore more blocks of 256 integers from `in` and append the result to `out`. `out` slice will be resized if necessary. The function returns the values from `in` that were not uncompressed, and the updated `out` slice.
func UncompressDeltaBinPackUint32 ¶
UncompressDeltaBinPackUint32 uncompress one ore more blocks of 128 integers from `in` and append the result to `out`. `out` slice will be resized if necessary. The function returns the values from `in` that were not uncompressed, and the updated `out` slice.
func UncompressDeltaBinPackUint64 ¶
UncompressDeltaBinPackUint64 uncompress one ore more blocks of 256 integers from `in` and append the result to `out`. `out` slice will be resized if necessary. The function returns the values from `in` that were not uncompressed, and the updated `out` slice.
func UncompressDeltaVarByteInt32 ¶
UncompressDeltaVarByteInt32 uncompress one block of integers from `in` (compressed with `CompressDeltaVarByteInt32`) and append the result to `out`. `out` slice will be resized if necessary.
The function returns the values from `in` that were not uncompressed, and the updated `out` slice.
func UncompressDeltaVarByteInt64 ¶
UncompressDeltaVarByteInt64 uncompress one block of integers from `in` (compressed with `CompressDeltaVarByteInt32`) and append the result to `out`. `out` slice will be resized if necessary.
The function returns the values from `in` that were not uncompressed, and the updated `out` slice.
func UncompressDeltaVarByteUint32 ¶
UncompressDeltaVarByteUint32 uncompress one block of integers from `in` (compressed with `CompressDeltaVarByteInt32`) and append the result to `out`. `out` slice will be resized if necessary.
The function returns the values from `in` that were not uncompressed, and the updated `out` slice.
func UncompressDeltaVarByteUint64 ¶
UncompressDeltaVarByteUint64 uncompress one block of integers from `in` (compressed with `CompressDeltaVarByteInt32`) and append the result to `out`. `out` slice will be resized if necessary.
The function returns the values from `in` that were not uncompressed, and the updated `out` slice.
func UncompressInt32 ¶
UncompressInt32 uncompress integers from `in` (compressed with `CompressInt32`) and append the result to `out`. `out` slice will be resized if necessary.
func UncompressInt64 ¶
UncompressInt64 uncompress integers from `in` (compressed with `CompressInt64`) and append the result to `out`. `out` slice will be resized if necessary.
func UncompressUint32 ¶
UncompressUint32 uncompress integers from `in` (compressed with `CompressUint32`) and append the result to `out`. `out` slice will be resized if necessary.
func UncompressUint64 ¶
UncompressUint64 uncompress integers from `in` (compressed with `CompressUint64`) and append the result to `out`. `out` slice will be resized if necessary.
Types ¶
This section is empty.