List of usage examples for com.google.common.collect ImmutableMap of
public static <K, V> ImmutableMap<K, V> of()
From source file:io.prestosql.plugin.raptor.legacy.RaptorBenchmarkQueryRunner.java
public static LocalQueryRunner createLocalQueryRunner() { Session session = testSessionBuilder().setCatalog("raptor").setSchema("benchmark").build(); LocalQueryRunner localQueryRunner = new LocalQueryRunner(session); // add tpch// w w w . jav a 2 s .c o m localQueryRunner.createCatalog("tpch", new TpchConnectorFactory(1), ImmutableMap.of()); // add raptor ConnectorFactory raptorConnectorFactory = getOnlyElement(new RaptorPlugin().getConnectorFactories()); Map<String, String> config = createRaptorConfig(TPCH_CACHE_DIR); localQueryRunner.createCatalog("raptor", raptorConnectorFactory, config); if (!localQueryRunner.tableExists(session, "orders")) { localQueryRunner.execute("CREATE TABLE orders AS SELECT * FROM tpch.sf1.orders"); } if (!localQueryRunner.tableExists(session, "lineitem")) { localQueryRunner.execute("CREATE TABLE lineitem AS SELECT * FROM tpch.sf1.lineitem"); } return localQueryRunner; }
From source file:com.lyndir.omicron.api.ImmutableResourceCost.java
protected ImmutableResourceCost() { this(ImmutableMap.of()); }
From source file:com.torodb.standalone.config.jackson.BackendSerializer.java
public BackendSerializer() { super(ImmutableMap.of()); }
From source file:org.ulyssis.ipp.snapshot.TeamStates.java
public TeamStates() { teamNbToState = ImmutableMap.of(); }
From source file:com.facebook.presto.hive.TableParameterCodec.java
/** * Encode additional Presto table properties into Hive table parameters. *//*from w w w . j a va2s . com*/ public Map<String, String> encode(Map<String, Object> tableProperties) { return ImmutableMap.of(); }
From source file:com.spotify.styx.state.TimeoutConfig.java
public static TimeoutConfig createWithDefaultTtl(Duration defaultTtl) { return new TimeoutConfig(ImmutableMap.of(), defaultTtl); }
From source file:com.lyndir.omicron.api.MutableResourceCost.java
protected MutableResourceCost() { this(ImmutableMap.of()); }
From source file:com.torodb.standalone.config.jackson.BackendDeserializer.java
public BackendDeserializer() { super(() -> new Backend(), ImmutableMap.of()); }
From source file:io.prestosql.execution.buffer.OutputBuffers.java
public static OutputBuffers createInitialEmptyOutputBuffers(BufferType type) { return new OutputBuffers(type, 0, false, ImmutableMap.of()); }
From source file:com.yfiton.oauth.AuthorizationData.java
public AuthorizationData(String authorizationCode) { this(authorizationCode, ImmutableMap.of()); }