index

package
v0.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2015 License: AGPL-3.0 Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendIndex

func AppendIndex(indexFieldNames []string, id string, record []interface{})

add a new data record to be indexed.

func GetIndexByColName

func GetIndexByColName(colName string) map[string][]uint64

this function returns all of the unique values and their locations in the data of a column only supports strings for now!

func GetUniqueValsByColName

func GetUniqueValsByColName(colName string) []string

this function returns all of the unique values of a column only supports strings for now!

func InitializeIndexes

func InitializeIndexes(indexFields []string)

create the index map. This is only done once on startup after reading the config.json

func QueryIndex

func QueryIndex(queryKey string, queryVal string) []uint64

this function returns the idx's that match a query

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL