Exemplo n.º 1
0
 /**
  * Only include rows which have an empty value for this field
  *
  * @param fieldName The field to check nullity
  * @return ScannerBuilder
  */
 public EntityScannerBuilder<E> addIsNullFilter(String fieldName) {
   RegexEntityFilter regexEntityFilter =
       new RegexEntityFilter(
           entityMapper.getEntitySchema(), entityMapper.getEntitySerDe(), fieldName, ".+", false);
   filterList.add(regexEntityFilter.getFilter());
   return this;
 }
Exemplo n.º 2
0
 /**
  * Add a Regex Equality Filter to the Scanner, Will Filter Results Not Equal to the Filter Value
  *
  * @param fieldName The name of the column you want to apply the filter on
  * @param filterValue The regular expression to use for comparison
  * @return ScannerBuilder
  */
 public EntityScannerBuilder<E> addRegexMatchFilter(String fieldName, String regexString) {
   RegexEntityFilter regexEntityFilter =
       new RegexEntityFilter(
           entityMapper.getEntitySchema(), entityMapper.getEntitySerDe(), fieldName, regexString);
   filterList.add(regexEntityFilter.getFilter());
   return this;
 }