Skip to content

Replace HistoricalFloatColumnSelector with more generic HistoricalColumnSelector#4796

Merged
drcrallen merged 1 commit intoapache:masterfrom
metamx:specialization-bug
Sep 14, 2017
Merged

Replace HistoricalFloatColumnSelector with more generic HistoricalColumnSelector#4796
drcrallen merged 1 commit intoapache:masterfrom
metamx:specialization-bug

Conversation

@leventov
Copy link
Copy Markdown
Member Author

leventov commented Sep 14, 2017

This bug was found when I was preparing another patch around ColumnValueSelectors, and those places has started to be caught by Java type system. So that other patch doesn't compile without this one merged. That is why marked as Development Blocker.


default LongColumnSelector makeLongColumnSelector(ReadableOffset offset)
{
return new LongColumnSelector()
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.

I'm not familiar with java semantics for this part. Will this create a new class in a way different than an anonymous class since the class def is inline?

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.

https://docs.oracle.com/javase/tutorial/java/javaOO/anonymousclasses.html seems to indicate they should behave the same way

@drcrallen drcrallen merged commit b61248f into apache:master Sep 14, 2017
@drcrallen drcrallen deleted the specialization-bug branch September 14, 2017 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants