public abstract class BaseLoader extends Object implements JDBCNDArrayIO
| Modifier and Type | Field and Description |
|---|---|
protected String |
columnName |
protected DataSource |
dataSource |
protected String |
idColumnName |
protected String |
jdbcUrl |
protected String |
tableName |
| Modifier | Constructor and Description |
|---|---|
protected |
BaseLoader(DataSource dataSource,
String jdbcUrl,
String tableName,
String columnName) |
protected |
BaseLoader(DataSource dataSource,
String jdbcUrl,
String tableName,
String idColumnName,
String columnName) |
protected |
BaseLoader(String jdbcUrl,
String tableName,
String idColumnName,
String columnName) |
| Modifier and Type | Method and Description |
|---|---|
Blob |
convert(IComplexNDArray toConvert)
Convert an ndarray to a blob
|
Blob |
convert(INDArray toConvert)
Convert an ndarray to a blob
|
void |
delete(String id)
Delete the given ndarray
|
INDArray |
load(Blob blob)
Load an ndarray from a blob
|
IComplexNDArray |
loadComplex(Blob blob)
Load a complex ndarray from a blob
|
Blob |
loadForID(String id)
Load an ndarray blob given an id
|
void |
save(IComplexNDArray save,
String id)
Save the ndarray
|
void |
save(INDArray save,
String id)
Save the ndarray
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdeleteStatement, insertStatement, loadStatementprotected String tableName
protected String columnName
protected String idColumnName
protected String jdbcUrl
protected DataSource dataSource
protected BaseLoader(DataSource dataSource, String jdbcUrl, String tableName, String idColumnName, String columnName) throws Exception
Exceptionprotected BaseLoader(String jdbcUrl, String tableName, String idColumnName, String columnName) throws Exception
Exceptionpublic Blob convert(IComplexNDArray toConvert) throws IOException, SQLException
convert in interface JDBCNDArrayIOtoConvert - the complex ndarray to convertIOExceptionSQLExceptionpublic Blob convert(INDArray toConvert) throws SQLException, IOException
convert in interface JDBCNDArrayIOtoConvert - the ndarray to convertSQLExceptionIOExceptionpublic INDArray load(Blob blob) throws SQLException, IOException
load in interface JDBCNDArrayIOblob - the blob to load fromSQLExceptionIOExceptionpublic IComplexNDArray loadComplex(Blob blob) throws SQLException, IOException
loadComplex in interface JDBCNDArrayIOblob - the blob to load fromSQLExceptionIOExceptionpublic void save(INDArray save, String id) throws SQLException, IOException
save in interface JDBCNDArrayIOsave - the ndarray to saveSQLExceptionIOExceptionpublic void save(IComplexNDArray save, String id) throws IOException, SQLException
save in interface JDBCNDArrayIOsave - the ndarray to saveIOExceptionSQLExceptionpublic Blob loadForID(String id) throws SQLException
loadForID in interface JDBCNDArrayIOid - the id to loadSQLExceptionpublic void delete(String id) throws SQLException
delete in interface JDBCNDArrayIOid - the id of the ndarray to deleteSQLExceptionCopyright © 2016. All Rights Reserved.