Package app.ductape.sdk.vector.utils
Record Class VectorMetadataSchemaInferer.VectorMetadataFieldSchema
java.lang.Object
java.lang.Record
app.ductape.sdk.vector.utils.VectorMetadataSchemaInferer.VectorMetadataFieldSchema
- Enclosing class:
- VectorMetadataSchemaInferer
public static record VectorMetadataSchemaInferer.VectorMetadataFieldSchema(String field, VectorMetadataSchemaInferer.VectorMetadataValueType inferredType, List<VectorMetadataSchemaInferer.VectorMetadataValueType> mixedTypes, int occurrence, double confidence, List<String> suggestedOperators)
extends Record
TS
IVectorMetadataFieldSchema-
Constructor Summary
ConstructorsConstructorDescriptionVectorMetadataFieldSchema(String field, VectorMetadataSchemaInferer.VectorMetadataValueType inferredType, List<VectorMetadataSchemaInferer.VectorMetadataValueType> mixedTypes, int occurrence, double confidence, List<String> suggestedOperators) Creates an instance of aVectorMetadataFieldSchemarecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of theconfidencerecord component.final booleanIndicates whether some other object is "equal to" this one.field()Returns the value of thefieldrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theinferredTyperecord component.Returns the value of themixedTypesrecord component.intReturns the value of theoccurrencerecord component.Returns the value of thesuggestedOperatorsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
VectorMetadataFieldSchema
public VectorMetadataFieldSchema(String field, VectorMetadataSchemaInferer.VectorMetadataValueType inferredType, List<VectorMetadataSchemaInferer.VectorMetadataValueType> mixedTypes, int occurrence, double confidence, List<String> suggestedOperators) Creates an instance of aVectorMetadataFieldSchemarecord class.- Parameters:
field- the value for thefieldrecord componentinferredType- the value for theinferredTyperecord componentmixedTypes- the value for themixedTypesrecord componentoccurrence- the value for theoccurrencerecord componentconfidence- the value for theconfidencerecord componentsuggestedOperators- the value for thesuggestedOperatorsrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
field
Returns the value of thefieldrecord component.- Returns:
- the value of the
fieldrecord component
-
inferredType
Returns the value of theinferredTyperecord component.- Returns:
- the value of the
inferredTyperecord component
-
mixedTypes
Returns the value of themixedTypesrecord component.- Returns:
- the value of the
mixedTypesrecord component
-
occurrence
public int occurrence()Returns the value of theoccurrencerecord component.- Returns:
- the value of the
occurrencerecord component
-
confidence
public double confidence()Returns the value of theconfidencerecord component.- Returns:
- the value of the
confidencerecord component
-
suggestedOperators
Returns the value of thesuggestedOperatorsrecord component.- Returns:
- the value of the
suggestedOperatorsrecord component
-