//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: private void exactMatchOnAllValues(java.util.List<org.neo4j.values.storable.Value> values) throws org.neo4j.internal.kernel.api.exceptions.schema.IndexNotApplicableKernelException
        private void ExactMatchOnAllValues(IList <Value> values)
        {
            using (IndexReader indexReader = _accessor.newReader())
            {
                SimpleNodeValueClient client = new SimpleNodeValueClient();
                foreach (Value value in values)
                {
                    IndexQuery.ExactPredicate exact = IndexQuery.exact(_descriptor.schema().PropertyId, value);
                    indexReader.Query(client, IndexOrder.NONE, true, exact);

                    // then
                    assertTrue(client.Next());
                    assertEquals(value, client.Values[0]);
                    assertFalse(client.Next());
                }
            }
        }
示例#2
0
//JAVA TO C# CONVERTER WARNING: Java wildcard generics have no direct equivalent in .NET:
//ORIGINAL LINE: private org.neo4j.kernel.api.index.IndexEntryUpdate<?> add(long nodeId, Object value)
        private IndexEntryUpdate <object> Add(long nodeId, object value)
        {
            return(IndexQueryHelper.add(nodeId, _index.schema(), value));
        }