Package com.taobao.tdhs.client

Examples of com.taobao.tdhs.client.TDHSClientImpl


                value.addRefCount();
                key.setClient(value.getClient());
                return key;
            } else {
                TDHSClient tdhsClient =
                        new TDHSClientImpl(key.getAddress(), connectionNumber, timeOut, needReconnect, connectTimeOut,
                                charsetName, readCode, writeCode, lowerCaseTableNames, version);
                value = new ClientValue(tdhsClient);
                instances.put(key, value);
                key.setClient(tdhsClient);
                return key;
View Full Code Here


                    is.close();
                }
            }

            try {
                client = new TDHSClientImpl(new InetSocketAddress(global.getProperty("server.host"),
                        Integer.parseInt(global.getProperty("server.port", "9999"))), 1, 3000, false, 3000);
            } catch (TDHSException e) {
                Assert.fail("Init exception:" + e.getMessage());
            }
        }
View Full Code Here

*/
public class BetweenTest {

    @Test
    public void testBetween() throws TDHSException {
        TDHSClient client = new TDHSClientImpl(new InetSocketAddress("t-wentong-u.local", 9999), 1);

        TDHSResponse r = client.query().use("test").select("id", "v", "i").from("test").where().fields("i")
                .between(new String[]{"2"},
                        new String[]{"5"}).and().field("i").not("2").and().field("i").not("5").get();

        List<List<String>> fieldData = r.getFieldData();
        for (List<String> fd : fieldData) {
            for (String v : fd) {
                System.out.print(v + " ");
            }
            System.out.print("\n");
        }
        client.shutdown();
    }
View Full Code Here

TOP

Related Classes of com.taobao.tdhs.client.TDHSClientImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.