1 21 22 package org.apache.derby.impl.store.raw.data; 23 24 import org.apache.derby.iapi.store.access.SpaceInfo; 25 32 33 public class SpaceInformation implements SpaceInfo 34 { 35 36 private long numAllocatedPages; 37 private long numFreePages; 38 private long numUnfilledPages; 39 private int pageSize; 40 41 public SpaceInformation( 42 long numAllocatedPages, 43 long numFreePages, 44 long numUnfilledPages) 45 { 46 this.numAllocatedPages = numAllocatedPages; 47 this.numFreePages = numFreePages; 48 this.numUnfilledPages = numUnfilledPages; 49 } 50 51 54 public long getNumAllocatedPages() 55 { 56 return numAllocatedPages; 57 } 58 59 62 public long getNumFreePages() 63 { 64 return numFreePages; 65 } 66 67 70 public long getNumUnfilledPages() 71 { 72 return numUnfilledPages; 73 } 74 75 78 public int getPageSize() 79 { 80 return pageSize; 81 } 82 83 86 public void setPageSize(int pageSize) 87 { 88 this.pageSize = pageSize; 89 } 90 } 91 | Popular Tags |