public final class Update extends GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Prediction API. For a detailed explanation see: http://code.google.com/p/google-http-java-client/wiki/JSON
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
Update() |
Modifier and Type | Method and Description |
---|---|
Update |
clone() |
String |
getClassLabel()
The true class label of this instance
|
List<Object> |
getCsvInstance()
The input features for this instance
|
Update |
set(String fieldName,
Object value) |
Update |
setClassLabel(String classLabel)
The true class label of this instance
|
Update |
setCsvInstance(List<Object> csvInstance)
The input features for this instance
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public String getClassLabel()
null
for nonepublic Update setClassLabel(String classLabel)
classLabel
- classLabel or null
for nonepublic List<Object> getCsvInstance()
null
for nonepublic Update setCsvInstance(List<Object> csvInstance)
csvInstance
- csvInstance or null
for nonepublic Update set(String fieldName, Object value)
set
in class GenericJson
public Update clone()
clone
in class GenericJson