Interface RelationSnapshot

All Known Implementing Classes:
MockRelationSnapshot, RelationSnapshot

public interface RelationSnapshot
Read-only interface for a relation's physical memory layout.
  • Field Details

  • Method Details

    • getEdgeCount

      long getEdgeCount()
    • getRowOffsetsSegment

      MemorySegment getRowOffsetsSegment()
    • getColumnTargetsSegment

      MemorySegment getColumnTargetsSegment()
    • getCscColumnTargetsSegment

      MemorySegment getCscColumnTargetsSegment()
    • getCscRowOffsetsSegment

      MemorySegment getCscRowOffsetsSegment()
    • hasCsc

      boolean hasCsc()
    • hasCsr

      boolean hasCsr()
    • getNodeCount

      int getNodeCount()
    • getCscNodeCount

      default int getCscNodeCount()
    • getDegree

      int getDegree(int nodeId)
    • getInDegree

      int getInDegree(int nodeId)
    • getTargets

      int[] getTargets(int nodeId)
    • getTargetAt

      default int getTargetAt(int nodeId, int index)
    • getInTargets

      default int[] getInTargets(int nodeId)
    • getRelationId

      default int getRelationId()
    • getSrcDomainId

      default int getSrcDomainId()
    • getTgtDomainId

      default int getTgtDomainId()
    • isVirtual

      default boolean isVirtual()
    • copyTargetsSimd

      void copyTargetsSimd(int nodeId, ImpulseBitSet frontier)
    • copyInTargetsSimd

      void copyInTargetsSimd(int nodeId, ImpulseBitSet frontier)
    • copyTargetsSimdFilteredFloat

      void copyTargetsSimdFilteredFloat(int nodeId, MemorySegment attrSegment, float threshold, byte cmpOp, ImpulseBitSet outBs)
    • getAttributeSegments

      List<MemorySegment> getAttributeSegments()
    • setCscSegments

      void setCscSegments(MemorySegment rowOffsets, MemorySegment colTargets)
    • getStatistics

      RelationStatistics getStatistics()
    • readEdgeIndex

      long readEdgeIndex(MemorySegment segment, long nodeId)
    • readNodeId

      int readNodeId(MemorySegment segment, long index)
    • readSrcNodeId

      int readSrcNodeId(MemorySegment segment, long index)
    • getSrcNodeIdWidth

      byte getSrcNodeIdWidth()
    • getNodeIdWidth

      byte getNodeIdWidth()
    • getEdgeIndexWidth

      byte getEdgeIndexWidth()