5 writes to _columnContainer
Microsoft.Data.Analysis (5)
PrimitiveDataFrameColumn.cs (5)
32
_columnContainer
= columnContainer;
37
_columnContainer
= new PrimitiveColumnContainer<T>(values);
43
_columnContainer
= new PrimitiveColumnContainer<T>(values);
49
_columnContainer
= new PrimitiveColumnContainer<T>(length);
54
_columnContainer
= new PrimitiveColumnContainer<T>(buffer, nullBitMap, length, nullCount);
132 references to _columnContainer
Microsoft.Data.Analysis (132)
PrimitiveDataFrameColumn.Computations.cs (20)
22
PrimitiveColumnComputation<T>.Instance.Abs(ret.
_columnContainer
);
28
PrimitiveColumnComputation<T>.Instance.All(
_columnContainer
, out bool ret);
34
PrimitiveColumnComputation<T>.Instance.Any(
_columnContainer
, out bool ret);
41
PrimitiveColumnComputation<T>.Instance.CumulativeMax(ret.
_columnContainer
);
48
PrimitiveColumnComputation<T>.Instance.CumulativeMax(ret.
_columnContainer
, rowIndices);
55
PrimitiveColumnComputation<T>.Instance.CumulativeMin(ret.
_columnContainer
);
62
PrimitiveColumnComputation<T>.Instance.CumulativeMin(ret.
_columnContainer
, rowIndices);
69
PrimitiveColumnComputation<T>.Instance.CumulativeProduct(ret.
_columnContainer
);
76
PrimitiveColumnComputation<T>.Instance.CumulativeProduct(ret.
_columnContainer
, rowIndices);
83
PrimitiveColumnComputation<T>.Instance.CumulativeSum(ret.
_columnContainer
);
90
PrimitiveColumnComputation<T>.Instance.CumulativeSum(ret.
_columnContainer
, rowIndices);
96
PrimitiveColumnComputation<T>.Instance.Max(
_columnContainer
, out T? ret);
102
PrimitiveColumnComputation<T>.Instance.Max(
_columnContainer
, rowIndices, out T? ret);
108
PrimitiveColumnComputation<T>.Instance.Min(
_columnContainer
, out T? ret);
114
PrimitiveColumnComputation<T>.Instance.Min(
_columnContainer
, rowIndices, out T? ret);
120
PrimitiveColumnComputation<T>.Instance.Product(
_columnContainer
, out T? ret);
126
PrimitiveColumnComputation<T>.Instance.Product(
_columnContainer
, rowIndices, out T? ret);
132
PrimitiveColumnComputation<T>.Instance.Sum(
_columnContainer
, out T? ret);
138
PrimitiveColumnComputation<T>.Instance.Sum(
_columnContainer
, rowIndices, out T? ret);
145
PrimitiveColumnComputation<T>.Instance.Round(ret.
_columnContainer
);
PrimitiveDataFrameColumn.cs (103)
28
internal PrimitiveColumnContainer<T> ColumnContainer =>
_columnContainer
;
38
Length =
_columnContainer
.Length;
44
Length =
_columnContainer
.Length;
64
for (int i = 0; i <
_columnContainer
.Buffers.Count; i++)
66
yield return
_columnContainer
.Buffers[i].ReadOnlyMemory;
77
for (int i = 0; i <
_columnContainer
.NullBitMapBuffers.Count; i++)
79
ReadOnlyDataFrameBuffer<byte> buffer =
_columnContainer
.NullBitMapBuffers[i];
116
protected internal override int GetMaxRecordBatchLength(long startIndex) =>
_columnContainer
.MaxRecordBatchLength(startIndex);
131
int bufferIndex = numberOfRows == 0 ? 0 :
_columnContainer
.GetIndexOfBufferContainingRowIndex(startIndex);
134
if (numberOfRows != 0 && numberOfRows >
_columnContainer
.Buffers[bufferIndex].Length - offset)
147
ReadOnlyDataFrameBuffer<T> valueBuffer = (numberOfRows == 0) ? null :
_columnContainer
.Buffers[bufferIndex];
148
ReadOnlyDataFrameBuffer<byte> nullBuffer = (numberOfRows == 0) ? null :
_columnContainer
.NullBitMapBuffers[bufferIndex];
165
ArrowBuffer arrowValueBuffer = numberOfRows == 0 ? ArrowBuffer.Empty : new ArrowBuffer(
_columnContainer
.Buffers[bufferIndex].ReadOnlyBuffer);
166
ArrowBuffer arrowNullBuffer = numberOfRows == 0 ? ArrowBuffer.Empty : new ArrowBuffer(
_columnContainer
.NullBitMapBuffers[bufferIndex].ReadOnlyBuffer);
203
return
_columnContainer
[startIndex, length];
233
protected T? GetTypedValue(long rowIndex) =>
_columnContainer
[rowIndex];
241
_columnContainer
[rowIndex] = (T?)value;
252
set =>
_columnContainer
[rowIndex] = value;
285
_columnContainer
.Resize(length);
286
Length =
_columnContainer
.Length;
291
_columnContainer
.Append(value);
297
_columnContainer
.AppendMany(value, count);
306
Debug.Assert(
_columnContainer
.NullCount >= 0);
307
return
_columnContainer
.NullCount;
312
public override bool IsValid(long index) =>
_columnContainer
.IsValid(index);
314
public IEnumerator<T?> GetEnumerator() =>
_columnContainer
.GetEnumerator();
451
var newColumnContainer =
_columnContainer
.Clone();
484
retContainer =
_columnContainer
.Clone(mapIndices.
_columnContainer
, typeof(long), invertMapIndices);
488
retContainer =
_columnContainer
.Clone(mapIndices.
_columnContainer
, typeof(int), invertMapIndices);
522
var value =
_columnContainer
[curRow];
535
PrimitiveColumnContainer<bool> newColumnContainer =
_columnContainer
.CloneAsBoolContainer();
541
PrimitiveColumnContainer<byte> newColumnContainer =
_columnContainer
.CloneAsByteContainer();
547
PrimitiveColumnContainer<sbyte> newColumnContainer =
_columnContainer
.CloneAsSByteContainer();
553
PrimitiveColumnContainer<double> newColumnContainer =
_columnContainer
.CloneAsDoubleContainer();
559
PrimitiveColumnContainer<decimal> newColumnContainer =
_columnContainer
.CloneAsDecimalContainer();
565
PrimitiveColumnContainer<short> newColumnContainer =
_columnContainer
.CloneAsShortContainer();
572
PrimitiveColumnContainer<ushort> newColumnContainer =
_columnContainer
.CloneAsUShortContainer();
578
PrimitiveColumnContainer<int> newColumnContainer =
_columnContainer
.CloneAsIntContainer();
584
PrimitiveColumnContainer<uint> newColumnContainer =
_columnContainer
.CloneAsUIntContainer();
590
PrimitiveColumnContainer<long> newColumnContainer =
_columnContainer
.CloneAsLongContainer();
596
PrimitiveColumnContainer<ulong> newColumnContainer =
_columnContainer
.CloneAsULongContainer();
602
PrimitiveColumnContainer<float> newColumnContainer =
_columnContainer
.CloneAsFloatContainer();
619
for (int b = 0; b <
_columnContainer
.Buffers.Count; b++)
621
ReadOnlyDataFrameBuffer<T> buffer =
_columnContainer
.Buffers[b];
623
ReadOnlySpan<byte> nullBitMapSpan =
_columnContainer
.NullBitMapBuffers[b].ReadOnlySpan;
659
public void ApplyElementwise(Func<T?, long, T?> func) =>
_columnContainer
.ApplyElementwise(func);
684
_columnContainer
.Apply(func, resultColumn.
_columnContainer
);
966
newColumn.
_columnContainer
.HandleOperation(operation, column.
_columnContainer
);
980
newColumn.
_columnContainer
.HandleOperation(operation, column.
_columnContainer
);
990
decimalColumn.
_columnContainer
.HandleOperation(operation, column.CloneAsDecimalColumn().
_columnContainer
);
1015
newColumn.
_columnContainer
.HandleOperation(operation, column.
_columnContainer
);
1027
decimalColumn.
_columnContainer
.HandleOperation(operation, (column as PrimitiveDataFrameColumn<decimal>).
_columnContainer
);
1033
doubleColumn.
_columnContainer
.HandleOperation(operation, column.CloneAsDoubleColumn().
_columnContainer
);
1058
newColumn.
_columnContainer
.HandleOperation(operation, Unsafe.As<U, T>(ref value));
1068
decimalColumn.
_columnContainer
.HandleOperation(operation, DecimalConverter<U>.Instance.GetDecimal(value));
1093
newColumn.
_columnContainer
.HandleOperation(operation, Unsafe.As<U, T>(ref value));
1105
decimalColumn.
_columnContainer
.HandleOperation(operation, DecimalConverter<U>.Instance.GetDecimal(value));
1111
doubleColumn.
_columnContainer
.HandleOperation(operation, DoubleConverter<U>.Instance.GetDouble(value));
1135
newColumn.
_columnContainer
.HandleReverseOperation(operation, Unsafe.As<U, T>(ref value));
1145
clonedDecimalColumn.
_columnContainer
.HandleReverseOperation(operation, DecimalConverter<U>.Instance.GetDecimal(value));
1169
newColumn.
_columnContainer
.HandleReverseOperation(operation, Unsafe.As<U, T>(ref value));
1181
decimalColumn.
_columnContainer
.HandleReverseOperation(operation, DecimalConverter<U>.Instance.GetDecimal(value));
1187
clonedDoubleColumn.
_columnContainer
.HandleReverseOperation(operation, DoubleConverter<U>.Instance.GetDouble(value));
1207
retColumn.
_columnContainer
.HandleOperation(operation, Unsafe.As<U, bool>(ref value));
1224
newbyteColumn.
_columnContainer
.HandleOperation(operation, value);
1229
newcharColumn.
_columnContainer
.HandleOperation(operation, value);
1240
newintColumn.
_columnContainer
.HandleOperation(operation, value);
1245
newlongColumn.
_columnContainer
.HandleOperation(operation, value);
1250
newsbyteColumn.
_columnContainer
.HandleOperation(operation, value);
1255
newshortColumn.
_columnContainer
.HandleOperation(operation, value);
1260
newuintColumn.
_columnContainer
.HandleOperation(operation, value);
1265
newulongColumn.
_columnContainer
.HandleOperation(operation, value);
1270
newushortColumn.
_columnContainer
.HandleOperation(operation, value);
1293
return new BooleanDataFrameColumn(Name, (this as PrimitiveDataFrameColumn<U>).
_columnContainer
.HandleOperation(operation, column.
_columnContainer
));
1303
return new BooleanDataFrameColumn(Name, primitiveColumn.
_columnContainer
.HandleOperation(operation, column.
_columnContainer
));
1308
return new BooleanDataFrameColumn(Name, decimalColumn.
_columnContainer
.HandleOperation(operation, column.CloneAsDecimalColumn().
_columnContainer
));
1315
return new BooleanDataFrameColumn(Name, (this as PrimitiveDataFrameColumn<U>).
_columnContainer
.HandleOperation(operation, column.
_columnContainer
));
1335
return new BooleanDataFrameColumn(Name, primitiveColumn.
_columnContainer
.HandleOperation(operation, column.
_columnContainer
));
1342
return new BooleanDataFrameColumn(Name, decimalColumn.
_columnContainer
.HandleOperation(operation, (column as PrimitiveDataFrameColumn<decimal>).
_columnContainer
));
1347
return new BooleanDataFrameColumn(Name, doubleColumn.
_columnContainer
.HandleOperation(operation, column.CloneAsDoubleColumn().
_columnContainer
));
1364
return new BooleanDataFrameColumn(Name, (this as PrimitiveDataFrameColumn<bool>).
_columnContainer
.HandleOperation(operation, Unsafe.As<U, bool>(ref value)));
1374
return new BooleanDataFrameColumn(Name, primitiveColumn.
_columnContainer
.HandleOperation(operation, Unsafe.As<U, T>(ref value)));
1379
return new BooleanDataFrameColumn(Name, decimalColumn.
_columnContainer
.HandleOperation(operation, DecimalConverter<U>.Instance.GetDecimal(value)));
1386
return new BooleanDataFrameColumn(Name, (this as PrimitiveDataFrameColumn<DateTime>).
_columnContainer
.HandleOperation(operation, Unsafe.As<U, DateTime>(ref value)));
1406
return new BooleanDataFrameColumn(Name, primitiveColumn.
_columnContainer
.HandleOperation(operation, Unsafe.As<U, T>(ref value)));
1413
return new BooleanDataFrameColumn(Name, decimalColumn.
_columnContainer
.HandleOperation(operation, DecimalConverter<U>.Instance.GetDecimal(value)));
1418
return new BooleanDataFrameColumn(Name, doubleColumn.
_columnContainer
.HandleOperation(operation, DoubleConverter<U>.Instance.GetDouble(value)));
PrimitiveDataFrameColumn.Sort.cs (9)
25
List<List<int>> bufferSortIndices = new List<List<int>>(
_columnContainer
.Buffers.Count);
29
for (int b = 0; b <
_columnContainer
.Buffers.Count; b++)
31
ReadOnlyDataFrameBuffer<T> buffer =
_columnContainer
.Buffers[b];
32
ReadOnlySpan<byte> nullBitMapSpan =
_columnContainer
.NullBitMapBuffers[b].ReadOnlySpan;
50
columnNullIndices[nullIndicesSlot] = localSortIndex + b *
_columnContainer
.Buffers[0].Length;
62
ReadOnlyMemory<byte> buffer =
_columnContainer
.Buffers[bufferIndex].ReadOnlyBuffer;
72
value =
_columnContainer
.Buffers[bufferIndex][index];
76
value =
_columnContainer
.Buffers[bufferIndex][index];
82
IList<ReadOnlyDataFrameBuffer<T>> buffers =
_columnContainer
.Buffers;