Package io.trino.hive.formats.avro
Class HiveAvroTypeBlockHandler.WriterUnionCoercedIntoRowBlockBuildingDecoder
java.lang.Object
io.trino.hive.formats.avro.HiveAvroTypeBlockHandler.WriterUnionCoercedIntoRowBlockBuildingDecoder
- All Implemented Interfaces:
BlockBuildingDecoder
- Enclosing class:
HiveAvroTypeBlockHandler
public static class HiveAvroTypeBlockHandler.WriterUnionCoercedIntoRowBlockBuildingDecoder
extends Object
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionWriterUnionCoercedIntoRowBlockBuildingDecoder(WrittenUnionReadAction writtenUnionReadAction, AvroTypeBlockHandler avroTypeManager) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddecodeIntoBlock(int blockBuilderIndex, org.apache.avro.io.Decoder decoder, BlockBuilder builder) voiddecodeIntoBlock(org.apache.avro.io.Decoder decoder, BlockBuilder builder) protected static int[]getIndexToChannel(List<org.apache.avro.Schema> schemas) protected static voidmakeSingleRowWithTagAndAllFieldsNullButOne(int outputChannel, int totalChannels, BlockBuildingDecoder blockBuildingDecoder, org.apache.avro.io.Decoder decoder, BlockBuilder builder)
-
Field Details
-
blockBuildingDecoders
-
-
Constructor Details
-
WriterUnionCoercedIntoRowBlockBuildingDecoder
public WriterUnionCoercedIntoRowBlockBuildingDecoder(WrittenUnionReadAction writtenUnionReadAction, AvroTypeBlockHandler avroTypeManager) throws AvroTypeException - Throws:
AvroTypeException
-
-
Method Details
-
decodeIntoBlock
public void decodeIntoBlock(org.apache.avro.io.Decoder decoder, BlockBuilder builder) throws IOException - Specified by:
decodeIntoBlockin interfaceBlockBuildingDecoder- Throws:
IOException
-
makeSingleRowWithTagAndAllFieldsNullButOne
protected static void makeSingleRowWithTagAndAllFieldsNullButOne(int outputChannel, int totalChannels, BlockBuildingDecoder blockBuildingDecoder, org.apache.avro.io.Decoder decoder, BlockBuilder builder) throws IOException - Throws:
IOException
-
getIndexToChannel
-
decodeIntoBlock
protected void decodeIntoBlock(int blockBuilderIndex, org.apache.avro.io.Decoder decoder, BlockBuilder builder) throws IOException - Throws:
IOException
-