Package io.trino.hive.formats.line
Interface LineDeserializer
- All Known Implementing Classes:
CsvDeserializer,JsonDeserializer,OpenXJsonDeserializer,RegexDeserializer,SimpleDeserializer
public interface LineDeserializer
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoiddeserialize(LineBuffer lineBuffer, PageBuilder builder) Deserialize the line into the page builder.getTypes()Required types for the deserialize page builder.
-
Field Details
-
EMPTY_LINE_DESERIALIZER
-
-
Method Details
-
getTypes
Required types for the deserialize page builder. -
deserialize
Deserialize 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.- 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 stopRuntimeException- if line can not be decoded and processing should stop
-