Class Deletion


  • public class Deletion
    extends Modification
    Deletion is a delete operation on a timeseries.
    • Constructor Detail

      • Deletion

        public Deletion​(org.apache.iotdb.commons.path.PartialPath path,
                        long fileOffset,
                        long endTime)
        constructor of Deletion, the start time is set to Long.MIN_VALUE
        Parameters:
        endTime - end time of delete interval
        path - time series path
      • Deletion

        public Deletion​(org.apache.iotdb.commons.path.PartialPath path,
                        long fileOffset,
                        long startTime,
                        long endTime)
        constructor of Deletion
        Parameters:
        startTime - start time of delete interval
        endTime - end time of delete interval
        path - time series path
    • Method Detail

      • getStartTime

        public long getStartTime()
      • setStartTime

        public void setStartTime​(long timestamp)
      • getEndTime

        public long getEndTime()
      • setEndTime

        public void setEndTime​(long timestamp)
      • serializeWithoutFileOffset

        public long serializeWithoutFileOffset​(java.io.DataOutputStream stream)
                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • deserializeWithoutFileOffset

        public static Deletion deserializeWithoutFileOffset​(java.io.DataInputStream stream)
                                                     throws java.io.IOException,
                                                            org.apache.iotdb.commons.exception.IllegalPathException
        Throws:
        java.io.IOException
        org.apache.iotdb.commons.exception.IllegalPathException
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class Modification
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object