我有一個二維數組我該如何在java表上執行類似SQL的查找?
public static class Status{
public static String[][] Data= {
{ "FriendlyName","Value","Units","Serial","Min","Max","Mode","TestID","notes" },
{ "PIDs supported [01 – 20]:",null,"Binary","0",null,null,"1","0",null },
{ "Online Monitors since DTCs cleared:",null,"Binary","1",null,null,"1","1",null },
{ "Freeze DTC:",null,"NONE IN MODE 1","2",null,null,"1","2",null },
我想
SELECT "FriendlyName","Value" FROM Data WHERE "Mode" = "1" and "TestID" = "2"
我該怎麼辦呢?最快的執行時間非常重要,因爲每分鐘可能有數百個這樣的時間。
是否有你不能真正使用數據庫的原因? HSQLDB和Derby都非常快速和輕便。 – mlschechter 2010-07-25 02:19:52