Documentation ¶
Index ¶
- type GeospatialIndex
- func (i *GeospatialIndex[G]) AddValue(id string, value interface{}) bool
- func (i *GeospatialIndex[G]) Deserialize(data []byte) error
- func (i *GeospatialIndex[G]) GetColumnName() string
- func (i *GeospatialIndex[G]) GetIndexType() indexer.IndexType
- func (i *GeospatialIndex[G]) MarshalJSON() ([]byte, error)
- func (i *GeospatialIndex[G]) Search(value interface{}) []uint32
- type SortedIndexJSON
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GeospatialIndex ¶
type GeospatialIndex[G geom.T] struct { Metadata metadata `json:"metadata"` Index rtreego.Rtree `json:"index"` }
func New ¶
func New[G geom.T](columnName string, dimensions int) *GeospatialIndex[G]
New creates a new Geospatial index object
func (*GeospatialIndex[G]) AddValue ¶
func (i *GeospatialIndex[G]) AddValue(id string, value interface{}) bool
func (*GeospatialIndex[G]) Deserialize ¶
func (i *GeospatialIndex[G]) Deserialize(data []byte) error
TODO: implement this once there is an actual index system
func (*GeospatialIndex[G]) GetColumnName ¶
func (i *GeospatialIndex[G]) GetColumnName() string
func (*GeospatialIndex[G]) GetIndexType ¶
func (i *GeospatialIndex[G]) GetIndexType() indexer.IndexType
func (*GeospatialIndex[G]) MarshalJSON ¶
func (i *GeospatialIndex[G]) MarshalJSON() ([]byte, error)
func (*GeospatialIndex[G]) Search ¶
func (i *GeospatialIndex[G]) Search(value interface{}) []uint32
type SortedIndexJSON ¶
type SortedIndexJSON[G geom.T] struct {
Metadata metadata `json:"metadata"`
}
Click to show internal directories.
Click to hide internal directories.