public class GeoWaveAvroIngestPlugin extends AbstractSimpleFeatureIngestPlugin<AvroSimpleFeatureCollection>
Modifier and Type | Class and Description |
---|---|
static class |
GeoWaveAvroIngestPlugin.IngestAvroFeaturesFromHdfs |
AbstractSimpleFeatureIngestPlugin.AbstractIngestSimpleFeatureWithMapper<I>
filterOptionProvider, serializationFormatOptionProvider, simpOptionProvider, typeNameProvider
Constructor and Description |
---|
GeoWaveAvroIngestPlugin() |
Modifier and Type | Method and Description |
---|---|
org.apache.avro.Schema |
getAvroSchema()
Returns the Avro schema for the plugin
|
String[] |
getFileExtensionFilters()
Gets a list of file extensions that this plugin supports.
|
IngestPluginBase<AvroSimpleFeatureCollection,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.
|
Class<? extends CommonIndexValue>[] |
getSupportedIndexableTypes()
return a set of classes 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<AvroSimpleFeatureCollection,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<AvroSimpleFeatureCollection,?,?,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.
|
boolean |
supportsFile(URL file)
This method will be called for every file that matches the given extensions.
|
CloseableIterator<AvroSimpleFeatureCollection> |
toAvroObjects(URL input)
Converts the supported file into an Avro encoded Java object.
|
protected CloseableIterator<GeoWaveData<org.opengis.feature.simple.SimpleFeature>> |
toGeoWaveDataInternal(AvroSimpleFeatureCollection featureCollection,
String[] indexNames,
String globalVisibility) |
fromBinary, getDataAdapters, newAdapter, setFilterProvider, setGeometrySimpOptionProvider, setSerializationFormatProvider, setTypeNameProvider, toBinary, toGeoWaveData, wrapIteratorWithFilters
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<AvroSimpleFeatureCollection>
public org.apache.avro.Schema getAvroSchema()
GeoWaveAvroSchemaProvider
public CloseableIterator<AvroSimpleFeatureCollection> toAvroObjects(URL input)
GeoWaveAvroPluginBase
input
- The file to convert to Avropublic boolean isUseReducerPreferred()
IngestFromHdfsPlugin
public IngestWithMapper<AvroSimpleFeatureCollection,org.opengis.feature.simple.SimpleFeature> ingestWithMapper()
IngestFromHdfsPlugin
public IngestWithReducer<AvroSimpleFeatureCollection,?,?,org.opengis.feature.simple.SimpleFeature> ingestWithReducer()
IngestFromHdfsPlugin
protected CloseableIterator<GeoWaveData<org.opengis.feature.simple.SimpleFeature>> toGeoWaveDataInternal(AvroSimpleFeatureCollection featureCollection, String[] indexNames, String globalVisibility)
toGeoWaveDataInternal
in class AbstractSimpleFeatureIngestPlugin<AvroSimpleFeatureCollection>
public Index[] getRequiredIndices()
IndexProvider
public IngestPluginBase<AvroSimpleFeatureCollection,org.opengis.feature.simple.SimpleFeature> getIngestWithAvroPlugin()
GeoWaveAvroFormatPlugin
public Class<? extends CommonIndexValue>[] getSupportedIndexableTypes()
DataAdapterProvider
Copyright © 2013–2020. All rights reserved.