Class Address

java.lang.Object
org.grp1.model.Address

public class Address extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) int
    The index inside blocks in a disk
    (package private) int
    The offset of a record inside a block
  • Constructor Summary

    Constructors
    Constructor
    Description
    Address(int blockIndex, int offset)
    The constructor of the address
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    The function to return the block index
    int
    The function to return the record offset inside of a block

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • blockIndex

      int blockIndex
      The index inside blocks in a disk
    • offset

      int offset
      The offset of a record inside a block
  • Constructor Details

    • Address

      public Address(int blockIndex, int offset)
      The constructor of the address
      Parameters:
      blockIndex -
      offset -
  • Method Details

    • getBlockIndex

      public int getBlockIndex()
      The function to return the block index
      Returns:
      The block index
    • getOffset

      public int getOffset()
      The function to return the record offset inside of a block
      Returns:
      The record offset