public Object getValueAt(int row, int column) { DataColumn columnObj = getColumnByIndex(column); return getValueAt(row, columnObj); }
public Object getValueAt(int row, int column) { DataColumn columnObj = getColumnByIndex(column); return getValueAt(row, columnObj); }
public Object getValueAt(int row, String columnId) { DataColumn columnObj = getColumnById(columnId); return getValueAt(row, columnObj); }
public Object getValueAt(int row, String columnId) { DataColumn columnObj = getColumnById(columnId); return getValueAt(row, columnObj); }
public long getEstimatedSize() { int nrows = getRowCount(); if (nrows == 0) return 0; List<DataColumn> columns = getColumns(); int ncells = nrows * columns.size(); int result = ncells * 4; for (int i = 0; i < columns.size(); i++) { Object firstRowValue = getValueAt(0, i); if (firstRowValue instanceof String) { for (int j = 0; j < nrows; j++) { String stringValue = (String) getValueAt(j, i); result += MemSizeEstimator.sizeOfString(stringValue); } } else { int singleValueSize = MemSizeEstimator.sizeOf(firstRowValue); result += nrows * singleValueSize; } } return result; } }
public long getEstimatedSize() { int nrows = getRowCount(); if (nrows == 0) return 0; List<DataColumn> columns = getColumns(); int ncells = nrows * columns.size(); int result = ncells * 4; for (int i = 0; i < columns.size(); i++) { Object firstRowValue = getValueAt(0, i); if (firstRowValue instanceof String) { for (int j = 0; j < nrows; j++) { String stringValue = (String) getValueAt(j, i); result += MemSizeEstimator.sizeOfString(stringValue); } } else { int singleValueSize = MemSizeEstimator.sizeOf(firstRowValue); result += nrows * singleValueSize; } } return result; } }