提交 1db91147 authored 作者: Thomas Mueller's avatar Thomas Mueller

Formatting

上级 3effa5c1
......@@ -137,7 +137,12 @@ abstract class ScriptBase extends Prepared implements DataHandler {
// always use a big buffer, otherwise end-of-block is written a lot
out = new BufferedOutputStream(out, Constants.IO_BUFFER_SIZE_COMPRESS);
} else {
OutputStream o = FileUtils.newOutputStream(file, false);
OutputStream o;
try {
o = FileUtils.newOutputStream(file, false);
} catch (IOException e) {
throw DbException.convertIOException(e, null);
}
out = new BufferedOutputStream(o, Constants.IO_BUFFER_SIZE);
out = CompressTool.wrapOutputStream(out, compressionAlgorithm, SCRIPT_SQL);
}
......
......@@ -157,7 +157,9 @@ public interface Index extends SchemaObject {
long getRowCountApproximation();
/**
* @return the estimated number of bytes of disk space used by this page and all child pages.
* Get the used disk space for this index.
*
* @return the estimated number of bytes
*/
long getDiskSpaceUsed();
......
......@@ -89,7 +89,9 @@ abstract class PageData extends Page {
abstract void setRowCountStored(int rowCount);
/**
* @return the estimated number of bytes of disk space used by this page and all child pages.
* Get the used disk space for this index.
*
* @return the estimated number of bytes
*/
abstract long getDiskSpaceUsed();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论