Package app.ductape.sdk.vector.utils
Record Class VectorMetadataSchemaInferer.VectorMetadataSchema
java.lang.Object
java.lang.Record
app.ductape.sdk.vector.utils.VectorMetadataSchemaInferer.VectorMetadataSchema
- Enclosing class:
- VectorMetadataSchemaInferer
public static record VectorMetadataSchemaInferer.VectorMetadataSchema(List<VectorMetadataSchemaInferer.VectorMetadataFieldSchema> fields, int sampleCount)
extends Record
TS
IVectorMetadataSchema-
Constructor Summary
ConstructorsConstructorDescriptionVectorMetadataSchema(List<VectorMetadataSchemaInferer.VectorMetadataFieldSchema> fields, int sampleCount) Creates an instance of aVectorMetadataSchemarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.fields()Returns the value of thefieldsrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of thesampleCountrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
VectorMetadataSchema
public VectorMetadataSchema(List<VectorMetadataSchemaInferer.VectorMetadataFieldSchema> fields, int sampleCount) Creates an instance of aVectorMetadataSchemarecord class.- Parameters:
fields- the value for thefieldsrecord componentsampleCount- the value for thesampleCountrecord 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 '=='. -
fields
Returns the value of thefieldsrecord component.- Returns:
- the value of the
fieldsrecord component
-
sampleCount
public int sampleCount()Returns the value of thesampleCountrecord component.- Returns:
- the value of the
sampleCountrecord component
-