예제 #1
0
 public SlotCursor(IChannelProvider provider, ISlotCursor cursor, VectorType typeDst)
     : base(provider, TransposerUtils.GetRowCursorShim(provider, cursor))
 {
     Ch.Assert(Input.Schema.ColumnCount == 1);
     Ch.Assert(Input.Schema.GetColumnType(0) == cursor.GetSlotType());
     Ch.AssertValue(typeDst);
     _getter = RowCursorUtils.GetVecGetterAs(typeDst.ItemType(), Input, 0);
     _type   = typeDst;
 }
예제 #2
0
            public ColInfoEx(DataKind kind, bool hasKeyRange, ColumnType type, VectorType slotType)
            {
                Contracts.AssertValue(type);
                Contracts.AssertValueOrNull(slotType);
                Contracts.Assert(slotType == null || type.ItemType().Equals(slotType.ItemType()));

                Kind        = kind;
                HasKeyRange = hasKeyRange;
                TypeDst     = type;
                SlotTypeDst = slotType;
            }