public abstract class FieldValue extends Object implements Serializable
A field value representation that meets the requirements of PMML type system.
Type information has two components to it:
Operational type. Determines supported type equality and type comparison operations.Data type. Determines supported type conversions.
A field value is created after a field.
It may be later refined by transformations and functions.
FieldValueUtil,
Serialized Form| Constructor and Description |
|---|
FieldValue(org.dmg.pmml.DataType dataType,
Object value) |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
asBoolean() |
org.joda.time.DateTime |
asDateTime() |
Integer |
asInteger() |
org.joda.time.LocalDate |
asLocalDate() |
org.joda.time.LocalDateTime |
asLocalDateTime() |
org.joda.time.LocalTime |
asLocalTime() |
Number |
asNumber() |
String |
asString() |
int |
compareToString(String string)
Calculates the order between this value and the reference value.
|
int |
compareToValue(FieldValue value) |
boolean |
equals(Object object) |
boolean |
equalsAnyString(Iterable<String> strings) |
boolean |
equalsAnyValue(Iterable<FieldValue> values) |
boolean |
equalsString(String string)
Checks if this value is equal to the reference value.
|
boolean |
equalsValue(FieldValue value) |
org.dmg.pmml.DataType |
getDataType() |
abstract org.dmg.pmml.OpType |
getOpType() |
Object |
getValue() |
int |
hashCode() |
protected Object |
parseValue(String string) |
String |
toString() |
public FieldValue(org.dmg.pmml.DataType dataType,
Object value)
public abstract org.dmg.pmml.OpType getOpType()
public boolean equalsString(String string)
string - The reference value.public boolean equalsValue(FieldValue value)
public boolean equalsAnyValue(Iterable<FieldValue> values)
public int compareToString(String string)
string - The reference value.public int compareToValue(FieldValue value)
public String asString()
public Integer asInteger()
public Number asNumber()
public Boolean asBoolean()
public org.joda.time.LocalDateTime asLocalDateTime()
public org.joda.time.LocalDate asLocalDate()
public org.joda.time.LocalTime asLocalTime()
public org.joda.time.DateTime asDateTime()
public org.dmg.pmml.DataType getDataType()
public Object getValue()
Copyright © 2015. All Rights Reserved.