Skip to content

Refactor adapters and add explicit adapter to index mappings#1807

Merged
rfecher merged 4 commits intolocationtech:masterfrom
jdgarrett:adapter-refactor
May 7, 2021
Merged

Refactor adapters and add explicit adapter to index mappings#1807
rfecher merged 4 commits intolocationtech:masterfrom
jdgarrett:adapter-refactor

Conversation

@jdgarrett
Copy link
Copy Markdown
Contributor

This is a work in progress PR that creates an explicit mapping between adapter and index whenever an adapter is added. By doing this, we can use SPI to discover mappings between adapter fields and index fields and reduce a lot of the hard-coded mappings that existed before. Under the previous system, a lot of the mapping logic was handled by FeatureDataAdapter, which made implementing custom DataTypeAdapters more complicated than it should have been.

@jdgarrett jdgarrett force-pushed the adapter-refactor branch 4 times, most recently from 3e7777d to ca70805 Compare May 2, 2021 19:05
Copy link
Copy Markdown
Contributor

@rfecher rfecher left a comment

Choose a reason for hiding this comment

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

I think we could use examples of using field descriptors to define a type instead of using FeatureDataAdapter. Just want to make sure we showcase the power of this major refactoring and some of the new capabilities like lat/lon field mapping.

@jdgarrett jdgarrett force-pushed the adapter-refactor branch from ca1f17a to 8119e11 Compare May 5, 2021 22:32
@jdgarrett jdgarrett force-pushed the adapter-refactor branch from 8119e11 to 776031c Compare May 6, 2021 01:29
@jdgarrett jdgarrett changed the title WIP: Add explicit adapter to index mappings Refactor adapters and add explicit adapter to index mappings May 7, 2021
@rfecher rfecher merged commit 840d322 into locationtech:master May 7, 2021
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.

2 participants