public class DefaultDataLoader extends Object
Modifier and Type | Field and Description |
---|---|
protected CouchDbConnector |
db |
Constructor and Description |
---|
DefaultDataLoader(CouchDbConnector db) |
DefaultDataLoader(CouchDbConnector db,
com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
Modifier and Type | Method and Description |
---|---|
protected void |
createDocument(com.fasterxml.jackson.databind.JsonNode n,
String id)
Can be overidden in order to customize document creation.
|
void |
load(Reader in)
Reads documents from the reader and stores them in the database.
|
protected final CouchDbConnector db
public DefaultDataLoader(CouchDbConnector db)
public DefaultDataLoader(CouchDbConnector db, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
public void load(Reader in)
in
- protected void createDocument(com.fasterxml.jackson.databind.JsonNode n, String id)
n
- id
- Copyright © 2013. All Rights Reserved.