public enum ConsumeOrder extends Enum<ConsumeOrder>
ConsumeOrder
defines the orders to continuously consume stream source.Enum Constant and Description |
---|
CREATE_TIME_ORDER
create-time compare partition/file creation time, this is not the partition create time in
Hive metaStore, but the folder/file create time in filesystem.
|
PARTITION_TIME_ORDER
partition-time compare time represented by partition name.
|
Modifier and Type | Method and Description |
---|---|
static ConsumeOrder |
getConsumeOrder(String consumeOrderStr)
Get
ConsumeOrder from consume order string. |
String |
toString() |
static ConsumeOrder |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConsumeOrder[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConsumeOrder CREATE_TIME_ORDER
public static final ConsumeOrder PARTITION_TIME_ORDER
public static ConsumeOrder[] values()
for (ConsumeOrder c : ConsumeOrder.values()) System.out.println(c);
public static ConsumeOrder 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 String toString()
toString
in class Enum<ConsumeOrder>
public static ConsumeOrder getConsumeOrder(String consumeOrderStr)
ConsumeOrder
from consume order string.Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.