|
||||||||||
| 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.DeleteCommand
public static class IndexCommand.DeleteCommand
| 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 | |
|---|---|
boolean |
isConsideredNormalWriteCommand()
|
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 |
|---|
endNodeNeedsLong, equals, execute, getEntityId, getEntityType, getIndexNameId, getKeyId, getValue, needsLong, putIntOrLong, readCommand, startNodeNeedsLong, 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 void writeToFile(LogBuffer buffer)
throws IOException
XaCommandXaLogicalLog. 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 IndexCommandbuffer - A small byte buffer that can be used to write command data
IOException - In case of *real* IO failurepublic boolean isConsideredNormalWriteCommand()
isConsideredNormalWriteCommand in class IndexCommand
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||