public final class BitOperation extends Object
Bit operations on bitmap items nested in lists/maps are not currently supported by the server.
Constructor and Description |
---|
BitOperation() |
Modifier and Type | Method and Description |
---|---|
static Operation |
add(BitPolicy policy,
String binName,
int bitOffset,
int bitSize,
long value,
boolean signed,
BitOverflowAction action)
Create bit "add" operation.
|
static Operation |
and(BitPolicy policy,
String binName,
int bitOffset,
int bitSize,
byte[] value)
Create bit "and" operation.
|
static Operation |
count(String binName,
int bitOffset,
int bitSize)
Create bit "count" operation.
|
static Operation |
get(String binName,
int bitOffset,
int bitSize)
Create bit "get" operation.
|
static Operation |
getInt(String binName,
int bitOffset,
int bitSize,
boolean signed)
Create bit "get integer" operation.
|
static Operation |
insert(BitPolicy policy,
String binName,
int byteOffset,
byte[] value)
Create byte "insert" operation.
|
static Operation |
lscan(String binName,
int bitOffset,
int bitSize,
boolean value)
Create bit "left scan" operation.
|
static Operation |
lshift(BitPolicy policy,
String binName,
int bitOffset,
int bitSize,
int shift)
Create bit "left shift" operation.
|
static Operation |
not(BitPolicy policy,
String binName,
int bitOffset,
int bitSize)
Create bit "not" operation.
|
static Operation |
or(BitPolicy policy,
String binName,
int bitOffset,
int bitSize,
byte[] value)
Create bit "or" operation.
|
static Operation |
remove(BitPolicy policy,
String binName,
int byteOffset,
int byteSize)
Create byte "remove" operation.
|
static Operation |
resize(BitPolicy policy,
String binName,
int byteSize,
int resizeFlags)
Create byte "resize" operation.
|
static Operation |
rscan(String binName,
int bitOffset,
int bitSize,
boolean value)
Create bit "right scan" operation.
|
static Operation |
rshift(BitPolicy policy,
String binName,
int bitOffset,
int bitSize,
int shift)
Create bit "right shift" operation.
|
static Operation |
set(BitPolicy policy,
String binName,
int bitOffset,
int bitSize,
byte[] value)
Create bit "set" operation.
|
static Operation |
setInt(BitPolicy policy,
String binName,
int bitOffset,
int bitSize,
long value)
Create bit "setInt" operation.
|
static Operation |
subtract(BitPolicy policy,
String binName,
int bitOffset,
int bitSize,
long value,
boolean signed,
BitOverflowAction action)
Create bit "subtract" operation.
|
static Operation |
xor(BitPolicy policy,
String binName,
int bitOffset,
int bitSize,
byte[] value)
Create bit "exclusive or" operation.
|
public static Operation resize(BitPolicy policy, String binName, int byteSize, int resizeFlags)
BitResizeFlags
).
Server does not return a value.
Example:
public static Operation insert(BitPolicy policy, String binName, int byteOffset, byte[] value)
public static Operation remove(BitPolicy policy, String binName, int byteOffset, int byteSize)
public static Operation set(BitPolicy policy, String binName, int bitOffset, int bitSize, byte[] value)
public static Operation or(BitPolicy policy, String binName, int bitOffset, int bitSize, byte[] value)
public static Operation xor(BitPolicy policy, String binName, int bitOffset, int bitSize, byte[] value)
public static Operation and(BitPolicy policy, String binName, int bitOffset, int bitSize, byte[] value)
public static Operation not(BitPolicy policy, String binName, int bitOffset, int bitSize)
public static Operation lshift(BitPolicy policy, String binName, int bitOffset, int bitSize, int shift)
public static Operation rshift(BitPolicy policy, String binName, int bitOffset, int bitSize, int shift)
public static Operation add(BitPolicy policy, String binName, int bitOffset, int bitSize, long value, boolean signed, BitOverflowAction action)
BitOverflowAction
is used.
Server does not return a value.
Example:
public static Operation subtract(BitPolicy policy, String binName, int bitOffset, int bitSize, long value, boolean signed, BitOverflowAction action)
BitOverflowAction
is used.
Server does not return a value.
Example:
public static Operation setInt(BitPolicy policy, String binName, int bitOffset, int bitSize, long value)
public static Operation get(String binName, int bitOffset, int bitSize)
public static Operation count(String binName, int bitOffset, int bitSize)
public static Operation lscan(String binName, int bitOffset, int bitSize, boolean value)
public static Operation rscan(String binName, int bitOffset, int bitSize, boolean value)
public static Operation getInt(String binName, int bitOffset, int bitSize, boolean signed)
Copyright © 2012–2023 Aerospike, Inc. All rights reserved.