@InterfaceAudience.Public public static class Event.TruncateEvent extends Event
Event.AppendEvent, Event.CloseEvent, Event.CreateEvent, Event.MetadataUpdateEvent, Event.RenameEvent, Event.TruncateEvent, Event.UnlinkEvent
Constructor and Description |
---|
Event.TruncateEvent(String path,
long fileSize,
long timestamp) |
Modifier and Type | Method and Description |
---|---|
long |
getFileSize()
The size of the truncated file in bytes.
|
String |
getPath() |
long |
getTimestamp()
The time when this event occurred, in milliseconds since the epoch.
|
String |
toString() |
getEventType
public Event.TruncateEvent(String path, long fileSize, long timestamp)
public long getFileSize()
public long getTimestamp()
Copyright © 2015 Apache Software Foundation. All rights reserved.