package mil.nga.giat.geowave.format.avro; import mil.nga.giat.geowave.adapter.vector.avro.AvroSimpleFeatureCollection; import mil.nga.giat.geowave.adapter.vector.ingest.AbstractSimpleFeatureIngestFormat; import mil.nga.giat.geowave.adapter.vector.ingest.AbstractSimpleFeatureIngestPlugin; import mil.nga.giat.geowave.core.ingest.spi.IngestFormatOptionProvider; /** * This represents an ingest format plugin provider for Avro data that matches * our generic vector avro schema. 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 AvroIngestFormat extends AbstractSimpleFeatureIngestFormat<AvroSimpleFeatureCollection> { @Override protected AbstractSimpleFeatureIngestPlugin<AvroSimpleFeatureCollection> newPluginInstance( IngestFormatOptionProvider options ) { return new AvroIngestPlugin(); } @Override public String getIngestFormatName() { return "avro"; } @Override public String getIngestFormatDescription() { return "This can read an Avro file encoded with the SimpleFeatureCollection schema. This schema is also used by the export tool, so this format handles re-ingesting exported datasets."; } }