提交 7a3aacda 编写于 作者: S Serge Rider

Table stats display enhancement

上级 dee87b34
......@@ -33,6 +33,7 @@ import org.jkiss.dbeaver.model.meta.Property;
import org.jkiss.dbeaver.model.runtime.DBRProgressMonitor;
import org.jkiss.dbeaver.model.struct.DBSObject;
import org.jkiss.dbeaver.model.struct.DBSObjectLazy;
import org.jkiss.utils.ByteNumberFormat;
import org.jkiss.utils.CommonUtils;
import java.sql.ResultSet;
......@@ -141,7 +142,7 @@ public class OracleTablespace extends OracleGlobalObject implements DBPRefreshab
return name;
}
@Property(viewable = true, order = 4)
@Property(viewable = true, order = 4, formatter = ByteNumberFormat.class)
public Long getAvailableSize(DBRProgressMonitor monitor) throws DBException {
if (availableSize == null) {
loadSizes(monitor);
......@@ -149,7 +150,7 @@ public class OracleTablespace extends OracleGlobalObject implements DBPRefreshab
return availableSize;
}
@Property(viewable = true, order = 5)
@Property(viewable = true, order = 5, formatter = ByteNumberFormat.class)
public Long getUsedSize(DBRProgressMonitor monitor) throws DBException {
if (usedSize == null) {
loadSizes(monitor);
......@@ -157,7 +158,7 @@ public class OracleTablespace extends OracleGlobalObject implements DBPRefreshab
return usedSize;
}
@Property(viewable = true, editable = true, order = 22)
@Property(viewable = true, editable = true, order = 22, formatter = ByteNumberFormat.class)
public long getBlockSize()
{
return blockSize;
......
......@@ -33,6 +33,7 @@ import org.jkiss.dbeaver.model.meta.Property;
import org.jkiss.dbeaver.model.runtime.DBRProgressMonitor;
import org.jkiss.dbeaver.model.struct.DBSDataContainer;
import org.jkiss.dbeaver.model.struct.DBSEntity;
import org.jkiss.utils.ByteNumberFormat;
import java.sql.ResultSet;
import java.sql.SQLException;
......@@ -110,7 +111,7 @@ public abstract class PostgreTableReal extends PostgreTableBase
return rowCount;
}
@Property(category = CAT_STATISTICS, viewable = false, order = 24)
@Property(category = CAT_STATISTICS, viewable = false, order = 24, formatter = ByteNumberFormat.class)
public Long getDiskSpace(DBRProgressMonitor monitor)
{
readTableStats(monitor);
......@@ -118,7 +119,7 @@ public abstract class PostgreTableReal extends PostgreTableBase
return diskSpace;
}
@Property(category = CAT_STATISTICS, viewable = false, order = 25)
@Property(category = CAT_STATISTICS, viewable = false, order = 25, formatter = ByteNumberFormat.class)
public long getRelationSize(DBRProgressMonitor monitor) {
readTableStats(monitor);
return tableRelSize;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册