/** * Get a new instance of this filter with the given value. * * @param value Value of the new filter. * * @return a new instance of this filter with the given value */ public ExtractionFilter withValue(String value) { return new ExtractionFilter(getDimension(), value, getExtractionFunction()); }
/** * Get a new instance of this filter with the given ExtractionFunction. * * @param extractionFunction ExtractionFunction of the new filter. * * @return a new instance of this filter with the given extraction function */ public ExtractionFilter withExtractionFunction(ExtractionFunction extractionFunction) { return new ExtractionFilter(getDimension(), value, extractionFunction); }
@Override public ExtractionFilter withDimension(Dimension dimension) { return new ExtractionFilter(dimension, value, getExtractionFunction()); }
.getExtractionFunction(); if (extractionFunction.isPresent()) { filterBuilder = row -> new ExtractionFilter( dimension, row.get(dimension.getKey()),