Package com.mckoi.database
Class MasterTableDataSource.MRawDiagnosticTable
- java.lang.Object
-
- com.mckoi.database.MasterTableDataSource.MRawDiagnosticTable
-
- All Implemented Interfaces:
RawDiagnosticTable
- Enclosing class:
- MasterTableDataSource
private final class MasterTableDataSource.MRawDiagnosticTable extends java.lang.Object implements RawDiagnosticTable
A RawDiagnosticTable implementation that provides direct access to the root data of this table source bypassing any indexing schemes. This interface allows for the inspection and repair of data files.
-
-
Field Summary
-
Fields inherited from interface com.mckoi.database.RawDiagnosticTable
COMMITTED_ADDED, COMMITTED_REMOVED, DELETED, RECORD_STATE_ERROR, UNCOMMITTED
-
-
Constructor Summary
Constructors Modifier Constructor Description private
MRawDiagnosticTable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TObject
getCellContents(int column, int record_index)
Returns the contents of the given cell in this table.DataTableDef
getDataTableDef()
Returns the DataTableDef object that describes the logical topology of the columns in this table.int
physicalRecordCount()
Returns the number of physical records in the table.java.lang.String
recordMiscInformation(int record_index)
Returns any misc information regarding this row as a human readable string.int
recordSize(int record_index)
The number of bytes the record takes up on the underlying media.int
recordState(int record_index)
Returns the state of the given record index.
-
-
-
Method Detail
-
physicalRecordCount
public int physicalRecordCount()
Description copied from interface:RawDiagnosticTable
Returns the number of physical records in the table. This includes records that are uncommitted, deleted, committed removed and committed added.- Specified by:
physicalRecordCount
in interfaceRawDiagnosticTable
-
getDataTableDef
public DataTableDef getDataTableDef()
Description copied from interface:RawDiagnosticTable
Returns the DataTableDef object that describes the logical topology of the columns in this table.- Specified by:
getDataTableDef
in interfaceRawDiagnosticTable
-
recordState
public int recordState(int record_index)
Description copied from interface:RawDiagnosticTable
Returns the state of the given record index. The state of a row is either UNCOMMITTED, COMMITTED ADDED, COMMITTED REMOVED or DELETED. record_index should be between 0 and physicalRecordCount.- Specified by:
recordState
in interfaceRawDiagnosticTable
-
recordSize
public int recordSize(int record_index)
Description copied from interface:RawDiagnosticTable
The number of bytes the record takes up on the underlying media.- Specified by:
recordSize
in interfaceRawDiagnosticTable
-
getCellContents
public TObject getCellContents(int column, int record_index)
Description copied from interface:RawDiagnosticTable
Returns the contents of the given cell in this table. If the system is unable to return a valid cell then an exception is thrown.- Specified by:
getCellContents
in interfaceRawDiagnosticTable
-
recordMiscInformation
public java.lang.String recordMiscInformation(int record_index)
Description copied from interface:RawDiagnosticTable
Returns any misc information regarding this row as a human readable string. May return null if there is no misc information associated with this record.- Specified by:
recordMiscInformation
in interfaceRawDiagnosticTable
-
-