public interface Compatible
Allows to use advanced functionality if the latest JDK or Guava version is present.
| Modifier and Type | Interface and Description |
|---|---|
static class |
Compatible.Factory
Creates the implementation of Compatible suitable for the
current environment.
|
| Modifier and Type | Field and Description |
|---|---|
static Compatible |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
<K,V> Map<K,V> |
asMap(Set<K> set,
com.google.common.base.Function<? super K,V> function)
Same as Guava
Maps.asMap(set, function). |
<K,V> NavigableMap<K,V> |
immutableNavigableMap(NavigableMap<K,V> map)
Converts a
Map to a NavigableMap that is
immutable. |
<K,V> NavigableMap<K,V> |
navigableMap(com.google.common.collect.ImmutableSortedMap<K,V> map)
Converts a
ImmutableSortedMap to a
NavigableMap. |
<E> NavigableSet<E> |
navigableSet(com.google.common.collect.ImmutableSortedSet<E> set)
Converts a
ImmutableSortedSet to a
NavigableSet. |
void |
setSchema(Connection connection,
String schema)
Deprecated.
|
static final Compatible INSTANCE
<K,V> Map<K,V> asMap(Set<K> set, com.google.common.base.Function<? super K,V> function)
Maps.asMap(set, function).<E> NavigableSet<E> navigableSet(com.google.common.collect.ImmutableSortedSet<E> set)
ImmutableSortedSet to a
NavigableSet.<K,V> NavigableMap<K,V> navigableMap(com.google.common.collect.ImmutableSortedMap<K,V> map)
ImmutableSortedMap to a
NavigableMap.<K,V> NavigableMap<K,V> immutableNavigableMap(NavigableMap<K,V> map)
Map to a NavigableMap that is
immutable.@Deprecated void setSchema(Connection connection, String schema)
Connection.setSchema(String).
This method is available in JDK 1.7 and above, and in
CalciteConnection in all JDK versions.
Copyright © 2012–2015 The Apache Software Foundation. All rights reserved.