mirror of
https://github.com/apache/druid.git
synced 2025-02-17 15:35:56 +00:00
make it work with Java 8
This commit is contained in:
parent
5a7d186e88
commit
fd7d3e5ace
@ -34,7 +34,7 @@ import javax.script.ScriptException;
|
|||||||
|
|
||||||
public class JavaScriptTieredBrokerSelectorStrategy implements TieredBrokerSelectorStrategy
|
public class JavaScriptTieredBrokerSelectorStrategy implements TieredBrokerSelectorStrategy
|
||||||
{
|
{
|
||||||
private static interface SelectorFunction
|
public static interface SelectorFunction
|
||||||
{
|
{
|
||||||
public String apply(TieredBrokerConfig config, Query query);
|
public String apply(TieredBrokerConfig config, Query query);
|
||||||
}
|
}
|
||||||
|
@ -55,8 +55,6 @@ public class JavaScriptTieredBrokerSelectorStrategyTest
|
|||||||
@Test
|
@Test
|
||||||
public void testGetBrokerServiceName() throws Exception
|
public void testGetBrokerServiceName() throws Exception
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
final LinkedHashMap<String, String> tierBrokerMap = new LinkedHashMap<>();
|
final LinkedHashMap<String, String> tierBrokerMap = new LinkedHashMap<>();
|
||||||
tierBrokerMap.put("fast", "druid/fastBroker");
|
tierBrokerMap.put("fast", "druid/fastBroker");
|
||||||
tierBrokerMap.put("slow", "druid/broker");
|
tierBrokerMap.put("slow", "druid/broker");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user