-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathPackageFileRecord.cs
36 lines (28 loc) · 1.38 KB
/
PackageFileRecord.cs
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
// 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.PackageFileToCsv
{
public partial record PackageFileRecord : FileRecord, IAggregatedCsvRecord<PackageFileRecord>
{
public PackageFileRecord()
{
}
public PackageFileRecord(Guid scanId, DateTimeOffset scanTimestamp, PackageDeleteCatalogLeaf leaf) : base(scanId, scanTimestamp, leaf)
{
}
public PackageFileRecord(Guid scanId, DateTimeOffset scanTimestamp, PackageDetailsCatalogLeaf leaf) : base(scanId, scanTimestamp, leaf)
{
}
public static string CsvCompactMessageSchemaName => "cc.pf";
public static IEqualityComparer<PackageFileRecord> KeyComparer { get; } = PackageEntryKeyComparer<PackageFileRecord>.Instance;
public static IReadOnlyList<string> KeyFields { get; } = PackageRecordExtensions.PackageEntryKeyFields;
public static List<PackageFileRecord> Prune(List<PackageFileRecord> records, bool isFinalPrune, IOptions<NuGetInsightsWorkerSettings> options, ILogger logger)
{
return PackageRecordExtensions.Prune(records, isFinalPrune);
}
public int CompareTo(PackageFileRecord other)
{
return base.CompareTo(other);
}
}
}