Package net.sf.basedb.util.listable
Class ExtractToSampleTransformer
java.lang.Object
net.sf.basedb.util.listable.AbstractSourceItemTransformer
net.sf.basedb.util.listable.ExtractToSampleTransformer
- All Implemented Interfaces:
SourceItemTransformer
Source item transformer that transform extract items to their parent
samples. This implementation will only transform to the extract:s immediate
parent samples. Grandparents are not included (neither on the extract or
sample side).
To include all grandparents, combine this transformer with
SampleToParentSampleTransformer
and ExtractToParentExtractTransformer
.- Since:
- 3.5
- Author:
- Nicklas
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionExtractToSampleTransformer
(boolean childrensThatPushOnly) Create a new extract to sample transformer that only load parent samples to extracts that has a subtype with "push annotations" set. -
Method Summary
Methods inherited from class net.sf.basedb.util.listable.AbstractSourceItemTransformer
getSourceItemType, getTargetItemType, safeIdList
-
Field Details
-
pushOnly
private boolean pushOnly
-
-
Constructor Details
-
ExtractToSampleTransformer
public ExtractToSampleTransformer() -
ExtractToSampleTransformer
public ExtractToSampleTransformer(boolean childrensThatPushOnly) Create a new extract to sample transformer that only load parent samples to extracts that has a subtype with "push annotations" set. This functionality should only be used in the first transformation step.- Since:
- 3.16
- See Also:
-
-
Method Details
-
transform
Load the ID of all samples that are immediate parents to the given set of extracts.
-