Class CheckpointRecord.Reloadable
java.lang.Object
com.illumon.iris.db.v2.locations.TableLocationStateHolder
com.illumon.iris.db.v2.locations.local.CheckpointRecord
com.illumon.iris.db.v2.locations.local.CheckpointRecord.Reloadable
- All Implemented Interfaces:
com.fishlib.base.log.LogOutputAppendable,TableLocationState,NamedImplementation
- Enclosing class:
- CheckpointRecord
Extends CheckpointRecord so that the DataFileSizeRecords are reused when reloading the checkpoint file.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.illumon.iris.db.v2.locations.local.CheckpointRecord
CheckpointRecord.DataFileSizeRecord, CheckpointRecord.Flag, CheckpointRecord.MutableFileSizeRecord, CheckpointRecord.Reloadable, CheckpointRecord.SimpleFileSizeRecord, CheckpointRecord.SourceFileSizeRecord -
Field Summary
Fields inherited from class com.illumon.iris.db.v2.locations.local.CheckpointRecord
COLUMN_FORMAT_1_HEADERS, COLUMN_FORMAT_2_HEADERLESS, CURRENT_COLUMN_FORMAT, CURRENT_VERSION, dataFileSizeRecords, NEW_COLUMN_BYTE_ORDER, NULL_VERSION, VERSION_0_TABLE_LOCATION_SIZE_ONLY, VERSION_1_ATOMIC_STATE, VERSION_2_NULL_SIZE_ON_TRUNCATE, VERSION_3_TRUNCATE_MARKER, VERSION_4_GROUPING_TABLES, VERSION_5_DATA_INDEXFields inherited from interface com.illumon.iris.db.v2.locations.TableLocationState
NULL_SIZE, NULL_TIME, REMOVE_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidReplace any overridden DataFileSizeRecords with new mutable copies of the original records.Get a name for the implementing class.protected voidRead data file state fields in to this record from a DataInputStream.Methods inherited from class com.illumon.iris.db.v2.locations.local.CheckpointRecord
append, clear, clearDataRecords, clearFlags, getByteOrder, getColumnVersion, getDataFileSizeRecord, getDataIndexes, getFlags, getImportDetails, getImportState, getSortedColumns, getSourceFileSizeRecord, getTableLocationState, getVersion, hasColumnData, hasCurrentVersion, hasNullVersion, main, putDataFileSizeRecord, readRecordForConcurrentConsumers, readRecordForImporters, readRecordForSerialConsumers, readRecordForSerialConsumersWithDataRecords, setByteOrder, setColumnVersion, setDataIndexes, setFlags, setImportState, setSortedColumns, setSourceFileSizeRecord, setTableLocationState, setVersion, toString, writeRecordMethods inherited from class com.illumon.iris.db.v2.locations.TableLocationStateHolder
clearValues, getLastModifiedTimeMillis, getSize, getStateLock, readValuesFrom, setValuesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.illumon.iris.db.v2.locations.TableLocationState
copyStateValuesTo, getSizeStr, writeStateValuesTo
-
Constructor Details
-
Reloadable
public Reloadable()
-
-
Method Details
-
getImplementationName
Description copied from interface:NamedImplementationGet a name for the implementing class. Useful for abstract override
Object.toString().The default implementation is correct, but not suitable for high-frequency usage.
- Specified by:
getImplementationNamein interfaceNamedImplementation- Overrides:
getImplementationNamein classCheckpointRecord- Returns:
- A name for the implementing class
-
readDataFileState
Description copied from class:CheckpointRecordRead data file state fields in to this record from a DataInputStream.- Overrides:
readDataFileStatein classCheckpointRecord- Parameters:
in- The input stream- Throws:
IOException
-
clearDataFileSizeRecordOverrides
public void clearDataFileSizeRecordOverrides()Replace any overridden DataFileSizeRecords with new mutable copies of the original records. This allows removing references to any higher level column data structures that may have been released.
-