本文整理汇总了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;
}
示例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);
}
示例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();
}
示例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;
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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;
}
示例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();
}
示例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;
}
示例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;
}
示例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;
}
示例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);
}
示例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;
}