本文整理了Java中org.apache.druid.guice.annotations.Json
类的一些代码示例,展示了Json
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Json
类的具体详情如下:
包路径:org.apache.druid.guice.annotations.Json
类名称:Json
暂无
代码示例来源:origin: apache/incubator-druid
@Inject
public DefaultTimeseriesQueryMetricsFactory(@Json ObjectMapper jsonMapper)
{
this.jsonMapper = jsonMapper;
}
代码示例来源:origin: apache/incubator-druid
@Inject
public DefaultGroupByQueryMetricsFactory(@Json ObjectMapper jsonMapper)
{
this.jsonMapper = jsonMapper;
}
代码示例来源:origin: apache/incubator-druid
@Inject
public CuratorDruidNodeDiscoveryProvider(
CuratorFramework curatorFramework,
ZkPathsConfig config,
@Json ObjectMapper jsonMapper
)
{
this.curatorFramework = curatorFramework;
this.config = config;
this.jsonMapper = jsonMapper;
}
代码示例来源:origin: apache/incubator-druid
@Inject
public DefaultGenericQueryMetricsFactory(@Json ObjectMapper jsonMapper)
{
this.jsonMapper = jsonMapper;
}
代码示例来源:origin: apache/incubator-druid
@Inject
public CuratorDruidNodeAnnouncer(Announcer announcer, ZkPathsConfig config, @Json ObjectMapper jsonMapper)
{
this.announcer = announcer;
this.config = config;
this.jsonMapper = jsonMapper;
}
代码示例来源:origin: apache/incubator-druid
@Inject
public S3DataSegmentArchiver(
@Json ObjectMapper mapper,
ServerSideEncryptingAmazonS3 s3Client,
S3DataSegmentArchiverConfig archiveConfig,
S3DataSegmentPusherConfig restoreConfig
)
{
super(s3Client, restoreConfig);
this.mapper = mapper;
this.archiveConfig = archiveConfig;
this.restoreConfig = restoreConfig;
}
代码示例来源:origin: apache/incubator-druid
@Inject
public DefaultTopNQueryMetricsFactory(@Json ObjectMapper jsonMapper)
{
this.jsonMapper = jsonMapper;
}
代码示例来源:origin: apache/incubator-druid
@Inject
public SqlResource(
@Json ObjectMapper jsonMapper,
SqlLifecycleFactory sqlLifecycleFactory
)
{
this.jsonMapper = Preconditions.checkNotNull(jsonMapper, "jsonMapper");
this.sqlLifecycleFactory = Preconditions.checkNotNull(sqlLifecycleFactory, "sqlLifecycleFactory");
}
代码示例来源:origin: apache/incubator-druid
@Inject
public MetadataResource(
MetadataSegmentManager metadataSegmentManager,
IndexerMetadataStorageCoordinator metadataStorageCoordinator,
AuthConfig authConfig,
AuthorizerMapper authorizerMapper,
@Json ObjectMapper jsonMapper
)
{
this.metadataSegmentManager = metadataSegmentManager;
this.metadataStorageCoordinator = metadataStorageCoordinator;
this.authConfig = authConfig;
this.authorizerMapper = authorizerMapper;
this.jsonMapper = jsonMapper;
}
代码示例来源:origin: apache/incubator-druid
@Inject
public SQLAuditManagerProvider(
Supplier<MetadataStorageTablesConfig> dbTables,
SQLMetadataConnector connector,
Lifecycle lifecycle,
ServiceEmitter emitter,
@Json ObjectMapper mapper,
SQLAuditManagerConfig config
)
{
this.dbTables = dbTables;
this.connector = connector;
this.lifecycle = lifecycle;
this.emitter = emitter;
this.mapper = mapper;
this.config = config;
}
代码示例来源:origin: apache/incubator-druid
@Inject
public PlannerFactory(
final DruidSchema druidSchema,
final SystemSchema systemSchema,
final QueryLifecycleFactory queryLifecycleFactory,
final DruidOperatorTable operatorTable,
final ExprMacroTable macroTable,
final PlannerConfig plannerConfig,
final AuthorizerMapper authorizerMapper,
final @Json ObjectMapper jsonMapper
)
{
this.druidSchema = druidSchema;
this.systemSchema = systemSchema;
this.queryLifecycleFactory = queryLifecycleFactory;
this.operatorTable = operatorTable;
this.macroTable = macroTable;
this.plannerConfig = plannerConfig;
this.authorizerMapper = authorizerMapper;
this.jsonMapper = jsonMapper;
}
代码示例来源:origin: apache/incubator-druid
@JsonCreator
public GalaxyEC2UserData(
@JacksonInject @Json ObjectMapper jsonMapper,
@JsonProperty("env") String env,
@JsonProperty("version") String version,
@JsonProperty("type") String type
)
{
this.jsonMapper = jsonMapper;
this.env = env;
this.version = version;
this.type = type;
}
代码示例来源:origin: apache/incubator-druid
@Inject
public SegmentListerResource(
@Json ObjectMapper jsonMapper,
@Smile ObjectMapper smileMapper,
@Nullable BatchDataSegmentAnnouncer announcer,
@Nullable SegmentLoadDropHandler loadDropRequestHandler
)
{
this.jsonMapper = jsonMapper;
this.smileMapper = smileMapper;
this.announcer = announcer;
this.loadDropRequestHandler = loadDropRequestHandler;
}
代码示例来源:origin: apache/incubator-druid
public TestRuleManager(
@Json ObjectMapper jsonMapper,
Supplier<TieredBrokerConfig> config
)
{
super(jsonMapper, config, null);
}
代码示例来源:origin: apache/incubator-druid
@Inject
public TaskManagementResource(
@Json ObjectMapper jsonMapper,
@Smile ObjectMapper smileMapper,
WorkerTaskMonitor workerTaskMonitor
)
{
this.jsonMapper = jsonMapper;
this.smileMapper = smileMapper;
this.workerTaskMonitor = workerTaskMonitor;
}
代码示例来源:origin: apache/incubator-druid
@Inject
public KafkaIndexTaskClientFactory(
@EscalatedGlobal HttpClient httpClient,
@Json ObjectMapper mapper
)
{
super(httpClient, mapper);
}
代码示例来源:origin: apache/incubator-druid
@Inject
public KinesisIndexTaskClientFactory(
@EscalatedGlobal HttpClient httpClient,
@Json ObjectMapper mapper
)
{
super(httpClient, mapper);
}
代码示例来源:origin: apache/incubator-druid
public ListenerResource(
final @Json ObjectMapper jsonMapper,
final @Smile ObjectMapper smileMapper,
final ListenerHandler handler
)
{
this.jsonMapper = Preconditions.checkNotNull(jsonMapper, "jsonMapper");
this.smileMapper = Preconditions.checkNotNull(smileMapper, "smileMapper");
this.handler = Preconditions.checkNotNull(handler, "listener handler");
}
代码示例来源:origin: apache/incubator-druid
@Inject
public SeekableStreamIndexTaskClientFactory(
@EscalatedGlobal HttpClient httpClient,
@Json ObjectMapper mapper
)
{
this.httpClient = httpClient;
this.mapper = mapper;
}
代码示例来源:origin: apache/incubator-druid
@Inject
public SQLMetadataSupervisorManager(
@Json ObjectMapper jsonMapper,
SQLMetadataConnector connector,
Supplier<MetadataStorageTablesConfig> dbTables
)
{
this.jsonMapper = jsonMapper;
this.connector = connector;
this.dbTables = dbTables;
this.dbi = connector.getDBI();
}
内容来源于网络,如有侵权,请联系作者删除!