Module org.elasticsearch.server
Package org.elasticsearch.inference
Record Class ChunkInferenceInput
java.lang.Object
java.lang.Record
org.elasticsearch.inference.ChunkInferenceInput
-
Constructor Summary
ConstructorsConstructorDescriptionChunkInferenceInput
(String input) ChunkInferenceInput
(String input, ChunkingSettings chunkingSettings) Creates an instance of aChunkInferenceInput
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thechunkingSettings
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.input()
Returns the value of theinput
record component.inputs
(List<ChunkInferenceInput> chunkInferenceInputs) final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ChunkInferenceInput
-
ChunkInferenceInput
Creates an instance of aChunkInferenceInput
record class.- Parameters:
input
- the value for theinput
record componentchunkingSettings
- the value for thechunkingSettings
record component
-
-
Method Details
-
inputs
-
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)
. -
input
Returns the value of theinput
record component.- Returns:
- the value of the
input
record component
-
chunkingSettings
Returns the value of thechunkingSettings
record component.- Returns:
- the value of the
chunkingSettings
record component
-