Exemplo n.º 1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public static java.util.List<long> getAllNodes(org.apache.lucene.store.Directory directory, org.neo4j.values.storable.Value propertyValue) throws java.io.IOException
        public static IList <long> GetAllNodes(Directory directory, Value propertyValue)
        {
            using (SearcherManager manager = new SearcherManager(directory, new SearcherFactory()))
            {
                IndexSearcher     searcher  = manager.acquire();
                Query             query     = LuceneDocumentStructure.NewSeekQuery(propertyValue);
                AllNodesCollector collector = new AllNodesCollector();
                searcher.search(query, collector);
                return(collector._nodeIds);
            }
        }
Exemplo n.º 2
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: private java.util.List<long> getAllNodes(org.neo4j.kernel.api.impl.index.storage.PartitionedIndexStorage indexStorage, String propertyValue) throws java.io.IOException
        private IList <long> GetAllNodes(PartitionedIndexStorage indexStorage, string propertyValue)
        {
            return(AllNodesCollector.GetAllNodes(indexStorage.OpenDirectory(indexStorage.GetPartitionFolder(1)), Values.stringValue(propertyValue)));
        }