Record Class FileIngestionService.IngestedChunk
java.lang.Object
java.lang.Record
com.tnsai.intelligence.rag.binding.FileIngestionService.IngestedChunk
- Record Components:
document- stable identity, normalized content, and source originmetadata- detected format and structural chunk provenancecontentHash- SHA-256 of the admitted source bytes
- Enclosing class:
FileIngestionService
public static record FileIngestionService.IngestedChunk(SourceLoader.LoadedDocument document, Map<String,String> metadata, String contentHash)
extends Record
One normalized retrieval chunk emitted by the canonical file pipeline.
- Since:
- 0.13.0
-
Constructor Summary
ConstructorsConstructorDescriptionIngestedChunk(SourceLoader.LoadedDocument document, Map<String, String> metadata, String contentHash) Creates an instance of aIngestedChunkrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontentHashrecord component.document()Returns the value of thedocumentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.metadata()Returns the value of themetadatarecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
IngestedChunk
public IngestedChunk(SourceLoader.LoadedDocument document, Map<String, String> metadata, String contentHash) Creates an instance of aIngestedChunkrecord class.- Parameters:
document- the value for thedocumentrecord componentmetadata- the value for themetadatarecord componentcontentHash- the value for thecontentHashrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 withObjects::equals(Object,Object). -
document
Returns the value of thedocumentrecord component.- Returns:
- the value of the
documentrecord component
-
metadata
Returns the value of themetadatarecord component.- Returns:
- the value of the
metadatarecord component
-
contentHash
Returns the value of thecontentHashrecord component.- Returns:
- the value of the
contentHashrecord component
-