This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MapDBCreator { | |
public static void main(String[] args) { | |
DB db = DBMaker.newFileDB("mapdbFile").transactionDisable().mmapFileEnablePartial().make(); | |
getEmployees().parallelStream().forEach(e -> createRecords(e, db)); | |
} | |
private static List<Employee> getEmployees() { | |
/* return employees list */ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package test; | |
import com.google.common.base.CharMatcher; | |
import com.google.common.base.Stopwatch; | |
import okio.BufferedSource; | |
import okio.Okio; | |
import java.io.IOException; | |
import java.nio.charset.StandardCharsets; | |
import java.nio.file.Paths; |