Package com.arcadedb.query.sql.executor
Class InternalResultSet
- java.lang.Object
-
- com.arcadedb.query.sql.executor.InternalResultSet
-
- All Implemented Interfaces:
ResultSet
,AutoCloseable
,Iterator<Result>
,Spliterator<Result>
public class InternalResultSet extends Object implements ResultSet
Created by luigidellaquila on 07/07/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 Modifier and Type Field Description protected ExecutionPlan
plan
-
Fields inherited from interface java.util.Spliterator
CONCURRENT, DISTINCT, IMMUTABLE, NONNULL, ORDERED, SIZED, SORTED, SUBSIZED
-
-
Constructor Summary
Constructors Constructor Description InternalResultSet()
InternalResultSet(ResultInternal result)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(Result nextResult)
void
close()
InternalResultSet
copy()
long
estimateSize()
Optional<ExecutionPlan>
getExecutionPlan()
Map<String,Long>
getQueryStats()
boolean
hasNext()
Result
next()
void
reset()
void
setPlan(ExecutionPlan plan)
-
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, forEachRemaining, remove, stream, tryAdvance, trySplit, vertexStream
-
Methods inherited from interface java.util.Spliterator
getComparator, getExactSizeIfKnown, hasCharacteristics
-
-
-
-
Field Detail
-
plan
protected ExecutionPlan plan
-
-
Constructor Detail
-
InternalResultSet
public InternalResultSet()
-
InternalResultSet
public InternalResultSet(ResultInternal result)
-
-
Method Detail
-
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
-
setPlan
public void setPlan(ExecutionPlan plan)
-
getQueryStats
public Map<String,Long> getQueryStats()
- Specified by:
getQueryStats
in interfaceResultSet
-
add
public void add(Result nextResult)
-
estimateSize
public long estimateSize()
- Specified by:
estimateSize
in interfaceResultSet
- Specified by:
estimateSize
in interfaceSpliterator<Result>
-
copy
public InternalResultSet copy()
-
-