Commit graph

43 commits

Author SHA1 Message Date
3e02bb2b71 refactor to SQL builder iterators and standard iterator wrapper 2015-08-12 16:03:25 -04:00
d639aa3205 Clean up Linkage definition
A linkage is a direction/value pair, and that's all. A set of these can
have helper functions and the like. Cleans up some assumptions of
functionality that isn't useful (yet).
2015-06-02 14:46:19 -04:00
0e50027be8 var renames, remove Func, etc 2015-04-30 23:02:27 -04:00
b9ca485321 Late bind the QuadStore and add Except and Tag 2015-04-30 23:02:27 -04:00
5451d07ff5 first run at an api 2015-04-30 23:02:26 -04:00
Andrew Dunham
189961cb8d Remove deprecated ResultTree API 2015-04-28 15:57:35 -07:00
890f1b69f4 unique iterator implementation 2015-04-26 17:45:17 -04:00
355c8ee6bc generalize Linkage, add relevant comments 2015-04-19 20:07:14 -04:00
5be1df3be3 initial mongo indexed linksto 2015-04-19 13:43:10 -04:00
Andrew Dunham
5eed4d9667 Address review comments 2015-04-15 16:28:13 -07:00
Andrew Dunham
33dd596ab4 Remove graph.Err helper function
Since Err() is now a member of the Iterator interface, we don't need
this helper function anymore.
2015-04-15 11:15:55 -07:00
Andrew Dunham
accbc6007e Move Err() method to Iterator interface, fix fallout 2015-04-15 10:51:22 -07:00
Andrew Dunham
1b6395ed0a Make Close() method on Iterators return an error 2015-04-14 20:17:31 -07:00
Andrew Dunham
6cb67cdd8c Add a helper function Err, similar to graph.Next 2015-04-14 16:58:20 -07:00
Andrew Dunham
e07838857f Add Err() method to Nexter interface 2015-04-14 16:33:32 -07:00
67673b31f4 Clean up a little lint and some shadowed variables 2015-02-21 16:21:48 -05:00
kortschak
e2eea6c283 Convert Type fields to use graph.Type
Add text encoding methods to replace string storage.
2014-09-05 09:49:15 +09:30
kortschak
62013d3dfc Replace DebugString with Describe
This change makes tree description completely open to mechanical
analysis and ensures consistency between description formats for each of
the iterator types.

Renamed StatsContainer.(Kind -> Type) for consistency.
2014-09-05 09:32:09 +09:30
kortschak
484bf145a8 Remove non-documentation lint
Because of extensive nature of changes, tested all three non-memstore
backends - passed.
2014-08-28 11:51:39 +09:30
kortschak
08e47b4a9e Do tagger copying with less iteration
This makes minimal difference to the benchmarks in cayley_test.go (a
variable ±5% on the bigger cases).
2014-08-21 15:34:50 +09:30
e453385d5e explain logging and weight fixing 2014-08-16 05:19:16 -04:00
kortschak
62785d25c2 Merge branch 'master' into nexter
Conflicts:
	graph/leveldb/all_iterator.go
	graph/leveldb/iterator.go
	graph/memstore/triplestore.go
	query/gremlin/finals.go
2014-08-07 06:57:45 +09:30
24f57df859 fix overshoot and optimize better 2014-08-06 03:49:55 -04:00
09244ddd38 materialize implementation and and optimization 2014-08-06 03:49:55 -04:00
kortschak
b1a70d99aa Simplify Nexter interface
This change allows a Nexter to be used in the same manner as a scanner
using a for graph.Next(it) {} construction.

It is important that graph.Next(it) and any associated it.Result() calls
operate on the same iterator.
2014-08-01 09:15:02 +09:30
kortschak
f8e28e066e Rename NextResult -> NextPath
See discussion in #92.
2014-08-01 07:27:16 +09:30
kortschak
1606e98d9f Rename Check-ish -> Contains-ish
Contains[*] indicates what the check is for.

[*] I considered Has/Have, but settled on Contains to avoid confusion
with the HasA iterator.
2014-07-31 15:29:42 +09:30
kortschak
d6f94be514 Base nexting on interface satisfaction
This is done unsubtlely at the moment and there is plenty of room for
optimisation of assertion location to prevent repeated reasserting as is
done now.
2014-07-30 16:06:46 +09:30
kortschak
1604dca737 Move tag handling out into graph.Tagger 2014-07-30 10:25:32 +09:30
Jeremy Jay
a83b7ea367 fix non-pointer uintptr -> uint64, export NextUID
Allows other iterator implementations to use global UID namespace.
2014-07-28 11:26:33 -04:00
Jeremy Jay
e780c1ceb9 Register should be RegisterIterator 2014-07-16 13:49:39 -04:00
Alex Peters
4d34ea50cc Fix typos and minor cleanup 2014-07-10 13:19:30 +02:00
kortschak
c8e5ac1916 Add documentation around Type registration 2014-07-03 15:25:21 +09:30
kortschak
cd46452b63 Enumerate iterator types 2014-07-03 09:57:31 +09:30
kortschak
447a835b93 Rename AddValue 2014-07-02 12:17:33 +09:30
kortschak
d87e227ff3 Rename TSVal 2014-07-02 12:13:15 +09:30
kortschak
a1453da84e Don't indirect map values
We already have reference behaviour, so this is not necessary.

This change highlighted fairly baroque architecture in mql that deserves
some attention; the use of channels is somewhat confusing.

Also rename LastResult to Result.
2014-07-02 12:08:49 +09:30
kortschak
8576f66d20 Reduce graph.Iterator method names 2014-07-02 11:02:09 +09:30
kortschak
2f2f580858 Remove dead var 2014-07-01 09:46:15 +09:30
kortschak
1768e593a8 Move iterators into separate package
Also reduce API exposure and use standard library more - and fix bugs I
previously introduces in mongo.
2014-07-01 09:21:32 +09:30
kortschak
bed8d3813a Remove uses of container/list 2014-06-29 14:38:28 +09:30
kortschak
60d5c60817 Canonicalise iterator receiver names
This apparently meaningless churn improves godoc readability.
2014-06-28 21:36:50 +09:30
kortschak
e0df752618 Reorganize to go get will work
This makes almost no changes to source, but touches every almost file.

Also fixes error in gremlin test code.
2014-06-26 09:04:17 +09:30