public void add(CachedObject object) { int size = object.getRealSize(cache.rowOut); size = cache.rowOut.getStorageSize(size); object.setStorageSize(size); cache.add(object); }
public void add(CachedObject object) throws IOException { int size = object.getRealSize(rowOut); size = ((size + cachedRowPadding - 1) / cachedRowPadding) * cachedRowPadding; object.setStorageSize(size); int i = setFilePos(object); cache.put(i, object); // for text tables if (storeOnInsert) { saveRow(object); } }