Package com.kuzudb

Class InternalID

java.lang.Object
com.kuzudb.InternalID

public class InternalID extends Object
InternalID type which stores the table_id and offset of a node/rel.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    long
     
    long
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    InternalID(long tableId, long offset)
    Create an InternalID from the given table_id and offset.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Compares this InternalID to another object for equality.
    int
    Returns the hash code value for this InternalID.
    Returns a string representation of this InternalID.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • tableId

      public long tableId
    • offset

      public long offset
  • Constructor Details

    • InternalID

      public InternalID(long tableId, long offset)
      Create an InternalID from the given table_id and offset.
      Parameters:
      tableId - The table_id of the node/rel.
      offset - The offset of the node/rel.
  • Method Details

    • equals

      public boolean equals(Object obj)
      Compares this InternalID to another object for equality. Two InternalID objects are considered equal if their tableId and offset are the same.
      Overrides:
      equals in class Object
      Parameters:
      obj - The object to be compared for equality with this InternalID.
      Returns:
      true if the specified object is equal to this InternalID, false otherwise.
    • hashCode

      public int hashCode()
      Returns the hash code value for this InternalID. The hash code is generated using the tableId and offset fields to ensure that equal InternalID objects produce the same hash code.
      Overrides:
      hashCode in class Object
      Returns:
      The hash code value for this InternalID.
    • toString

      public String toString()
      Returns a string representation of this InternalID.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this InternalID.