コード例 #1
0
 internal LabelScanViewIdIterator(LabelScanReader labelScanReader, int[] labelIds, CURSOR entityCursor)
 {
     this._labelScanReader = labelScanReader;
     this._entityCursor    = entityCursor;
     this._idIterator      = labelScanReader.NodesWithAnyOfLabels(labelIds);
     this._labelIds        = labelIds;
 }
コード例 #2
0
 public IndexProgressor_NodeValueClientAnonymousInnerClass(QueryResultComparingIndexReader outerInstance, Org.Neo4j.Storageengine.Api.schema.IndexProgressor_NodeValueClient client, IndexOrder indexOrder, bool needsValues, IndexQuery[] query, PrimitiveLongResourceIterator otherResult)
 {
     this.outerInstance = outerInstance;
     this._client       = client;
     this._indexOrder   = indexOrder;
     this._needsValues  = needsValues;
     this._query        = query;
     this._otherResult  = otherResult;
 }
コード例 #3
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public org.neo4j.collection.PrimitiveLongResourceIterator query(org.neo4j.internal.kernel.api.IndexQuery... predicates) throws org.neo4j.internal.kernel.api.exceptions.schema.IndexNotApplicableKernelException
        public override PrimitiveLongResourceIterator Query(params IndexQuery[] predicates)
        {
            PrimitiveLongResourceIterator mainResult = _actual.query(predicates);

            // Also call the other query method and bake comparison from it into a wrapped version of this iterator
            NodeValueIterator otherResult = new NodeValueIterator();

            _actual.query(otherResult, IndexOrder.NONE, false, predicates);
            return(new PrimitiveLongBaseResourceIteratorAnonymousInnerClass(this, mainResult, otherResult));
        }
コード例 #4
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public void query(IndexProgressor_NodeValueClient client, org.neo4j.internal.kernel.api.IndexOrder indexOrder, boolean needsValues, org.neo4j.internal.kernel.api.IndexQuery... query) throws org.neo4j.internal.kernel.api.exceptions.schema.IndexNotApplicableKernelException
        public override void Query(IndexProgressor_NodeValueClient client, IndexOrder indexOrder, bool needsValues, params IndexQuery[] query)
        {
            // Also call the other query method and bake comparison from it into a wrapped version of this iterator
            PrimitiveLongResourceIterator otherResult = _actual.query(query);

            // This is a client which gets driven by the client, such that it can know when there are no more values in it.
            // Therefore we can hook in correct comparison on this type of client.
            // Also call the other query method and bake comparison from it into a wrapped version of this iterator
            IndexProgressor_NodeValueClient wrappedClient = new IndexProgressor_NodeValueClientAnonymousInnerClass(this, client, indexOrder, needsValues, query, otherResult);

            _actual.query(wrappedClient, indexOrder, needsValues, query);
        }
コード例 #5
0
 public PrimitiveLongFilteringResourceIteratorAnonymousInnerClass(Org.Neo4j.Collection.PrimitiveLongResourceIterator source, System.Func <long, bool> filter) : base(source)
 {
     this._filter = filter;
 }
コード例 #6
0
 public override void InvalidateCache()
 {
     this._idIterator.close();
     this._idIterator = _labelScanReader.nodesWithAnyOfLabels(_lastReturnedId, _labelIds);
 }
コード例 #7
0
 internal NodeLabelIndexProgressor(PrimitiveLongResourceIterator iterator, Org.Neo4j.Storageengine.Api.schema.IndexProgressor_NodeLabelClient client)
 {
     this._iterator = iterator;
     this._client   = client;
 }
コード例 #8
0
 internal NodeValueIndexProgressor(PrimitiveLongResourceIterator ids, IndexProgressor_NodeValueClient client)
 {
     this._ids    = ids;
     this._client = client;
 }
コード例 #9
0
 public override PrimitiveLongResourceIterator Augment(PrimitiveLongResourceIterator source)
 {
     return(DiffApplyingPrimitiveLongIterator.Augment(source, _added, _removed));
 }
コード例 #10
0
 public PrimitiveLongBaseResourceIteratorAnonymousInnerClass(QueryResultComparingIndexReader outerInstance, PrimitiveLongResourceIterator mainResult, NodeValueIterator otherResult) : base(mainResult)
 {
     this.outerInstance = outerInstance;
     this._mainResult   = mainResult;
     this._otherResult  = otherResult;
 }