Package org.omras2
Class AudioDB
- java.lang.Object
-
- org.omras2.AudioDB
-
public class AudioDB extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static class
AudioDB.Mode
-
Constructor Summary
Constructors Constructor and Description AudioDB(java.io.File path)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
audiodb_close()
boolean
audiodb_create(java.lang.String path, int datasize, int ntracks, int datadim)
boolean
audiodb_insert_data(java.lang.String key, int nvectors, int dim, double[] features, double[] power, double[] times)
boolean
audiodb_insert_path(java.lang.String key, java.lang.String features, java.lang.String power, java.lang.String times)
boolean
audiodb_open(java.lang.String path, AudioDB.Mode mode)
java.util.Vector<Result>
audiodb_query(java.lang.String key, Query config)
Status
audiodb_status()
void
close()
boolean
create(int datasize, int ntracks, int datadim)
Status
getStatus()
boolean
insert(java.io.File features)
boolean
insert(java.lang.String key, int nvectors, int dim, double[] features)
boolean
insert(java.lang.String key, int nvectors, int dim, double[] features, double[] power)
boolean
insert(java.lang.String key, int nvectors, int dim, double[] features, double[] power, double[] times)
boolean
insert(java.lang.String key, java.io.File features)
boolean
insert(java.lang.String key, java.io.File features, java.io.File power)
boolean
insert(java.lang.String key, java.io.File features, java.io.File power, java.io.File times)
static void
main(java.lang.String[] args)
boolean
open(AudioDB.Mode mode)
java.util.Vector<Result>
query(java.lang.String key, Query config)
java.util.Vector<Result>
query(Query config)
-
-
-
Method Detail
-
audiodb_create
public boolean audiodb_create(java.lang.String path, int datasize, int ntracks, int datadim)
-
audiodb_open
public boolean audiodb_open(java.lang.String path, AudioDB.Mode mode)
-
audiodb_close
public void audiodb_close()
-
audiodb_status
public Status audiodb_status()
-
audiodb_insert_path
public boolean audiodb_insert_path(java.lang.String key, java.lang.String features, java.lang.String power, java.lang.String times)
-
audiodb_insert_data
public boolean audiodb_insert_data(java.lang.String key, int nvectors, int dim, double[] features, double[] power, double[] times)
-
close
public void close()
-
insert
public boolean insert(java.io.File features)
-
insert
public boolean insert(java.lang.String key, java.io.File features)
-
insert
public boolean insert(java.lang.String key, java.io.File features, java.io.File power)
-
insert
public boolean insert(java.lang.String key, java.io.File features, java.io.File power, java.io.File times)
-
insert
public boolean insert(java.lang.String key, int nvectors, int dim, double[] features)
-
insert
public boolean insert(java.lang.String key, int nvectors, int dim, double[] features, double[] power)
-
insert
public boolean insert(java.lang.String key, int nvectors, int dim, double[] features, double[] power, double[] times)
-
create
public boolean create(int datasize, int ntracks, int datadim)
-
open
public boolean open(AudioDB.Mode mode)
-
getStatus
public Status getStatus()
-
main
public static void main(java.lang.String[] args)
-
-