Package dev.omnist.algebra
Record Class InferResult
java.lang.Object
java.lang.Record
dev.omnist.algebra.InferResult
- Record Components:
schema- the inferred schemafallbacks- one entry per field that was typedanybecause its sample values mixed incompatible scalar kinds; empty if none did
The result of
SchemaAlgebra.inferWithReport(List, String, boolean): the
inferred schema plus a report of every field that fell back to any.-
Constructor Summary
ConstructorsConstructorDescriptionInferResult(Schema schema, List<AnyFallback> fallbacks) Creates an instance of aInferResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefallbacksrecord component.final inthashCode()Returns a hash code value for this object.schema()Returns the value of theschemarecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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). -
schema
Returns the value of theschemarecord component.- Returns:
- the value of the
schemarecord component
-
fallbacks
Returns the value of thefallbacksrecord component.- Returns:
- the value of the
fallbacksrecord component
-