提交 7cd03daa authored 作者: Thomas Mueller's avatar Thomas Mueller

Formatting

上级 77a8e194
...@@ -349,7 +349,7 @@ public class DbSettings extends SettingsBase { ...@@ -349,7 +349,7 @@ public class DbSettings extends SettingsBase {
public static DbSettings getInstance(HashMap<String, String> s) { public static DbSettings getInstance(HashMap<String, String> s) {
return new DbSettings(s); return new DbSettings(s);
} }
/** /**
* INTERNAL. * INTERNAL.
* Get the default settings. Those must not be modified. * Get the default settings. Those must not be modified.
......
...@@ -288,7 +288,7 @@ public class ConditionAndOr extends Condition { ...@@ -288,7 +288,7 @@ public class ConditionAndOr extends Condition {
public boolean isDisjunctive() { public boolean isDisjunctive() {
return andOrType == OR || left.isDisjunctive() || right.isDisjunctive(); return andOrType == OR || left.isDisjunctive() || right.isDisjunctive();
} }
/** /**
* Get the left or the right sub-expression of this condition. * Get the left or the right sub-expression of this condition.
* *
......
...@@ -199,7 +199,7 @@ public class ConditionIn extends Condition { ...@@ -199,7 +199,7 @@ public class ConditionIn extends Condition {
public boolean isDisjunctive() { public boolean isDisjunctive() {
return true; return true;
} }
/** /**
* Add an additional element if possible. Example: given two conditions * Add an additional element if possible. Example: given two conditions
* A IN(1, 2) OR A=3, the constant 3 is added: A IN(1, 2, 3). * A IN(1, 2) OR A=3, the constant 3 is added: A IN(1, 2, 3).
......
...@@ -150,7 +150,7 @@ public class ConditionInConstantSet extends Condition { ...@@ -150,7 +150,7 @@ public class ConditionInConstantSet extends Condition {
@Override @Override
public boolean isDisjunctive() { public boolean isDisjunctive() {
return true; return true;
} }
/** /**
* Add an additional element if possible. Example: given two conditions * Add an additional element if possible. Example: given two conditions
......
...@@ -187,5 +187,6 @@ public class ConditionInSelect extends Condition { ...@@ -187,5 +187,6 @@ public class ConditionInSelect extends Condition {
@Override @Override
public boolean isDisjunctive() { public boolean isDisjunctive() {
return true; return true;
} }
} }
...@@ -264,7 +264,7 @@ public abstract class Expression { ...@@ -264,7 +264,7 @@ public abstract class Expression {
/** /**
* Allows to check if the related expression is under conjunctive format. * Allows to check if the related expression is under conjunctive format.
* *
* @return if the related expression has the logic operator OR. * @return if the related expression has the logic operator OR.
*/ */
public boolean isDisjunctive() { public boolean isDisjunctive() {
......
...@@ -332,22 +332,23 @@ public class IndexCondition { ...@@ -332,22 +332,23 @@ public class IndexCondition {
} }
} }
/** /**
* Check if this index condition is of the type equality. * Check if this index condition is of the type equality.
* *
* @param constantExpression if the inner node is a constant expression * @param constantExpression if the inner node
* is a constant expression
* @return true if this is a equality condition * @return true if this is a equality condition
*/ */
public boolean isEquality(boolean constantExpression) { public boolean isEquality(boolean constantExpression) {
switch (compareType) { switch (compareType) {
case Comparison.EQUAL: case Comparison.EQUAL:
case Comparison.EQUAL_NULL_SAFE: case Comparison.EQUAL_NULL_SAFE:
return !constantExpression || expression.isConstant(); return !constantExpression || expression.isConstant();
default: default:
return false; return false;
} }
} }
public int getCompareType() { public int getCompareType() {
return compareType; return compareType;
} }
......
...@@ -24,7 +24,7 @@ class RangeCursor implements Cursor { ...@@ -24,7 +24,7 @@ class RangeCursor implements Cursor {
RangeCursor(long start, long end) { RangeCursor(long start, long end) {
this(start, end, 1); this(start, end, 1);
} }
RangeCursor(long start, long end, long step) { RangeCursor(long start, long end, long step) {
this.start = start; this.start = start;
this.end = end; this.end = end;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论