@Test public void testStringLowerTransformFunction() { ExpressionContext expression = QueryContextConverterUtils.getExpression(String.format("lower(%s)", STRING_ALPHANUM_SV_COLUMN)); TransformFunction transformFunction = TransformFunctionFactory.get(expression, _dataSourceMap); Assert.assertTrue(transformFunction instanceof ScalarTransformFunctionWrapper); Assert.assertEquals(transformFunction.getName(), "lower"); String[] expectedValues = new String[NUM_ROWS]; for (int i = 0; i < NUM_ROWS; i++) { expectedValues[i] = _stringAlphaNumericSVValues[i].toLowerCase(); } testTransformFunction(transformFunction, expectedValues); }
@Override public String getName() { return _name; }
ScalarTransformFunctionWrapper extends BaseTransformFunction { @Override public String getName() { return _name; } }
ScalarTransformFunctionWrapper extends BaseTransformFunction { @Override public String getName() { return _name; } ScalarTransformFunctionWrapper(FunctionInfo functionInfo); }
ScalarTransformFunctionWrapper extends BaseTransformFunction { @Override public String getName() { return _name; } ScalarTransformFunctionWrapper(FunctionInfo functionInfo); @Override String getName(); @Override void init(List<TransformFunction> arguments, Map<String, DataSource> dataSourceMap); @Override TransformResultMetadata getResultMetadata(); @Override int[] transformToIntValuesSV(ProjectionBlock projectionBlock); @Override long[] transformToLongValuesSV(ProjectionBlock projectionBlock); @Override float[] transformToFloatValuesSV(ProjectionBlock projectionBlock); @Override double[] transformToDoubleValuesSV(ProjectionBlock projectionBlock); @Override String[] transformToStringValuesSV(ProjectionBlock projectionBlock); @Override byte[][] transformToBytesValuesSV(ProjectionBlock projectionBlock); }
ScalarTransformFunctionWrapper extends BaseTransformFunction { @Override public String getName() { return _name; } ScalarTransformFunctionWrapper(FunctionInfo functionInfo); @Override String getName(); @Override void init(List<TransformFunction> arguments, Map<String, DataSource> dataSourceMap); @Override TransformResultMetadata getResultMetadata(); @Override int[] transformToIntValuesSV(ProjectionBlock projectionBlock); @Override long[] transformToLongValuesSV(ProjectionBlock projectionBlock); @Override float[] transformToFloatValuesSV(ProjectionBlock projectionBlock); @Override double[] transformToDoubleValuesSV(ProjectionBlock projectionBlock); @Override String[] transformToStringValuesSV(ProjectionBlock projectionBlock); @Override byte[][] transformToBytesValuesSV(ProjectionBlock projectionBlock);  }