Documentation
¶
Index ¶
- func GetAllNodes(db fdb.Database) (hosts []string, err error)
- func GetNodesFromStatus(status string) (hosts []string, err error)
- func GetStatus(db fdb.Database) (status string, err error)
- type DirListing
- type DirNode
- type DirSizeGuestimate
- type HashableKeyRange
- type KeyRangeStats
- type PendingResponse
- type Surveyor
- func (s *Surveyor) CalculateDBSize(pmap *finder.PartitionMap) (sizeByRange map[HashableKeyRange]KeyRangeStats, err error)
- func (s *Surveyor) CalculateDBSizeAsync(pmap *finder.PartitionMap) (sizeByRange map[HashableKeyRange]int64, totalSize int64, err error)
- func (s *Surveyor) CalculateRowCount(pmap *finder.PartitionMap, readerThreads int) (totalRows int64, err error)
- func (s *Surveyor) EstimateDirectorySize(sizeByRange map[HashableKeyRange]KeyRangeStats, directories DirListing) (err error)
- func (s *Surveyor) GetAllDirectories() (directories DirListing, err error)
- type SurveyorOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNodesFromStatus ¶
Types ¶
type DirListing ¶
type DirSizeGuestimate ¶
type HashableKeyRange ¶
func NewHashableKeyRange ¶
func NewHashableKeyRange(kr fdb.KeyRange) HashableKeyRange
type KeyRangeStats ¶
func NewKeyRangeStats ¶
func NewKeyRangeStats(kr fdb.KeyRange, size int64) KeyRangeStats
type PendingResponse ¶
type PendingResponse struct {
Kr HashableKeyRange
Fi fdb.FutureInt64
}
type Surveyor ¶
type Surveyor struct {
// contains filtered or unexported fields
}
func NewSurveyor ¶
func NewSurveyor(db fdb.Database, opts ...SurveyorOption) (s *Surveyor, err error)
func (*Surveyor) CalculateDBSize ¶
func (s *Surveyor) CalculateDBSize(pmap *finder.PartitionMap) (sizeByRange map[HashableKeyRange]KeyRangeStats, err error)
func (*Surveyor) CalculateDBSizeAsync ¶
func (s *Surveyor) CalculateDBSizeAsync(pmap *finder.PartitionMap) (sizeByRange map[HashableKeyRange]int64, totalSize int64, err error)
func (*Surveyor) CalculateRowCount ¶
func (*Surveyor) EstimateDirectorySize ¶
func (s *Surveyor) EstimateDirectorySize(sizeByRange map[HashableKeyRange]KeyRangeStats, directories DirListing) (err error)
func (*Surveyor) GetAllDirectories ¶
func (s *Surveyor) GetAllDirectories() (directories DirListing, err error)
type SurveyorOption ¶
type SurveyorOption func(exp *Surveyor)
func Logger ¶
func Logger(logger *zap.Logger) SurveyorOption
Click to show internal directories.
Click to hide internal directories.