Package apoc.meta
Class MetaConfig
java.lang.Object
apoc.meta.MetaConfig
-
Constructor Summary
ConstructorsConstructorDescriptionMetaConfig(Map<String, Object> config) MetaConfig(Map<String, Object> config, Boolean shouldSampleByDefault) A map of values, with the following keys and meanings. -
Method Summary
-
Constructor Details
-
MetaConfig
A map of values, with the following keys and meanings. - includeLabels: a list of strings, which are allowlisted node labels. If this list is specified **only these labels** will be examined. - includeRels: a list of strings, which are allowlisted rel types. If this list is specified, **only these reltypes** will be examined. - excludeLabels: a list of strings, which are node labels. This works like a denylist: if listed here, the thing won't be considered. Everything else (subject to the allowlist) will be. - excludeRels: a list of strings, which are relationship types. This works like a denylist: if listed here, the thing won't be considered. Everything else (subject to the allowlist) will be. - sample: a long number, i.e. "1 in (SAMPLE)". If set to 1000 this means that every 1000th node will be examined. It does **not** mean that a total of 1000 nodes will be sampled. - maxRels: the maximum number of relationships to look at per Node Label. -
MetaConfig
-
-
Method Details
-
getIncludeLabels
-
getIncludeRels
-
getExcludeLabels
-
getExcludeRels
-
getSample
public long getSample() -
getMaxRels
public long getMaxRels() -
getSampleMetaConfig
-
matches
public boolean matches(org.neo4j.graphdb.Label l) - Parameters:
l-- Returns:
- true if the label matches the mask expressed by this object, false otherwise.
-
matches
- Parameters:
labels-- Returns:
- true if any of the labels matches the mask expressed by this object, false otherwise.
-
matches
public boolean matches(org.neo4j.graphdb.Relationship r) - Parameters:
r-- Returns:
- true if the relationship matches the mask expressed by this object, false otherwise.
-
matches
public boolean matches(org.neo4j.graphdb.RelationshipType rt) - Parameters:
rt-- Returns:
- true if the relationship type matches the mask expressed by this object, false otherwise.
-
isAddRelationshipsBetweenNodes
public boolean isAddRelationshipsBetweenNodes()
-