protected void initParams ( Database database , String baseFileName ) { fileName = baseFileName + ".data.tmp" ; this . database = database ; fa = FileUtil . getDefaultInstance ( ) ; int cacheSizeScale = 10 ; cacheFileScale = 8 ; Error . printSystemOut ( "cache_size_scale: " + cacheSizeScale ) ; maxCacheSize = 2048 ; int avgRowBytes = 1 << cacheSizeScale ; maxCacheBytes = maxCacheSize * avgRowBytes ; maxDataFileSize = ( long ) Integer . MAX_VALUE * 4 ; dataFile = null ; }
Initial external parameters are set here . The size if fixed .