if (_selectedBufferCount < 0)
loadBuffers();
if (row >= _selectedBufferCount)
return "";
final BufferInfo bufferInfo = _buffers[row];
switch (column) {
case 0:
return Integer.toString(bufferInfo.getPoolIndex());
case 1:
return Long.toString(bufferInfo.getPageAddress());
case 2:
if (bufferInfo.getStatusName().indexOf('v') != -1 && bufferInfo.getPageAddress() == 0)
return "Base";
else
return bufferInfo.getTypeName();
case 3:
return bufferInfo.getStatusName();
case 4:
final String threadName = bufferInfo.getWriterThreadName();
return threadName == null ? "" : threadName;
case 5:
return Integer.toString(bufferInfo.getAvailableBytes());
case 6:
return Long.toString(bufferInfo.getRightSiblingAddress());
default:
return "?";
}
}