Added Gremlin tests for the Except operator.
This commit is contained in:
parent
b97e6782ff
commit
55d235bd55
2 changed files with 17 additions and 3 deletions
|
|
@ -146,11 +146,11 @@ func (it *Not) Type() graph.Type { return graph.Not }
|
|||
|
||||
func (it *Not) Optimize() (graph.Iterator, bool) {
|
||||
// TODO - consider wrapping the primaryIt with a MaterializeIt
|
||||
if optimizedPrimaryIt, optimized := it.primaryIt.Optimize(); optimized {
|
||||
optimizedPrimaryIt, optimized := it.primaryIt.Optimize()
|
||||
if optimized {
|
||||
it.primaryIt = optimizedPrimaryIt
|
||||
return it, true
|
||||
}
|
||||
return it, false
|
||||
return it, optimized
|
||||
}
|
||||
|
||||
func (it *Not) Stats() graph.IteratorStats {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue