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


Java JacksonInject类代码示例

本文整理汇总了Java中com.fasterxml.jackson.annotation.JacksonInject的典型用法代码示例。如果您正苦于以下问题:Java JacksonInject类的具体用法?Java JacksonInject怎么用?Java JacksonInject使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


JacksonInject类属于com.fasterxml.jackson.annotation包,在下文中一共展示了JacksonInject类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: EasySubScan

import com.fasterxml.jackson.annotation.JacksonInject; //导入依赖的package包/类
@JsonCreator
public EasySubScan(
    @JsonProperty("userName") String userName,
    @JsonProperty("files") List<FileWorkImpl> files, //
    @JsonProperty("storage") StoragePluginConfig storageConfig, //
    @JsonProperty("format") FormatPluginConfig formatConfig, //
    @JacksonInject StoragePluginRegistry engineRegistry, //
    @JsonProperty("columns") List<SchemaPath> columns, //
    @JsonProperty("selectionRoot") String selectionRoot
    ) throws IOException, ExecutionSetupException {
  super(userName);
  this.formatPlugin = (EasyFormatPlugin<?>) engineRegistry.getFormatPlugin(storageConfig, formatConfig);
  Preconditions.checkNotNull(this.formatPlugin);
  this.files = files;
  this.columns = columns;
  this.selectionRoot = selectionRoot;
}
 
开发者ID:skhalifa,项目名称:QDrill,代码行数:18,代码来源:EasySubScan.java

示例2: EasyGroupScan

import com.fasterxml.jackson.annotation.JacksonInject; //导入依赖的package包/类
@JsonCreator
public EasyGroupScan(
    @JsonProperty("userName") String userName,
    @JsonProperty("files") List<String> files, //
    @JsonProperty("storage") StoragePluginConfig storageConfig, //
    @JsonProperty("format") FormatPluginConfig formatConfig, //
    @JacksonInject StoragePluginRegistry engineRegistry, //
    @JsonProperty("columns") List<SchemaPath> columns,
    @JsonProperty("selectionRoot") String selectionRoot
    ) throws IOException, ExecutionSetupException {
      this(ImpersonationUtil.resolveUserName(userName),
          new FileSelection(files, true),
          (EasyFormatPlugin<?>)engineRegistry.getFormatPlugin(storageConfig, formatConfig),
          columns,
          selectionRoot);
}
 
开发者ID:skhalifa,项目名称:QDrill,代码行数:17,代码来源:EasyGroupScan.java

示例3: ParquetGroupScan

import com.fasterxml.jackson.annotation.JacksonInject; //导入依赖的package包/类
@JsonCreator
public ParquetGroupScan( //
    @JsonProperty("userName") String userName,
    @JsonProperty("entries") List<ReadEntryWithPath> entries, //
    @JsonProperty("storage") StoragePluginConfig storageConfig, //
    @JsonProperty("format") FormatPluginConfig formatConfig, //
    @JacksonInject StoragePluginRegistry engineRegistry, //
    @JsonProperty("columns") List<SchemaPath> columns, //
    @JsonProperty("selectionRoot") String selectionRoot //
    ) throws IOException, ExecutionSetupException {
  super(ImpersonationUtil.resolveUserName(userName));
  this.columns = columns;
  if (formatConfig == null) {
    formatConfig = new ParquetFormatConfig();
  }
  Preconditions.checkNotNull(storageConfig);
  Preconditions.checkNotNull(formatConfig);
  this.formatPlugin = (ParquetFormatPlugin) engineRegistry.getFormatPlugin(storageConfig, formatConfig);
  Preconditions.checkNotNull(formatPlugin);
  this.fs = ImpersonationUtil.createFileSystem(getUserName(), formatPlugin.getFsConf());
  this.formatConfig = formatPlugin.getConfig();
  this.entries = entries;
  this.selectionRoot = selectionRoot;

  init();
}
 
开发者ID:skhalifa,项目名称:QDrill,代码行数:27,代码来源:ParquetGroupScan.java

示例4: EasyWriter

import com.fasterxml.jackson.annotation.JacksonInject; //导入依赖的package包/类
@JsonCreator
public EasyWriter(
    @JsonProperty("child") PhysicalOperator child,
    @JsonProperty("userName") String userName,
    @JsonProperty("location") String location,
    @JsonProperty("options") WriterOptions options,
    @JsonProperty("sortColumns") List<String> sortColumns,
    @JsonProperty("storage") StoragePluginConfig storageConfig,
    @JsonProperty("format") FormatPluginConfig formatConfig,
    @JacksonInject StoragePluginRegistry engineRegistry) throws IOException, ExecutionSetupException {

  super(child, userName, options);
  this.plugin = (FileSystemPlugin) engineRegistry.getPlugin(storageConfig);
  this.formatPlugin = (EasyFormatPlugin<?>) engineRegistry.getFormatPlugin(storageConfig, formatConfig);
  Preconditions.checkNotNull(formatPlugin, "Unable to load format plugin for provided format config.");
  this.location = location;
}
 
开发者ID:dremio,项目名称:dremio-oss,代码行数:18,代码来源:EasyWriter.java

示例5: EasyWriter

import com.fasterxml.jackson.annotation.JacksonInject; //导入依赖的package包/类
@JsonCreator
public EasyWriter(
    @JsonProperty("child") PhysicalOperator child,
    @JsonProperty("location") String location,
    @JsonProperty("partitionColumns") List<String> partitionColumns,
    @JsonProperty("storageStrategy") StorageStrategy storageStrategy,
    @JsonProperty("storage") StoragePluginConfig storageConfig,
    @JsonProperty("format") FormatPluginConfig formatConfig,
    @JacksonInject StoragePluginRegistry engineRegistry) throws IOException, ExecutionSetupException {

  super(child);
  this.formatPlugin = (EasyFormatPlugin<?>) engineRegistry.getFormatPlugin(storageConfig, formatConfig);
  Preconditions.checkNotNull(formatPlugin, "Unable to load format plugin for provided format config.");
  this.location = location;
  this.partitionColumns = partitionColumns;
  setStorageStrategy(storageStrategy);
}
 
开发者ID:axbaretto,项目名称:drill,代码行数:18,代码来源:EasyWriter.java

示例6: EasyGroupScan

import com.fasterxml.jackson.annotation.JacksonInject; //导入依赖的package包/类
@JsonCreator
public EasyGroupScan(
    @JsonProperty("userName") String userName,
    @JsonProperty("files") List<String> files, //
    @JsonProperty("storage") StoragePluginConfig storageConfig, //
    @JsonProperty("format") FormatPluginConfig formatConfig, //
    @JacksonInject StoragePluginRegistry engineRegistry, //
    @JsonProperty("columns") List<SchemaPath> columns,
    @JsonProperty("selectionRoot") String selectionRoot
    ) throws IOException, ExecutionSetupException {
      this(ImpersonationUtil.resolveUserName(userName),
          FileSelection.create(null, files, selectionRoot),
          (EasyFormatPlugin<?>)engineRegistry.getFormatPlugin(storageConfig, formatConfig),
          columns,
          selectionRoot);
}
 
开发者ID:axbaretto,项目名称:drill,代码行数:17,代码来源:EasyGroupScan.java

示例7: ParquetRowGroupScan

import com.fasterxml.jackson.annotation.JacksonInject; //导入依赖的package包/类
@JsonCreator
public ParquetRowGroupScan( //
    @JacksonInject StoragePluginRegistry registry, //
    @JsonProperty("userName") String userName, //
    @JsonProperty("storage") StoragePluginConfig storageConfig, //
    @JsonProperty("format") FormatPluginConfig formatConfig, //
    @JsonProperty("entries") LinkedList<RowGroupReadEntry> rowGroupReadEntries, //
    @JsonProperty("columns") List<SchemaPath> columns, //
    @JsonProperty("selectionRoot") String selectionRoot, //
    @JsonProperty("filter") LogicalExpression filter
) throws ExecutionSetupException {
  this(userName,
      (ParquetFormatPlugin) registry.getFormatPlugin(Preconditions.checkNotNull(storageConfig), Preconditions.checkNotNull(formatConfig)),
      rowGroupReadEntries,
      columns,
      selectionRoot,
      filter);
}
 
开发者ID:axbaretto,项目名称:drill,代码行数:19,代码来源:ParquetRowGroupScan.java

示例8: ParquetWriter

import com.fasterxml.jackson.annotation.JacksonInject; //导入依赖的package包/类
@JsonCreator
public ParquetWriter(
        @JsonProperty("child") PhysicalOperator child,
        @JsonProperty("location") String location,
        @JsonProperty("partitionColumns") List<String> partitionColumns,
        @JsonProperty("storageStrategy") StorageStrategy storageStrategy,
        @JsonProperty("storage") StoragePluginConfig storageConfig,
        @JacksonInject StoragePluginRegistry engineRegistry) throws IOException, ExecutionSetupException {

  super(child);
  this.formatPlugin = (ParquetFormatPlugin) engineRegistry.getFormatPlugin(storageConfig, new ParquetFormatConfig());
  Preconditions.checkNotNull(formatPlugin, "Unable to load format plugin for provided format config.");
  this.location = location;
  this.partitionColumns = partitionColumns;
  setStorageStrategy(storageStrategy);
}
 
开发者ID:axbaretto,项目名称:drill,代码行数:17,代码来源:ParquetWriter.java

示例9: findInjectableValueId

import com.fasterxml.jackson.annotation.JacksonInject; //导入依赖的package包/类
public Object findInjectableValueId(AnnotatedMember paramAnnotatedMember)
{
  JacksonInject localJacksonInject = (JacksonInject)paramAnnotatedMember.getAnnotation(JacksonInject.class);
  if (localJacksonInject == null)
    return null;
  String str = localJacksonInject.value();
  if (str.length() == 0)
  {
    if (!(paramAnnotatedMember instanceof AnnotatedMethod))
      return paramAnnotatedMember.getRawType().getName();
    AnnotatedMethod localAnnotatedMethod = (AnnotatedMethod)paramAnnotatedMember;
    if (localAnnotatedMethod.getParameterCount() == 0)
      return paramAnnotatedMember.getRawType().getName();
    return localAnnotatedMethod.getRawParameterType(0).getName();
  }
  return str;
}
 
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:18,代码来源:JacksonAnnotationIntrospector.java

示例10: DefaultMemcachedBucketConfig

import com.fasterxml.jackson.annotation.JacksonInject; //导入依赖的package包/类
/**
 * Creates a new {@link MemcachedBucketConfig}.
 *
 * @param env the bootstrap part of environment object.
 * @param rev the revision of the config.
 * @param name the name of the bucket.
 * @param uri the URI for this bucket.
 * @param streamingUri the streaming URI for this bucket.
 * @param nodeInfos related node information.
 * @param portInfos port info for the nodes, including services.
 */
@JsonCreator
public DefaultMemcachedBucketConfig(
        @JacksonInject("env")ConfigParserEnvironment env,
        @JsonProperty("rev") long rev,
        @JsonProperty("name") String name,
        @JsonProperty("uri") String uri,
        @JsonProperty("streamingUri") String streamingUri,
        @JsonProperty("nodes") List<NodeInfo> nodeInfos,
        @JsonProperty("nodesExt") List<PortInfo> portInfos,
        @JsonProperty("bucketCapabilities") List<BucketCapabilities> bucketCapabilities) {
    super(name, BucketNodeLocator.KETAMA, uri, streamingUri, nodeInfos, portInfos, bucketCapabilities);
    this.env = env;
    this.rev = rev;
    this.ketamaNodes = new TreeMap<Long, NodeInfo>();
    populateKetamaNodes();
}
 
开发者ID:couchbase,项目名称:couchbase-jvm-core,代码行数:28,代码来源:DefaultMemcachedBucketConfig.java

示例11: KafkaConsumer

import com.fasterxml.jackson.annotation.JacksonInject; //导入依赖的package包/类
@JsonCreator
public KafkaConsumer(
        @JsonProperty("consumerProps") Properties consumerProps,
        @JsonProperty("topic") String topic,
        @JsonProperty("readers") int readers,
        @JacksonInject MessageRouter router,
        @JacksonInject ObjectMapper jsonMapper
) {
    Preconditions.checkNotNull(consumerProps);
    Preconditions.checkNotNull(topic);
    Preconditions.checkNotNull(consumerProps.getProperty("group.id"));
    Preconditions.checkNotNull(consumerProps.getProperty("zookeeper.connect"));
    String timeoutStr = consumerProps.getProperty("consumer.timeout.ms");
    Preconditions.checkNotNull(timeoutStr);
    Preconditions.checkArgument(Long.parseLong(timeoutStr) > 0);

    this.consumerProps = consumerProps;
    this.topic = topic;
    this.readers = readers == 0 ? 1 : readers;
    this.router = router;
    this.jsonMapper = jsonMapper;
}
 
开发者ID:Netflix,项目名称:suro,代码行数:23,代码来源:KafkaConsumer.java

示例12: FileSystemCreateTableEntry

import com.fasterxml.jackson.annotation.JacksonInject; //导入依赖的package包/类
@JsonCreator
public FileSystemCreateTableEntry(@JsonProperty("storageConfig") FileSystemConfig storageConfig,
                                  @JsonProperty("formatConfig") FormatPluginConfig formatConfig,
                                  @JsonProperty("location") String location,
                                  @JsonProperty("partitionColumn") List<String> partitionColumns,
                                  @JacksonInject StoragePluginRegistry engineRegistry)
    throws ExecutionSetupException {
  this.storageConfig = storageConfig;
  this.formatPlugin = engineRegistry.getFormatPlugin(storageConfig, formatConfig);
  this.location = location;
  this.partitionColumns = partitionColumns;
}
 
开发者ID:skhalifa,项目名称:QDrill,代码行数:13,代码来源:FileSystemCreateTableEntry.java

示例13: FileSystemTrainModelEntry

import com.fasterxml.jackson.annotation.JacksonInject; //导入依赖的package包/类
@JsonCreator
public FileSystemTrainModelEntry(@JsonProperty("storageConfig") FileSystemConfig storageConfig,
                                  @JsonProperty("formatConfig") FormatPluginConfig formatConfig,
                                  @JsonProperty("location") String location,
                                  @JsonProperty("partitionColumn") List<String> partitionColumns,
                                  @JacksonInject StoragePluginRegistry engineRegistry)
    throws ExecutionSetupException {
  this.storageConfig = storageConfig;
  this.formatPlugin = engineRegistry.getFormatPlugin(storageConfig, formatConfig);
  this.location = location;
  this.partitionColumns = partitionColumns;
}
 
开发者ID:skhalifa,项目名称:QDrill,代码行数:13,代码来源:FileSystemTrainModelEntry.java

示例14: SystemTableScan

import com.fasterxml.jackson.annotation.JacksonInject; //导入依赖的package包/类
@JsonCreator
public SystemTableScan( //
    @JsonProperty("table") SystemTable table, //
    @JacksonInject StoragePluginRegistry engineRegistry //
) throws IOException, ExecutionSetupException {
  super((String)null);
  this.table = table;
  this.plugin = (SystemTablePlugin) engineRegistry.getPlugin(SystemTablePluginConfig.INSTANCE);
}
 
开发者ID:skhalifa,项目名称:QDrill,代码行数:10,代码来源:SystemTableScan.java

示例15: EasyWriter

import com.fasterxml.jackson.annotation.JacksonInject; //导入依赖的package包/类
@JsonCreator
public EasyWriter(
    @JsonProperty("child") PhysicalOperator child,
    @JsonProperty("location") String location,
    @JsonProperty("partitionColumns") List<String> partitionColumns,
    @JsonProperty("storage") StoragePluginConfig storageConfig,
    @JsonProperty("format") FormatPluginConfig formatConfig,
    @JacksonInject StoragePluginRegistry engineRegistry) throws IOException, ExecutionSetupException {

  super(child);
  this.formatPlugin = (EasyFormatPlugin<?>) engineRegistry.getFormatPlugin(storageConfig, formatConfig);
  Preconditions.checkNotNull(formatPlugin, "Unable to load format plugin for provided format config.");
  this.location = location;
  this.partitionColumns = partitionColumns;
}
 
开发者ID:skhalifa,项目名称:QDrill,代码行数:16,代码来源:EasyWriter.java


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