当前位置: 首页>>代码示例>>Java>>正文


Java Default.InstanceFactory方法代码示例

本文整理汇总了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();
 
开发者ID:apache,项目名称:beam,代码行数:15,代码来源:GcsOptions.java

示例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();
 
开发者ID:apache,项目名称:beam,代码行数:12,代码来源:GcpOptions.java

示例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();
 
开发者ID:apache,项目名称:beam,代码行数:10,代码来源:HadoopFileSystemOptions.java

示例4: getOutput

import org.apache.beam.sdk.options.Default; //导入方法依赖的package包/类
@Description("Path of the file to write to")
@Default.InstanceFactory(OutputFactory.class)
String getOutput();
 
开发者ID:apache,项目名称:beam,代码行数:4,代码来源:DistinctExample.java

示例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();
 
开发者ID:apache,项目名称:beam,代码行数:4,代码来源:WindowedWordCount.java

示例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();
 
开发者ID:apache,项目名称:beam,代码行数:7,代码来源:DataflowPipelineOptions.java

示例7: getPubsubTopic

import org.apache.beam.sdk.options.Default; //导入方法依赖的package包/类
@Description("Pub/Sub topic")
@Default.InstanceFactory(PubsubTopicFactory.class)
String getPubsubTopic();
 
开发者ID:apache,项目名称:beam,代码行数:4,代码来源:ExamplePubsubTopicOptions.java

示例8: getBigQueryTable

import org.apache.beam.sdk.options.Default; //导入方法依赖的package包/类
@Description("BigQuery table name")
@Default.InstanceFactory(BigQueryTableFactory.class)
String getBigQueryTable();
 
开发者ID:apache,项目名称:beam,代码行数:4,代码来源:ExampleBigQueryTableOptions.java

示例9: getPubsubSubscription

import org.apache.beam.sdk.options.Default; //导入方法依赖的package包/类
@Description("Pub/Sub subscription")
@Default.InstanceFactory(PubsubSubscriptionFactory.class)
String getPubsubSubscription();
 
开发者ID:apache,项目名称:beam,代码行数:4,代码来源:ExamplePubsubTopicAndSubscriptionOptions.java

示例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();
 
开发者ID:apache,项目名称:beam,代码行数:10,代码来源:DataflowPipelineDebugOptions.java

示例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();
 
开发者ID:apache,项目名称:beam,代码行数:8,代码来源:GcpOptions.java

示例12: getOnCreateMatcher

import org.apache.beam.sdk.options.Default; //导入方法依赖的package包/类
@Default.InstanceFactory(AlwaysPassMatcherFactory.class)
@JsonIgnore
SerializableMatcher<PipelineResult> getOnCreateMatcher();
 
开发者ID:apache,项目名称:beam,代码行数:4,代码来源:TestPipelineOptions.java

示例13: getOnSuccessMatcher

import org.apache.beam.sdk.options.Default; //导入方法依赖的package包/类
@Default.InstanceFactory(AlwaysPassMatcherFactory.class)
@JsonIgnore
SerializableMatcher<PipelineResult> getOnSuccessMatcher();
 
开发者ID:apache,项目名称:beam,代码行数:4,代码来源:TestPipelineOptions.java

示例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();
 
开发者ID:apache,项目名称:beam,代码行数:5,代码来源:TestSparkPipelineOptions.java

示例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();
 
开发者ID:apache,项目名称:beam,代码行数:5,代码来源:SparkPipelineOptions.java


注:本文中的org.apache.beam.sdk.options.Default.InstanceFactory方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。