- All Superinterfaces:
AutoCloseable
,Closeable
- Enclosing interface:
Store
Writes an entry's metadata block and data stream.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Closes this editor.void
commit
(ByteBuffer metadata) Commits the changes made so far.key()
Returns the entry's key.writer()
-
Method Details
-
key
String key()Returns the entry's key. -
writer
Store.EntryWriter writer() -
commit
Commits the changes made so far.- Throws:
IllegalStateException
- if the edit is invalidatedIOException
-
close
void close()Closes this editor. Ifcommit(ByteBuffer)
hasn't been called prior to this method, changes made by this editor are discarded.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-