public enum DatePartitionType extends Enum<DatePartitionType>
partitioner.TimeBasedWriterPartitioner) and reading
(DatePartitionedAvroFileSource) date partitioned data.| Modifier and Type | Method and Description |
|---|---|
org.joda.time.DateTimeFieldType |
getDateTimeFieldType() |
String |
getDateTimePattern() |
int |
getField(org.joda.time.DateTime dateTime) |
static org.joda.time.DateTimeFieldType |
getLowestIntervalUnit(String pattern) |
long |
getUnitMilliseconds()
Get the number of milliseconds associated with a partition type.
|
static DatePartitionType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DatePartitionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DatePartitionType YEAR
public static final DatePartitionType MONTH
public static final DatePartitionType DAY
public static final DatePartitionType HOUR
public static final DatePartitionType MINUTE
public static DatePartitionType[] values()
for (DatePartitionType c : DatePartitionType.values()) System.out.println(c);
public static DatePartitionType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static org.joda.time.DateTimeFieldType getLowestIntervalUnit(String pattern)
pattern - full partitioning patternDateTimeFieldType.dayOfMonth()public long getUnitMilliseconds()
public org.joda.time.DateTimeFieldType getDateTimeFieldType()
public int getField(org.joda.time.DateTime dateTime)
public String getDateTimePattern()