Class NeighborProviderIndex

java.lang.Object
software.amazon.smithy.model.knowledge.NeighborProviderIndex
All Implemented Interfaces:
KnowledgeIndex

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

    • NeighborProviderIndex

      public NeighborProviderIndex(Model model)
  • Method Details

    • of

      public static NeighborProviderIndex of(Model model)
    • 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.