Class PageCreationArgs
java.lang.Object
org.apache.derby.impl.store.raw.data.PageCreationArgs
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
FieldsModifier and TypeFieldDescription(package private) final int
Size of the container information stored in theAllocPage
.(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
ConstructorsConstructorDescriptionPageCreationArgs
(int formatId, int syncFlag, int pageSize, int spareSpace, int minimumRecordSize, int containerInfoSize) -
Method Summary
-
Field Details
-
formatId
final int formatIdTells which type of page to create. EitherStoredPage.FORMAT_NUMBER
orAllocPage.FORMAT_NUMBER
. -
syncFlag
final int syncFlagTells whether writes to this page should be synced. Should beCachedPage.WRITE_SYNC
orCachedPage.WRITE_NO_SYNC
, or 0 if the page is in a temporary container. -
pageSize
final int pageSizeThe size of the page in bytes. -
spareSpace
final int spareSpace% of page to keep free for updates. Not used forAllocPage
. -
minimumRecordSize
final int minimumRecordSizeMinimum space to reserve for record portion length of row. -
containerInfoSize
final int containerInfoSizeSize of the container information stored in theAllocPage
.
-
-
Constructor Details
-
PageCreationArgs
PageCreationArgs(int formatId, int syncFlag, int pageSize, int spareSpace, int minimumRecordSize, int containerInfoSize)
-