org.springframework.data.mongodb.core.aggregation

Class ConvertOperators.Convert

  • java.lang.Object
    • org.springframework.data.mongodb.core.aggregation.ConvertOperators.Convert
Parameters:
numericTypeIdentifier - must not be null.
Returns:
new instance of ConvertOperators.Convert.
  • onErrorReturnValueOf

    public ConvertOperators.Convert onErrorReturnValueOf(String fieldReference)
    Optionally specify the field holding the value to return on encountering an error during conversion.
    Parameters:
    fieldReference - must not be null.
    Returns:
    new instance of ConvertOperators.Convert.
  • onNullReturnValueOf

    public ConvertOperators.Convert onNullReturnValueOf(String fieldReference)
    Optionally specify the field holding the value to return when the input is null or missing.
    Parameters:
    fieldReference - must not be null.
    Returns:
    new instance of ConvertOperators.Convert.
  • getMongoMethod

    protected String getMongoMethod()
  • get

    protected <T> T get(int index)
    Get the value at a given index.
    Type Parameters:
    T -
    Parameters:
    index -
    Returns:
    Since:
    2.1
  • get

    protected <T> T get(Object key)
    Get the value for a given key.
    Type Parameters:
    T -
    Parameters:
    key -
    Returns:
    Since:
    2.1
  • argumentMap

    protected Map<String,Object> argumentMap()
    Get the argument map.
    Returns:
    Since:
    2.1
  • contains

    protected boolean contains(Object key)
    Check if the given key is available.
    Parameters:
    key -
    Returns:
    Since:
    2.1