Mercurial > hg > audiodb
comparison audioDBws.h @ 354:4871a3ed9e36 pre_api
Added serialized feature query Web Service, server-side only, example Python script: QueryADB.py -v
author | mas01mc |
---|---|
date | Fri, 07 Nov 2008 12:48:26 +0000 |
parents | 100cf66a5825 |
children | add65705e655 |
comparison
equal
deleted
inserted
replaced
347:0d02bcd74a40 | 354:4871a3ed9e36 |
---|---|
45 char **Rkey; | 45 char **Rkey; |
46 int __sizeRlen; | 46 int __sizeRlen; |
47 unsigned int *Rlen; | 47 unsigned int *Rlen; |
48 }; | 48 }; |
49 | 49 |
50 struct adb__queryVector { | |
51 int dim; // dimensionality of the feature (d) | |
52 int __sizev; // l x d : | |
53 double *v; // pointer to query data | |
54 int __sizep; | |
55 double *p; | |
56 }; | |
57 | |
50 struct adb__lisztResponse { | 58 struct adb__lisztResponse { |
51 struct adb__lisztResult result; | 59 struct adb__lisztResult result; |
52 }; | 60 }; |
53 | 61 |
54 // Print the status of an existing adb database | 62 // Print the status of an existing adb database |
59 | 67 |
60 // Query an existing adb database | 68 // Query an existing adb database |
61 int adb__query(xsd__string dbName, xsd__string qKey, xsd__string keyList, xsd__string timesFileName, xsd__string powerFileName, xsd__int qType, xsd__int qPos, xsd__int pointNN, xsd__int segNN, xsd__int segLen, xsd__double radius, xsd__double absolute_threshold, xsd__double relative_threshold, xsd__int exhaustive, xsd__int lsh_exact, struct adb__queryResponse &adbQueryResponse); | 69 int adb__query(xsd__string dbName, xsd__string qKey, xsd__string keyList, xsd__string timesFileName, xsd__string powerFileName, xsd__int qType, xsd__int qPos, xsd__int pointNN, xsd__int segNN, xsd__int segLen, xsd__double radius, xsd__double absolute_threshold, xsd__double relative_threshold, xsd__int exhaustive, xsd__int lsh_exact, struct adb__queryResponse &adbQueryResponse); |
62 | 70 |
63 int adb__sequenceQueryByKey(xsd__string dbName,xsd__string trackKey, xsd__string featureFileName, xsd__int queryType,xsd__string trackFileName,xsd__string timesFileName,xsd__int queryPoint,xsd__int pointNN,xsd__int trackNN,xsd__int sequenceLength,xsd__double radius,xsd__double absolute_threshold,xsd__int usingQueryPoint,xsd__int lsh_exact,struct adb__queryResponse &adbQueryResponse); | 71 int adb__sequenceQueryByKey(xsd__string dbName,xsd__string trackKey, xsd__string featureFileName, xsd__int queryType,xsd__string trackFileName,xsd__string timesFileName,xsd__int queryPoint,xsd__int pointNN,xsd__int trackNN,xsd__int sequenceLength,xsd__double radius,xsd__double absolute_threshold,xsd__int usingQueryPoint,xsd__int lsh_exact,struct adb__queryResponse &adbQueryResponse); |
72 | |
73 // Query an audioDB database by vector (serialized), queryKey/featureFileName is here replaced with qVector | |
74 int adb__shingleQuery(xsd__string dbName, struct adb__queryVector qVector, xsd__string keyList, xsd__string timesFileName, xsd__int queryType, xsd__int queryPos, xsd__int pointNN, xsd__int trackNN, xsd__int sequenceLength, xsd__double radius, xsd__double absolute_threshold, xsd__double relative_threshold, xsd__int exhaustive, xsd__int lsh_exact, struct adb__queryResponse &adbQueryResponse); | |
75 |