public class SpatialIndexRecordInfoProvider extends java.lang.Object implements RecordInfoProvider<Text,RecordInfo>
RecordInfoProvider subclass required when either SpatialIndexInputFormat or SpatialIndexInputFormat need to be used in jobs that require both, an input format class and a RecordInfoProvider class.| Constructor and Description | 
|---|
SpatialIndexRecordInfoProvider()  | 
| Modifier and Type | Method and Description | 
|---|---|
RecordInfo | 
getCurrentRecordInfo()  | 
boolean | 
getExtraFields(java.util.Map<java.lang.String,java.lang.String> extraFields)
If the current record contains other fields different to id and geometry that are desired to be stored for fast access, they should be returned here by adding them to the passed map. 
 | 
JGeometry | 
getGeometry()
Gets the geometry of the current record 
 | 
java.lang.String | 
getId()
Gets the id of the current record 
 | 
void | 
setCurrentRecord(Text key, RecordInfo value)
Sets the record's key and value. 
 | 
public RecordInfo getCurrentRecordInfo()
public boolean getExtraFields(java.util.Map<java.lang.String,java.lang.String> extraFields)
RecordInfoProvidergetExtraFields in interface RecordInfoProvider<Text,RecordInfo>extraFields - An empty map where the extra fields can be addedpublic JGeometry getGeometry()
RecordInfoProvidergetGeometry in interface RecordInfoProvider<Text,RecordInfo>public java.lang.String getId()
RecordInfoProvidergetId in interface RecordInfoProvider<Text,RecordInfo>
public void setCurrentRecord(Text key,
                             RecordInfo value)
                      throws java.lang.Exception
RecordInfoProvidersetCurrentRecord in interface RecordInfoProvider<Text,RecordInfo>key - A record's keyvalue - A record's valuejava.lang.ExceptionCopyright © 2016 Oracle and/or its affiliates. All Rights Reserved.