Documentation
¶
Index ¶
- type CacheConfig
- type CacheInterface
- type ParquetShardCache
- type RowRangesCache
- func (c *RowRangesCache) Close() error
- func (c *RowRangesCache) Delete(context.Context, parquet_storage.ParquetShard, int, []search.Constraint) error
- func (c *RowRangesCache) Get(ctx context.Context, shard parquet_storage.ParquetShard, rgIdx int, ...) ([]search.RowRange, bool)
- func (c *RowRangesCache) Set(ctx context.Context, shard parquet_storage.ParquetShard, rgIdx int, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheConfig ¶
type CacheConfig struct {
ParquetShardCacheSize int `yaml:"parquet_shard_cache_size"`
ParquetShardCacheTTL time.Duration `yaml:"parquet_shard_cache_ttl"`
MaintenanceInterval time.Duration `yaml:"-"`
}
func (*CacheConfig) RegisterFlagsWithPrefix ¶
func (cfg *CacheConfig) RegisterFlagsWithPrefix(prefix string, f *flag.FlagSet)
type CacheInterface ¶
func NewParquetShardCache ¶
func NewParquetShardCache[T any](cfg *CacheConfig, name string, reg prometheus.Registerer) (CacheInterface[T], error)
type ParquetShardCache ¶
type ParquetShardCache[T any] struct { // contains filtered or unexported fields }
func (*ParquetShardCache[T]) Close ¶
func (c *ParquetShardCache[T]) Close()
func (*ParquetShardCache[T]) Get ¶
func (c *ParquetShardCache[T]) Get(path string) (r T)
func (*ParquetShardCache[T]) Set ¶
func (c *ParquetShardCache[T]) Set(path string, reader T)
type RowRangesCache ¶
type RowRangesCache struct {
// contains filtered or unexported fields
}
func NewRowRangesCache ¶
func NewRowRangesCache(cache cache.Cache, name string, ttl time.Duration, reg prometheus.Registerer) *RowRangesCache
func (*RowRangesCache) Close ¶
func (c *RowRangesCache) Close() error
func (*RowRangesCache) Delete ¶
func (c *RowRangesCache) Delete(context.Context, parquet_storage.ParquetShard, int, []search.Constraint) error
func (*RowRangesCache) Get ¶
func (c *RowRangesCache) Get(ctx context.Context, shard parquet_storage.ParquetShard, rgIdx int, cs []search.Constraint) ([]search.RowRange, bool)
func (*RowRangesCache) Set ¶
func (c *RowRangesCache) Set(ctx context.Context, shard parquet_storage.ParquetShard, rgIdx int, cs []search.Constraint, rr []search.RowRange) error
Click to show internal directories.
Click to hide internal directories.