E - public abstract class BaseToObjectValueWriter<E extends Exception> extends Object implements org.neo4j.values.AnyValueWriter<E>
This base class takes care of converting all "normal" java types such as number types, booleans, strings, arrays and lists. It leaves to the extending class to handle neo4j specific types such as nodes, edges and points.
org.neo4j.values.storable.ValueWriter.Adapter<E extends Exception>, org.neo4j.values.storable.ValueWriter.ArrayType| Constructor and Description |
|---|
BaseToObjectValueWriter() |
| Modifier and Type | Method and Description |
|---|---|
void |
beginArray(int size,
org.neo4j.values.storable.ValueWriter.ArrayType arrayType) |
void |
beginList(int size) |
void |
beginMap(int size) |
void |
beginPoint(org.neo4j.values.virtual.CoordinateReferenceSystem coordinateReferenceSystem) |
void |
endArray() |
void |
endList() |
void |
endMap() |
void |
endPoint() |
Object |
value() |
void |
writeBoolean(boolean value) |
void |
writeByteArray(byte[] value) |
void |
writeEdge(long edgeId,
long startNodeId,
long endNodeId,
org.neo4j.values.storable.TextValue type,
org.neo4j.values.virtual.MapValue properties) |
void |
writeEdgeReference(long edgeId) |
void |
writeFloatingPoint(double value) |
void |
writeFloatingPoint(float value) |
void |
writeInteger(byte value) |
void |
writeInteger(int value) |
void |
writeInteger(long value) |
void |
writeInteger(short value) |
void |
writeNode(long nodeId,
org.neo4j.values.storable.TextArray ignore,
org.neo4j.values.virtual.MapValue properties) |
void |
writeNodeReference(long nodeId) |
void |
writeNull() |
void |
writePath(org.neo4j.values.virtual.NodeValue[] nodes,
org.neo4j.values.virtual.EdgeValue[] edges) |
void |
writeString(char value) |
void |
writeString(char[] value,
int offset,
int length) |
void |
writeString(String value) |
void |
writeVirtualEdgeHack(Object relationship) |
void |
writeVirtualNodeHack(Object node) |
public Object value()
public void writeNodeReference(long nodeId)
throws RuntimeException
writeNodeReference in interface org.neo4j.values.AnyValueWriter<E extends Exception>RuntimeExceptionpublic void writeNode(long nodeId,
org.neo4j.values.storable.TextArray ignore,
org.neo4j.values.virtual.MapValue properties)
throws RuntimeException
writeNode in interface org.neo4j.values.AnyValueWriter<E extends Exception>RuntimeExceptionpublic void writeVirtualNodeHack(Object node)
public void writeEdgeReference(long edgeId)
throws RuntimeException
writeEdgeReference in interface org.neo4j.values.AnyValueWriter<E extends Exception>RuntimeExceptionpublic void writeEdge(long edgeId,
long startNodeId,
long endNodeId,
org.neo4j.values.storable.TextValue type,
org.neo4j.values.virtual.MapValue properties)
throws RuntimeException
writeEdge in interface org.neo4j.values.AnyValueWriter<E extends Exception>RuntimeExceptionpublic void writeVirtualEdgeHack(Object relationship)
public void beginMap(int size)
throws RuntimeException
beginMap in interface org.neo4j.values.AnyValueWriter<E extends Exception>RuntimeExceptionpublic void endMap()
throws RuntimeException
endMap in interface org.neo4j.values.AnyValueWriter<E extends Exception>RuntimeExceptionpublic void beginList(int size)
throws RuntimeException
beginList in interface org.neo4j.values.AnyValueWriter<E extends Exception>RuntimeExceptionpublic void endList()
throws RuntimeException
endList in interface org.neo4j.values.AnyValueWriter<E extends Exception>RuntimeExceptionpublic void writePath(org.neo4j.values.virtual.NodeValue[] nodes,
org.neo4j.values.virtual.EdgeValue[] edges)
throws RuntimeException
writePath in interface org.neo4j.values.AnyValueWriter<E extends Exception>RuntimeExceptionpublic void beginPoint(org.neo4j.values.virtual.CoordinateReferenceSystem coordinateReferenceSystem)
throws RuntimeException
beginPoint in interface org.neo4j.values.AnyValueWriter<E extends Exception>RuntimeExceptionpublic void endPoint()
throws RuntimeException
endPoint in interface org.neo4j.values.AnyValueWriter<E extends Exception>RuntimeExceptionpublic void writeNull()
throws RuntimeException
writeNull in interface org.neo4j.values.storable.ValueWriter<E extends Exception>RuntimeExceptionpublic void writeBoolean(boolean value)
throws RuntimeException
writeBoolean in interface org.neo4j.values.storable.ValueWriter<E extends Exception>RuntimeExceptionpublic void writeInteger(byte value)
throws RuntimeException
writeInteger in interface org.neo4j.values.storable.ValueWriter<E extends Exception>RuntimeExceptionpublic void writeInteger(short value)
throws RuntimeException
writeInteger in interface org.neo4j.values.storable.ValueWriter<E extends Exception>RuntimeExceptionpublic void writeInteger(int value)
throws RuntimeException
writeInteger in interface org.neo4j.values.storable.ValueWriter<E extends Exception>RuntimeExceptionpublic void writeInteger(long value)
throws RuntimeException
writeInteger in interface org.neo4j.values.storable.ValueWriter<E extends Exception>RuntimeExceptionpublic void writeFloatingPoint(float value)
throws RuntimeException
writeFloatingPoint in interface org.neo4j.values.storable.ValueWriter<E extends Exception>RuntimeExceptionpublic void writeFloatingPoint(double value)
throws RuntimeException
writeFloatingPoint in interface org.neo4j.values.storable.ValueWriter<E extends Exception>RuntimeExceptionpublic void writeString(String value) throws RuntimeException
writeString in interface org.neo4j.values.storable.ValueWriter<E extends Exception>RuntimeExceptionpublic void writeString(char value)
throws RuntimeException
writeString in interface org.neo4j.values.storable.ValueWriter<E extends Exception>RuntimeExceptionpublic void writeString(char[] value,
int offset,
int length)
throws RuntimeException
writeString in interface org.neo4j.values.storable.ValueWriter<E extends Exception>RuntimeExceptionpublic void beginArray(int size,
org.neo4j.values.storable.ValueWriter.ArrayType arrayType)
throws RuntimeException
beginArray in interface org.neo4j.values.storable.ValueWriter<E extends Exception>RuntimeExceptionpublic void endArray()
throws RuntimeException
endArray in interface org.neo4j.values.storable.ValueWriter<E extends Exception>RuntimeExceptionpublic void writeByteArray(byte[] value)
throws RuntimeException
writeByteArray in interface org.neo4j.values.storable.ValueWriter<E extends Exception>RuntimeExceptionCopyright © 2002–2017 The Neo4j Graph Database Project. All rights reserved.