Documentation ¶
Index ¶
- func New(collection file.Collection, options ...file.ReaderOption) (file.Reader, error)
- func WithAutoDelete() file.ReaderOption
- func WithChangeShardErrorIgnore() file.ReaderOption
- func WithChangeShardRepeatRead() file.ReaderOption
- func WithCompressLZ4() file.ReaderOption
- func WithReadBytesLength(counter prometheus.Counter) file.ReaderOption
- type AutoDelete
- type ChangeShardErrorIgnore
- type ChangeShardRepeatRead
- type LZ4
- type ReadBytesLength
- type Reader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(collection file.Collection, options ...file.ReaderOption) (file.Reader, error)
func WithAutoDelete ¶
func WithAutoDelete() file.ReaderOption
func WithChangeShardErrorIgnore ¶
func WithChangeShardErrorIgnore() file.ReaderOption
func WithChangeShardRepeatRead ¶
func WithChangeShardRepeatRead() file.ReaderOption
func WithCompressLZ4 ¶
func WithCompressLZ4() file.ReaderOption
func WithReadBytesLength ¶
func WithReadBytesLength(counter prometheus.Counter) file.ReaderOption
Types ¶
type AutoDelete ¶
func NewAutoDelete ¶
func NewAutoDelete(reader file.Reader, lastFile *os.File) *AutoDelete
type ChangeShardErrorIgnore ¶
func NewChangeShardErrorIgnore ¶
func NewChangeShardErrorIgnore(reader file.Reader) *ChangeShardErrorIgnore
type ChangeShardRepeatRead ¶
func NewChangeShardRepeatRead ¶
func NewChangeShardRepeatRead(reader file.Reader) *ChangeShardRepeatRead
type ReadBytesLength ¶
func NewReadBytesLength ¶
func NewReadBytesLength(reader file.Reader, counter prometheus.Counter) *ReadBytesLength
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
func NewReader ¶
func NewReader(collection file.Collection) *Reader
func (*Reader) Collection ¶
func (reader *Reader) Collection() file.Collection
Click to show internal directories.
Click to hide internal directories.