Package smile.data.type
Class StructField
java.lang.Object
smile.data.type.StructField
- All Implemented Interfaces:
Serializable
A field in a Struct data type.
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionStructField
(String name, DataType type) Constructor.StructField
(String name, DataType type, Measure measure) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
Returns true if the field is of integer or floating but not nominal scale.toString()
Returns the string representation of the field object.Returns the object value of string.
-
Field Details
-
name
Field name. -
type
Field data type. -
measure
Optional levels of measurements.
-
-
Constructor Details
-
StructField
Constructor.- Parameters:
name
- the field name.type
- the field data type.
-
StructField
Constructor.- Parameters:
name
- the field name.type
- the field data type.measure
- the level of measurement.
-
-
Method Details
-
toString
-
toString
Returns the string representation of the field object.- Parameters:
o
- the object.- Returns:
- the string representation.
-
valueOf
Returns the object value of string.- Parameters:
s
- the string.- Returns:
- the object value.
-
isNumeric
public boolean isNumeric()Returns true if the field is of integer or floating but not nominal scale.- Returns:
- true if the field is of integer or floating but not nominal scale.
-
equals
-