Versions in this module Expand all Collapse all v1 v1.0.0 Jul 24, 2023 Changes in this version + const BytesWritableClassName + const Bzip2ClassName + const GzipClassName + const IntWritableClassName + const LongWritableClassName + const SnappyClassName + const SyncSize + const TextClassName + const ZlibClassName + const ZstdClassName + func BytesWritable(b []byte) []byte + func IntWritable(b []byte) int32 + func LongWritable(b []byte) int64 + func ReadVInt(r io.Reader) (int64, error) + func Text(b []byte) string + func WriteVInt(w io.Writer, i int64) (err error) + type Compression int + const BlockCompression + const NoCompression + const RecordCompression + type CompressionCodec int + const Bzip2Compression + const GzipCompression + const SnappyCompression + const ZlibCompression + const ZstdCompression + type Header struct + Compression Compression + CompressionCodec CompressionCodec + CompressionCodecClassName string + KeyClassName string + Metadata map[string]string + SyncMarker string + ValueClassName string + Version int + type Reader struct + Header Header + func NewReader(r io.Reader) *Reader + func NewReaderCompression(r io.Reader, compression Compression, codec CompressionCodec) *Reader + func Open(path string) (*Reader, error) + func (r *Reader) Err() error + func (r *Reader) Key() []byte + func (r *Reader) ReadHeader() error + func (r *Reader) Reset() + func (r *Reader) Scan() bool + func (r *Reader) Value() []byte + type WritableWriter func(io.Writer, interface{}) error + func NewWritableWriter(className string) (WritableWriter, error) + type Writer struct + func NewWriter(cfg *WriterConfig) (w *Writer, err error) + func (w *Writer) Append(key interface{}, value interface{}) (err error) + func (w *Writer) Close() error + type WriterConfig struct + BlockSize int + Compression Compression + CompressionCodec CompressionCodec + KeyClass string + Metadata map[string]string + Rand *rand.Rand + ValueClass string + Writer io.Writer