Package redis.clients.jedis.graph
Class ResultSetBuilder
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classprivate classprivate classprivate static enumprivate class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final ResultSet.ColumnType[]private final GraphCacheprivate static final ResultSetBuilder.ScalarType[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserializeArray(Object rawScalarData) private EdgedeserializeEdge(List<Object> rawEdgeData) private voiddeserializeGraphEntityId(GraphEntity graphEntity, long id) private voiddeserializeGraphEntityProperties(GraphEntity entity, List<List<Object>> rawProperties) deserializeMap(Object rawScalarData) private NodedeserializeNode(List<Object> rawNodeData) private PathdeserializePath(Object rawScalarData) private ObjectdeserializePoint(Object rawScalarData) private ObjectdeserializeScalar(List<Object> rawScalarData) private static ResultSetBuilder.ScalarTypegetScalarType(int index) private ResultSetBuilder.ScalarTypegetValueTypeFromObject(Object rawScalarType) Auxiliary function to retrieve scalar typesprivate ResultSetBuilder.HeaderImplparseHeader(Object data) parseRecords(Header header, Object data) private ResultSetBuilder.StatisticsImplparseStatistics(Object data)
-
Field Details
-
graphCache
-
SCALAR_TYPES
-
COLUMN_TYPES
-
-
Constructor Details
-
ResultSetBuilder
ResultSetBuilder(GraphCache cache)
-
-
Method Details
-
build
-
parseRecords
-
deserializeNode
- Parameters:
rawNodeData- - raw node object in the form of list of object rawNodeData.get(0) - id (long) rawNodeData.get(1) - a list y which contains the labels of this node. Each entry is a label id from the type of long rawNodeData.get(2) - a list which contains the properties of the node.- Returns:
- Node object
-
deserializeGraphEntityId
- Parameters:
graphEntity- graph entityid- entity id to be set to the graph entity
-
deserializeEdge
- Parameters:
rawEdgeData- - a list of objects rawEdgeData[0] - edge id rawEdgeData[1] - edge relationship type rawEdgeData[2] - edge source rawEdgeData[3] - edge destination rawEdgeData[4] - edge properties- Returns:
- Edge object
-
deserializeGraphEntityProperties
- Parameters:
entity- graph entity for adding the properties torawProperties- raw representation of a list of graph entity properties. Each entry is a list (rawProperty) is a raw representation of property, as follows: rawProperty.get(0) - property key rawProperty.get(1) - property type rawProperty.get(2) - property value
-
deserializeScalar
- Parameters:
rawScalarData- - a list of object. list[0] is the scalar type, list[1] is the scalar value- Returns:
- value of the specific scalar type
-
deserializePoint
-
deserializeMap
-
deserializePath
-
deserializeArray
-
getValueTypeFromObject
Auxiliary function to retrieve scalar types- Parameters:
rawScalarType-- Returns:
- scalar type
-
getScalarType
-
parseHeader
-
parseStatistics
-