Exemplo n.º 1
0
        public void RowSparsePull(string key, NDArrayList @out, int priority = 0, NDArrayList row_ids = null)
        {
            if (@out == null)
            {
                throw new ArgumentNullException("@out");
            }

            if (row_ids == null)
            {
                throw new ArgumentNullException("row_ids");
            }

            var first_out = new NDArrayList();

            if (row_ids.Length == 1)
            {
                first_out.Add(@out[0]);
            }
            else
            {
                first_out = @out.ToList();
            }

            NativeMethods.MXKVStorePullRowSparseEx(handle, 1, new[] { key },
                                                   MxUtil.GetNDArrayHandles(first_out.ToArray()), MxUtil.GetNDArrayHandles(row_ids), priority);
        }