|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gov.bnl.star.offline.scheduler.dataset.datasetManipulators.DropDuplicateRegX
public class DropDuplicateRegX
A dataset manipulator used to drop entries with matching regular expression capture groups. This class is a composite between SortByRegX and DropDuplicatesForSortedList.
Constructor Summary | |
---|---|
DropDuplicateRegX(java.lang.String regX)
Creates a new instance of DropDuplicateRegX |
Method Summary | |
---|---|
void |
addPreferredCopyRegx(java.lang.String preference,
java.lang.String RegX)
When more then one file is found matching a regular expression capture group, normally the first one is kept. |
void |
modify(Dataset dataset,
Request request)
Used to pass the dataset to the dataset manipulator Note: This DatasetManipulator -will- reorder the order of entries |
boolean |
requirementsSatisfied()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DropDuplicateRegX(java.lang.String regX)
regX
- A regular expression capture group. If mroe then one entry matches the capture group, only one one copy will be kept, all other will be dropted.Method Detail |
---|
public void modify(Dataset dataset, Request request)
modify
in interface DatasetManipulator
dataset
- The dataset to be modifyedrequest
- The request object of the current request for with will use the datasetpublic void addPreferredCopyRegx(java.lang.String preference, java.lang.String RegX)
preference
- A string that will be alphabetically sorted to determine the preference. .A. has a higher rank then .Z..Regx
- A regular expression the string must match in order to be assigned this ranking.public boolean requirementsSatisfied()
requirementsSatisfied
in interface DatasetManipulator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |