Ejemplo n.º 1
0
 public PartitionPipe(
     PartitionStreamable <TPartitionKey, TPayload> stream,
     IStreamObserver <PartitionKey <TPartitionKey>, TPayload> observer)
     : base(stream, observer)
 {
     this.keySelector     = stream.KeySelector;
     this.keySelectorFunc = this.keySelector.Compile();
     this.partitionLag    = stream.PartitionLag;
     this.l1Pool          = MemoryManager.GetMemoryPool <PartitionKey <TPartitionKey>, TPayload>(stream.Properties.IsColumnar);
 }
Ejemplo n.º 2
0
 public PartitionPipe(
     PartitionStreamable <TPartitionKey, TPayload> stream,
     IStreamObserver <PartitionKey <TPartitionKey>, TPayload> observer)
     : base(stream, observer)
 {
     this.keyComparerGetHashCode = EqualityComparerExpression <TPartitionKey> .DefaultGetHashCodeFunction;
     this.keySelector            = stream.KeySelector;
     this.keySelectorFunc        = this.keySelector.Compile();
     this.partitionLag           = stream.PartitionLag;
     this.l1Pool = MemoryManager.GetMemoryPool <PartitionKey <TPartitionKey>, TPayload>(stream.Properties.IsColumnar);
 }