Package com.gigaspaces.internal.metadata
Class TypeDesc
java.lang.Object
com.gigaspaces.internal.metadata.TypeDesc
- All Implemented Interfaces:
IDotnetTypeDescDetails,ITypeDesc,ISwapExternalizable,SpaceTypeDescriptor,Externalizable,Serializable,Cloneable
- Since:
- 7.0
- Author:
- Niv Ingberg
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTypeDesc()Default constructor for Externalizable.TypeDesc(String typeName, String codeBase, String[] superTypesNames, PropertyInfo[] properties, boolean supportsDynamicProperties, Map<String, SpaceIndex> indexes, List<String> idPropertiesNames, boolean idAutoGenerate, String defaultPropertyName, String routingPropertyName, String fifoGroupingName, Set<String> fifoGroupingIndexes, boolean systemType, FifoSupport fifoMode, boolean replicable, boolean supportsOptimisticLocking, StorageType storageType, EntryType entryType, Class<? extends Object> objectClass, Class<? extends ExternalEntry> externalEntryClass, Class<? extends SpaceDocument> documentWrapperClass, String dotnetDocumentWrapperType, byte dotnetStorageType, boolean blobstoreEnabled, String sequenceNumberPropertyName, TypeQueryExtensions queryExtensionsInfo, Class<? extends ClassBinaryStorageAdapter> binaryStorageAdapter, boolean broadcast, TieredStorageTableConfig tieredStorageTableConfig, boolean hasRoutingAnnotation) -
Method Summary
Modifier and TypeMethodDescriptionbooleanclone()cloneWithoutObjectClass(EntryType entryType) intClass<? extends SpaceDocument>Gets the document wrapper class.bytegetEntryTypeDesc(EntryType entryType) Class<? extends ExternalEntry>Gets the fifo grouping indexesGets the fifo grouping propertyGets the type's FIFO support.getFixedProperty(int propertyID) Gets a fixed property by its position.getFixedProperty(String propertyName) Gets a fixed property by its name.intgetFixedPropertyPosition(String propertyName) Gets the position of a fixed property by the specified property name.int[]Gets the ID properties names.intgetIndexedPropertyID(int propertyID) Gets the indexes of the type, mapped by their names.getIndexType(String indexName) getIntrospector(EntryType entryType) intGets the number of fixed properties of the type.intGets the java class which correlates to the type, if available.int[]int[]getProperties(boolean isPrimaryKeyFirst) boolean[]String[]String[]getPropertiesNames(boolean isPrimaryKeyFirst) String[]String[]intGets the routing property name.intGet the type storage typeString[]Gets the super type nameGets the type name.Gets the type simple name.booleanbooleanbooleanbooleanGets the autoGenerateId propertybooleanbooleanWhen cache policy is "BLOB_STORE" only the indices + minimal administrative information will be kept in cache per entry, while the data will be kept as blobs.booleanbooleanGets if this is a concrete type, i.e representing a concrete class (Pojo).booleanbooleanbooleanbooleanbooleanReturns true if this type is replicable, false otherwise.booleanvoidvoidvoidsetDynamicProperties(boolean supportsDynamicProperties) booleanbooleanReturns true if this type supports dynamic properties, false otherwise.booleanReturns true if this type supports optimistic locking, false otherwise.toString()voidvoidwriteToSwap(ObjectOutput out) Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.gigaspaces.internal.metadata.ITypeDesc
getAutoGeneratedPropertyId, isRoutingSameAsIdMethods inherited from interface com.gigaspaces.metadata.SpaceTypeDescriptor
getFixedPropertyPositionIgnoreCase, getIdPropertyName
-
Field Details
-
NO_SUCH_PROPERTY
public static final int NO_SUCH_PROPERTY- See Also:
-
-
Constructor Details
-
TypeDesc
public TypeDesc()Default constructor for Externalizable. -
TypeDesc
public TypeDesc(String typeName, String codeBase, String[] superTypesNames, PropertyInfo[] properties, boolean supportsDynamicProperties, Map<String, SpaceIndex> indexes, List<String> idPropertiesNames, boolean idAutoGenerate, String defaultPropertyName, String routingPropertyName, String fifoGroupingName, Set<String> fifoGroupingIndexes, boolean systemType, FifoSupport fifoMode, boolean replicable, boolean supportsOptimisticLocking, StorageType storageType, EntryType entryType, Class<? extends Object> objectClass, Class<? extends ExternalEntry> externalEntryClass, Class<? extends SpaceDocument> documentWrapperClass, String dotnetDocumentWrapperType, byte dotnetStorageType, boolean blobstoreEnabled, String sequenceNumberPropertyName, TypeQueryExtensions queryExtensionsInfo, Class<? extends ClassBinaryStorageAdapter> binaryStorageAdapter, boolean broadcast, TieredStorageTableConfig tieredStorageTableConfig, boolean hasRoutingAnnotation)
-
-
Method Details
-
cloneWithoutObjectClass
-
clone
-
isInactive
public boolean isInactive()- Specified by:
isInactivein interfaceITypeDesc
-
getTypeName
Description copied from interface:SpaceTypeDescriptorGets the type name.- Specified by:
getTypeNamein interfaceSpaceTypeDescriptor
-
getTypeUidPrefix
- Specified by:
getTypeUidPrefixin interfaceITypeDesc
-
getTypeSimpleName
Description copied from interface:SpaceTypeDescriptorGets the type simple name.- Specified by:
getTypeSimpleNamein interfaceSpaceTypeDescriptor
-
getObjectClass
Description copied from interface:SpaceTypeDescriptorGets the java class which correlates to the type, if available.- Specified by:
getObjectClassin interfaceSpaceTypeDescriptor
-
getDocumentWrapperClass
Description copied from interface:SpaceTypeDescriptorGets the document wrapper class. If a document wrapper class was not set,SpaceDocumentclass is returned.- Specified by:
getDocumentWrapperClassin interfaceSpaceTypeDescriptor
-
getCodeBase
- Specified by:
getCodeBasein interfaceITypeDesc
-
isExternalizable
public boolean isExternalizable()- Specified by:
isExternalizablein interfaceITypeDesc
-
getSuperClassesNames
- Specified by:
getSuperClassesNamesin interfaceITypeDesc
-
getSuperTypeName
Description copied from interface:SpaceTypeDescriptorGets the super type name- Specified by:
getSuperTypeNamein interfaceSpaceTypeDescriptor
-
getRestrictSuperClassesNames
- Specified by:
getRestrictSuperClassesNamesin interfaceITypeDesc
-
getProperties
- Specified by:
getPropertiesin interfaceITypeDesc
-
getProperties
- Specified by:
getPropertiesin interfaceITypeDesc
-
getNumOfFixedProperties
public int getNumOfFixedProperties()Description copied from interface:SpaceTypeDescriptorGets the number of fixed properties of the type.- Specified by:
getNumOfFixedPropertiesin interfaceITypeDesc- Specified by:
getNumOfFixedPropertiesin interfaceSpaceTypeDescriptor
-
getFixedProperty
Description copied from interface:SpaceTypeDescriptorGets a fixed property by its position.- Specified by:
getFixedPropertyin interfaceITypeDesc- Specified by:
getFixedPropertyin interfaceSpaceTypeDescriptor- Parameters:
propertyID- Position of requested fixed property.- Returns:
- Space property at specified position.
-
getFixedPropertyPosition
Description copied from interface:SpaceTypeDescriptorGets the position of a fixed property by the specified property name. If there's no fixed property with that name, -1 is returned.- Specified by:
getFixedPropertyPositionin interfaceSpaceTypeDescriptor- Parameters:
propertyName- Name of property to locate, case-insensitive- Returns:
- Position of property.
-
getFixedProperty
Description copied from interface:SpaceTypeDescriptorGets a fixed property by its name.- Specified by:
getFixedPropertyin interfaceSpaceTypeDescriptor- Parameters:
propertyName- Name of requested fixes property.- Returns:
- Space property with specified name.
-
hasRoutingAnnotation
public boolean hasRoutingAnnotation()- Specified by:
hasRoutingAnnotationin interfaceITypeDesc
-
supportsDynamicProperties
public boolean supportsDynamicProperties()Description copied from interface:SpaceTypeDescriptorReturns true if this type supports dynamic properties, false otherwise.- Specified by:
supportsDynamicPropertiesin interfaceSpaceTypeDescriptor
-
setDynamicProperties
public void setDynamicProperties(boolean supportsDynamicProperties) -
supportsOptimisticLocking
public boolean supportsOptimisticLocking()Description copied from interface:SpaceTypeDescriptorReturns true if this type supports optimistic locking, false otherwise.- Specified by:
supportsOptimisticLockingin interfaceSpaceTypeDescriptor
-
getNumOfIndexedProperties
public int getNumOfIndexedProperties()- Specified by:
getNumOfIndexedPropertiesin interfaceITypeDesc
-
getIndexedPropertyID
public int getIndexedPropertyID(int propertyID) - Specified by:
getIndexedPropertyIDin interfaceITypeDesc
-
getIdentifierPropertiesId
public int[] getIdentifierPropertiesId()- Specified by:
getIdentifierPropertiesIdin interfaceITypeDesc
-
getIdPropertiesNames
Description copied from interface:SpaceTypeDescriptorGets the ID properties names.- Specified by:
getIdPropertiesNamesin interfaceSpaceTypeDescriptor
-
getSpaceIdType
- Specified by:
getSpaceIdTypein interfaceITypeDesc
-
isAutoGenerateId
public boolean isAutoGenerateId()Description copied from interface:SpaceTypeDescriptorGets the autoGenerateId property- Specified by:
isAutoGenerateIdin interfaceITypeDesc- Specified by:
isAutoGenerateIdin interfaceSpaceTypeDescriptor
-
isAutoGenerateRouting
public boolean isAutoGenerateRouting()- Specified by:
isAutoGenerateRoutingin interfaceITypeDesc
-
getRoutingPropertyId
public int getRoutingPropertyId()- Specified by:
getRoutingPropertyIdin interfaceITypeDesc
-
getRoutingPropertyName
Description copied from interface:SpaceTypeDescriptorGets the routing property name.- Specified by:
getRoutingPropertyNamein interfaceSpaceTypeDescriptor
-
getDefaultPropertyName
- Specified by:
getDefaultPropertyNamein interfaceITypeDesc
-
isFifoSupported
public boolean isFifoSupported()- Specified by:
isFifoSupportedin interfaceITypeDesc
-
isFifoDefault
public boolean isFifoDefault()- Specified by:
isFifoDefaultin interfaceITypeDesc
-
getFifoSupport
Description copied from interface:SpaceTypeDescriptorGets the type's FIFO support.- Specified by:
getFifoSupportin interfaceSpaceTypeDescriptor- See Also:
-
isSystemType
public boolean isSystemType()- Specified by:
isSystemTypein interfaceITypeDesc
-
isReplicable
public boolean isReplicable()Description copied from interface:SpaceTypeDescriptorReturns true if this type is replicable, false otherwise.- Specified by:
isReplicablein interfaceSpaceTypeDescriptor
-
isBlobstoreEnabled
public boolean isBlobstoreEnabled()Description copied from interface:SpaceTypeDescriptorWhen cache policy is "BLOB_STORE" only the indices + minimal administrative information will be kept in cache per entry, while the data will be kept as blobs. This attribute when set to "false" disables blob-store of classes and keeping the entries entirely cached.- Specified by:
isBlobstoreEnabledin interfaceSpaceTypeDescriptor- Returns:
- true if blobStore will be enabled
-
isBroadcast
public boolean isBroadcast()- Specified by:
isBroadcastin interfaceSpaceTypeDescriptor
-
getObjectType
- Specified by:
getObjectTypein interfaceITypeDesc
-
getPropertiesNames
- Specified by:
getPropertiesNamesin interfaceSpaceTypeDescriptor
-
getPropertiesNames
- Specified by:
getPropertiesNamesin interfaceSpaceTypeDescriptor
-
getPropertiesTypes
- Specified by:
getPropertiesTypesin interfaceSpaceTypeDescriptor
-
getPropertiesIndexTypes
public boolean[] getPropertiesIndexTypes()- Specified by:
getPropertiesIndexTypesin interfaceSpaceTypeDescriptor
-
getTieredStorageTableConfig
- Specified by:
getTieredStorageTableConfigin interfaceITypeDesc- Specified by:
getTieredStorageTableConfigin interfaceSpaceTypeDescriptor
-
getChecksum
public int getChecksum()- Specified by:
getChecksumin interfaceITypeDesc
-
isConcreteType
public boolean isConcreteType()Description copied from interface:SpaceTypeDescriptorGets if this is a concrete type, i.e representing a concrete class (Pojo).- Specified by:
isConcreteTypein interfaceSpaceTypeDescriptor
-
supports
-
getEntryTypeDesc
- Specified by:
getEntryTypeDescin interfaceITypeDesc
-
getIntrospector
- Specified by:
getIntrospectorin interfaceITypeDesc
-
getIndexes
Description copied from interface:SpaceTypeDescriptorGets the indexes of the type, mapped by their names.- Specified by:
getIndexesin interfaceITypeDesc- Specified by:
getIndexesin interfaceSpaceTypeDescriptor- See Also:
-
getQueryExtensions
- Specified by:
getQueryExtensionsin interfaceSpaceTypeDescriptor
-
getIndexType
- Specified by:
getIndexTypein interfaceITypeDesc
-
getDotnetDynamicPropertiesStorageType
public byte getDotnetDynamicPropertiesStorageType()- Specified by:
getDotnetDynamicPropertiesStorageTypein interfaceIDotnetTypeDescDetails
-
getDotnetDocumentWrapperTypeName
- Specified by:
getDotnetDocumentWrapperTypeNamein interfaceIDotnetTypeDescDetails
-
getPrimitivePropertiesWithoutNullValues
- Specified by:
getPrimitivePropertiesWithoutNullValuesin interfaceITypeDesc
-
hasSequenceNumber
public boolean hasSequenceNumber()- Specified by:
hasSequenceNumberin interfaceSpaceTypeDescriptor
-
getSequenceNumberFixedPropertyID
public int getSequenceNumberFixedPropertyID()- Specified by:
getSequenceNumberFixedPropertyIDin interfaceSpaceTypeDescriptor
-
toString
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
readFromSwap
- Specified by:
readFromSwapin interfaceISwapExternalizable- Throws:
IOExceptionClassNotFoundException
-
isAllPropertiesObjectStorageType
public boolean isAllPropertiesObjectStorageType()- Specified by:
isAllPropertiesObjectStorageTypein interfaceITypeDesc
-
getStorageType
Description copied from interface:SpaceTypeDescriptorGet the type storage type- Specified by:
getStorageTypein interfaceSpaceTypeDescriptor
-
getFifoGroupingPropertyPath
Description copied from interface:SpaceTypeDescriptorGets the fifo grouping property- Specified by:
getFifoGroupingPropertyPathin interfaceSpaceTypeDescriptor
-
getFifoGroupingIndexesPaths
Description copied from interface:SpaceTypeDescriptorGets the fifo grouping indexes- Specified by:
getFifoGroupingIndexesPathsin interfaceSpaceTypeDescriptor
-
getCompoundIndexes
- Specified by:
getCompoundIndexesin interfaceITypeDesc
-
anyCompoundIndex
public boolean anyCompoundIndex()- Specified by:
anyCompoundIndexin interfaceITypeDesc
-
getClassBinaryStorageAdapter
- Specified by:
getClassBinaryStorageAdapterin interfaceITypeDesc
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
writeToSwap
- Specified by:
writeToSwapin interfaceISwapExternalizable- Throws:
IOException
-
getVersionedSerializable
- Specified by:
getVersionedSerializablein interfaceITypeDesc
-
getDocumentWrapperClassName
-
getExternalEntryWrapperClass
-
getSerializedProperties
- Specified by:
getSerializedPropertiesin interfaceITypeDesc
-
getNonSerializedProperties
- Specified by:
getNonSerializedPropertiesin interfaceITypeDesc
-
getPositionsForScanning
public int[] getPositionsForScanning()- Specified by:
getPositionsForScanningin interfaceITypeDesc
-
getPositionsForSplitting
public int[] getPositionsForSplitting()- Specified by:
getPositionsForSplittingin interfaceITypeDesc
-