org.apache.lens.server.stats.store.log
Class PartitionEvent

java.lang.Object
  extended by org.apache.lens.server.api.events.LensEvent
      extended by org.apache.lens.server.stats.store.log.PartitionEvent

public class PartitionEvent
extends LensEvent

Event class which encapsulates the partition information.


Constructor Summary
PartitionEvent(String eventName, Map<String,String> partMap, String className)
          Instantiates a new partition event.
 
Method Summary
 String getEventId()
           
 String getEventName()
          Gets the statistics event for which partition event was raised
 Map<String,String> getPartMap()
          Gets the partition map with location of log files to partition key.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PartitionEvent

public PartitionEvent(String eventName,
                      Map<String,String> partMap,
                      String className)
Instantiates a new partition event.

Parameters:
eventName - the event name
partMap - the part map
className - the class name
Method Detail

getEventName

public String getEventName()
Gets the statistics event for which partition event was raised

Returns:
name of the event class.

getPartMap

public Map<String,String> getPartMap()
Gets the partition map with location of log files to partition key.

Returns:
partition map with partition name to log file location.

getEventId

public String getEventId()
Specified by:
getEventId in class LensEvent


Copyright © 2014–2015 Apache Software Foundation. All rights reserved.