Class AbstractBinaryHandlerCustomValueFixedLength<T,S>
java.lang.Object
one.microstream.persistence.types.PersistenceTypeHandler.Abstract<Binary,T>
one.microstream.persistence.binary.types.BinaryTypeHandler.Abstract<T>
one.microstream.persistence.binary.internal.AbstractBinaryHandlerCustom<T>
one.microstream.persistence.binary.internal.AbstractBinaryHandlerCustomValue<T,S>
one.microstream.persistence.binary.internal.AbstractBinaryHandlerCustomValueFixedLength<T,S>
- All Implemented Interfaces:
BinaryTypeHandler<T>,ValidatingBinaryHandler<T,S>,PersistenceDataTypeHolder<Binary>,PersistenceTypeDefinition,PersistenceTypeDescription,PersistenceTypeHandler<Binary,T>,PersistenceTypeIdentity,PersistenceTypeIdOwner,PersistenceTypeLink
- Direct Known Subclasses:
BinaryHandlerBoolean,BinaryHandlerByte,BinaryHandlerCharacter,BinaryHandlerClass,BinaryHandlerDouble,BinaryHandlerFloat,BinaryHandlerInteger,BinaryHandlerLong,BinaryHandlerOptionalDouble,BinaryHandlerOptionalInt,BinaryHandlerOptionalLong,BinaryHandlerShort,BinaryHandlerZoneOffset
public abstract class AbstractBinaryHandlerCustomValueFixedLength<T,S> extends AbstractBinaryHandlerCustomValue<T,S>
-
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.persistence.binary.types.BinaryTypeHandler
BinaryTypeHandler.Abstract<T>Nested classes/interfaces inherited from interface one.microstream.persistence.types.PersistenceDataTypeHolder
PersistenceDataTypeHolder.Default<D>Nested classes/interfaces inherited from interface one.microstream.persistence.types.PersistenceTypeDefinition
PersistenceTypeDefinition.DefaultNested classes/interfaces inherited from interface one.microstream.persistence.types.PersistenceTypeDescription
PersistenceTypeDescription.IdentityNested classes/interfaces inherited from interface one.microstream.persistence.types.PersistenceTypeHandler
PersistenceTypeHandler.Abstract<D,T> -
Constructor Summary
Constructors Constructor Description AbstractBinaryHandlerCustomValueFixedLength(Class<T> type, XGettingSequence<? extends PersistenceTypeDefinitionMember> fields) -
Method Summary
Modifier and Type Method Description booleanhasPersistedVariableLength()Provides information if two instances of the handled type can have different length in persisted form.booleanhasVaryingPersistedLengthInstances()Provides information if one particular instance can have variing binary length from one store to another.Methods inherited from class one.microstream.persistence.binary.internal.AbstractBinaryHandlerCustomValue
hasPersistedReferences, initializeState, iterateLoadableReferences, updateStateMethods inherited from class one.microstream.persistence.binary.internal.AbstractBinaryHandlerCustom
allMembers, bytes, calculcateBinaryLengths, chars, complete, Complex, create, CustomField, CustomField, CustomFields, defineValueType, ensureInitializeInstanceMembers, getInstanceFieldOfType, initializeInstanceMembers, instanceMembers, isPrimitiveType, iterateInstanceReferences, iterateMemberTypes, keyValuesFields, membersPersistedLengthMaximum, membersPersistedLengthMinimum, SimpleArrayFields, SizedArrayFields, storeMethods inherited from class one.microstream.persistence.binary.types.BinaryTypeHandler.Abstract
declaredField, declaredFieldMethods inherited from class one.microstream.persistence.types.PersistenceTypeHandler.Abstract
declaredField, declaredFields, deriveTypeName, initialize, internalInitialize, toString, type, typeId, typeName, validateAndImmure, validateInstanceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface one.microstream.persistence.binary.types.BinaryTypeHandler
dataTypeMethods inherited from interface one.microstream.persistence.types.PersistenceTypeDefinition
runtimeTypeName, toRuntimeTypeIdentifier, typeId, typeNameMethods inherited from interface one.microstream.persistence.types.PersistenceTypeDescription
instancePrimitiveMembers, instanceReferenceMembers, toTypeIdentifierMethods inherited from interface one.microstream.persistence.types.PersistenceTypeHandler
collectEnumConstants, getPersistedEnumOrdinal, guaranteeSpecificInstanceViablity, guaranteeSubTypeInstanceViablity, initialize, isSpecificInstanceViable, isSubTypeInstanceViable, isValidEntityType, membersInDeclaredOrder, settingMembers, storingMembers, type, validateEntityTypeMethods inherited from interface one.microstream.persistence.binary.types.ValidatingBinaryHandler
getValidationStateFromBinary, getValidationStateFromInstance, throwInconsistentStateException, validateState, validateStates
-
Constructor Details
-
AbstractBinaryHandlerCustomValueFixedLength
public AbstractBinaryHandlerCustomValueFixedLength(Class<T> type, XGettingSequence<? extends PersistenceTypeDefinitionMember> fields)
-
-
Method Details
-
hasPersistedVariableLength
public final boolean hasPersistedVariableLength()Description copied from interface:PersistenceTypeDefinitionProvides information if two instances of the handled type can have different length in persisted form.Examples for variable length types:
- arrays
java.lang.Stringjava.util.ArrayListjava.math.BigDecimal
Examples for fixed length types:
- primitive value wrapper types
java.lang.Objectjava.util.Date- typical entity types (without unshared inlined variable length component instances)
-
hasVaryingPersistedLengthInstances
public final boolean hasVaryingPersistedLengthInstances()Description copied from interface:PersistenceTypeDefinitionProvides information if one particular instance can have variing binary length from one store to another.Examples for variable length instances:
- variable size collection instances
- variable size pesudo collection instances like
java.util.StringBuilder - instances of custom defined types similar to collections
Examples for fixed length instances:
- arrays
- all immutable type instances (like
java.lang.String) - all fixed length types (see
PersistenceTypeDefinition.hasVaryingPersistedLengthInstances()
-