Interface IDiskSchemaManager

  • All Known Implementing Classes:
    AppendOnlyDiskSchemaManager

    public interface IDiskSchemaManager
    This class manages IO of id table's schema entry
    • Method Detail

      • serialize

        long serialize​(DiskSchemaEntry schemaEntry)
        serialize a disk schema entry
        Parameters:
        schemaEntry - disk schema entry
        Returns:
        disk position of that entry
      • recover

        void recover​(IDTable idTable)
        recover id table from log file
        Parameters:
        idTable - id table need to be recovered
      • getAllSchemaEntry

        java.util.Collection<DiskSchemaEntry> getAllSchemaEntry()
                                                         throws java.io.IOException
        get all disk schema entries from file
        Returns:
        collection of all disk schema entires
        Throws:
        java.io.IOException
      • getDiskSchemaEntriesByOffset

        java.util.List<DiskSchemaEntry> getDiskSchemaEntriesByOffset​(java.util.List<java.lang.Long> offsets)
        get DiskSchemaEntries from disk file
        Parameters:
        offsets - the offset of each record on the disk file
        Returns:
        DiskSchemaEntries
      • deleteDiskSchemaEntryByOffset

        void deleteDiskSchemaEntryByOffset​(long offset)
                                    throws org.apache.iotdb.commons.exception.MetadataException
        delete DiskSchemaEntries on disk
        Parameters:
        offset - the offset of a record on the disk file
        Throws:
        org.apache.iotdb.commons.exception.MetadataException
      • close

        void close()
            throws java.io.IOException
        close file and free resource
        Throws:
        java.io.IOException