Class 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 instead
    Uses 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
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonSerializer

        com.fasterxml.jackson.databind.JsonSerializer.None
    • 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
      • Methods inherited from class com.fasterxml.jackson.databind.JsonSerializer

        getDelegatee, isEmpty, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, serializeWithType, unwrappingSerializer, usesObjectId, withFilterId, withIgnoredProperties
    • Constructor Detail

      • BlockSerializer

        public BlockSerializer()
        Deprecated.
    • 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 class com.fasterxml.jackson.databind.ser.std.StdSerializer<Block>
        Throws:
        IOException