org.apache.lens.cube.metadata
Enum UpdatePeriod

java.lang.Object
  extended by java.lang.Enum<UpdatePeriod>
      extended by org.apache.lens.cube.metadata.UpdatePeriod
All Implemented Interfaces:
Serializable, Comparable<UpdatePeriod>, Named

public enum UpdatePeriod
extends Enum<UpdatePeriod>
implements Named


Nested Class Summary
static class UpdatePeriod.UpdatePeriodComparator
           
 
Enum Constant Summary
DAILY
           
HOURLY
           
MINUTELY
           
MONTHLY
           
QUARTERLY
           
SECONDLY
           
WEEKLY
           
YEARLY
           
 
Field Summary
static long MIN_INTERVAL
           
 
Method Summary
 int calendarField()
           
 DateFormat format()
           
 String formatStr()
           
 String getName()
           
 long monthWeight(Date date)
           
static UpdatePeriod valueOf(String name)
          Returns the enum constant of this type with the specified name.
static UpdatePeriod[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 long weight()
           
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SECONDLY

public static final UpdatePeriod SECONDLY

MINUTELY

public static final UpdatePeriod MINUTELY

HOURLY

public static final UpdatePeriod HOURLY

DAILY

public static final UpdatePeriod DAILY

WEEKLY

public static final UpdatePeriod WEEKLY

MONTHLY

public static final UpdatePeriod MONTHLY

QUARTERLY

public static final UpdatePeriod QUARTERLY

YEARLY

public static final UpdatePeriod YEARLY
Field Detail

MIN_INTERVAL

public static final long MIN_INTERVAL
Method Detail

values

public static UpdatePeriod[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (UpdatePeriod c : UpdatePeriod.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static UpdatePeriod valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

calendarField

public int calendarField()

weight

public long weight()

monthWeight

public long monthWeight(Date date)

format

public DateFormat format()

formatStr

public String formatStr()

getName

public String getName()
Specified by:
getName in interface Named


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