Uses of Class
io.protostuff.runtime.IdStrategy
Packages that use IdStrategy
-
Uses of IdStrategy in io.protostuff.runtime
Subclasses of IdStrategy in io.protostuff.runtimeModifier and TypeClassDescriptionfinal classThe FQCN(fully qualified class name) will serve as the id (string).final classRequires every messsage/pojo/enum/collection/map to be registered with unique ids.final classThe ids are generated (incremental) on the fly and you can optionally register classes by reserving the first x ids viaIncrementalIdStrategy.Registry.classBase class for numeric id strategies.Fields in io.protostuff.runtime declared as IdStrategyModifier and TypeFieldDescriptionstatic final IdStrategyRuntimeEnv.ID_STRATEGYfinal IdStrategyIdStrategy.primaryGroupfinal IdStrategyDerivativeSchema.strategyfinal IdStrategyEnumIO.strategyfinal IdStrategyHasDelegate.strategyfinal IdStrategyHasSchema.strategyfinal IdStrategyPolymorphicSchema.strategyMethods in io.protostuff.runtime that return IdStrategyModifier and TypeMethodDescriptionIdStrategy.Factory.create()Creates a newIdStrategyinstance (impl).IncrementalIdStrategy.Factory.create()Methods in io.protostuff.runtime with parameters of type IdStrategyModifier and TypeMethodDescriptionField.copy(IdStrategy strategy) No copy by default.abstract <T> Field<T> RuntimeFieldFactory.create(int number, String name, Field field, IdStrategy strategy) Creates a runtimefieldbased on reflection.static <T> RuntimeSchema<T> RuntimeSchema.createFrom(Class<T> typeClass, IdStrategy strategy) Generates a schema from the given class.static <T> RuntimeSchema<T> RuntimeSchema.createFrom(Class<T> typeClass, String[] exclusions, IdStrategy strategy) Generates a schema from the given class with the exclusion of certain fields.static <T> RuntimeSchema<T> RuntimeSchema.createFrom(Class<T> typeClass, Map<String, String> declaredFields, IdStrategy strategy) Generates a schema from the given class with the declared fields (inclusive) based from the given Map.static <T> RuntimeSchema<T> RuntimeSchema.createFrom(Class<T> typeClass, Set<String> exclusions, IdStrategy strategy) Generates a schema from the given class with the exclusion of certain fields.static PolymorphicSchema.FactoryPolymorphicSchemaFactories.getFactoryFromField(Field f, IdStrategy strategy) static RuntimeFieldFactory<?> RuntimeFieldFactory.getFieldFactory(Class<?> clazz, IdStrategy strategy) Gets the runtime field factory of the givenclazz.static <T> Schema<T> RuntimeSchema.getSchema(Class<T> typeClass, IdStrategy strategy) Gets the schema that was either registered or lazily initialized at runtime.static PolymorphicSchemaPolymorphicSchemaFactories.getSchemaFromCollectionOrMapGenericType(Class<?> clazz, IdStrategy strategy) static booleanRuntimeSchema.isRegistered(Class<?> typeClass, IdStrategy strategy) Returns true if thetypeClasswas not lazily created.EnumIO.newSchema(Class<?> typeClass, IdStrategy strategy, PolymorphicSchema.Handler handler) final PolymorphicSchemaHasDelegate.newSchema(Class<?> typeClass, IdStrategy strategy, PolymorphicSchema.Handler handler) HasSchema.newSchema(Class<?> typeClass, IdStrategy strategy, PolymorphicSchema.Handler handler) PolymorphicSchema.Factory.newSchema(Class<?> typeClass, IdStrategy strategy, PolymorphicSchema.Handler handler) static voidEnumIO.transfer(Pipe pipe, Input input, Output output, int number, boolean repeated, IdStrategy strategy) Transfers theEnumfrom the input to the output.Constructors in io.protostuff.runtime with parameters of type IdStrategyModifierConstructorDescriptionArraySchema(IdStrategy strategy) Base(IdStrategy strategy, PolymorphicSchema.Handler handler) ByName(Class<E> enumClass, IdStrategy strategy) ByNumber(Class<E> enumClass, IdStrategy strategy) ClassSchema(IdStrategy strategy) DefaultIdStrategy(int flags, IdStrategy primaryGroup, int groupId) DefaultIdStrategy(IdStrategy primaryGroup, int groupId) DelegateArray(IdStrategy strategy, PolymorphicSchema.Handler handler, Delegate<Object> delegate) DerivativeSchema(IdStrategy strategy) EnumArray(IdStrategy strategy, PolymorphicSchema.Handler handler, EnumIO<?> eio) EnumIO(Class<E> enumClass, IdStrategy strategy) ExplicitIdStrategy(int flags, IdStrategy primaryGroup, int groupId, IdentityHashMap<Class<?>, io.protostuff.runtime.ExplicitIdStrategy.RegisteredCollectionFactory> collectionMapping, ArrayList<io.protostuff.runtime.ExplicitIdStrategy.RegisteredCollectionFactory> collections, IdentityHashMap<Class<?>, io.protostuff.runtime.ExplicitIdStrategy.RegisteredMapFactory> mapMapping, ArrayList<io.protostuff.runtime.ExplicitIdStrategy.RegisteredMapFactory> maps, IdentityHashMap<Class<?>, io.protostuff.runtime.ExplicitIdStrategy.RegisteredEnumIO> enumMapping, ArrayList<io.protostuff.runtime.ExplicitIdStrategy.RegisteredEnumIO> enums, IdentityHashMap<Class<?>, io.protostuff.runtime.ExplicitIdStrategy.BaseHS<?>> pojoMapping, ArrayList<io.protostuff.runtime.ExplicitIdStrategy.BaseHS<?>> pojos, IdentityHashMap<Class<?>, NumericIdStrategy.RegisteredDelegate<?>> delegateMapping, ArrayList<NumericIdStrategy.RegisteredDelegate<?>> delegates) HasDelegate(Delegate<T> delegate, IdStrategy strategy) protectedHasSchema(IdStrategy strategy) protectedIdStrategy(int flags, IdStrategy primaryGroup, int groupId) IncrementalIdStrategy(int flags, IdStrategy primaryGroup, int groupId, int collectionIdMax, int collectionIdStart, int mapIdMax, int mapIdStart, int enumIdMax, int enumIdStart, int pojoIdMax, int pojoIdStart) NumberSchema(IdStrategy strategy) protectedNumericIdStrategy(int flags, IdStrategy primaryGroup, int groupId) ObjectSchema(IdStrategy strategy) PojoArray(IdStrategy strategy, PolymorphicSchema.Handler handler, HasSchema<Object> hs) PolymorphicCollectionSchema(IdStrategy strategy) PolymorphicEnumSchema(IdStrategy strategy) PolymorphicMapSchema(IdStrategy strategy) PolymorphicPojoCollectionSchema(IdStrategy strategy) PolymorphicPojoMapSchema(IdStrategy strategy) PolymorphicPojoSchema(IdStrategy strategy) PolymorphicSchema(IdStrategy strategy) PolymorphicThrowableSchema(IdStrategy strategy) Registry(int flags, IdStrategy primaryGroup, int groupId, int initialCollectionSize, int initialMapSize, int initialEnumSize, int initialPojoSize, int initialDelegateSize) Registry(int flags, IdStrategy primaryGroup, int groupId, int collectionIdMax, int collectionIdStart, int mapIdMax, int mapIdStart, int enumIdMax, int enumIdStart, int pojoIdMax, int pojoIdStart)