Enum Class ChunkType
- All Implemented Interfaces:
Serializable,Comparable<ChunkType>,Constable
Defines the types of chunking mechanisms supported for document processing.
The enum provides options for selecting distinct strategies to parse and divide
documents into manageable segments for further processing or analysis.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRepresents a hierarchical chunking type, which processes documents by breaking them into a nested structure of smaller chunks.Represents a hybrid chunking type, which combines features of multiple chunking strategies to process documents in a flexible manner. -
Method Summary
-
Enum Constant Details
-
HYBRID
Represents a hybrid chunking type, which combines features of multiple chunking strategies to process documents in a flexible manner. Used in scenarios where the benefits of both sequential and hierarchical chunking approaches are desired, enabling customization based on specific processing requirements. -
HIERARCHICAL
Represents a hierarchical chunking type, which processes documents by breaking them into a nested structure of smaller chunks. Used in scenarios where maintaining a clear hierarchy within the document structure is critical, enabling processing at multiple levels of granularity.
-
-
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
-