MCPcopy
hub / github.com/cayleygraph/cayley / Stats

Method Stats

graph/iterator.go:117–117  ·  view source on GitHub ↗

These methods relate to choosing the right iterator, or optimizing an iterator tree Stats() returns the relative costs of calling the iteration methods for this iterator, as well as the size. Roughly, it will take NextCost * Size "cost units" to get everything out of the iterator. This is a wibbly-

()

Source from the content-addressed store, hash-verified

115 // "cost units" to get everything out of the iterator. This is a wibbly-wobbly
116 // thing, and not exact, but a useful heuristic.
117 Stats() IteratorStats
118
119 // Helpful accessor for the number of things in the iterator. The first return
120 // value is the size, and the second return value is whether that number is exact,

Callers 15

DumpStatsFunction · 0.65
CountMethod · 0.65
makeBtreeDebugFunction · 0.65
estimateSizeMethod · 0.65
TestMemstoreValueOfFunction · 0.65
TestTransactionFunction · 0.65
TestLoadOneQuadFunction · 0.65
testLoadDupFunction · 0.65
TestLoadDupRawFunction · 0.65
TestSizesFunction · 0.65
TestLoadTypedQuadsFunction · 0.65
TestAddRemoveFunction · 0.65

Implementers 5

legacyItergraph/shape.go
Int64graph/iterator/iterator_test.go
Nullgraph/iterator/iterator.go
Errorgraph/iterator/iterator.go
Iteratorgraph/gaedatastore/iterator.go

Calls

no outgoing calls

Tested by 10

makeBtreeDebugFunction · 0.52
TestMemstoreValueOfFunction · 0.52
TestTransactionFunction · 0.52
TestLoadOneQuadFunction · 0.52
TestLoadDupRawFunction · 0.52
TestSizesFunction · 0.52
TestLoadTypedQuadsFunction · 0.52
TestAddRemoveFunction · 0.52
TestAndStatisticsFunction · 0.52