public class DefaultCandidateExtent<T> extends AbstractExtent<T> implements AutoCloseable
Modifier and Type | Field and Description |
---|---|
protected Map<Iterator,QueryResult> |
queryResultsByIterator
Map of the iterators of the Extents accessed.
|
candidateClass, cmd, ec, subclasses
Constructor and Description |
---|
DefaultCandidateExtent(ExecutionContext ec,
Class<T> cls,
boolean subclasses,
AbstractClassMetaData cmd)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
close(Iterator<T> iterator)
Close the specified iterator.
|
void |
closeAll()
Close all iterators and all resources for this extent.
|
ExecutionContext |
getExecutionContext()
Accessor for the owning execution context.
|
FetchPlan |
getFetchPlan() |
boolean |
hasSubclasses()
Returns whether this Extent was defined to contain subclasses.
|
Iterator<T> |
iterator()
Accessor for an iterator over the extent.
|
getCandidateClass, toString
protected Map<Iterator,QueryResult> queryResultsByIterator
public DefaultCandidateExtent(ExecutionContext ec, Class<T> cls, boolean subclasses, AbstractClassMetaData cmd)
ec
- execution contextcls
- candidate classsubclasses
- Whether to include subclassescmd
- MetaData for the candidate classpublic Iterator<T> iterator()
Extent
public boolean hasSubclasses()
AbstractExtent
hasSubclasses
in interface Extent<T>
hasSubclasses
in class AbstractExtent<T>
public ExecutionContext getExecutionContext()
AbstractExtent
getExecutionContext
in interface Extent<T>
getExecutionContext
in class AbstractExtent<T>
public FetchPlan getFetchPlan()
getFetchPlan
in interface Extent<T>
public void close()
close
in interface AutoCloseable
public void closeAll()
Extent
Copyright © 2019. All rights reserved.