|
||||||||||
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.SortByRegX
public class SortByRegX
This is a sorter for large datasets that do not fit into memory. It sorts subsets of the main dataset, and writes each one of these to a file in step one. The in step two these are read back and mered into the final sorted dataset. $Id
Constructor Summary | |
---|---|
SortByRegX(java.lang.String sortByCaptureGroup)
This object is used to sort datasets by a parameter of the values in the dataset. |
|
SortByRegX(java.lang.String sortByCaptureGroups,
java.lang.String captureGroupsOrder)
Sort entries by a set of capture groups Example: Given: Typcal entry: 9404397::NFS::BNL::localhost::/star/data41/reco/productionMinBias/ReversedFullField/P05ic/2004/023::st_physics_adc_5023001_raw_1050014.MuDst.root::155 Regular expression for eantry : "[0-9]*::[a-zA-Z]*::[a-zA-Z]*::[a-zA-Z0-9:.]*::[^:]*::[^:/]*::[0-9]*.*" Sort by -storage- then by -path- then by -fileName- : SortByRegX("[0-9]*::([a-zA-Z]*)::[a-zA-Z]*::[a-zA-Z0-9:.]*::([^:]*)::([^:/]*)::[0-9]*.*", "$1$2$3") |
Method Summary | |
---|---|
int |
getMaxBufferSize()
|
void |
modify(Dataset dataset,
Request request)
Used to pass the dataset to the dataset manipulator |
boolean |
requirementsSatisfied()
|
void |
setMaxBufferSize(int maxBufferSize)
Sets how big the the max buffer size in memory sould be. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SortByRegX(java.lang.String sortByCaptureGroup)
sortByCaptureGroup
- A regular expression capture group.public SortByRegX(java.lang.String sortByCaptureGroups, java.lang.String captureGroupsOrder)
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 setMaxBufferSize(int maxBufferSize)
public int getMaxBufferSize()
public boolean requirementsSatisfied()
requirementsSatisfied
in interface DatasetManipulator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |