com.splout.db.common
Class SploutClient
java.lang.Object
com.splout.db.common.SploutClient
public class SploutClient
- extends Object
Java HTTP Interface to Splout that uses Google Http Client (https://code.google.com/p/google-http-java-client/). We
chose this client over Jersey or HttpClient to avoid conflicts with Hadoop dependencies.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SploutClient
public SploutClient(String... qnodes)
SploutClient
public SploutClient(int timeoutMillis,
String... qnodes)
asString
public static String asString(InputStream inputStream)
throws IOException
- Throws:
IOException
tablespace
public Tablespace tablespace(String tablespace)
throws IOException
- Throws:
IOException
overview
public QNodeStatus overview()
throws IOException
- Throws:
IOException
dNodeList
public List<String> dNodeList()
throws IOException
- Throws:
IOException
query
public QueryStatus query(String tablespace,
String key,
String query,
String partition)
throws IOException
- Throws:
IOException
deploy
public DeployInfo deploy(String tablespace,
PartitionMap partitionMap,
ReplicationMap replicationMap,
URI dataUri)
throws IOException
- Throws:
IOException
deploy
public DeployInfo deploy(DeployRequest... requests)
throws IOException
- Throws:
IOException
Copyright © 2012-2013 Datasalt Systems S.L.. All Rights Reserved.