Skip to content
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

Remove QueryRunner.run(Query, responseContext) and related legacy methods #4482

Merged
merged 8 commits into from
Aug 11, 2017

Conversation

leventov
Copy link
Member

Fixes #4324. Adds Query.getRunner(walker, responseContext) method.

@leventov leventov added this to the 0.11.0 milestone Jun 28, 2017
@@ -197,7 +199,8 @@ public void tearDown() throws Exception
@OutputTimeUnit(TimeUnit.MILLISECONDS)
public void queryNative(Blackhole blackhole) throws Exception
{
final Sequence<Row> resultSequence = groupByQuery.run(walker, Maps.<String, Object>newHashMap());
HashMap<String, Object> context = Maps.newHashMap();
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we remove this local var?

Copy link
Member Author

Choose a reason for hiding this comment

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

Removed

Iterable<Row> results = Sequences.toList(mergedRunner.run(allGranQuery, context), Lists.<Row>newArrayList());
Iterable<Row> results = Sequences.toList(
mergedRunner.run(QueryPlus.wrap(allGranQuery), context),
new ArrayList<Row>()
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we leave Lists.<Row>newArrayList() ?

Copy link
Member Author

@leventov leventov Jul 27, 2017

Choose a reason for hiding this comment

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

There is no official preference. I suggested to standardize on new ArrayList<>() form before, but it was not supported: #3676 (comment)

@jihoonson jihoonson merged commit bf28d07 into apache:master Aug 11, 2017
@leventov leventov deleted the clean-queryRunner-legacy branch August 11, 2017 00:52
@leventov
Copy link
Member Author

@jihoonson thanks

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