ITeye博客

tokyoTyrant-JAVA

popwang · 2011-06-13 19:58 · 数据库 · Markdown

来自RDBTBL.java

    /**
     * Store a record into a remote database object.
     * @param key specifies the key.
     * @param cols specifies a map object containing columns.
     * @return If successful, the return value is true, else, it is false. If a record with the same key exists in the database, it is overwritten.
     * @throws IOException
     */

 

    public boolean tblput(Object key, Map<Object, Object> cols) throws IOException {

        Object[] result =  store("put", key, cols);

        if (result == null) {
            return false;
        }

        return true;

    }

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。