|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.blur.thirdparty.thrift_0_9_0.TServiceClient
org.apache.blur.thrift.generated.Blur.Client
public static class Blur.Client
Nested Class Summary | |
---|---|
static class |
Blur.Client.Factory
|
Constructor Summary | |
---|---|
Blur.Client(TProtocol prot)
|
|
Blur.Client(TProtocol iprot,
TProtocol oprot)
|
Method Summary | |
---|---|
boolean |
addColumnDefinition(String table,
ColumnDefinition columnDefinition)
Attempts to add a column definition to the given table. |
void |
cancelQuery(String table,
String uuid)
Cancels a query that is executing against the given table with the given uuid. |
Map<String,String> |
configuration()
Fetches the Blur configuration. |
List<String> |
controllerServerList()
Returns a list of all the controller servers. |
void |
createSnapshot(String table,
String name)
Creates a snapshot for the table with the given name |
void |
createTable(TableDescriptor tableDescriptor)
Creates a table with the given TableDescriptor. |
TableDescriptor |
describe(String table)
Returns a table descriptor for the given table. |
void |
disableTable(String table)
Disables the given table, blocking until all shards are offline. |
void |
enableTable(String table)
Enables the given table, blocking until all shards are online. |
void |
enqueueMutate(RowMutation mutation)
Enqueue a RowMutation. |
void |
enqueueMutateBatch(List<RowMutation> mutations)
Enqueue a batch of RowMutations. |
FetchResult |
fetchRow(String table,
Selector selector)
Fetches a Row or a Record in the given table with the given Selector. |
List<FetchResult> |
fetchRowBatch(String table,
List<Selector> selectors)
Fetches a batch of Rows or Records in the given table with the given Selector list. |
boolean |
isInSafeMode(String cluster)
Checks to see if the given cluster is in safemode. |
Map<String,List<String>> |
listSnapshots(String table)
Returns a map where the key is the shard, and the list is the snapshots within that shard |
void |
logging(String classNameOrLoggerName,
Level level)
Changes the logging level for the given instance dynamically at runtime. |
Map<String,Metric> |
metrics(Set<String> metrics)
Fetches the Blur metrics by name. |
void |
mutate(RowMutation mutation)
Mutates a Row given the RowMutation that is provided. |
void |
mutateBatch(List<RowMutation> mutations)
Mutates a group of Rows given the list of RowMutations that are provided. |
void |
optimize(String table,
int numberOfSegmentsPerShard)
Will perform a forced optimize on the index in the given table. |
String |
parseQuery(String table,
Query query)
Parses the given query and returns the string that represents the query. |
void |
ping()
A way to ping a server to make sure the connection is still valid. |
BlurResults |
query(String table,
BlurQuery blurQuery)
Executes a query against a the given table and returns the results. |
BlurQueryStatus |
queryStatusById(String table,
String uuid)
Returns the query status for the given table and query uuid. |
List<String> |
queryStatusIdList(String table)
Returns a list of the query ids of queries that have recently been executed for the given table. |
long |
recordFrequency(String table,
String columnFamily,
String columnName,
String value)
Gets the record frequency for the provided table, family, column and value. |
boolean |
recv_addColumnDefinition()
|
void |
recv_cancelQuery()
|
Map<String,String> |
recv_configuration()
|
List<String> |
recv_controllerServerList()
|
void |
recv_createSnapshot()
|
void |
recv_createTable()
|
TableDescriptor |
recv_describe()
|
void |
recv_disableTable()
|
void |
recv_enableTable()
|
void |
recv_enqueueMutate()
|
void |
recv_enqueueMutateBatch()
|
FetchResult |
recv_fetchRow()
|
List<FetchResult> |
recv_fetchRowBatch()
|
boolean |
recv_isInSafeMode()
|
Map<String,List<String>> |
recv_listSnapshots()
|
void |
recv_logging()
|
Map<String,Metric> |
recv_metrics()
|
void |
recv_mutate()
|
void |
recv_mutateBatch()
|
void |
recv_optimize()
|
String |
recv_parseQuery()
|
void |
recv_ping()
|
BlurResults |
recv_query()
|
BlurQueryStatus |
recv_queryStatusById()
|
List<String> |
recv_queryStatusIdList()
|
long |
recv_recordFrequency()
|
void |
recv_removeSnapshot()
|
void |
recv_removeTable()
|
void |
recv_resetLogging()
|
Schema |
recv_schema()
|
List<String> |
recv_shardClusterList()
|
Map<String,String> |
recv_shardServerLayout()
|
Map<String,Map<String,ShardState>> |
recv_shardServerLayoutState()
|
List<String> |
recv_shardServerList()
|
List<String> |
recv_tableList()
|
List<String> |
recv_tableListByCluster()
|
TableStats |
recv_tableStats()
|
List<String> |
recv_terms()
|
List<String> |
recv_traceList()
|
void |
recv_traceRemove()
|
String |
recv_traceRequestFetch()
|
List<String> |
recv_traceRequestList()
|
void |
removeSnapshot(String table,
String name)
Removes a previous snapshot(identified by name) of the table |
void |
removeTable(String table,
boolean deleteIndexFiles)
Removes the given table, with an optional to delete the underlying index storage as well. |
void |
resetLogging()
Resets the logging for this instance to match the log4j file. |
Schema |
schema(String table)
Gets the schema for a given table. |
void |
send_addColumnDefinition(String table,
ColumnDefinition columnDefinition)
|
void |
send_cancelQuery(String table,
String uuid)
|
void |
send_configuration()
|
void |
send_controllerServerList()
|
void |
send_createSnapshot(String table,
String name)
|
void |
send_createTable(TableDescriptor tableDescriptor)
|
void |
send_describe(String table)
|
void |
send_disableTable(String table)
|
void |
send_enableTable(String table)
|
void |
send_enqueueMutate(RowMutation mutation)
|
void |
send_enqueueMutateBatch(List<RowMutation> mutations)
|
void |
send_fetchRow(String table,
Selector selector)
|
void |
send_fetchRowBatch(String table,
List<Selector> selectors)
|
void |
send_isInSafeMode(String cluster)
|
void |
send_listSnapshots(String table)
|
void |
send_logging(String classNameOrLoggerName,
Level level)
|
void |
send_metrics(Set<String> metrics)
|
void |
send_mutate(RowMutation mutation)
|
void |
send_mutateBatch(List<RowMutation> mutations)
|
void |
send_optimize(String table,
int numberOfSegmentsPerShard)
|
void |
send_parseQuery(String table,
Query query)
|
void |
send_ping()
|
void |
send_query(String table,
BlurQuery blurQuery)
|
void |
send_queryStatusById(String table,
String uuid)
|
void |
send_queryStatusIdList(String table)
|
void |
send_recordFrequency(String table,
String columnFamily,
String columnName,
String value)
|
void |
send_removeSnapshot(String table,
String name)
|
void |
send_removeTable(String table,
boolean deleteIndexFiles)
|
void |
send_resetLogging()
|
void |
send_schema(String table)
|
void |
send_setUser(User user)
|
void |
send_shardClusterList()
|
void |
send_shardServerLayout(String table)
|
void |
send_shardServerLayoutState(String table)
|
void |
send_shardServerList(String cluster)
|
void |
send_startTrace(String traceId,
String requestId)
|
void |
send_tableList()
|
void |
send_tableListByCluster(String cluster)
|
void |
send_tableStats(String table)
|
void |
send_terms(String table,
String columnFamily,
String columnName,
String startWith,
short size)
|
void |
send_traceList()
|
void |
send_traceRemove(String traceId)
|
void |
send_traceRequestFetch(String traceId,
String requestId)
|
void |
send_traceRequestList(String traceId)
|
void |
setUser(User user)
Sets the User for the current session. |
List<String> |
shardClusterList()
Returns a list of all the shard clusters. |
Map<String,String> |
shardServerLayout(String table)
Returns a map of the layout of the given table, where the key is the shard name and the value is the shard server. This method will return the "correct" layout for the given shard, or the "correct" layout of cluster if called on a controller. The meaning of correct: Given the current state of the shard cluster with failures taken into account, the correct layout is what the layout should be given the current state. |
Map<String,Map<String,ShardState>> |
shardServerLayoutState(String table)
Returns a map of the layout of the given table, where the key is the shard name and the value is the shard server. This method will return immediately with what shards are currently open in the shard server. |
List<String> |
shardServerList(String cluster)
Returns a list of all the shard servers for the given cluster. |
void |
startTrace(String traceId,
String requestId)
Starts a trace with the given trace id. |
List<String> |
tableList()
Returns a list of the table names across all shard clusters. |
List<String> |
tableListByCluster(String cluster)
Returns a list of the table names for the given cluster. |
TableStats |
tableStats(String table)
Gets the table stats for the given table. |
List<String> |
terms(String table,
String columnFamily,
String columnName,
String startWith,
short size)
Gets the terms list from the index for the given table, family, column using the startWith value to page through the results. |
List<String> |
traceList()
Get a list of all the traces. |
void |
traceRemove(String traceId)
Remove the trace for the given trace id. |
String |
traceRequestFetch(String traceId,
String requestId)
Fetches the given trace. |
List<String> |
traceRequestList(String traceId)
Gets a request list for the given trace. |
Methods inherited from class org.apache.blur.thirdparty.thrift_0_9_0.TServiceClient |
---|
getInputProtocol, getOutputProtocol |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Blur.Client(TProtocol prot)
public Blur.Client(TProtocol iprot, TProtocol oprot)
Method Detail |
---|
public void createTable(TableDescriptor tableDescriptor) throws BlurException, TException
Blur.Iface
createTable
in interface Blur.Iface
tableDescriptor
- the TableDescriptor.
BlurException
TException
public void send_createTable(TableDescriptor tableDescriptor) throws TException
TException
public void recv_createTable() throws BlurException, TException
BlurException
TException
public void enableTable(String table) throws BlurException, TException
Blur.Iface
enableTable
in interface Blur.Iface
table
- the table name.
BlurException
TException
public void send_enableTable(String table) throws TException
TException
public void recv_enableTable() throws BlurException, TException
BlurException
TException
public void disableTable(String table) throws BlurException, TException
Blur.Iface
disableTable
in interface Blur.Iface
table
- the table name.
BlurException
TException
public void send_disableTable(String table) throws TException
TException
public void recv_disableTable() throws BlurException, TException
BlurException
TException
public void removeTable(String table, boolean deleteIndexFiles) throws BlurException, TException
Blur.Iface
removeTable
in interface Blur.Iface
table
- the table name.deleteIndexFiles
- true to remove the index storage and false if to preserve.
BlurException
TException
public void send_removeTable(String table, boolean deleteIndexFiles) throws TException
TException
public void recv_removeTable() throws BlurException, TException
BlurException
TException
public boolean addColumnDefinition(String table, ColumnDefinition columnDefinition) throws BlurException, TException
Blur.Iface
addColumnDefinition
in interface Blur.Iface
table
- the name of the table.columnDefinition
- the ColumnDefinition.
BlurException
TException
public void send_addColumnDefinition(String table, ColumnDefinition columnDefinition) throws TException
TException
public boolean recv_addColumnDefinition() throws BlurException, TException
BlurException
TException
public List<String> tableList() throws BlurException, TException
Blur.Iface
tableList
in interface Blur.Iface
BlurException
TException
public void send_tableList() throws TException
TException
public List<String> recv_tableList() throws BlurException, TException
BlurException
TException
public List<String> tableListByCluster(String cluster) throws BlurException, TException
Blur.Iface
tableListByCluster
in interface Blur.Iface
cluster
- the cluster name.
BlurException
TException
public void send_tableListByCluster(String cluster) throws TException
TException
public List<String> recv_tableListByCluster() throws BlurException, TException
BlurException
TException
public TableDescriptor describe(String table) throws BlurException, TException
Blur.Iface
describe
in interface Blur.Iface
table
- the table name.
BlurException
TException
public void send_describe(String table) throws TException
TException
public TableDescriptor recv_describe() throws BlurException, TException
BlurException
TException
public Schema schema(String table) throws BlurException, TException
Blur.Iface
schema
in interface Blur.Iface
table
- the table name.
BlurException
TException
public void send_schema(String table) throws TException
TException
public Schema recv_schema() throws BlurException, TException
BlurException
TException
public String parseQuery(String table, Query query) throws BlurException, TException
Blur.Iface
parseQuery
in interface Blur.Iface
table
- the table name.query
- the query to parse.
BlurException
TException
public void send_parseQuery(String table, Query query) throws TException
TException
public String recv_parseQuery() throws BlurException, TException
BlurException
TException
public TableStats tableStats(String table) throws BlurException, TException
Blur.Iface
tableStats
in interface Blur.Iface
table
- the table name.
BlurException
TException
public void send_tableStats(String table) throws TException
TException
public TableStats recv_tableStats() throws BlurException, TException
BlurException
TException
public void optimize(String table, int numberOfSegmentsPerShard) throws BlurException, TException
Blur.Iface
optimize
in interface Blur.Iface
table
- table the name of the table.numberOfSegmentsPerShard
- the maximum of segments per shard index after the operation is completed.
BlurException
TException
public void send_optimize(String table, int numberOfSegmentsPerShard) throws TException
TException
public void recv_optimize() throws BlurException, TException
BlurException
TException
public void createSnapshot(String table, String name) throws BlurException, TException
Blur.Iface
createSnapshot
in interface Blur.Iface
BlurException
TException
public void send_createSnapshot(String table, String name) throws TException
TException
public void recv_createSnapshot() throws BlurException, TException
BlurException
TException
public void removeSnapshot(String table, String name) throws BlurException, TException
Blur.Iface
removeSnapshot
in interface Blur.Iface
BlurException
TException
public void send_removeSnapshot(String table, String name) throws TException
TException
public void recv_removeSnapshot() throws BlurException, TException
BlurException
TException
public Map<String,List<String>> listSnapshots(String table) throws BlurException, TException
Blur.Iface
listSnapshots
in interface Blur.Iface
BlurException
TException
public void send_listSnapshots(String table) throws TException
TException
public Map<String,List<String>> recv_listSnapshots() throws BlurException, TException
BlurException
TException
public void setUser(User user) throws TException
Blur.Iface
setUser
in interface Blur.Iface
user
- the User object.
TException
public void send_setUser(User user) throws TException
TException
public BlurResults query(String table, BlurQuery blurQuery) throws BlurException, TException
Blur.Iface
query
in interface Blur.Iface
table
- the table name.blurQuery
- the query to execute.
BlurException
TException
public void send_query(String table, BlurQuery blurQuery) throws TException
TException
public BlurResults recv_query() throws BlurException, TException
BlurException
TException
public FetchResult fetchRow(String table, Selector selector) throws BlurException, TException
Blur.Iface
fetchRow
in interface Blur.Iface
table
- the table name.selector
- the Selector to use to fetch the Row or Record.
BlurException
TException
public void send_fetchRow(String table, Selector selector) throws TException
TException
public FetchResult recv_fetchRow() throws BlurException, TException
BlurException
TException
public List<FetchResult> fetchRowBatch(String table, List<Selector> selectors) throws BlurException, TException
Blur.Iface
fetchRowBatch
in interface Blur.Iface
table
- the table name.selectors
- the Selector to use to fetch the Row or Record.
BlurException
TException
public void send_fetchRowBatch(String table, List<Selector> selectors) throws TException
TException
public List<FetchResult> recv_fetchRowBatch() throws BlurException, TException
BlurException
TException
public void mutate(RowMutation mutation) throws BlurException, TException
Blur.Iface
mutate
in interface Blur.Iface
mutation
- the RowMutation.
BlurException
TException
public void send_mutate(RowMutation mutation) throws TException
TException
public void recv_mutate() throws BlurException, TException
BlurException
TException
public void enqueueMutate(RowMutation mutation) throws BlurException, TException
Blur.Iface
enqueueMutate
in interface Blur.Iface
mutation
- the RowMutation.
BlurException
TException
public void send_enqueueMutate(RowMutation mutation) throws TException
TException
public void recv_enqueueMutate() throws BlurException, TException
BlurException
TException
public void mutateBatch(List<RowMutation> mutations) throws BlurException, TException
Blur.Iface
mutateBatch
in interface Blur.Iface
mutations
- the batch of RowMutations.
BlurException
TException
public void send_mutateBatch(List<RowMutation> mutations) throws TException
TException
public void recv_mutateBatch() throws BlurException, TException
BlurException
TException
public void enqueueMutateBatch(List<RowMutation> mutations) throws BlurException, TException
Blur.Iface
enqueueMutateBatch
in interface Blur.Iface
mutations
- the batch of RowMutations.
BlurException
TException
public void send_enqueueMutateBatch(List<RowMutation> mutations) throws TException
TException
public void recv_enqueueMutateBatch() throws BlurException, TException
BlurException
TException
public void cancelQuery(String table, String uuid) throws BlurException, TException
Blur.Iface
cancelQuery
in interface Blur.Iface
table
- the table name.uuid
- the uuid of the query.
BlurException
TException
public void send_cancelQuery(String table, String uuid) throws TException
TException
public void recv_cancelQuery() throws BlurException, TException
BlurException
TException
public List<String> queryStatusIdList(String table) throws BlurException, TException
Blur.Iface
queryStatusIdList
in interface Blur.Iface
table
- the table name.
BlurException
TException
public void send_queryStatusIdList(String table) throws TException
TException
public List<String> recv_queryStatusIdList() throws BlurException, TException
BlurException
TException
public BlurQueryStatus queryStatusById(String table, String uuid) throws BlurException, TException
Blur.Iface
queryStatusById
in interface Blur.Iface
table
- the table name.uuid
- the uuid of the query.
BlurException
TException
public void send_queryStatusById(String table, String uuid) throws TException
TException
public BlurQueryStatus recv_queryStatusById() throws BlurException, TException
BlurException
TException
public List<String> terms(String table, String columnFamily, String columnName, String startWith, short size) throws BlurException, TException
Blur.Iface
terms
in interface Blur.Iface
table
- the table name.columnFamily
- the column family. If the frequency requested is a system field like "rowid", "recordid", "family", etc then columnFamily can be null.columnName
- the column name.startWith
- the term to start with assuming that you are paging through the term list.size
- the number to fetch at once.
BlurException
TException
public void send_terms(String table, String columnFamily, String columnName, String startWith, short size) throws TException
TException
public List<String> recv_terms() throws BlurException, TException
BlurException
TException
public long recordFrequency(String table, String columnFamily, String columnName, String value) throws BlurException, TException
Blur.Iface
recordFrequency
in interface Blur.Iface
table
- the table name.columnFamily
- the column family. If the frequency requested is a system field like "rowid", "recordid", "family", etc then columnFamily can be null.columnName
- the column name.value
- the value.
BlurException
TException
public void send_recordFrequency(String table, String columnFamily, String columnName, String value) throws TException
TException
public long recv_recordFrequency() throws BlurException, TException
BlurException
TException
public List<String> shardClusterList() throws BlurException, TException
Blur.Iface
shardClusterList
in interface Blur.Iface
BlurException
TException
public void send_shardClusterList() throws TException
TException
public List<String> recv_shardClusterList() throws BlurException, TException
BlurException
TException
public List<String> shardServerList(String cluster) throws BlurException, TException
Blur.Iface
shardServerList
in interface Blur.Iface
cluster
- the cluster name.
BlurException
TException
public void send_shardServerList(String cluster) throws TException
TException
public List<String> recv_shardServerList() throws BlurException, TException
BlurException
TException
public List<String> controllerServerList() throws BlurException, TException
Blur.Iface
controllerServerList
in interface Blur.Iface
BlurException
TException
public void send_controllerServerList() throws TException
TException
public List<String> recv_controllerServerList() throws BlurException, TException
BlurException
TException
public Map<String,String> shardServerLayout(String table) throws BlurException, TException
Blur.Iface
shardServerLayout
in interface Blur.Iface
table
- the table name.
BlurException
TException
public void send_shardServerLayout(String table) throws TException
TException
public Map<String,String> recv_shardServerLayout() throws BlurException, TException
BlurException
TException
public Map<String,Map<String,ShardState>> shardServerLayoutState(String table) throws BlurException, TException
Blur.Iface
shardServerLayoutState
in interface Blur.Iface
table
- the table name.
BlurException
TException
public void send_shardServerLayoutState(String table) throws TException
TException
public Map<String,Map<String,ShardState>> recv_shardServerLayoutState() throws BlurException, TException
BlurException
TException
public boolean isInSafeMode(String cluster) throws BlurException, TException
Blur.Iface
isInSafeMode
in interface Blur.Iface
cluster
- the name of the cluster.
BlurException
TException
public void send_isInSafeMode(String cluster) throws TException
TException
public boolean recv_isInSafeMode() throws BlurException, TException
BlurException
TException
public Map<String,String> configuration() throws BlurException, TException
Blur.Iface
configuration
in interface Blur.Iface
BlurException
TException
public void send_configuration() throws TException
TException
public Map<String,String> recv_configuration() throws BlurException, TException
BlurException
TException
public Map<String,Metric> metrics(Set<String> metrics) throws BlurException, TException
Blur.Iface
metrics
in interface Blur.Iface
metrics
- the names of the metrics to return. If null all are returned.
BlurException
TException
public void send_metrics(Set<String> metrics) throws TException
TException
public Map<String,Metric> recv_metrics() throws BlurException, TException
BlurException
TException
public void startTrace(String traceId, String requestId) throws TException
Blur.Iface
startTrace
in interface Blur.Iface
traceId
- the trace id.requestId
- the request id, used to connected remote calls together. Client can pass null.
TException
public void send_startTrace(String traceId, String requestId) throws TException
TException
public List<String> traceList() throws BlurException, TException
Blur.Iface
traceList
in interface Blur.Iface
BlurException
TException
public void send_traceList() throws TException
TException
public List<String> recv_traceList() throws BlurException, TException
BlurException
TException
public List<String> traceRequestList(String traceId) throws BlurException, TException
Blur.Iface
traceRequestList
in interface Blur.Iface
traceId
- the trace id.
BlurException
TException
public void send_traceRequestList(String traceId) throws TException
TException
public List<String> recv_traceRequestList() throws BlurException, TException
BlurException
TException
public String traceRequestFetch(String traceId, String requestId) throws BlurException, TException
Blur.Iface
traceRequestFetch
in interface Blur.Iface
traceId
- the trace id.requestId
- the request id.
BlurException
TException
public void send_traceRequestFetch(String traceId, String requestId) throws TException
TException
public String recv_traceRequestFetch() throws BlurException, TException
BlurException
TException
public void traceRemove(String traceId) throws BlurException, TException
Blur.Iface
traceRemove
in interface Blur.Iface
traceId
- the trace id.
BlurException
TException
public void send_traceRemove(String traceId) throws TException
TException
public void recv_traceRemove() throws BlurException, TException
BlurException
TException
public void ping() throws TException
Blur.Iface
ping
in interface Blur.Iface
TException
public void send_ping() throws TException
TException
public void recv_ping() throws TException
TException
public void logging(String classNameOrLoggerName, Level level) throws BlurException, TException
Blur.Iface
logging
in interface Blur.Iface
classNameOrLoggerName
- the className or Logger Name of the Logger to be changed.level
- the logging level.
BlurException
TException
public void send_logging(String classNameOrLoggerName, Level level) throws TException
TException
public void recv_logging() throws BlurException, TException
BlurException
TException
public void resetLogging() throws BlurException, TException
Blur.Iface
resetLogging
in interface Blur.Iface
BlurException
TException
public void send_resetLogging() throws TException
TException
public void recv_resetLogging() throws BlurException, TException
BlurException
TException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |