com.scudata.parallel.TableProxy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of esproc Show documentation
Show all versions of esproc Show documentation
SPL(Structured Process Language) A programming language specially for structured data computing.
package com.scudata.parallel;
import com.scudata.dm.BaseRecord;
import com.scudata.dm.Context;
import com.scudata.dm.Table;
/**
* ?ڵ?????????
* @author WangXiaoJun
*
*/
public class TableProxy extends IProxy {
private Table table;
private int unit;
public TableProxy(Table table) {
this.table = table;
}
public TableProxy(Table table, int unit) {
this.table = table;
this.unit = unit;
}
public void close() {
}
public BaseRecord getRow(Object key, Context ctx) {
return (BaseRecord) table.findByKey(key, true);
}
public boolean createIndex(Integer capacity, String opt) {
if (capacity == null) {
table.createIndexTable(null);
} else {
table.createIndexTable(capacity, opt);
}
return true;
}
public int getUnit() {
return unit;
}
public Table getTable() {
return table;
}
public void setTable(Table table) {
this.table = table;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy