Class OClassEmbedded
java.lang.Object
com.orientechnologies.orient.core.metadata.schema.OClassImpl
com.orientechnologies.orient.core.metadata.schema.OClassEmbedded
- All Implemented Interfaces:
OClass,Comparable<OClass>
- Direct Known Subclasses:
OClassDistributed
Created by tglman on 14/06/17.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.orientechnologies.orient.core.metadata.schema.OClass
OClass.ATTRIBUTES, OClass.INDEX_TYPE -
Field Summary
Fields inherited from class com.orientechnologies.orient.core.metadata.schema.OClassImpl
abstractClass, allocation, clusterIds, clusterSelection, customFields, defaultClusterId, description, hashCode, name, NOT_EXISTENT_CLUSTER_ID, overSize, owner, polymorphicClusterIds, properties, shortName, strictMode, subclasses, superClassesFields inherited from interface com.orientechnologies.orient.core.metadata.schema.OClass
EDGE_CLASS_NAME, VERTEX_CLASS_NAME -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedOClassEmbedded(OSchemaShared iOwner, String iName) protectedOClassEmbedded(OSchemaShared iOwner, String iName, int[] iClusterIds) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAllocations(ODatabaseDocumentInternal database, String node, List<String> clusters) addCluster(String clusterNameOrId) addClusterId(int clusterId) protected OClassaddClusterIdInternal(ODatabaseDocumentInternal database, int clusterId) protected voidaddClusterIdToIndexes(int iId) protected voidaddPolymorphicClusterId(int clusterId) addProperty(String propertyName, OType type, OType linkedType, OClass linkedClass, boolean unsafe) addPropertyInternal(String name, OType type, OType linkedType, OClass linkedClass, boolean unsafe) addSuperClass(OClass superClass) protected voidaddSuperClassInternal(ODatabaseDocumentInternal database, OClass superClass) voidautoAssignClusterOwnership(ODatabaseDocumentInternal db, Set<String> availableNodes, boolean canCreateNewClusters) voidprotected voidprotected OPropertyImplprotected OPropertyEmbeddedvoiddropProperty(String propertyName) protected voiddropPropertyInternal(ODatabaseDocumentInternal database, String iPropertyName) voidinternalAddCluster(ODatabaseInternal db, String newClusterName) protected voidreassignClusters(ODatabaseDocumentInternal db, Set<String> availableNodes, Set<String> clusterNames) voidremoveAllocations(ODatabaseDocumentInternal database, String node, List<String> clusters) voidremoveAllocations(ODatabaseDocumentInternal database, List<String> clusters) removeBaseClassInternal(OClass baseClass) removeClusterId(int clusterId) removeClusterId(int clusterId, boolean force) protected OClassremoveClusterIdInternal(ODatabaseDocumentInternal database, int clusterToRemove) removeSuperClass(OClass superClass) protected voidremoveSuperClassInternal(OClass superClass) setAbstract(boolean isAbstract) protected voidsetAbstractInternal(ODatabaseDocumentInternal database, boolean isAbstract) setClusterSelection(String value) voidsetClusterSelectionInternal(String clusterSelection) protected voidsetCustomInternal(String name, String value) voidsetDefaultClusterId(int defaultClusterId) setDescription(String iDescription) protected voidsetDescriptionInternal(String iDescription) setEncryption(String iValue) protected voidsetEncryptionInternal(ODatabaseDocumentInternal database, String value) protected voidsetNameInternal(ODatabaseDocumentInternal database, String name) setOverSize(float overSize) Sets the oversize factor.protected voidsetOverSizeInternal(ODatabaseDocumentInternal database, float overSize) setShortName(String shortName) protected voidsetShortNameInternal(ODatabaseDocumentInternal database, String iShortName) setStrictMode(boolean isStrict) protected voidsetStrictModeInternal(boolean iStrict) setSuperClasses(List<? extends OClass> classes) protected voidsetSuperClassesInternal(List<? extends OClass> classes) truncateCluster(String clusterName) Removes all data in the cluster with given name.Methods inherited from class com.orientechnologies.orient.core.metadata.schema.OClassImpl
acquireSchemaReadLock, acquireSchemaWriteLock, acquireSchemaWriteLock, addBaseClass, addClusters, addPolymorphicClusterIds, areIndexed, areIndexed, checkAllLikedObjects, checkEmbedded, checkParametersConflict, checkParametersConflict, checkPersistentPropertyType, compareTo, count, count, createIndex, createIndex, createIndex, createIndex, createIndex, createProperty, createProperty, createProperty, createProperty, createProperty, declaredProperties, decodeClassName, equals, existsProperty, extractFieldTypes, fireDatabaseMigration, firePropertyNameMigration, fromStream, get, getAllBaseClasses, getAllocation, getAllSubclasses, getAllSuperClasses, getAutoShardingIndex, getBaseClasses, getClassIndex, getClassIndexes, getClassIndexes, getClassInvolvedIndexes, getClassInvolvedIndexes, getClassOverSize, getClusterForNewInstance, getClusterIds, getClusterSelection, getCustom, getCustomInternal, getCustomKeys, getDatabase, getDefaultClusterId, getDescription, getEscapedName, getIndexedProperties, getIndexedProperties, getIndexes, getIndexes, getInvolvedIndexes, getInvolvedIndexes, getName, getOverSize, getOwner, getPolymorphicClusterIds, getProperty, getShortName, getSize, getStreamableName, getSubclasses, getSuperClass, getSuperClasses, getSuperClassesNames, hasClusterId, hashCode, hasPolymorphicClusterId, hasSuperClasses, isAbstract, isEdgeType, isStrictMode, isSubClassOf, isSubClassOf, isSuperClassOf, isVertexType, matchesType, onlyAddPolymorphicClusterId, onlyRemovePolymorphicClusterId, onPostIndexManagement, properties, propertiesMap, readableClusters, releaseSchemaReadLock, releaseSchemaWriteLock, releaseSchemaWriteLock, releaseSchemaWriteLock, removeCustom, removePolymorphicClusterId, removePolymorphicClusterIds, renameCluster, renameProperty, set, setClusterIds, setClusterSelection, setClusterSelectionInternal, setSuperClass, setSuperClassesByNames, toNetworkStream, toStream, toString, truncate, truncateClusterInternal, validatePropertyName
-
Constructor Details
-
Method Details
-
addProperty
public OProperty addProperty(String propertyName, OType type, OType linkedType, OClass linkedClass, boolean unsafe) - Specified by:
addPropertyin classOClassImpl
-
setEncryption
- Specified by:
setEncryptionin classOClassImpl
-
setEncryptionInternal
-
setClusterSelection
-
setClusterSelectionInternal
-
setCustom
-
clearCustom
public void clearCustom() -
clearCustomInternal
protected void clearCustomInternal() -
setSuperClasses
-
removeBaseClassInternal
- Specified by:
removeBaseClassInternalin classOClassImpl
-
addSuperClass
-
addSuperClassInternal
-
removeSuperClass
-
removeSuperClassInternal
-
setSuperClassesInternal
- Specified by:
setSuperClassesInternalin classOClassImpl
-
setName
-
setNameInternal
-
setDefaultClusterId
public void setDefaultClusterId(int defaultClusterId) -
setShortName
-
setShortNameInternal
-
createPropertyInstance
- Specified by:
createPropertyInstancein classOClassImpl
-
addPropertyInternal
public OPropertyImpl addPropertyInternal(String name, OType type, OType linkedType, OClass linkedClass, boolean unsafe) -
createPropertyInstance
-
truncateCluster
Removes all data in the cluster with given name. As result indexes for this class will be rebuilt.- Parameters:
clusterName- Name of cluster to be truncated.- Returns:
- Instance of current object.
-
setStrictMode
-
setStrictModeInternal
protected void setStrictModeInternal(boolean iStrict) -
setDescription
-
setDescriptionInternal
-
addClusterId
-
removeClusterId
-
removeClusterId
-
removeClusterIdInternal
-
dropProperty
-
dropPropertyInternal
-
addCluster
-
setOverSize
Description copied from interface:OClassSets the oversize factor. Oversize is used to extend the record size by a factor to avoid defragmentation upon updates. 0 or 1.0 means no oversize. Default is 0.- Returns:
- Oversize factor
- See Also:
-
setOverSizeInternal
-
setAbstract
-
setCustomInternal
-
setAbstractInternal
-
addClusterIdInternal
-
addPolymorphicClusterId
protected void addPolymorphicClusterId(int clusterId) -
addClusterIdToIndexes
protected void addClusterIdToIndexes(int iId) - Specified by:
addClusterIdToIndexesin classOClassImpl
-
addAllocations
-
removeAllocations
public void removeAllocations(ODatabaseDocumentInternal database, String node, List<String> clusters) -
removeAllocations
-
autoAssignClusterOwnership
public void autoAssignClusterOwnership(ODatabaseDocumentInternal db, Set<String> availableNodes, boolean canCreateNewClusters) -
internalAddCluster
-
reassignClusters
protected void reassignClusters(ODatabaseDocumentInternal db, Set<String> availableNodes, Set<String> clusterNames)
-