public class Exec extends Object
Some methods, getInjector, getModelManager, and newPlugin have been removed since v0.10.18.
If access to the removed methods is really needed, a plugin can technically call them via ExecInternal
in embulk-core. It is the quickest way to catch-up with the latest Embulk v0.10. But once doing it, the plugin won't
work with Embulk v0.9. To keep your plugin work for both, find another way to realize what you want.
Keeping on calling ExecInternal is strongly discouraged although it can be a short-term solution as shown above.
Embulk does not guarantee any compatibility in embulk-core with plugins. The plugin may easily stop working at some
point of Embulk versions. Do it at your own risk.
| Modifier and Type | Method and Description |
|---|---|
static BufferAllocator |
getBufferAllocator()
Returns the
BufferAllocator instance. |
static Logger |
getLogger(Class<?> clazz)
Deprecated.
Call
LoggerFactory.getLogger(Class) directly, instead. |
static Logger |
getLogger(String name)
Deprecated.
Call
LoggerFactory.getLogger(String) directly, instead. |
static PageBuilder |
getPageBuilder(BufferAllocator allocator,
Schema schema,
PageOutput output)
Returns a
PageBuilder instance created for the parameters. |
static PageReader |
getPageReader(Schema schema)
Returns a
PageReader instance created for the parameter. |
static TempFileSpace |
getTempFileSpace()
Returns a space for temporary files, a
TempFileSpace instance corresponding to the registered
ExecSession. |
static Timestamp |
getTransactionTime()
Deprecated.
Timestamp is deprecated. |
static Instant |
getTransactionTimeInstant()
Returns the transaction time in
Instant. |
static boolean |
isPreview()
Returns
true if the execution is in a preview mode. |
static ConfigDiff |
newConfigDiff()
Deprecated.
Recommended to start using
embulk-util-config from plugins. Use its own newConfigDiff. |
static ConfigSource |
newConfigSource()
Deprecated.
Recommended to start using
embulk-util-config from plugins. Use its own newConfigSource. |
static TaskReport |
newTaskReport()
Deprecated.
Recommended to start using
embulk-util-config from plugins. Use its own newTaskReport. |
static TaskSource |
newTaskSource()
Deprecated.
Recommended to start using
embulk-util-config from plugins. Use its own newTaskSource. |
static ExecSession |
session()
Deprecated.
Plugins are discouraged from getting the
ExecSession instance. |
@Deprecated public static ExecSession session()
ExecSession instance.ExecSession instance.@Deprecated public static Timestamp getTransactionTime()
Timestamp is deprecated.Timestamp.public static Instant getTransactionTimeInstant()
Instant.@Deprecated public static Logger getLogger(String name)
LoggerFactory.getLogger(String) directly, instead.Logger instance named according to the name parameter.@Deprecated public static Logger getLogger(Class<?> clazz)
LoggerFactory.getLogger(Class) directly, instead.Logger instance named corresponding to the class passed as parameter.public static BufferAllocator getBufferAllocator()
BufferAllocator instance.public static PageBuilder getPageBuilder(BufferAllocator allocator, Schema schema, PageOutput output)
PageBuilder instance created for the parameters.public static PageReader getPageReader(Schema schema)
PageReader instance created for the parameter.@Deprecated public static TaskReport newTaskReport()
embulk-util-config from plugins. Use its own newTaskReport.TaskReport instance.@Deprecated public static ConfigDiff newConfigDiff()
embulk-util-config from plugins. Use its own newConfigDiff.ConfigDiff instance.@Deprecated public static ConfigSource newConfigSource()
embulk-util-config from plugins. Use its own newConfigSource.ConfigSource instance.@Deprecated public static TaskSource newTaskSource()
embulk-util-config from plugins. Use its own newTaskSource.TaskSource instance.public static TempFileSpace getTempFileSpace()
TempFileSpace instance corresponding to the registered
ExecSession.public static boolean isPreview()
true if the execution is in a preview mode.