T - The item type used to represent a centroid.public class CentroidManagerGeoWave<T> extends Object implements CentroidManager<T>
CentroidManager.CentroidProcessingFn<T>| Constructor and Description |
|---|
CentroidManagerGeoWave(org.locationtech.geowave.core.store.api.DataStore dataStore,
org.locationtech.geowave.core.store.index.IndexStore indexStore,
org.locationtech.geowave.core.store.adapter.PersistentAdapterStore adapterStore,
AnalyticItemWrapperFactory<T> centroidFactory,
String centroidDataTypeId,
short centroidInternalAdapterId,
String indexName,
String batchId,
int level) |
CentroidManagerGeoWave(org.apache.hadoop.mapreduce.JobContext context,
Class<?> scope) |
CentroidManagerGeoWave(org.apache.hadoop.mapreduce.JobContext context,
Class<?> scope,
org.slf4j.Logger logger) |
CentroidManagerGeoWave(PropertyManagement properties) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
AnalyticItemWrapper<T> |
createNextCentroid(T feature,
String groupID,
org.locationtech.jts.geom.Coordinate coordinate,
String[] extraNames,
double[] extraValues)
Creates a new centroid based on the old centroid with new coordinates and dimension values
|
void |
delete(String[] dataIds) |
List<String> |
getAllCentroidGroups() |
String |
getBatchId() |
AnalyticItemWrapper<T> |
getCentroid(String dataId) |
AnalyticItemWrapper<T> |
getCentroidById(String id,
String groupID) |
List<AnalyticItemWrapper<T>> |
getCentroidsForGroup(String groupID) |
List<AnalyticItemWrapper<T>> |
getCentroidsForGroup(String batchID,
String groupID) |
String |
getDataTypeName() |
String |
getIndexName() |
static Collection<ParameterEnum<?>> |
getParameters() |
protected org.locationtech.geowave.core.store.CloseableIterator<T> |
getRawCentroids(String batchId,
String groupID) |
int |
processForAllGroups(CentroidManager.CentroidProcessingFn<T> fn) |
static void |
setParameters(org.apache.hadoop.conf.Configuration config,
Class<?> scope,
PropertyManagement runTimeProperties) |
void |
toShapeFile(String parentDir,
Class<? extends org.locationtech.jts.geom.Geometry> shapeClass) |
void |
transferBatch(String fromBatchId,
String groupID) |
public CentroidManagerGeoWave(org.locationtech.geowave.core.store.api.DataStore dataStore,
org.locationtech.geowave.core.store.index.IndexStore indexStore,
org.locationtech.geowave.core.store.adapter.PersistentAdapterStore adapterStore,
AnalyticItemWrapperFactory<T> centroidFactory,
String centroidDataTypeId,
short centroidInternalAdapterId,
String indexName,
String batchId,
int level)
public CentroidManagerGeoWave(PropertyManagement properties) throws IOException
IOExceptionpublic CentroidManagerGeoWave(org.apache.hadoop.mapreduce.JobContext context,
Class<?> scope)
throws IOException
IOExceptionpublic CentroidManagerGeoWave(org.apache.hadoop.mapreduce.JobContext context,
Class<?> scope,
org.slf4j.Logger logger)
throws IOException
IOExceptionpublic AnalyticItemWrapper<T> createNextCentroid(T feature, String groupID, org.locationtech.jts.geom.Coordinate coordinate, String[] extraNames, double[] extraValues)
createNextCentroid in interface CentroidManager<T>public void clear()
clear in interface CentroidManager<T>public void delete(String[] dataIds) throws IOException
delete in interface CentroidManager<T>IOExceptionpublic List<String> getAllCentroidGroups() throws IOException
getAllCentroidGroups in interface CentroidManager<T>IOExceptionpublic List<AnalyticItemWrapper<T>> getCentroidsForGroup(String groupID) throws IOException
getCentroidsForGroup in interface CentroidManager<T>IOExceptionpublic List<AnalyticItemWrapper<T>> getCentroidsForGroup(String batchID, String groupID) throws IOException
getCentroidsForGroup in interface CentroidManager<T>IOExceptionpublic AnalyticItemWrapper<T> getCentroidById(String id, String groupID) throws IOException, MatchingCentroidNotFoundException
getCentroidById in interface CentroidManager<T>IOExceptionMatchingCentroidNotFoundExceptionpublic AnalyticItemWrapper<T> getCentroid(String dataId)
getCentroid in interface CentroidManager<T>protected org.locationtech.geowave.core.store.CloseableIterator<T> getRawCentroids(String batchId, String groupID) throws IOException
IOExceptionpublic void transferBatch(String fromBatchId, String groupID) throws IOException
IOExceptionpublic int processForAllGroups(CentroidManager.CentroidProcessingFn<T> fn) throws IOException
processForAllGroups in interface CentroidManager<T>IOExceptionpublic static Collection<ParameterEnum<?>> getParameters()
public static void setParameters(org.apache.hadoop.conf.Configuration config,
Class<?> scope,
PropertyManagement runTimeProperties)
public String getIndexName()
getIndexName in interface CentroidManager<T>public String getBatchId()
public void toShapeFile(String parentDir, Class<? extends org.locationtech.jts.geom.Geometry> shapeClass) throws IOException
IOExceptionpublic String getDataTypeName()
getDataTypeName in interface CentroidManager<T>Copyright © 2013–2022. All rights reserved.