@DefaultSerializer(FieldSerializer.class) /** * @since 3.5.0 */ public class ManagedStateSpillableStateStore extends ManagedStateImpl implements SpillableStateStore { public ManagedStateSpillableStateStore() { super(); } }
protected Serializer getDefaultSerializerForAnnotatedType (Class type) { if (type.isAnnotationPresent(DefaultSerializer.class)) { DefaultSerializer defaultSerializerAnnotation = (DefaultSerializer)type.getAnnotation(DefaultSerializer.class); return ReflectionSerializerFactory.makeSerializer(this, defaultSerializerAnnotation.value(), type); } return null; }
@DefaultSerializer(IterableRegistrarSerializer.class) public class IterableRegistrar implements IKryoRegistrar { private final Iterable<? extends IKryoRegistrar> registrarList;
protected Serializer getDefaultSerializerForAnnotatedType (Class type) { if (type.isAnnotationPresent(DefaultSerializer.class)) { DefaultSerializer defaultSerializerAnnotation = (DefaultSerializer)type.getAnnotation(DefaultSerializer.class); return ReflectionSerializerFactory.makeSerializer(this, defaultSerializerAnnotation.value(), type); } return null; }
@DefaultSerializer(IterableRegistrarSerializer.class) public class IterableRegistrar implements IKryoRegistrar { private final Iterable<? extends IKryoRegistrar> registrarList;
/** * Returns the best matching serializer for a class. This method can be overridden to implement custom logic to * choose a * serializer. */ @Override @SuppressWarnings({ "rawtypes", "cast" }) public Serializer getDefaultSerializer(final Class type) { if (type == null) throw new IllegalArgumentException("type cannot be null."); if (!type.isInterface()) for (Class<?> baseType = type; baseType != Object.class; baseType = baseType.getSuperclass()) if (baseType.isAnnotationPresent(DefaultSerializer.class)) return this.newSerializer( ((DefaultSerializer) baseType.getAnnotation(DefaultSerializer.class)).value(), type); return super.getDefaultSerializer(type); } }
@DefaultSerializer(JavaSerializer.class) public class StateInternalsProxy<K> implements StateInternals, Serializable {
/** Returns the best matching serializer for a class. This method can be overridden to implement custom logic to choose a * serializer. */ public Serializer getDefaultSerializer (Class type) { if (type == null) throw new IllegalArgumentException("type cannot be null."); if (type.isAnnotationPresent(DefaultSerializer.class)) { DefaultSerializer defaultSerializerAnnotation = (DefaultSerializer)type.getAnnotation(DefaultSerializer.class); return ReflectionSerializerFactory.makeSerializer(this, defaultSerializerAnnotation.value(), type); } for (int i = 0, n = defaultSerializers.size(); i < n; i++) { DefaultSerializerEntry entry = defaultSerializers.get(i); if (entry.type.isAssignableFrom(type)) { Serializer defaultSerializer = entry.serializerFactory.makeSerializer(this, type); return defaultSerializer; } } return newDefaultSerializer(type); }
@DefaultSerializer(JavaSerializer.class) public static class ApexStateInternalsFactory<K> implements StateInternalsFactory<K>, Serializable {
/** Returns the best matching serializer for a class. This method can be overridden to implement custom logic to choose a * serializer. */ public Serializer getDefaultSerializer (Class type) { if (type == null) throw new IllegalArgumentException("type cannot be null."); if (type.isAnnotationPresent(DefaultSerializer.class)) { DefaultSerializer defaultSerializerAnnotation = (DefaultSerializer)type.getAnnotation(DefaultSerializer.class); return ReflectionSerializerFactory.makeSerializer(this, defaultSerializerAnnotation.value(), type); } for (int i = 0, n = defaultSerializers.size(); i < n; i++) { DefaultSerializerEntry entry = defaultSerializers.get(i); if (entry.type.isAssignableFrom(type)) { return entry.serializerFactory.makeSerializer(this, type); } } return newDefaultSerializer(type); }
@DefaultSerializer(JavaSerializer.class) public class Topic implements Serializable {
@DefaultSerializer(CompatibleFieldSerializer.class) public class Corpus implements Serializable {
@DefaultSerializer(CompatibleFieldSerializer.class) public class Cluster implements Serializable {
@DefaultSerializer(StepDown.KryoSerializer.class) public class StepDown extends Step {
@DefaultSerializer(JavaSerializer.class) public class KryoJdkContainer<T> implements Serializable
@DefaultSerializer(JavaSerializer.class) public class RomeFeedEntry extends KryoJdkContainer<SyndEntry> implements Serializable
@DefaultSerializer(JavaSerializer.class) public class RomeFeedEntry extends KryoJdkContainer<SyndEntry> implements Serializable
@DefaultSerializer(CompatibleFieldSerializer.class) public class TokenVector implements Serializable { private static final long serialVersionUID = 246864380055422067L;
@DefaultSerializer(CompatibleFieldSerializer.class) public class Document implements Serializable {
@DefaultSerializer(UserAgentAnalyzer.KryoSerializer.class) public class UserAgentAnalyzer extends UserAgentAnalyzerDirect implements Serializable { public static final int DEFAULT_PARSE_CACHE_SIZE = 10000;