Struct PartitionedDataPointer
- Namespace
- NominalSystems.Classes
- Assembly
- NominalSystems.Classes.dll
[Nominal] This structure defines a simulated pointer for a partition of data. This includes the partition the data is located in, the pointer to within that data and also the number of bytes this data includes.
public struct PartitionedDataPointer
Constructors
PartitionedDataPointer()
The default constructor for a pointer
public PartitionedDataPointer()
Fields
Partition
The partition name to point to in the data within the storage system. This will be the unit name.
public string Partition
Field Value
Pointer
The pointer in the data storage node where the data exists
public int Pointer
Field Value
Size
The number of bytes this pointer refers to inside the data
public int Size
Field Value
Properties
IsValid
This flag indicates if the pointer is a valid reference
public bool IsValid { get; }
Property Value
Methods
Deserialize(JToken?)
Deserializes the JSON object into a data pointer that can be used for the storage system.
public static PartitionedDataPointer Deserialize(JToken? json)
Parameters
json
JTokenThe JSON object to serialize
Returns
- PartitionedDataPointer
The pointer to serialize
Serialize(PartitionedDataPointer)
Serializes the data pointer into a JSON object that can be serialized in the system.
public static JObject Serialize(PartitionedDataPointer ptr)
Parameters
ptr
PartitionedDataPointerThe pointer to serialize
Returns
- JObject
The JSON object to serialize