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) |
public boolean select(Metadata metadata)
DocumentSelector
select
in interface DocumentSelector
metadata
- document metadatatrue
if the document matches the selection criteria,
false
otherwiseCopyright © 2007–2016 The Apache Software Foundation. All rights reserved.