Package org.iq80.leveldb.impl
Class VersionSet.Builder
java.lang.Object
org.iq80.leveldb.impl.VersionSet.Builder
- Enclosing class:
VersionSet
A helper class so we can efficiently apply a whole sequence
of edits to a particular state without creating intermediate
Versions that contain full copies of the intermediate state.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classprivate static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Versionprivate final List<VersionSet.Builder.LevelState> private final VersionSet -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(VersionEdit edit) Apply the specified edit to the current state.private voidmaybeAddFile(Version version, int level, FileMetaData fileMetaData) voidSaves the current state in specified version.
-
Field Details
-
versionSet
-
baseVersion
-
levels
-
-
Constructor Details
-
Builder
-
-
Method Details
-
apply
Apply the specified edit to the current state. -
saveTo
Saves the current state in specified version.- Throws:
IOException
-
maybeAddFile
- Throws:
IOException
-