Updated Branches: refs/heads/master da43794ff -> 761486cce
Cleaning up a couple of items in the docs. Project: http://git-wip-us.apache.org/repos/asf/incubator-blur/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-blur/commit/e96e11af Tree: http://git-wip-us.apache.org/repos/asf/incubator-blur/tree/e96e11af Diff: http://git-wip-us.apache.org/repos/asf/incubator-blur/diff/e96e11af Branch: refs/heads/master Commit: e96e11af37ad9b28cbc5f0b59f1f91147a86dc19 Parents: da43794 Author: Aaron McCurry <[email protected]> Authored: Thu Aug 29 23:12:39 2013 -0400 Committer: Aaron McCurry <[email protected]> Committed: Thu Aug 29 23:12:39 2013 -0400 ---------------------------------------------------------------------- docs/using-blur.base.html | 15 +++++++++++---- docs/using-blur.html | 15 +++++++++++---- 2 files changed, 22 insertions(+), 8 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/e96e11af/docs/using-blur.base.html ---------------------------------------------------------------------- diff --git a/docs/using-blur.base.html b/docs/using-blur.base.html index 1064858..19d00de 100644 --- a/docs/using-blur.base.html +++ b/docs/using-blur.base.html @@ -52,6 +52,12 @@ <ul class="nav bs-sidenav"> <li><a href="#thrift-client">Thrift Client</a> <ul class="nav"> + <li><a href="#simple_connection_example">Getting A Client Example</a> + <ul class="nav"> + <li><a href="#simple_connection_example_constr"> Connection String</a></li> + <li><a href="#simple_connection_example_thrift"> Thrift Client</a></li> + </ul> + </li> <li><a href="#simple_query_example">Query Example</a></li> <li><a href="#simple_query_example_data">Query Example with Data</a></li> <li><a href="#simple_fetch_data">Fetch Data</a></li> @@ -94,7 +100,8 @@ The following examples are of using the Thrift API directly. You will need to f <h3 id="simple_connection_example">Getting A Client Example</h3> <p> -<h4>Connection String</h4> +<br/> +<h4 id="simple_connection_example_constr">Connection String</h4> The connection string can be parsed or constructed through "Connection" object. If you are using the parsed version there are some options. At a minimum you will have to provide hostname and port: <pre><code class="bash">host1:40010</code></pre> @@ -113,8 +120,8 @@ Multiple hosts with a different timeout: Here is all options together: <pre><code class="bash">host1:40010/proxyhost1:6001,host2:40010/proxyhost1:6001#90000</code></pre> - -<h4>Thrift Client</h4> +<br/> +<h4 id="simple_connection_example_thrift">Thrift Client</h4> Client Example 1: <pre><code class="java">Iface client = BlurClient.getClient("controller1:40010,controller2:40010");</code></pre> @@ -131,7 +138,7 @@ Client Example 3: });</code></pre> Client Example 4: -<pre><code class="java">List<Connection> connections = BlurClientManager.getConnections("controller1:40010,controller2:40010"); +<pre><code class="java">List<Connection> connections = BlurClientManager.getConnections("controller1:40010,controller2:40010"); BlurClientManager.execute(connections, new BlurCommand<T>() { @Override public T call(Client client) throws BlurException, TException { http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/e96e11af/docs/using-blur.html ---------------------------------------------------------------------- diff --git a/docs/using-blur.html b/docs/using-blur.html index 91d6aa5..e62de54 100644 --- a/docs/using-blur.html +++ b/docs/using-blur.html @@ -52,6 +52,12 @@ <ul class="nav bs-sidenav"> <li><a href="#thrift-client">Thrift Client</a> <ul class="nav"> + <li><a href="#simple_connection_example">Getting A Client Example</a> + <ul class="nav"> + <li><a href="#simple_connection_example_constr"> Connection String</a></li> + <li><a href="#simple_connection_example_thrift"> Thrift Client</a></li> + </ul> + </li> <li><a href="#simple_query_example">Query Example</a></li> <li><a href="#simple_query_example_data">Query Example with Data</a></li> <li><a href="#simple_fetch_data">Fetch Data</a></li> @@ -135,7 +141,8 @@ The following examples are of using the Thrift API directly. You will need to f <h3 id="simple_connection_example">Getting A Client Example</h3> <p> -<h4>Connection String</h4> +<br/> +<h4 id="simple_connection_example_constr">Connection String</h4> The connection string can be parsed or constructed through "Connection" object. If you are using the parsed version there are some options. At a minimum you will have to provide hostname and port: <pre><code class="bash">host1:40010</code></pre> @@ -154,8 +161,8 @@ Multiple hosts with a different timeout: Here is all options together: <pre><code class="bash">host1:40010/proxyhost1:6001,host2:40010/proxyhost1:6001#90000</code></pre> - -<h4>Thrift Client</h4> +<br/> +<h4 id="simple_connection_example_thrift">Thrift Client</h4> Client Example 1: <pre><code class="java">Iface client = BlurClient.getClient("controller1:40010,controller2:40010");</code></pre> @@ -172,7 +179,7 @@ Client Example 3: });</code></pre> Client Example 4: -<pre><code class="java">List<Connection> connections = BlurClientManager.getConnections("controller1:40010,controller2:40010"); +<pre><code class="java">List<Connection> connections = BlurClientManager.getConnections("controller1:40010,controller2:40010"); BlurClientManager.execute(connections, new BlurCommand<T>() { @Override public T call(Client client) throws BlurException, TException {
