datautility

package
v0.0.0-...-b800c40 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpectedArrayScanResponse_string

func ExpectedArrayScanResponse_string(docs tc.KeyValues, jsonPath string, low, high string, inclusion int64, isDistinct bool) tc.ArrayIndexScanResponse

func ExpectedLookupResponse_json

func ExpectedLookupResponse_json(docs tc.KeyValues, jsonPath string, value map[string]interface{}) tc.ScanResponse

Lookup for Json object from list of docs

func ExpectedLookupResponse_nil

func ExpectedLookupResponse_nil(docs tc.KeyValues, jsonPath string) tc.ScanResponse

Lookup for nil

func ExpectedMultiScanCount

func ExpectedMultiScanCount(docs tc.KeyValues, compositeFieldPaths []string, scans qc.Scans,
	reverse, distinct bool, isScanAll bool) int

func ExpectedMultiScanResponse

func ExpectedMultiScanResponse(docs tc.KeyValues, compositeFieldPaths []string, scans qc.Scans,
	reverse, distinct bool, projection *qc.IndexProjection, offset, limit int64, isScanAll bool) tc.ScanResponse

func ExpectedMultiScanResponse_Primary

func ExpectedMultiScanResponse_Primary(docs tc.KeyValues, scans qc.Scans,
	reverse, distinct bool, offset, limit int64) tc.ScanResponse

MultiScan for Primary index

func ExpectedScanAllResponse

func ExpectedScanAllResponse(docs tc.KeyValues, jsonPath string) tc.ScanResponse

ScanAll for all datatypes

func ExpectedScanAllResponse_json

func ExpectedScanAllResponse_json(docs tc.KeyValues, jsonPath string) tc.ScanResponse

ScanAll for all json object types

func ExpectedScanLimitResponse_string

func ExpectedScanLimitResponse_string(docs tc.KeyValues, jsonPath string, low, high string, inclusion, limit int64) tc.ScanResponse

func ExpectedScanResponse_RangePrimary

func ExpectedScanResponse_RangePrimary(docs tc.KeyValues, low, high string, inclusion int64) tc.ScanResponse

Range scan for Primary index

func ExpectedScanResponse_bool

func ExpectedScanResponse_bool(docs tc.KeyValues, jsonPath string, value bool, inclusion int64) tc.ScanResponse

Currently supports only inclusion 3

func ExpectedScanResponse_float64

func ExpectedScanResponse_float64(docs tc.KeyValues, jsonPath string, low, high float64, inclusion int64) tc.ScanResponse

func ExpectedScanResponse_int64

func ExpectedScanResponse_int64(docs tc.KeyValues, jsonPath string, low, high int64, inclusion int64) tc.ScanResponse

func ExpectedScanResponse_string

func ExpectedScanResponse_string(docs tc.KeyValues, jsonPath string, low, high string, inclusion int64) tc.ScanResponse

func LoadJSONFromCompressedFile

func LoadJSONFromCompressedFile(path, docidfield string) tc.KeyValues

func PrintResultList

func PrintResultList(resultList ResultList)

Types

type Result

type Result struct {
	PrimaryKey   string
	SecondaryKey []interface{}
}

type ResultList

type ResultList []Result

func (ResultList) Len

func (r ResultList) Len() int

func (ResultList) Less

func (r ResultList) Less(i, j int) bool

func (ResultList) Swap

func (r ResultList) Swap(i, j int)

Jump to

Keyboard shortcuts

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