Package | Description |
---|---|
org.modeshape.jcr.query |
The Query API provides a mechanism for building and executing queries.
|
org.modeshape.jcr.query.engine |
This package contains several fully-functional query engine implementations.
|
org.modeshape.jcr.query.engine.process |
When executing a query, the processing phase involves "running" each branch in the optimized query plan, determining
the set of nodes that satisfies each branch, and then joining each branch into a single result.
|
Modifier and Type | Method and Description |
---|---|
static RowExtractors.ExtractFromRow |
RowExtractors.convert(RowExtractors.ExtractFromRow extractor,
TypeSystem.TypeFactory<?> newType)
Obtain a new
RowExtractors.ExtractFromRow instance that uses the supplied row extractor but converts the value to the supplied
type. |
static RowExtractors.ExtractFromRow |
RowExtractors.extractFullText(int indexInRow,
NodeCache cache,
Name propertyName,
TypeSystem types,
BinaryStore binaries)
Obtain a new
RowExtractors.ExtractFromRow instance that will extract the full text for a single property of a node. |
static RowExtractors.ExtractFromRow |
RowExtractors.extractFullText(int indexInRow,
NodeCache cache,
TypeSystem types,
BinaryStore binaries)
Obtain a new
RowExtractors.ExtractFromRow instance that will extract the full text for a node. |
static RowExtractors.ExtractFromRow |
RowExtractors.extractLocalName(int indexInRow,
NodeCache cache,
TypeSystem types)
Create an extractor that extracts the name from the node at the given position in the row.
|
static RowExtractors.ExtractFromRow |
RowExtractors.extractName(int indexInRow,
NodeCache cache,
TypeSystem types)
Create an extractor that extracts the name from the node at the given position in the row.
|
static RowExtractors.ExtractFromRow |
RowExtractors.extractNodeKey(int indexInRow,
NodeCache cache,
TypeSystem types)
Create an extractor that extracts the
NodeKey from the node at the given position in the row. |
static RowExtractors.ExtractFromRow |
RowExtractors.extractorWith(Collection<RowExtractors.ExtractFromRow> extractors)
Obtain an extractor of a tuple containing each of the values from the supplied extractors.
|
static RowExtractors.ExtractFromRow |
RowExtractors.extractorWith(RowExtractors.ExtractFromRow extractor,
Order order,
NullOrder nullOrder)
Create an extractor that has a
type factory with a comparator that sorts according to the specified order and null-order behavior. |
static RowExtractors.ExtractFromRow |
RowExtractors.extractorWith(RowExtractors.ExtractFromRow first,
RowExtractors.ExtractFromRow second)
Obtain an extractor of a tuple containing each of the values from the supplied extractors.
|
static RowExtractors.ExtractFromRow |
RowExtractors.extractorWith(RowExtractors.ExtractFromRow first,
RowExtractors.ExtractFromRow second,
RowExtractors.ExtractFromRow third)
Obtain an extractor of a tuple containing each of the values from the supplied extractors.
|
static RowExtractors.ExtractFromRow |
RowExtractors.extractorWith(RowExtractors.ExtractFromRow first,
RowExtractors.ExtractFromRow second,
RowExtractors.ExtractFromRow third,
RowExtractors.ExtractFromRow fourth)
Obtain an extractor of a tuple containing each of the values from the supplied extractors.
|
static RowExtractors.ExtractFromRow |
RowExtractors.extractParentNodeKey(int indexInRow,
NodeCache cache,
TypeSystem types)
Create an extractor that extracts the parent's
NodeKey from the node at the given position in the row. |
static RowExtractors.ExtractFromRow |
RowExtractors.extractParentPath(int indexInRow,
NodeCache cache,
TypeSystem types)
Create an extractor that extracts the parent path from the node at the given position in the row.
|
static RowExtractors.ExtractFromRow |
RowExtractors.extractPath(int indexInRow,
NodeCache cache,
TypeSystem types)
Create an extractor that extracts the path from the node at the given position in the row.
|
static RowExtractors.ExtractFromRow |
RowExtractors.extractPropertyValue(Name propertyName,
int indexInRow,
NodeCache cache,
TypeSystem.TypeFactory<?> desiredType)
Create an extractor that extracts the property value from the node at the given position in the row.
|
static RowExtractors.ExtractFromRow |
RowExtractors.extractRelativePath(int indexInRow,
Path relativePath,
NodeCache cache,
TypeSystem types)
Create an extractor that extracts the path from the node at the given position in the row and applies the relative path.
|
static RowExtractors.ExtractFromRow |
RowExtractors.extractUniqueKey(int rowWidth,
TypeSystem types)
Create an extractor that extracts an object that uniquely identifies the row.
|
Modifier and Type | Method and Description |
---|---|
static RowExtractors.ExtractFromRow |
RowExtractors.convert(RowExtractors.ExtractFromRow extractor,
TypeSystem.TypeFactory<?> newType)
Obtain a new
RowExtractors.ExtractFromRow instance that uses the supplied row extractor but converts the value to the supplied
type. |
static RowExtractors.ExtractFromRow |
RowExtractors.extractorWith(RowExtractors.ExtractFromRow extractor,
Order order,
NullOrder nullOrder)
Create an extractor that has a
type factory with a comparator that sorts according to the specified order and null-order behavior. |
static RowExtractors.ExtractFromRow |
RowExtractors.extractorWith(RowExtractors.ExtractFromRow first,
RowExtractors.ExtractFromRow second)
Obtain an extractor of a tuple containing each of the values from the supplied extractors.
|
static RowExtractors.ExtractFromRow |
RowExtractors.extractorWith(RowExtractors.ExtractFromRow first,
RowExtractors.ExtractFromRow second,
RowExtractors.ExtractFromRow third)
Obtain an extractor of a tuple containing each of the values from the supplied extractors.
|
static RowExtractors.ExtractFromRow |
RowExtractors.extractorWith(RowExtractors.ExtractFromRow first,
RowExtractors.ExtractFromRow second,
RowExtractors.ExtractFromRow third,
RowExtractors.ExtractFromRow fourth)
Obtain an extractor of a tuple containing each of the values from the supplied extractors.
|
Modifier and Type | Method and Description |
---|---|
static RowExtractors.ExtractFromRow |
RowExtractors.extractorWith(Collection<RowExtractors.ExtractFromRow> extractors)
Obtain an extractor of a tuple containing each of the values from the supplied extractors.
|
Modifier and Type | Class and Description |
---|---|
protected static class |
ScanningQueryEngine.PropertyValueExtractor |
Modifier and Type | Method and Description |
---|---|
protected RowExtractors.ExtractFromRow |
ScanningQueryEngine.createExtractFromRow(DynamicOperand operand,
QueryContext context,
QueryResults.Columns columns,
QuerySources sources,
TypeSystem.TypeFactory<?> defaultType,
boolean allowMultiValued,
boolean isLike)
Create a
RowExtractors.ExtractFromRow implementation that performs the supplied DynamicOperand against a current row in
the current batch. |
protected RowExtractors.ExtractFromRow |
ScanningQueryEngine.createExtractFromRow(String selectorName,
String propertyName,
QueryContext context,
QueryResults.Columns columns,
QuerySources sources,
TypeSystem.TypeFactory<?> defaultType,
boolean allowMultiValued)
Create a
RowExtractors.ExtractFromRow implementation that accesses the value(s) in the property identified by the supplied
selector and property names. |
protected RowExtractors.ExtractFromRow |
ScanningQueryEngine.createExtractReferencesFromRow(String selectorName,
QueryContext context,
QueryResults.Columns columns,
QuerySources sources,
TypeSystem.TypeFactory<?> defaultType)
Create a
RowExtractors.ExtractFromRow implementation that accesses the REFERENCE value(s) in the properties of the node
identified by the supplied selector names. |
protected RowExtractors.ExtractFromRow |
ScanningQueryEngine.createSortingExtractor(List<Ordering> orderings,
Map<SelectorName,SelectorName> sourceNamesByAlias,
QueryContext context,
QueryResults.Columns columns,
QuerySources sources)
Create an
RowExtractors.ExtractFromRow instance that produces for given row a single object that can be used to sort all rows in
the specified order. |
protected RowExtractors.ExtractFromRow |
ScanningQueryEngine.createSortingExtractor(Ordering ordering,
Map<SelectorName,SelectorName> sourceNamesByAlias,
QueryContext context,
QueryResults.Columns columns,
QuerySources sources)
Create an
RowExtractors.ExtractFromRow instance that produces for given row a single object that can be used to sort all rows in
the specified order. |
Constructor and Description |
---|
ScanningQueryEngine.DynamicOperandFilter(RowExtractors.ExtractFromRow extractor) |
Modifier and Type | Field and Description |
---|---|
protected RowExtractors.ExtractFromRow |
BufferingSequence.extractor |
protected RowExtractors.ExtractFromRow |
DistinctSequence.keyExtractor |
protected RowExtractors.ExtractFromRow |
JoinSequence.leftExtractor |
Modifier and Type | Method and Description |
---|---|
protected int |
BufferingSequence.loadAll(NodeSequence sequence,
RowExtractors.ExtractFromRow extractor,
BufferManager.DistinctBuffer<BufferedRows.BufferedRow> rowsWithNullKey)
Load all of the rows from the supplied sequence into the buffer.
|
Constructor and Description |
---|
BufferingSequence(String workspaceName,
NodeSequence delegate,
RowExtractors.ExtractFromRow extractor,
BufferManager bufferMgr,
CachedNodeSupplier nodeCache,
boolean pack,
boolean useHeap,
boolean allowDuplicates) |
DependentQuery(NodeSequence independentQuery,
RowExtractors.ExtractFromRow independentQueryValueExtractor,
TypeSystem.TypeFactory<?> expectedType,
NodeSequence dependentQuery,
String variableName,
Map<String,Object> variables) |
HashJoinSequence(String workspaceName,
NodeSequence left,
NodeSequence right,
RowExtractors.ExtractFromRow leftExtractor,
RowExtractors.ExtractFromRow rightExtractor,
JoinType joinType,
BufferManager bufferMgr,
CachedNodeSupplier nodeCache,
JoinSequence.RangeProducer<?> rangeProducer,
boolean pack,
boolean useHeap) |
JoinSequence(String workspaceName,
NodeSequence left,
NodeSequence right,
RowExtractors.ExtractFromRow leftExtractor,
RowExtractors.ExtractFromRow rightExtractor,
JoinType joinType,
BufferManager bufferMgr,
CachedNodeSupplier nodeCache,
boolean pack,
boolean useHeap,
boolean allowDuplicates) |
SortingSequence(String workspaceName,
NodeSequence delegate,
RowExtractors.ExtractFromRow extractor,
BufferManager bufferMgr,
CachedNodeSupplier nodeCache,
boolean pack,
boolean useHeap,
boolean allowDuplicates,
NullOrder nullOrder) |
Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.