本文整理汇总了Java中org.apache.beam.sdk.options.Default.InstanceFactory方法的典型用法代码示例。如果您正苦于以下问题:Java Default.InstanceFactory方法的具体用法?Java Default.InstanceFactory怎么用?Java Default.InstanceFactory使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.beam.sdk.options.Default
的用法示例。
在下文中一共展示了Default.InstanceFactory方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getExecutorService
import org.apache.beam.sdk.options.Default; //导入方法依赖的package包/类
/**
* The ExecutorService instance to use to create threads, can be overridden to specify an
* ExecutorService that is compatible with the users environment. If unset, the
* default is to create an ExecutorService with an unbounded number of threads; this
* is compatible with Google AppEngine.
*/
@JsonIgnore
@Description("The ExecutorService instance to use to create multiple threads. Can be overridden "
+ "to specify an ExecutorService that is compatible with the users environment. If unset, "
+ "the default is to create an ExecutorService with an unbounded number of threads; this "
+ "is compatible with Google AppEngine.")
@Default.InstanceFactory(ExecutorServiceFactory.class)
@Hidden
ExecutorService getExecutorService();
示例2: getGcpCredential
import org.apache.beam.sdk.options.Default; //导入方法依赖的package包/类
/**
* The credential instance that should be used to authenticate against GCP services.
* If no credential has been set explicitly, the default is to use the instance factory
* that constructs a credential based upon the currently set credentialFactoryClass.
*/
@JsonIgnore
@Description("The credential instance that should be used to authenticate against GCP services. "
+ "If no credential has been set explicitly, the default is to use the instance factory "
+ "that constructs a credential based upon the currently set credentialFactoryClass.")
@Default.InstanceFactory(GcpUserCredentialsFactory.class)
Credentials getGcpCredential();
示例3: getHdfsConfiguration
import org.apache.beam.sdk.options.Default; //导入方法依赖的package包/类
@Description("A list of Hadoop configurations used to configure zero or more Hadoop filesystems. "
+ "By default, Hadoop configuration is loaded from 'core-site.xml' and 'hdfs-site.xml' "
+ "based upon the HADOOP_CONF_DIR and YARN_CONF_DIR environment variables. "
+ "To specify configuration on the command-line, represent the value as a JSON list of JSON "
+ "maps, where each map represents the entire configuration for a single Hadoop filesystem. "
+ "For example --hdfsConfiguration='[{\"fs.default.name\": \"hdfs://localhost:9998\", ...},"
+ "{\"fs.default.name\": \"s3a://\", ...},...]'")
@Default.InstanceFactory(ConfigurationLocator.class)
List<Configuration> getHdfsConfiguration();
示例4: getOutput
import org.apache.beam.sdk.options.Default; //导入方法依赖的package包/类
@Description("Path of the file to write to")
@Default.InstanceFactory(OutputFactory.class)
String getOutput();
示例5: getMinTimestampMillis
import org.apache.beam.sdk.options.Default; //导入方法依赖的package包/类
@Description("Minimum randomly assigned timestamp, in milliseconds-since-epoch")
@Default.InstanceFactory(DefaultToCurrentSystemTime.class)
Long getMinTimestampMillis();
示例6: getProject
import org.apache.beam.sdk.options.Default; //导入方法依赖的package包/类
@Description("Project id. Required when running a Dataflow in the cloud. "
+ "See https://cloud.google.com/storage/docs/projects for further details.")
@Override
@Validation.Required
@Default.InstanceFactory(DefaultProjectFactory.class)
String getProject();
示例7: getPubsubTopic
import org.apache.beam.sdk.options.Default; //导入方法依赖的package包/类
@Description("Pub/Sub topic")
@Default.InstanceFactory(PubsubTopicFactory.class)
String getPubsubTopic();
示例8: getBigQueryTable
import org.apache.beam.sdk.options.Default; //导入方法依赖的package包/类
@Description("BigQuery table name")
@Default.InstanceFactory(BigQueryTableFactory.class)
String getBigQueryTable();
示例9: getPubsubSubscription
import org.apache.beam.sdk.options.Default; //导入方法依赖的package包/类
@Description("Pub/Sub subscription")
@Default.InstanceFactory(PubsubSubscriptionFactory.class)
String getPubsubSubscription();
示例10: getDataflowClient
import org.apache.beam.sdk.options.Default; //导入方法依赖的package包/类
/**
* An instance of the Dataflow client. Defaults to creating a Dataflow client
* using the current set of options.
*/
@JsonIgnore
@Description("An instance of the Dataflow client. Defaults to creating a Dataflow client "
+ "using the current set of options.")
@Default.InstanceFactory(DataflowClientFactory.class)
Dataflow getDataflowClient();
示例11: getProject
import org.apache.beam.sdk.options.Default; //导入方法依赖的package包/类
/**
* Project id to use when launching jobs.
*/
@Description("Project id. Required when using Google Cloud Platform services. "
+ "See https://cloud.google.com/storage/docs/projects for further details.")
@Default.InstanceFactory(DefaultProjectFactory.class)
String getProject();
示例12: getOnCreateMatcher
import org.apache.beam.sdk.options.Default; //导入方法依赖的package包/类
@Default.InstanceFactory(AlwaysPassMatcherFactory.class)
@JsonIgnore
SerializableMatcher<PipelineResult> getOnCreateMatcher();
示例13: getOnSuccessMatcher
import org.apache.beam.sdk.options.Default; //导入方法依赖的package包/类
@Default.InstanceFactory(AlwaysPassMatcherFactory.class)
@JsonIgnore
SerializableMatcher<PipelineResult> getOnSuccessMatcher();
示例14: watermark
import org.apache.beam.sdk.options.Default; //导入方法依赖的package包/类
@Description("A watermark (time in millis) that causes a pipeline that reads "
+ "from an unbounded source to stop.")
@Default.InstanceFactory(DefaultStopPipelineWatermarkFactory.class)
Long getStopPipelineWatermark();
示例15: getCheckpointDir
import org.apache.beam.sdk.options.Default; //导入方法依赖的package包/类
@Description("A checkpoint directory for streaming resilience, ignored in batch. "
+ "For durability, a reliable filesystem such as HDFS/S3/GS is necessary.")
@Default.InstanceFactory(TmpCheckpointDirFactory.class)
String getCheckpointDir();