FROM- The input type of the first extractor.
OVER- The output type of the first and the input type of the second extractor.
TO- The output type of the second extractor and the output type of the over all extraction.
@Internal public class ConcatenatedExtract<FROM,OVER,TO> extends Object implements Extractor<FROM,TO>
|Constructor and Description|
Combines two extractors which will be executed one after each other.
|Modifier and Type||Method and Description|
Extracts/Converts the given input to an object of the output type.
public ConcatenatedExtract(Extractor<FROM,OVER> e1, Extractor<OVER,TO> e2)
e1- First extractor: This extractor gets applied to the input data first. Its output as then passed as input to the second extractor.
e2- Second extractor: This extractor gets the output of the first extractor as input. Its output is then the result of the over all extraction.
public TO extract(FROM in)
public <OUT> ConcatenatedExtract<FROM,TO,OUT> add(Extractor<TO,OUT> e3)
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.