Class BooleanLogicTest
- java.lang.Object
-
- org.apache.calcite.adapter.elasticsearch.BooleanLogicTest
-
public class BooleanLogicTest extends java.lang.Object
Test of different boolean expressions (some more complex than others).
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
NAME
static EmbeddedElasticsearchPolicy
NODE
-
Constructor Summary
Constructors Constructor Description BooleanLogicTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
assertEmpty(java.lang.String query)
private void
assertSingle(java.lang.String query)
void
expressions()
private CalciteAssert.ConnectionFactory
newConnectionFactory()
void
notExpression()
Tests negations (NOT
operator).static void
setupInstance()
Used to createzips
index and insert some data
-
-
-
Field Detail
-
NODE
public static final EmbeddedElasticsearchPolicy NODE
-
NAME
private static final java.lang.String NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
setupInstance
public static void setupInstance() throws java.lang.Exception
Used to createzips
index and insert some data- Throws:
java.lang.Exception
- when ES node setup failed
-
newConnectionFactory
private CalciteAssert.ConnectionFactory newConnectionFactory()
-
expressions
public void expressions()
-
notExpression
public void notExpression()
Tests negations (NOT
operator).
-
assertSingle
private void assertSingle(java.lang.String query)
-
assertEmpty
private void assertEmpty(java.lang.String query)
-
-