Class OpInsert
- java.lang.Object
-
- de.caluga.morphium.driver.wireprotocol.WireProtocolMessage
-
- de.caluga.morphium.driver.wireprotocol.OpInsert
-
public class OpInsert 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 intCONTINUE_ON_ERROR_FLAG
-
Constructor Summary
Constructors Constructor Description OpInsert()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDocument(Doc doc)List<Doc>getDocuments()intgetFlags()StringgetFullConnectionName()intgetOpCode()byte[]getPayload()voidparsePayload(byte[] bytes, int offset)voidsetDocuments(List<Doc> documents)voidsetFlags(int flags)voidsetFullConnectionName(String fullConnectionName)-
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
-
CONTINUE_ON_ERROR_FLAG
public static final int CONTINUE_ON_ERROR_FLAG
- See Also:
- Constant Field Values
-
-
Method Detail
-
addDocument
public void addDocument(Doc doc)
-
getFlags
public int getFlags()
-
setFlags
public void setFlags(int flags)
-
getFullConnectionName
public String getFullConnectionName()
-
setFullConnectionName
public void setFullConnectionName(String fullConnectionName)
-
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
-
-