Package net.sf.basedb.util.listable
Class ExtractToParentExtractTransformer
java.lang.Object
net.sf.basedb.util.listable.AbstractSourceItemTransformer
net.sf.basedb.util.listable.ExtractToParentExtractTransformer
- All Implemented Interfaces:
SourceItemTransformer
Source item transformer implementation that transform extract items to their
parent extract items. From the given set of extract ID:s the transformer will
recursively load as many parent extracts as possible. The source items
may optionally be included in the target set.
- Since:
- 3.5
- Author:
- Nicklas
-
Field Summary
-
Constructor Summary
ConstructorDescriptionExtractToParentExtractTransformer
(boolean includeSourcesInTarget) Create a new extract to parent extract transformer.ExtractToParentExtractTransformer
(boolean includeSourcesInTarget, boolean childrensThatPushOnly) Create a new extract to parent extract transformer that only load parents to extracts that has a subtype with "push annotations" set.ExtractToParentExtractTransformer
(boolean includeSourcesInTarget, CollectExtracts collectedExtracts) Create a new extract to parent extract transformer that is considering extracts collected on downstream derived and raw bioassays. -
Method Summary
Methods inherited from class net.sf.basedb.util.listable.AbstractSourceItemTransformer
getSourceItemType, getTargetItemType, safeIdList
-
Field Details
-
includeSourcesInTarget
private final boolean includeSourcesInTarget -
collectedExtracts
-
pushOnly
private boolean pushOnly
-
-
Constructor Details
-
ExtractToParentExtractTransformer
public ExtractToParentExtractTransformer(boolean includeSourcesInTarget) Create a new extract to parent extract transformer.- Parameters:
includeSourcesInTarget
- TRUE to include the source items in the target
-
ExtractToParentExtractTransformer
public ExtractToParentExtractTransformer(boolean includeSourcesInTarget, boolean childrensThatPushOnly) Create a new extract to parent extract transformer that only load parents 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:
-
ExtractToParentExtractTransformer
public ExtractToParentExtractTransformer(boolean includeSourcesInTarget, CollectExtracts collectedExtracts) Create a new extract to parent extract transformer that is considering extracts collected on downstream derived and raw bioassays.- Parameters:
includeSourcesInTarget
- TRUE to include the source items in the targetcollectedExtracts
- Information about extracts found on downstream derived and raw bioassays
-
-
Method Details
-
transform
Description copied from interface:SourceItemTransformer
Transform the given set of source item ID:s into a set of target item ID:s
-