Interface MqlEntry<T extends MqlValue>

Type Parameters:
T - The type of the value
All Superinterfaces:
MqlValue

@Sealed @Beta(CLIENT) public interface MqlEntry<T extends MqlValue> extends MqlValue
A map entry value in the context of the MongoDB Query Language (MQL). An entry has a string key and some value. Entries are used with maps.

Entries are document-like and map-like, unless the method returning the entry specifies otherwise.

Since:
4.9.0
  • Method Details

    • getKey

      MqlString getKey()
      The key of this entry.
      Returns:
      the key.
      Since server release
      5.0
    • getValue

      T getValue()
      The value of this entry.
      Returns:
      the value.
      Since server release
      5.0
    • setValue

      MqlEntry<T> setValue(T value)
      An entry with the same key as this entry, and the specified value.
      Parameters:
      value - the value.
      Returns:
      the resulting entry.
      Since server release
      5.0
    • setKey

      MqlEntry<T> setKey(MqlString key)
      An entry with the same value as this entry, and the specified key.
      Parameters:
      key - the key.
      Returns:
      the resulting entry.
      Since server release
      5.0