Class DataPool
java.lang.Object
org.eclipse.aether.internal.impl.collect.DataPool
Internal helper class for collector implementations.
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Flag controlling interning data pool type used by dependency collector for Artifact instances, matters for heap consumption.static final String
Flag controlling interning data pool type used by dependency collector for Dependency instances, matters for heap consumption.static final String
Flag controlling interning data pool type used by dependency lists collector for ArtifactDescriptor (POM) instances, matters for heap consumption.static final String
Flag controlling interning data pool type used by dependency collector for ArtifactDescriptor (POM) instances, matters for heap consumption.static final String
Flag controlling interning artifact descriptor dependencies.static final String
Flag controlling interning artifact descriptor managed dependencies.static final String
static final String
static final ArtifactDescriptorResult
static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetChildren
(Object key) getConstraint
(Object key, VersionRangeRequest request) getDescriptor
(DataPool.DescriptorKey key, ArtifactDescriptorRequest request) intern
(Dependency dependency) void
putChildren
(Object key, List<DependencyNode> children) void
putConstraint
(Object key, VersionRangeResult result) void
void
putDescriptor
(DataPool.DescriptorKey key, ArtifactDescriptorResult result) toKey
(Artifact artifact, List<RemoteRepository> repositories, DependencySelector selector, DependencyManager manager, DependencyTraverser traverser, VersionFilter filter) toKey
(ArtifactDescriptorRequest request) toKey
(VersionRangeRequest request)
-
Field Details
-
CONFIG_PROPS_PREFIX
- See Also:
-
CONFIG_PROP_COLLECTOR_POOL_ARTIFACT
Flag controlling interning data pool type used by dependency collector for Artifact instances, matters for heap consumption. By default, uses “weak” references (consume less heap). Using “hard” will make it much more memory aggressive and possibly faster (system and Java dependent). Supported values: "hard", "weak".- Since:
- 1.9.5
- See Also:
- Sourced from:
RepositorySystemSession.getConfigProperties()
- Value type:
String
- Default value:
WEAK
-
CONFIG_PROP_COLLECTOR_POOL_DEPENDENCY
Flag controlling interning data pool type used by dependency collector for Dependency instances, matters for heap consumption. By default, uses “weak” references (consume less heap). Using “hard” will make it much more memory aggressive and possibly faster (system and Java dependent). Supported values: "hard", "weak".- Since:
- 1.9.5
- See Also:
- Sourced from:
RepositorySystemSession.getConfigProperties()
- Value type:
String
- Default value:
WEAK
-
CONFIG_PROP_COLLECTOR_POOL_DESCRIPTOR
Flag controlling interning data pool type used by dependency collector for ArtifactDescriptor (POM) instances, matters for heap consumption. By default, uses “weak” references (consume less heap). Using “hard” will make it much more memory aggressive and possibly faster (system and Java dependent). Supported values: "hard", "weak".- Since:
- 1.9.5
- See Also:
- Sourced from:
RepositorySystemSession.getConfigProperties()
- Value type:
String
- Default value:
HARD
-
CONFIG_PROP_COLLECTOR_POOL_DEPENDENCY_LISTS
Flag controlling interning data pool type used by dependency lists collector for ArtifactDescriptor (POM) instances, matters for heap consumption. By default, uses “weak” references (consume less heap). Using “hard” will make it much more memory aggressive and possibly faster (system and Java dependent). Supported values: "hard", "weak".- Since:
- 1.9.22
- See Also:
- Sourced from:
RepositorySystemSession.getConfigProperties()
- Value type:
String
- Default value:
HARD
-
CONFIG_PROP_COLLECTOR_POOL_INTERN_ARTIFACT_DESCRIPTOR_DEPENDENCIES
Flag controlling interning artifact descriptor dependencies.- Since:
- 1.9.22
- See Also:
- Sourced from:
RepositorySystemSession.getConfigProperties()
- Value type:
Boolean
- Default value:
- false
-
CONFIG_PROP_COLLECTOR_POOL_INTERN_ARTIFACT_DESCRIPTOR_MANAGED_DEPENDENCIES
public static final String CONFIG_PROP_COLLECTOR_POOL_INTERN_ARTIFACT_DESCRIPTOR_MANAGED_DEPENDENCIESFlag controlling interning artifact descriptor managed dependencies.- Since:
- 1.9.22
- See Also:
- Sourced from:
RepositorySystemSession.getConfigProperties()
- Value type:
Boolean
- Default value:
- true
-
NO_DESCRIPTOR
-
HARD
- See Also:
-
WEAK
- See Also:
-
-
Constructor Details
-
DataPool
-
-
Method Details
-
intern
-
intern
-
toKey
-
getDescriptor
public ArtifactDescriptorResult getDescriptor(DataPool.DescriptorKey key, ArtifactDescriptorRequest request) -
putDescriptor
-
putDescriptor
-
toKey
-
getConstraint
-
putConstraint
-
toKey
public Object toKey(Artifact artifact, List<RemoteRepository> repositories, DependencySelector selector, DependencyManager manager, DependencyTraverser traverser, VersionFilter filter) -
getChildren
-
putChildren
-