Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrPartitionRevoked = errors.New("partition revoked")
Functions ¶
Types ¶
type Calculator ¶
type Calculator struct {
// contains filtered or unexported fields
}
Calculator is used to calculate the indexes for a logs object and write them to the builder. It reads data from the logs object in order to build bloom filters and per-section stream metadata.
func NewCalculator ¶
func NewCalculator(indexobjBuilder *indexobj.Builder) *Calculator
func (*Calculator) Calculate ¶
func (c *Calculator) Calculate(ctx context.Context, logger log.Logger, reader *dataobj.Object, objectPath string) error
Calculate reads the log data from the input logs object and appends the resulting indexes to calculator's builder. Calculate is not thread-safe.
func (*Calculator) Reset ¶
func (c *Calculator) Reset()
func (*Calculator) TimeRanges ¶
func (c *Calculator) TimeRanges() []multitenancy.TimeRange
type Config ¶
type Config struct {
indexobj.BuilderConfig `yaml:",inline"`
EventsPerIndex int `yaml:"events_per_index" experimental:"true"`
FlushInterval time.Duration `yaml:"flush_interval" experimental:"true"`
MaxIdleTime time.Duration `yaml:"max_idle_time" experimental:"true"`
}
func (*Config) RegisterFlags ¶
Click to show internal directories.
Click to hide internal directories.