Skip to content

[IOTDB-6]Value filter query optimization#79

Closed
little-emotion wants to merge 12 commits intoaggregatefrom
value_filter_query_optimization
Closed

[IOTDB-6]Value filter query optimization#79
little-emotion wants to merge 12 commits intoaggregatefrom
value_filter_query_optimization

Conversation

@little-emotion
Copy link
Member

No description provided.

@MyXOF
Copy link
Member

MyXOF commented Mar 4, 2019

Please resolve conflicts with master and run mvn apache-rat:check to make sure your apache license header is correct.

* @return true if has next, false if not.
* @throws IOException
*/
public boolean hasNext() throws IOException {
Copy link
Member

Choose a reason for hiding this comment

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

This method need be coveraged all by unit test coverage plugin.

if (tsPrimitiveType == null) {
Object value = reader.getValueInTimestamp(timestamp);
if (value == null) {
rowRecord.addField(new Field(null));
Copy link
Member

Choose a reason for hiding this comment

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

add a null Field variable

public class PriorityMergeReaderByTimestamp implements EngineReaderByTimeStamp {

private List<EngineReaderByTimeStamp> readerList = new ArrayList<>();
private List<Integer> priorityList = new ArrayList<>();
Copy link
Member

Choose a reason for hiding this comment

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

remove this unused variable

public Object getValueInTimestamp(long timestamp) throws IOException {
Object value = null;
for (int i = readerList.size() - 1; i >= 0; i--) {
value = readerList.get(i).getValueInTimestamp(timestamp);
Copy link
Member

Choose a reason for hiding this comment

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

just return value, if (value != null) { is no needed

@Override
public TsPrimitiveType getValueInTimestamp(long timestamp) throws IOException {
public Object getValueInTimestamp(long timestamp) throws IOException {
while (hasNext()) {
Copy link
Member

Choose a reason for hiding this comment

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

remove hasNext method and next invoking in this method

@MyXOF
Copy link
Member

MyXOF commented Mar 8, 2019

Please solve travis error(merge master) and write an email to briefly describe your work.

Copy link
Member

@jixuan1989 jixuan1989 left a comment

Choose a reason for hiding this comment

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

This PR is blocked until PR of aggregation is merged.

@little-emotion little-emotion changed the base branch from master to aggregate April 3, 2019 02:34
@little-emotion little-emotion deleted the value_filter_query_optimization branch April 4, 2019 03:05
mychaow pushed a commit that referenced this pull request Dec 13, 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.

5 participants