Class Event.TruncateEvent

java.lang.Object
org.apache.hadoop.hdfs.inotify.Event
org.apache.hadoop.hdfs.inotify.Event.TruncateEvent
Enclosing class:
Event

@Public public static class Event.TruncateEvent extends Event
Sent when a file is truncated.
  • Constructor Details

    • TruncateEvent

      public TruncateEvent(String path, long fileSize, long timestamp)
  • Method Details

    • getPath

      public String getPath()
    • getFileSize

      public long getFileSize()
      The size of the truncated file in bytes.
    • getTimestamp

      public long getTimestamp()
      The time when this event occurred, in milliseconds since the epoch.
    • toString

      @Unstable public String toString()
      Overrides:
      toString in class Object