Class TsFileGenerator

java.lang.Object
org.apache.iotdb.it.utils.TsFileGenerator
All Implemented Interfaces:
AutoCloseable

public class TsFileGenerator extends Object implements AutoCloseable
  • Constructor Details

  • Method Details

    • resetRandom

      public void resetRandom()
    • resetRandom

      public void resetRandom(long seed)
    • registerTimeseries

      public void registerTimeseries(String path, List<org.apache.tsfile.write.schema.MeasurementSchema> measurementSchemaList)
    • registerAlignedTimeseries

      public void registerAlignedTimeseries(String path, List<org.apache.tsfile.write.schema.MeasurementSchema> measurementSchemaList) throws org.apache.tsfile.exception.write.WriteProcessException
      Throws:
      org.apache.tsfile.exception.write.WriteProcessException
    • generateData

      public void generateData(String device, int number, long timeGap, boolean isAligned) throws IOException, org.apache.tsfile.exception.write.WriteProcessException
      Throws:
      IOException
      org.apache.tsfile.exception.write.WriteProcessException
    • generateData

      public void generateData(String device, int number, long timeGap, boolean isAligned, long startTimestamp) throws IOException, org.apache.tsfile.exception.write.WriteProcessException
      Throws:
      IOException
      org.apache.tsfile.exception.write.WriteProcessException
    • generateDeletion

      public void generateDeletion(String device) throws IOException, IllegalPathException
      Throws:
      IOException
      IllegalPathException
    • generateDeletion

      public void generateDeletion(String device, org.apache.tsfile.write.schema.MeasurementSchema measurement) throws IOException, IllegalPathException
      Throws:
      IOException
      IllegalPathException
    • generateDeletion

      public void generateDeletion(String device, int number) throws IOException, IllegalPathException
      Throws:
      IOException
      IllegalPathException
    • getTotalNumber

      public long getTotalNumber()
    • close

      public void close() throws Exception
      Specified by:
      close in interface AutoCloseable
      Throws:
      Exception