Constructor and Description |
---|
OResultBinary(ODatabaseSession db,
byte[] bytes,
int offset,
int fieldLength,
ODocumentSerializer serializer,
ORecordId id) |
OResultBinary(OImmutableSchema schema,
byte[] bytes,
int offset,
int fieldLength,
ODocumentSerializer serializer) |
Modifier and Type | Method and Description |
---|---|
Optional<OBlob> |
getBlob() |
OBlob |
getBlobProperty(String name)
returns an OEdge property from the result
|
byte[] |
getBytes() |
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
|
int |
getFieldLength() |
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
|
int |
getOffset() |
<T> T |
getProperty(String name)
returns a property from the result
|
Set<String> |
getPropertyNames() |
Optional<ORecord> |
getRecord() |
OVertex |
getVertexProperty(String name)
returns an OVertex property from the result
|
boolean |
hasProperty(String varName) |
boolean |
isBlob() |
boolean |
isElement() |
boolean |
isProjection() |
OElement |
toElement() |
public OResultBinary(OImmutableSchema schema, byte[] bytes, int offset, int fieldLength, ODocumentSerializer serializer)
public OResultBinary(ODatabaseSession db, byte[] bytes, int offset, int fieldLength, ODocumentSerializer serializer, ORecordId id)
public int getFieldLength()
public int getOffset()
public byte[] getBytes()
public <T> T getProperty(String name)
OResult
getProperty
in interface OResult
name
- the property nameOResult.getElementProperty(String)
OResult.getVertexProperty(String)
OResult.getEdgeProperty(String)
OResult.getBlobProperty(String)
public OElement getElementProperty(String name)
OResult
getElementProperty
in interface OResult
name
- the property namepublic OVertex getVertexProperty(String name)
OResult
getVertexProperty
in interface OResult
name
- the property namepublic OEdge getEdgeProperty(String name)
OResult
getEdgeProperty
in interface OResult
name
- the property namepublic OBlob getBlobProperty(String name)
OResult
getBlobProperty
in interface OResult
name
- the property namepublic Set<String> getPropertyNames()
getPropertyNames
in interface OResult
public Optional<ORID> getIdentity()
getIdentity
in interface OResult
public Optional<OElement> getElement()
getElement
in interface OResult
public boolean isProjection()
isProjection
in interface OResult
public Object getMetadata(String key)
OResult
getMetadata
in interface OResult
key
- the metadata keypublic Set<String> getMetadataKeys()
OResult
getMetadataKeys
in interface OResult
public boolean hasProperty(String varName)
hasProperty
in interface OResult
Copyright © 2009–2020 OrientDB. All rights reserved.