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.Listener
Nested 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_PARTITION
Fields 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.void
getWriterCheckpointRecordSnapshot
(ByteArrayOutputStream snapshotOutput) boolean
void
refresh()
Initialize or refresh state information.void
truncate()
void
truncate
(CheckpointRecord.SourceFileSizeRecord sourceFileSizeRecord, CheckpointRecord.Flag flag, String... excludeFiles) void
void
writeCheckpointRecordSnapshot
(ByteArrayOutputStream snapshotInput) Methods inherited from interface com.illumon.iris.db.v2.locations.DeephavenFormatTableLocation
getColumnVersion, getFormat
Methods 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, visit
Methods inherited from interface com.illumon.iris.db.v2.locations.TableLocationKey
getColumnPartition, getInternalPartition, writeTo
Methods 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:NamedImplementation
Get a name for the implementing class. Useful for abstract classes that implement
LogOutputAppendable
or overridetoString
.The default implementation is correct, but not suitable for high-frequency usage.
- Specified by:
getImplementationName
in interfaceNamedImplementation
- Returns:
- A name for the implementing class
-
isWritable
boolean isWritable() -
refresh
void refresh()Description copied from interface:TableLocation
Initialize or refresh state information.- Specified by:
refresh
in interfaceTableLocation
-
getWriterCheckpointRecord
CheckpointRecord getWriterCheckpointRecord() -
resetWriterCheckpointRecord
CheckpointRecord resetWriterCheckpointRecord() -
getWriterCheckpointRecordSnapshot
-
writeCheckpointRecordSnapshot
-
writeCheckpointRecord
void writeCheckpointRecord() -
getDirectory
File getDirectory()
-