Class DefaultSnapshotBuilder
java.lang.Object
org.impulsegraph.storage.csr.DefaultSnapshotBuilder
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]static byte[][]computeCscBytes(int nodeCount, int edgeCount, MemorySegment csrRowOffsets, MemorySegment csrColumnTargets) static MemorySegment[]computeCscSegments(Arena arena, int nodeCount, int edgeCount, MemorySegment csrRowOffsets, MemorySegment csrColumnTargets) withCoo(boolean include) withCsc(boolean include) withDomain(int domainId, String name, byte keyType, long nodeCount) withDomain(int domainId, String name, byte keyType, long nodeCount, int keyAttrIndex) withDomain(int domainId, String name, byte keyType, long nodeCount, int keyAttrIndex, List<DefaultSnapshotBuilder.DomainAttributeEntry> attributes) withDomainAttribute(int domainId, String name, byte typeCode, byte[] data) withDomainAttribute(int domainId, String name, byte typeCode, int dimension, byte[] data, byte[] offsets, byte[] validity) withDomainAttribute(String domainName, String name, byte typeCode, byte[] data) withDomainKey(String domainName, String key, long denseId) withDomainKeyAttribute(int domainId, String name, byte keyType, List<String> keys) withDomainKeys(String domainName, List<String> keys) withDomainStringAttribute(int domainId, String name, List<String> values) withMetadata(String key, String value) withRelationDomain(String relName, int srcDomainId, int tgtDomainId) withVersion(short version) static byte[]writeSnapshotBytes(GraphSnapshot graph)
-
Constructor Details
-
DefaultSnapshotBuilder
public DefaultSnapshotBuilder()
-
-
Method Details
-
writeSnapshotBytes
-
withVersion
-
withDomain
-
withDomain
public DefaultSnapshotBuilder withDomain(int domainId, String name, byte keyType, long nodeCount, int keyAttrIndex) -
withDomain
public DefaultSnapshotBuilder withDomain(int domainId, String name, byte keyType, long nodeCount, int keyAttrIndex, List<DefaultSnapshotBuilder.DomainAttributeEntry> attributes) -
withDomainAttribute
public DefaultSnapshotBuilder withDomainAttribute(int domainId, String name, byte typeCode, byte[] data) -
withDomainAttribute
public DefaultSnapshotBuilder withDomainAttribute(String domainName, String name, byte typeCode, byte[] data) -
withDomainAttribute
public DefaultSnapshotBuilder withDomainAttribute(int domainId, String name, byte typeCode, int dimension, byte[] data, byte[] offsets, byte[] validity) -
withDomainStringAttribute
public DefaultSnapshotBuilder withDomainStringAttribute(int domainId, String name, List<String> values) -
withDomainKeyAttribute
public DefaultSnapshotBuilder withDomainKeyAttribute(int domainId, String name, byte keyType, List<String> keys) -
withRelationDomain
-
withDomainKey
-
withDomainKeys
-
withMetadata
-
withCsc
-
withCoo
-
computeCscSegments
public static MemorySegment[] computeCscSegments(Arena arena, int nodeCount, int edgeCount, MemorySegment csrRowOffsets, MemorySegment csrColumnTargets) -
computeCscBytes
public static byte[][] computeCscBytes(int nodeCount, int edgeCount, MemorySegment csrRowOffsets, MemorySegment csrColumnTargets) -
build
-