MCPcopy Create free account
hub / github.com/couchbase/cbft / CountAlias

Function CountAlias

pindex_alias.go:79–90  ·  view source on GitHub ↗
(mgr *cbgt.Manager,
	indexName, indexUUID string)

Source from the content-addressed store, hash-verified

77}
78
79func CountAlias(mgr *cbgt.Manager,
80 indexName, indexUUID string) (uint64, error) {
81 alias, _, err := bleveIndexAliasForUserIndexAlias(mgr,
82 indexName, indexUUID, false, nil, nil, false, "")
83 if err != nil {
84 return 0, fmt.Errorf("alias: CountAlias indexAlias error,"+
85 " indexName: %s, indexUUID: %s, err: %v",
86 indexName, indexUUID, err)
87 }
88
89 return alias.DocCount()
90}
91
92func QueryAlias(mgr *cbgt.Manager, indexName, indexUUID string,
93 req []byte, res io.Writer) error {

Callers

nothing calls this directly

Calls 2

DocCountMethod · 0.65

Tested by

no test coverage detected