merge with master
This commit is contained in:
commit
fe0569c9d4
10 changed files with 201 additions and 165 deletions
|
|
@ -187,13 +187,13 @@ func (it *Iterator) Contains(v graph.Value) bool {
|
|||
case quad.Subject:
|
||||
offset = 0
|
||||
case quad.Predicate:
|
||||
offset = (it.qs.hasher.Size() * 2)
|
||||
offset = (it.qs.hasherSize * 2)
|
||||
case quad.Object:
|
||||
offset = (it.qs.hasher.Size() * 2) * 2
|
||||
offset = (it.qs.hasherSize * 2) * 2
|
||||
case quad.Label:
|
||||
offset = (it.qs.hasher.Size() * 2) * 3
|
||||
offset = (it.qs.hasherSize * 2) * 3
|
||||
}
|
||||
val := v.(string)[offset : it.qs.hasher.Size()*2+offset]
|
||||
val := v.(string)[offset : it.qs.hasherSize*2+offset]
|
||||
if val == it.hash {
|
||||
it.result = v
|
||||
return graph.ContainsLogOut(it, v, true)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue