コード例 #1
0
 public virtual void Deserialize(Common.Serialization.IO.CompactReader reader)
 {
     _operationId = reader.ReadInt64();
     _rowId       = reader.ReadInt64();
     _collection  = reader.ReadString();
     _context     = new OperationContext();
 }
コード例 #2
0
ファイル: Segment.cs プロジェクト: waqashaneef/NosDB
            public void Deserialize(Common.Serialization.IO.CompactReader reader)
            {
                _id = reader.ReadInt64();

                sliceCount = reader.ReadInt64();
                _crc       = reader.ReadInt64();
                SliceMap   = Common.Util.SerializationUtility.DeserializeDictionary <long, long>(reader);
            }
コード例 #3
0
 public void Deserialize(Common.Serialization.IO.CompactReader reader)
 {
     CollectionName       = reader.ReadObject() as string;
     Indices              = reader.ReadObject() as Indices;
     Caching              = reader.ReadObject() as CachingConfiguration;
     DistributionStrategy = reader.ReadObject() as DistributionStrategyConfiguration;
     CollectionSize       = reader.ReadInt64();
     MaxDocuments         = reader.ReadInt64();
     Shard = reader.ReadObject() as string;
     EvictionConfiguration = reader.ReadObject() as EvictionConfiguration;
     PartitionKey          = reader.ReadObject() as PartitionKeyConfiguration;
     UID  = reader.ReadObject() as string;
     Path = reader.ReadObject() as string;
 }
コード例 #4
0
ファイル: BackupFIle.cs プロジェクト: waqashaneef/NosDB
 public void Deserialize(Common.Serialization.IO.CompactReader reader)
 {
     _id             = reader.ReadInt64();
     NumberOfSlices  = reader.ReadInt64();
     Database        = reader.ReadString();
     DatabaseCluster = reader.ReadString();
     _crc            = reader.ReadInt64();
     Version         = reader.ReadString();
     _creationDate   = reader.ReadDateTime();
     SegmentMap      = Common.Util.SerializationUtility.DeserializeDictionary <long, long>(reader);
     _recoveryType   = (RecoveryJobType)reader.ReadInt32();
     _fullBackupDate = reader.ReadDateTime();
     _state          = (RecoveryFileState)reader.ReadInt32();
 }
コード例 #5
0
ファイル: ChannelRequest.cs プロジェクト: waqashaneef/NosDB
 public void Deserialize(Common.Serialization.IO.CompactReader reader)
 {
     this.RequestId  = reader.ReadInt64();
     this.Source     = (Alachisoft.NosDB.Common.Net.Address)reader.ReadObject();
     this.Message    = reader.ReadObject();
     this.NoResponse = reader.ReadBoolean();
 }
コード例 #6
0
ファイル: ElectionId.cs プロジェクト: waqashaneef/NosDB
 public void Deserialize(Common.Serialization.IO.CompactReader reader)
 {
     Id              = reader.ReadInt64();
     UID             = reader.ReadObject() as string;
     RequestingNode  = reader.ReadObject() as ServerNode;
     ElectionTime    = reader.ReadDateTime();
     AllowedDuration = (TimeSpan)reader.ReadObject();
     TimeTaken       = (TimeSpan)reader.ReadObject();
 }
コード例 #7
0
 public void Deserialize(Common.Serialization.IO.CompactReader reader)
 {
     DatabaseId          = reader.ReadObject() as string;
     DatabasePath        = reader.ReadObject() as string;
     MaxFileSize         = reader.ReadInt64();
     LMDBProvider        = reader.ReadObject() as LMDBConfiguration;
     StorageProviderType = (ProviderType)reader.ReadInt32();
     IsMultiFileStore    = reader.ReadBoolean();
 }
コード例 #8
0
ファイル: DataSlice.cs プロジェクト: waqashaneef/NosDB
 public void Deserialize(Common.Serialization.IO.CompactReader reader)
 {
     _id           = reader.ReadInt64();
     Database      = reader.ReadString();
     Collection    = reader.ReadString();
     DataCount     = reader.ReadInt64();
     OverFlow      = reader.ReadBoolean();
     NextSegmentId = reader.ReadInt64();
     _crc          = reader.ReadInt64();
     _mappedData   = reader.ReadInt64();
     _dataType     = (DataSliceType)reader.ReadInt32();
     _totalSize    = reader.ReadInt64();
 }
コード例 #9
0
ファイル: CappedInfo.cs プロジェクト: waqashaneef/NosDB
 public void Deserialize(Common.Serialization.IO.CompactReader reader)
 {
     Size         = reader.ReadInt64();
     MaxDocuments = reader.ReadInt64();
 }
コード例 #10
0
 public void Deserialize(Common.Serialization.IO.CompactReader reader)
 {
     _dataSize      = reader.ReadInt64();
     _documentCount = reader.ReadInt64();
 }