Skip to content

ValueReaderProvier - #2286

Merged
echeipesh merged 4 commits into
locationtech:masterfrom
echeipesh:feature/value-reader-spi
Jul 27, 2017
Merged

echeipesh merged 4 commits into
locationtech:masterfrom
echeipesh:feature/value-reader-spi

Conversation

@echeipesh

Copy link
Copy Markdown
Contributor

Closes: #2281

@jpolchlo jpolchlo left a comment

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.

There needs to be some mention of the fact that without a MergeStrategy.concat in the build.sbt of any project that uses the SPI functionality, the META-INF/services/ValueReaderProvider will be overwritten, and not all plugins will be registered. This may affect the build.sbt for spark-etl.

def valueReader(uri: URI, store: AttributeStore): ValueReader[LayerId] = {
val _uri = trim(uri)
val path = new Path(_uri)
val params = UriUtils.getParams(_uri)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

For valueReader, layerWriter, attribuetStore

val _uri = trim(uri)
val path = new Path(_uri)
val params = UriUtils.getParams(_uri)

Mb that can be sugared?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Not really user functionality, so I wanted to leave it as bare bones as possible

@pomadchin pomadchin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks fine, only one comment though

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