Package org.apache.thrift.transport

Examples of org.apache.thrift.transport.TSocket.open()


            "hbase", // Thrift server user name, should be an authorized proxy user.
            host, // Thrift server domain
            saslProperties, null, transport);
        }

        transport.open();

        TProtocol protocol = new TBinaryProtocol(transport, true, true);
        Hbase.Client client = new Hbase.Client(protocol);

        byte[] t = bytes("demo_table");
View Full Code Here


        TSocket transport = new TSocket(host, port);
        TProtocol protocol = new TBinaryProtocol(transport);
        LogWriter.Client client = new LogWriter.Client(protocol);
       
        try {
            transport.open();
            client.send_batch(batch);
            transport.close();
        } catch (TTransportException e) {
            throw new RuntimeException(e);
        } catch (TException e) {
View Full Code Here

    TSocket transport = new TSocket(host, port);
    TProtocol protocol = new TBinaryProtocol(transport);
    Indexer.Client client = new Indexer.Client(protocol);
   
    try {
      transport.open();
      client.addDoc(docId, new Document(document.asMap()), timestampBoost, dynamicBoosts);
      transport.close();
    } catch (IndextankException e) {
      throw new RuntimeException(e);
    } catch (TTransportException e) {
View Full Code Here

    TSocket transport = new TSocket(host, port);
    TProtocol protocol = new TBinaryProtocol(transport);
    Indexer.Client client = new Indexer.Client(protocol);
   
    try {
      transport.open();
      client.dump();
      transport.close();
    } catch (IndextankException e) {
      throw new RuntimeException(e);
    } catch (TTransportException e) {
View Full Code Here

    TSocket transport = new TSocket(host, port);
    TProtocol protocol = new TBinaryProtocol(transport);
    Indexer.Client client = new Indexer.Client(protocol);
   
    try {
      transport.open();
      client.updateBoost(docId, updatedBoosts);
      transport.close();
    } catch (IndextankException e) {
      throw new RuntimeException(e);
    } catch (TTransportException e) {
View Full Code Here

    TSocket transport = new TSocket(host, port);
    TProtocol protocol = new TBinaryProtocol(transport);
    Indexer.Client client = new Indexer.Client(protocol);
   
    try {
      transport.open();
      client.updateCategories(docId, categories);
      transport.close();
    } catch (IndextankException e) {
      throw new RuntimeException(e);
    } catch (TTransportException e) {
View Full Code Here

    TSocket transport = new TSocket(host, port);
    TProtocol protocol = new TBinaryProtocol(transport);
    Indexer.Client client = new Indexer.Client(protocol);
   
    try {
      transport.open();
      client.updateTimestampBoost(docId, timestampBoost);
      transport.close();
    } catch (IndextankException e) {
      throw new RuntimeException(e);
    } catch (TTransportException e) {
View Full Code Here

    TSocket transport = new TSocket(host, port);
    TProtocol protocol = new TBinaryProtocol(transport);
    Indexer.Client client = new Indexer.Client(protocol);
   
    try {
      transport.open();
      client.delDoc(docid);
      transport.close();
    } catch (IndextankException e) {
      throw new RuntimeException(e);
    } catch (TTransportException e) {
View Full Code Here

    TSocket transport = new TSocket(host, port);
    TProtocol protocol = new TBinaryProtocol(transport);
    Indexer.Client client = new Indexer.Client(protocol);
   
    try {
      transport.open();
      client.addScoreFunction(functionIndex, definition);
      transport.close();
    } catch (IndextankException e) {
      throw new RuntimeException(e);
    } catch (TTransportException e) {
View Full Code Here

    TSocket transport = new TSocket(host, port);
    TProtocol protocol = new TBinaryProtocol(transport);
    Indexer.Client client = new Indexer.Client(protocol);
   
    try {
      transport.open();
      client.removeScoreFunction(functionIndex);
      transport.close();
    } catch (IndextankException e) {
      throw new RuntimeException(e);
    } catch (TTransportException e) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.