public static class Neo4jPack.Packer extends PackStream.Packer implements org.neo4j.values.AnyValueWriter<IOException>
org.neo4j.values.storable.ValueWriter.Adapter<E extends Exception>, org.neo4j.values.storable.ValueWriter.ArrayType| Constructor and Description |
|---|
Packer(PackOutput output) |
| 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() |
boolean |
hasErrors() |
void |
pack(org.neo4j.values.AnyValue value) |
void |
packRawMap(org.neo4j.values.virtual.MapValue map) |
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 labels,
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 |
writeUTF8(byte[] bytes,
int offset,
int length) |
flush, pack, pack, pack, pack, pack, pack, packEndOfStream, packListHeader, packListStreamHeader, packMapHeader, packMapStreamHeader, packNull, packStructHeader, packUTF8public Packer(PackOutput output)
public void pack(org.neo4j.values.AnyValue value)
throws IOException
IOExceptionpublic void packRawMap(org.neo4j.values.virtual.MapValue map)
throws IOException
IOExceptionpublic boolean hasErrors()
public void writeNodeReference(long nodeId)
throws IOException
writeNodeReference in interface org.neo4j.values.AnyValueWriter<IOException>IOExceptionpublic void writeNode(long nodeId,
org.neo4j.values.storable.TextArray labels,
org.neo4j.values.virtual.MapValue properties)
throws IOException
writeNode in interface org.neo4j.values.AnyValueWriter<IOException>IOExceptionpublic void writeEdgeReference(long edgeId)
throws IOException
writeEdgeReference in interface org.neo4j.values.AnyValueWriter<IOException>IOExceptionpublic void writeEdge(long edgeId,
long startNodeId,
long endNodeId,
org.neo4j.values.storable.TextValue type,
org.neo4j.values.virtual.MapValue properties)
throws IOException
writeEdge in interface org.neo4j.values.AnyValueWriter<IOException>IOExceptionpublic void beginMap(int size)
throws IOException
beginMap in interface org.neo4j.values.AnyValueWriter<IOException>IOExceptionpublic void endMap()
throws IOException
endMap in interface org.neo4j.values.AnyValueWriter<IOException>IOExceptionpublic void beginList(int size)
throws IOException
beginList in interface org.neo4j.values.AnyValueWriter<IOException>IOExceptionpublic void endList()
throws IOException
endList in interface org.neo4j.values.AnyValueWriter<IOException>IOExceptionpublic void writePath(org.neo4j.values.virtual.NodeValue[] nodes,
org.neo4j.values.virtual.EdgeValue[] edges)
throws IOException
writePath in interface org.neo4j.values.AnyValueWriter<IOException>IOExceptionpublic void beginPoint(org.neo4j.values.virtual.CoordinateReferenceSystem coordinateReferenceSystem)
throws IOException
beginPoint in interface org.neo4j.values.AnyValueWriter<IOException>IOExceptionpublic void endPoint()
throws IOException
endPoint in interface org.neo4j.values.AnyValueWriter<IOException>IOExceptionpublic void writeNull()
throws IOException
writeNull in interface org.neo4j.values.storable.ValueWriter<IOException>IOExceptionpublic void writeBoolean(boolean value)
throws IOException
writeBoolean in interface org.neo4j.values.storable.ValueWriter<IOException>IOExceptionpublic void writeInteger(byte value)
throws IOException
writeInteger in interface org.neo4j.values.storable.ValueWriter<IOException>IOExceptionpublic void writeInteger(short value)
throws IOException
writeInteger in interface org.neo4j.values.storable.ValueWriter<IOException>IOExceptionpublic void writeInteger(int value)
throws IOException
writeInteger in interface org.neo4j.values.storable.ValueWriter<IOException>IOExceptionpublic void writeInteger(long value)
throws IOException
writeInteger in interface org.neo4j.values.storable.ValueWriter<IOException>IOExceptionpublic void writeFloatingPoint(float value)
throws IOException
writeFloatingPoint in interface org.neo4j.values.storable.ValueWriter<IOException>IOExceptionpublic void writeFloatingPoint(double value)
throws IOException
writeFloatingPoint in interface org.neo4j.values.storable.ValueWriter<IOException>IOExceptionpublic void writeUTF8(byte[] bytes,
int offset,
int length)
throws IOException
writeUTF8 in interface org.neo4j.values.storable.ValueWriter<IOException>IOExceptionpublic void writeString(String value) throws IOException
writeString in interface org.neo4j.values.storable.ValueWriter<IOException>IOExceptionpublic void writeString(char value)
throws IOException
writeString in interface org.neo4j.values.storable.ValueWriter<IOException>IOExceptionpublic void writeString(char[] value,
int offset,
int length)
throws IOException
writeString in interface org.neo4j.values.storable.ValueWriter<IOException>IOExceptionpublic void beginArray(int size,
org.neo4j.values.storable.ValueWriter.ArrayType arrayType)
throws IOException
beginArray in interface org.neo4j.values.storable.ValueWriter<IOException>IOExceptionpublic void endArray()
throws IOException
endArray in interface org.neo4j.values.storable.ValueWriter<IOException>IOExceptionpublic void writeByteArray(byte[] value)
throws IOException
writeByteArray in interface org.neo4j.values.storable.ValueWriter<IOException>IOExceptionCopyright © 2002–2018 The Neo4j Graph Database Project. All rights reserved.