Class MLogTxtWriter

  • All Implemented Interfaces:
    java.lang.AutoCloseable

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

      • MLogTxtWriter

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

        public MLogTxtWriter​(java.lang.String logFileName)
                      throws java.io.FileNotFoundException
        Throws:
        java.io.FileNotFoundException
    • Method Detail

      • close

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

        public void createTimeseries​(CreateTimeSeriesPlan plan,
                                     long offset)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • createAlignedTimeseries

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

        public void deleteTimeseries​(java.lang.String path)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • createContinuousQuery

        public void createContinuousQuery​(CreateContinuousQueryPlan plan)
                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • dropContinuousQuery

        public void dropContinuousQuery​(DropContinuousQueryPlan plan)
                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • setStorageGroup

        public void setStorageGroup​(java.lang.String storageGroup)
                             throws java.io.IOException
        Throws:
        java.io.IOException
      • deleteStorageGroup

        public void deleteStorageGroup​(java.lang.String storageGroup)
                                throws java.io.IOException
        Throws:
        java.io.IOException
      • setTTL

        public void setTTL​(java.lang.String storageGroup,
                           long ttl)
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • changeOffset

        public void changeOffset​(java.lang.String path,
                                 long offset)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • changeAlias

        public void changeAlias​(java.lang.String path,
                                java.lang.String alias)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • upgradeMLog

        public static void upgradeMLog​(java.lang.String schemaDir,
                                       java.lang.String logFileName)
                                throws java.io.IOException
        Throws:
        java.io.IOException
      • clear

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

        public void serializeMNode​(MNodePlan plan)
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • serializeMeasurementMNode

        public void serializeMeasurementMNode​(MeasurementMNodePlan plan)
                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • serializeStorageGroupMNode

        public void serializeStorageGroupMNode​(StorageGroupMNodePlan plan)
                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • setTemplate

        public void setTemplate​(SetTemplatePlan plan)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • unsetTemplate

        public void unsetTemplate​(UnsetTemplatePlan plan)
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • dropTemplate

        public void dropTemplate​(DropTemplatePlan plan)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • setUsingTemplate

        public void setUsingTemplate​(ActivateTemplatePlan plan)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • createSchemaTemplate

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

        public void appendTemplate​(AppendTemplatePlan plan)
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • pruneTemplate

        public void pruneTemplate​(PruneTemplatePlan plan)
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • autoCreateDeviceNode

        public void autoCreateDeviceNode​(java.lang.String Device)
                                  throws java.io.IOException
        Throws:
        java.io.IOException