MCPcopy Index your code
hub / github.com/aptly-dev/aptly / Query

Method Query

deb/query.go:115–128  ·  view source on GitHub ↗

Query strategy depends on nodes

(list PackageCatalog)

Source from the content-addressed store, hash-verified

113
114// Query strategy depends on nodes
115func (q *AndQuery) Query(list PackageCatalog) (result *PackageList) {
116 if !q.Fast(list) {
117 result = list.Scan(q)
118 } else {
119 if q.L.Fast(list) {
120 result = q.L.Query(list)
121 result = result.Scan(q.R)
122 } else {
123 result = q.R.Query(list)
124 result = result.Scan(q.L)
125 }
126 }
127 return
128}
129
130// String interface
131func (q *AndQuery) String() string {

Callers

nothing calls this directly

Calls 4

FastMethod · 0.95
ScanMethod · 0.65
FastMethod · 0.65
QueryMethod · 0.65

Tested by

no test coverage detected