Exemple #1
0
func (it *Iterator) Result() graph.Value {
	if it.nodes {
		return iterator.Int64Node(it.result)
	}
	return iterator.Int64Quad(it.result)
}
Exemple #2
0
func (qs *QuadStore) ValueOf(name quad.Value) graph.Value {
	qs.idmu.RLock()
	v := qs.idMap[quad.StringOf(name)]
	qs.idmu.RUnlock()
	return iterator.Int64Node(v)
}