public static enum GenericUDAFEvaluator.Mode extends Enum<GenericUDAFEvaluator.Mode>
Enum Constant and Description |
---|
COMPLETE
COMPLETE: from original data directly to full aggregation: iterate() and
terminate() will be called.
|
FINAL
FINAL: from partial aggregation to full aggregation: merge() and
terminate() will be called.
|
PARTIAL1
PARTIAL1: from original data to partial aggregation data: iterate() and
terminatePartial() will be called.
|
PARTIAL2
PARTIAL2: from partial aggregation data to partial aggregation data:
merge() and terminatePartial() will be called.
|
Modifier and Type | Method and Description |
---|---|
static GenericUDAFEvaluator.Mode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GenericUDAFEvaluator.Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GenericUDAFEvaluator.Mode PARTIAL1
public static final GenericUDAFEvaluator.Mode PARTIAL2
public static final GenericUDAFEvaluator.Mode FINAL
public static final GenericUDAFEvaluator.Mode COMPLETE
public static GenericUDAFEvaluator.Mode[] values()
for (GenericUDAFEvaluator.Mode c : GenericUDAFEvaluator.Mode.values()) System.out.println(c);
public static GenericUDAFEvaluator.Mode 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 nullCopyright © 2017 The Apache Software Foundation. All rights reserved.