Record Class FileIngestionService.Limits
java.lang.Object
java.lang.Record
com.tnsai.intelligence.rag.binding.FileIngestionService.Limits
- Record Components:
maxDecodedBytes- aggregate decoded-character budgetmaxFiles- maximum regular files that may be admittedmaxEntries- maximum walk entries (files and directories)maxDepth- maximum relative path depth
- Enclosing class:
FileIngestionService
public static record FileIngestionService.Limits(int maxDecodedBytes, int maxFiles, int maxEntries, int maxDepth)
extends Record
One admission-cap policy for declarative and Server file ingestion.
-
Constructor Summary
ConstructorsConstructorDescriptionLimits(int maxDecodedBytes, int maxFiles, int maxEntries, int maxDepth) Validates positive limits. -
Method Summary
Modifier and TypeMethodDescriptionstatic FileIngestionService.Limitsdefaults()Framework defaults shared by both entry points.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of themaxDecodedBytesrecord component.intmaxDepth()Returns the value of themaxDepthrecord component.intReturns the value of themaxEntriesrecord component.intmaxFiles()Returns the value of themaxFilesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Limits
public Limits(int maxDecodedBytes, int maxFiles, int maxEntries, int maxDepth) Validates positive limits.
-
-
Method Details
-
defaults
Framework defaults shared by both entry points. -
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 with '=='. -
maxDecodedBytes
public int maxDecodedBytes()Returns the value of themaxDecodedBytesrecord component.- Returns:
- the value of the
maxDecodedBytesrecord component
-
maxFiles
public int maxFiles()Returns the value of themaxFilesrecord component.- Returns:
- the value of the
maxFilesrecord component
-
maxEntries
public int maxEntries()Returns the value of themaxEntriesrecord component.- Returns:
- the value of the
maxEntriesrecord component
-
maxDepth
public int maxDepth()Returns the value of themaxDepthrecord component.- Returns:
- the value of the
maxDepthrecord component
-