Interface EnhNodeFinder

All Known Implementing Classes:
EnhNodeFinder.ByPredicate, EnhNodeFinder.ByType, EnhNodeFinder.ByTypes
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface EnhNodeFinder
A class-helper to perform the preliminary resource search in a model. Subsequently, the search result Stream will be filtered by the EnhNodeFilter instance. Used as a component in default factory and CompositeEnhNodeFactoryImpl implementations
  • Field Details

  • Method Details

    • iterator

      org.apache.jena.util.iterator.ExtendedIterator<org.apache.jena.graph.Node> iterator(org.apache.jena.enhanced.EnhGraph eg)
      Returns an iterator over the nodes in the given model, which satisfy some criterion, specific to this EnhNodeFinder. It is expected that the result does not contain duplicates.
      Parameters:
      eg - EnhGraph, model
      Returns:
      ExtendedIterator of Nodes
    • find

      default Stream<org.apache.jena.graph.Node> find(org.apache.jena.enhanced.EnhGraph eg)
      Lists the nodes from the specified model by the encapsulated criterion.
      Parameters:
      eg - EnhGraph, model
      Returns:
      Stream of Nodes
    • restrict

      default EnhNodeFinder restrict(EnhNodeFilter filter)