Ejemplo n.º 1
0
 internal void Initialize(IndexOrder indexOrder)
 {
     this._indexOrder  = indexOrder == IndexOrder.DESCENDING ? 1 : -1;
     this._nextFromA   = -1;
     this._nextFromB   = -1;
     this._valuesFromA = null;
     this._valuesFromB = null;
 }
Ejemplo n.º 2
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)
        {
            if (indexOrder != IndexOrder.NONE)
            {
                throw new System.NotSupportedException(string.Format("This reader only have support for index order {0}. Provided index order was {1}.", IndexOrder.NONE, indexOrder));
            }
            client.Initialize(Descriptor, new NodeValueIndexProgressor(query(query), client), query, indexOrder, needsValues);
        }
Ejemplo n.º 3
0
 public override void Initialize(IndexDescriptor descriptor, IndexProgressor progressor, IndexQuery[] query, IndexOrder order, bool needsValues)
 {
     this.Descriptor          = descriptor;
     this.Progressor          = progressor;
     this.Query               = query;
     this.Order               = order;
     this.NeedsValuesConflict = needsValues;
 }
Ejemplo n.º 4
0
        protected internal override void ValidateQuery(IndexOrder indexOrder, IndexQuery[] predicates)
        {
            if (predicates.Length != 1)
            {
                throw new System.NotSupportedException();
            }

            CapabilityValidator.ValidateQuery(TemporalIndexProvider.Capability, indexOrder, predicates);
        }
Ejemplo n.º 5
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;
 }
Ejemplo n.º 6
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);
        }
Ejemplo n.º 7
0
 internal static void ValidateQuery(IndexCapability capability, IndexOrder indexOrder, IndexQuery[] predicates)
 {
     if (indexOrder != IndexOrder.NONE)
     {
         ValueCategory valueCategory   = predicates[0].ValueGroup().category();
         IndexOrder[]  orderCapability = capability.OrderCapability(valueCategory);
         if (!ArrayUtil.contains(orderCapability, indexOrder))
         {
             orderCapability = ArrayUtils.add(orderCapability, IndexOrder.NONE);
             throw new System.NotSupportedException(format("Tried to query index with unsupported order %s. Supported orders for query %s are %s.", indexOrder, Arrays.ToString(predicates), Arrays.ToString(orderCapability)));
         }
     }
 }
Ejemplo n.º 8
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public void query(org.neo4j.storageengine.api.schema.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(Org.Neo4j.Storageengine.Api.schema.IndexProgressor_NodeValueClient client, IndexOrder indexOrder, bool needsValues, params IndexQuery[] query)
        {
            @delegate.Query(client, indexOrder, needsValues, query);
        }
Ejemplo n.º 9
0
 public override void Initialize(IndexDescriptor descriptor, IndexProgressor progressor, IndexQuery[] query, IndexOrder indexOrder, bool needsValues)
 {
     this._progressor = progressor;
 }
Ejemplo n.º 10
0
            public void initialize(IndexDescriptor descriptor, IndexProgressor progressor, IndexQuery[] query, IndexOrder indexOrder, bool needsValues)
            {
                IndexProgressor wrappedProgressor = new IndexProgressorAnonymousInnerClass(this, progressor);

                _client.initialize(descriptor, wrappedProgressor, query, indexOrder, needsValues);
            }
Ejemplo n.º 11
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)
        {
        }
Ejemplo n.º 12
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public void query(org.neo4j.storageengine.api.schema.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(Org.Neo4j.Storageengine.Api.schema.IndexProgressor_NodeValueClient client, IndexOrder indexOrder, bool needsValues, params IndexQuery[] query)
        {
            throw new IndexNotApplicableKernelException("Fulltext indexes does not support IndexQuery queries");
        }