ParameterPushdown implements PushDownType { public Definition createDefinition() { Definition definition = new Definition(); definitions.add( definition ); return definition; }  List<Definition> getDefinitions(); Definition createDefinition(); @Override void init( TransMeta transMeta, DataServiceMeta dataService, PushDownOptimizationMeta optMeta ); @Override ListenableFuture<Boolean> activate( DataServiceExecutor executor, PushDownOptimizationMeta meta ); @Override OptimizationImpactInfo preview( DataServiceExecutor executor, PushDownOptimizationMeta meta ); static final String DEFINITIONS_LIST_ATTRIBUTE; static final String PARAMETER_ATTRIBUTE; static final String FIELD_NAME_ATTRIBUTE; static final String FORMAT_ATTRIBUTE; static final String DEFAULT_FORMAT; static final String PARAMETER_PREFIX; }
@Test public void testFormat() throws Exception { ParameterPushdown.Definition definition = parameterPushdown.createDefinition() .setFieldName( "field" ) .setParameter( "param" ); assertThat( definition.getFormat(), is( ParameterPushdown.DEFAULT_FORMAT ) ); definition.setFormat( "prefix: %s" ); assertThat( definition.getFormat(), is( "prefix: %s" ) ); }