-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
abstract IncrementalIndex
cursor stuff to prepare for using different "views" of the data based on the cursor build spec
#17064
abstract IncrementalIndex
cursor stuff to prepare for using different "views" of the data based on the cursor build spec
#17064
Conversation
…y of using different "views" of the data per the cursor build spec changes: * introduce `IncrementalIndexRowSelector` interface to capture how `IncrementalIndexCursor` and `IncrementalIndexColumnSelectorFactory` read data * `IncrementalIndex` implements `IncrementalIndexRowSelector` * move `FactsHolder` interface to separate file * other minor refactorings
IncrementalIndex
cursor to prepare to allow for possibility of using different "views" of the data per the cursor build specIncrementalIndex
cursor stuff to prepare to allow for possibility of using different "views" of the data per the cursor build spec
IncrementalIndex
cursor stuff to prepare to allow for possibility of using different "views" of the data per the cursor build specIncrementalIndex
cursor stuff to prepare for using different "views" of the data per the cursor build spec
IncrementalIndex
cursor stuff to prepare for using different "views" of the data per the cursor build specIncrementalIndex
cursor stuff to prepare for using different "views" of the data based on the cursor build spec
this.metricIndex = metricIndex; | ||
this.rowSelector = rowSelector; | ||
this.metricIndex = metricDesc.getIndex(); | ||
this.classOfObject = ComplexMetrics.getSerdeForType(metricDesc.getType()).getObjectStrategy().getClazz(); |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation Note
ComplexMetricSerde.getObjectStrategy
/** | ||
* Position of {@link org.apache.druid.segment.column.ColumnHolder#TIME_COLUMN_NAME} in the dimensions list | ||
*/ | ||
int getTimePosition(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a weird method, because the dimension order isn't provided by other methods, so it isn't meaningful on its face. The only caller is just checking if it == 0
, so it can populate a List<OrderBy>
.
How about replacing this with List<OrderBy> getOrdering()
?
…nt "views" of the data based on the cursor build spec (apache#17064) * abstract `IncrementalIndex` cursor stuff to prepare to allow for possibility of using different "views" of the data based on the cursor build spec changes: * introduce `IncrementalIndexRowSelector` interface to capture how `IncrementalIndexCursor` and `IncrementalIndexColumnSelectorFactory` read data * `IncrementalIndex` implements `IncrementalIndexRowSelector` * move `FactsHolder` interface to separate file * other minor refactorings
…nt "views" of the data based on the cursor build spec (apache#17064) * abstract `IncrementalIndex` cursor stuff to prepare to allow for possibility of using different "views" of the data based on the cursor build spec changes: * introduce `IncrementalIndexRowSelector` interface to capture how `IncrementalIndexCursor` and `IncrementalIndexColumnSelectorFactory` read data * `IncrementalIndex` implements `IncrementalIndexRowSelector` * move `FactsHolder` interface to separate file * other minor refactorings
* abstract `IncrementalIndex` cursor stuff to prepare for using different "views" of the data based on the cursor build spec (#17064) * abstract `IncrementalIndex` cursor stuff to prepare to allow for possibility of using different "views" of the data based on the cursor build spec changes: * introduce `IncrementalIndexRowSelector` interface to capture how `IncrementalIndexCursor` and `IncrementalIndexColumnSelectorFactory` read data * `IncrementalIndex` implements `IncrementalIndexRowSelector` * move `FactsHolder` interface to separate file * other minor refactorings * add DataSchema.Builder to tidy stuff up a bit (#17065) * add DataSchema.Builder to tidy stuff up a bit * fixes * fixes * more style fixes * review stuff * Projections prototype (#17214)
This has already been backported in #17257 , so added it to the milestone. |
changes:
IncrementalIndexRowSelector
interface to capture howIncrementalIndexCursor
andIncrementalIndexColumnSelectorFactory
read dataIncrementalIndex
implementsIncrementalIndexRowSelector
FactsHolder
interface to separate file