Class OpenXJsonDeserializer
java.lang.Object
io.trino.hive.formats.line.openxjson.OpenXJsonDeserializer
- All Implemented Interfaces:
LineDeserializer
-
Field Summary
Fields inherited from interface io.trino.hive.formats.line.LineDeserializer
EMPTY_LINE_DESERIALIZER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeserialize(LineBuffer lineBuffer, PageBuilder builder) Deserialize the line into the page builder.getTypes()Required types for the deserialize page builder.static longparseDecimalHexOctalLong(String stringValue) static long
-
Constructor Details
-
OpenXJsonDeserializer
-
-
Method Details
-
getTypes
Description copied from interface:LineDeserializerRequired types for the deserialize page builder.- Specified by:
getTypesin interfaceLineDeserializer
-
deserialize
Description copied from interface:LineDeserializerDeserialize the line into the page builder. The implementation will declare the added positions in the page builder. The implementation is allowed to add zero or more positions to the builder.- Specified by:
deserializein interfaceLineDeserializer- Parameters:
lineBuffer- the line which may be emptybuilder- page builder for the declared types- Throws:
IOException- if line can not be decoded and processing should stop
-
parseLong
-
parseDecimalHexOctalLong
- Throws:
NumberFormatException
-