org.apache.blur.thrift
Class BlurShardServer

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

public class BlurShardServer
extends TableAdmin
implements Blur.Iface


Constructor Summary
BlurShardServer()
           
 
Method Summary
 void cancelQuery(String table, String uuid)
           
 void close()
           
 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)
           
 int getDataFetchThreadCount()
           
 int getMaxQueryCacheElements()
           
 long getMaxTimeToLive()
           
 void init()
           
 Map<String,List<String>> listSnapshots(String table)
           
 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)
           
 Schema schema(String table)
           
 void setDataFetchThreadCount(int dataFetchThreadCount)
           
 void setIndexManager(IndexManager indexManager)
           
 void setIndexServer(IndexServer indexServer)
           
 void setMaxQueryCacheElements(int maxQueryCacheElements)
           
 void setMaxTimeToLive(long maxTimeToLive)
           
 void setQueryChecker(BlurQueryChecker queryChecker)
           
 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, 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, shardClusterList, shardServerList, tableList, tableListByCluster, traceList, traceRemove, traceRequestFetch, traceRequestList
 

Constructor Detail

BlurShardServer

public BlurShardServer()
Method Detail

init

public void init()
          throws BlurException
Throws:
BlurException

query

public BlurResults query(String table,
                         BlurQuery blurQuery)
                  throws BlurException,
                         TException
Specified by:
query 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

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

tableStats

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

close

public void close()

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

schema

public Schema schema(String table)
              throws BlurException,
                     TException
Specified by:
schema in interface Blur.Iface
Overrides:
schema in class TableAdmin
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

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

getMaxTimeToLive

public long getMaxTimeToLive()

setMaxTimeToLive

public void setMaxTimeToLive(long maxTimeToLive)

getMaxQueryCacheElements

public int getMaxQueryCacheElements()

setMaxQueryCacheElements

public void setMaxQueryCacheElements(int maxQueryCacheElements)

setQueryChecker

public void setQueryChecker(BlurQueryChecker queryChecker)

setIndexManager

public void setIndexManager(IndexManager indexManager)

setIndexServer

public void setIndexServer(IndexServer indexServer)

queryStatusById

public BlurQueryStatus queryStatusById(String table,
                                       String uuid)
                                throws BlurException,
                                       TException
Specified by:
queryStatusById 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

optimize

public void optimize(String table,
                     int numberOfSegmentsPerShard)
              throws BlurException,
                     TException
Specified by:
optimize 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

getDataFetchThreadCount

public int getDataFetchThreadCount()

setDataFetchThreadCount

public void setDataFetchThreadCount(int dataFetchThreadCount)

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.