监测对象与覆盖记录
原能力
登记监测对象、资产范围和资料覆盖,区分未发现、未获取与已核验的信息。(合同附件 R7 2.1)
首选项目
CKAN(AGPL-3.0)。 CKAN
匹配范围
资源目录及按资产汇总覆盖的查询。
源码
CKAN · def package_create(
ckan/logic/action/package.py · 39–52 行。 在 GitHub 查看源码 · 许可证与声明
源码片段
def package_create(context: Context, data_dict: DataDict) -> ActionResult.PackageCreate: # noqa: C901
"""Create a new package.
You must be authorized to create new packages. If you specify any groups
for the new package, you must also be authorized to edit these groups.
Plugins may change the parameters of this function depending on the value
of the ``type`` parameter, see the
:py:class:`~ckan.plugins.interfaces.IDatasetForm` plugin interface.
:param name: the name of the new package, must be between 2 and 100
characters long and contain only lowercase alphanumeric characters,
``-`` and ``_``, e.g. ``'warandpeace'``
:type name: string
DuckDB · SinkResultType PhysicalHashAggregate::Sink(
src/execution/operator/aggregate/physical_hash_aggregate.cpp · 396–409 行。 在 GitHub 查看源码 · 许可证与声明
源码片段
SinkResultType PhysicalHashAggregate::Sink(ExecutionContext &context, DataChunk &chunk,
OperatorSinkInput &input) const {
auto &local_state = input.local_state.Cast<HashAggregateLocalSinkState>();
auto &global_state = input.global_state.Cast<HashAggregateGlobalSinkState>();
if (distinct_collection_info) {
SinkDistinct(context, chunk, input);
}
if (CanSkipRegularSink()) {
return SinkResultType::NEED_MORE_INPUT;
}
DataChunk &aggregate_input_chunk = local_state.aggregate_input_chunk;
实现与验收要点
证据获取状态、授权、生效期与尚未核验分离。