Example #1
0
 private static void UpdateInput <B, T>(FSubWindowable <B, T> fsubwin, ColumnBatch <B> output)
 {
     if (fsubwin.isInput)
     {
         output.col = fsubwin.Data;
     }
 }
Example #2
0
 public void Return()
 {
     if (this.Items != null)
     {
         this.Items.UsedLength = 0;
         this.Items.Return();
         this.Items = null;
     }
 }
Example #3
0
 private static void UpdateOutput <B, T>(FSubWindowable <B, T> fsubwin, ColumnBatch <B> output, int offset)
 {
     if (!fsubwin.isInput)
     {
         fsubwin.Data     = output.col;
         fsubwin.Offset   = offset;
         fsubwin.isOutput = true;
     }
 }
Example #4
0
        public bool Get(out ColumnBatch <T> result)
        {
            if (this.queue.TryDequeue(out result))
            {
                result.IncrementRefCount(1);
                return(true);
            }
            result = new ColumnBatch <T>(this, this.size);
            Interlocked.Increment(ref this.createdObjects);

            return(true);
        }
Example #5
0
 public bool GetBV(out ColumnBatch <long> result) => this.bitvectorPool.Get(out result);
Example #6
0
 public bool Get(out ColumnBatch <string> result) => this.stringPool.Get(out result);
Example #7
0
 public bool Get(out ColumnBatch <byte> result) => this.bytePool.Get(out result);
Example #8
0
 public bool Get(out ColumnBatch <int> result) => this.intPool.Get(out result);
Example #9
0
 public bool Get(out ColumnBatch <long> result) => this.longPool.Get(out result);
Example #10
0
 public bool GetPayload(out ColumnBatch <TPayload> result) => this.payloadPool.Get(out result);
Example #11
0
 public bool GetKey(out ColumnBatch <TKey> result) => this.keyPool.Get(out result);
Example #12
0
 public void Return(ColumnBatch <T> item)
 {
     this.queue.Enqueue(item);
 }