T -public class StatefulSpatialTransformationContext<T> extends SpatialTransformationContext<T>
| Constructor and Description |
|---|
StatefulSpatialTransformationContext(SparkRecordInfoProvider<T> recordInfoProvider)
Creates a new instance which uses the given
SparkRecordInfoProvider |
StatefulSpatialTransformationContext(SparkRecordInfoProvider<T> recordInfoProvider, SpatialOperationConfig spatialOpConf)
Creates a new instance which uses the given
SparkRecordInfoProvider and can filter using the specified SpatialOperationConfig |
StatefulSpatialTransformationContext(SpatialTransformationContext<T> ctx) |
| Modifier and Type | Method and Description |
|---|---|
JGeometry |
getGeometry(T record)
Gets the geometry of the given record
|
SparkRecordInfo |
getRecordInfo(T record)
Gets a
SparkRecordInfo containing information from the give record. |
filter, filter, isPreSpatialFiltering, isPreSpatialFilteringpublic StatefulSpatialTransformationContext(SparkRecordInfoProvider<T> recordInfoProvider)
SparkRecordInfoProviderrecordInfoProvider -public StatefulSpatialTransformationContext(SparkRecordInfoProvider<T> recordInfoProvider, SpatialOperationConfig spatialOpConf)
SparkRecordInfoProvider and can filter using the specified SpatialOperationConfigrecordInfoProvider -spatialOpConf -public StatefulSpatialTransformationContext(SpatialTransformationContext<T> ctx)
public JGeometry getGeometry(T record)
getGeometry in class SpatialTransformationContext<T>record - an RDD record which can be processed by the current SparkRecordInfoProviderSparkRecordInfoProviderpublic SparkRecordInfo getRecordInfo(T record)
Gets a SparkRecordInfo containing information from the give record.
SparkRecordInfo instances can be reused so different calls with different input records may return the same instance with different data. If the record info will be part of a new RDD, a new record info instance should be created from the existing one. See SparkRecordInfo.SparkRecordInfo(SparkRecordInfo) and SparkRecordInfo.setRecordInfo(SparkRecordInfo).getRecordInfo in class SpatialTransformationContext<T>record - a record which can be processed by the current SparkRecordInfoProviderSparkRecordInfo or null if the input record could not be processed by the current SparkRecordInfoProviderCopyright © 2017, 2019 Oracle and/or its affiliates. All Rights Reserved.