Interface IWritableLocalTableLocation
- All Superinterfaces:
DeephavenFormatTableLocation,com.fishlib.base.log.LogOutputAppendable,NamedImplementation,TableLocation,TableLocationKey,TableLocationState
- All Known Implementing Classes:
WritableLocalTableLocation
An interface to expose WritableLocalTableLocation for mocking during testing.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.illumon.iris.db.v2.locations.TableLocation
TableLocation.Format, TableLocation.ListenerNested classes/interfaces inherited from interface com.illumon.iris.db.v2.locations.TableLocationKey
TableLocationKey.ComparatorImpl, TableLocationKey.KeyedObjectKeyImpl<VALUE_TYPE>, TableLocationKey.SelfKeyedObjectKeyImpl<VALUE_TYPE extends TableLocationKey> -
Field Summary
Fields inherited from interface com.illumon.iris.db.v2.locations.TableLocationKey
COMPARATOR, NULL_PARTITIONFields inherited from interface com.illumon.iris.db.v2.locations.TableLocationState
NULL_SIZE, NULL_TIME, REMOVE_SIZE -
Method Summary
Modifier and TypeMethodDescriptionGet a name for the implementing class.voidgetWriterCheckpointRecordSnapshot(ByteArrayOutputStream snapshotOutput) booleanvoidrefresh()Initialize or refresh state information.voidtruncate()voidtruncate(CheckpointRecord.SourceFileSizeRecord sourceFileSizeRecord, CheckpointRecord.Flag flag, String... excludeFiles) voidvoidwriteCheckpointRecordSnapshot(ByteArrayOutputStream snapshotInput) Methods inherited from interface com.illumon.iris.db.v2.locations.DeephavenFormatTableLocation
getColumnVersion, getFormatMethods inherited from interface com.illumon.iris.db.v2.locations.TableLocation
append, as, clearColumnLocations, getColumnLocation, getColumnLocation, getDataIndex, getSortedColumns, getTableKey, getVisit, handleUpdate, hasDataIndexFor, subscribe, supportsSubscriptions, toGenericString, toStringDetailed, toStringHelper, unsubscribe, visitMethods inherited from interface com.illumon.iris.db.v2.locations.TableLocationKey
getColumnPartition, getInternalPartition, writeToMethods inherited from interface com.illumon.iris.db.v2.locations.TableLocationState
copyStateValuesTo, getLastModifiedTimeMillis, getSize, getSizeStr, getStateLock, writeStateValuesTo
-
Method Details
-
truncate
void truncate() -
truncate
void truncate(CheckpointRecord.SourceFileSizeRecord sourceFileSizeRecord, CheckpointRecord.Flag flag, String... excludeFiles) -
getImplementationName
String getImplementationName()Description copied from interface:NamedImplementationGet a name for the implementing class. Useful for abstract classes that implement
LogOutputAppendableor overridetoString.The default implementation is correct, but not suitable for high-frequency usage.
- Specified by:
getImplementationNamein interfaceNamedImplementation- Returns:
- A name for the implementing class
-
isWritable
boolean isWritable() -
refresh
void refresh()Description copied from interface:TableLocationInitialize or refresh state information.- Specified by:
refreshin interfaceTableLocation
-
getWriterCheckpointRecord
CheckpointRecord getWriterCheckpointRecord() -
resetWriterCheckpointRecord
CheckpointRecord resetWriterCheckpointRecord() -
getWriterCheckpointRecordSnapshot
-
writeCheckpointRecordSnapshot
-
writeCheckpointRecord
void writeCheckpointRecord() -
getDirectory
File getDirectory()
-