Class StorageGroupEntityMNode
- java.lang.Object
-
- org.apache.iotdb.db.metadata.mnode.MNode
-
- org.apache.iotdb.db.metadata.mnode.InternalMNode
-
- org.apache.iotdb.db.metadata.mnode.EntityMNode
-
- org.apache.iotdb.db.metadata.mnode.StorageGroupEntityMNode
-
- All Implemented Interfaces:
java.io.Serializable,IEntityMNode,IMNode,IStorageGroupMNode
public class StorageGroupEntityMNode extends EntityMNode implements IStorageGroupMNode
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.iotdb.db.metadata.mnode.InternalMNode
children, schemaTemplate, schemaTemplateId
-
Fields inherited from class org.apache.iotdb.db.metadata.mnode.MNode
cacheEntry, fullPath, name, parent, triggerExecutor
-
-
Constructor Summary
Constructors Constructor Description StorageGroupEntityMNode(IMNode parent, java.lang.String name, long dataTTL)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R,C>
Raccept(MNodeVisitor<R,C> visitor, C context)longgetDataTTL()java.lang.StringgetFullPath()get full pathMNodeTypegetMNodeType(java.lang.Boolean isConfig)org.apache.iotdb.confignode.rpc.thrift.TStorageGroupSchemagetStorageGroupSchema()booleanisStorageGroup()voidmoveDataToNewMNode(IMNode newMNode)voidserializeTo(MLogWriter logWriter)voidsetDataReplicationFactor(int dataReplicationFactor)voidsetDataTTL(long dataTTL)voidsetSchemaReplicationFactor(int schemaReplicationFactor)voidsetStorageGroupSchema(org.apache.iotdb.confignode.rpc.thrift.TStorageGroupSchema schema)voidsetTimePartitionInterval(long timePartitionInterval)-
Methods inherited from class org.apache.iotdb.db.metadata.mnode.EntityMNode
addAlias, deleteAliasChild, getAliasChildren, getChild, getLastCacheContainer, getTemplateLastCaches, hasChild, isAligned, isEntity, setAliasChildren, setAligned
-
Methods inherited from class org.apache.iotdb.db.metadata.mnode.InternalMNode
addChild, addChild, deleteChild, deserializeFrom, getChildren, getSchemaTemplate, getSchemaTemplateId, getUpperTemplate, isUseTemplate, replaceChild, setChildren, setSchemaTemplate, setSchemaTemplateId, setUseTemplate
-
Methods inherited from class org.apache.iotdb.db.metadata.mnode.MNode
equals, getAsEntityMNode, getAsMeasurementMNode, getAsStorageGroupMNode, getCacheEntry, getName, getParent, getPartialPath, getTriggerExecutor, getUpperTriggerExecutorList, hashCode, isMeasurement, setCacheEntry, setFullPath, setName, setParent, setTriggerExecutor, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.iotdb.db.metadata.mnode.IEntityMNode
isUseTemplate, setUseTemplate
-
Methods inherited from interface org.apache.iotdb.db.metadata.mnode.IMNode
addChild, addChild, deleteChild, getAsEntityMNode, getAsMeasurementMNode, getAsStorageGroupMNode, getCacheEntry, getChild, getChildren, getName, getParent, getPartialPath, getSchemaTemplate, getSchemaTemplateId, getTriggerExecutor, getUpperTemplate, getUpperTriggerExecutorList, hasChild, isEntity, isMeasurement, replaceChild, setCacheEntry, setChildren, setFullPath, setName, setParent, setSchemaTemplate, setSchemaTemplateId, setTriggerExecutor
-
-
-
-
Constructor Detail
-
StorageGroupEntityMNode
public StorageGroupEntityMNode(IMNode parent, java.lang.String name, long dataTTL)
-
-
Method Detail
-
getFullPath
public java.lang.String getFullPath()
Description copied from class:MNodeget full path- Specified by:
getFullPathin interfaceIMNode- Overrides:
getFullPathin classEntityMNode
-
getDataTTL
public long getDataTTL()
- Specified by:
getDataTTLin interfaceIStorageGroupMNode
-
setDataTTL
public void setDataTTL(long dataTTL)
- Specified by:
setDataTTLin interfaceIStorageGroupMNode
-
setSchemaReplicationFactor
public void setSchemaReplicationFactor(int schemaReplicationFactor)
- Specified by:
setSchemaReplicationFactorin interfaceIStorageGroupMNode
-
setDataReplicationFactor
public void setDataReplicationFactor(int dataReplicationFactor)
- Specified by:
setDataReplicationFactorin interfaceIStorageGroupMNode
-
setTimePartitionInterval
public void setTimePartitionInterval(long timePartitionInterval)
- Specified by:
setTimePartitionIntervalin interfaceIStorageGroupMNode
-
setStorageGroupSchema
public void setStorageGroupSchema(org.apache.iotdb.confignode.rpc.thrift.TStorageGroupSchema schema)
- Specified by:
setStorageGroupSchemain interfaceIStorageGroupMNode
-
getStorageGroupSchema
public org.apache.iotdb.confignode.rpc.thrift.TStorageGroupSchema getStorageGroupSchema()
- Specified by:
getStorageGroupSchemain interfaceIStorageGroupMNode
-
moveDataToNewMNode
public void moveDataToNewMNode(IMNode newMNode)
- Specified by:
moveDataToNewMNodein interfaceIMNode- Overrides:
moveDataToNewMNodein classEntityMNode
-
isStorageGroup
public boolean isStorageGroup()
- Specified by:
isStorageGroupin interfaceIMNode- Overrides:
isStorageGroupin classMNode
-
getMNodeType
public MNodeType getMNodeType(java.lang.Boolean isConfig)
- Specified by:
getMNodeTypein interfaceIMNode- Overrides:
getMNodeTypein classEntityMNode
-
serializeTo
public void serializeTo(MLogWriter logWriter) throws java.io.IOException
- Specified by:
serializeToin interfaceIMNode- Overrides:
serializeToin classInternalMNode- Throws:
java.io.IOException
-
accept
public <R,C> R accept(MNodeVisitor<R,C> visitor, C context)
- Specified by:
acceptin interfaceIMNode- Overrides:
acceptin classEntityMNode
-
-