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
All Methods Static Methods Instance Methods Concrete Methods 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.static NeighborProviderIndex
of(Model model)
-
-
-
Constructor Detail
-
NeighborProviderIndex
public NeighborProviderIndex(Model model)
-
-
Method Detail
-
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.
-
-