Class InMemorySearchResolvingContext
java.lang.Object
ai.stapi.graphoperations.graphLoader.inmemory.InMemorySearchResolvingContext
- All Implemented Interfaces:
ResolvedQueryPart,SearchResolvingContext
public class InMemorySearchResolvingContext
extends Object
implements SearchResolvingContext, ResolvedQueryPart
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface -
Constructor Summary
ConstructorsConstructorDescriptionInMemorySearchResolvingContext(Stream<ai.stapi.graph.traversableGraphElements.TraversableGraphElement> graphElements, ai.stapi.graph.inMemoryGraph.InMemoryGraphRepository contextGraph, PositiveGraphDescription lastDescription) -
Method Summary
Modifier and TypeMethodDescriptionvoidai.stapi.graph.inMemoryGraph.InMemoryGraphRepositoryList<ai.stapi.graph.traversableGraphElements.TraversableGraphElement><U extends Comparable<? super U>>
InMemorySearchResolvingContextsetAscSort(Function<ai.stapi.graph.traversableGraphElements.TraversableGraphElement, ? extends U> keyExtractor) <U extends Comparable<? super U>>
InMemorySearchResolvingContextsetDescSort(Function<ai.stapi.graph.traversableGraphElements.TraversableGraphElement, ? extends U> keyExtractor)
-
Constructor Details
-
InMemorySearchResolvingContext
public InMemorySearchResolvingContext(Stream<ai.stapi.graph.traversableGraphElements.TraversableGraphElement> graphElements, ai.stapi.graph.inMemoryGraph.InMemoryGraphRepository contextGraph, PositiveGraphDescription lastDescription)
-
-
Method Details
-
setSearchOption
public InMemorySearchResolvingContext setSearchOption(InMemorySearchResolvingContext.SearchOptionSetter setter) -
setAscSort
public <U extends Comparable<? super U>> InMemorySearchResolvingContext setAscSort(Function<ai.stapi.graph.traversableGraphElements.TraversableGraphElement, ? extends U> keyExtractor) -
setDescSort
public <U extends Comparable<? super U>> InMemorySearchResolvingContext setDescSort(Function<ai.stapi.graph.traversableGraphElements.TraversableGraphElement, ? extends U> keyExtractor) -
applySort
public void applySort() -
getGraphElements
-
getContextGraph
public ai.stapi.graph.inMemoryGraph.InMemoryGraphRepository getContextGraph() -
getLastDescription
-