Class ListReturnType

java.lang.Object
com.aerospike.client.cdt.ListReturnType

public final class ListReturnType extends Object
List return type. Type of data to return when selecting or removing items from the list.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Return count of items selected.
    static final int
    Return true if count > 0.
    static final int
    Return index offset order.
    static final int
    Invert meaning of list command and return values.
    static final int
    Do not return a result.
    static final int
    Return value order.
    static final int
    Return reverse index offset order.
    static final int
    Return reverse value order.
    static final int
    Return value for single key read and value list for range read.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • NONE

      public static final int NONE
      Do not return a result.
      See Also:
    • INDEX

      public static final int INDEX
      Return index offset order.
      • 0 = first key
      • N = Nth key
      • -1 = last key
      See Also:
    • REVERSE_INDEX

      public static final int REVERSE_INDEX
      Return reverse index offset order.
      • 0 = last key
      • -1 = first key
      See Also:
    • RANK

      public static final int RANK
      Return value order.
      • 0 = smallest value
      • N = Nth smallest value
      • -1 = largest value
      See Also:
    • REVERSE_RANK

      public static final int REVERSE_RANK
      Return reverse value order.
      • 0 = largest value
      • N = Nth largest value
      • -1 = smallest value
      See Also:
    • COUNT

      public static final int COUNT
      Return count of items selected.
      See Also:
    • VALUE

      public static final int VALUE
      Return value for single key read and value list for range read.
      See Also:
    • EXISTS

      public static final int EXISTS
      Return true if count > 0.
      See Also:
    • INVERTED

      public static final int INVERTED
      Invert meaning of list command and return values. For example:
      ListOperation.removeByIndexRange(binName, index, count, ListReturnType.VALUE | ListReturnType.INVERTED);
      With the INVERTED flag enabled, the items outside of the specified index range will be removed and returned.
      See Also:
  • Constructor Details

    • ListReturnType

      public ListReturnType()