Documentation
¶
Index ¶
- Variables
- func NewStore() *store.IndexStore
- type Config
- type Index
- func (i *Index) GetBlocks(tx *bbolt.Tx, list *metastorev1.BlockList) ([]*metastorev1.BlockMeta, error)
- func (i *Index) GetTenantStats(tenant string) *metastorev1.TenantStats
- func (i *Index) Init(tx *bbolt.Tx) error
- func (i *Index) InsertBlock(tx *bbolt.Tx, b *metastorev1.BlockMeta) error
- func (i *Index) QueryMetadata(tx *bbolt.Tx, query MetadataQuery) ([]*metastorev1.BlockMeta, error)
- func (i *Index) QueryMetadataLabels(tx *bbolt.Tx, query MetadataQuery) ([]*typesv1.Labels, error)
- func (i *Index) ReplaceBlocks(tx *bbolt.Tx, compacted *metastorev1.CompactedBlocks) error
- func (i *Index) Restore(tx *bbolt.Tx) error
- type InvalidQueryError
- type MetadataQuery
- type Store
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = Config{ ShardCacheSize: 2000, BlockReadCacheSize: 100000, BlockWriteCacheSize: 10000, // contains filtered or unexported fields }
View Source
var ErrBlockExists = fmt.Errorf("block already exists")
Functions ¶
func NewStore ¶ added in v1.11.0
func NewStore() *store.IndexStore
Types ¶
type Config ¶
type Index ¶
type Index struct {
// contains filtered or unexported fields
}
func (*Index) GetBlocks ¶ added in v1.13.3
func (i *Index) GetBlocks(tx *bbolt.Tx, list *metastorev1.BlockList) ([]*metastorev1.BlockMeta, error)
func (*Index) GetTenantStats ¶ added in v1.11.0
func (i *Index) GetTenantStats(tenant string) *metastorev1.TenantStats
func (*Index) InsertBlock ¶
func (*Index) QueryMetadata ¶ added in v1.11.0
func (i *Index) QueryMetadata(tx *bbolt.Tx, query MetadataQuery) ([]*metastorev1.BlockMeta, error)
func (*Index) QueryMetadataLabels ¶ added in v1.12.0
func (*Index) ReplaceBlocks ¶
func (i *Index) ReplaceBlocks(tx *bbolt.Tx, compacted *metastorev1.CompactedBlocks) error
type InvalidQueryError ¶ added in v1.11.0
type InvalidQueryError struct { Query MetadataQuery Err error }
func (*InvalidQueryError) Error ¶ added in v1.11.0
func (e *InvalidQueryError) Error() string
Click to show internal directories.
Click to hide internal directories.