Files
Joe ElliottandGitHub ba1d670445 Compressed Blocks? Compressed Blocks! (#504)
* Added basic structure for compression

Signed-off-by: Joe Elliott <[email protected]>

* AppenderBuffered impl

Signed-off-by: Joe Elliott <[email protected]>

* mild commenting

Signed-off-by: Joe Elliott <[email protected]>

* moved encoding to meta json

Signed-off-by: Joe Elliott <[email protected]>

* Added pagedReader and backend.ReaderAt

Signed-off-by: Joe Elliott <[email protected]>

* dedupingfinder => pagedfinder

Signed-off-by: Joe Elliott <[email protected]>

* Abstracted away index reading.  Used pagedFinder in backend block

Signed-off-by: Joe Elliott <[email protected]>

* Abstracted PagedIterator to use indexReader

Signed-off-by: Joe Elliott <[email protected]>

* improved comments

Signed-off-by: Joe Elliott <[email protected]>

* created versioned encoding

Signed-off-by: Joe Elliott <[email protected]>

* removed findmetrics

Signed-off-by: Joe Elliott <[email protected]>

* Moved backend block to encoding

Signed-off-by: Joe Elliott <[email protected]>

* Moved indexreader records to common

Signed-off-by: Joe Elliott <[email protected]>

* Added index reader

Signed-off-by: Joe Elliott <[email protected]>

* jpe cleanup

Signed-off-by: Joe Elliott <[email protected]>

* v1 LIVES

Signed-off-by: Joe Elliott <[email protected]>

* Tests pass on v1

Signed-off-by: Joe Elliott <[email protected]>

* encoding tests pass

Signed-off-by: Joe Elliott <[email protected]>

* wooo snappy tests

Signed-off-by: Joe Elliott <[email protected]>

* Moved block config to its own struct

Signed-off-by: Joe Elliott <[email protected]>

* Add custom marshaller

Signed-off-by: Joe Elliott <[email protected]>

* updated configs added default

Signed-off-by: Joe Elliott <[email protected]>

* Test all encodings

Signed-off-by: Joe Elliott <[email protected]>

* Added benchmark.  Default to snappy

Signed-off-by: Joe Elliott <[email protected]>

* fixed panic in reader

Signed-off-by: Joe Elliott <[email protected]>

* Fleshed out benchmarks

Signed-off-by: Joe Elliott <[email protected]>

* lint

Signed-off-by: Joe Elliott <[email protected]>

* backend_block => benchmark_block

Signed-off-by: Joe Elliott <[email protected]>

* Added 256 and 1M LZ4 tests

Signed-off-by: Joe Elliott <[email protected]>

* Removed findmetrics from operational

Signed-off-by: Joe Elliott <[email protected]>

* indexreaderbytes => indexreader

Signed-off-by: Joe Elliott <[email protected]>

* jpe cleanup

Signed-off-by: Joe Elliott <[email protected]>

* Fixed bytes flushed metric

Signed-off-by: Joe Elliott <[email protected]>

* Changed default encoding

Signed-off-by: Joe Elliott <[email protected]>

* Pass tracker correctly.  Add guard code

Signed-off-by: Joe Elliott <[email protected]>

* Added marshal tests

Signed-off-by: Joe Elliott <[email protected]>

* lint

Signed-off-by: Joe Elliott <[email protected]>

* page reader tests

Signed-off-by: Joe Elliott <[email protected]>

* actually add tests

Signed-off-by: Joe Elliott <[email protected]>

* Added reader tess

Signed-off-by: Joe Elliott <[email protected]>

* changelog

Signed-off-by: Joe Elliott <[email protected]>

* zstd

Signed-off-by: Joe Elliott <[email protected]>

* vendor

Signed-off-by: Joe Elliott <[email protected]>
2021-02-05 14:58:39 -05:00

93 lines
2.2 KiB
Go

// Code generated by "stringer -type=BlockSize,CompressionLevel -output options_gen.go"; DO NOT EDIT.
package lz4
import "strconv"
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[Block64Kb-65536]
_ = x[Block256Kb-262144]
_ = x[Block1Mb-1048576]
_ = x[Block4Mb-4194304]
}
const (
_BlockSize_name_0 = "Block64Kb"
_BlockSize_name_1 = "Block256Kb"
_BlockSize_name_2 = "Block1Mb"
_BlockSize_name_3 = "Block4Mb"
)
func (i BlockSize) String() string {
switch {
case i == 65536:
return _BlockSize_name_0
case i == 262144:
return _BlockSize_name_1
case i == 1048576:
return _BlockSize_name_2
case i == 4194304:
return _BlockSize_name_3
default:
return "BlockSize(" + strconv.FormatInt(int64(i), 10) + ")"
}
}
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[Fast-0]
_ = x[Level1-512]
_ = x[Level2-1024]
_ = x[Level3-2048]
_ = x[Level4-4096]
_ = x[Level5-8192]
_ = x[Level6-16384]
_ = x[Level7-32768]
_ = x[Level8-65536]
_ = x[Level9-131072]
}
const (
_CompressionLevel_name_0 = "Fast"
_CompressionLevel_name_1 = "Level1"
_CompressionLevel_name_2 = "Level2"
_CompressionLevel_name_3 = "Level3"
_CompressionLevel_name_4 = "Level4"
_CompressionLevel_name_5 = "Level5"
_CompressionLevel_name_6 = "Level6"
_CompressionLevel_name_7 = "Level7"
_CompressionLevel_name_8 = "Level8"
_CompressionLevel_name_9 = "Level9"
)
func (i CompressionLevel) String() string {
switch {
case i == 0:
return _CompressionLevel_name_0
case i == 512:
return _CompressionLevel_name_1
case i == 1024:
return _CompressionLevel_name_2
case i == 2048:
return _CompressionLevel_name_3
case i == 4096:
return _CompressionLevel_name_4
case i == 8192:
return _CompressionLevel_name_5
case i == 16384:
return _CompressionLevel_name_6
case i == 32768:
return _CompressionLevel_name_7
case i == 65536:
return _CompressionLevel_name_8
case i == 131072:
return _CompressionLevel_name_9
default:
return "CompressionLevel(" + strconv.FormatInt(int64(i), 10) + ")"
}
}