Class OpUpdate
- java.lang.Object
-
- de.caluga.morphium.driver.wireprotocol.WireProtocolMessage
-
- de.caluga.morphium.driver.wireprotocol.OpUpdate
-
public class OpUpdate extends WireProtocolMessage
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.caluga.morphium.driver.wireprotocol.WireProtocolMessage
WireProtocolMessage.OpCode
-
-
Field Summary
Fields Modifier and Type Field Description static intMULTI_FLAGstatic intUPSERT_FLAG
-
Constructor Summary
Constructors Constructor Description OpUpdate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetFlags()StringgetFullCollectionName()intgetOpCode()byte[]getPayload()DocgetSelector()DocgetUpdate()voidparsePayload(byte[] bytes, int offset)voidsetFlags(int flags)voidsetFullCollectionName(String fullCollectionName)voidsetSelector(Doc selector)voidsetUpdate(Doc update)-
Methods inherited from class de.caluga.morphium.driver.wireprotocol.WireProtocolMessage
bytes, getMessageId, getResponseTo, getSize, parseFromStream, readInt, readLong, readString, setMessageId, setResponseTo, setSize, strLen, writeInt, writeLong, writeString
-
-
-
-
Field Detail
-
UPSERT_FLAG
public static final int UPSERT_FLAG
- See Also:
- Constant Field Values
-
MULTI_FLAG
public static final int MULTI_FLAG
- See Also:
- Constant Field Values
-
-
Method Detail
-
getFullCollectionName
public String getFullCollectionName()
-
setFullCollectionName
public void setFullCollectionName(String fullCollectionName)
-
getFlags
public int getFlags()
-
setFlags
public void setFlags(int flags)
-
getSelector
public Doc getSelector()
-
setSelector
public void setSelector(Doc selector)
-
getUpdate
public Doc getUpdate()
-
setUpdate
public void setUpdate(Doc update)
-
parsePayload
public void parsePayload(byte[] bytes, int offset) throws IOException- Specified by:
parsePayloadin classWireProtocolMessage- Throws:
IOException
-
getPayload
public byte[] getPayload() throws IOException- Specified by:
getPayloadin classWireProtocolMessage- Throws:
IOException
-
getOpCode
public int getOpCode()
- Specified by:
getOpCodein classWireProtocolMessage
-
-