mirror of
https://github.com/apache/druid.git
synced 2025-02-25 20:48:05 +00:00
write byte data as is in smile
This commit is contained in:
parent
c3bcf34c64
commit
5fece517fa
@ -21,6 +21,7 @@ package io.druid.jackson;
|
||||
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import com.fasterxml.jackson.dataformat.smile.SmileFactory;
|
||||
import com.fasterxml.jackson.dataformat.smile.SmileGenerator;
|
||||
import com.google.inject.Binder;
|
||||
import com.google.inject.Key;
|
||||
import com.google.inject.Module;
|
||||
@ -49,6 +50,7 @@ public class JacksonModule implements Module
|
||||
public ObjectMapper smileMapper()
|
||||
{
|
||||
final SmileFactory smileFactory = new SmileFactory();
|
||||
smileFactory.configure(SmileGenerator.Feature.ENCODE_BINARY_AS_7BIT, false);
|
||||
smileFactory.delegateToTextual(true);
|
||||
final ObjectMapper retVal = new DefaultObjectMapper(smileFactory);
|
||||
retVal.getFactory().setCodec(retVal);
|
||||
|
Loading…
x
Reference in New Issue
Block a user