Class BlockSerializer
- java.lang.Object
-
- com.fasterxml.jackson.databind.JsonSerializer<T>
-
- com.fasterxml.jackson.databind.ser.std.StdSerializer<Block>
-
- com.amazonaws.athena.connector.lambda.serde.BlockSerializer
-
- All Implemented Interfaces:
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable
,com.fasterxml.jackson.databind.jsonschema.SchemaAware
,Serializable
@Deprecated public class BlockSerializer extends com.fasterxml.jackson.databind.ser.std.StdSerializer<Block>
Deprecated.BlockSerDeV3
should be used insteadUses either an explicit BlockAllocator or a BlockAllocatorRegistry to handle memory pooling associated with serializing blocks. Blocks are serialized as an Apache Arrow Schema + Apache Arrow Record Batch. If you need to serialize multiple Blocks of the same Schema we do not recommend using this class since it will result in the same schema being serialized multiple times. It may be more efficient for you to serialize the Schema once, separately, and then each Record Batch. This class also attempts to make use of the allocator_id field of the Block so that it will reuse the same allocator id when deserializing. This can be helpful when attempting to limit the number of copy operations that are required to move a Block around. It also allows you to put tighter control around which parts of your query execution get which memory pool / limit.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
ALLOCATOR_ID_FIELD_NAME
Deprecated.protected static String
BATCH_FIELD_NAME
Deprecated.protected static String
SCHEMA_FIELD_NAME
Deprecated.
-
Constructor Summary
Constructors Constructor Description BlockSerializer()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
serialize(Block block, com.fasterxml.jackson.core.JsonGenerator jsonGenerator, com.fasterxml.jackson.databind.SerializerProvider serializerProvider)
Deprecated.-
Methods inherited from class com.fasterxml.jackson.databind.ser.std.StdSerializer
_neitherNull, _nonEmpty, acceptJsonFormatVisitor, createSchemaNode, createSchemaNode, findAnnotatedContentSerializer, findContextualConvertingSerializer, findConvertingContentSerializer, findFormatFeature, findFormatOverrides, findIncludeOverrides, findPropertyFilter, getSchema, getSchema, handledType, isDefaultSerializer, visitArrayFormat, visitArrayFormat, visitFloatFormat, visitIntFormat, visitIntFormat, visitStringFormat, visitStringFormat, wrapAndThrow, wrapAndThrow
-
-
-
-
Field Detail
-
ALLOCATOR_ID_FIELD_NAME
protected static final String ALLOCATOR_ID_FIELD_NAME
Deprecated.- See Also:
- Constant Field Values
-
SCHEMA_FIELD_NAME
protected static final String SCHEMA_FIELD_NAME
Deprecated.- See Also:
- Constant Field Values
-
BATCH_FIELD_NAME
protected static final String BATCH_FIELD_NAME
Deprecated.- See Also:
- Constant Field Values
-
-
Method Detail
-
serialize
public void serialize(Block block, com.fasterxml.jackson.core.JsonGenerator jsonGenerator, com.fasterxml.jackson.databind.SerializerProvider serializerProvider) throws IOException
Deprecated.- Specified by:
serialize
in classcom.fasterxml.jackson.databind.ser.std.StdSerializer<Block>
- Throws:
IOException
-
-