-
Notifications
You must be signed in to change notification settings - Fork 866
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start implementation of index optimized queries (new sql executor)
- Loading branch information
1 parent
f2ae741
commit 632b8d8
Showing
11 changed files
with
442 additions
and
18 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
core/src/main/java/com/orientechnologies/orient/core/sql/executor/IndexSearchDescriptor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package com.orientechnologies.orient.core.sql.executor; | ||
|
||
import com.orientechnologies.orient.core.command.OCommandContext; | ||
import com.orientechnologies.orient.core.index.OIndex; | ||
import com.orientechnologies.orient.core.sql.parser.OAndBlock; | ||
import com.orientechnologies.orient.core.sql.parser.OBooleanExpression; | ||
|
||
/** | ||
* Created by luigidellaquila on 26/07/16. | ||
*/ | ||
public class IndexSearchDescriptor { | ||
protected OIndex idx; | ||
protected OAndBlock keyCondition; | ||
protected OBooleanExpression remainingCondition; | ||
|
||
public IndexSearchDescriptor(OIndex idx, OAndBlock keyCondition, OBooleanExpression remainingCondition) { | ||
this.idx = idx; | ||
this.keyCondition = keyCondition; | ||
this.remainingCondition = remainingCondition; | ||
} | ||
|
||
public IndexSearchDescriptor() { | ||
|
||
} | ||
|
||
public int cost(OCommandContext ctx) { | ||
return Integer.MAX_VALUE; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.