Record Class Hierarchical
java.lang.Object
java.lang.Record
ai.doctruth.Hierarchical
- Record Components:
maxDepth- maximum number of summarisation levels (1 = single pass).
- All Implemented Interfaces:
ContextStrategy
Multi-level summarisation: condense the document at increasing granularities, hand the LLM
the level that fits the budget. Placeholder shape — Phase 3 will decide whether to extend
the record's components (per-level summarisers, fan-out, etc.) or split into a builder.
Invariants (compact constructor):
maxDepth >= 1.
- Since:
- 0.1.0
-
Constructor Summary
ConstructorsConstructorDescriptionHierarchical(int maxDepth) Creates an instance of aHierarchicalrecord class. -
Method Summary
Modifier and TypeMethodDescriptionassemble(ParsedDocument doc) v0.1.0-alpha stub: not yet implemented.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intmaxDepth()Returns the value of themaxDepthrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Hierarchical
public Hierarchical(int maxDepth) Creates an instance of aHierarchicalrecord class.- Parameters:
maxDepth- the value for themaxDepthrecord component
-
-
Method Details
-
assemble
v0.1.0-alpha stub: not yet implemented. Phase 3 wires up multi-level summarisation; the audit-ableUnsupportedOperationExceptionmarker is intentional (per CONTRIBUTING.md §2 — no silent failures) so any caller using the stub fails loudly.- Specified by:
assemblein interfaceContextStrategy- Parameters:
doc- the parsed document; must not be null.- Returns:
- a single string suitable for use as the user prompt.
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
maxDepth
-