public static class CompactStringStorage.Builder extends Object implements MasterStorages.MasterStorageBuilder<String>
Constructor and Description |
---|
Builder(int pagesize,
int skips)
Construct.
|
Modifier and Type | Method and Description |
---|---|
void |
add(int masterIndex,
String data)
Add next represented data.
|
void |
addMissing(int masterIndex)
Add missing data.
|
CompactStringStorage |
build()
Build immutable, serializable storage from the current state.
|
public Builder(int pagesize, int skips)
pagesize
- Expected pagesizeskips
- Skip countpublic void add(int masterIndex, String data)
MasterStorages.MasterStorageBuilder
add
in interface MasterStorages.MasterStorageBuilder<String>
masterIndex
- Next indexdata
- Next datapublic void addMissing(int masterIndex)
MasterStorages.MasterStorageBuilder
addMissing
in interface MasterStorages.MasterStorageBuilder<String>
masterIndex
- Next indexpublic CompactStringStorage build()
MasterStorages.MasterStorageBuilder
build
in interface MasterStorages.MasterStorageBuilder<String>