Documentation
¶
Index ¶
- type Indexer
- func (idx *Indexer) Begin() storage.Tx
- func (idx *Indexer) Get(k string) (*storage.DataPoint, error)
- func (idx *Indexer) GetAll(k string, count int) ([]storage.DataPoint, error)
- func (idx *Indexer) Keys() ([]string, error)
- func (idx *Indexer) RadiusSearch(lat, lng, radius float64) ([]storage.DataPoint, error)
- func (idx *Indexer) RectSearch(urlat, urlng, bllat, bllng float64) ([]storage.DataPoint, error)
- func (idx *Indexer) Store(k string, v []byte, lat, lng float64, t time.Time) error
- func (idx *Indexer) StoreTx(txi storage.Tx, k string, v []byte, lat, lng float64, t time.Time) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Indexer ¶
type Indexer struct {
*badger.DB
}
func (*Indexer) RadiusSearch ¶
RadiusSearch returns the Points found in the index inside radius (no data)
func (*Indexer) RectSearch ¶
RectPointSearch returns all Points contained in the rect
Click to show internal directories.
Click to hide internal directories.