Package org.infinispan.encoding
Class DataConversion
java.lang.Object
org.infinispan.encoding.DataConversion
Handle conversions for Keys or values.
- Since:
- 9.2
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final DataConversion
Deprecated, for removal: This API element is subject to removal in a future version.Since 11.0.static final DataConversion
Deprecated, for removal: This API element is subject to removal in a future version.Since 11.0.static final DataConversion
Deprecated, for removal: This API element is subject to removal in a future version.Since 11.0.static final DataConversion
Deprecated, for removal: This API element is subject to removal in a future version.Since 11.0. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Since 11.0, with no replacement.convertToRequestFormat
(Object o, MediaType contentType) Deprecated, for removal: This API element is subject to removal in a future version.Since 11.0, with no replacement.boolean
extractIndexable
(Object stored, boolean javaEmbeddedEntities) Convert the stored object in a format suitable to be indexed.fromStorage
(Object stored) Deprecated, for removal: This API element is subject to removal in a future version.Since 11.0.Deprecated, for removal: This API element is subject to removal in a future version.Since 11.0.int
hashCode()
boolean
isConversionSupported
(MediaType mediaType) Deprecated, for removal: This API element is subject to removal in a future version.Since 11.0, with no replacement.static DataConversion
static DataConversion
newKeyDataConversion
(Class<? extends Encoder> encoderClass, Class<? extends Wrapper> wrapperClass) Deprecated, for removal: This API element is subject to removal in a future version.Since 11.0.static DataConversion
static DataConversion
newValueDataConversion
(Class<? extends Encoder> encoderClass, Class<? extends Wrapper> wrapperClass) Deprecated, for removal: This API element is subject to removal in a future version.Since 11.0.void
overrideWrapper
(Class<? extends Wrapper> newWrapper, ComponentRegistry cr) Deprecated, for removal: This API element is subject to removal in a future version.Since 11.0, will be removed with no replacementstatic DataConversion
readFrom
(ObjectInput input) toString()
withEncoding
(Class<? extends Encoder> encoderClass) Deprecated, for removal: This API element is subject to removal in a future version.Since 12.1, to be removed in a future version.withRequestMediaType
(MediaType requestMediaType) withWrapping
(Class<? extends Wrapper> wrapperClass) Deprecated, for removal: This API element is subject to removal in a future version.Since 11.0.static void
writeTo
(ObjectOutput output, DataConversion dataConversion)
-
Field Details
-
DEFAULT_KEY
Deprecated, for removal: This API element is subject to removal in a future version.Since 11.0. To be removed in 14.0, with no replacement. -
DEFAULT_VALUE
Deprecated, for removal: This API element is subject to removal in a future version.Since 11.0. To be removed in 14.0, with no replacement. -
IDENTITY_KEY
Deprecated, for removal: This API element is subject to removal in a future version.Since 11.0. To be removed in 14.0. For internal use only. -
IDENTITY_VALUE
Deprecated, for removal: This API element is subject to removal in a future version.Since 11.0. To be removed in 14.0. For internal use only.
-
-
Method Details
-
withRequestMediaType
-
withEncoding
@Deprecated(forRemoval=true, since="12.1") public DataConversion withEncoding(Class<? extends Encoder> encoderClass) Deprecated, for removal: This API element is subject to removal in a future version.Since 12.1, to be removed in a future version. -
withWrapping
@Deprecated(forRemoval=true, since="11.0") public DataConversion withWrapping(Class<? extends Wrapper> wrapperClass) Deprecated, for removal: This API element is subject to removal in a future version.Since 11.0. To be removed in 14.0, with no replacement. -
overrideWrapper
@Deprecated(forRemoval=true, since="11.0") public void overrideWrapper(Class<? extends Wrapper> newWrapper, ComponentRegistry cr) Deprecated, for removal: This API element is subject to removal in a future version.Since 11.0, will be removed with no replacement -
isConversionSupported
@Deprecated(forRemoval=true, since="11.0") public boolean isConversionSupported(MediaType mediaType) Deprecated, for removal: This API element is subject to removal in a future version.Since 11.0, with no replacement. -
convert
@Deprecated(forRemoval=true, since="11.0") public Object convert(Object o, MediaType from, MediaType to) Deprecated, for removal: This API element is subject to removal in a future version.Since 11.0, with no replacement. -
convertToRequestFormat
@Deprecated(forRemoval=true, since="11.0") public Object convertToRequestFormat(Object o, MediaType contentType) Deprecated, for removal: This API element is subject to removal in a future version.Since 11.0, with no replacement. -
fromStorage
-
toStorage
-
extractIndexable
Convert the stored object in a format suitable to be indexed. -
getRequestMediaType
-
getStorageMediaType
-
getEncoder
-
getWrapper
Deprecated, for removal: This API element is subject to removal in a future version.Since 11.0. To be removed in 14.0, with no replacement. -
getEncoderClass
-
getWrapperClass
Deprecated, for removal: This API element is subject to removal in a future version.Since 11.0. To be removed in 14.0, with no replacement. -
equals
-
toString
-
hashCode
public int hashCode() -
newKeyDataConversion
- Returns:
- A new instance with an
IdentityEncoder
and request typeMediaType.APPLICATION_OBJECT
. - Since:
- 11.0
-
newValueDataConversion
- Returns:
- A new instance with an
IdentityEncoder
and request typeMediaType.APPLICATION_OBJECT
. - Since:
- 11.0
-
newKeyDataConversion
@Deprecated(forRemoval=true, since="11.0") public static DataConversion newKeyDataConversion(Class<? extends Encoder> encoderClass, Class<? extends Wrapper> wrapperClass) Deprecated, for removal: This API element is subject to removal in a future version.Since 11.0. To be removed in 14.0. Replaced bynewKeyDataConversion()
. -
newValueDataConversion
@Deprecated(forRemoval=true, since="11.0") public static DataConversion newValueDataConversion(Class<? extends Encoder> encoderClass, Class<? extends Wrapper> wrapperClass) Deprecated, for removal: This API element is subject to removal in a future version.Since 11.0. To be removed in 14.0. Replaced bynewValueDataConversion()
. -
writeTo
- Throws:
IOException
-
readFrom
- Throws:
IOException
ClassNotFoundException
-