Example #1
0
        public override BoundedIterable <long> NewAllEntriesReader()
        {
//JAVA TO C# CONVERTER TODO TASK: Method reference arbitrary object instance method syntax is not converted by Java to C# Converter:
            IEnumerable <BoundedIterable <long> > entries = InstanceSelector.transform(IndexAccessor::newAllEntriesReader);

            return(new BoundedIterableAnonymousInnerClass(this, entries));
        }
Example #2
0
        public override IDictionary <string, Value> IndexConfig()
        {
            IDictionary <string, Value> indexConfig = new Dictionary <string, Value>();

//JAVA TO C# CONVERTER TODO TASK: Method reference arbitrary object instance method syntax is not converted by Java to C# Converter:
            InstanceSelector.transform(IndexAccessor::indexConfig).forEach(source => IndexConfigProvider.putAllNoOverwrite(indexConfig, source));
            return(indexConfig);
        }
Example #3
0
        public override InternalIndexState GetInitialState(StoreIndexDescriptor descriptor)
        {
            IEnumerable <InternalIndexState> statesIterable = _providers.transform(p => p.getInitialState(descriptor));
            IList <InternalIndexState>       states         = Iterables.asList(statesIterable);

            if (states.Contains(FAILED))
            {
                // One of the state is FAILED, the whole state must be considered FAILED
                return(FAILED);
            }
            if (states.Contains(POPULATING))
            {
                // No state is FAILED and one of the state is POPULATING, the whole state must be considered POPULATING
                return(POPULATING);
            }
            // This means that all parts are ONLINE
            return(InternalIndexState.ONLINE);
        }
Example #4
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)
        {
//JAVA TO C# CONVERTER TODO TASK: Method reference arbitrary object instance method syntax is not converted by Java to C# Converter:
            IndexSlot slot = SlotSelector.selectSlot(predicates, IndexQuery::valueGroup);

            return(slot != null?InstanceSelector.select(slot).query(predicates) : concat(InstanceSelector.transform(reader => reader.query(predicates))));
        }
Example #5
0
        public override IndexSampler CreateSampler()
        {
//JAVA TO C# CONVERTER TODO TASK: Method reference arbitrary object instance method syntax is not converted by Java to C# Converter:
            return(new FusionIndexSampler(InstanceSelector.transform(IndexReader::createSampler)));
        }
Example #6
0
        public override ResourceIterator <File> SnapshotFiles()
        {
//JAVA TO C# CONVERTER TODO TASK: Method reference arbitrary object instance method syntax is not converted by Java to C# Converter:
            return(concatResourceIterators(InstanceSelector.transform(IndexAccessor::snapshotFiles).GetEnumerator()));
        }
Example #7
0
        public override IndexSample SampleResult()
        {
//JAVA TO C# CONVERTER TODO TASK: Method reference arbitrary object instance method syntax is not converted by Java to C# Converter:
            return(combineSamples(InstanceSelector.transform(IndexPopulator::sampleResult)));
        }