java.lang.Object
java.lang.Enum<ChickenArtBuilder>
org.elasticsearch.xpack.esql.expression.function.scalar.string.ChickenArtBuilder
All Implemented Interfaces:
Serializable, Comparable<ChickenArtBuilder>, Constable

public enum ChickenArtBuilder extends Enum<ChickenArtBuilder>
Collection of chicken ASCII art styles with builder functionality. Used by the Chicken Easter egg function.
  • Enum Constant Details

  • Method Details

    • values

      public static ChickenArtBuilder[] 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

      public static ChickenArtBuilder valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • availableStyles

      public static String availableStyles()
      Returns a comma-separated list of all available style names.
    • random

      public static ChickenArtBuilder random()
      Returns a randomly selected chicken art builder.
    • fromName

      public static ChickenArtBuilder fromName(String name)
      Looks up a chicken style by name (case-insensitive). Returns null if the style is not found.
    • fromName

      public static ChickenArtBuilder fromName(org.apache.lucene.util.BytesRef name)
      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 provided BreakingBytesRefBuilder. 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 provided BreakingBytesRefBuilder. Works directly with BytesRef to avoid String conversion.