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(){}