Class PageCreationArgs

java.lang.Object
org.apache.derby.impl.store.raw.data.PageCreationArgs

class PageCreationArgs extends Object
This class holds information that is passed to CachedPage.createPage() and used when a page object (either a StoredPage or an AllocPage) is created.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) final int
    Size of the container information stored in the AllocPage.
    (package private) final int
    Tells which type of page to create.
    (package private) final int
    Minimum space to reserve for record portion length of row.
    (package private) final int
    The size of the page in bytes.
    (package private) final int
    % of page to keep free for updates.
    (package private) final int
    Tells whether writes to this page should be synced.
  • Constructor Summary

    Constructors
    Constructor
    Description
    PageCreationArgs(int formatId, int syncFlag, int pageSize, int spareSpace, int minimumRecordSize, int containerInfoSize)
     
  • Method Summary

    Methods inherited from class java.lang.Object

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

    • formatId

      final int formatId
      Tells which type of page to create. Either StoredPage.FORMAT_NUMBER or AllocPage.FORMAT_NUMBER.
    • syncFlag

      final int syncFlag
      Tells whether writes to this page should be synced. Should be CachedPage.WRITE_SYNC or CachedPage.WRITE_NO_SYNC, or 0 if the page is in a temporary container.
    • pageSize

      final int pageSize
      The size of the page in bytes.
    • spareSpace

      final int spareSpace
      % of page to keep free for updates. Not used for AllocPage.
    • minimumRecordSize

      final int minimumRecordSize
      Minimum space to reserve for record portion length of row.
    • containerInfoSize

      final int containerInfoSize
      Size of the container information stored in the AllocPage.
  • Constructor Details

    • PageCreationArgs

      PageCreationArgs(int formatId, int syncFlag, int pageSize, int spareSpace, int minimumRecordSize, int containerInfoSize)