Class MultiSerialiserStorage
- java.lang.Object
-
- uk.gov.gchq.gaffer.serialisation.implementation.MultiSerialiserStorage
-
public class MultiSerialiserStorage extends Object
Delegate for the storage ofMultiSerialiser
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MultiSerialiserStorage.SerialiserDetail
-
Field Summary
Fields Modifier and Type Field Description static String
ERROR_ADDING_MULTI_SERIALISER
-
Constructor Summary
Constructors Constructor Description MultiSerialiserStorage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSerialiserDetails(byte key, ToBytesSerialiser serialiser, Class aClass)
void
addSerialiserDetails(MultiSerialiserStorage.SerialiserDetail serialiserDetail)
boolean
canHandle(Class handleClass)
boolean
equals(Object obj)
Byte
getKeyFromValue(Object object)
List<MultiSerialiserStorage.SerialiserDetail>
getSerialiserDetails()
ToBytesSerialiser
getSerialiserFromKey(Byte key)
ToBytesSerialiser
getSerialiserFromValue(Object object)
int
hashCode()
boolean
isConsistent()
boolean
preservesObjectOrdering()
void
put(byte serialiserEncoding, ToBytesSerialiser serialiser, Class supportedClass)
void
setSerialiserDetails(List<MultiSerialiserStorage.SerialiserDetail> serialisersDetails)
-
-
-
Field Detail
-
ERROR_ADDING_MULTI_SERIALISER
public static final String ERROR_ADDING_MULTI_SERIALISER
- See Also:
- Constant Field Values
-
-
Method Detail
-
put
public void put(byte serialiserEncoding, ToBytesSerialiser serialiser, Class supportedClass) throws GafferCheckedException
- Throws:
GafferCheckedException
-
getSerialiserFromKey
public ToBytesSerialiser getSerialiserFromKey(Byte key)
-
getSerialiserFromValue
public ToBytesSerialiser getSerialiserFromValue(Object object)
-
canHandle
public boolean canHandle(Class handleClass)
- Parameters:
handleClass
- class to check- Returns:
Serialiser.canHandle(Class)
- See Also:
ToBytesSerialiser
-
preservesObjectOrdering
public boolean preservesObjectOrdering()
-
isConsistent
public boolean isConsistent()
- Returns:
Serialiser.isConsistent()
-
addSerialiserDetails
public void addSerialiserDetails(byte key, ToBytesSerialiser serialiser, Class aClass) throws GafferCheckedException
- Throws:
GafferCheckedException
-
addSerialiserDetails
public void addSerialiserDetails(MultiSerialiserStorage.SerialiserDetail serialiserDetail) throws GafferCheckedException
- Throws:
GafferCheckedException
-
getSerialiserDetails
public List<MultiSerialiserStorage.SerialiserDetail> getSerialiserDetails()
-
setSerialiserDetails
public void setSerialiserDetails(List<MultiSerialiserStorage.SerialiserDetail> serialisersDetails) throws GafferCheckedException
- Throws:
GafferCheckedException
-
-