private static String getFileName(int tableId, int objectId) { if (SysProperties.CHECK && tableId == 0 && objectId == 0) { DbException.throwInternalError("0 LOB"); } String table = tableId < 0 ? ".temp" : ".t" + tableId; return getFileNamePrefix(getDatabasePath(), objectId) + table + Constants.SUFFIX_LOB_FILE; }
private FileOutputStream initLarge() { this.tableId = 0; this.linked = false; this.precision = 0; this.small = null; String path = getDatabasePath(); objectId = getNewObjectId(); fileName = getFileNamePrefix(path, objectId) + Constants.SUFFIX_TEMP_FILE; FileOutputStream out; try { out = new FileOutputStream(fileName); } catch (FileNotFoundException e) { throw DbException.convert(e); } return out; }
int lobsPerDir = SysProperties.LOB_FILES_PER_DIRECTORY; while (true) { String dir = getFileNamePrefix(path, newId); String[] list = getFileList(dir); int fileCount = 0;