This repository was archived by the owner on Mar 31, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathPackageArchiveRecord.cs
More file actions
39 lines (31 loc) · 1.45 KB
/
PackageArchiveRecord.cs
File metadata and controls
39 lines (31 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace NuGet.Insights.Worker.PackageArchiveToCsv
{
[CsvRecord]
public partial record PackageArchiveRecord : ArchiveRecord, IAggregatedCsvRecord<PackageArchiveRecord>
{
public PackageArchiveRecord()
{
}
public PackageArchiveRecord(Guid scanId, DateTimeOffset scanTimestamp, PackageDeleteCatalogLeaf leaf)
: base(scanId, scanTimestamp, leaf)
{
}
public PackageArchiveRecord(Guid scanId, DateTimeOffset scanTimestamp, PackageDetailsCatalogLeaf leaf)
: base(scanId, scanTimestamp, leaf)
{
}
public static string CsvCompactMessageSchemaName => "cc.pa";
public static IEqualityComparer<PackageArchiveRecord> KeyComparer { get; } = PackageRecordIdentityComparer<PackageArchiveRecord>.Instance;
public static IReadOnlyList<string> KeyFields { get; } = PackageRecordExtensions.IdentityKeyField;
public static List<PackageArchiveRecord> Prune(List<PackageArchiveRecord> records, bool isFinalPrune, IOptions<NuGetInsightsWorkerSettings> options, ILogger logger)
{
return PackageRecordExtensions.Prune(records, isFinalPrune);
}
public int CompareTo(PackageArchiveRecord other)
{
return base.CompareTo(other);
}
}
}