use of org.apache.drill.exec.expr.holders.VarCharHolder in project drill by axbaretto.
the class TestByteComparisonFunctions method testBeforeLong.
@Test
public void testBeforeLong() {
final VarCharHolder left = goodbyeLong;
final VarCharHolder right = helloLong;
assertTrue(ByteFunctionHelpers.compare(left.buffer, left.start, left.end, right.buffer, right.start, right.end) == -1);
}
use of org.apache.drill.exec.expr.holders.VarCharHolder in project drill by axbaretto.
the class TestByteComparisonFunctions method testEqualLong.
@Test
public void testEqualLong() {
final VarCharHolder left = helloLong;
final VarCharHolder right = helloLong;
assertTrue(ByteFunctionHelpers.equal(left.buffer, left.start, left.end, right.buffer, right.start, right.end) == 1);
}
use of org.apache.drill.exec.expr.holders.VarCharHolder in project drill by axbaretto.
the class TestByteComparisonFunctions method testAfter.
@Test
public void testAfter() {
final VarCharHolder left = hello;
final VarCharHolder right = goodbye;
assertTrue(ByteFunctionHelpers.compare(left.buffer, left.start, left.end, right.buffer, right.start, right.end) == 1);
}
use of org.apache.drill.exec.expr.holders.VarCharHolder in project drill by axbaretto.
the class TestByteComparisonFunctions method testBefore.
@Test
public void testBefore() {
final VarCharHolder left = goodbye;
final VarCharHolder right = hello;
assertTrue(ByteFunctionHelpers.compare(left.buffer, left.start, left.end, right.buffer, right.start, right.end) == -1);
}
use of org.apache.drill.exec.expr.holders.VarCharHolder in project drill by axbaretto.
the class TestByteComparisonFunctions method testAfterLong.
@Test
public void testAfterLong() {
final VarCharHolder left = helloLong;
final VarCharHolder right = goodbyeLong;
assertTrue(ByteFunctionHelpers.compare(left.buffer, left.start, left.end, right.buffer, right.start, right.end) == 1);
}
Aggregations