Class NeighborProviderIndex
- java.lang.Object
-
- software.amazon.smithy.model.knowledge.NeighborProviderIndex
-
- All Implemented Interfaces:
KnowledgeIndex
public final class NeighborProviderIndex extends java.lang.Object implements KnowledgeIndex
Provides a cache of precomputed neighbors for models.
-
-
Constructor Summary
Constructors Constructor Description NeighborProviderIndex(Model model)
-
Method Summary
Modifier and Type Method Description NeighborProvider
getProvider()
Gets the precomputed neighbor provider.NeighborProvider
getProviderWithTraitRelationships()
Gets the neighbor provider that includes trait relationships.NeighborProvider
getReverseProvider()
Gets a reversed, bottom up neighbor provider.NeighborProvider
getReverseProviderWithTraitRelationships()
Gets a reversed, bottom up neighbor provider that includes reverse traits.
-
-
-
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.
-
-