Java Code Examples for org.apache.nifi.provenance.search.SearchableField#isAttribute()

The following examples show how to use org.apache.nifi.provenance.search.SearchableField#isAttribute() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: NamedSearchableField.java    From localization_nifi with Apache License 2.0 6 votes vote down vote up
@Override
public boolean equals(final Object obj) {
    if (obj == this) {
        return true;
    }
    if (obj == null) {
        return false;
    }

    if (!(obj instanceof SearchableField)) {
        return false;
    }

    final SearchableField other = (SearchableField) obj;
    return attribute == other.isAttribute() && this.searchableName.equals(other.getSearchableFieldName());
}
 
Example 2
Source File: NamedSearchableField.java    From nifi with Apache License 2.0 6 votes vote down vote up
@Override
public boolean equals(final Object obj) {
    if (obj == this) {
        return true;
    }
    if (obj == null) {
        return false;
    }

    if (!(obj instanceof SearchableField)) {
        return false;
    }

    final SearchableField other = (SearchableField) obj;
    return attribute == other.isAttribute() && this.searchableName.equals(other.getSearchableFieldName());
}
 
Example 3
Source File: ConvertEventToLuceneDocument.java    From localization_nifi with Apache License 2.0 5 votes vote down vote up
private void addField(final Document doc, final SearchableField field, final String value) {
    if (value == null || (!field.isAttribute() && !searchableEventFields.contains(field))) {
        return;
    }

    doc.add(new StringField(field.getSearchableFieldName(), value.toLowerCase(), Store.NO));
}
 
Example 4
Source File: IndexingAction.java    From localization_nifi with Apache License 2.0 5 votes vote down vote up
private void addField(final Document doc, final SearchableField field, final String value, final Store store) {
    if (value == null || (!field.isAttribute() && !searchableEventFields.contains(field))) {
        return;
    }

    doc.add(new StringField(field.getSearchableFieldName(), value.toLowerCase(), store));
}
 
Example 5
Source File: ConvertEventToLuceneDocument.java    From nifi with Apache License 2.0 5 votes vote down vote up
private void addField(final Document doc, final SearchableField field, final String value) {
    if (value == null || (!field.isAttribute() && !searchableEventFields.contains(field))) {
        return;
    }

    doc.add(new StringField(field.getSearchableFieldName(), value.toLowerCase(), Store.NO));
}
 
Example 6
Source File: IndexingAction.java    From nifi with Apache License 2.0 5 votes vote down vote up
private void addField(final Document doc, final SearchableField field, final String value, final Store store) {
    if (value == null || (!field.isAttribute() && !searchableEventFields.contains(field))) {
        return;
    }

    doc.add(new StringField(field.getSearchableFieldName(), value.toLowerCase(), store));
}