Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Forever310
druid
提交
b84884ab
D
druid
项目概览
Forever310
/
druid
与 Fork 源项目一致
从无法访问的项目Fork
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
druid
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
b84884ab
编写于
6月 09, 2014
作者:
X
Xavier Léauté
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
remove methods used only for testing
上级
c08002aa
变更
16
隐藏空白更改
内联
并排
Showing
16 changed file
with
88 addition
and
103 deletion
+88
-103
processing/src/main/java/io/druid/query/select/SelectQueryRunnerFactory.java
.../java/io/druid/query/select/SelectQueryRunnerFactory.java
+0
-15
processing/src/main/java/io/druid/query/timeseries/TimeseriesQueryRunnerFactory.java
.../druid/query/timeseries/TimeseriesQueryRunnerFactory.java
+0
-19
processing/src/test/java/io/druid/query/QueryRunnerTestHelper.java
...g/src/test/java/io/druid/query/QueryRunnerTestHelper.java
+1
-1
processing/src/test/java/io/druid/query/TestQueryRunners.java
...essing/src/test/java/io/druid/query/TestQueryRunners.java
+11
-19
processing/src/test/java/io/druid/query/search/SearchQueryRunnerTest.java
...est/java/io/druid/query/search/SearchQueryRunnerTest.java
+4
-8
processing/src/test/java/io/druid/query/select/SelectQueryRunnerTest.java
...est/java/io/druid/query/select/SelectQueryRunnerTest.java
+9
-1
processing/src/test/java/io/druid/query/timeboundary/TimeBoundaryQueryRunnerTest.java
...druid/query/timeboundary/TimeBoundaryQueryRunnerTest.java
+1
-8
processing/src/test/java/io/druid/query/timeseries/TimeSeriesUnionQueryRunnerTest.java
...ruid/query/timeseries/TimeSeriesUnionQueryRunnerTest.java
+6
-1
processing/src/test/java/io/druid/query/timeseries/TimeseriesQueryRunnerBonusTest.java
...ruid/query/timeseries/TimeseriesQueryRunnerBonusTest.java
+8
-1
processing/src/test/java/io/druid/query/timeseries/TimeseriesQueryRunnerTest.java
.../io/druid/query/timeseries/TimeseriesQueryRunnerTest.java
+6
-1
processing/src/test/java/io/druid/query/topn/TopNQueryRunnerTest.java
...rc/test/java/io/druid/query/topn/TopNQueryRunnerTest.java
+2
-5
processing/src/test/java/io/druid/query/topn/TopNUnionQueryTest.java
...src/test/java/io/druid/query/topn/TopNUnionQueryTest.java
+2
-5
processing/src/test/java/io/druid/segment/filter/SpatialFilterBonusTest.java
.../java/io/druid/segment/filter/SpatialFilterBonusTest.java
+17
-3
processing/src/test/java/io/druid/segment/filter/SpatialFilterTest.java
.../test/java/io/druid/segment/filter/SpatialFilterTest.java
+17
-3
server/src/main/java/io/druid/server/coordination/ServerManager.java
...main/java/io/druid/server/coordination/ServerManager.java
+0
-1
server/src/test/java/io/druid/client/DirectDruidClientTest.java
.../src/test/java/io/druid/client/DirectDruidClientTest.java
+4
-12
未找到文件。
processing/src/main/java/io/druid/query/select/SelectQueryRunnerFactory.java
浏览文件 @
b84884ab
...
...
@@ -41,21 +41,6 @@ import java.util.concurrent.ExecutorService;
public
class
SelectQueryRunnerFactory
implements
QueryRunnerFactory
<
Result
<
SelectResultValue
>,
SelectQuery
>
{
public
static
SelectQueryRunnerFactory
create
(
ObjectMapper
jsonMapper
)
{
return
new
SelectQueryRunnerFactory
(
new
SelectQueryQueryToolChest
(
new
QueryConfig
(),
jsonMapper
),
new
SelectQueryEngine
(),
new
QueryWatcher
()
{
@Override
public
void
registerQuery
(
Query
query
,
ListenableFuture
future
)
{
}
}
);
}
private
final
SelectQueryQueryToolChest
toolChest
;
private
final
SelectQueryEngine
engine
;
private
final
QueryWatcher
queryWatcher
;
...
...
processing/src/main/java/io/druid/query/timeseries/TimeseriesQueryRunnerFactory.java
浏览文件 @
b84884ab
...
...
@@ -41,25 +41,6 @@ import java.util.concurrent.ExecutorService;
public
class
TimeseriesQueryRunnerFactory
implements
QueryRunnerFactory
<
Result
<
TimeseriesResultValue
>,
TimeseriesQuery
>
{
/**
* Use only for testing
* @return
*/
public
static
TimeseriesQueryRunnerFactory
create
()
{
return
new
TimeseriesQueryRunnerFactory
(
new
TimeseriesQueryQueryToolChest
(
new
QueryConfig
()),
new
TimeseriesQueryEngine
(),
new
QueryWatcher
()
{
@Override
public
void
registerQuery
(
Query
query
,
ListenableFuture
future
)
{
}
}
);
}
private
final
TimeseriesQueryQueryToolChest
toolChest
;
private
final
TimeseriesQueryEngine
engine
;
private
final
QueryWatcher
queryWatcher
;
...
...
processing/src/test/java/io/druid/query/QueryRunnerTestHelper.java
浏览文件 @
b84884ab
...
...
@@ -55,7 +55,7 @@ import java.util.List;
public
class
QueryRunnerTestHelper
{
public
static
final
QueryWatcher
DUMMY
_QUERYWATCHER
=
new
QueryWatcher
()
public
static
final
QueryWatcher
NOOP
_QUERYWATCHER
=
new
QueryWatcher
()
{
@Override
public
void
registerQuery
(
Query
query
,
ListenableFuture
future
)
...
...
processing/src/test/java/io/druid/query/TestQueryRunners.java
浏览文件 @
b84884ab
...
...
@@ -7,6 +7,8 @@ import io.druid.query.search.SearchQueryQueryToolChest;
import
io.druid.query.search.SearchQueryRunnerFactory
;
import
io.druid.query.search.search.SearchQueryConfig
;
import
io.druid.query.timeboundary.TimeBoundaryQueryRunnerFactory
;
import
io.druid.query.timeseries.TimeseriesQueryEngine
;
import
io.druid.query.timeseries.TimeseriesQueryQueryToolChest
;
import
io.druid.query.timeseries.TimeseriesQueryRunnerFactory
;
import
io.druid.query.topn.TopNQueryConfig
;
import
io.druid.query.topn.TopNQueryQueryToolChest
;
...
...
@@ -44,7 +46,7 @@ public class TestQueryRunners
QueryRunnerFactory
factory
=
new
TopNQueryRunnerFactory
(
pool
,
new
TopNQueryQueryToolChest
(
topNConfig
),
QueryRunnerTestHelper
.
DUMMY
_QUERYWATCHER
QueryRunnerTestHelper
.
NOOP
_QUERYWATCHER
);
return
new
FinalizeResultsQueryRunner
<
T
>(
factory
.
createRunner
(
adapter
),
...
...
@@ -56,7 +58,12 @@ public class TestQueryRunners
Segment
adapter
)
{
QueryRunnerFactory
factory
=
TimeseriesQueryRunnerFactory
.
create
();
QueryRunnerFactory
factory
=
new
TimeseriesQueryRunnerFactory
(
new
TimeseriesQueryQueryToolChest
(
new
QueryConfig
()),
new
TimeseriesQueryEngine
(),
QueryRunnerTestHelper
.
NOOP_QUERYWATCHER
);
return
new
FinalizeResultsQueryRunner
<
T
>(
factory
.
createRunner
(
adapter
),
factory
.
getToolchest
()
...
...
@@ -67,14 +74,7 @@ public class TestQueryRunners
Segment
adapter
)
{
QueryRunnerFactory
factory
=
new
SearchQueryRunnerFactory
(
new
SearchQueryQueryToolChest
(
new
SearchQueryConfig
()),
new
QueryWatcher
()
{
@Override
public
void
registerQuery
(
Query
query
,
ListenableFuture
future
)
{
}
});
QueryRunnerFactory
factory
=
new
SearchQueryRunnerFactory
(
new
SearchQueryQueryToolChest
(
new
SearchQueryConfig
()),
QueryRunnerTestHelper
.
NOOP_QUERYWATCHER
);
return
new
FinalizeResultsQueryRunner
<
T
>(
factory
.
createRunner
(
adapter
),
factory
.
getToolchest
()
...
...
@@ -85,18 +85,10 @@ public class TestQueryRunners
Segment
adapter
)
{
QueryRunnerFactory
factory
=
new
TimeBoundaryQueryRunnerFactory
(
new
QueryWatcher
()
{
@Override
public
void
registerQuery
(
Query
query
,
ListenableFuture
future
)
{
}
});
QueryRunnerFactory
factory
=
new
TimeBoundaryQueryRunnerFactory
(
QueryRunnerTestHelper
.
NOOP_QUERYWATCHER
);
return
new
FinalizeResultsQueryRunner
<
T
>(
factory
.
createRunner
(
adapter
),
factory
.
getToolchest
()
);
}
}
processing/src/test/java/io/druid/query/search/SearchQueryRunnerTest.java
浏览文件 @
b84884ab
...
...
@@ -59,14 +59,10 @@ public class SearchQueryRunnerTest
public
static
Collection
<?>
constructorFeeder
()
throws
IOException
{
return
QueryRunnerTestHelper
.
makeQueryRunners
(
new
SearchQueryRunnerFactory
(
new
SearchQueryQueryToolChest
(
new
SearchQueryConfig
()),
new
QueryWatcher
()
{
@Override
public
void
registerQuery
(
Query
query
,
ListenableFuture
future
)
{
}
})
new
SearchQueryRunnerFactory
(
new
SearchQueryQueryToolChest
(
new
SearchQueryConfig
()),
QueryRunnerTestHelper
.
NOOP_QUERYWATCHER
)
);
}
...
...
processing/src/test/java/io/druid/query/select/SelectQueryRunnerTest.java
浏览文件 @
b84884ab
...
...
@@ -22,11 +22,15 @@ package io.druid.query.select;
import
com.google.common.collect.ImmutableMap
;
import
com.google.common.collect.Lists
;
import
com.google.common.collect.Maps
;
import
com.google.common.util.concurrent.ListenableFuture
;
import
com.metamx.common.ISE
;
import
com.metamx.common.guava.Sequences
;
import
io.druid.jackson.DefaultObjectMapper
;
import
io.druid.query.Query
;
import
io.druid.query.QueryConfig
;
import
io.druid.query.QueryRunner
;
import
io.druid.query.QueryRunnerTestHelper
;
import
io.druid.query.QueryWatcher
;
import
io.druid.query.Result
;
import
io.druid.query.TableDataSource
;
import
io.druid.query.filter.SelectorDimFilter
;
...
...
@@ -54,7 +58,11 @@ public class SelectQueryRunnerTest
public
static
Collection
<?>
constructorFeeder
()
throws
IOException
{
return
QueryRunnerTestHelper
.
makeQueryRunners
(
SelectQueryRunnerFactory
.
create
(
new
DefaultObjectMapper
())
new
SelectQueryRunnerFactory
(
new
SelectQueryQueryToolChest
(
new
QueryConfig
(),
new
DefaultObjectMapper
()),
new
SelectQueryEngine
(),
QueryRunnerTestHelper
.
NOOP_QUERYWATCHER
)
);
}
...
...
processing/src/test/java/io/druid/query/timeboundary/TimeBoundaryQueryRunnerTest.java
浏览文件 @
b84884ab
...
...
@@ -46,14 +46,7 @@ public class TimeBoundaryQueryRunnerTest
public
static
Collection
<?>
constructorFeeder
()
throws
IOException
{
return
QueryRunnerTestHelper
.
makeQueryRunners
(
new
TimeBoundaryQueryRunnerFactory
(
new
QueryWatcher
()
{
@Override
public
void
registerQuery
(
Query
query
,
ListenableFuture
future
)
{
}
})
new
TimeBoundaryQueryRunnerFactory
(
QueryRunnerTestHelper
.
NOOP_QUERYWATCHER
)
);
}
...
...
processing/src/test/java/io/druid/query/timeseries/TimeSeriesUnionQueryRunnerTest.java
浏览文件 @
b84884ab
...
...
@@ -23,6 +23,7 @@ import com.google.common.collect.ImmutableMap;
import
com.google.common.collect.Lists
;
import
com.metamx.common.guava.Sequences
;
import
io.druid.query.Druids
;
import
io.druid.query.QueryConfig
;
import
io.druid.query.QueryRunner
;
import
io.druid.query.QueryRunnerTestHelper
;
import
io.druid.query.Result
;
...
...
@@ -46,7 +47,11 @@ public class TimeSeriesUnionQueryRunnerTest
public
static
Collection
<?>
constructorFeeder
()
throws
IOException
{
return
QueryRunnerTestHelper
.
makeUnionQueryRunners
(
TimeseriesQueryRunnerFactory
.
create
()
new
TimeseriesQueryRunnerFactory
(
new
TimeseriesQueryQueryToolChest
(
new
QueryConfig
()),
new
TimeseriesQueryEngine
(),
QueryRunnerTestHelper
.
NOOP_QUERYWATCHER
)
);
}
...
...
processing/src/test/java/io/druid/query/timeseries/TimeseriesQueryRunnerBonusTest.java
浏览文件 @
b84884ab
...
...
@@ -28,8 +28,10 @@ import io.druid.granularity.QueryGranularity;
import
io.druid.query.Druids
;
import
io.druid.query.FinalizeResultsQueryRunner
;
import
io.druid.query.Query
;
import
io.druid.query.QueryConfig
;
import
io.druid.query.QueryRunner
;
import
io.druid.query.QueryRunnerFactory
;
import
io.druid.query.QueryRunnerTestHelper
;
import
io.druid.query.Result
;
import
io.druid.query.aggregation.AggregatorFactory
;
import
io.druid.query.aggregation.CountAggregatorFactory
;
...
...
@@ -87,7 +89,12 @@ public class TimeseriesQueryRunnerBonusTest
private
static
List
<
Result
<
TimeseriesResultValue
>>
runTimeseriesCount
(
IncrementalIndex
index
)
{
final
QueryRunnerFactory
factory
=
TimeseriesQueryRunnerFactory
.
create
();
final
QueryRunnerFactory
factory
=
new
TimeseriesQueryRunnerFactory
(
new
TimeseriesQueryQueryToolChest
(
new
QueryConfig
()),
new
TimeseriesQueryEngine
(),
QueryRunnerTestHelper
.
NOOP_QUERYWATCHER
);
final
QueryRunner
<
Result
<
TimeseriesResultValue
>>
runner
=
makeQueryRunner
(
factory
,
new
IncrementalIndexSegment
(
index
,
null
)
...
...
processing/src/test/java/io/druid/query/timeseries/TimeseriesQueryRunnerTest.java
浏览文件 @
b84884ab
...
...
@@ -26,6 +26,7 @@ import com.metamx.common.guava.Sequences;
import
io.druid.granularity.PeriodGranularity
;
import
io.druid.granularity.QueryGranularity
;
import
io.druid.query.Druids
;
import
io.druid.query.QueryConfig
;
import
io.druid.query.QueryRunner
;
import
io.druid.query.QueryRunnerTestHelper
;
import
io.druid.query.Result
;
...
...
@@ -62,7 +63,11 @@ public class TimeseriesQueryRunnerTest
public
static
Collection
<?>
constructorFeeder
()
throws
IOException
{
return
QueryRunnerTestHelper
.
makeQueryRunners
(
TimeseriesQueryRunnerFactory
.
create
()
new
TimeseriesQueryRunnerFactory
(
new
TimeseriesQueryQueryToolChest
(
new
QueryConfig
()),
new
TimeseriesQueryEngine
(),
QueryRunnerTestHelper
.
NOOP_QUERYWATCHER
)
);
}
...
...
processing/src/test/java/io/druid/query/topn/TopNQueryRunnerTest.java
浏览文件 @
b84884ab
...
...
@@ -23,15 +23,12 @@ import com.google.common.base.Supplier;
import
com.google.common.collect.ImmutableMap
;
import
com.google.common.collect.Iterables
;
import
com.google.common.collect.Lists
;
import
com.google.common.util.concurrent.ListenableFuture
;
import
com.metamx.common.guava.Sequences
;
import
io.druid.collections.StupidPool
;
import
io.druid.query.BySegmentResultValueClass
;
import
io.druid.query.Druids
;
import
io.druid.query.Query
;
import
io.druid.query.QueryRunner
;
import
io.druid.query.QueryRunnerTestHelper
;
import
io.druid.query.QueryWatcher
;
import
io.druid.query.Result
;
import
io.druid.query.TestQueryRunners
;
import
io.druid.query.aggregation.AggregatorFactory
;
...
...
@@ -72,7 +69,7 @@ public class TopNQueryRunnerTest
new
TopNQueryRunnerFactory
(
TestQueryRunners
.
getPool
(),
new
TopNQueryQueryToolChest
(
new
TopNQueryConfig
()),
QueryRunnerTestHelper
.
DUMMY
_QUERYWATCHER
QueryRunnerTestHelper
.
NOOP
_QUERYWATCHER
)
)
);
...
...
@@ -90,7 +87,7 @@ public class TopNQueryRunnerTest
}
),
new
TopNQueryQueryToolChest
(
new
TopNQueryConfig
()),
QueryRunnerTestHelper
.
DUMMY
_QUERYWATCHER
QueryRunnerTestHelper
.
NOOP
_QUERYWATCHER
)
)
);
...
...
processing/src/test/java/io/druid/query/topn/TopNUnionQueryTest.java
浏览文件 @
b84884ab
...
...
@@ -23,12 +23,9 @@ import com.google.common.base.Supplier;
import
com.google.common.collect.ImmutableMap
;
import
com.google.common.collect.Iterables
;
import
com.google.common.collect.Lists
;
import
com.google.common.util.concurrent.ListenableFuture
;
import
io.druid.collections.StupidPool
;
import
io.druid.query.Query
;
import
io.druid.query.QueryRunner
;
import
io.druid.query.QueryRunnerTestHelper
;
import
io.druid.query.QueryWatcher
;
import
io.druid.query.Result
;
import
io.druid.query.TestQueryRunners
;
import
io.druid.query.aggregation.AggregatorFactory
;
...
...
@@ -69,7 +66,7 @@ public class TopNUnionQueryTest
new
TopNQueryRunnerFactory
(
TestQueryRunners
.
getPool
(),
new
TopNQueryQueryToolChest
(
new
TopNQueryConfig
()),
QueryRunnerTestHelper
.
DUMMY
_QUERYWATCHER
QueryRunnerTestHelper
.
NOOP
_QUERYWATCHER
)
)
);
...
...
@@ -87,7 +84,7 @@ public class TopNUnionQueryTest
}
),
new
TopNQueryQueryToolChest
(
new
TopNQueryConfig
()),
QueryRunnerTestHelper
.
DUMMY
_QUERYWATCHER
QueryRunnerTestHelper
.
NOOP
_QUERYWATCHER
)
)
);
...
...
processing/src/test/java/io/druid/segment/filter/SpatialFilterBonusTest.java
浏览文件 @
b84884ab
...
...
@@ -29,13 +29,17 @@ import io.druid.data.input.impl.SpatialDimensionSchema;
import
io.druid.granularity.QueryGranularity
;
import
io.druid.query.Druids
;
import
io.druid.query.FinalizeResultsQueryRunner
;
import
io.druid.query.QueryConfig
;
import
io.druid.query.QueryRunner
;
import
io.druid.query.QueryRunnerTestHelper
;
import
io.druid.query.Result
;
import
io.druid.query.aggregation.AggregatorFactory
;
import
io.druid.query.aggregation.CountAggregatorFactory
;
import
io.druid.query.aggregation.LongSumAggregatorFactory
;
import
io.druid.query.filter.SpatialDimFilter
;
import
io.druid.query.timeseries.TimeseriesQuery
;
import
io.druid.query.timeseries.TimeseriesQueryEngine
;
import
io.druid.query.timeseries.TimeseriesQueryQueryToolChest
;
import
io.druid.query.timeseries.TimeseriesQueryRunnerFactory
;
import
io.druid.query.timeseries.TimeseriesResultValue
;
import
io.druid.segment.IncrementalIndexSegment
;
...
...
@@ -434,7 +438,12 @@ public class SpatialFilterBonusTest
)
);
try
{
TimeseriesQueryRunnerFactory
factory
=
TimeseriesQueryRunnerFactory
.
create
();
TimeseriesQueryRunnerFactory
factory
=
new
TimeseriesQueryRunnerFactory
(
new
TimeseriesQueryQueryToolChest
(
new
QueryConfig
()),
new
TimeseriesQueryEngine
(),
QueryRunnerTestHelper
.
NOOP_QUERYWATCHER
);
QueryRunner
runner
=
new
FinalizeResultsQueryRunner
(
factory
.
createRunner
(
segment
),
factory
.
getToolchest
()
...
...
@@ -516,7 +525,12 @@ public class SpatialFilterBonusTest
)
);
try
{
TimeseriesQueryRunnerFactory
factory
=
TimeseriesQueryRunnerFactory
.
create
();
TimeseriesQueryRunnerFactory
factory
=
new
TimeseriesQueryRunnerFactory
(
new
TimeseriesQueryQueryToolChest
(
new
QueryConfig
()),
new
TimeseriesQueryEngine
(),
QueryRunnerTestHelper
.
NOOP_QUERYWATCHER
);
QueryRunner
runner
=
new
FinalizeResultsQueryRunner
(
factory
.
createRunner
(
segment
),
factory
.
getToolchest
()
...
...
@@ -528,4 +542,4 @@ public class SpatialFilterBonusTest
throw
Throwables
.
propagate
(
e
);
}
}
}
\ No newline at end of file
}
processing/src/test/java/io/druid/segment/filter/SpatialFilterTest.java
浏览文件 @
b84884ab
...
...
@@ -29,13 +29,17 @@ import io.druid.data.input.impl.SpatialDimensionSchema;
import
io.druid.granularity.QueryGranularity
;
import
io.druid.query.Druids
;
import
io.druid.query.FinalizeResultsQueryRunner
;
import
io.druid.query.QueryConfig
;
import
io.druid.query.QueryRunner
;
import
io.druid.query.QueryRunnerTestHelper
;
import
io.druid.query.Result
;
import
io.druid.query.aggregation.AggregatorFactory
;
import
io.druid.query.aggregation.CountAggregatorFactory
;
import
io.druid.query.aggregation.LongSumAggregatorFactory
;
import
io.druid.query.filter.SpatialDimFilter
;
import
io.druid.query.timeseries.TimeseriesQuery
;
import
io.druid.query.timeseries.TimeseriesQueryEngine
;
import
io.druid.query.timeseries.TimeseriesQueryQueryToolChest
;
import
io.druid.query.timeseries.TimeseriesQueryRunnerFactory
;
import
io.druid.query.timeseries.TimeseriesResultValue
;
import
io.druid.segment.IncrementalIndexSegment
;
...
...
@@ -464,7 +468,12 @@ public class SpatialFilterTest
)
);
try
{
TimeseriesQueryRunnerFactory
factory
=
TimeseriesQueryRunnerFactory
.
create
();
TimeseriesQueryRunnerFactory
factory
=
new
TimeseriesQueryRunnerFactory
(
new
TimeseriesQueryQueryToolChest
(
new
QueryConfig
()),
new
TimeseriesQueryEngine
(),
QueryRunnerTestHelper
.
NOOP_QUERYWATCHER
);
QueryRunner
runner
=
new
FinalizeResultsQueryRunner
(
factory
.
createRunner
(
segment
),
factory
.
getToolchest
()
...
...
@@ -546,7 +555,12 @@ public class SpatialFilterTest
)
);
try
{
TimeseriesQueryRunnerFactory
factory
=
TimeseriesQueryRunnerFactory
.
create
();
TimeseriesQueryRunnerFactory
factory
=
new
TimeseriesQueryRunnerFactory
(
new
TimeseriesQueryQueryToolChest
(
new
QueryConfig
()),
new
TimeseriesQueryEngine
(),
QueryRunnerTestHelper
.
NOOP_QUERYWATCHER
);
QueryRunner
runner
=
new
FinalizeResultsQueryRunner
(
factory
.
createRunner
(
segment
),
factory
.
getToolchest
()
...
...
@@ -558,4 +572,4 @@ public class SpatialFilterTest
throw
Throwables
.
propagate
(
e
);
}
}
}
\ No newline at end of file
}
server/src/main/java/io/druid/server/coordination/ServerManager.java
浏览文件 @
b84884ab
...
...
@@ -21,7 +21,6 @@ package io.druid.server.coordination;
import
com.fasterxml.jackson.databind.ObjectMapper
;
import
com.google.common.base.Function
;
import
com.google.common.base.Preconditions
;
import
com.google.common.base.Predicates
;
import
com.google.common.collect.Iterables
;
import
com.google.common.collect.Ordering
;
...
...
server/src/test/java/io/druid/client/DirectDruidClientTest.java
浏览文件 @
b84884ab
...
...
@@ -38,6 +38,7 @@ import io.druid.jackson.DefaultObjectMapper;
import
io.druid.query.Druids
;
import
io.druid.query.Query
;
import
io.druid.query.QueryInterruptedException
;
import
io.druid.query.QueryRunnerTestHelper
;
import
io.druid.query.QueryWatcher
;
import
io.druid.query.ReflectionQueryToolChestWarehouse
;
import
io.druid.query.Result
;
...
...
@@ -60,15 +61,6 @@ import java.util.List;
public
class
DirectDruidClientTest
{
public
static
final
QueryWatcher
DUMMY_WATCHER
=
new
QueryWatcher
()
{
@Override
public
void
registerQuery
(
Query
query
,
ListenableFuture
future
)
{
}
};
@Test
public
void
testRun
()
throws
Exception
{
...
...
@@ -101,14 +93,14 @@ public class DirectDruidClientTest
DirectDruidClient
client1
=
new
DirectDruidClient
(
new
ReflectionQueryToolChestWarehouse
(),
DUMMY_
WATCHER
,
QueryRunnerTestHelper
.
NOOP_QUERY
WATCHER
,
new
DefaultObjectMapper
(),
httpClient
,
"foo"
);
DirectDruidClient
client2
=
new
DirectDruidClient
(
new
ReflectionQueryToolChestWarehouse
(),
DUMMY_
WATCHER
,
QueryRunnerTestHelper
.
NOOP_QUERY
WATCHER
,
new
DefaultObjectMapper
(),
httpClient
,
"foo2"
...
...
@@ -196,7 +188,7 @@ public class DirectDruidClientTest
DirectDruidClient
client1
=
new
DirectDruidClient
(
new
ReflectionQueryToolChestWarehouse
(),
DUMMY_
WATCHER
,
QueryRunnerTestHelper
.
NOOP_QUERY
WATCHER
,
new
DefaultObjectMapper
(),
httpClient
,
"foo"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录