Package com.arcadedb.query.sql.parser
Class LocalResultSetLifecycleDecorator
- java.lang.Object
-
- com.arcadedb.query.sql.parser.LocalResultSetLifecycleDecorator
-
- All Implemented Interfaces:
ResultSet
,AutoCloseable
,Iterator<Result>
,Spliterator<Result>
public class LocalResultSetLifecycleDecorator extends Object implements ResultSet
Created by luigidellaquila on 05/12/16.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface java.util.Spliterator
Spliterator.OfDouble, Spliterator.OfInt, Spliterator.OfLong, Spliterator.OfPrimitive<T extends Object,T_CONS extends Object,T_SPLITR extends Spliterator.OfPrimitive<T,T_CONS,T_SPLITR>>
-
-
Field Summary
-
Fields inherited from interface java.util.Spliterator
CONCURRENT, DISTINCT, IMMUTABLE, NONNULL, ORDERED, SIZED, SORTED, SUBSIZED
-
-
Constructor Summary
Constructors Constructor Description LocalResultSetLifecycleDecorator(InternalResultSet rsCopy, String queryId)
LocalResultSetLifecycleDecorator(ResultSet entity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addLifecycleListener(QueryLifecycleListener db)
void
close()
Optional<ExecutionPlan>
getExecutionPlan()
String
getQueryId()
Map<String,Long>
getQueryStats()
boolean
hasNext()
boolean
hasNextPage()
boolean
isDetached()
Result
next()
void
setHasNextPage(boolean b)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.arcadedb.query.sql.executor.ResultSet
characteristics, countEntries, edgeStream, elementStream, estimateSize, forEachRemaining, remove, reset, stream, tryAdvance, trySplit, vertexStream
-
Methods inherited from interface java.util.Spliterator
getComparator, getExactSizeIfKnown, hasCharacteristics
-
-
-
-
Constructor Detail
-
LocalResultSetLifecycleDecorator
public LocalResultSetLifecycleDecorator(ResultSet entity)
-
LocalResultSetLifecycleDecorator
public LocalResultSetLifecycleDecorator(InternalResultSet rsCopy, String queryId)
-
-
Method Detail
-
addLifecycleListener
public void addLifecycleListener(QueryLifecycleListener db)
-
hasNext
public boolean hasNext()
-
next
public Result next()
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceResultSet
-
getExecutionPlan
public Optional<ExecutionPlan> getExecutionPlan()
- Specified by:
getExecutionPlan
in interfaceResultSet
-
getQueryStats
public Map<String,Long> getQueryStats()
- Specified by:
getQueryStats
in interfaceResultSet
-
getQueryId
public String getQueryId()
-
hasNextPage
public boolean hasNextPage()
-
setHasNextPage
public void setHasNextPage(boolean b)
-
isDetached
public boolean isDetached()
-
-