OctaDB Engine
1.0.0
在這個專案中,您將建立一個支援八叉樹索引的小型資料庫引擎。所需的功能是
Table Name, Column Name, Column Type, ClusteringKey, IndexName,IndexType, min, max
CityShop, ID, java.lang.Integer, True, null, null, 0,10000
CityShop, Name, java.lang.String, False, NameAddrSpecIndex, Octree, “A”, “ZZZZZZZZZZZ”
CityShop, X, java.lang.Double, False, XYZIndex, Octree, 0,1000000
CityShop, Y, java.util.Double, False, XYZIndex, Octree, 0,1000000
CityShop, Z, java.lang.Double, False, XYZIndex, Octree, 0,1000000
CityShop, Specialization, java.lang.String, False, NameAddrSpecIndex, Octree, “A”, “ZZZZZZZZZZZ”
CityShop, Address, java.lang.String, False, NameAddrSpecIndex, Octree, “A”, “ZZZZZZZZZZZ”
*您必須將上述元資料儲存在名為metadata.csv的單一檔案中。不要擔心它在解決方案中的大小(即不要對它進行分頁)。
*您必須使用metadata.csv 檔案來了解正在傳遞的資料的類型並驗證其類型是否正確。所以,不要把metadata.csv當作裝飾品!
public void init( );
public void createTable(String strTableName, String strClusteringKeyColumn, Hashtable<String,String> htblColNameType, Hashtable<String,String> htblColNameMin, Hashtable<String,String> htblColNameMax ) throws DBAppException(){}
public void createIndex(String strTableName, String[] strarrColName) throws DBAppException(){}
public void insertIntoTable(String strTableName, Hashtable<String,Object> htblColNameValue) throws DBAppException(){}
public void updateTable(String strTableName, String strClusteringKeyValue, Hashtable<String,Object> htblColNameValue ) throws DBAppException(){}
public void deleteFromTable(String strTableName,Hashtable<String,Object> htblColNameValue) throws DBAppException(){}
public Iterator selectFromTable(SQLTerm[] arrSQLTerms, String[] strarrOperators) throws DBAppException(){}