org.apache.blur.thrift
Class BlurControllerServer

java.lang.Object
  extended by org.apache.blur.thrift.TableAdmin
      extended by org.apache.blur.thrift.BlurControllerServer
All Implemented Interfaces:
Blur.Iface

public class BlurControllerServer
extends TableAdmin
implements Blur.Iface


Nested Class Summary
static class BlurControllerServer.BlurClient
           
static class BlurControllerServer.BlurClientRemote
           
 
Constructor Summary
BlurControllerServer()
           
 
Method Summary
 void cancelQuery(String table, String uuid)
           
 void close()
           
 BlurResults convertToBlurResults(BlurResultIterable hitsIterable, BlurQuery query, AtomicLongArray facetCounts, ExecutorService executor, Selector selector, String table)
           
 void createSnapshot(String table, String name)
           
 void enqueueMutate(RowMutation mutation)
           
 void enqueueMutateBatch(List<RowMutation> mutations)
           
 FetchResult fetchRow(String table, Selector selector)
           
 List<FetchResult> fetchRowBatch(String table, List<Selector> selectors)
           
 BlurControllerServer.BlurClient getClient()
           
 int getRemoteFetchCount()
           
 void init()
           
 Map<String,List<String>> listSnapshots(String table)
           
static Schema merge(Schema result, Schema schema)
           
 void mutate(RowMutation mutation)
           
 void mutateBatch(List<RowMutation> mutations)
           
 void optimize(String table, int numberOfSegmentsPerShard)
           
 String parseQuery(String table, Query simpleQuery)
           
 BlurResults query(String table, BlurQuery blurQuery)
           
 BlurQueryStatus queryStatusById(String table, String uuid)
           
 List<String> queryStatusIdList(String table)
           
 long recordFrequency(String table, String columnFamily, String columnName, String value)
           
 void removeSnapshot(String table, String name)
           
 void setClient(BlurControllerServer.BlurClient client)
           
 void setDefaultDelay(long defaultDelay)
           
 void setFetchDelay(long fetchDelay)
           
 void setMaxDefaultDelay(long maxDefaultDelay)
           
 void setMaxDefaultRetries(int maxDefaultRetries)
           
 void setMaxFetchDelay(long maxFetchDelay)
           
 void setMaxFetchRetries(int maxFetchRetries)
           
 void setMaxMutateDelay(long maxMutateDelay)
           
 void setMaxMutateRetries(int maxMutateRetries)
           
 void setMutateDelay(long mutateDelay)
           
 void setNodeName(String nodeName)
           
 void setQueryChecker(BlurQueryChecker queryChecker)
           
 void setRemoteFetchCount(int remoteFetchCount)
           
 void setThreadCount(int threadCount)
           
 void setUser(User user)
           
 Map<String,String> shardServerLayout(String table)
           
 Map<String,Map<String,ShardState>> shardServerLayoutState(String table)
           
 void startTrace(String rootId, String requestId)
           
 TableStats tableStats(String table)
           
 List<String> terms(String table, String columnFamily, String columnName, String startWith, short size)
           
 
Methods inherited from class org.apache.blur.thrift.TableAdmin
addColumnDefinition, checkForUpdates, checkForUpdates, checkTable, checkTable, configuration, controllerServerList, createTable, describe, disableTable, enableTable, getClusterStatus, getMaxRecordsPerRowFetchRequest, isInSafeMode, isTableEnabled, logging, metrics, ping, removeTable, resetLogging, schema, setClusterStatus, setConfiguration, setMaxRecordsPerRowFetchRequest, setZookeeper, shardClusterList, shardServerList, tableExists, tableList, tableListByCluster, traceList, traceRemove, traceRequestFetch, traceRequestList
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.blur.thrift.generated.Blur.Iface
addColumnDefinition, configuration, controllerServerList, createTable, describe, disableTable, enableTable, isInSafeMode, logging, metrics, ping, removeTable, resetLogging, schema, shardClusterList, shardServerList, tableList, tableListByCluster, traceList, traceRemove, traceRequestFetch, traceRequestList
 

Constructor Detail

BlurControllerServer

public BlurControllerServer()
Method Detail

init

public void init()
          throws org.apache.zookeeper.KeeperException,
                 InterruptedException
Throws:
org.apache.zookeeper.KeeperException
InterruptedException

close

public void close()

query

public BlurResults query(String table,
                         BlurQuery blurQuery)
                  throws BlurException,
                         TException
Specified by:
query in interface Blur.Iface
Throws:
BlurException
TException

convertToBlurResults

public BlurResults convertToBlurResults(BlurResultIterable hitsIterable,
                                        BlurQuery query,
                                        AtomicLongArray facetCounts,
                                        ExecutorService executor,
                                        Selector selector,
                                        String table)
                                 throws InterruptedException,
                                        ExecutionException,
                                        BlurException
Throws:
InterruptedException
ExecutionException
BlurException

fetchRow

public FetchResult fetchRow(String table,
                            Selector selector)
                     throws BlurException,
                            TException
Specified by:
fetchRow in interface Blur.Iface
Throws:
BlurException
TException

fetchRowBatch

public List<FetchResult> fetchRowBatch(String table,
                                       List<Selector> selectors)
                                throws BlurException,
                                       TException
Specified by:
fetchRowBatch in interface Blur.Iface
Throws:
BlurException
TException

cancelQuery

public void cancelQuery(String table,
                        String uuid)
                 throws BlurException,
                        TException
Specified by:
cancelQuery in interface Blur.Iface
Throws:
BlurException
TException

queryStatusIdList

public List<String> queryStatusIdList(String table)
                               throws BlurException,
                                      TException
Specified by:
queryStatusIdList in interface Blur.Iface
Throws:
BlurException
TException

queryStatusById

public BlurQueryStatus queryStatusById(String table,
                                       String uuid)
                                throws BlurException,
                                       TException
Specified by:
queryStatusById in interface Blur.Iface
Throws:
BlurException
TException

tableStats

public TableStats tableStats(String table)
                      throws BlurException,
                             TException
Specified by:
tableStats in interface Blur.Iface
Throws:
BlurException
TException

shardServerLayout

public Map<String,String> shardServerLayout(String table)
                                     throws BlurException,
                                            TException
Specified by:
shardServerLayout in interface Blur.Iface
Throws:
BlurException
TException

shardServerLayoutState

public Map<String,Map<String,ShardState>> shardServerLayoutState(String table)
                                                          throws BlurException,
                                                                 TException
Specified by:
shardServerLayoutState in interface Blur.Iface
Throws:
BlurException
TException

recordFrequency

public long recordFrequency(String table,
                            String columnFamily,
                            String columnName,
                            String value)
                     throws BlurException,
                            TException
Specified by:
recordFrequency in interface Blur.Iface
Throws:
BlurException
TException

terms

public List<String> terms(String table,
                          String columnFamily,
                          String columnName,
                          String startWith,
                          short size)
                   throws BlurException,
                          TException
Specified by:
terms in interface Blur.Iface
Throws:
BlurException
TException

merge

public static Schema merge(Schema result,
                           Schema schema)

mutate

public void mutate(RowMutation mutation)
            throws BlurException,
                   TException
Specified by:
mutate in interface Blur.Iface
Throws:
BlurException
TException

enqueueMutate

public void enqueueMutate(RowMutation mutation)
                   throws BlurException,
                          TException
Specified by:
enqueueMutate in interface Blur.Iface
Throws:
BlurException
TException

mutateBatch

public void mutateBatch(List<RowMutation> mutations)
                 throws BlurException,
                        TException
Specified by:
mutateBatch in interface Blur.Iface
Throws:
BlurException
TException

enqueueMutateBatch

public void enqueueMutateBatch(List<RowMutation> mutations)
                        throws BlurException,
                               TException
Specified by:
enqueueMutateBatch in interface Blur.Iface
Throws:
BlurException
TException

createSnapshot

public void createSnapshot(String table,
                           String name)
                    throws BlurException,
                           TException
Specified by:
createSnapshot in interface Blur.Iface
Throws:
BlurException
TException

removeSnapshot

public void removeSnapshot(String table,
                           String name)
                    throws BlurException,
                           TException
Specified by:
removeSnapshot in interface Blur.Iface
Throws:
BlurException
TException

listSnapshots

public Map<String,List<String>> listSnapshots(String table)
                                       throws BlurException,
                                              TException
Specified by:
listSnapshots in interface Blur.Iface
Throws:
BlurException
TException

setNodeName

public void setNodeName(String nodeName)

getRemoteFetchCount

public int getRemoteFetchCount()

setRemoteFetchCount

public void setRemoteFetchCount(int remoteFetchCount)

setQueryChecker

public void setQueryChecker(BlurQueryChecker queryChecker)

setThreadCount

public void setThreadCount(int threadCount)

setMaxFetchRetries

public void setMaxFetchRetries(int maxFetchRetries)

setMaxMutateRetries

public void setMaxMutateRetries(int maxMutateRetries)

setMaxDefaultRetries

public void setMaxDefaultRetries(int maxDefaultRetries)

setFetchDelay

public void setFetchDelay(long fetchDelay)

setMutateDelay

public void setMutateDelay(long mutateDelay)

setDefaultDelay

public void setDefaultDelay(long defaultDelay)

setMaxFetchDelay

public void setMaxFetchDelay(long maxFetchDelay)

setMaxMutateDelay

public void setMaxMutateDelay(long maxMutateDelay)

setMaxDefaultDelay

public void setMaxDefaultDelay(long maxDefaultDelay)

getClient

public BlurControllerServer.BlurClient getClient()

setClient

public void setClient(BlurControllerServer.BlurClient client)

optimize

public void optimize(String table,
                     int numberOfSegmentsPerShard)
              throws BlurException,
                     TException
Specified by:
optimize in interface Blur.Iface
Throws:
BlurException
TException

parseQuery

public String parseQuery(String table,
                         Query simpleQuery)
                  throws BlurException,
                         TException
Specified by:
parseQuery in interface Blur.Iface
Throws:
BlurException
TException

setUser

public void setUser(User user)
             throws TException
Specified by:
setUser in interface Blur.Iface
Throws:
TException

startTrace

public void startTrace(String rootId,
                       String requestId)
                throws TException
Specified by:
startTrace in interface Blur.Iface
Throws:
TException


Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.