Amazon.DynamoDBv2.DocumentModel.MultiBatchWrite.ConvertBatches(System.Collections.Generic.List)

Here are the examples of the csharp api class Amazon.DynamoDBv2.DocumentModel.MultiBatchWrite.ConvertBatches(System.Collections.Generic.List) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

5 Examples 7

1. Example

Project: aws-sdk-xamarin
Source File: DocumentBatchWrite.cs
private void WriteItemsHelper(List<DocumentBatchWrite> batches, bool isAsync)
        {
            if (Batches == null || Batches.Count == 0)
                return;

            Dictionary<string, QuickList<WriteRequestDocument>> writeRequestsMap = ConvertBatches(batches);
            Table targetTable = this.Batches[0].TargetTable;
            while (true)
            {
                Dictionary<string, QuickList<WriteRequestDocument>> nextSet = GetNextWriteItems(ref writeRequestsMap, MaxItemsPerCall);
                if (nextSet.Count == 0)
                    break;

                SendSet(nextSet, targetTable, isAsync);
            }
        }

2. Example

Project: aws-sdk-xamarin
Source File: DocumentBatchWrite.cs
private void WriteItemsHelper(List<DocumentBatchWrite> batches, bool isAsync)
        {
            if (Batches == null || Batches.Count == 0)
                return;

            Dictionary<string, QuickList<WriteRequestDocument>> writeRequestsMap = ConvertBatches(batches);
            Table targetTable = this.Batches[0].TargetTable;
            while (true)
            {
                Dictionary<string, QuickList<WriteRequestDocument>> nextSet = GetNextWriteItems(ref writeRequestsMap, MaxItemsPerCall);
                if (nextSet.Count == 0)
                    break;

                SendSet(nextSet, targetTable, isAsync);
            }
        }

3. Example

Project: aws-sdk-xamarin
Source File: DocumentBatchWrite.cs
private void WriteItemsHelper(List<DocumentBatchWrite> batches, bool isAsync)
        {
            if (Batches == null || Batches.Count == 0)
                return;

            Dictionary<string, QuickList<WriteRequestDocument>> writeRequestsMap = ConvertBatches(batches);
            Table targetTable = this.Batches[0].TargetTable;
            while (true)
            {
                Dictionary<string, QuickList<WriteRequestDocument>> nextSet = GetNextWriteItems(ref writeRequestsMap, MaxItemsPerCall);
                if (nextSet.Count == 0)
                    break;

                SendSet(nextSet, targetTable, isAsync);
            }
        }

4. Example

Project: aws-sdk-xamarin
Source File: DocumentBatchWrite.cs
private void WriteItemsHelper(List<DocumentBatchWrite> batches, bool isAsync)
        {
            if (Batches == null || Batches.Count == 0)
                return;

            Dictionary<string, QuickList<WriteRequestDocument>> writeRequestsMap = ConvertBatches(batches);
            Table targetTable = this.Batches[0].TargetTable;
            while (true)
            {
                Dictionary<string, QuickList<WriteRequestDocument>> nextSet = GetNextWriteItems(ref writeRequestsMap, MaxItemsPerCall);
                if (nextSet.Count == 0)
                    break;

                SendSet(nextSet, targetTable, isAsync);
            }
        }

5. Example

Project: aws-sdk-xamarin
Source File: DocumentBatchWrite.cs
private void WriteItemsHelper(List<DocumentBatchWrite> batches, bool isAsync)
        {
            if (Batches == null || Batches.Count == 0)
                return;

            Dictionary<string, QuickList<WriteRequestDocument>> writeRequestsMap = ConvertBatches(batches);
            Table targetTable = this.Batches[0].TargetTable;
            while (true)
            {
                Dictionary<string, QuickList<WriteRequestDocument>> nextSet = GetNextWriteItems(ref writeRequestsMap, MaxItemsPerCall);
                if (nextSet.Count == 0)
                    break;

                SendSet(nextSet, targetTable, isAsync);
            }
        }