Package apoc.meta

Class MetaConfig

java.lang.Object
apoc.meta.MetaConfig

public class MetaConfig extends Object
  • Constructor Details

    • MetaConfig

      public MetaConfig(Map<String,Object> config, Boolean shouldSampleByDefault)
      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

      public MetaConfig(Map<String,Object> config)
  • Method Details

    • getIncludeLabels

      public Set<String> getIncludeLabels()
    • getIncludeRels

      public Set<String> getIncludeRels()
    • getExcludeLabels

      public Set<String> getExcludeLabels()
    • getExcludeRels

      public Set<String> getExcludeRels()
    • getSample

      public long getSample()
    • getMaxRels

      public long getMaxRels()
    • getSampleMetaConfig

      public SampleMetaConfig 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

      public boolean matches(Iterable<org.neo4j.graphdb.Label> labels)
      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()