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 privateMRawDiagnosticTable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TObjectgetCellContents(int column, int record_index)Returns the contents of the given cell in this table.DataTableDefgetDataTableDef()Returns the DataTableDef object that describes the logical topology of the columns in this table.intphysicalRecordCount()Returns the number of physical records in the table.java.lang.StringrecordMiscInformation(int record_index)Returns any misc information regarding this row as a human readable string.intrecordSize(int record_index)The number of bytes the record takes up on the underlying media.intrecordState(int record_index)Returns the state of the given record index.
-
-
-
Method Detail
-
physicalRecordCount
public int physicalRecordCount()
Description copied from interface:RawDiagnosticTableReturns the number of physical records in the table. This includes records that are uncommitted, deleted, committed removed and committed added.- Specified by:
physicalRecordCountin interfaceRawDiagnosticTable
-
getDataTableDef
public DataTableDef getDataTableDef()
Description copied from interface:RawDiagnosticTableReturns the DataTableDef object that describes the logical topology of the columns in this table.- Specified by:
getDataTableDefin interfaceRawDiagnosticTable
-
recordState
public int recordState(int record_index)
Description copied from interface:RawDiagnosticTableReturns 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:
recordStatein interfaceRawDiagnosticTable
-
recordSize
public int recordSize(int record_index)
Description copied from interface:RawDiagnosticTableThe number of bytes the record takes up on the underlying media.- Specified by:
recordSizein interfaceRawDiagnosticTable
-
getCellContents
public TObject getCellContents(int column, int record_index)
Description copied from interface:RawDiagnosticTableReturns 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:
getCellContentsin interfaceRawDiagnosticTable
-
recordMiscInformation
public java.lang.String recordMiscInformation(int record_index)
Description copied from interface:RawDiagnosticTableReturns 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:
recordMiscInformationin interfaceRawDiagnosticTable
-
-