|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.h2.mvstore.MVStoreBuilder
public class MVStoreBuilder
A builder for an MVStore.
| Constructor Summary | |
|---|---|
MVStoreBuilder()
|
|
| Method Summary | |
|---|---|
MVStoreBuilder |
cacheSizeMB(int mb)
Set the read cache size in MB. |
static MVStoreBuilder |
fileBased(java.lang.String fileName)
Use the following file name. |
static MVStoreBuilder |
fromString(java.lang.String s)
Read the configuration from a string. |
static MVStoreBuilder |
inMemory()
Open the store in-memory. |
MVStore |
open()
Open the store. |
MVStoreBuilder |
readOnly()
Open the file in read-only mode. |
java.lang.String |
toString()
|
MVStoreBuilder |
with(DataTypeFactory factory)
Use the given data type factory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MVStoreBuilder()
| Method Detail |
|---|
public static MVStoreBuilder fileBased(java.lang.String fileName)
fileName - the file name
public static MVStoreBuilder inMemory()
public MVStoreBuilder readOnly()
If this option is not used, the file is locked exclusively.
Please note a store may only be opened once in every JVM (no matter whether it is opened in read-only or read-write mode), because each file may be locked only once in a process.
public MVStoreBuilder cacheSizeMB(int mb)
mb - the cache size
public MVStoreBuilder with(DataTypeFactory factory)
factory - the data type factory
public MVStore open()
public java.lang.String toString()
toString in class java.lang.Objectpublic static MVStoreBuilder fromString(java.lang.String s)
s - the string representation
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||