-
Notifications
You must be signed in to change notification settings - Fork 83
Expand file tree
/
Copy pathTokenReferences.cs
More file actions
46 lines (40 loc) · 1.13 KB
/
TokenReferences.cs
File metadata and controls
46 lines (40 loc) · 1.13 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
40
41
42
43
44
45
46
using System;
using Waher.Persistence.Attributes;
namespace Waher.Persistence.FullTextSearch
{
/// <summary>
/// Contains a sequence of object references that include the token
/// in its indexed text properties.
/// </summary>
[TypeName(TypeNameSerialization.FullName)]
public class TokenReferences
{
/// <summary>
/// Maximum amount of references in a block (100).
/// </summary>
public const int MaxReferences= 100;
/// <summary>
/// Contains a sequence of object references that include the token
/// in its indexed text properties.
/// </summary>
public TokenReferences()
{
}
/// <summary>
/// Index to last block in index representing the same token.
/// </summary>
public uint LastBlock { get; set; }
/// <summary>
/// References to objects containing the token.
/// </summary>
public ulong[] ObjectReferences { get; set; }
/// <summary>
/// Token counts for respective object reference.
/// </summary>
public uint[] Counts { get; set; }
/// <summary>
/// Timestamps when corresponding object refernces were indexed.
/// </summary>
public DateTime[] Timestamps { get; set; }
}
}