}
public LevelDBConfig(File dataRoot, long dataCacheSizeInBytes, long indexCacheSizeInBytes) {
this.dataRoot = dataRoot;
if (dataCacheSizeInBytes > 0L) {
dataCacheSize = new DataAmount(dataCacheSizeInBytes);
}
if (indexCacheSizeInBytes > 0L) {
indexCacheSize = new DataAmount(indexCacheSizeInBytes);
}
}