incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amccu...@apache.org
Subject [02/10] More documentation.
Date Sun, 18 Aug 2013 00:15:08 GMT
http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/d05d4ba2/distribution/src/main/scripts/interface/gen-rb/blur.rb
----------------------------------------------------------------------
diff --git a/distribution/src/main/scripts/interface/gen-rb/blur.rb b/distribution/src/main/scripts/interface/gen-rb/blur.rb
index b0e5011..030a20d 100644
--- a/distribution/src/main/scripts/interface/gen-rb/blur.rb
+++ b/distribution/src/main/scripts/interface/gen-rb/blur.rb
@@ -12,84 +12,80 @@ module Blur
     class Client
       include ::Thrift::Client
 
-      def shardClusterList()
-        send_shardClusterList()
-        return recv_shardClusterList()
+      def createTable(tableDescriptor)
+        send_createTable(tableDescriptor)
+        recv_createTable()
       end
 
-      def send_shardClusterList()
-        send_message('shardClusterList', ShardClusterList_args)
+      def send_createTable(tableDescriptor)
+        send_message('createTable', CreateTable_args, :tableDescriptor => tableDescriptor)
       end
 
-      def recv_shardClusterList()
-        result = receive_message(ShardClusterList_result)
-        return result.success unless result.success.nil?
+      def recv_createTable()
+        result = receive_message(CreateTable_result)
         raise result.ex unless result.ex.nil?
-        raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'shardClusterList failed: unknown result')
+        return
       end
 
-      def shardServerList(cluster)
-        send_shardServerList(cluster)
-        return recv_shardServerList()
+      def enableTable(table)
+        send_enableTable(table)
+        recv_enableTable()
       end
 
-      def send_shardServerList(cluster)
-        send_message('shardServerList', ShardServerList_args, :cluster => cluster)
+      def send_enableTable(table)
+        send_message('enableTable', EnableTable_args, :table => table)
       end
 
-      def recv_shardServerList()
-        result = receive_message(ShardServerList_result)
-        return result.success unless result.success.nil?
+      def recv_enableTable()
+        result = receive_message(EnableTable_result)
         raise result.ex unless result.ex.nil?
-        raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'shardServerList failed: unknown result')
+        return
       end
 
-      def controllerServerList()
-        send_controllerServerList()
-        return recv_controllerServerList()
+      def disableTable(table)
+        send_disableTable(table)
+        recv_disableTable()
       end
 
-      def send_controllerServerList()
-        send_message('controllerServerList', ControllerServerList_args)
+      def send_disableTable(table)
+        send_message('disableTable', DisableTable_args, :table => table)
       end
 
-      def recv_controllerServerList()
-        result = receive_message(ControllerServerList_result)
-        return result.success unless result.success.nil?
+      def recv_disableTable()
+        result = receive_message(DisableTable_result)
         raise result.ex unless result.ex.nil?
-        raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'controllerServerList failed: unknown result')
+        return
       end
 
-      def shardServerLayout(table)
-        send_shardServerLayout(table)
-        return recv_shardServerLayout()
+      def removeTable(table, deleteIndexFiles)
+        send_removeTable(table, deleteIndexFiles)
+        recv_removeTable()
       end
 
-      def send_shardServerLayout(table)
-        send_message('shardServerLayout', ShardServerLayout_args, :table => table)
+      def send_removeTable(table, deleteIndexFiles)
+        send_message('removeTable', RemoveTable_args, :table => table, :deleteIndexFiles => deleteIndexFiles)
       end
 
-      def recv_shardServerLayout()
-        result = receive_message(ShardServerLayout_result)
-        return result.success unless result.success.nil?
+      def recv_removeTable()
+        result = receive_message(RemoveTable_result)
         raise result.ex unless result.ex.nil?
-        raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'shardServerLayout failed: unknown result')
+        return
       end
 
-      def shardServerLayoutState(table)
-        send_shardServerLayoutState(table)
-        return recv_shardServerLayoutState()
+      def addColumnDefinition(table, columnDefinition)
+        send_addColumnDefinition(table, columnDefinition)
+        return recv_addColumnDefinition()
       end
 
-      def send_shardServerLayoutState(table)
-        send_message('shardServerLayoutState', ShardServerLayoutState_args, :table => table)
+      def send_addColumnDefinition(table, columnDefinition)
+        send_message('addColumnDefinition', AddColumnDefinition_args, :table => table, :columnDefinition => columnDefinition)
       end
 
-      def recv_shardServerLayoutState()
-        result = receive_message(ShardServerLayoutState_result)
+      def recv_addColumnDefinition()
+        result = receive_message(AddColumnDefinition_result)
         return result.success unless result.success.nil?
         raise result.ex unless result.ex.nil?
-        raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'shardServerLayoutState failed: unknown result')
+        raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'addColumnDefinition failed: unknown result')
       end
 
       def tableList()
@@ -140,20 +136,20 @@ module Blur
         raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'describe failed: unknown result')
       end
 
-      def query(table, blurQuery)
-        send_query(table, blurQuery)
-        return recv_query()
+      def schema(table)
+        send_schema(table)
+        return recv_schema()
       end
 
-      def send_query(table, blurQuery)
-        send_message('query', Query_args, :table => table, :blurQuery => blurQuery)
+      def send_schema(table)
+        send_message('schema', Schema_args, :table => table)
       end
 
-      def recv_query()
-        result = receive_message(Query_result)
+      def recv_schema()
+        result = receive_message(Schema_result)
         return result.success unless result.success.nil?
         raise result.ex unless result.ex.nil?
-        raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'query failed: unknown result')
+        raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'schema failed: unknown result')
       end
 
       def parseQuery(table, simpleQuery)
@@ -172,115 +168,97 @@ module Blur
         raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'parseQuery failed: unknown result')
       end
 
-      def cancelQuery(table, uuid)
-        send_cancelQuery(table, uuid)
-        recv_cancelQuery()
-      end
-
-      def send_cancelQuery(table, uuid)
-        send_message('cancelQuery', CancelQuery_args, :table => table, :uuid => uuid)
-      end
-
-      def recv_cancelQuery()
-        result = receive_message(CancelQuery_result)
-        raise result.ex unless result.ex.nil?
-        return
-      end
-
-      def queryStatusIdList(table)
-        send_queryStatusIdList(table)
-        return recv_queryStatusIdList()
+      def tableStats(table)
+        send_tableStats(table)
+        return recv_tableStats()
       end
 
-      def send_queryStatusIdList(table)
-        send_message('queryStatusIdList', QueryStatusIdList_args, :table => table)
+      def send_tableStats(table)
+        send_message('tableStats', TableStats_args, :table => table)
       end
 
-      def recv_queryStatusIdList()
-        result = receive_message(QueryStatusIdList_result)
+      def recv_tableStats()
+        result = receive_message(TableStats_result)
         return result.success unless result.success.nil?
         raise result.ex unless result.ex.nil?
-        raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'queryStatusIdList failed: unknown result')
+        raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'tableStats failed: unknown result')
       end
 
-      def queryStatusById(table, uuid)
-        send_queryStatusById(table, uuid)
-        return recv_queryStatusById()
+      def optimize(table, numberOfSegmentsPerShard)
+        send_optimize(table, numberOfSegmentsPerShard)
+        recv_optimize()
       end
 
-      def send_queryStatusById(table, uuid)
-        send_message('queryStatusById', QueryStatusById_args, :table => table, :uuid => uuid)
+      def send_optimize(table, numberOfSegmentsPerShard)
+        send_message('optimize', Optimize_args, :table => table, :numberOfSegmentsPerShard => numberOfSegmentsPerShard)
       end
 
-      def recv_queryStatusById()
-        result = receive_message(QueryStatusById_result)
-        return result.success unless result.success.nil?
+      def recv_optimize()
+        result = receive_message(Optimize_result)
         raise result.ex unless result.ex.nil?
-        raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'queryStatusById failed: unknown result')
+        return
       end
 
-      def schema(table)
-        send_schema(table)
-        return recv_schema()
+      def createSnapshot(table, name)
+        send_createSnapshot(table, name)
+        recv_createSnapshot()
       end
 
-      def send_schema(table)
-        send_message('schema', Schema_args, :table => table)
+      def send_createSnapshot(table, name)
+        send_message('createSnapshot', CreateSnapshot_args, :table => table, :name => name)
       end
 
-      def recv_schema()
-        result = receive_message(Schema_result)
-        return result.success unless result.success.nil?
+      def recv_createSnapshot()
+        result = receive_message(CreateSnapshot_result)
         raise result.ex unless result.ex.nil?
-        raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'schema failed: unknown result')
+        return
       end
 
-      def tableStats(table)
-        send_tableStats(table)
-        return recv_tableStats()
+      def removeSnapshot(table, name)
+        send_removeSnapshot(table, name)
+        recv_removeSnapshot()
       end
 
-      def send_tableStats(table)
-        send_message('tableStats', TableStats_args, :table => table)
+      def send_removeSnapshot(table, name)
+        send_message('removeSnapshot', RemoveSnapshot_args, :table => table, :name => name)
       end
 
-      def recv_tableStats()
-        result = receive_message(TableStats_result)
-        return result.success unless result.success.nil?
+      def recv_removeSnapshot()
+        result = receive_message(RemoveSnapshot_result)
         raise result.ex unless result.ex.nil?
-        raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'tableStats failed: unknown result')
+        return
       end
 
-      def terms(table, columnFamily, columnName, startWith, size)
-        send_terms(table, columnFamily, columnName, startWith, size)
-        return recv_terms()
+      def listSnapshots(table)
+        send_listSnapshots(table)
+        return recv_listSnapshots()
       end
 
-      def send_terms(table, columnFamily, columnName, startWith, size)
-        send_message('terms', Terms_args, :table => table, :columnFamily => columnFamily, :columnName => columnName, :startWith => startWith, :size => size)
+      def send_listSnapshots(table)
+        send_message('listSnapshots', ListSnapshots_args, :table => table)
       end
 
-      def recv_terms()
-        result = receive_message(Terms_result)
+      def recv_listSnapshots()
+        result = receive_message(ListSnapshots_result)
         return result.success unless result.success.nil?
         raise result.ex unless result.ex.nil?
-        raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'terms failed: unknown result')
+        raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'listSnapshots failed: unknown result')
       end
 
-      def recordFrequency(table, columnFamily, columnName, value)
-        send_recordFrequency(table, columnFamily, columnName, value)
-        return recv_recordFrequency()
+      def query(table, blurQuery)
+        send_query(table, blurQuery)
+        return recv_query()
       end
 
-      def send_recordFrequency(table, columnFamily, columnName, value)
-        send_message('recordFrequency', RecordFrequency_args, :table => table, :columnFamily => columnFamily, :columnName => columnName, :value => value)
+      def send_query(table, blurQuery)
+        send_message('query', Query_args, :table => table, :blurQuery => blurQuery)
       end
 
-      def recv_recordFrequency()
-        result = receive_message(RecordFrequency_result)
+      def recv_query()
+        result = receive_message(Query_result)
         return result.success unless result.success.nil?
         raise result.ex unless result.ex.nil?
-        raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'recordFrequency failed: unknown result')
+        raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'query failed: unknown result')
       end
 
       def fetchRow(table, selector)
@@ -329,95 +307,163 @@ module Blur
         return
       end
 
-      def createTable(tableDescriptor)
-        send_createTable(tableDescriptor)
-        recv_createTable()
+      def cancelQuery(table, uuid)
+        send_cancelQuery(table, uuid)
+        recv_cancelQuery()
       end
 
-      def send_createTable(tableDescriptor)
-        send_message('createTable', CreateTable_args, :tableDescriptor => tableDescriptor)
+      def send_cancelQuery(table, uuid)
+        send_message('cancelQuery', CancelQuery_args, :table => table, :uuid => uuid)
       end
 
-      def recv_createTable()
-        result = receive_message(CreateTable_result)
+      def recv_cancelQuery()
+        result = receive_message(CancelQuery_result)
         raise result.ex unless result.ex.nil?
         return
       end
 
-      def enableTable(table)
-        send_enableTable(table)
-        recv_enableTable()
+      def queryStatusIdList(table)
+        send_queryStatusIdList(table)
+        return recv_queryStatusIdList()
       end
 
-      def send_enableTable(table)
-        send_message('enableTable', EnableTable_args, :table => table)
+      def send_queryStatusIdList(table)
+        send_message('queryStatusIdList', QueryStatusIdList_args, :table => table)
       end
 
-      def recv_enableTable()
-        result = receive_message(EnableTable_result)
+      def recv_queryStatusIdList()
+        result = receive_message(QueryStatusIdList_result)
+        return result.success unless result.success.nil?
         raise result.ex unless result.ex.nil?
-        return
+        raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'queryStatusIdList failed: unknown result')
       end
 
-      def disableTable(table)
-        send_disableTable(table)
-        recv_disableTable()
+      def queryStatusById(table, uuid)
+        send_queryStatusById(table, uuid)
+        return recv_queryStatusById()
       end
 
-      def send_disableTable(table)
-        send_message('disableTable', DisableTable_args, :table => table)
+      def send_queryStatusById(table, uuid)
+        send_message('queryStatusById', QueryStatusById_args, :table => table, :uuid => uuid)
       end
 
-      def recv_disableTable()
-        result = receive_message(DisableTable_result)
+      def recv_queryStatusById()
+        result = receive_message(QueryStatusById_result)
+        return result.success unless result.success.nil?
         raise result.ex unless result.ex.nil?
-        return
+        raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'queryStatusById failed: unknown result')
       end
 
-      def removeTable(table, deleteIndexFiles)
-        send_removeTable(table, deleteIndexFiles)
-        recv_removeTable()
+      def terms(table, columnFamily, columnName, startWith, size)
+        send_terms(table, columnFamily, columnName, startWith, size)
+        return recv_terms()
       end
 
-      def send_removeTable(table, deleteIndexFiles)
-        send_message('removeTable', RemoveTable_args, :table => table, :deleteIndexFiles => deleteIndexFiles)
+      def send_terms(table, columnFamily, columnName, startWith, size)
+        send_message('terms', Terms_args, :table => table, :columnFamily => columnFamily, :columnName => columnName, :startWith => startWith, :size => size)
       end
 
-      def recv_removeTable()
-        result = receive_message(RemoveTable_result)
+      def recv_terms()
+        result = receive_message(Terms_result)
+        return result.success unless result.success.nil?
         raise result.ex unless result.ex.nil?
-        return
+        raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'terms failed: unknown result')
       end
 
-      def addColumnDefinition(table, columnDefinition)
-        send_addColumnDefinition(table, columnDefinition)
-        return recv_addColumnDefinition()
+      def recordFrequency(table, columnFamily, columnName, value)
+        send_recordFrequency(table, columnFamily, columnName, value)
+        return recv_recordFrequency()
       end
 
-      def send_addColumnDefinition(table, columnDefinition)
-        send_message('addColumnDefinition', AddColumnDefinition_args, :table => table, :columnDefinition => columnDefinition)
+      def send_recordFrequency(table, columnFamily, columnName, value)
+        send_message('recordFrequency', RecordFrequency_args, :table => table, :columnFamily => columnFamily, :columnName => columnName, :value => value)
       end
 
-      def recv_addColumnDefinition()
-        result = receive_message(AddColumnDefinition_result)
+      def recv_recordFrequency()
+        result = receive_message(RecordFrequency_result)
         return result.success unless result.success.nil?
         raise result.ex unless result.ex.nil?
-        raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'addColumnDefinition failed: unknown result')
+        raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'recordFrequency failed: unknown result')
       end
 
-      def optimize(table, numberOfSegmentsPerShard)
-        send_optimize(table, numberOfSegmentsPerShard)
-        recv_optimize()
+      def shardClusterList()
+        send_shardClusterList()
+        return recv_shardClusterList()
       end
 
-      def send_optimize(table, numberOfSegmentsPerShard)
-        send_message('optimize', Optimize_args, :table => table, :numberOfSegmentsPerShard => numberOfSegmentsPerShard)
+      def send_shardClusterList()
+        send_message('shardClusterList', ShardClusterList_args)
       end
 
-      def recv_optimize()
-        result = receive_message(Optimize_result)
+      def recv_shardClusterList()
+        result = receive_message(ShardClusterList_result)
+        return result.success unless result.success.nil?
         raise result.ex unless result.ex.nil?
-        return
+        raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'shardClusterList failed: unknown result')
+      end
+
+      def shardServerList(cluster)
+        send_shardServerList(cluster)
+        return recv_shardServerList()
+      end
+
+      def send_shardServerList(cluster)
+        send_message('shardServerList', ShardServerList_args, :cluster => cluster)
+      end
+
+      def recv_shardServerList()
+        result = receive_message(ShardServerList_result)
+        return result.success unless result.success.nil?
+        raise result.ex unless result.ex.nil?
+        raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'shardServerList failed: unknown result')
+      end
+
+      def controllerServerList()
+        send_controllerServerList()
+        return recv_controllerServerList()
+      end
+
+      def send_controllerServerList()
+        send_message('controllerServerList', ControllerServerList_args)
+      end
+
+      def recv_controllerServerList()
+        result = receive_message(ControllerServerList_result)
+        return result.success unless result.success.nil?
+        raise result.ex unless result.ex.nil?
+        raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'controllerServerList failed: unknown result')
+      end
+
+      def shardServerLayout(table)
+        send_shardServerLayout(table)
+        return recv_shardServerLayout()
+      end
+
+      def send_shardServerLayout(table)
+        send_message('shardServerLayout', ShardServerLayout_args, :table => table)
+      end
+
+      def recv_shardServerLayout()
+        result = receive_message(ShardServerLayout_result)
+        return result.success unless result.success.nil?
+        raise result.ex unless result.ex.nil?
+        raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'shardServerLayout failed: unknown result')
+      end
+
+      def shardServerLayoutState(table)
+        send_shardServerLayoutState(table)
+        return recv_shardServerLayoutState()
+      end
+
+      def send_shardServerLayoutState(table)
+        send_message('shardServerLayoutState', ShardServerLayoutState_args, :table => table)
+      end
+
+      def recv_shardServerLayoutState()
+        result = receive_message(ShardServerLayoutState_result)
+        return result.success unless result.success.nil?
+        raise result.ex unless result.ex.nil?
+        raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'shardServerLayoutState failed: unknown result')
       end
 
       def isInSafeMode(cluster)
@@ -468,110 +514,64 @@ module Blur
         raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'metrics failed: unknown result')
       end
 
-      def createSnapshot(table, name)
-        send_createSnapshot(table, name)
-        recv_createSnapshot()
-      end
-
-      def send_createSnapshot(table, name)
-        send_message('createSnapshot', CreateSnapshot_args, :table => table, :name => name)
-      end
-
-      def recv_createSnapshot()
-        result = receive_message(CreateSnapshot_result)
-        raise result.ex unless result.ex.nil?
-        return
-      end
-
-      def removeSnapshot(table, name)
-        send_removeSnapshot(table, name)
-        recv_removeSnapshot()
-      end
-
-      def send_removeSnapshot(table, name)
-        send_message('removeSnapshot', RemoveSnapshot_args, :table => table, :name => name)
-      end
-
-      def recv_removeSnapshot()
-        result = receive_message(RemoveSnapshot_result)
-        raise result.ex unless result.ex.nil?
-        return
-      end
-
-      def listSnapshots(table)
-        send_listSnapshots(table)
-        return recv_listSnapshots()
-      end
-
-      def send_listSnapshots(table)
-        send_message('listSnapshots', ListSnapshots_args, :table => table)
-      end
-
-      def recv_listSnapshots()
-        result = receive_message(ListSnapshots_result)
-        return result.success unless result.success.nil?
-        raise result.ex unless result.ex.nil?
-        raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'listSnapshots failed: unknown result')
-      end
-
     end
 
     class Processor
       include ::Thrift::Processor
 
-      def process_shardClusterList(seqid, iprot, oprot)
-        args = read_args(iprot, ShardClusterList_args)
-        result = ShardClusterList_result.new()
+      def process_createTable(seqid, iprot, oprot)
+        args = read_args(iprot, CreateTable_args)
+        result = CreateTable_result.new()
         begin
-          result.success = @handler.shardClusterList()
+          @handler.createTable(args.tableDescriptor)
         rescue ::Blur::BlurException => ex
           result.ex = ex
         end
-        write_result(result, oprot, 'shardClusterList', seqid)
+        write_result(result, oprot, 'createTable', seqid)
       end
 
-      def process_shardServerList(seqid, iprot, oprot)
-        args = read_args(iprot, ShardServerList_args)
-        result = ShardServerList_result.new()
+      def process_enableTable(seqid, iprot, oprot)
+        args = read_args(iprot, EnableTable_args)
+        result = EnableTable_result.new()
         begin
-          result.success = @handler.shardServerList(args.cluster)
+          @handler.enableTable(args.table)
         rescue ::Blur::BlurException => ex
           result.ex = ex
         end
-        write_result(result, oprot, 'shardServerList', seqid)
+        write_result(result, oprot, 'enableTable', seqid)
       end
 
-      def process_controllerServerList(seqid, iprot, oprot)
-        args = read_args(iprot, ControllerServerList_args)
-        result = ControllerServerList_result.new()
+      def process_disableTable(seqid, iprot, oprot)
+        args = read_args(iprot, DisableTable_args)
+        result = DisableTable_result.new()
         begin
-          result.success = @handler.controllerServerList()
+          @handler.disableTable(args.table)
         rescue ::Blur::BlurException => ex
           result.ex = ex
         end
-        write_result(result, oprot, 'controllerServerList', seqid)
+        write_result(result, oprot, 'disableTable', seqid)
       end
 
-      def process_shardServerLayout(seqid, iprot, oprot)
-        args = read_args(iprot, ShardServerLayout_args)
-        result = ShardServerLayout_result.new()
+      def process_removeTable(seqid, iprot, oprot)
+        args = read_args(iprot, RemoveTable_args)
+        result = RemoveTable_result.new()
         begin
-          result.success = @handler.shardServerLayout(args.table)
+          @handler.removeTable(args.table, args.deleteIndexFiles)
         rescue ::Blur::BlurException => ex
           result.ex = ex
         end
-        write_result(result, oprot, 'shardServerLayout', seqid)
+        write_result(result, oprot, 'removeTable', seqid)
       end
 
-      def process_shardServerLayoutState(seqid, iprot, oprot)
-        args = read_args(iprot, ShardServerLayoutState_args)
-        result = ShardServerLayoutState_result.new()
+      def process_addColumnDefinition(seqid, iprot, oprot)
+        args = read_args(iprot, AddColumnDefinition_args)
+        result = AddColumnDefinition_result.new()
         begin
-          result.success = @handler.shardServerLayoutState(args.table)
+          result.success = @handler.addColumnDefinition(args.table, args.columnDefinition)
         rescue ::Blur::BlurException => ex
           result.ex = ex
         end
-        write_result(result, oprot, 'shardServerLayoutState', seqid)
+        write_result(result, oprot, 'addColumnDefinition', seqid)
       end
 
       def process_tableList(seqid, iprot, oprot)
@@ -607,15 +607,15 @@ module Blur
         write_result(result, oprot, 'describe', seqid)
       end
 
-      def process_query(seqid, iprot, oprot)
-        args = read_args(iprot, Query_args)
-        result = Query_result.new()
+      def process_schema(seqid, iprot, oprot)
+        args = read_args(iprot, Schema_args)
+        result = Schema_result.new()
         begin
-          result.success = @handler.query(args.table, args.blurQuery)
+          result.success = @handler.schema(args.table)
         rescue ::Blur::BlurException => ex
           result.ex = ex
         end
-        write_result(result, oprot, 'query', seqid)
+        write_result(result, oprot, 'schema', seqid)
       end
 
       def process_parseQuery(seqid, iprot, oprot)
@@ -629,6 +629,105 @@ module Blur
         write_result(result, oprot, 'parseQuery', seqid)
       end
 
+      def process_tableStats(seqid, iprot, oprot)
+        args = read_args(iprot, TableStats_args)
+        result = TableStats_result.new()
+        begin
+          result.success = @handler.tableStats(args.table)
+        rescue ::Blur::BlurException => ex
+          result.ex = ex
+        end
+        write_result(result, oprot, 'tableStats', seqid)
+      end
+
+      def process_optimize(seqid, iprot, oprot)
+        args = read_args(iprot, Optimize_args)
+        result = Optimize_result.new()
+        begin
+          @handler.optimize(args.table, args.numberOfSegmentsPerShard)
+        rescue ::Blur::BlurException => ex
+          result.ex = ex
+        end
+        write_result(result, oprot, 'optimize', seqid)
+      end
+
+      def process_createSnapshot(seqid, iprot, oprot)
+        args = read_args(iprot, CreateSnapshot_args)
+        result = CreateSnapshot_result.new()
+        begin
+          @handler.createSnapshot(args.table, args.name)
+        rescue ::Blur::BlurException => ex
+          result.ex = ex
+        end
+        write_result(result, oprot, 'createSnapshot', seqid)
+      end
+
+      def process_removeSnapshot(seqid, iprot, oprot)
+        args = read_args(iprot, RemoveSnapshot_args)
+        result = RemoveSnapshot_result.new()
+        begin
+          @handler.removeSnapshot(args.table, args.name)
+        rescue ::Blur::BlurException => ex
+          result.ex = ex
+        end
+        write_result(result, oprot, 'removeSnapshot', seqid)
+      end
+
+      def process_listSnapshots(seqid, iprot, oprot)
+        args = read_args(iprot, ListSnapshots_args)
+        result = ListSnapshots_result.new()
+        begin
+          result.success = @handler.listSnapshots(args.table)
+        rescue ::Blur::BlurException => ex
+          result.ex = ex
+        end
+        write_result(result, oprot, 'listSnapshots', seqid)
+      end
+
+      def process_query(seqid, iprot, oprot)
+        args = read_args(iprot, Query_args)
+        result = Query_result.new()
+        begin
+          result.success = @handler.query(args.table, args.blurQuery)
+        rescue ::Blur::BlurException => ex
+          result.ex = ex
+        end
+        write_result(result, oprot, 'query', seqid)
+      end
+
+      def process_fetchRow(seqid, iprot, oprot)
+        args = read_args(iprot, FetchRow_args)
+        result = FetchRow_result.new()
+        begin
+          result.success = @handler.fetchRow(args.table, args.selector)
+        rescue ::Blur::BlurException => ex
+          result.ex = ex
+        end
+        write_result(result, oprot, 'fetchRow', seqid)
+      end
+
+      def process_mutate(seqid, iprot, oprot)
+        args = read_args(iprot, Mutate_args)
+        result = Mutate_result.new()
+        begin
+          @handler.mutate(args.mutation)
+        rescue ::Blur::BlurException => ex
+          result.ex = ex
+        end
+        write_result(result, oprot, 'mutate', seqid)
+      end
+
+      def process_mutateBatch(seqid, iprot, oprot)
+        args = read_args(iprot, MutateBatch_args)
+        result = MutateBatch_result.new()
+        begin
+          @handler.mutateBatch(args.mutations)
+        rescue ::Blur::BlurException => ex
+          result.ex = ex
+        end
+        write_result(result, oprot, 'mutateBatch', seqid)
+      end
+
       def process_cancelQuery(seqid, iprot, oprot)
         args = read_args(iprot, CancelQuery_args)
         result = CancelQuery_result.new()
@@ -662,28 +761,6 @@ module Blur
         write_result(result, oprot, 'queryStatusById', seqid)
       end
 
-      def process_schema(seqid, iprot, oprot)
-        args = read_args(iprot, Schema_args)
-        result = Schema_result.new()
-        begin
-          result.success = @handler.schema(args.table)
-        rescue ::Blur::BlurException => ex
-          result.ex = ex
-        end
-        write_result(result, oprot, 'schema', seqid)
-      end
-
-      def process_tableStats(seqid, iprot, oprot)
-        args = read_args(iprot, TableStats_args)
-        result = TableStats_result.new()
-        begin
-          result.success = @handler.tableStats(args.table)
-        rescue ::Blur::BlurException => ex
-          result.ex = ex
-        end
-        write_result(result, oprot, 'tableStats', seqid)
-      end
-
       def process_terms(seqid, iprot, oprot)
         args = read_args(iprot, Terms_args)
         result = Terms_result.new()
@@ -706,103 +783,59 @@ module Blur
         write_result(result, oprot, 'recordFrequency', seqid)
       end
 
-      def process_fetchRow(seqid, iprot, oprot)
-        args = read_args(iprot, FetchRow_args)
-        result = FetchRow_result.new()
-        begin
-          result.success = @handler.fetchRow(args.table, args.selector)
-        rescue ::Blur::BlurException => ex
-          result.ex = ex
-        end
-        write_result(result, oprot, 'fetchRow', seqid)
-      end
-
-      def process_mutate(seqid, iprot, oprot)
-        args = read_args(iprot, Mutate_args)
-        result = Mutate_result.new()
-        begin
-          @handler.mutate(args.mutation)
-        rescue ::Blur::BlurException => ex
-          result.ex = ex
-        end
-        write_result(result, oprot, 'mutate', seqid)
-      end
-
-      def process_mutateBatch(seqid, iprot, oprot)
-        args = read_args(iprot, MutateBatch_args)
-        result = MutateBatch_result.new()
-        begin
-          @handler.mutateBatch(args.mutations)
-        rescue ::Blur::BlurException => ex
-          result.ex = ex
-        end
-        write_result(result, oprot, 'mutateBatch', seqid)
-      end
-
-      def process_createTable(seqid, iprot, oprot)
-        args = read_args(iprot, CreateTable_args)
-        result = CreateTable_result.new()
-        begin
-          @handler.createTable(args.tableDescriptor)
-        rescue ::Blur::BlurException => ex
-          result.ex = ex
-        end
-        write_result(result, oprot, 'createTable', seqid)
-      end
-
-      def process_enableTable(seqid, iprot, oprot)
-        args = read_args(iprot, EnableTable_args)
-        result = EnableTable_result.new()
+      def process_shardClusterList(seqid, iprot, oprot)
+        args = read_args(iprot, ShardClusterList_args)
+        result = ShardClusterList_result.new()
         begin
-          @handler.enableTable(args.table)
+          result.success = @handler.shardClusterList()
         rescue ::Blur::BlurException => ex
           result.ex = ex
         end
-        write_result(result, oprot, 'enableTable', seqid)
+        write_result(result, oprot, 'shardClusterList', seqid)
       end
 
-      def process_disableTable(seqid, iprot, oprot)
-        args = read_args(iprot, DisableTable_args)
-        result = DisableTable_result.new()
+      def process_shardServerList(seqid, iprot, oprot)
+        args = read_args(iprot, ShardServerList_args)
+        result = ShardServerList_result.new()
         begin
-          @handler.disableTable(args.table)
+          result.success = @handler.shardServerList(args.cluster)
         rescue ::Blur::BlurException => ex
           result.ex = ex
         end
-        write_result(result, oprot, 'disableTable', seqid)
+        write_result(result, oprot, 'shardServerList', seqid)
       end
 
-      def process_removeTable(seqid, iprot, oprot)
-        args = read_args(iprot, RemoveTable_args)
-        result = RemoveTable_result.new()
+      def process_controllerServerList(seqid, iprot, oprot)
+        args = read_args(iprot, ControllerServerList_args)
+        result = ControllerServerList_result.new()
         begin
-          @handler.removeTable(args.table, args.deleteIndexFiles)
+          result.success = @handler.controllerServerList()
         rescue ::Blur::BlurException => ex
           result.ex = ex
         end
-        write_result(result, oprot, 'removeTable', seqid)
+        write_result(result, oprot, 'controllerServerList', seqid)
       end
 
-      def process_addColumnDefinition(seqid, iprot, oprot)
-        args = read_args(iprot, AddColumnDefinition_args)
-        result = AddColumnDefinition_result.new()
+      def process_shardServerLayout(seqid, iprot, oprot)
+        args = read_args(iprot, ShardServerLayout_args)
+        result = ShardServerLayout_result.new()
         begin
-          result.success = @handler.addColumnDefinition(args.table, args.columnDefinition)
+          result.success = @handler.shardServerLayout(args.table)
         rescue ::Blur::BlurException => ex
           result.ex = ex
         end
-        write_result(result, oprot, 'addColumnDefinition', seqid)
+        write_result(result, oprot, 'shardServerLayout', seqid)
       end
 
-      def process_optimize(seqid, iprot, oprot)
-        args = read_args(iprot, Optimize_args)
-        result = Optimize_result.new()
+      def process_shardServerLayoutState(seqid, iprot, oprot)
+        args = read_args(iprot, ShardServerLayoutState_args)
+        result = ShardServerLayoutState_result.new()
         begin
-          @handler.optimize(args.table, args.numberOfSegmentsPerShard)
+          result.success = @handler.shardServerLayoutState(args.table)
         rescue ::Blur::BlurException => ex
           result.ex = ex
         end
-        write_result(result, oprot, 'optimize', seqid)
+        write_result(result, oprot, 'shardServerLayoutState', seqid)
       end
 
       def process_isInSafeMode(seqid, iprot, oprot)
@@ -838,48 +871,17 @@ module Blur
         write_result(result, oprot, 'metrics', seqid)
       end
 
-      def process_createSnapshot(seqid, iprot, oprot)
-        args = read_args(iprot, CreateSnapshot_args)
-        result = CreateSnapshot_result.new()
-        begin
-          @handler.createSnapshot(args.table, args.name)
-        rescue ::Blur::BlurException => ex
-          result.ex = ex
-        end
-        write_result(result, oprot, 'createSnapshot', seqid)
-      end
-
-      def process_removeSnapshot(seqid, iprot, oprot)
-        args = read_args(iprot, RemoveSnapshot_args)
-        result = RemoveSnapshot_result.new()
-        begin
-          @handler.removeSnapshot(args.table, args.name)
-        rescue ::Blur::BlurException => ex
-          result.ex = ex
-        end
-        write_result(result, oprot, 'removeSnapshot', seqid)
-      end
-
-      def process_listSnapshots(seqid, iprot, oprot)
-        args = read_args(iprot, ListSnapshots_args)
-        result = ListSnapshots_result.new()
-        begin
-          result.success = @handler.listSnapshots(args.table)
-        rescue ::Blur::BlurException => ex
-          result.ex = ex
-        end
-        write_result(result, oprot, 'listSnapshots', seqid)
-      end
-
     end
 
     # HELPER FUNCTIONS AND STRUCTURES
 
-    class ShardClusterList_args
+    class CreateTable_args
       include ::Thrift::Struct, ::Thrift::Struct_Union
+      TABLEDESCRIPTOR = 1
 
       FIELDS = {
-
+        # the TableDescriptor.
+        TABLEDESCRIPTOR => {:type => ::Thrift::Types::STRUCT, :name => 'tableDescriptor', :class => ::Blur::TableDescriptor}
       }
 
       def struct_fields; FIELDS; end
@@ -890,13 +892,11 @@ module Blur
       ::Thrift::Struct.generate_accessors self
     end
 
-    class ShardClusterList_result
+    class CreateTable_result
       include ::Thrift::Struct, ::Thrift::Struct_Union
-      SUCCESS = 0
       EX = 1
 
       FIELDS = {
-        SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}},
         EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => ::Blur::BlurException}
       }
 
@@ -908,13 +908,13 @@ module Blur
       ::Thrift::Struct.generate_accessors self
     end
 
-    class ShardServerList_args
+    class EnableTable_args
       include ::Thrift::Struct, ::Thrift::Struct_Union
-      CLUSTER = 1
+      TABLE = 1
 
       FIELDS = {
-        # the cluster name.
-        CLUSTER => {:type => ::Thrift::Types::STRING, :name => 'cluster'}
+        # the table name.
+        TABLE => {:type => ::Thrift::Types::STRING, :name => 'table'}
       }
 
       def struct_fields; FIELDS; end
@@ -925,13 +925,11 @@ module Blur
       ::Thrift::Struct.generate_accessors self
     end
 
-    class ShardServerList_result
+    class EnableTable_result
       include ::Thrift::Struct, ::Thrift::Struct_Union
-      SUCCESS = 0
       EX = 1
 
       FIELDS = {
-        SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}},
         EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => ::Blur::BlurException}
       }
 
@@ -943,11 +941,13 @@ module Blur
       ::Thrift::Struct.generate_accessors self
     end
 
-    class ControllerServerList_args
+    class DisableTable_args
       include ::Thrift::Struct, ::Thrift::Struct_Union
+      TABLE = 1
 
       FIELDS = {
-
+        # the table name.
+        TABLE => {:type => ::Thrift::Types::STRING, :name => 'table'}
       }
 
       def struct_fields; FIELDS; end
@@ -958,13 +958,11 @@ module Blur
       ::Thrift::Struct.generate_accessors self
     end
 
-    class ControllerServerList_result
+    class DisableTable_result
       include ::Thrift::Struct, ::Thrift::Struct_Union
-      SUCCESS = 0
       EX = 1
 
       FIELDS = {
-        SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}},
         EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => ::Blur::BlurException}
       }
 
@@ -976,13 +974,16 @@ module Blur
       ::Thrift::Struct.generate_accessors self
     end
 
-    class ShardServerLayout_args
+    class RemoveTable_args
       include ::Thrift::Struct, ::Thrift::Struct_Union
       TABLE = 1
+      DELETEINDEXFILES = 2
 
       FIELDS = {
         # the table name.
-        TABLE => {:type => ::Thrift::Types::STRING, :name => 'table'}
+        TABLE => {:type => ::Thrift::Types::STRING, :name => 'table'},
+        # true to remove the index storage and false if to preserve.
+        DELETEINDEXFILES => {:type => ::Thrift::Types::BOOL, :name => 'deleteIndexFiles'}
       }
 
       def struct_fields; FIELDS; end
@@ -993,13 +994,11 @@ module Blur
       ::Thrift::Struct.generate_accessors self
     end
 
-    class ShardServerLayout_result
+    class RemoveTable_result
       include ::Thrift::Struct, ::Thrift::Struct_Union
-      SUCCESS = 0
       EX = 1
 
       FIELDS = {
-        SUCCESS => {:type => ::Thrift::Types::MAP, :name => 'success', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}},
         EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => ::Blur::BlurException}
       }
 
@@ -1011,13 +1010,16 @@ module Blur
       ::Thrift::Struct.generate_accessors self
     end
 
-    class ShardServerLayoutState_args
+    class AddColumnDefinition_args
       include ::Thrift::Struct, ::Thrift::Struct_Union
       TABLE = 1
+      COLUMNDEFINITION = 2
 
       FIELDS = {
-        # the table name.
-        TABLE => {:type => ::Thrift::Types::STRING, :name => 'table'}
+        # the name of the table.
+        TABLE => {:type => ::Thrift::Types::STRING, :name => 'table'},
+        # the ColumnDefinition.
+        COLUMNDEFINITION => {:type => ::Thrift::Types::STRUCT, :name => 'columnDefinition', :class => ::Blur::ColumnDefinition}
       }
 
       def struct_fields; FIELDS; end
@@ -1028,13 +1030,13 @@ module Blur
       ::Thrift::Struct.generate_accessors self
     end
 
-    class ShardServerLayoutState_result
+    class AddColumnDefinition_result
       include ::Thrift::Struct, ::Thrift::Struct_Union
       SUCCESS = 0
       EX = 1
 
       FIELDS = {
-        SUCCESS => {:type => ::Thrift::Types::MAP, :name => 'success', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::MAP, :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::I32, :enum_class => ::Blur::ShardState}}},
+        SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'},
         EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => ::Blur::BlurException}
       }
 
@@ -1149,16 +1151,13 @@ module Blur
       ::Thrift::Struct.generate_accessors self
     end
 
-    class Query_args
+    class Schema_args
       include ::Thrift::Struct, ::Thrift::Struct_Union
       TABLE = 1
-      BLURQUERY = 2
 
       FIELDS = {
         # the table name.
-        TABLE => {:type => ::Thrift::Types::STRING, :name => 'table'},
-        # the query to execute.
-        BLURQUERY => {:type => ::Thrift::Types::STRUCT, :name => 'blurQuery', :class => ::Blur::BlurQuery}
+        TABLE => {:type => ::Thrift::Types::STRING, :name => 'table'}
       }
 
       def struct_fields; FIELDS; end
@@ -1169,13 +1168,13 @@ module Blur
       ::Thrift::Struct.generate_accessors self
     end
 
-    class Query_result
+    class Schema_result
       include ::Thrift::Struct, ::Thrift::Struct_Union
       SUCCESS = 0
       EX = 1
 
       FIELDS = {
-        SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Blur::BlurResults},
+        SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Blur::Schema},
         EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => ::Blur::BlurException}
       }
 
@@ -1225,43 +1224,7 @@ module Blur
       ::Thrift::Struct.generate_accessors self
     end
 
-    class CancelQuery_args
-      include ::Thrift::Struct, ::Thrift::Struct_Union
-      TABLE = 1
-      UUID = 2
-
-      FIELDS = {
-        # the table name.
-        TABLE => {:type => ::Thrift::Types::STRING, :name => 'table'},
-        # the uuid of the query.
-        UUID => {:type => ::Thrift::Types::I64, :name => 'uuid'}
-      }
-
-      def struct_fields; FIELDS; end
-
-      def validate
-      end
-
-      ::Thrift::Struct.generate_accessors self
-    end
-
-    class CancelQuery_result
-      include ::Thrift::Struct, ::Thrift::Struct_Union
-      EX = 1
-
-      FIELDS = {
-        EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => ::Blur::BlurException}
-      }
-
-      def struct_fields; FIELDS; end
-
-      def validate
-      end
-
-      ::Thrift::Struct.generate_accessors self
-    end
-
-    class QueryStatusIdList_args
+    class TableStats_args
       include ::Thrift::Struct, ::Thrift::Struct_Union
       TABLE = 1
 
@@ -1278,13 +1241,13 @@ module Blur
       ::Thrift::Struct.generate_accessors self
     end
 
-    class QueryStatusIdList_result
+    class TableStats_result
       include ::Thrift::Struct, ::Thrift::Struct_Union
       SUCCESS = 0
       EX = 1
 
       FIELDS = {
-        SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::I64}},
+        SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Blur::TableStats},
         EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => ::Blur::BlurException}
       }
 
@@ -1296,16 +1259,16 @@ module Blur
       ::Thrift::Struct.generate_accessors self
     end
 
-    class QueryStatusById_args
+    class Optimize_args
       include ::Thrift::Struct, ::Thrift::Struct_Union
       TABLE = 1
-      UUID = 2
+      NUMBEROFSEGMENTSPERSHARD = 2
 
       FIELDS = {
-        # the table name.
+        # table the name of the table.
         TABLE => {:type => ::Thrift::Types::STRING, :name => 'table'},
-        # the uuid of the query.
-        UUID => {:type => ::Thrift::Types::I64, :name => 'uuid'}
+        # the maximum of segments per shard index after the operation is completed.
+        NUMBEROFSEGMENTSPERSHARD => {:type => ::Thrift::Types::I32, :name => 'numberOfSegmentsPerShard'}
       }
 
       def struct_fields; FIELDS; end
@@ -1316,13 +1279,11 @@ module Blur
       ::Thrift::Struct.generate_accessors self
     end
 
-    class QueryStatusById_result
+    class Optimize_result
       include ::Thrift::Struct, ::Thrift::Struct_Union
-      SUCCESS = 0
       EX = 1
 
       FIELDS = {
-        SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Blur::BlurQueryStatus},
         EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => ::Blur::BlurException}
       }
 
@@ -1334,13 +1295,14 @@ module Blur
       ::Thrift::Struct.generate_accessors self
     end
 
-    class Schema_args
+    class CreateSnapshot_args
       include ::Thrift::Struct, ::Thrift::Struct_Union
       TABLE = 1
+      NAME = 2
 
       FIELDS = {
-        # the table name.
-        TABLE => {:type => ::Thrift::Types::STRING, :name => 'table'}
+        TABLE => {:type => ::Thrift::Types::STRING, :name => 'table'},
+        NAME => {:type => ::Thrift::Types::STRING, :name => 'name'}
       }
 
       def struct_fields; FIELDS; end
@@ -1351,13 +1313,11 @@ module Blur
       ::Thrift::Struct.generate_accessors self
     end
 
-    class Schema_result
+    class CreateSnapshot_result
       include ::Thrift::Struct, ::Thrift::Struct_Union
-      SUCCESS = 0
       EX = 1
 
       FIELDS = {
-        SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Blur::Schema},
         EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => ::Blur::BlurException}
       }
 
@@ -1369,13 +1329,14 @@ module Blur
       ::Thrift::Struct.generate_accessors self
     end
 
-    class TableStats_args
+    class RemoveSnapshot_args
       include ::Thrift::Struct, ::Thrift::Struct_Union
       TABLE = 1
+      NAME = 2
 
       FIELDS = {
-        # the table name.
-        TABLE => {:type => ::Thrift::Types::STRING, :name => 'table'}
+        TABLE => {:type => ::Thrift::Types::STRING, :name => 'table'},
+        NAME => {:type => ::Thrift::Types::STRING, :name => 'name'}
       }
 
       def struct_fields; FIELDS; end
@@ -1386,13 +1347,11 @@ module Blur
       ::Thrift::Struct.generate_accessors self
     end
 
-    class TableStats_result
+    class RemoveSnapshot_result
       include ::Thrift::Struct, ::Thrift::Struct_Union
-      SUCCESS = 0
       EX = 1
 
       FIELDS = {
-        SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Blur::TableStats},
         EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => ::Blur::BlurException}
       }
 
@@ -1404,25 +1363,12 @@ module Blur
       ::Thrift::Struct.generate_accessors self
     end
 
-    class Terms_args
+    class ListSnapshots_args
       include ::Thrift::Struct, ::Thrift::Struct_Union
       TABLE = 1
-      COLUMNFAMILY = 2
-      COLUMNNAME = 3
-      STARTWITH = 4
-      SIZE = 5
 
       FIELDS = {
-        # the table name.
-        TABLE => {:type => ::Thrift::Types::STRING, :name => 'table'},
-        # the column family. If the frequency requested is a system field like "rowid", "recordid", "family", etc then columnFamily can be null.
-        COLUMNFAMILY => {:type => ::Thrift::Types::STRING, :name => 'columnFamily'},
-        # the column name.
-        COLUMNNAME => {:type => ::Thrift::Types::STRING, :name => 'columnName'},
-        # the term to start with assuming that you paging through the term list.
-        STARTWITH => {:type => ::Thrift::Types::STRING, :name => 'startWith'},
-        # the number to fetch at once.
-        SIZE => {:type => ::Thrift::Types::I16, :name => 'size'}
+        TABLE => {:type => ::Thrift::Types::STRING, :name => 'table'}
       }
 
       def struct_fields; FIELDS; end
@@ -1433,13 +1379,13 @@ module Blur
       ::Thrift::Struct.generate_accessors self
     end
 
-    class Terms_result
+    class ListSnapshots_result
       include ::Thrift::Struct, ::Thrift::Struct_Union
       SUCCESS = 0
       EX = 1
 
       FIELDS = {
-        SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}},
+        SUCCESS => {:type => ::Thrift::Types::MAP, :name => 'success', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::LIST, :element => {:type => ::Thrift::Types::STRING}}},
         EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => ::Blur::BlurException}
       }
 
@@ -1451,22 +1397,16 @@ module Blur
       ::Thrift::Struct.generate_accessors self
     end
 
-    class RecordFrequency_args
+    class Query_args
       include ::Thrift::Struct, ::Thrift::Struct_Union
       TABLE = 1
-      COLUMNFAMILY = 2
-      COLUMNNAME = 3
-      VALUE = 4
+      BLURQUERY = 2
 
       FIELDS = {
         # the table name.
         TABLE => {:type => ::Thrift::Types::STRING, :name => 'table'},
-        # the column family. If the frequency requested is a system field like "rowid", "recordid", "family", etc then columnFamily can be null.
-        COLUMNFAMILY => {:type => ::Thrift::Types::STRING, :name => 'columnFamily'},
-        # the column name.
-        COLUMNNAME => {:type => ::Thrift::Types::STRING, :name => 'columnName'},
-        # the value.
-        VALUE => {:type => ::Thrift::Types::STRING, :name => 'value'}
+        # the query to execute.
+        BLURQUERY => {:type => ::Thrift::Types::STRUCT, :name => 'blurQuery', :class => ::Blur::BlurQuery}
       }
 
       def struct_fields; FIELDS; end
@@ -1477,13 +1417,13 @@ module Blur
       ::Thrift::Struct.generate_accessors self
     end
 
-    class RecordFrequency_result
+    class Query_result
       include ::Thrift::Struct, ::Thrift::Struct_Union
       SUCCESS = 0
       EX = 1
 
       FIELDS = {
-        SUCCESS => {:type => ::Thrift::Types::I64, :name => 'success'},
+        SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Blur::BlurResults},
         EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => ::Blur::BlurException}
       }
 
@@ -1599,13 +1539,16 @@ module Blur
       ::Thrift::Struct.generate_accessors self
     end
 
-    class CreateTable_args
+    class CancelQuery_args
       include ::Thrift::Struct, ::Thrift::Struct_Union
-      TABLEDESCRIPTOR = 1
+      TABLE = 1
+      UUID = 2
 
       FIELDS = {
-        # the TableDescriptor.
-        TABLEDESCRIPTOR => {:type => ::Thrift::Types::STRUCT, :name => 'tableDescriptor', :class => ::Blur::TableDescriptor}
+        # the table name.
+        TABLE => {:type => ::Thrift::Types::STRING, :name => 'table'},
+        # the uuid of the query.
+        UUID => {:type => ::Thrift::Types::I64, :name => 'uuid'}
       }
 
       def struct_fields; FIELDS; end
@@ -1616,7 +1559,7 @@ module Blur
       ::Thrift::Struct.generate_accessors self
     end
 
-    class CreateTable_result
+    class CancelQuery_result
       include ::Thrift::Struct, ::Thrift::Struct_Union
       EX = 1
 
@@ -1632,7 +1575,7 @@ module Blur
       ::Thrift::Struct.generate_accessors self
     end
 
-    class EnableTable_args
+    class QueryStatusIdList_args
       include ::Thrift::Struct, ::Thrift::Struct_Union
       TABLE = 1
 
@@ -1649,11 +1592,13 @@ module Blur
       ::Thrift::Struct.generate_accessors self
     end
 
-    class EnableTable_result
+    class QueryStatusIdList_result
       include ::Thrift::Struct, ::Thrift::Struct_Union
+      SUCCESS = 0
       EX = 1
 
       FIELDS = {
+        SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::I64}},
         EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => ::Blur::BlurException}
       }
 
@@ -1665,13 +1610,16 @@ module Blur
       ::Thrift::Struct.generate_accessors self
     end
 
-    class DisableTable_args
+    class QueryStatusById_args
       include ::Thrift::Struct, ::Thrift::Struct_Union
       TABLE = 1
+      UUID = 2
 
       FIELDS = {
         # the table name.
-        TABLE => {:type => ::Thrift::Types::STRING, :name => 'table'}
+        TABLE => {:type => ::Thrift::Types::STRING, :name => 'table'},
+        # the uuid of the query.
+        UUID => {:type => ::Thrift::Types::I64, :name => 'uuid'}
       }
 
       def struct_fields; FIELDS; end
@@ -1682,11 +1630,13 @@ module Blur
       ::Thrift::Struct.generate_accessors self
     end
 
-    class DisableTable_result
+    class QueryStatusById_result
       include ::Thrift::Struct, ::Thrift::Struct_Union
+      SUCCESS = 0
       EX = 1
 
       FIELDS = {
+        SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Blur::BlurQueryStatus},
         EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => ::Blur::BlurException}
       }
 
@@ -1698,16 +1648,25 @@ module Blur
       ::Thrift::Struct.generate_accessors self
     end
 
-    class RemoveTable_args
+    class Terms_args
       include ::Thrift::Struct, ::Thrift::Struct_Union
       TABLE = 1
-      DELETEINDEXFILES = 2
+      COLUMNFAMILY = 2
+      COLUMNNAME = 3
+      STARTWITH = 4
+      SIZE = 5
 
       FIELDS = {
         # the table name.
         TABLE => {:type => ::Thrift::Types::STRING, :name => 'table'},
-        # true to remove the index storage and false if to preserve.
-        DELETEINDEXFILES => {:type => ::Thrift::Types::BOOL, :name => 'deleteIndexFiles'}
+        # the column family. If the frequency requested is a system field like "rowid", "recordid", "family", etc then columnFamily can be null.
+        COLUMNFAMILY => {:type => ::Thrift::Types::STRING, :name => 'columnFamily'},
+        # the column name.
+        COLUMNNAME => {:type => ::Thrift::Types::STRING, :name => 'columnName'},
+        # the term to start with assuming that you paging through the term list.
+        STARTWITH => {:type => ::Thrift::Types::STRING, :name => 'startWith'},
+        # the number to fetch at once.
+        SIZE => {:type => ::Thrift::Types::I16, :name => 'size'}
       }
 
       def struct_fields; FIELDS; end
@@ -1718,11 +1677,13 @@ module Blur
       ::Thrift::Struct.generate_accessors self
     end
 
-    class RemoveTable_result
+    class Terms_result
       include ::Thrift::Struct, ::Thrift::Struct_Union
+      SUCCESS = 0
       EX = 1
 
       FIELDS = {
+        SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}},
         EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => ::Blur::BlurException}
       }
 
@@ -1734,16 +1695,22 @@ module Blur
       ::Thrift::Struct.generate_accessors self
     end
 
-    class AddColumnDefinition_args
+    class RecordFrequency_args
       include ::Thrift::Struct, ::Thrift::Struct_Union
       TABLE = 1
-      COLUMNDEFINITION = 2
+      COLUMNFAMILY = 2
+      COLUMNNAME = 3
+      VALUE = 4
 
       FIELDS = {
-        # the name of the table.
+        # the table name.
         TABLE => {:type => ::Thrift::Types::STRING, :name => 'table'},
-        # the ColumnDefinition.
-        COLUMNDEFINITION => {:type => ::Thrift::Types::STRUCT, :name => 'columnDefinition', :class => ::Blur::ColumnDefinition}
+        # the column family. If the frequency requested is a system field like "rowid", "recordid", "family", etc then columnFamily can be null.
+        COLUMNFAMILY => {:type => ::Thrift::Types::STRING, :name => 'columnFamily'},
+        # the column name.
+        COLUMNNAME => {:type => ::Thrift::Types::STRING, :name => 'columnName'},
+        # the value.
+        VALUE => {:type => ::Thrift::Types::STRING, :name => 'value'}
       }
 
       def struct_fields; FIELDS; end
@@ -1754,13 +1721,13 @@ module Blur
       ::Thrift::Struct.generate_accessors self
     end
 
-    class AddColumnDefinition_result
+    class RecordFrequency_result
       include ::Thrift::Struct, ::Thrift::Struct_Union
       SUCCESS = 0
       EX = 1
 
       FIELDS = {
-        SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'},
+        SUCCESS => {:type => ::Thrift::Types::I64, :name => 'success'},
         EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => ::Blur::BlurException}
       }
 
@@ -1772,16 +1739,11 @@ module Blur
       ::Thrift::Struct.generate_accessors self
     end
 
-    class Optimize_args
+    class ShardClusterList_args
       include ::Thrift::Struct, ::Thrift::Struct_Union
-      TABLE = 1
-      NUMBEROFSEGMENTSPERSHARD = 2
 
       FIELDS = {
-        # table the name of the table.
-        TABLE => {:type => ::Thrift::Types::STRING, :name => 'table'},
-        # the maximum of segments per shard index after the operation is completed.
-        NUMBEROFSEGMENTSPERSHARD => {:type => ::Thrift::Types::I32, :name => 'numberOfSegmentsPerShard'}
+
       }
 
       def struct_fields; FIELDS; end
@@ -1792,11 +1754,13 @@ module Blur
       ::Thrift::Struct.generate_accessors self
     end
 
-    class Optimize_result
+    class ShardClusterList_result
       include ::Thrift::Struct, ::Thrift::Struct_Union
+      SUCCESS = 0
       EX = 1
 
       FIELDS = {
+        SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}},
         EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => ::Blur::BlurException}
       }
 
@@ -1808,12 +1772,12 @@ module Blur
       ::Thrift::Struct.generate_accessors self
     end
 
-    class IsInSafeMode_args
+    class ShardServerList_args
       include ::Thrift::Struct, ::Thrift::Struct_Union
       CLUSTER = 1
 
       FIELDS = {
-        # the name of the cluster.
+        # the cluster name.
         CLUSTER => {:type => ::Thrift::Types::STRING, :name => 'cluster'}
       }
 
@@ -1825,13 +1789,13 @@ module Blur
       ::Thrift::Struct.generate_accessors self
     end
 
-    class IsInSafeMode_result
+    class ShardServerList_result
       include ::Thrift::Struct, ::Thrift::Struct_Union
       SUCCESS = 0
       EX = 1
 
       FIELDS = {
-        SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'},
+        SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}},
         EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => ::Blur::BlurException}
       }
 
@@ -1843,7 +1807,7 @@ module Blur
       ::Thrift::Struct.generate_accessors self
     end
 
-    class Configuration_args
+    class ControllerServerList_args
       include ::Thrift::Struct, ::Thrift::Struct_Union
 
       FIELDS = {
@@ -1858,13 +1822,13 @@ module Blur
       ::Thrift::Struct.generate_accessors self
     end
 
-    class Configuration_result
+    class ControllerServerList_result
       include ::Thrift::Struct, ::Thrift::Struct_Union
       SUCCESS = 0
       EX = 1
 
       FIELDS = {
-        SUCCESS => {:type => ::Thrift::Types::MAP, :name => 'success', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}},
+        SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}},
         EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => ::Blur::BlurException}
       }
 
@@ -1876,13 +1840,13 @@ module Blur
       ::Thrift::Struct.generate_accessors self
     end
 
-    class Metrics_args
+    class ShardServerLayout_args
       include ::Thrift::Struct, ::Thrift::Struct_Union
-      METRICS = 1
+      TABLE = 1
 
       FIELDS = {
-        # the names of the metrics to return.  If null all are returned.
-        METRICS => {:type => ::Thrift::Types::SET, :name => 'metrics', :element => {:type => ::Thrift::Types::STRING}}
+        # the table name.
+        TABLE => {:type => ::Thrift::Types::STRING, :name => 'table'}
       }
 
       def struct_fields; FIELDS; end
@@ -1893,13 +1857,13 @@ module Blur
       ::Thrift::Struct.generate_accessors self
     end
 
-    class Metrics_result
+    class ShardServerLayout_result
       include ::Thrift::Struct, ::Thrift::Struct_Union
       SUCCESS = 0
       EX = 1
 
       FIELDS = {
-        SUCCESS => {:type => ::Thrift::Types::MAP, :name => 'success', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRUCT, :class => ::Blur::Metric}},
+        SUCCESS => {:type => ::Thrift::Types::MAP, :name => 'success', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}},
         EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => ::Blur::BlurException}
       }
 
@@ -1911,14 +1875,13 @@ module Blur
       ::Thrift::Struct.generate_accessors self
     end
 
-    class CreateSnapshot_args
+    class ShardServerLayoutState_args
       include ::Thrift::Struct, ::Thrift::Struct_Union
       TABLE = 1
-      NAME = 2
 
       FIELDS = {
-        TABLE => {:type => ::Thrift::Types::STRING, :name => 'table'},
-        NAME => {:type => ::Thrift::Types::STRING, :name => 'name'}
+        # the table name.
+        TABLE => {:type => ::Thrift::Types::STRING, :name => 'table'}
       }
 
       def struct_fields; FIELDS; end
@@ -1929,11 +1892,13 @@ module Blur
       ::Thrift::Struct.generate_accessors self
     end
 
-    class CreateSnapshot_result
+    class ShardServerLayoutState_result
       include ::Thrift::Struct, ::Thrift::Struct_Union
+      SUCCESS = 0
       EX = 1
 
       FIELDS = {
+        SUCCESS => {:type => ::Thrift::Types::MAP, :name => 'success', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::MAP, :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::I32, :enum_class => ::Blur::ShardState}}},
         EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => ::Blur::BlurException}
       }
 
@@ -1945,14 +1910,13 @@ module Blur
       ::Thrift::Struct.generate_accessors self
     end
 
-    class RemoveSnapshot_args
+    class IsInSafeMode_args
       include ::Thrift::Struct, ::Thrift::Struct_Union
-      TABLE = 1
-      NAME = 2
+      CLUSTER = 1
 
       FIELDS = {
-        TABLE => {:type => ::Thrift::Types::STRING, :name => 'table'},
-        NAME => {:type => ::Thrift::Types::STRING, :name => 'name'}
+        # the name of the cluster.
+        CLUSTER => {:type => ::Thrift::Types::STRING, :name => 'cluster'}
       }
 
       def struct_fields; FIELDS; end
@@ -1963,11 +1927,13 @@ module Blur
       ::Thrift::Struct.generate_accessors self
     end
 
-    class RemoveSnapshot_result
+    class IsInSafeMode_result
       include ::Thrift::Struct, ::Thrift::Struct_Union
+      SUCCESS = 0
       EX = 1
 
       FIELDS = {
+        SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'},
         EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => ::Blur::BlurException}
       }
 
@@ -1979,12 +1945,11 @@ module Blur
       ::Thrift::Struct.generate_accessors self
     end
 
-    class ListSnapshots_args
+    class Configuration_args
       include ::Thrift::Struct, ::Thrift::Struct_Union
-      TABLE = 1
 
       FIELDS = {
-        TABLE => {:type => ::Thrift::Types::STRING, :name => 'table'}
+
       }
 
       def struct_fields; FIELDS; end
@@ -1995,13 +1960,48 @@ module Blur
       ::Thrift::Struct.generate_accessors self
     end
 
-    class ListSnapshots_result
+    class Configuration_result
       include ::Thrift::Struct, ::Thrift::Struct_Union
       SUCCESS = 0
       EX = 1
 
       FIELDS = {
-        SUCCESS => {:type => ::Thrift::Types::MAP, :name => 'success', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::LIST, :element => {:type => ::Thrift::Types::STRING}}},
+        SUCCESS => {:type => ::Thrift::Types::MAP, :name => 'success', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}},
+        EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => ::Blur::BlurException}
+      }
+
+      def struct_fields; FIELDS; end
+
+      def validate
+      end
+
+      ::Thrift::Struct.generate_accessors self
+    end
+
+    class Metrics_args
+      include ::Thrift::Struct, ::Thrift::Struct_Union
+      METRICS = 1
+
+      FIELDS = {
+        # the names of the metrics to return.  If null all are returned.
+        METRICS => {:type => ::Thrift::Types::SET, :name => 'metrics', :element => {:type => ::Thrift::Types::STRING}}
+      }
+
+      def struct_fields; FIELDS; end
+
+      def validate
+      end
+
+      ::Thrift::Struct.generate_accessors self
+    end
+
+    class Metrics_result
+      include ::Thrift::Struct, ::Thrift::Struct_Union
+      SUCCESS = 0
+      EX = 1
+
+      FIELDS = {
+        SUCCESS => {:type => ::Thrift::Types::MAP, :name => 'success', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRUCT, :class => ::Blur::Metric}},
         EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => ::Blur::BlurException}
       }
 

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/d05d4ba2/distribution/src/main/scripts/interface/genAndReplace.sh
----------------------------------------------------------------------
diff --git a/distribution/src/main/scripts/interface/genAndReplace.sh b/distribution/src/main/scripts/interface/genAndReplace.sh
index 437b178..0ae73f4 100755
--- a/distribution/src/main/scripts/interface/genAndReplace.sh
+++ b/distribution/src/main/scripts/interface/genAndReplace.sh
@@ -28,4 +28,5 @@ for f in gen-java/org/apache/blur/thrift/generated/*.java; do
   rm $f.new1 $f.new2 $f.new3 $f
   mv $f.new4 $f
 done
+java -cp ../../../../../blur-util/target/blur-util-*.jar org.apache.blur.doc.CreateBlurApiHtmlPage gen-html/Blur.html ../../../../../docs/Blur.html
 cp -r gen-java/* ../../../../../blur-thrift/src/main/java/


Mime
View raw message