@Test public void test_ignoreField_no() { assertTrue(processor.ignoreField(null, null, null)); assertTrue(processor.ignoreField("", null, null)); assertTrue(processor.ignoreField(" ", null, null)); assertFalse(processor.ignoreField("ABC", null, null)); assertFalse(processor.ignoreField("ABC", Collections.emptyList(), Collections.emptyList())); }
protected boolean ignoreField(final String fieldName, final List<Pattern> includeFields, final List<Pattern> excludeFields) { if (fieldName == null || fieldName.trim().isEmpty()) { return true; } if (match(excludeFields, fieldName)) { return true; } if (includeFields != null && !includeFields.isEmpty() && !match(includeFields, fieldName)) { return true; } return false; }
AbstractExtractToAttributesProcessor extends AbstractProcessor { protected boolean ignoreField(final String fieldName, final List<Pattern> includeFields, final List<Pattern> excludeFields) { if (fieldName == null || fieldName.trim().isEmpty()) { return true; } if (match(excludeFields, fieldName)) { return true; } if (includeFields != null && !includeFields.isEmpty() && !match(includeFields, fieldName)) { return true; } return false; } }
AbstractExtractToAttributesProcessor extends AbstractProcessor { protected boolean ignoreField(final String fieldName, final List<Pattern> includeFields, final List<Pattern> excludeFields) { if (fieldName == null || fieldName.trim().isEmpty()) { return true; } if (match(excludeFields, fieldName)) { return true; } if (includeFields != null && !includeFields.isEmpty() && !match(includeFields, fieldName)) { return true; } return false; }  }
AbstractExtractToAttributesProcessor extends AbstractProcessor { protected boolean ignoreField(final String fieldName, final List<Pattern> includeFields, final List<Pattern> excludeFields) { if (fieldName == null || fieldName.trim().isEmpty()) { return true; } if (match(excludeFields, fieldName)) { return true; } if (includeFields != null && !includeFields.isEmpty() && !match(includeFields, fieldName)) { return true; } return false; }  @Override Set<Relationship> getRelationships(); @OnScheduled void onScheduled(final ProcessContext context); @Override void onTrigger(ProcessContext context, ProcessSession session); }
AbstractExtractToAttributesProcessor extends AbstractProcessor { protected boolean ignoreField(final String fieldName, final List<Pattern> includeFields, final List<Pattern> excludeFields) { if (fieldName == null || fieldName.trim().isEmpty()) { return true; } if (match(excludeFields, fieldName)) { return true; } if (includeFields != null && !includeFields.isEmpty() && !match(includeFields, fieldName)) { return true; } return false; }  @Override Set<Relationship> getRelationships(); @OnScheduled void onScheduled(final ProcessContext context); @Override void onTrigger(ProcessContext context, ProcessSession session); static final Relationship REL_SUCCESS; static final Relationship REL_FAILURE; }