Class AppendOnlyDiskSchemaManager

  • All Implemented Interfaces:
    IDiskSchemaManager

    public class AppendOnlyDiskSchemaManager
    extends java.lang.Object
    implements IDiskSchemaManager
    store id table schema in append only file
    • Constructor Detail

      • AppendOnlyDiskSchemaManager

        public AppendOnlyDiskSchemaManager​(java.io.File dir)
    • Method Detail

      • getAllSchemaEntry

        public java.util.Collection<DiskSchemaEntry> getAllSchemaEntry()
                                                                throws java.io.IOException
        Description copied from interface: IDiskSchemaManager
        get all disk schema entries from file
        Specified by:
        getAllSchemaEntry in interface IDiskSchemaManager
        Returns:
        collection of all disk schema entires
        Throws:
        java.io.IOException
      • getDiskSchemaEntriesByOffset

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

        public void deleteDiskSchemaEntryByOffset​(long offset)
                                           throws org.apache.iotdb.commons.exception.MetadataException
        delete DiskSchemaEntry on disk
        Specified by:
        deleteDiskSchemaEntryByOffset in interface IDiskSchemaManager
        Parameters:
        offset - the offset of a record on the disk file
        Throws:
        org.apache.iotdb.commons.exception.MetadataException
      • close

        public void close()
                   throws java.io.IOException
        Description copied from interface: IDiskSchemaManager
        close file and free resource
        Specified by:
        close in interface IDiskSchemaManager
        Throws:
        java.io.IOException