java.lang.Object
com.pervasive.datarush.encoding.binary.AbstractObjectEncoderFactory
com.pervasive.datarush.analytics.arm.ItemSetEncoderFactory
- All Implemented Interfaces:
EncoderFactory
The encoder factory for the
ItemSet class. Provides an encoder
and decoder for ItemSet. This allows the ItemSet to
be serialized during staging dataset read/write operations.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanisFactoryForType(Class<?> type) Determine if this factory supports the given class type.protected TokenDecodernewDecoder(Class<?> type) Create a new decoder instance for the given type.protected TokenEncodernewEncoder(Class<?> type) Create a new encoder instance for the given type.Methods inherited from class com.pervasive.datarush.encoding.binary.AbstractObjectEncoderFactory
isFactoryForType, newDecoder, newEncoder
-
Constructor Details
-
ItemSetEncoderFactory
public ItemSetEncoderFactory()
-
-
Method Details
-
isFactoryForType
Description copied from class:AbstractObjectEncoderFactoryDetermine if this factory supports the given class type. A factory may support many types.- Specified by:
isFactoryForTypein classAbstractObjectEncoderFactory- Parameters:
type- the type to check- Returns:
- true if supported; false otherwise
-
newDecoder
Description copied from class:AbstractObjectEncoderFactoryCreate a new decoder instance for the given type. The type is specified to allow a single factory to serve multiple types.- Specified by:
newDecoderin classAbstractObjectEncoderFactory- Parameters:
type- the class which is to be decoded- Returns:
- a new encoder instance
-
newEncoder
Description copied from class:AbstractObjectEncoderFactoryCreate a new encoder instance for the given type. The type is specified to allow a single factory to serve multiple types.- Specified by:
newEncoderin classAbstractObjectEncoderFactory- Parameters:
type- the class which is to be decoded- Returns:
- a new decoder instance
-