Package com.gigaspaces.metadata
Interface SpaceTypeDescriptor
- All Known Subinterfaces:
ITypeDesc
- All Known Implementing Classes:
InactiveTypeDesc,TypeDesc
public interface SpaceTypeDescriptor
Encapsulates information about a space type.
- Since:
- 8.0
- Author:
- Niv Ingberg
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionClass<? extends SpaceDocument>Gets the document wrapper class.Gets the fifo grouping indexesGets the fifo grouping propertyGets the type's FIFO support.getFixedProperty(int position) Gets a fixed property by its position.getFixedProperty(String name) Gets a fixed property by its name.intgetFixedPropertyPosition(String propertyName) Gets the position of a fixed property by the specified property name.default intGets the ID properties names.default StringDeprecated.Gets the indexes of the type, mapped by their names.intGets the number of fixed properties of the type.Gets the java class which correlates to the type, if available.boolean[]String[]String[]getPropertiesNames(boolean isPrimaryKeyFirst) String[]Gets the routing property name.intGet the type storage typeGets the super type nameGets the type name.Gets the type simple name.booleanbooleanGets the autoGenerateId propertybooleanWhen 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).booleanReturns true if this type is replicable, false otherwise.booleanReturns true if this type supports dynamic properties, false otherwise.booleanReturns true if this type supports optimistic locking, false otherwise.
-
Method Details
-
getTypeName
String getTypeName()Gets the type name. -
getTypeSimpleName
String getTypeSimpleName()Gets the type simple name.- Since:
- 9.0.1
-
getObjectClass
Gets the java class which correlates to the type, if available. -
getDocumentWrapperClass
Class<? extends SpaceDocument> getDocumentWrapperClass()Gets the document wrapper class. If a document wrapper class was not set,SpaceDocumentclass is returned. -
getFifoSupport
FifoSupport getFifoSupport()Gets the type's FIFO support.- See Also:
-
isReplicable
boolean isReplicable()Returns true if this type is replicable, false otherwise. -
getNumOfFixedProperties
int getNumOfFixedProperties()Gets the number of fixed properties of the type. -
getFixedProperty
Gets a fixed property by its position.- Parameters:
position- Position of requested fixed property.- Returns:
- Space property at specified position.
-
getFixedProperty
Gets a fixed property by its name.- Parameters:
name- Name of requested fixes property.- Returns:
- Space property with specified name.
-
getFixedPropertyPosition
Gets the position of a fixed property by the specified property name. If there's no fixed property with that name, -1 is returned.- Parameters:
propertyName- Name of property to locate, case-insensitive- Returns:
- Position of property.
-
getFixedPropertyPositionIgnoreCase
-
supportsDynamicProperties
boolean supportsDynamicProperties()Returns true if this type supports dynamic properties, false otherwise. -
supportsOptimisticLocking
boolean supportsOptimisticLocking()Returns true if this type supports optimistic locking, false otherwise. -
getIdPropertyName
Deprecated.since 16.2 - usegetIdPropertiesNames()instead.Gets the ID property name. -
getIdPropertiesNames
Gets the ID properties names. -
getRoutingPropertyName
String getRoutingPropertyName()Gets the routing property name. -
getFifoGroupingPropertyPath
String getFifoGroupingPropertyPath()Gets the fifo grouping property -
getFifoGroupingIndexesPaths
Gets the fifo grouping indexes -
getIndexes
Map<String,SpaceIndex> getIndexes()Gets the indexes of the type, mapped by their names.- See Also:
-
getStorageType
StorageType getStorageType()Get the type storage type -
isConcreteType
boolean isConcreteType()Gets if this is a concrete type, i.e representing a concrete class (Pojo). -
isAutoGenerateId
boolean isAutoGenerateId()Gets the autoGenerateId property -
getSuperTypeName
String getSuperTypeName()Gets the super type name -
isBlobstoreEnabled
boolean isBlobstoreEnabled()When 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.- Returns:
- true if blobStore will be enabled
-
isBroadcast
boolean isBroadcast() -
hasSequenceNumber
boolean hasSequenceNumber() -
getSequenceNumberFixedPropertyID
int getSequenceNumberFixedPropertyID() -
getQueryExtensions
TypeQueryExtensions getQueryExtensions() -
getPropertiesNames
String[] getPropertiesNames() -
getPropertiesNames
-
getPropertiesTypes
String[] getPropertiesTypes() -
getPropertiesIndexTypes
boolean[] getPropertiesIndexTypes() -
getTieredStorageTableConfig
TieredStorageTableConfig getTieredStorageTableConfig()
-
getIdPropertiesNames()instead.