Search Results for

    Show / Hide Table of Contents

    Class BulkOperationsCollection<TOperation>

    This class is used by Operations which needs thread safe adding Add(T) as well as expose an equivalent of AddRange(IEnumerable<T>). Because operations from OpenSearch are executed in order none of the types in System.Collection.Concurrent can't be used for this. We need to preserve insert order and exposed indexed index because Items is ordered and lines up with Operations allowing one to zip the two together.

    Inheritance
    object
    BulkOperationsCollection<TOperation>
    Implements
    IList<TOperation>
    ICollection<TOperation>
    IEnumerable<TOperation>
    IList
    ICollection
    IEnumerable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: OpenSearch.Client
    Assembly: OpenSearch.Client.dll
    Syntax
    [ComVisible(false)]
    public sealed class BulkOperationsCollection<TOperation> : IList<TOperation>, ICollection<TOperation>, IEnumerable<TOperation>, IList, ICollection, IEnumerable where TOperation : IBulkOperation
    Type Parameters
    Name Description
    TOperation

    Constructors

    | Edit this page View Source

    BulkOperationsCollection()

    Declaration
    public BulkOperationsCollection()
    | Edit this page View Source

    BulkOperationsCollection(IEnumerable<TOperation>)

    Declaration
    public BulkOperationsCollection(IEnumerable<TOperation> operations)
    Parameters
    Type Name Description
    IEnumerable<TOperation> operations

    Properties

    | Edit this page View Source

    Count

    Declaration
    public int Count { get; }
    Property Value
    Type Description
    int
    | Edit this page View Source

    this[int]

    Declaration
    public TOperation this[int index] { get; set; }
    Parameters
    Type Name Description
    int index
    Property Value
    Type Description
    TOperation

    Methods

    | Edit this page View Source

    Add(TOperation)

    Declaration
    public void Add(TOperation item)
    Parameters
    Type Name Description
    TOperation item
    | Edit this page View Source

    AddRange(IEnumerable<TOperation>)

    Declaration
    public void AddRange(IEnumerable<TOperation> items)
    Parameters
    Type Name Description
    IEnumerable<TOperation> items
    | Edit this page View Source

    Clear()

    Declaration
    public void Clear()
    | Edit this page View Source

    Contains(TOperation)

    Declaration
    public bool Contains(TOperation item)
    Parameters
    Type Name Description
    TOperation item
    Returns
    Type Description
    bool
    | Edit this page View Source

    CopyTo(TOperation[], int)

    Declaration
    public void CopyTo(TOperation[] array, int index)
    Parameters
    Type Name Description
    TOperation[] array
    int index
    | Edit this page View Source

    GetEnumerator()

    Declaration
    public IEnumerator<TOperation> GetEnumerator()
    Returns
    Type Description
    IEnumerator<TOperation>
    | Edit this page View Source

    IndexOf(TOperation)

    Declaration
    public int IndexOf(TOperation item)
    Parameters
    Type Name Description
    TOperation item
    Returns
    Type Description
    int
    | Edit this page View Source

    Insert(int, TOperation)

    Declaration
    public void Insert(int index, TOperation item)
    Parameters
    Type Name Description
    int index
    TOperation item
    | Edit this page View Source

    Remove(TOperation)

    Declaration
    public bool Remove(TOperation item)
    Parameters
    Type Name Description
    TOperation item
    Returns
    Type Description
    bool
    | Edit this page View Source

    RemoveAt(int)

    Declaration
    public void RemoveAt(int index)
    Parameters
    Type Name Description
    int index

    Operators

    | Edit this page View Source

    implicit operator BulkOperationsCollection<TOperation>(List<TOperation>)

    Declaration
    public static implicit operator BulkOperationsCollection<TOperation>(List<TOperation> items)
    Parameters
    Type Name Description
    List<TOperation> items
    Returns
    Type Description
    BulkOperationsCollection<TOperation>

    Implements

    IList<T>
    ICollection<T>
    IEnumerable<T>
    IList
    ICollection
    IEnumerable

    Extension Methods

    SuffixExtensions.Suffix(object, string)
    • Edit this page
    • View Source
    In this article
    • Constructors
      • BulkOperationsCollection()
      • BulkOperationsCollection(IEnumerable<TOperation>)
    • Properties
      • Count
      • this[int]
    • Methods
      • Add(TOperation)
      • AddRange(IEnumerable<TOperation>)
      • Clear()
      • Contains(TOperation)
      • CopyTo(TOperation[], int)
      • GetEnumerator()
      • IndexOf(TOperation)
      • Insert(int, TOperation)
      • Remove(TOperation)
      • RemoveAt(int)
    • Operators
      • implicit operator BulkOperationsCollection<TOperation>(List<TOperation>)
    • Implements
    • Extension Methods
    Back to top Generated by DocFX