@Test public void testCaseTransformFunctionWithIntResults() { for (TransformFunctionType functionType : BINARY_OPERATOR_TRANSFORM_FUNCTIONS) { testCaseQueryWithIntResults(String.format("%s(%s, %s)", functionType.getName(), INT_SV_COLUMN, String.format("%d", _intSVValues[INDEX_TO_COMPARE])), getExpectedIntResults(INT_SV_COLUMN, functionType)); testCaseQueryWithIntResults(String.format("%s(%s, %s)", functionType.getName(), LONG_SV_COLUMN, String.format("%d", _longSVValues[INDEX_TO_COMPARE])), getExpectedIntResults(LONG_SV_COLUMN, functionType)); testCaseQueryWithIntResults(String.format("%s(%s, %s)", functionType.getName(), FLOAT_SV_COLUMN, String.format("%f", _floatSVValues[INDEX_TO_COMPARE])), getExpectedIntResults(FLOAT_SV_COLUMN, functionType)); testCaseQueryWithIntResults(String.format("%s(%s, %s)", functionType.getName(), DOUBLE_SV_COLUMN, String.format("%.20f", _doubleSVValues[INDEX_TO_COMPARE])), getExpectedIntResults(DOUBLE_SV_COLUMN, functionType)); testCaseQueryWithIntResults(String.format("%s(%s, %s)", functionType.getName(), STRING_SV_COLUMN, String.format("'%s'", _stringSVValues[INDEX_TO_COMPARE])), getExpectedIntResults(STRING_SV_COLUMN, functionType)); } }
@Override public String getName() { return FUNCTION_NAME; }
CaseTransformFunction extends BaseTransformFunction { @Override public String getName() { return FUNCTION_NAME; } }
CaseTransformFunction extends BaseTransformFunction { @Override public String getName() { return FUNCTION_NAME; }  }
CaseTransformFunction extends BaseTransformFunction { @Override public String getName() { return FUNCTION_NAME; }  @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); }
CaseTransformFunction extends BaseTransformFunction { @Override public String getName() { return FUNCTION_NAME; }  @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); static final String FUNCTION_NAME; }