public class GpxIngestPlugin extends AbstractSimpleFeatureIngestPlugin<AvroGpxTrack>
Modifier and Type | Class and Description |
---|---|
static class |
GpxIngestPlugin.IngestGpxTrackFromHdfs |
AbstractSimpleFeatureIngestPlugin.AbstractIngestSimpleFeatureWithMapper<I>
filterOptionProvider, serializationFormatOptionProvider, simpOptionProvider, typeNameProvider
Constructor and Description |
---|
GpxIngestPlugin() |
Modifier and Type | Method and Description |
---|---|
org.apache.avro.Schema |
getAvroSchema()
Returns the Avro schema for the plugin
|
MaxExtentOptProvider |
getExtentOptionProvider() |
String[] |
getFileExtensionFilters()
Gets a list of file extensions that this plugin supports.
|
IngestPluginBase<AvroGpxTrack,org.opengis.feature.simple.SimpleFeature> |
getIngestWithAvroPlugin()
An implementation of ingestion that ingests Avro Java objects into GeoWave
|
Index[] |
getRequiredIndices()
Get an array of indices that are required by this ingest implementation.
|
String[] |
getSupportedIndexTypes()
return a set of index types that can be indexed by this data adapter provider, used for
compatibility checking with an index provider
|
protected org.opengis.feature.simple.SimpleFeatureType[] |
getTypes() |
IngestWithMapper<AvroGpxTrack,org.opengis.feature.simple.SimpleFeature> |
ingestWithMapper()
An implementation of ingestion that can be persisted to a mapper within the map-reduce job
configuration to perform an ingest of data into GeoWave from intermediate data
|
IngestWithReducer<AvroGpxTrack,?,?,org.opengis.feature.simple.SimpleFeature> |
ingestWithReducer()
An implementation of ingestion that can be persisted to a mapper and reducer within the
map-reduce job configuration to aggregate intermediate data by defined keys within a reducer
and perform an ingest of data into GeoWave from the key-value pairs emitted by the mapper.
|
void |
init(URL baseDirectory)
Initialize the plugin and give it the base directory that is provided by the user.
|
boolean |
isUseReducerPreferred()
Returns a flag indicating to the ingestion framework whether it should try to use the
ingestWithMapper() implementation or the ingestWithReducer() implementation in the case that
both implementations are non-null.
|
void |
setExtentOptionProvider(MaxExtentOptProvider extentOptProvider) |
boolean |
supportsFile(URL file)
This method will be called for every file that matches the given extensions.
|
CloseableIterator<AvroGpxTrack> |
toAvroObjects(URL input)
Converts the supported file into an Avro encoded Java object.
|
protected CloseableIterator<GeoWaveData<org.opengis.feature.simple.SimpleFeature>> |
toGeoWaveDataInternal(AvroGpxTrack gpxTrack,
String[] indexNames) |
fromBinary, getDataAdapters, newAdapter, setFilterProvider, setGeometrySimpOptionProvider, setSerializationFormatProvider, setTypeNameProvider, toBinary, toGeoWaveData, wrapIteratorWithFilters
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDataAdapters
public String[] getFileExtensionFilters()
LocalPluginBase
public void init(URL baseDirectory)
LocalPluginBase
baseDirectory
- The base directory provided as a command-line argument (if the argument is a file,
the base directory given will be its parent directory).public boolean supportsFile(URL file)
LocalPluginBase
file
- The file to determine if this plugin supports for ingestionprotected org.opengis.feature.simple.SimpleFeatureType[] getTypes()
getTypes
in class AbstractSimpleFeatureIngestPlugin<AvroGpxTrack>
public org.apache.avro.Schema getAvroSchema()
GeoWaveAvroSchemaProvider
public CloseableIterator<AvroGpxTrack> toAvroObjects(URL input)
GeoWaveAvroPluginBase
input
- The file to convert to Avropublic boolean isUseReducerPreferred()
IngestFromHdfsPlugin
public IngestWithMapper<AvroGpxTrack,org.opengis.feature.simple.SimpleFeature> ingestWithMapper()
IngestFromHdfsPlugin
public IngestWithReducer<AvroGpxTrack,?,?,org.opengis.feature.simple.SimpleFeature> ingestWithReducer()
IngestFromHdfsPlugin
protected CloseableIterator<GeoWaveData<org.opengis.feature.simple.SimpleFeature>> toGeoWaveDataInternal(AvroGpxTrack gpxTrack, String[] indexNames)
toGeoWaveDataInternal
in class AbstractSimpleFeatureIngestPlugin<AvroGpxTrack>
public Index[] getRequiredIndices()
IndexProvider
public IngestPluginBase<AvroGpxTrack,org.opengis.feature.simple.SimpleFeature> getIngestWithAvroPlugin()
GeoWaveAvroFormatPlugin
public String[] getSupportedIndexTypes()
DataAdapterProvider
public void setExtentOptionProvider(MaxExtentOptProvider extentOptProvider)
public MaxExtentOptProvider getExtentOptionProvider()
Copyright © 2013–2022. All rights reserved.