Interface ISchemaFile
-
- All Known Implementing Classes:
MockSchemaFile,SchemaFile
public interface ISchemaFile
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclear()voidclose()voiddelete(IMNode node)IMNodegetChildNode(IMNode parent, java.lang.String childName)java.util.Iterator<IMNode>getChildren(IMNode parent)IMNodeinit()Get the storage group node, with its segment address of 0.voidsync()booleanupdateStorageGroupNode(IStorageGroupMNode sgNode)Modify header of schema file corresponding to the storage group node synchronouslyvoidwriteMNode(IMNode node)Only storage group node along with its descendents could be flushed into schema file.
-
-
-
Method Detail
-
init
IMNode init() throws org.apache.iotdb.commons.exception.MetadataException
Get the storage group node, with its segment address of 0.- Returns:
- node instance, template name as hash code
- Throws:
org.apache.iotdb.commons.exception.MetadataException
-
updateStorageGroupNode
boolean updateStorageGroupNode(IStorageGroupMNode sgNode) throws java.io.IOException
Modify header of schema file corresponding to the storage group node synchronously- Parameters:
sgNode- node to be updated- Returns:
- true if success
- Throws:
java.io.IOException
-
writeMNode
void writeMNode(IMNode node) throws org.apache.iotdb.commons.exception.MetadataException, java.io.IOException
Only storage group node along with its descendents could be flushed into schema file.- Parameters:
node-- Throws:
org.apache.iotdb.commons.exception.MetadataExceptionjava.io.IOException
-
delete
void delete(IMNode node) throws java.io.IOException, org.apache.iotdb.commons.exception.MetadataException
- Throws:
java.io.IOExceptionorg.apache.iotdb.commons.exception.MetadataException
-
close
void close() throws java.io.IOException- Throws:
java.io.IOException
-
clear
void clear() throws java.io.IOException, org.apache.iotdb.commons.exception.MetadataException- Throws:
java.io.IOExceptionorg.apache.iotdb.commons.exception.MetadataException
-
sync
void sync() throws java.io.IOException
- Throws:
java.io.IOException
-
getChildNode
IMNode getChildNode(IMNode parent, java.lang.String childName) throws org.apache.iotdb.commons.exception.MetadataException, java.io.IOException
- Throws:
org.apache.iotdb.commons.exception.MetadataExceptionjava.io.IOException
-
-