C# 클래스 CqlSharp.TimeGuid

Helper class to generate Time based GUIDs. Thanks to Casssandra-Sharp project.
파일 보기 프로젝트 열기: reuzel/CqlSharp

공개 프로퍼티들

프로퍼티 타입 설명
Default System.Guid
GregorianCalendarStart DateTime

공개 메소드들

메소드 설명
GenerateTimeBasedGuid ( ) : System.Guid

Generates a time based unique identifier, set to the current time.

GenerateTimeBasedGuid ( long time, int sequence, byte nodeId ) : System.Guid

Generates a time based unique identifier.

GenerateTimeBasedGuid ( this dateTime, byte node = null ) : Guid

Generates a time based unique identifier.

GetDateTime ( this guid ) : DateTime

Gets the date time from the provided Guid.

비공개 메소드들

메소드 설명
CreateNodeId ( ) : byte[]

Creates a node unique identifier.

TimeGuid ( ) : System

Initializes the TimeGuid class.

메소드 상세

GenerateTimeBasedGuid() 공개 정적인 메소드

Generates a time based unique identifier, set to the current time.
public static GenerateTimeBasedGuid ( ) : System.Guid
리턴 System.Guid

GenerateTimeBasedGuid() 공개 정적인 메소드

Generates a time based unique identifier.
public static GenerateTimeBasedGuid ( long time, int sequence, byte nodeId ) : System.Guid
time long The time, being the number of 100ns intervals since Gregorian Calendar start
sequence int The sequence, or clockId.
nodeId byte The node unique identifier.
리턴 System.Guid

GenerateTimeBasedGuid() 공개 정적인 메소드

Generates a time based unique identifier.
public static GenerateTimeBasedGuid ( this dateTime, byte node = null ) : Guid
dateTime this The date time.
node byte /// The node. Must either be null or a 6 byte array. When set to null (recommended), a random node id /// will be provided ///
리턴 Guid

GetDateTime() 공개 정적인 메소드

Gets the date time from the provided Guid.
public static GetDateTime ( this guid ) : DateTime
guid this The unique identifier.
리턴 DateTime

프로퍼티 상세

Default 공개적으로 정적으로 프로퍼티

The default Time Guid (nodeId, time and sequence all set to 0, but having the version number set to timeguid)
public static Guid,System Default
리턴 System.Guid

GregorianCalendarStart 공개적으로 정적으로 프로퍼티

public static DateTime GregorianCalendarStart
리턴 DateTime