public class SparkRecordInfo
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description | 
|---|
SparkRecordInfo()
Creates an empty instance 
 | 
SparkRecordInfo(JGeometry geometry, java.util.Map<java.lang.String,java.lang.Object> fields)
Creates a new instance containing the specified geometry and fields 
 | 
SparkRecordInfo(SparkRecordInfo recordInfo)
Creates a new instance with the same data than recordIndfo 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addField(java.lang.String name, java.lang.Object val)
Adds a field to the record info 
 | 
void | 
clear()
Removes all the information from the record info. 
 | 
void | 
clearFields()
Removes all the fields from the record info 
 | 
boolean | 
equals(java.lang.Object obj)  | 
java.lang.Object | 
getField(java.lang.String name)
Returns a field with the given name 
 | 
java.util.Map<java.lang.String,java.lang.Object> | 
getFields()
Gets a map containing the current fields if any 
 | 
JGeometry | 
getGeometry()
Gets the current geometry or null if there is not spatial information 
 | 
void | 
removeField(java.lang.String name)
Removes a field from the record info 
 | 
void | 
setFields(java.util.Map<java.lang.String,java.lang.Object> fields)
Sets the map entries as the current fields. 
 | 
void | 
setGeometry(JGeometry geometry)
Sets the current geometry 
 | 
void | 
setRecordInfo(SparkRecordInfo recordInfo)
Copies the data (geometry and fields) from recordInfo 
 | 
java.lang.String | 
toString()  | 
public SparkRecordInfo()
public SparkRecordInfo(JGeometry geometry,
                       java.util.Map<java.lang.String,java.lang.Object> fields)
geometry - a geometryfields - a map containing fields to be held by the record infopublic SparkRecordInfo(SparkRecordInfo recordInfo)
recordInfo - another record info
public void addField(java.lang.String name,
                     java.lang.Object val)
name -val -public void clear()
public void clearFields()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.Object getField(java.lang.String name)
name -public java.util.Map<java.lang.String,java.lang.Object> getFields()
public JGeometry getGeometry()
public void removeField(java.lang.String name)
name -public void setFields(java.util.Map<java.lang.String,java.lang.Object> fields)
clearFields() followed by a call to addField(String, Object) for each entry in the map.fields - a map containing the fields to be setpublic void setGeometry(JGeometry geometry)
geometry -public void setRecordInfo(SparkRecordInfo recordInfo)
recordInfo -public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2016 Oracle and/or its affiliates. All Rights Reserved.