Interface IWritableLocalTableLocation

All Superinterfaces:
DeephavenFormatTableLocation, com.fishlib.base.log.LogOutputAppendable, NamedImplementation, TableLocation, TableLocationKey, TableLocationState
All Known Implementing Classes:
WritableLocalTableLocation

public interface IWritableLocalTableLocation extends DeephavenFormatTableLocation
An interface to expose WritableLocalTableLocation for mocking during testing.
  • 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 override toString.

      The default implementation is correct, but not suitable for high-frequency usage.

      Specified by:
      getImplementationName in interface NamedImplementation
      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 interface TableLocation
    • getWriterCheckpointRecord

      CheckpointRecord getWriterCheckpointRecord()
    • resetWriterCheckpointRecord

      CheckpointRecord resetWriterCheckpointRecord()
    • getWriterCheckpointRecordSnapshot

      void getWriterCheckpointRecordSnapshot(@NotNull ByteArrayOutputStream snapshotOutput)
    • writeCheckpointRecordSnapshot

      void writeCheckpointRecordSnapshot(@NotNull ByteArrayOutputStream snapshotInput)
    • writeCheckpointRecord

      void writeCheckpointRecord()
    • getDirectory

      File getDirectory()