Class MockSchemaFile

  • All Implemented Interfaces:
    ISchemaFile

    public class MockSchemaFile
    extends java.lang.Object
    implements ISchemaFile
    • Constructor Detail

      • MockSchemaFile

        public MockSchemaFile​(org.apache.iotdb.commons.path.PartialPath storageGroupPath)
    • Method Detail

      • init

        public IMNode init()
        Description copied from interface: ISchemaFile
        Get the storage group node, with its segment address of 0.
        Specified by:
        init in interface ISchemaFile
        Returns:
        node instance, template name as hash code
      • updateStorageGroupNode

        public boolean updateStorageGroupNode​(IStorageGroupMNode sgNode)
                                       throws java.io.IOException
        Description copied from interface: ISchemaFile
        Modify header of schema file corresponding to the storage group node synchronously
        Specified by:
        updateStorageGroupNode in interface ISchemaFile
        Parameters:
        sgNode - node to be updated
        Returns:
        true if success
        Throws:
        java.io.IOException
      • writeMNode

        public void writeMNode​(IMNode parent)
        Description copied from interface: ISchemaFile
        Only storage group node along with its descendents could be flushed into schema file.
        Specified by:
        writeMNode in interface ISchemaFile