Uses of Class
io.github.ajevans.dbcode.dbconsumers.DBCreationException
Package | Description |
---|---|
io.github.ajevans.dbcode.dbconsumers |
Provides the classes necessary to write to various
database / file system types.
|
-
Uses of DBCreationException in io.github.ajevans.dbcode.dbconsumers
Methods in io.github.ajevans.dbcode.dbconsumers that throw DBCreationException Modifier and Type Method Description private void
HadoopConsumer. buildFile(IDataset dataset, int index)
Sets up the relevant file.private void
HadoopConsumer. buildMetadataFile(IMetadata metadata, String metadataFileName)
Sets up a metadata MapFile for each record holder file.private void
DerbyConsumer. buildMetadataTable(IMetadata metadata, String metadataTableName)
Sets up a metadata table for each table.private void
DerbyConsumer. buildTable(IDataset dataset, int index)
Sets up the relevant database table.void
DerbyConsumer. bulkLoad(IDataset dataset)
This method bulk-loads a whole dataset into the database the quickest (but memory hungry) way possible - via a CSV file.void
HadoopConsumer. bulkLoad(IDataset dataset)
This method bulk-loads a whole dataset into one or more files.void
DerbyConsumer. connectStore()
Connects to current store / database.void
HadoopConsumer. connectStore()
Creates data directory and directory it is in if missing, and calls HDFS.void
DerbyConsumer. disconnectStore()
Disconnects from current store / database and garbage collects.void
HadoopConsumer. disconnectStore()
Disconnects from current store / database and garbage collects.void
DerbyConsumer. initialise(IDataset dataset)
Sets up the data store (database and tables).void
HadoopConsumer. initialise(IDataset dataset)
Sets up the data store (directory and files).void
DerbyConsumer. load(IDataset dataset)
Deprecated.This method adds a whole dataset, using INSERT to add a record at a time.void
DerbyConsumer. load(ArrayList<IRecord> records)
Adds multiple records to current database.void
HadoopConsumer. load(IDataset dataset)
Deprecated.Only here to satisfy deprecated interface demands conditional on other classes.void
HadoopConsumer. load(ArrayList<IRecord> records)
Adds multiple records to current store.private void
DerbyConsumer. proveLoaded(String tableName, boolean metadataTable)
Deprecated.Not needed for this class, but a convenient add-in for proving it works without the need for unit testing or database interrogation software.private void
HadoopConsumer. proveLoaded(String tableName, boolean metadataTable)
Deprecated.Not needed for this class, but a convenient add-in for proving it works without the need for unit testing or database interrogation software.private void
DerbyConsumer. runStatement(String sql, String tableName, boolean statementType)
Runs SQL statements and closes them.void
DerbyConsumer. setRecordStoreNames(ArrayList<String> recordStoreNames)
Sets the record store (table) names for the store (database).void
HadoopConsumer. setRecordStoreNames(ArrayList<String> recordStoreNames)
Sets the record store (file) names for the store (directory).void
DerbyConsumer. setStore(String store)
Sets the location for the store / database.void
HadoopConsumer. setStore(String store)
Sets the location for the store / directory to write to.private void
DerbyConsumer. storeRecords(ArrayList<IRecord> records)
INSERTs a collection of records into the database.private void
HadoopConsumer. storeRecords(ArrayList<IRecord> records)
Add a set of records to the relevant record store (file).