Package io.trino.operator.scalar
Interface JsonExtract.JsonExtractor<T>
- All Known Implementing Classes:
JsonExtract.JsonSizeExtractor,JsonExtract.JsonValueJsonExtractor,JsonExtract.ObjectFieldJsonExtractor,JsonExtract.ScalarValueJsonExtractor
- Enclosing class:
JsonExtract
public static interface JsonExtract.JsonExtractor<T>
-
Method Summary
-
Method Details
-
extract
Executes 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
- Returns:
- the value, or null if not applicable
- Throws:
IOException
-