Enum Class CourtFixtureSource.Stage

java.lang.Object
java.lang.Enum<CourtFixtureSource.Stage>
ai.pipestream.module.pipelineprobe.opensearch.CourtFixtureSource.Stage
All Implemented Interfaces:
Serializable, Comparable<CourtFixtureSource.Stage>, Constable
Enclosing class:
CourtFixtureSource

public static enum CourtFixtureSource.Stage extends Enum<CourtFixtureSource.Stage>
Stage selector for the court-1000 corpus.
  • Enum Constant Details

    • CHUNKER

      public static final CourtFixtureSource.Stage CHUNKER
      Post-chunker, no embedding vectors. Indexes text + chunks only.
    • EMBEDDER

      public static final CourtFixtureSource.Stage EMBEDDER
      Post-embedder, vectors attached. Exercises kNN field writes.
  • Method Details

    • values

      public static CourtFixtureSource.Stage[] 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 CourtFixtureSource.Stage 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
    • parse

      public static CourtFixtureSource.Stage parse(String raw)
      Parse a stage name from a request body / query string. Accepts the enum name and the lowercase directory form, both case-insensitively — so "embedder", "EMBEDDER", and "Embedder" all resolve to EMBEDDER.
      Parameters:
      raw - user-supplied stage name; null or blank → EMBEDDER
      Returns:
      the parsed stage
      Throws:
      IllegalArgumentException - for any other unrecognised value
    • dirName

      public String dirName()
      Returns the classpath subdirectory name for this stage's fixtures.
      Returns:
      classpath directory holding doc_*.pb for this stage