Class MockRelationSnapshot
java.lang.Object
org.impulsegraph.vm.MockRelationSnapshot
- All Implemented Interfaces:
RelationSnapshot
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionMockRelationSnapshot(Arena arena, int nodeCount, long edgeCount, int[] offsets, int[] targets) -
Method Summary
Modifier and TypeMethodDescriptionvoidcopyInTargetsSimd(int nodeId, ImpulseBitSet frontier) voidcopyTargetsSimd(int nodeId, ImpulseBitSet frontier) voidcopyTargetsSimdFilteredFloat(int nodeId, MemorySegment attrSegment, float threshold, byte cmpOp, ImpulseBitSet outBs) intintgetDegree(int nodeId) longbyteintgetInDegree(int nodeId) intbytebyteintgetTargetAt(int nodeId, int index) int[]getTargets(int nodeId) booleanhasCsc()booleanhasCsr()longreadEdgeIndex(MemorySegment segment, long nodeId) intreadNodeId(MemorySegment segment, long index) intreadSrcNodeId(MemorySegment segment, long index) voidsetCsc(MemorySegment cscRowOffsets, MemorySegment cscColTargets) voidsetCscSegments(MemorySegment rowOffsets, MemorySegment colTargets) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface RelationSnapshot
getInTargets, getRelationId, getSrcDomainId, getTgtDomainId, isVirtual
-
Constructor Details
-
MockRelationSnapshot
public MockRelationSnapshot(Arena arena, int nodeCount, long edgeCount, int[] offsets, int[] targets)
-
-
Method Details
-
setCsc
-
getEdgeCount
public long getEdgeCount()- Specified by:
getEdgeCountin interfaceRelationSnapshot
-
getRowOffsetsSegment
- Specified by:
getRowOffsetsSegmentin interfaceRelationSnapshot
-
getColumnTargetsSegment
- Specified by:
getColumnTargetsSegmentin interfaceRelationSnapshot
-
getCscColumnTargetsSegment
- Specified by:
getCscColumnTargetsSegmentin interfaceRelationSnapshot
-
getCscRowOffsetsSegment
- Specified by:
getCscRowOffsetsSegmentin interfaceRelationSnapshot
-
hasCsc
public boolean hasCsc()- Specified by:
hasCscin interfaceRelationSnapshot
-
hasCsr
public boolean hasCsr()- Specified by:
hasCsrin interfaceRelationSnapshot
-
getNodeCount
public int getNodeCount()- Specified by:
getNodeCountin interfaceRelationSnapshot
-
getCscNodeCount
public int getCscNodeCount()- Specified by:
getCscNodeCountin interfaceRelationSnapshot
-
getDegree
public int getDegree(int nodeId) - Specified by:
getDegreein interfaceRelationSnapshot
-
getInDegree
public int getInDegree(int nodeId) - Specified by:
getInDegreein interfaceRelationSnapshot
-
getTargets
public int[] getTargets(int nodeId) - Specified by:
getTargetsin interfaceRelationSnapshot
-
getTargetAt
public int getTargetAt(int nodeId, int index) - Specified by:
getTargetAtin interfaceRelationSnapshot
-
copyTargetsSimd
- Specified by:
copyTargetsSimdin interfaceRelationSnapshot
-
copyInTargetsSimd
- Specified by:
copyInTargetsSimdin interfaceRelationSnapshot
-
copyTargetsSimdFilteredFloat
public void copyTargetsSimdFilteredFloat(int nodeId, MemorySegment attrSegment, float threshold, byte cmpOp, ImpulseBitSet outBs) - Specified by:
copyTargetsSimdFilteredFloatin interfaceRelationSnapshot
-
getAttributeSegments
- Specified by:
getAttributeSegmentsin interfaceRelationSnapshot
-
setCscSegments
- Specified by:
setCscSegmentsin interfaceRelationSnapshot
-
getStatistics
- Specified by:
getStatisticsin interfaceRelationSnapshot
-
readEdgeIndex
- Specified by:
readEdgeIndexin interfaceRelationSnapshot
-
readNodeId
- Specified by:
readNodeIdin interfaceRelationSnapshot
-
readSrcNodeId
- Specified by:
readSrcNodeIdin interfaceRelationSnapshot
-
getSrcNodeIdWidth
public byte getSrcNodeIdWidth()- Specified by:
getSrcNodeIdWidthin interfaceRelationSnapshot
-
getNodeIdWidth
public byte getNodeIdWidth()- Specified by:
getNodeIdWidthin interfaceRelationSnapshot
-
getEdgeIndexWidth
public byte getEdgeIndexWidth()- Specified by:
getEdgeIndexWidthin interfaceRelationSnapshot
-