Github user karanjeets commented on the pull request:

    https://github.com/apache/oodt/pull/33#issuecomment-145977977
  
    Sure. Here are the details:
    
    * The Comparator expects two arguments - File object and a regular 
expression (compare item).
    * If all the below three conditions are met, then return **0**, else **1**:
      * Regular Expression shouldn't be NULL.
      * Regular Expression shouldn't be an empty string.
      * File's absolute path matches with the regular expression.
    
    **Example**
    
    If we pass the below regular expression, the comparator will return 0 for 
all the files where its absolute path contains ".svn" and returns 1 otherwise.
    
    ```
    .*\\.svn.*
    ```
    
    We are using this Comparator as part of a 
[DRAT's](https://github.com/chrismattmann/drat) new feature (--exclude) where 
we exclude processing of all files which contains some regular expression. In 
short, this feature exclude all files where Comparator returns 0.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to