SecondaryDatabase extend those of a primary Database. The secondary database configuration is specified when calling {@link Environment#openSecondaryDatabase Environment.openSecondaryDatabase}. To create a configuration object with default attributes:
SecondaryConfig config = new SecondaryConfig();
To set custom attributes:
SecondaryConfig config = new SecondaryConfig(); config.setAllowCreate(true); config.setSortedDuplicates(true); config.setKeyCreator(new MyKeyCreator());@see Environment#openSecondaryDatabase Environment.openSecondaryDatabase @see SecondaryDatabase
| |
| |