internal static VectorConstruction fillMissing(VectorConstruction vector, Lookup lookup) { switch (lookup) { case Lookup.Exact: return(vector); case Lookup.ExactOrGreater: return(VectorConstruction.NewFillMissing(vector, VectorFillMissing.NewDirection(Direction.Backward))); case Lookup.ExactOrSmaller: return(VectorConstruction.NewFillMissing(vector, VectorFillMissing.NewDirection(Direction.Forward))); default: throw new InvalidOperationException("Lookup.Smaller and Lookup.Greater are not supported when joining"); } }
internal FillMissing(VectorConstruction item1, VectorFillMissing item2) : base(7) { this.item1 = item1; this.item2 = item2; }
public static VectorConstruction NewFillMissing(VectorConstruction item1, VectorFillMissing item2) { return((VectorConstruction) new VectorConstruction.FillMissing(item1, item2)); }