@Test public void testInstrFunction() throws SQLException { inputExpression("abcdefghijkl",PVarchar.INSTANCE, "fgh", 6, SortOrder.ASC); inputExpression("abcdefghijkl",PVarchar.INSTANCE, "fgh", 6, SortOrder.DESC); inputExpression("abcde fghijkl",PVarchar.INSTANCE, " fgh", 6, SortOrder.ASC); inputExpression("abcde fghijkl",PVarchar.INSTANCE, " fgh", 6, SortOrder.DESC); inputExpression("abcde fghijkl",PVarchar.INSTANCE, "lmn", 0, SortOrder.DESC); inputExpression("abcde fghijkl",PVarchar.INSTANCE, "lmn", 0, SortOrder.ASC); inputExpression("ABCDEFGHIJKL",PVarchar.INSTANCE, "FGH", 6, SortOrder.ASC); inputExpression("ABCDEFGHIJKL",PVarchar.INSTANCE, "FGH", 6, SortOrder.DESC); inputExpression("ABCDEFGHiJKL",PVarchar.INSTANCE, "iJKL", 9, SortOrder.ASC); inputExpression("ABCDEFGHiJKL",PVarchar.INSTANCE, "iJKL", 9, SortOrder.DESC); inputExpression("ABCDE FGHiJKL",PVarchar.INSTANCE, " ", 6, SortOrder.ASC); inputExpression("ABCDE FGHiJKL",PVarchar.INSTANCE, " ", 6, SortOrder.DESC); inputNullExpression("ABCDE FGHiJKL",PVarchar.INSTANCE, "", SortOrder.ASC); inputNullExpression("ABCDE FGHiJKL",PVarchar.INSTANCE, "", SortOrder.DESC); inputNullExpression("ABCDE FGHiJKL",PVarchar.INSTANCE, null, SortOrder.ASC); inputNullExpression("ABCDE FGHiJKL",PVarchar.INSTANCE, null, SortOrder.DESC); inputExpression("ABCDEABC",PVarchar.INSTANCE, "ABC", 1, SortOrder.ASC); inputExpression("ABCDEABC",PVarchar.INSTANCE, "ABC", 1, SortOrder.DESC); inputExpression("AB01CDEABC",PVarchar.INSTANCE, "01C", 3, SortOrder.ASC); inputExpression("AB01CDEABC",PVarchar.INSTANCE, "01C", 3, SortOrder.DESC); inputExpression("ABCD%EFGH",PVarchar.INSTANCE, "%", 5, SortOrder.ASC); inputExpression("ABCD%EFGH",PVarchar.INSTANCE, "%", 5, SortOrder.DESC); inputExpression("AɚɦFGH",PVarchar.INSTANCE, "ɚɦ", 2, SortOrder.ASC); inputExpression("AɚɦFGH",PVarchar.INSTANCE, "ɚɦ", 2, SortOrder.DESC); inputExpression("AɚɦFGH",PVarchar.INSTANCE, "ɦFGH", 3, SortOrder.ASC); inputExpression("AɚɦFGH",PVarchar.INSTANCE, "ɦFGH", 3, SortOrder.DESC); inputExpression("AɚɦF/GH",PVarchar.INSTANCE, "ɦF/GH", 3, SortOrder.ASC); inputExpression("AɚɦF/GH",PVarchar.INSTANCE, "ɦF/GH", 3, SortOrder.DESC); }
public InstrFunction() { }
InstrFunction extends ScalarFunction { public InstrFunction() { } }
InstrFunction extends ScalarFunction { public InstrFunction() { } InstrFunction();  InstrFunction(List<Expression> children); }
InstrFunction extends ScalarFunction { public InstrFunction() { } InstrFunction();  InstrFunction(List<Expression> children); @Override boolean evaluate(Tuple tuple, ImmutableBytesWritable ptr); @Override PDataType getDataType(); @Override String getName(); @Override void readFields(DataInput input); }
InstrFunction extends ScalarFunction { public InstrFunction() { } InstrFunction();  InstrFunction(List<Expression> children); @Override boolean evaluate(Tuple tuple, ImmutableBytesWritable ptr); @Override PDataType getDataType(); @Override String getName(); @Override void readFields(DataInput input); static final String NAME; }