Package io.trino.operator.scalar
Class JsonExtract.JsonValueJsonExtractor
- java.lang.Object
-
- io.trino.operator.scalar.JsonExtract.JsonValueJsonExtractor
-
- All Implemented Interfaces:
JsonExtract.JsonExtractor<io.airlift.slice.Slice>
- Enclosing class:
- JsonExtract
public static class JsonExtract.JsonValueJsonExtractor extends Object implements JsonExtract.JsonExtractor<io.airlift.slice.Slice>
-
-
Constructor Summary
Constructors Constructor Description JsonValueJsonExtractor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.airlift.slice.Sliceextract(com.fasterxml.jackson.core.JsonParser jsonParser)Executes the extraction on the existing content of the JsonParser and outputs the match.
-
-
-
Method Detail
-
extract
public io.airlift.slice.Slice extract(com.fasterxml.jackson.core.JsonParser jsonParser) throws IOExceptionDescription copied from interface:JsonExtract.JsonExtractorExecutes the extraction on the existing content of the JsonParser and outputs the match. Notes:- JsonParser must be on the FIRST token of the value to be processed when extract is called
- INVARIANT: when extract() returns, the current token of the parser will be the LAST token of the value
- Specified by:
extractin interfaceJsonExtract.JsonExtractor<io.airlift.slice.Slice>- Returns:
- the value, or null if not applicable
- Throws:
IOException
-
-