Class DomainDefinition

java.lang.Object
org.impulsegraph.builder.api.DomainDefinition

public final class DomainDefinition extends Object
Definition of a Node Domain within the Impulse graph schema. Represents an independent dense ID space (0 .. cardinality - 1).
  • Method Details

    • builder

      public static DomainDefinition.Builder builder(long cardinality)
    • getCardinality

      public long getCardinality()
      Returns the exact physical node count in this domain (not a capacity bound).
    • getIdWidth

      public PrimitiveWidth getIdWidth()
      Returns the primitive integer width for node IDs in this domain.
    • hasPrimaryKeyIndex

      public boolean hasPrimaryKeyIndex()
      Returns true if a primary key reverse lookup index (String/UUID -> Dense ID) is materialized.
    • getPrimaryKeyAttribute

      public String getPrimaryKeyAttribute()
      Returns the name of the attribute serving as the primary key, or null if none.
    • getAttributes

      public Map<String, AttributeDataSource> getAttributes()
      Returns an immutable map of attribute names to their chunked data sources.