Class Operation

java.lang.Object
com.aerospike.client.Operation

public final class Operation extends Object
Database operation definition. The class is used in client's operate() method.
  • Field Details

    • type

      public final Operation.Type type
      Type of operation.
    • binName

      public final String binName
      Optional bin name used in operation.
    • value

      public final Value value
      Optional argument to operation.
  • Constructor Details

  • Method Details

    • get

      public static Operation get(String binName)
      Create read bin database operation.
    • get

      public static Operation get()
      Create read all record bins database operation.
    • getHeader

      public static Operation getHeader()
      Create read record header database operation.
    • put

      public static Operation put(Bin bin)
      Create set database operation.
    • append

      public static Operation append(Bin bin)
      Create string append database operation.
    • prepend

      public static Operation prepend(Bin bin)
      Create string prepend database operation.
    • add

      public static Operation add(Bin bin)
      Create integer/double add database operation. If the record or bin does not exist, the record/bin will be created by default with the value to be added.
    • touch

      public static Operation touch()
      Create touch record database operation.
    • delete

      public static Operation delete()
      Create delete record database operation.
    • array

      public static Operation[] array(Operation... ops)
      Create array of operations from varargs. This method can be useful when its important to save identical array pointer references. Using varargs directly always generates new references.