MyCaffe
1.12.2.41
Deep learning software for Windows C# programmers.
|
The custom query interface defines the functions implemented by each Custom Query object used to specifically query the tables of the underlying database. More...
Public Member Functions | |
void | Open () |
Open a connection to the underlying database using the connection string specified. More... | |
void | Close () |
Close a currently open connection. More... | |
List< int > | GetQuerySize () |
Returns the query count for the current query. More... | |
double[] | QueryByTime (DateTime dt, TimeSpan ts, int nCount) |
Query the fields specified (in the Open function) starting from the date-time specified. More... | |
byte[] | QueryBytes () |
Query the raw bytes. More... | |
List< double[]> | QueryRealD () |
Query the data as a set one or more double arrays. More... | |
List< float[]> | QueryRealF () |
Query the data as a set one or more float arrays. More... | |
Dictionary< string, float > | QueryInfo () |
The Query information returns information about the data queried such as header information. More... | |
IXCustomQuery | Clone (string strParam) |
Return a new instance of the custom query. More... | |
void | Reset () |
Reset the custom query. More... | |
byte[] | ConvertOutput (float[] rg, out string strType) |
Converts the output values into the native type used by the CustomQuery. More... | |
Properties | |
CUSTOM_QUERY_TYPE | QueryType [get] |
Returns the custom query type supported by the custom query. More... | |
string | Name [get] |
Returns the name of the Custom Query. More... | |
int | FieldCount [get] |
Returns the field count for this query. More... | |
The custom query interface defines the functions implemented by each Custom Query object used to specifically query the tables of the underlying database.
Each Custom Query implementation DLL must be placed within the
directory that is relative to the MyCaffe.db.stream.dll file location. For example, see the following directory structure:
Definition at line 167 of file Interfaces.cs.
IXCustomQuery MyCaffe.db.stream.IXCustomQuery.Clone | ( | string | strParam | ) |
Return a new instance of the custom query.
strParam | Specifies the custom query parameters. |
Implemented in MyCaffe.db.stream.StandardQueryTextFile, and MyCaffe.db.stream.StandardQueryWAVFile.
void MyCaffe.db.stream.IXCustomQuery.Close | ( | ) |
Close a currently open connection.
Implemented in MyCaffe.db.stream.StandardQueryTextFile, and MyCaffe.db.stream.StandardQueryWAVFile.
byte[] MyCaffe.db.stream.IXCustomQuery.ConvertOutput | ( | float[] | rg, |
out string | strType | ||
) |
Converts the output values into the native type used by the CustomQuery.
rg | Specifies the raw output data. |
strType | Returns the output type. |
Implemented in MyCaffe.db.stream.StandardQueryTextFile, and MyCaffe.db.stream.StandardQueryWAVFile.
List< int > MyCaffe.db.stream.IXCustomQuery.GetQuerySize | ( | ) |
Returns the query count for the current query.
Implemented in MyCaffe.db.stream.StandardQueryTextFile, and MyCaffe.db.stream.StandardQueryWAVFile.
void MyCaffe.db.stream.IXCustomQuery.Open | ( | ) |
Open a connection to the underlying database using the connection string specified.
Implemented in MyCaffe.db.stream.StandardQueryTextFile, and MyCaffe.db.stream.StandardQueryWAVFile.
byte[] MyCaffe.db.stream.IXCustomQuery.QueryBytes | ( | ) |
Query the raw bytes.
Implemented in MyCaffe.db.stream.StandardQueryTextFile, and MyCaffe.db.stream.StandardQueryWAVFile.
double[] MyCaffe.db.stream.IXCustomQuery.QueryByTime | ( | DateTime | dt, |
TimeSpan | ts, | ||
int | nCount | ||
) |
Query the fields specified (in the Open function) starting from the date-time specified.
Items are returned in column-major format (e.g. datetime, val1, val2, datetime, val1, val2...)
dt | Specifies the start date-time where the query should start. Note, using ID based querying assumes that all other Custom Queries used have synchronized date-time fields. |
ts | Specifies the timespan between data items. |
nCount | Specifies the number of items to query. |
Implemented in MyCaffe.db.stream.StandardQueryTextFile, and MyCaffe.db.stream.StandardQueryWAVFile.
Dictionary< string, float > MyCaffe.db.stream.IXCustomQuery.QueryInfo | ( | ) |
The Query information returns information about the data queried such as header information.
Implemented in MyCaffe.db.stream.StandardQueryTextFile, and MyCaffe.db.stream.StandardQueryWAVFile.
List< double[]> MyCaffe.db.stream.IXCustomQuery.QueryRealD | ( | ) |
Query the data as a set one or more double arrays.
Implemented in MyCaffe.db.stream.StandardQueryTextFile, and MyCaffe.db.stream.StandardQueryWAVFile.
List< float[]> MyCaffe.db.stream.IXCustomQuery.QueryRealF | ( | ) |
Query the data as a set one or more float arrays.
Implemented in MyCaffe.db.stream.StandardQueryTextFile, and MyCaffe.db.stream.StandardQueryWAVFile.
void MyCaffe.db.stream.IXCustomQuery.Reset | ( | ) |
Reset the custom query.
Implemented in MyCaffe.db.stream.StandardQueryTextFile, and MyCaffe.db.stream.StandardQueryWAVFile.
|
get |
Returns the field count for this query.
Definition at line 180 of file Interfaces.cs.
|
get |
Returns the name of the Custom Query.
Definition at line 176 of file Interfaces.cs.
|
get |
Returns the custom query type supported by the custom query.
Definition at line 172 of file Interfaces.cs.