Package com.arcadedb.query.sql.executor
Class EmptyResult
- java.lang.Object
-
- com.arcadedb.query.sql.executor.EmptyResult
-
- All Implemented Interfaces:
Result
public class EmptyResult extends Object implements Result
Empty Result.- Author:
- Luca Garulli ([email protected])
-
-
Constructor Summary
Constructors Constructor Description EmptyResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<Document>
getElement()
Record
getElementProperty(String name)
returns an OElement property from the resultOptional<RID>
getIdentity()
Object
getMetadata(String key)
return metadata related to current result given a keySet<String>
getMetadataKeys()
return all the metadata keys available<T> T
getProperty(String name)
Returns the value for the property.<T> T
getProperty(String name, Object defaultValue)
Returns the value for the property.Set<String>
getPropertyNames()
Optional<Record>
getRecord()
boolean
hasProperty(String varName)
boolean
isElement()
boolean
isProjection()
Document
toElement()
Map<String,Object>
toMap()
-
-
-
Method Detail
-
getProperty
public <T> T getProperty(String name)
Description copied from interface:Result
Returns the value for the property.- Specified by:
getProperty
in interfaceResult
- Parameters:
name
- the property name- Returns:
- the property value. If the property value is a persistent record, it only returns the RID. See also
Result.getElementProperty(String)
-
getProperty
public <T> T getProperty(String name, Object defaultValue)
Description copied from interface:Result
Returns the value for the property. If the property does not exist, then the `defaultValue` is returned.- Specified by:
getProperty
in interfaceResult
- Parameters:
name
- the property namedefaultValue
- default value to return in case the property is missing- Returns:
- the property value. If the property value is a persistent record, it only returns the RID. See also
Result.getElementProperty(String)
-
getElementProperty
public Record getElementProperty(String name)
Description copied from interface:Result
returns an OElement property from the result- Specified by:
getElementProperty
in interfaceResult
- Parameters:
name
- the property name- Returns:
- the property value. Null if the property is not defined or if it's not an OElement
-
getPropertyNames
public Set<String> getPropertyNames()
- Specified by:
getPropertyNames
in interfaceResult
-
getIdentity
public Optional<RID> getIdentity()
- Specified by:
getIdentity
in interfaceResult
-
getElement
public Optional<Document> getElement()
- Specified by:
getElement
in interfaceResult
-
isProjection
public boolean isProjection()
- Specified by:
isProjection
in interfaceResult
-
getMetadata
public Object getMetadata(String key)
Description copied from interface:Result
return metadata related to current result given a key- Specified by:
getMetadata
in interfaceResult
- Parameters:
key
- the metadata key- Returns:
- metadata related to current result given a key
-
getMetadataKeys
public Set<String> getMetadataKeys()
Description copied from interface:Result
return all the metadata keys available- Specified by:
getMetadataKeys
in interfaceResult
- Returns:
- all the metadata keys available
-
hasProperty
public boolean hasProperty(String varName)
- Specified by:
hasProperty
in interfaceResult
-
-