Package io.trino.sql.planner.plan
Enum SampleNode.Type
- java.lang.Object
-
- java.lang.Enum<SampleNode.Type>
-
- io.trino.sql.planner.plan.SampleNode.Type
-
- All Implemented Interfaces:
Serializable,Comparable<SampleNode.Type>
- Enclosing class:
- SampleNode
public static enum SampleNode.Type extends Enum<SampleNode.Type>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SampleNode.TypefromType(SampledRelation.Type sampleType)static SampleNode.TypevalueOf(String name)Returns the enum constant of this type with the specified name.static SampleNode.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BERNOULLI
public static final SampleNode.Type BERNOULLI
-
SYSTEM
public static final SampleNode.Type SYSTEM
-
-
Method Detail
-
values
public static SampleNode.Type[] 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 (SampleNode.Type c : SampleNode.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SampleNode.Type 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 nameNullPointerException- if the argument is null
-
fromType
public static SampleNode.Type fromType(SampledRelation.Type sampleType)
-
-