Class Event.CloseEvent

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

@Public public static class Event.CloseEvent extends Event
Sent when a file is closed after append or create.
  • Constructor Details

    • CloseEvent

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

    • getPath

      public String getPath()
    • getFileSize

      public long getFileSize()
      The size of the closed file in bytes. May be -1 if the size is not available (e.g. in the case of a close generated by a concat operation).
    • 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