Package com._1c.g5.v8.xmdb
Class DatabaseBuilder
java.lang.Object
com._1c.g5.v8.xmdb.DatabaseBuilder
Class to create/load XMDB databases
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionLoad or create database with current database builder state parametersstatic DatabaseBuilder
setCacheNodeSizeRead
(int cacheNodeSizeRead) Set read node cache size (in nodes count)setCacheNodeSizeWrite
(int cacheNodeSizeWrite) Set write node cache size (in nodes count)setCacheValueSize
(int cacheValueSize) Set value cache size (in element count)setFilename
(String filename) Set database location in fssetInMemory
(boolean inMemory) Set inMemory flag (fit db completelly in memory)setLazySync
(boolean lazySync) Set lazy sync mode (don't sync after each index list modification)setObjectBatchBS
(int objectBatchBS) Set block size to batch object writingsetOpenTest
(boolean openTest) Set strict open test modesetThreadSafe
(boolean threadSafe) Set thread safe flag to database
-
Constructor Details
-
DatabaseBuilder
public DatabaseBuilder()
-
-
Method Details
-
getBuilder
-
setCacheNodeSizeRead
Set read node cache size (in nodes count)- Parameters:
cacheNodeSizeRead
- read node cache size- Returns:
- current object to chaining
-
setCacheNodeSizeWrite
Set write node cache size (in nodes count)- Parameters:
cacheNodeSizeWrite
- write node cache size- Returns:
- current object to chaining
-
setCacheValueSize
Set value cache size (in element count)- Parameters:
cacheValueSize
- value cache size- Returns:
- current object to chaining
-
setFilename
Set database location in fs- Parameters:
filename
- database location in fs- Returns:
- current object to chaining
-
setLazySync
Set lazy sync mode (don't sync after each index list modification)- Parameters:
lazySync
- lazy sync flag- Returns:
- current object to chaining
-
setOpenTest
Set strict open test mode- Parameters:
openTest
- strict open test flag- Returns:
- current object to chaining
-
setThreadSafe
Set thread safe flag to database- Parameters:
threadSafe
- thread safe flag- Returns:
- current object to chaining
-
setInMemory
Set inMemory flag (fit db completelly in memory)- Parameters:
inMemory
-- Returns:
- current object to chaining
-
setObjectBatchBS
Set block size to batch object writing- Parameters:
objectBatchBS
-- Returns:
- current object to chaining
-
buildDatabase
Load or create database with current database builder state parameters- Returns:
- database
-