public class RDBMSInserter extends Inserter
Modifier and Type | Field and Description |
---|---|
static double |
DEFAULT_EVIDENCE_VALUE |
static int |
DEFAULT_MULTIROW_COUNT
The number of records in each multi-row insert.
|
static int |
DEFAULT_PAGE_SIZE
The number of inserts in each batch.
|
DEFAULT_DELIMITER
Constructor and Description |
---|
RDBMSInserter(RDBMSDataStore dataStore,
PredicateInfo predicateInfo,
Partition partition) |
Modifier and Type | Method and Description |
---|---|
void |
bulkCopy(String path,
String delimiter,
boolean hasTruth)
Import the file directly into the database.
|
void |
insertAll(List<List<Object>> data)
Insert several objects using the default truth value.
|
void |
insertAllValues(List<Double> values,
List<List<Object>> data)
Insert several objects using the specified truth values.
|
boolean |
supportsBulkCopy()
Some inserters backed with specific databases can do bulk copy operations.
|
insert, insertValue, loadDelimitedData, loadDelimitedData, loadDelimitedDataAutomatic, loadDelimitedDataAutomatic, loadDelimitedDataTruth, loadDelimitedDataTruth
public static final int DEFAULT_PAGE_SIZE
public static final double DEFAULT_EVIDENCE_VALUE
public static final int DEFAULT_MULTIROW_COUNT
public RDBMSInserter(RDBMSDataStore dataStore, PredicateInfo predicateInfo, Partition partition)
public void insertAll(List<List<Object>> data)
Inserter
public void insertAllValues(List<Double> values, List<List<Object>> data)
Inserter
insertAllValues
in class Inserter
public boolean supportsBulkCopy()
Inserter
supportsBulkCopy
in class Inserter
Copyright © 2018 University of California, Santa Cruz. All rights reserved.