Package io.trino.operator.scalar
Class JsonExtract.JsonSizeExtractor
java.lang.Object
io.trino.operator.scalar.JsonExtract.JsonSizeExtractor
- All Implemented Interfaces:
JsonExtract.JsonExtractor<Long>
- Enclosing class:
JsonExtract
public static class JsonExtract.JsonSizeExtractor
extends Object
implements JsonExtract.JsonExtractor<Long>
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
JsonSizeExtractor
public JsonSizeExtractor()
-
-
Method Details
-
extract
Description 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<Long>- Returns:
- the value, or null if not applicable
- Throws:
IOException
-