Skip to content

support for programmatic ingest from url#1568

Merged
rfecher merged 5 commits intolocationtech:masterfrom
rfecher:GEOWAVE-1442
Jun 7, 2019
Merged

support for programmatic ingest from url#1568
rfecher merged 5 commits intolocationtech:masterfrom
rfecher:GEOWAVE-1442

Conversation

@rfecher
Copy link
Copy Markdown
Contributor

@rfecher rfecher commented May 28, 2019

No description provided.

@coveralls
Copy link
Copy Markdown

coveralls commented May 28, 2019

Coverage Status

Coverage increased (+1.9%) to 48.024% when pulling 9be4c5a on rfecher:GEOWAVE-1442 into 175b5e1 on locationtech:master.

public class IngestFormatPluginOptions extends DefaultPluginOptions implements PluginOptions {

private static final Logger LOGGER = LoggerFactory.getLogger(LocalFileIngestDriver.class);
private static final Logger LOGGER = LoggerFactory.getLogger(LocalFileIngestCLIDriver.class);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Logger should use IngestFormatPluginOptions.class.

e.getValue().createLocalFileIngestPlugin(e.getValue().createOptionsInstances()));
}
return retVal;
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be a bit cleaner with Java8 streams: return getPluginProviderRegistry().entrySet().stream().collect( Collectors.toMap( Entry::getKey, e -> e.getValue().createLocalFileIngestPlugin(e.getValue().createOptionsInstances())));

@@ -0,0 +1,96 @@
package org.locationtech.geowave.core.store.ingest;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing header.

@@ -0,0 +1,51 @@
package org.locationtech.geowave.core.ingest;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing header.

@@ -0,0 +1,58 @@
package org.locationtech.geowave.core.ingest;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing header.

@@ -0,0 +1,15 @@
package org.locationtech.geowave.core.store.ingest;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing header.

@@ -0,0 +1,108 @@
package org.locationtech.geowave.core.store.ingest;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing header.

if (urlHandlerList == null) {
final Iterator<IngestUrlHandlerSpi> handlers =
new SPIServiceRegistry(IngestUrlHandlerSpi.class).load(IngestUrlHandlerSpi.class);
urlHandlerList = new ArrayList<>();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could be just Lists.newArrayList(handlers);

@@ -0,0 +1,7 @@
package org.locationtech.geowave.core.store.ingest;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing header.

@rfecher rfecher merged commit 4ea7111 into locationtech:master Jun 7, 2019
@rfecher rfecher deleted the GEOWAVE-1442 branch June 7, 2019 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants