package mil.nga.giat.geowave.format.gdelt; import mil.nga.giat.geowave.adapter.vector.ingest.AbstractSimpleFeatureIngestFormat; import mil.nga.giat.geowave.adapter.vector.ingest.AbstractSimpleFeatureIngestPlugin; import mil.nga.giat.geowave.adapter.vector.ingest.DataSchemaOptionProvider; import mil.nga.giat.geowave.core.ingest.avro.WholeFile; import mil.nga.giat.geowave.core.ingest.spi.IngestFormatOptionProvider; /** * This represents an ingest format plugin provider for GDELT data. It will * support ingesting directly from a local file system or staging data from a * local files system and ingesting into GeoWave using a map-reduce job. */ public class GDELTIngestFormat extends AbstractSimpleFeatureIngestFormat<WholeFile> { protected final DataSchemaOptionProvider dataSchemaOptionProvider = new DataSchemaOptionProvider(); @Override protected AbstractSimpleFeatureIngestPlugin<WholeFile> newPluginInstance( IngestFormatOptionProvider options ) { return new GDELTIngestPlugin( dataSchemaOptionProvider); } @Override public String getIngestFormatName() { return "gdelt"; } @Override public String getIngestFormatDescription() { return "files from Google Ideas GDELT data set"; } @Override public Object internalGetIngestFormatOptionProviders() { return dataSchemaOptionProvider; } }