Interface IWritableLocalTableLocation
- All Superinterfaces:
DeephavenFormatTableLocation<LocalColumnLocation>,com.fishlib.base.log.LogOutputAppendable,NamedImplementation,TableLocation<LocalColumnLocation>,TableLocationKey,TableLocationState
- All Known Implementing Classes:
WritableLocalTableLocation
public interface IWritableLocalTableLocation extends DeephavenFormatTableLocation<LocalColumnLocation>
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 -
Method Summary
Modifier and Type Method Description FilegetDirectory()StringgetImplementationName()Get a name for the implementing class.CheckpointRecordgetWriterCheckpointRecord()voidgetWriterCheckpointRecordSnapshot(ByteArrayOutputStream snapshotOutput)booleanisWritable()voidrefresh()Initialize or refresh state information.CheckpointRecordresetWriterCheckpointRecord()voidtruncate()voidtruncate(CheckpointRecord.SourceFileSizeRecord sourceFileSizeRecord, CheckpointRecord.Flag flag, String... excludeFiles)voidwriteCheckpointRecord()voidwriteCheckpointRecordSnapshot(ByteArrayOutputStream snapshotInput)Methods inherited from interface com.illumon.iris.db.v2.locations.DeephavenFormatTableLocation
getFormatMethods inherited from interface com.illumon.iris.db.v2.locations.TableLocation
append, getColumnLocation, getColumnVersion, getDataIndex, getSortedColumns, getTableKey, hasDataIndexFor, subscribe, supportsSubscriptions, toGenericString, toStringDetailed, toStringHelper, unsubscribeMethods 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, 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<LocalColumnLocation>
-
getWriterCheckpointRecord
CheckpointRecord getWriterCheckpointRecord() -
resetWriterCheckpointRecord
CheckpointRecord resetWriterCheckpointRecord() -
getWriterCheckpointRecordSnapshot
-
writeCheckpointRecordSnapshot
-
writeCheckpointRecord
void writeCheckpointRecord() -
getDirectory
File getDirectory()
-