public class TypeDesc extends Object implements ITypeDesc
Modifier and Type | Field and Description |
---|---|
static int |
NO_SUCH_PROPERTY |
Constructor and Description |
---|
TypeDesc()
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) |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAutoGeneratedPropertyId, isRoutingSameAsId
getFixedPropertyPositionIgnoreCase, getIdPropertyName
public static final int NO_SUCH_PROPERTY
public 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)
public ITypeDesc clone()
public boolean isInactive()
isInactive
in interface ITypeDesc
public String getTypeName()
SpaceTypeDescriptor
getTypeName
in interface SpaceTypeDescriptor
public String getTypeUidPrefix()
getTypeUidPrefix
in interface ITypeDesc
public String getTypeSimpleName()
SpaceTypeDescriptor
getTypeSimpleName
in interface SpaceTypeDescriptor
public Class<? extends Object> getObjectClass()
SpaceTypeDescriptor
getObjectClass
in interface SpaceTypeDescriptor
public Class<? extends SpaceDocument> getDocumentWrapperClass()
SpaceTypeDescriptor
SpaceDocument
class is returned.getDocumentWrapperClass
in interface SpaceTypeDescriptor
public String getCodeBase()
getCodeBase
in interface ITypeDesc
public boolean isExternalizable()
isExternalizable
in interface ITypeDesc
public String[] getSuperClassesNames()
getSuperClassesNames
in interface ITypeDesc
public String getSuperTypeName()
SpaceTypeDescriptor
getSuperTypeName
in interface SpaceTypeDescriptor
public String[] getRestrictSuperClassesNames()
getRestrictSuperClassesNames
in interface ITypeDesc
public PropertyInfo[] getProperties()
getProperties
in interface ITypeDesc
public PropertyInfo[] getProperties(boolean isPrimaryKeyFirst)
getProperties
in interface ITypeDesc
public int getNumOfFixedProperties()
SpaceTypeDescriptor
getNumOfFixedProperties
in interface ITypeDesc
getNumOfFixedProperties
in interface SpaceTypeDescriptor
public PropertyInfo getFixedProperty(int propertyID)
SpaceTypeDescriptor
getFixedProperty
in interface ITypeDesc
getFixedProperty
in interface SpaceTypeDescriptor
propertyID
- Position of requested fixed property.public int getFixedPropertyPosition(String propertyName)
SpaceTypeDescriptor
getFixedPropertyPosition
in interface SpaceTypeDescriptor
propertyName
- Name of property to locate, case-insensitivepublic PropertyInfo getFixedProperty(String propertyName)
SpaceTypeDescriptor
getFixedProperty
in interface SpaceTypeDescriptor
propertyName
- Name of requested fixes property.public boolean supportsDynamicProperties()
SpaceTypeDescriptor
supportsDynamicProperties
in interface SpaceTypeDescriptor
public void setDynamicProperties(boolean supportsDynamicProperties)
public boolean supportsOptimisticLocking()
SpaceTypeDescriptor
supportsOptimisticLocking
in interface SpaceTypeDescriptor
public int getNumOfIndexedProperties()
getNumOfIndexedProperties
in interface ITypeDesc
public int getIndexedPropertyID(int propertyID)
getIndexedPropertyID
in interface ITypeDesc
public int[] getIdentifierPropertiesId()
getIdentifierPropertiesId
in interface ITypeDesc
public List<String> getIdPropertiesNames()
SpaceTypeDescriptor
getIdPropertiesNames
in interface SpaceTypeDescriptor
public SpaceIdType getSpaceIdType()
getSpaceIdType
in interface ITypeDesc
public boolean isAutoGenerateId()
SpaceTypeDescriptor
isAutoGenerateId
in interface ITypeDesc
isAutoGenerateId
in interface SpaceTypeDescriptor
public boolean isAutoGenerateRouting()
isAutoGenerateRouting
in interface ITypeDesc
public int getRoutingPropertyId()
getRoutingPropertyId
in interface ITypeDesc
public String getRoutingPropertyName()
SpaceTypeDescriptor
getRoutingPropertyName
in interface SpaceTypeDescriptor
public String getDefaultPropertyName()
getDefaultPropertyName
in interface ITypeDesc
public boolean isFifoSupported()
isFifoSupported
in interface ITypeDesc
public boolean isFifoDefault()
isFifoDefault
in interface ITypeDesc
public FifoSupport getFifoSupport()
SpaceTypeDescriptor
getFifoSupport
in interface SpaceTypeDescriptor
FifoSupport
public boolean isSystemType()
isSystemType
in interface ITypeDesc
public boolean isReplicable()
SpaceTypeDescriptor
isReplicable
in interface SpaceTypeDescriptor
public boolean isBlobstoreEnabled()
SpaceTypeDescriptor
isBlobstoreEnabled
in interface SpaceTypeDescriptor
public boolean isBroadcast()
isBroadcast
in interface SpaceTypeDescriptor
public EntryType getObjectType()
getObjectType
in interface ITypeDesc
public String[] getPropertiesNames()
getPropertiesNames
in interface SpaceTypeDescriptor
public String[] getPropertiesNames(boolean isPrimaryKeyFirst)
getPropertiesNames
in interface SpaceTypeDescriptor
public String[] getPropertiesTypes()
getPropertiesTypes
in interface SpaceTypeDescriptor
public boolean[] getPropertiesIndexTypes()
getPropertiesIndexTypes
in interface SpaceTypeDescriptor
public TieredStorageTableConfig getTieredStorageTableConfig()
getTieredStorageTableConfig
in interface ITypeDesc
getTieredStorageTableConfig
in interface SpaceTypeDescriptor
public int getChecksum()
getChecksum
in interface ITypeDesc
public boolean isConcreteType()
SpaceTypeDescriptor
isConcreteType
in interface SpaceTypeDescriptor
public EntryTypeDesc getEntryTypeDesc(EntryType entryType)
getEntryTypeDesc
in interface ITypeDesc
public ITypeIntrospector getIntrospector(EntryType entryType)
getIntrospector
in interface ITypeDesc
public Map<String,SpaceIndex> getIndexes()
SpaceTypeDescriptor
getIndexes
in interface ITypeDesc
getIndexes
in interface SpaceTypeDescriptor
SpaceIndex
public TypeQueryExtensions getQueryExtensions()
getQueryExtensions
in interface SpaceTypeDescriptor
public SpaceIndexType getIndexType(String indexName)
getIndexType
in interface ITypeDesc
public byte getDotnetDynamicPropertiesStorageType()
getDotnetDynamicPropertiesStorageType
in interface IDotnetTypeDescDetails
public String getDotnetDocumentWrapperTypeName()
getDotnetDocumentWrapperTypeName
in interface IDotnetTypeDescDetails
public String getPrimitivePropertiesWithoutNullValues()
getPrimitivePropertiesWithoutNullValues
in interface ITypeDesc
public boolean hasSequenceNumber()
hasSequenceNumber
in interface SpaceTypeDescriptor
public int getSequenceNumberFixedPropertyID()
getSequenceNumberFixedPropertyID
in interface SpaceTypeDescriptor
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public void readFromSwap(ObjectInput in) throws IOException, ClassNotFoundException
readFromSwap
in interface ISwapExternalizable
IOException
ClassNotFoundException
public boolean isAllPropertiesObjectStorageType()
isAllPropertiesObjectStorageType
in interface ITypeDesc
public StorageType getStorageType()
SpaceTypeDescriptor
getStorageType
in interface SpaceTypeDescriptor
public String getFifoGroupingPropertyPath()
SpaceTypeDescriptor
getFifoGroupingPropertyPath
in interface SpaceTypeDescriptor
public Set<String> getFifoGroupingIndexesPaths()
SpaceTypeDescriptor
getFifoGroupingIndexesPaths
in interface SpaceTypeDescriptor
public List<SpaceIndex> getCompoundIndexes()
getCompoundIndexes
in interface ITypeDesc
public boolean anyCompoundIndex()
anyCompoundIndex
in interface ITypeDesc
public ClassBinaryStorageAdapter getClassBinaryStorageAdapter()
getClassBinaryStorageAdapter
in interface ITypeDesc
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void writeToSwap(ObjectOutput out) throws IOException
writeToSwap
in interface ISwapExternalizable
IOException
public Serializable getVersionedSerializable()
getVersionedSerializable
in interface ITypeDesc
public String getDocumentWrapperClassName()
public Class<? extends ExternalEntry> getExternalEntryWrapperClass()
public PropertyInfo[] getSerializedProperties()
getSerializedProperties
in interface ITypeDesc
public PropertyInfo[] getNonSerializedProperties()
getNonSerializedProperties
in interface ITypeDesc
public int[] getPositionsForScanning()
getPositionsForScanning
in interface ITypeDesc
public int[] getPositionsForSplitting()
getPositionsForSplitting
in interface ITypeDesc
Copyright © GigaSpaces.