Class VersionedObjectMapperFactory
- java.lang.Object
-
- com.amazonaws.athena.connector.lambda.serde.VersionedObjectMapperFactory
-
public class VersionedObjectMapperFactory extends Object
VendsObjectMapper
instances that correspond to SerDe versions.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.fasterxml.jackson.databind.ObjectMapper
create(BlockAllocator allocator)
Creates anObjectMapper
using the current SDK SerDe version.static com.fasterxml.jackson.databind.ObjectMapper
create(BlockAllocator allocator, int version)
Creates anObjectMapper
using the provided SerDe version.
-
-
-
Method Detail
-
create
public static com.fasterxml.jackson.databind.ObjectMapper create(BlockAllocator allocator)
Creates anObjectMapper
using the current SDK SerDe version.- Parameters:
allocator
-- Returns:
-
create
public static com.fasterxml.jackson.databind.ObjectMapper create(BlockAllocator allocator, int version)
Creates anObjectMapper
using the provided SerDe version.- Parameters:
allocator
-version
-- Returns:
-
-