Enum Class ChickenArtBuilder
java.lang.Object
java.lang.Enum<ChickenArtBuilder>
org.elasticsearch.xpack.esql.expression.function.scalar.string.ChickenArtBuilder
- All Implemented Interfaces:
Serializable,Comparable<ChickenArtBuilder>,Constable
Collection of chicken ASCII art styles with builder functionality.
Used by the
Chicken Easter egg function.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic StringReturns a comma-separated list of all available style names.voidbuildChickenSay(BreakingBytesRefBuilder scratch, org.apache.lucene.util.BytesRef message) Builds the complete chicken say output with speech bubble and ASCII art, appending directly to the providedBreakingBytesRefBuilder.voidbuildChickenSay(BreakingBytesRefBuilder scratch, org.apache.lucene.util.BytesRef message, int maxWidth) Builds the complete chicken say output with speech bubble and ASCII art, appending directly to the providedBreakingBytesRefBuilder.static ChickenArtBuilderLooks up a chicken style by name (case-insensitive).static ChickenArtBuilderfromName(org.apache.lucene.util.BytesRef name) Looks up a chicken style by name from a BytesRef (case-insensitive).static ChickenArtBuilderrandom()Returns a randomly selected chicken art builder.static ChickenArtBuilderReturns the enum constant of this class with the specified name.static ChickenArtBuilder[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ORDINARY
-
EARLY_STATE
-
LAYING
-
THINKS_ITS_A_DUCK
-
SMOKING_A_PIPE
-
SOUP
-
RACING
-
STONED
-
REALISTIC
-
WHISTLING
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
availableStyles
Returns a comma-separated list of all available style names. -
random
Returns a randomly selected chicken art builder. -
fromName
Looks up a chicken style by name (case-insensitive). Returns null if the style is not found. -
fromName
Looks up a chicken style by name from a BytesRef (case-insensitive). Returns null if the style is not found. -
buildChickenSay
public void buildChickenSay(BreakingBytesRefBuilder scratch, org.apache.lucene.util.BytesRef message) Builds the complete chicken say output with speech bubble and ASCII art, appending directly to the providedBreakingBytesRefBuilder. Works directly with BytesRef to avoid String conversion. -
buildChickenSay
public void buildChickenSay(BreakingBytesRefBuilder scratch, org.apache.lucene.util.BytesRef message, int maxWidth) Builds the complete chicken say output with speech bubble and ASCII art, appending directly to the providedBreakingBytesRefBuilder. Works directly with BytesRef to avoid String conversion.
-