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