public abstract class AbstractSimpleFeatureIngestPlugin<I> extends Object implements LocalFileIngestPlugin<org.opengis.feature.simple.SimpleFeature>, IngestFromHdfsPlugin<I,org.opengis.feature.simple.SimpleFeature>, GeoWaveAvroFormatPlugin<I,org.opengis.feature.simple.SimpleFeature>, Persistable
Modifier and Type | Class and Description |
---|---|
static class |
AbstractSimpleFeatureIngestPlugin.AbstractIngestSimpleFeatureWithMapper<I> |
Modifier and Type | Field and Description |
---|---|
protected CQLFilterOptionProvider |
filterOptionProvider |
protected FeatureSerializationOptionProvider |
serializationFormatOptionProvider |
protected GeometrySimpOptionProvider |
simpOptionProvider |
protected TypeNameOptionProvider |
typeNameProvider |
Constructor and Description |
---|
AbstractSimpleFeatureIngestPlugin() |
Modifier and Type | Method and Description |
---|---|
void |
fromBinary(byte[] bytes)
Convert a stream of binary bytes to fields and data within an object.
|
DataTypeAdapter<org.opengis.feature.simple.SimpleFeature>[] |
getDataAdapters(String globalVisibility)
Get all writable adapters used by this plugin
|
protected abstract org.opengis.feature.simple.SimpleFeatureType[] |
getTypes() |
protected DataTypeAdapter<org.opengis.feature.simple.SimpleFeature> |
newAdapter(org.opengis.feature.simple.SimpleFeatureType type,
FieldVisibilityHandler<org.opengis.feature.simple.SimpleFeature,Object> fieldVisiblityHandler) |
void |
setFilterProvider(CQLFilterOptionProvider filterOptionProvider) |
void |
setGeometrySimpOptionProvider(GeometrySimpOptionProvider geometryProvider) |
void |
setSerializationFormatProvider(FeatureSerializationOptionProvider serializationFormatOptionProvider) |
void |
setTypeNameProvider(TypeNameOptionProvider typeNameProvider) |
byte[] |
toBinary()
Convert fields and data within an object to binary form for transmission or storage.
|
CloseableIterator<GeoWaveData<org.opengis.feature.simple.SimpleFeature>> |
toGeoWaveData(URL input,
String[] indexNames,
String globalVisibility)
Convert from an expected input format to a data format that can be directly ingested into
GeoWave
|
protected abstract CloseableIterator<GeoWaveData<org.opengis.feature.simple.SimpleFeature>> |
toGeoWaveDataInternal(I hdfsObject,
String[] indexNames,
String globalVisibility) |
protected CloseableIterator<GeoWaveData<org.opengis.feature.simple.SimpleFeature>> |
wrapIteratorWithFilters(CloseableIterator<GeoWaveData<org.opengis.feature.simple.SimpleFeature>> geowaveData) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSupportedIndexableTypes
ingestWithMapper, ingestWithReducer, isUseReducerPreferred
getIngestWithAvroPlugin
toAvroObjects
getAvroSchema
getFileExtensionFilters, init, supportsFile
getRequiredIndices
protected CQLFilterOptionProvider filterOptionProvider
protected FeatureSerializationOptionProvider serializationFormatOptionProvider
protected TypeNameOptionProvider typeNameProvider
protected GeometrySimpOptionProvider simpOptionProvider
public void setFilterProvider(CQLFilterOptionProvider filterOptionProvider)
public void setSerializationFormatProvider(FeatureSerializationOptionProvider serializationFormatOptionProvider)
public void setTypeNameProvider(TypeNameOptionProvider typeNameProvider)
public void setGeometrySimpOptionProvider(GeometrySimpOptionProvider geometryProvider)
public byte[] toBinary()
Persistable
toBinary
in interface Persistable
public void fromBinary(byte[] bytes)
Persistable
fromBinary
in interface Persistable
protected DataTypeAdapter<org.opengis.feature.simple.SimpleFeature> newAdapter(org.opengis.feature.simple.SimpleFeatureType type, FieldVisibilityHandler<org.opengis.feature.simple.SimpleFeature,Object> fieldVisiblityHandler)
protected abstract org.opengis.feature.simple.SimpleFeatureType[] getTypes()
public DataTypeAdapter<org.opengis.feature.simple.SimpleFeature>[] getDataAdapters(String globalVisibility)
DataAdapterProvider
getDataAdapters
in interface DataAdapterProvider<org.opengis.feature.simple.SimpleFeature>
globalVisibility
- If on the command-line the user specifies a global visibility to write
to the visibility column in GeoWave, it is passed along here. It is assumed that this is
the same visibility string that will be passed to IngestPluginBase.toGeoWaveData()public CloseableIterator<GeoWaveData<org.opengis.feature.simple.SimpleFeature>> toGeoWaveData(URL input, String[] indexNames, String globalVisibility)
IngestPluginBase
toGeoWaveData
in interface IngestPluginBase<URL,org.opengis.feature.simple.SimpleFeature>
input
- The expected input.indexNames
- The set of index IDs specified via a commandline argument (this is typically
either the default spatial index or default spatial-temporal index)globalVisibility
- If on the command-line the user specifies a global visibility to write
to the visibility column in GeoWave, it is passed along here. It is assumed that this is
the same visibility string that will be passed to DataAdapterProvider.getDataAdapters()protected CloseableIterator<GeoWaveData<org.opengis.feature.simple.SimpleFeature>> wrapIteratorWithFilters(CloseableIterator<GeoWaveData<org.opengis.feature.simple.SimpleFeature>> geowaveData)
protected abstract CloseableIterator<GeoWaveData<org.opengis.feature.simple.SimpleFeature>> toGeoWaveDataInternal(I hdfsObject, String[] indexNames, String globalVisibility)
Copyright © 2013–2020. All rights reserved.