|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.neo4j.kernel.impl.transaction.xaframework.XaCommand
org.neo4j.kernel.impl.index.IndexCommand
org.neo4j.kernel.impl.index.IndexCommand.AddRelationshipCommand
public static class IndexCommand.AddRelationshipCommand
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.neo4j.kernel.impl.index.IndexCommand |
---|
IndexCommand.AddCommand, IndexCommand.AddRelationshipCommand, IndexCommand.CreateCommand, IndexCommand.DeleteCommand, IndexCommand.RemoveCommand |
Field Summary |
---|
Fields inherited from class org.neo4j.kernel.impl.index.IndexCommand |
---|
NODE, RELATIONSHIP |
Method Summary | |
---|---|
protected byte |
endNodeNeedsLong()
|
boolean |
equals(Object obj)
|
long |
getEndNode()
|
long |
getStartNode()
|
protected byte |
startNodeNeedsLong()
|
void |
writeToFile(LogBuffer buffer)
When a command is added to a transaction (usually when it is created) it must be written to the XaLogicalLog . |
Methods inherited from class org.neo4j.kernel.impl.index.IndexCommand |
---|
execute, getEntityId, getEntityType, getIndexNameId, getKeyId, getValue, isConsideredNormalWriteCommand, needsLong, putIntOrLong, readCommand, writeHeader |
Methods inherited from class org.neo4j.kernel.impl.transaction.xaframework.XaCommand |
---|
isRecovered, rollback, setRecovered |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public long getStartNode()
public long getEndNode()
protected byte startNodeNeedsLong()
startNodeNeedsLong
in class IndexCommand
protected byte endNodeNeedsLong()
endNodeNeedsLong
in class IndexCommand
public void writeToFile(LogBuffer buffer) throws IOException
XaCommand
XaLogicalLog
. This method should write
all the data that is needed to re-create the command (see
XaCommandFactory
).
Write the data to the fileChannel
, you can use the
buffer
supplied or create your own buffer since its capacity
is very small (137 bytes or something). Acccess to writing commands is
synchronized, only one command will be written at a time so if you need
to write larger data sets the commands can share the same buffer.
Don't throw an IOException
to imply something is wrong
with the command. An exception should only be thrown here if there is a
real IO failure. If something is wrong with this command it should have
been detected when it was created.
Don't force
, position
or anything except
normal forward write
with the file channel.
writeToFile
in class IndexCommand
buffer
- A small byte buffer that can be used to write command data
IOException
- In case of *real* IO failurepublic boolean equals(Object obj)
equals
in class IndexCommand
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |