public static interface InodeStore.WriteBatch
extends java.lang.AutoCloseable
InodeStore.createWriteBatch() to use batched writes.
Write batches may or may not be applied atomically.| Modifier and Type | Method and Description |
|---|---|
void |
addChild(java.lang.Long parentId,
java.lang.String childName,
java.lang.Long childId)
Adds an edge to the write batch.
|
void |
close() |
void |
commit()
Performs the batched write.
|
void |
removeChild(java.lang.Long parentId,
java.lang.String childName)
Adds an edge removal operation to the write batch.
|
void |
removeInode(java.lang.Long key)
Adds an inode removal operation to the write batch.
|
void |
writeInode(MutableInode<?> inode)
Adds an inode to the write batch.
|
void writeInode(MutableInode<?> inode)
inode - the inode to addvoid removeInode(java.lang.Long key)
key - the key to removevoid addChild(java.lang.Long parentId,
java.lang.String childName,
java.lang.Long childId)
parentId - the parent idchildName - the child namechildId - the child idvoid removeChild(java.lang.Long parentId,
java.lang.String childName)
parentId - the parent idchildName - the child idvoid commit()
void close()
close in interface java.lang.AutoCloseableCopyright © 2020. All Rights Reserved.