Package com.arcadedb.query.sql.executor
Class ResultInternal
- java.lang.Object
-
- com.arcadedb.query.sql.executor.ResultInternal
-
- All Implemented Interfaces:
Result
- Direct Known Subclasses:
TraverseResult
,UpdatableResult
public class ResultInternal extends Object implements Result
Created by luigidellaquila on 06/07/16.
-
-
Constructor Summary
Constructors Constructor Description ResultInternal()
ResultInternal(Document ident)
ResultInternal(Identifiable ident)
ResultInternal(Map<String,Object> map)
-
Method Summary
-
-
-
Constructor Detail
-
ResultInternal
public ResultInternal()
-
ResultInternal
public ResultInternal(Document ident)
-
ResultInternal
public ResultInternal(Identifiable ident)
-
-
Method Detail
-
removeProperty
public void removeProperty(String name)
-
getProperty
public <T> T getProperty(String name)
Description copied from interface:Result
returns a property from the result- 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)
-
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
-
hasProperty
public boolean hasProperty(String propName)
- Specified by:
hasProperty
in interfaceResult
-
getElement
public Optional<Document> getElement()
- Specified by:
getElement
in interfaceResult
-
getIdentity
public Optional<RID> getIdentity()
- Specified by:
getIdentity
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
-
clearMetadata
public void clearMetadata()
-
removeMetadata
public void removeMetadata(String 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
-
setElement
public void setElement(Document element)
-
-