gov.bnl.star.offline.scheduler.dataset.datasetManipulators
Class DropMatchingRegX
java.lang.Object
gov.bnl.star.offline.scheduler.dataset.datasetManipulators.DropMatchingRegX
- All Implemented Interfaces:
- DatasetManipulator
public class DropMatchingRegX
- extends java.lang.Object
- implements DatasetManipulator
Drop any entry matching the configured regular expression
- Author:
- Levente B. Hajdu
Constructor Summary |
DropMatchingRegX(java.lang.String regX)
Creates a new instance of DropMatch |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DropMatchingRegX
public DropMatchingRegX(java.lang.String regX)
- Creates a new instance of DropMatch
- Parameters:
regX
- the regular expression, that will be dropped if it matches any entry in the dataset. The defualt value the ".*" (everything)
modify
public void modify(Dataset dataset,
Request request)
- Used to pass the dataset to the dataset manipulator
- Specified by:
modify
in interface DatasetManipulator
- Parameters:
dataset
- The dataset to be modifyedrequest
- The request object of the current request for with will use the dataset
setMustMatch
public void setMustMatch(java.lang.String regxMatch)
- Parameters:
regxMatch
- Any data set entry matching this regular expression will be dropped from the dataset.
getMustMatch
public java.lang.String getMustMatch()
- Returns:
- Any dataset entry matching this regular expression will be dropped from the dataset.
requirementsSatisfied
public boolean requirementsSatisfied()
- Specified by:
requirementsSatisfied
in interface DatasetManipulator
- Returns:
- true of the class was able to modify the dataset as requested. If it could not meet the request it returns false.
Copyright © 2002-2004 STAR collaboration - Brookhaven National Laboratory. All Rights Reserved.