record TgoBsonTimestamp

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TgoBsonTimestamp = record

Description

A BSON Timestamp. Mostly used internally for MongoDB replication and sharding.

Overview

Methods

class function Create(const ATimestamp, AIncrement: Integer): TgoBsonTimestamp; overload; static;
class function Create(const AValue: Int64): TgoBsonTimestamp; overload; static;
class operator Implicit(const A: TgoBsonTimestamp): TgoBsonValue; static;
class operator Equal(const A, B: TgoBsonTimestamp): Boolean; static;
class operator NotEqual(const A, B: TgoBsonTimestamp): Boolean; static;
function IsNil: Boolean; inline;
procedure SetNil; inline;
function Clone: TgoBsonTimestamp; inline;
function DeepClone: TgoBsonTimestamp; inline;
function ToBson: TBytes; inline;
function ToJson: String; overload; inline;
function ToJson(const ASettings: TgoJsonWriterSettings): String; overload; inline;

Properties

property Timestamp: Integer read GetTimestamp;
property Increment: Integer read GetIncrement;
property Value: Int64 read GetValue;

Description

Methods

class function Create(const ATimestamp, AIncrement: Integer): TgoBsonTimestamp; overload; static;

Creates a BSON Timestamp.

Parameters
ATimestamp
the timestamp
AIncrement
the increment
Returns

The BSON Timestamp

class function Create(const AValue: Int64): TgoBsonTimestamp; overload; static;

Creates a BSON Timestamp.

Parameters
AValue
the combined timestamp/increment value
Returns

The BSON Timestamp

class operator Implicit(const A: TgoBsonTimestamp): TgoBsonValue; static;

Implicitly casts a BSON Timestamp to a BSON value.

class operator Equal(const A, B: TgoBsonTimestamp): Boolean; static;

See TgoBsonValue.Equal

class operator NotEqual(const A, B: TgoBsonTimestamp): Boolean; static;

See TgoBsonValue.NotEqual

function IsNil: Boolean; inline;

See TgoBsonValue.IsNil

procedure SetNil; inline;

See TgoBsonValue.SetNil

function Clone: TgoBsonTimestamp; inline;

See TgoBsonValue.Clone

function DeepClone: TgoBsonTimestamp; inline;

See TgoBsonValue.DeepClone

function ToBson: TBytes; inline;

See TgoBsonValue.ToBson

function ToJson: String; overload; inline;

See TgoBsonValue.ToJson

function ToJson(const ASettings: TgoJsonWriterSettings): String; overload; inline;

See TgoBsonValue.ToJson

Properties

property Timestamp: Integer read GetTimestamp;

The timestamp

property Increment: Integer read GetIncrement;

The increment

property Value: Int64 read GetValue;

The combined timestamp/increment value


Generated by P2PasDoc 0.13.0 on 2017-04-25 12:54:26