Package net.sf.basedb.util.listable
Class SampleToParentSampleTransformer
- java.lang.Object
-
- net.sf.basedb.util.listable.AbstractSourceItemTransformer
-
- net.sf.basedb.util.listable.SampleToParentSampleTransformer
-
- All Implemented Interfaces:
SourceItemTransformer
public class SampleToParentSampleTransformer extends AbstractSourceItemTransformer
Source item transformer implementation that transform sample items to their parent sample items. From the given set of sample ID:s the transformer will recursively load as many parent samples as possible. The source items may optionally be included in the target set.- Since:
- 3.5
- Author:
- Nicklas
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
includeSourcesInTarget
-
Constructor Summary
Constructors Constructor Description SampleToParentSampleTransformer(boolean includeSourcesInTarget)
Create a new sample to parent sample transformer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<Integer>
transform(TransformContext context, Set<Integer> source)
Transform the given set of source item ID:s into a set of target item ID:s-
Methods inherited from class net.sf.basedb.util.listable.AbstractSourceItemTransformer
getSourceItemType, getTargetItemType, safeIdList
-
-
-
-
Method Detail
-
transform
public Set<Integer> transform(TransformContext context, Set<Integer> source)
Description copied from interface:SourceItemTransformer
Transform the given set of source item ID:s into a set of target item ID:s
-
-