public class SerializingTranscoder extends BaseSerializingTranscoder implements Transcoder<Object>
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
COMPRESSED |
static int |
SERIALIZED |
static int |
SPECIAL_BOOLEAN |
static int |
SPECIAL_BYTE |
static int |
SPECIAL_BYTEARRAY |
static int |
SPECIAL_DATE |
static int |
SPECIAL_DOUBLE |
static int |
SPECIAL_FLOAT |
static int |
SPECIAL_INT |
static int |
SPECIAL_LONG |
static int |
SPECIAL_MASK |
charset, compressionThreshold, compressMode, DEFAULT_CHARSET, DEFAULT_COMPRESSION_THRESHOLD, log| 构造器和说明 |
|---|
SerializingTranscoder()
Get a serializing transcoder with the default max data size.
|
SerializingTranscoder(int max)
Get a serializing transcoder that specifies the max data size.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
decode(CachedData d)
Decode the cached object into the object it represents.
|
protected Object |
decode0(CachedData cachedData,
byte[] data,
int flags) |
CachedData |
encode(Object o)
Encode the given object for storage.
|
int |
getMaxSize() |
TranscoderUtils |
getTranscoderUtils() |
boolean |
isPackZeros()
Returns if transcoder packs zero.
|
boolean |
isPrimitiveAsString()
Returns if client stores primitive type as string.
|
void |
setPackZeros(boolean packZeros)
Set whether pack zeros
|
void |
setPrimitiveAsString(boolean primitiveAsString)
Set whether store primitive type as string.
|
compress, decodeString, decompress, deserialize, encodeString, getCompressMode, serialize, setCharset, setCompressionMode, setCompressionThresholdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetCompressionMode, setCompressionThresholdpublic static final int SERIALIZED
public static final int COMPRESSED
public static final int SPECIAL_MASK
public static final int SPECIAL_BOOLEAN
public static final int SPECIAL_INT
public static final int SPECIAL_LONG
public static final int SPECIAL_DATE
public static final int SPECIAL_BYTE
public static final int SPECIAL_FLOAT
public static final int SPECIAL_DOUBLE
public static final int SPECIAL_BYTEARRAY
public SerializingTranscoder()
public SerializingTranscoder(int max)
public void setPackZeros(boolean packZeros)
TranscodersetPackZeros 在接口中 Transcoder<Object>public void setPrimitiveAsString(boolean primitiveAsString)
TranscodersetPrimitiveAsString 在接口中 Transcoder<Object>public final int getMaxSize()
public TranscoderUtils getTranscoderUtils()
public boolean isPackZeros()
TranscoderisPackZeros 在接口中 Transcoder<Object>public boolean isPrimitiveAsString()
TranscoderisPrimitiveAsString 在接口中 Transcoder<Object>public final Object decode(CachedData d)
Transcoderdecode 在接口中 Transcoder<Object>d - the dataprotected final Object decode0(CachedData cachedData, byte[] data, int flags)
public final CachedData encode(Object o)
Transcoderencode 在接口中 Transcoder<Object>o - the objectCopyright © 2013. All Rights Reserved.