Class NeighborProviderIndex

  • All Implemented Interfaces:
    KnowledgeIndex

    public final class NeighborProviderIndex
    extends java.lang.Object
    implements KnowledgeIndex
    Provides a cache of precomputed neighbors for models.
    • Constructor Detail

      • NeighborProviderIndex

        public NeighborProviderIndex​(Model model)
    • Method Detail

      • getProvider

        public NeighborProvider getProvider()
        Gets the precomputed neighbor provider.
        Returns:
        Returns the provider.
      • getProviderWithTraitRelationships

        public NeighborProvider getProviderWithTraitRelationships()
        Gets the neighbor provider that includes trait relationships.
        Returns:
        Returns the provider.
      • getReverseProvider

        public NeighborProvider getReverseProvider()
        Gets a reversed, bottom up neighbor provider.
        Returns:
        Returns the reversed neighbor provider.
      • getReverseProviderWithTraitRelationships

        public NeighborProvider getReverseProviderWithTraitRelationships()
        Gets a reversed, bottom up neighbor provider that includes reverse traits.
        Returns:
        Returns the reversed neighbor provider with reverse traits.