Class SchemaInternalNode
- java.lang.Object
-
- org.apache.iotdb.db.mpp.common.schematree.node.SchemaNode
-
- org.apache.iotdb.db.mpp.common.schematree.node.SchemaInternalNode
-
- All Implemented Interfaces:
org.apache.iotdb.commons.schema.tree.ITreeNode
- Direct Known Subclasses:
SchemaEntityNode
public class SchemaInternalNode extends SchemaNode
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<java.lang.String,SchemaNode>children-
Fields inherited from class org.apache.iotdb.db.mpp.common.schematree.node.SchemaNode
name, SCHEMA_ENTITY_NODE, SCHEMA_INTERNAL_NODE, SCHEMA_MEASUREMENT_NODE
-
-
Constructor Summary
Constructors Constructor Description SchemaInternalNode(java.lang.String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddChild(java.lang.String name, SchemaNode child)voidcopyDataTo(SchemaNode schemaNode)static SchemaInternalNodedeserialize(java.io.InputStream inputStream)SchemaNodegetChild(java.lang.String name)java.util.Map<java.lang.String,SchemaNode>getChildren()java.util.Iterator<SchemaNode>getChildrenIterator()bytegetType()voidreplaceChild(java.lang.String name, SchemaNode newChild)voidserialize(java.io.OutputStream outputStream)protected voidserializeChildren(java.io.OutputStream outputStream)-
Methods inherited from class org.apache.iotdb.db.mpp.common.schematree.node.SchemaNode
getAsEntityNode, getAsMeasurementNode, getName, isEntity, isMeasurement
-
-
-
-
Field Detail
-
children
protected java.util.Map<java.lang.String,SchemaNode> children
-
-
Method Detail
-
getChild
public SchemaNode getChild(java.lang.String name)
- Overrides:
getChildin classSchemaNode
-
addChild
public void addChild(java.lang.String name, SchemaNode child)- Overrides:
addChildin classSchemaNode
-
replaceChild
public void replaceChild(java.lang.String name, SchemaNode newChild)- Specified by:
replaceChildin classSchemaNode
-
copyDataTo
public void copyDataTo(SchemaNode schemaNode)
- Specified by:
copyDataToin classSchemaNode
-
getChildren
public java.util.Map<java.lang.String,SchemaNode> getChildren()
- Overrides:
getChildrenin classSchemaNode
-
getChildrenIterator
public java.util.Iterator<SchemaNode> getChildrenIterator()
- Overrides:
getChildrenIteratorin classSchemaNode
-
getType
public byte getType()
- Specified by:
getTypein classSchemaNode
-
serialize
public void serialize(java.io.OutputStream outputStream) throws java.io.IOException- Specified by:
serializein classSchemaNode- Throws:
java.io.IOException
-
serializeChildren
protected void serializeChildren(java.io.OutputStream outputStream) throws java.io.IOException- Throws:
java.io.IOException
-
deserialize
public static SchemaInternalNode deserialize(java.io.InputStream inputStream) throws java.io.IOException
- Throws:
java.io.IOException
-
-