Package org.apache.calcite.model
Enum ModelHandler.ExtraOperand
- java.lang.Object
-
- java.lang.Enum<ModelHandler.ExtraOperand>
-
- org.apache.calcite.model.ModelHandler.ExtraOperand
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ModelHandler.ExtraOperand>
- Enclosing class:
- ModelHandler
public static enum ModelHandler.ExtraOperand extends java.lang.Enum<ModelHandler.ExtraOperand>
Extra operands automatically injected into aJsonCustomSchema.operand
, as extra context for the adapter.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BASE_DIRECTORY
Base directory from which to read files.MODEL_URI
URI of model, e.g.TABLES
Tables defined in this schema.
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
camelName
-
Constructor Summary
Constructors Modifier Constructor Description private
ExtraOperand(java.lang.String camelName)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ModelHandler.ExtraOperand
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ModelHandler.ExtraOperand[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MODEL_URI
public static final ModelHandler.ExtraOperand MODEL_URI
URI of model, e.g. "target/test-classes/model.json", "http://localhost/foo/bar.json", "inline:{...}", "target/test-classes/model.yaml", "http://localhost/foo/bar.yaml", "inline:..."
-
BASE_DIRECTORY
public static final ModelHandler.ExtraOperand BASE_DIRECTORY
Base directory from which to read files.
-
TABLES
public static final ModelHandler.ExtraOperand TABLES
Tables defined in this schema.
-
-
Method Detail
-
values
public static ModelHandler.ExtraOperand[] 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 (ModelHandler.ExtraOperand c : ModelHandler.ExtraOperand.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ModelHandler.ExtraOperand valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-