Class StoragePlugins
java.lang.Object
org.apache.drill.exec.planner.logical.StoragePlugins
- All Implemented Interfaces:
Iterable<Map.Entry<String,
StoragePluginConfig>>
public class StoragePlugins
extends Object
implements Iterable<Map.Entry<String,StoragePluginConfig>>
Map of storage plugin *configurations* indexed by name.
Does not hold the storage plugin *connector* itself.
This class is serialized to JSON and represents the set of storage plugin configurations visible to Drill.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Return storage plugin config for certain plugin nameint
hashCode()
boolean
isEmpty()
iterator()
void
put
(String name, StoragePluginConfig config) Put one plugin into current storage plugins mapvoid
putAll
(StoragePlugins plugins) Put other storage plugins into current storage plugins mapputIfAbsent
(String name, StoragePluginConfig config) Put one plugin into current storage plugins map, if it was absenttoString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
StoragePlugins
-
StoragePlugins
public StoragePlugins()
-
-
Method Details
-
getStorage
-
toString
-
iterator
- Specified by:
iterator
in interfaceIterable<Map.Entry<String,
StoragePluginConfig>>
-
equals
-
hashCode
public int hashCode() -
put
Put one plugin into current storage plugins map- Parameters:
name
- storage plugin nameconfig
- storage plugin config
-
putAll
Put other storage plugins into current storage plugins map- Parameters:
plugins
- storage plugins
-
putIfAbsent
Put one plugin into current storage plugins map, if it was absent- Parameters:
name
- storage plugin nameconfig
- storage plugin config- Returns:
- the previous storage plugin config, null if it was absent or it had null value
-
getConfig
Return storage plugin config for certain plugin name- Parameters:
pluginName
- storage plugin name- Returns:
- storage plugin config
-
isEmpty
public boolean isEmpty()
-