public interface OResult
Modifier and Type | Method and Description |
---|---|
default String |
encode(String s) |
Optional<OBlob> |
getBlob() |
OBlob |
getBlobProperty(String name)
returns an OEdge property from the result
|
default Optional<OEdge> |
getEdge() |
OEdge |
getEdgeProperty(String name)
returns an OEdge property from the result
|
Optional<OElement> |
getElement() |
OElement |
getElementProperty(String name)
returns an OElement property from the result
|
Optional<ORID> |
getIdentity() |
Object |
getMetadata(String key)
return metadata related to current result given a key
|
Set<String> |
getMetadataKeys()
return all the metadata keys available
|
<T> T |
getProperty(String name)
returns a property from the result
|
Set<String> |
getPropertyNames() |
Optional<ORecord> |
getRecord() |
default Optional<OVertex> |
getVertex() |
OVertex |
getVertexProperty(String name)
returns an OVertex property from the result
|
boolean |
hasProperty(String varName) |
boolean |
isBlob() |
default boolean |
isEdge() |
boolean |
isElement() |
boolean |
isProjection() |
default boolean |
isRecord() |
default boolean |
isVertex() |
OElement |
toElement() |
default String |
toJSON() |
default String |
toJson(Object val) |
<T> T getProperty(String name)
T
- name
- the property namegetElementProperty(String)
getVertexProperty(String)
getEdgeProperty(String)
getBlobProperty(String)
OElement getElementProperty(String name)
name
- the property nameOVertex getVertexProperty(String name)
name
- the property nameOEdge getEdgeProperty(String name)
name
- the property nameOBlob getBlobProperty(String name)
name
- the property nameboolean isElement()
OElement toElement()
default boolean isVertex()
default boolean isEdge()
boolean isBlob()
default boolean isRecord()
boolean isProjection()
Object getMetadata(String key)
key
- the metadata keySet<String> getMetadataKeys()
default String toJSON()
boolean hasProperty(String varName)
Copyright © 2009–2020 OrientDB. All rights reserved.