private static void UpdateInput <B, T>(FSubWindowable <B, T> fsubwin, ColumnBatch <B> output) { if (fsubwin.isInput) { output.col = fsubwin.Data; } }
public void Return() { if (this.Items != null) { this.Items.UsedLength = 0; this.Items.Return(); this.Items = null; } }
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; } }
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); }
public bool GetBV(out ColumnBatch <long> result) => this.bitvectorPool.Get(out result);
public bool Get(out ColumnBatch <string> result) => this.stringPool.Get(out result);
public bool Get(out ColumnBatch <byte> result) => this.bytePool.Get(out result);
public bool Get(out ColumnBatch <int> result) => this.intPool.Get(out result);
public bool Get(out ColumnBatch <long> result) => this.longPool.Get(out result);
public bool GetPayload(out ColumnBatch <TPayload> result) => this.payloadPool.Get(out result);
public bool GetKey(out ColumnBatch <TKey> result) => this.keyPool.Get(out result);
public void Return(ColumnBatch <T> item) { this.queue.Enqueue(item); }