--- /dev/null
+/*\r
+\r
+ Derby - Class org.apache.derby.impl.store.raw.data.PageCreationArgs\r
+\r
+ Licensed to the Apache Software Foundation (ASF) under one or more\r
+ contributor license agreements. See the NOTICE file distributed with\r
+ this work for additional information regarding copyright ownership.\r
+ The ASF licenses this file to you under the Apache License, Version 2.0\r
+ (the "License"); you may not use this file except in compliance with\r
+ the License. You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+ Unless required by applicable law or agreed to in writing, software\r
+ distributed under the License is distributed on an "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ See the License for the specific language governing permissions and\r
+ limitations under the License.\r
+\r
+ */\r
+\r
+package org.apache.derby.impl.store.raw.data;\r
+\r
+/**\r
+ * This class holds information that is passed to {@code\r
+ * CachedPage.createPage()} and used when a page object (either a\r
+ * {@code StoredPage} or an {@code AllocPage}) is created.\r
+ */\r
+class PageCreationArgs {\r
+ /**\r
+ * Tells which type of page to create. Either\r
+ * {@code StoredPage.FORMAT_NUMBER} or {@code AllocPage.FORMAT_NUMBER}.\r
+ */\r
+ final int formatId;\r
+\r
+ /**\r
+ * Tells whether writes to this page should be synced. Should be\r
+ * {@code CachedPage.WRITE_SYNC} or {@code CachedPage.WRITE_NO_SYNC}, or\r
+ * 0 if the page is in a temporary container.\r
+ */\r
+ final int syncFlag;\r
+\r
+ /** The size of the page in bytes. */\r
+ final int pageSize;\r
+\r
+ /** % of page to keep free for updates. Not used for {@code AllocPage}. */\r
+ final int spareSpace;\r
+\r
+ /** Minimum space to reserve for record portion length of row. */\r
+ final int minimumRecordSize;\r
+\r
+ /** Size of the container information stored in the {@code AllocPage}. */\r
+ final int containerInfoSize;\r
+\r
+ PageCreationArgs(int formatId, int syncFlag, int pageSize, int spareSpace,\r
+ int minimumRecordSize, int containerInfoSize) {\r
+ this.formatId = formatId;\r
+ this.syncFlag = syncFlag;\r
+ this.pageSize = pageSize;\r
+ this.spareSpace = spareSpace;\r
+ this.minimumRecordSize = minimumRecordSize;\r
+ this.containerInfoSize = containerInfoSize;\r
+ }\r
+}\r