Package org.grp1.model
Class Address
java.lang.Object
org.grp1.model.Address
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) intThe index inside blocks in a disk(package private) intThe offset of a record inside a block -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintThe function to return the block indexintThe function to return the record offset inside of a block
-
Field Details
-
blockIndex
int blockIndexThe index inside blocks in a disk -
offset
int offsetThe 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
-