Documentation ¶
Index ¶
- func NewFieldRetriever(opts *Options) persist.FieldRetriever
- func NewPersistManager(opts *Options) persist.Manager
- type Options
- func (o *Options) ClockOptions() clock.Options
- func (o *Options) FieldPathSeparator() byte
- func (o *Options) FilePathPrefix() string
- func (o *Options) InstrumentOptions() instrument.Options
- func (o *Options) MmapEnableHugePages() bool
- func (o *Options) MmapHugePagesThreshold() int64
- func (o *Options) NewDirectoryMode() os.FileMode
- func (o *Options) NewFileMode() os.FileMode
- func (o *Options) ReadBufferSize() int
- func (o *Options) SetClockOptions(v clock.Options) *Options
- func (o *Options) SetFieldPathSeparator(v byte) *Options
- func (o *Options) SetFilePathPrefix(v string) *Options
- func (o *Options) SetInstrumentOptions(v instrument.Options) *Options
- func (o *Options) SetMmapEnableHugePages(v bool) *Options
- func (o *Options) SetMmapHugePagesThreshold(v int64) *Options
- func (o *Options) SetNewDirectoryMode(v os.FileMode) *Options
- func (o *Options) SetNewFileMode(v os.FileMode) *Options
- func (o *Options) SetReadBufferSize(v int) *Options
- func (o *Options) SetTimestampPrecision(v time.Duration) *Options
- func (o *Options) SetWriteBufferSize(v int) *Options
- func (o *Options) TimestampPrecision() time.Duration
- func (o *Options) WriteBufferSize() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFieldRetriever ¶
func NewFieldRetriever(opts *Options) persist.FieldRetriever
NewFieldRetriever creates a new field retriever.
func NewPersistManager ¶
NewPersistManager creates a new filesystem persist manager. TODO(xichen): Persistence rate limiting.
Types ¶
type Options ¶
type Options struct {
// contains filtered or unexported fields
}
Options provide a set of options for data persistence.
func (*Options) ClockOptions ¶
ClockOptions returns the clock options.
func (*Options) FieldPathSeparator ¶
FieldPathSeparator returns the field separator.
func (*Options) FilePathPrefix ¶
FilePathPrefix returns the file path prefix for persisted dataset.
func (*Options) InstrumentOptions ¶
func (o *Options) InstrumentOptions() instrument.Options
InstrumentOptions returns the instrument options.
func (*Options) MmapEnableHugePages ¶
MmapEnableHugePages returns whether to enable huge pages or not.
func (*Options) MmapHugePagesThreshold ¶
MmapHugePagesThreshold returns the threshold for when to enable huge pages if enabled.
func (*Options) NewDirectoryMode ¶
NewDirectoryMode returns the new directory mode.
func (*Options) NewFileMode ¶
NewFileMode returns the new file mode.
func (*Options) ReadBufferSize ¶
ReadBufferSize returns the buffer size for reading data from files.
func (*Options) SetClockOptions ¶
SetClockOptions sets the clock options.
func (*Options) SetFieldPathSeparator ¶
SetFieldPathSeparator sets the field separator.
func (*Options) SetFilePathPrefix ¶
SetFilePathPrefix sets the file path prefix for persisted dataset.
func (*Options) SetInstrumentOptions ¶
func (o *Options) SetInstrumentOptions(v instrument.Options) *Options
SetInstrumentOptions sets the instrument options.
func (*Options) SetMmapEnableHugePages ¶
SetMmapEnableHugePages sets whether to enable huge pages or not.
func (*Options) SetMmapHugePagesThreshold ¶
SetMmapHugePagesThreshold sets the threshold for when to enable huge pages if enabled.
func (*Options) SetNewDirectoryMode ¶
SetNewDirectoryMode sets the new directory mode.
func (*Options) SetNewFileMode ¶
SetNewFileMode sets the new file mode.
func (*Options) SetReadBufferSize ¶
SetReadBufferSize sets the buffer size for reading data from files.
func (*Options) SetTimestampPrecision ¶
SetTimestampPrecision sets the timestamp precision.
func (*Options) SetWriteBufferSize ¶
SetWriteBufferSize sets the buffer size for writing data to files.
func (*Options) TimestampPrecision ¶
TimestampPrecision returns the timestamp precision.
func (*Options) WriteBufferSize ¶
WriteBufferSize returns the buffer size for writing data to files.