Ejemplo n.º 1
0
 /**
  * @return The number of bytes contained in this database as a function of the number of records
  */
 protected final long numBytes() {
   return myLogic.getNumBytes(numRecords);
 }
Ejemplo n.º 2
0
 public final long requiredMemory(long numRecords) {
   return myLogic.getNumBytes(numRecords);
 }
Ejemplo n.º 3
0
 /**
  * @param numRecords The number of records which need to be stored
  * @return The number of bytes required to store numRecords records
  */
 public final long getNumBytes(long numRecords) {
   return myLogic.getNumBytes(numRecords);
 }
Ejemplo n.º 4
0
 public void prepareWriteRecordRange(DatabaseHandle dh, long recordIndex, long numRecords)
     throws IOException {
   prepareWriteRange(dh, myLogic.getByteIndex(recordIndex), myLogic.getNumBytes(numRecords));
 }