Class TupleOperationDelete
- java.lang.Object
-
- io.tarantool.driver.api.tuple.operations.TupleOperationDelete
-
- All Implemented Interfaces:
TupleOperation
,Packable
,Serializable
public class TupleOperationDelete extends Object
Represents deletion operation on tuple- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Integer
fieldIndex
protected String
fieldName
protected boolean
isProxyOperation
protected TarantoolUpdateOperationType
operationType
protected Object
value
-
Constructor Summary
Constructors Constructor Description TupleOperationDelete(int fieldIndex, int value)
TupleOperationDelete(String fieldName, int value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TupleOperation
cloneWithIndex(int fieldMetadataIndex)
boolean
equals(Object o)
Integer
getFieldIndex()
String
getFieldName()
protected Integer
getFieldNumber()
Convert field index to field numberTarantoolUpdateOperationType
getOperationType()
Object
getValue()
int
hashCode()
Boolean
isProxyOperation()
org.msgpack.value.Value
toMessagePackValue(MessagePackObjectMapper mapper)
Convert this instance into a corresponding MessagePackValue
TupleOperation
toProxyTupleOperation()
-
-
-
Field Detail
-
isProxyOperation
protected final boolean isProxyOperation
-
operationType
protected final TarantoolUpdateOperationType operationType
-
fieldIndex
protected final Integer fieldIndex
-
fieldName
protected final String fieldName
-
value
protected final Object value
-
-
Constructor Detail
-
TupleOperationDelete
public TupleOperationDelete(int fieldIndex, int value)
-
TupleOperationDelete
public TupleOperationDelete(String fieldName, int value)
-
-
Method Detail
-
toProxyTupleOperation
public TupleOperation toProxyTupleOperation()
-
cloneWithIndex
public TupleOperation cloneWithIndex(int fieldMetadataIndex)
-
toMessagePackValue
public org.msgpack.value.Value toMessagePackValue(MessagePackObjectMapper mapper)
Description copied from interface:Packable
Convert this instance into a corresponding MessagePackValue
- Specified by:
toMessagePackValue
in interfacePackable
- Parameters:
mapper
- configured Java objects to entities mapper- Returns:
- MessagePack entity
-
getOperationType
public TarantoolUpdateOperationType getOperationType()
- Specified by:
getOperationType
in interfaceTupleOperation
-
getFieldIndex
public Integer getFieldIndex()
- Specified by:
getFieldIndex
in interfaceTupleOperation
-
getFieldName
public String getFieldName()
- Specified by:
getFieldName
in interfaceTupleOperation
-
getValue
public Object getValue()
- Specified by:
getValue
in interfaceTupleOperation
-
isProxyOperation
public Boolean isProxyOperation()
- Specified by:
isProxyOperation
in interfaceTupleOperation
-
getFieldNumber
protected Integer getFieldNumber()
Convert field index to field number- Returns:
- field number started from 1
-
-