public class FSDocumentSelector extends Object implements DocumentSelector
excludeFileName
pattern is applied first (if it isn't null).
Then the includeFileName
pattern is applied (if it isn't null),
and finally, the size limit is applied if it is above 0.Constructor and Description |
---|
FSDocumentSelector(Pattern includeFileName,
Pattern excludeFileName,
long minFileSizeBytes,
long maxFileSizeBytes) |
Modifier and Type | Method and Description |
---|---|
boolean |
select(Metadata metadata)
Checks if a document with the given metadata matches the specified
selection criteria.
|
public boolean select(Metadata metadata)
DocumentSelector
select
in interface DocumentSelector
metadata
- document metadatatrue
if the document matches the selection criteria,
false
otherwiseCopyright © 2007–2018 The Apache Software Foundation. All rights reserved.