Class MLogWriter

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class MLogWriter
    extends java.lang.Object
    implements java.lang.AutoCloseable
    • Constructor Detail

      • MLogWriter

        public MLogWriter​(java.lang.String schemaDir,
                          java.lang.String logFileName)
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • MLogWriter

        public MLogWriter​(java.lang.String logFilePath)
                   throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.io.IOException
      • copyTo

        public void copyTo​(java.io.File targetFile)
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • putLog

        public void putLog​(PhysicalPlan plan)
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • createTimeseries

        public void createTimeseries​(CreateTimeSeriesPlan createTimeSeriesPlan)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • createAlignedTimeseries

        public void createAlignedTimeseries​(CreateAlignedTimeSeriesPlan createAlignedTimeSeriesPlan)
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • deleteTimeseries

        public void deleteTimeseries​(DeleteTimeSeriesPlan deleteTimeSeriesPlan)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • setStorageGroup

        public void setStorageGroup​(org.apache.iotdb.commons.path.PartialPath storageGroup)
                             throws java.io.IOException
        Throws:
        java.io.IOException
      • deleteStorageGroup

        public void deleteStorageGroup​(org.apache.iotdb.commons.path.PartialPath storageGroup)
                                throws java.io.IOException
        Throws:
        java.io.IOException
      • setTTL

        public void setTTL​(org.apache.iotdb.commons.path.PartialPath storageGroup,
                           long ttl)
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • changeOffset

        public void changeOffset​(org.apache.iotdb.commons.path.PartialPath path,
                                 long offset)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • changeAlias

        public void changeAlias​(org.apache.iotdb.commons.path.PartialPath path,
                                java.lang.String alias)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • createSchemaTemplate

        public void createSchemaTemplate​(CreateTemplatePlan plan)
                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • appendSchemaTemplate

        public void appendSchemaTemplate​(AppendTemplatePlan plan)
                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • pruneSchemaTemplate

        public void pruneSchemaTemplate​(PruneTemplatePlan plan)
                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • setSchemaTemplate

        public void setSchemaTemplate​(SetTemplatePlan plan)
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • unsetSchemaTemplate

        public void unsetSchemaTemplate​(UnsetTemplatePlan plan)
                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • dropSchemaTemplate

        public void dropSchemaTemplate​(DropTemplatePlan plan)
                                throws java.io.IOException
        Throws:
        java.io.IOException
      • autoCreateDeviceMNode

        public void autoCreateDeviceMNode​(AutoCreateDeviceMNodePlan plan)
                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • serializeMNode

        public void serializeMNode​(IMNode node)
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • serializeMeasurementMNode

        public void serializeMeasurementMNode​(IMeasurementMNode node)
                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • serializeStorageGroupMNode

        public void serializeStorageGroupMNode​(IStorageGroupMNode node)
                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • setUsingSchemaTemplate

        public void setUsingSchemaTemplate​(org.apache.iotdb.commons.path.PartialPath path)
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • clear

        public void clear()
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • getLogNum

        public int getLogNum()
      • setLogNum

        public void setLogNum​(int number)
        only used for initialize a mlog file writer.
      • force

        public void force()
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • convertFromString

        public static PhysicalPlan convertFromString​(java.lang.String str)