Class OResultBinary
java.lang.Object
com.orientechnologies.orient.core.serialization.serializer.record.binary.OResultBinary
- All Implemented Interfaces:
OResult
- Author:
- mdjurovi
-
Constructor Summary
ConstructorsConstructorDescriptionOResultBinary(ODatabaseSession db, byte[] bytes, int offset, int fieldLength, ODocumentSerializer serializer, ORecordId id) OResultBinary(OImmutableSchema schema, byte[] bytes, int offset, int fieldLength, ODocumentSerializer serializer) -
Method Summary
Modifier and TypeMethodDescriptiongetBlob()getBlobProperty(String name) returns an OBlob property from the resultbyte[]getBytes()getEdgeProperty(String name) returns an OEdge property from the resultgetElementProperty(String name) returns an OElement property from the resultintgetMetadata(String key) return metadata related to current result given a keyreturn all the metadata keys availableint<T> TgetProperty(String name) returns a property from the resultgetVertexProperty(String name) returns an OVertex property from the resultbooleanhasProperty(String varName) booleanisBlob()booleanboolean
-
Constructor Details
-
OResultBinary
public OResultBinary(OImmutableSchema schema, byte[] bytes, int offset, int fieldLength, ODocumentSerializer serializer) -
OResultBinary
public OResultBinary(ODatabaseSession db, byte[] bytes, int offset, int fieldLength, ODocumentSerializer serializer, ORecordId id)
-
-
Method Details
-
getFieldLength
public int getFieldLength() -
getOffset
public int getOffset() -
getBytes
public byte[] getBytes() -
getProperty
Description copied from interface:OResultreturns a property from the result- Specified by:
getPropertyin interfaceOResult- Type Parameters:
T-- Parameters:
name- the property name- Returns:
- the property value. If the property value is a persistent record, it only returns the
RID. See also
OResult.getElementProperty(String)OResult.getVertexProperty(String)OResult.getEdgeProperty(String)OResult.getBlobProperty(String)
-
getElementProperty
Description copied from interface:OResultreturns an OElement property from the result- Specified by:
getElementPropertyin interfaceOResult- Parameters:
name- the property name- Returns:
- the property value. Null if the property is not defined or if it's not an OElement
-
getVertexProperty
Description copied from interface:OResultreturns an OVertex property from the result- Specified by:
getVertexPropertyin interfaceOResult- Parameters:
name- the property name- Returns:
- the property value. Null if the property is not defined or if it's not an OVertex
-
getEdgeProperty
Description copied from interface:OResultreturns an OEdge property from the result- Specified by:
getEdgePropertyin interfaceOResult- Parameters:
name- the property name- Returns:
- the property value. Null if the property is not defined or if it's not an OEdge
-
getBlobProperty
Description copied from interface:OResultreturns an OBlob property from the result- Specified by:
getBlobPropertyin interfaceOResult- Parameters:
name- the property name- Returns:
- the property value. Null if the property is not defined or if it's not an OBlob
-
getPropertyNames
- Specified by:
getPropertyNamesin interfaceOResult
-
getIdentity
- Specified by:
getIdentityin interfaceOResult
-
isElement
public boolean isElement() -
getElement
- Specified by:
getElementin interfaceOResult
-
toElement
-
isBlob
public boolean isBlob() -
getBlob
-
getRecord
-
isProjection
public boolean isProjection()- Specified by:
isProjectionin interfaceOResult
-
getMetadata
Description copied from interface:OResultreturn metadata related to current result given a key- Specified by:
getMetadatain interfaceOResult- Parameters:
key- the metadata key- Returns:
- metadata related to current result given a key
-
getMetadataKeys
Description copied from interface:OResultreturn all the metadata keys available- Specified by:
getMetadataKeysin interfaceOResult- Returns:
- all the metadata keys available
-
hasProperty
- Specified by:
hasPropertyin interfaceOResult
-