Class BinarySnapshotLoader.LoadedDomain
java.lang.Object
org.impulsegraph.storage.csr.BinarySnapshotLoader.LoadedDomain
- Enclosing class:
BinarySnapshotLoader
-
Constructor Summary
ConstructorsConstructorDescriptionLoadedDomain(int domainId, String name, byte keyType) LoadedDomain(int domainId, String name, byte keyType, long nodeCount) LoadedDomain(int domainId, String name, byte keyType, long nodeCount, int keyAttrIndex, List<BinarySnapshotLoader.LoadedAttribute> attributes) LoadedDomain(int domainId, String name, byte keyType, long nodeCount, int keyAttrIndex, List<BinarySnapshotLoader.LoadedAttribute> attributes, List<MemorySegment> attributeSegments, List<MemorySegment> validitySegments, List<MemorySegment> offsetsSegments) -
Method Summary
Modifier and TypeMethodDescriptionintintintdomainId()getAttribute(int index) getAttribute(String attrName) intgetAttributeIndex(String attrName) getAttributeSegment(int index) getAttributeSegment(String attrName) getOffsetsSegment(int index) getOffsetsSegment(String attrName) getValiditySegment(int index) getValiditySegment(String attrName) intbytekeyType()name()longlongresolveDenseId(String key) Resolves dense node ID (0 ..resolveKey(long denseId) Resolves external business key string for the given dense ID via §5.1 O(1) array lookup.
-
Constructor Details
-
LoadedDomain
-
LoadedDomain
-
LoadedDomain
public LoadedDomain(int domainId, String name, byte keyType, long nodeCount, int keyAttrIndex, List<BinarySnapshotLoader.LoadedAttribute> attributes) -
LoadedDomain
public LoadedDomain(int domainId, String name, byte keyType, long nodeCount, int keyAttrIndex, List<BinarySnapshotLoader.LoadedAttribute> attributes, List<MemorySegment> attributeSegments, List<MemorySegment> validitySegments, List<MemorySegment> offsetsSegments)
-
-
Method Details
-
domainId
public int domainId() -
name
-
keyType
public byte keyType() -
nodeCount
public long nodeCount() -
attrCount
public int attrCount() -
attributeCount
public int attributeCount() -
keyAttrIndex
public int keyAttrIndex() -
attributes
-
attributeSegments
-
validitySegments
-
offsetsSegments
-
getAttribute
-
getAttribute
-
getAttributeIndex
-
getAttributeSegment
-
getAttributeSegment
-
getValiditySegment
-
getValiditySegment
-
getOffsetsSegment
-
getOffsetsSegment
-
getKeyAttribute
-
resolveKey
Resolves external business key string for the given dense ID via §5.1 O(1) array lookup. -
resolveDenseId
Resolves dense node ID (0 .. N_d - 1) for the given external business key string.
-