org.apache.lens.cube.metadata
Enum UpdatePeriod
java.lang.Object
java.lang.Enum<UpdatePeriod>
org.apache.lens.cube.metadata.UpdatePeriod
- All Implemented Interfaces:
- Serializable, Comparable<UpdatePeriod>, Named
public enum UpdatePeriod
- extends Enum<UpdatePeriod>
- implements Named
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
MIN_INTERVAL
public static final long MIN_INTERVAL
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.