|
||||||||||
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.DropDuplicatesFromSortedList
public class DropDuplicatesFromSortedList
A dataset manipulator used to drop entries with matching regular expression capture groups from a list sorted be that capture groups. Note that it will not work if the list is not sorted by the capture group.
Constructor Summary | |
---|---|
DropDuplicatesFromSortedList(java.lang.String regXCaptureGroup)
Creates a new instance of DropDuplicatesFromSortedList Note any Entry that has a blank value for the capure group will not be dropped. |
Method Summary | |
---|---|
void |
addPreferredCopyRegx(java.lang.String pref,
java.lang.String regx)
This function is used to select one entry when two or more entrys are found matching the regx Example of useage: //pic NFS files farst the local files then HPSS files addPreferredCopyRegx("B", ".*::local::.*::.*::.*::.*::.*"); addPreferredCopyRegx("A", ".*::NFS::.*::.*::.*::.*::.*"); addPreferredCopyRegx("C", ".*::HPSS::.*::.*::.*::.*::.*"); |
void |
modify(Dataset dataset,
Request request)
Used to pass the dataset to the dataset manipulator |
boolean |
requirementsSatisfied()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DropDuplicatesFromSortedList(java.lang.String regXCaptureGroup)
regXCaptureGroup
- 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 pref, java.lang.String regx)
pref
- 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 |