---
title: "tokyoTyrant-JAVA"
author: "popwang"
date: "2011-06-13T19:58:37Z"
tags: []
categories: ["数据库"]
slug: "tokyotyrant-java"
draft: false
lastmod: "2011-06-13T19:58:37Z"
id: 1084513
url: "https://popwang.iteye.com/blog/1084513"
---

来自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&lt;Object, Object&gt; cols) throws IOException {

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

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

        return true;

    }