Skip to content

[Backport] transition away from StorageAdapter#17024

Merged
clintropolis merged 1 commit intoapache:31.0.0from
clintropolis:backport-16985-to-31.0.0
Sep 10, 2024
Merged

[Backport] transition away from StorageAdapter#17024
clintropolis merged 1 commit intoapache:31.0.0from
clintropolis:backport-16985-to-31.0.0

Conversation

@clintropolis
Copy link
Copy Markdown
Member

Backport of #16985 to 31.0.0.

* transition away from StorageAdapter
changes:
* CursorHolderFactory has been renamed to CursorFactory and moved off of StorageAdapter, instead fetched directly from the segment via 'asCursorFactory'. The previous deprecated CursorFactory interface has been merged into StorageAdapter
* StorageAdapter is no longer used by any engines or tests and has been marked as deprecated with default implementations of all methods that throw exceptions indicating the new methods to call instead
* StorageAdapter methods not covered by CursorFactory (CursorHolderFactory prior to this change) have been moved into interfaces which are retrieved by Segment.as, the primary classes are the previously existing Metadata, as well as new interfaces PhysicalSegmentInspector and TopNOptimizationInspector
* added UnnestSegment and FilteredSegment that extend WrappedSegmentReference since their StorageAdapter implementations were previously provided by WrappedSegmentReference
* added PhysicalSegmentInspector which covers some of the previous StorageAdapter functionality which was primarily used for segment metadata queries and other metadata uses, and is implemented for QueryableIndexSegment and IncrementalIndexSegment
* added TopNOptimizationInspector to cover the oddly specific StorageAdapter.hasBuiltInFilters implementation, which is implemented for HashJoinSegment, UnnestSegment, and FilteredSegment
* Updated all engines and tests to no longer use StorageAdapter
@github-actions github-actions Bot added Area - Batch Ingestion Area - Querying Area - Segment Format and Ser/De Area - Ingestion Area - MSQ For multi stage queries - https://github.com/apache/druid/issues/12262 labels Sep 9, 2024
@clintropolis clintropolis added this to the 31.0.0 milestone Sep 9, 2024
@clintropolis clintropolis merged commit c462e10 into apache:31.0.0 Sep 10, 2024
@clintropolis clintropolis deleted the backport-16985-to-31.0.0 branch September 10, 2024 04:43
writer-jill added a commit to writer-jill/druid that referenced this pull request Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants