com.aerospike.client
Class Operation

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

public final class Operation
extends Object

Database operation definition. The class is used in client's operate() method.


Nested Class Summary
static class Operation.Type
           
 
Field Summary
 String binName
          Optional bin name used in operation.
 Value binValue
          Optional bin value used in operation.
 Operation.Type type
          Type of operation.
 
Method Summary
static Operation add(Bin bin)
          Create integer add database operation.
static Operation append(Bin bin)
          Create string append database operation.
static Operation get()
          Create read all record bins database operation.
static Operation get(String binName)
          Create read bin database operation.
static Operation getHeader()
          Create read record header database operation.
static Operation prepend(Bin bin)
          Create string prepend database operation.
static Operation put(Bin bin)
          Create set database operation.
static Operation touch()
          Create touch database operation.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

public final Operation.Type type
Type of operation.


binName

public final String binName
Optional bin name used in operation.


binValue

public final Value binValue
Optional bin value used in operation.

Method Detail

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 add database operation.


touch

public static Operation touch()
Create touch database operation.



Copyright © 2012–2014 Aerospike, Inc. All rights reserved.