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.
|
org.modeshape.jcr.query.model |
The Abstract Query Model is a vocabulary that can be used to construct a language-neutral representation of a query.
|
org.modeshape.jcr.value |
Nodes in a graph contain properties, and this package defines the interfaces, classes and exceptions for
representing and working with properties and their values.
|
Modifier and Type | Class and Description |
---|---|
protected static class |
Tuples.Tuple2TypeFactory<T1,T2> |
protected static class |
Tuples.Tuple3TypeFactory<T1,T2,T3> |
protected static class |
Tuples.Tuple4TypeFactory<T1,T2,T3,T4> |
protected static class |
Tuples.TupleNTypeFactory |
Modifier and Type | Field and Description |
---|---|
protected TypeSystem.TypeFactory<?>[] |
Tuples.TupleNTypeFactory.types |
Modifier and Type | Method and Description |
---|---|
TypeSystem.TypeFactory<?> |
RowExtractors.ExtractFromRow.getType()
Get the type of value that this extractor will return from
RowExtractors.ExtractFromRow.getValueInRow(org.modeshape.jcr.query.NodeSequence.RowAccessor) . |
static TypeSystem.TypeFactory<?> |
Tuples.typeFactory(Collection<TypeSystem.TypeFactory<?>> types)
Create a type factory for n-ary tuples.
|
static TypeSystem.TypeFactory<?> |
Tuples.typeFactory(TypeSystem.TypeFactory<?> type,
int tupleSize)
Create a type factory for uniform tuples.
|
static <T1,T2> TypeSystem.TypeFactory<Tuples.Tuple2<T1,T2>> |
Tuples.typeFactory(TypeSystem.TypeFactory<T1> type1,
TypeSystem.TypeFactory<T2> type2)
Create a type factory for tuples of size 2.
|
static <T1,T2,T3> TypeSystem.TypeFactory<Tuples.Tuple3<T1,T2,T3>> |
Tuples.typeFactory(TypeSystem.TypeFactory<T1> type1,
TypeSystem.TypeFactory<T2> type2,
TypeSystem.TypeFactory<T3> type3)
Create a type factory for tuples of size 3.
|
static <T1,T2,T3,T4> |
Tuples.typeFactory(TypeSystem.TypeFactory<T1> type1,
TypeSystem.TypeFactory<T2> type2,
TypeSystem.TypeFactory<T3> type3,
TypeSystem.TypeFactory<T4> type4)
Create a type factory for tuples of size 4.
|
Modifier and Type | Method and Description |
---|---|
org.mapdb.BTreeKeySerializer<?> |
BufferManager.bTreeKeySerializerFor(TypeSystem.TypeFactory<?> type,
boolean pack)
Obtain a serializer for the given key type.
|
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 void |
RowExtractors.extractFullTextFrom(Object propertyValue,
TypeSystem.TypeFactory<String> type,
BinaryStore binaries,
StringBuilder fullTextString) |
protected static void |
RowExtractors.extractFullTextFrom(Property property,
TypeSystem.TypeFactory<String> type,
StringBuilder fullTextString,
BinaryStore binaries,
CachedNode node,
NodeCache cache) |
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.
|
org.mapdb.Serializer<?> |
BufferManager.serializerFor(TypeSystem.TypeFactory<?> type)
Obtain a serializer for the given value type.
|
static TypeSystem.TypeFactory<?> |
Tuples.typeFactory(TypeSystem.TypeFactory<?> type,
int tupleSize)
Create a type factory for uniform tuples.
|
static <T1,T2> TypeSystem.TypeFactory<Tuples.Tuple2<T1,T2>> |
Tuples.typeFactory(TypeSystem.TypeFactory<T1> type1,
TypeSystem.TypeFactory<T2> type2)
Create a type factory for tuples of size 2.
|
static <T1,T2> TypeSystem.TypeFactory<Tuples.Tuple2<T1,T2>> |
Tuples.typeFactory(TypeSystem.TypeFactory<T1> type1,
TypeSystem.TypeFactory<T2> type2)
Create a type factory for tuples of size 2.
|
static <T1,T2,T3> TypeSystem.TypeFactory<Tuples.Tuple3<T1,T2,T3>> |
Tuples.typeFactory(TypeSystem.TypeFactory<T1> type1,
TypeSystem.TypeFactory<T2> type2,
TypeSystem.TypeFactory<T3> type3)
Create a type factory for tuples of size 3.
|
static <T1,T2,T3> TypeSystem.TypeFactory<Tuples.Tuple3<T1,T2,T3>> |
Tuples.typeFactory(TypeSystem.TypeFactory<T1> type1,
TypeSystem.TypeFactory<T2> type2,
TypeSystem.TypeFactory<T3> type3)
Create a type factory for tuples of size 3.
|
static <T1,T2,T3> TypeSystem.TypeFactory<Tuples.Tuple3<T1,T2,T3>> |
Tuples.typeFactory(TypeSystem.TypeFactory<T1> type1,
TypeSystem.TypeFactory<T2> type2,
TypeSystem.TypeFactory<T3> type3)
Create a type factory for tuples of size 3.
|
static <T1,T2,T3,T4> |
Tuples.typeFactory(TypeSystem.TypeFactory<T1> type1,
TypeSystem.TypeFactory<T2> type2,
TypeSystem.TypeFactory<T3> type3,
TypeSystem.TypeFactory<T4> type4)
Create a type factory for tuples of size 4.
|
static <T1,T2,T3,T4> |
Tuples.typeFactory(TypeSystem.TypeFactory<T1> type1,
TypeSystem.TypeFactory<T2> type2,
TypeSystem.TypeFactory<T3> type3,
TypeSystem.TypeFactory<T4> type4)
Create a type factory for tuples of size 4.
|
static <T1,T2,T3,T4> |
Tuples.typeFactory(TypeSystem.TypeFactory<T1> type1,
TypeSystem.TypeFactory<T2> type2,
TypeSystem.TypeFactory<T3> type3,
TypeSystem.TypeFactory<T4> type4)
Create a type factory for tuples of size 4.
|
static <T1,T2,T3,T4> |
Tuples.typeFactory(TypeSystem.TypeFactory<T1> type1,
TypeSystem.TypeFactory<T2> type2,
TypeSystem.TypeFactory<T3> type3,
TypeSystem.TypeFactory<T4> type4)
Create a type factory for tuples of size 4.
|
Modifier and Type | Method and Description |
---|---|
static TypeSystem.TypeFactory<?> |
Tuples.typeFactory(Collection<TypeSystem.TypeFactory<?>> types)
Create a type factory for n-ary tuples.
|
Constructor and Description |
---|
Tuples.TupleNTypeFactory(Collection<TypeSystem.TypeFactory<?>> typeFactories) |
Modifier and Type | Method and Description |
---|---|
protected TypeSystem.TypeFactory<?> |
ScanningQueryEngine.determineType(DynamicOperand operand,
QueryContext context,
QueryResults.Columns columns) |
TypeSystem.TypeFactory<?> |
ScanningQueryEngine.PropertyValueExtractor.getType() |
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 static Object |
ScanningQueryEngine.literalValue(StaticOperand staticOperand,
QueryContext context,
TypeSystem.TypeFactory<?> type)
Get the literal value that is defined in the supplied
StaticOperand . |
protected static Set<?> |
ScanningQueryEngine.literalValues(SetCriteria setCriteria,
QueryContext context,
TypeSystem.TypeFactory<?> type) |
Constructor and Description |
---|
ScanningQueryEngine.PropertyValueExtractor(String selectorName,
String propertyName,
TypeSystem.TypeFactory<?> typeFactory) |
Constructor and Description |
---|
DependentQuery(NodeSequence independentQuery,
RowExtractors.ExtractFromRow independentQueryValueExtractor,
TypeSystem.TypeFactory<?> expectedType,
NodeSequence dependentQuery,
String variableName,
Map<String,Object> variables) |
Modifier and Type | Method and Description |
---|---|
abstract TypeSystem.TypeFactory<BinaryValue> |
TypeSystem.getBinaryFactory()
Get the type factory for binary objects.
|
abstract TypeSystem.TypeFactory<Boolean> |
TypeSystem.getBooleanFactory()
Get the type factory for boolean types.
|
abstract TypeSystem.TypeFactory<?> |
TypeSystem.getCompatibleType(TypeSystem.TypeFactory<?> type1,
TypeSystem.TypeFactory<?> type2)
Get the type that is compatible with both of the supplied types.
|
abstract TypeSystem.TypeFactory<?> |
TypeSystem.getDateTimeFactory()
Get the type factory for date-time objects.
|
abstract TypeSystem.TypeFactory<BigDecimal> |
TypeSystem.getDecimalFactory()
Get the type factory for decimal types.
|
abstract TypeSystem.TypeFactory<Double> |
TypeSystem.getDoubleFactory()
Get the type factory for double types.
|
abstract TypeSystem.TypeFactory<Long> |
TypeSystem.getLongFactory()
Get the type factory for long types.
|
abstract TypeSystem.TypeFactory<Name> |
TypeSystem.getNameFactory()
Get the type factory for name objects.
|
abstract TypeSystem.TypeFactory<NodeKey> |
TypeSystem.getNodeKeyFactory()
Get the type factory for node key objects.
|
abstract TypeSystem.TypeFactory<Path> |
TypeSystem.getPathFactory()
Get the type factory for path objects.
|
abstract TypeSystem.TypeFactory<Reference> |
TypeSystem.getReferenceFactory()
Get the type factory for references objects.
|
abstract TypeSystem.TypeFactory<String> |
TypeSystem.getStringFactory()
Get the type factory for string types.
|
abstract TypeSystem.TypeFactory<?> |
TypeSystem.getTypeFactory(Object prototype)
Get the type factory for the type denoted by the supplied prototype value.
|
abstract TypeSystem.TypeFactory<?> |
TypeSystem.getTypeFactory(String typeName)
Get the type factory given the name of the type.
|
static <T> TypeSystem.TypeFactory<T> |
TypeSystem.with(TypeSystem.TypeFactory<T> original,
Order order,
NullOrder nullOrder)
|
static <T> TypeSystem.TypeFactory<T> |
TypeSystem.withComparator(TypeSystem.TypeFactory<T> original,
Comparator<T> comparator)
Return a new type factory that has a comparator that inverts the normal comparison.
|
static <T> TypeSystem.TypeFactory<T> |
TypeSystem.withOppositeComparator(TypeSystem.TypeFactory<T> original)
Return a new type factory that has a comparator that inverts the normal comparison.
|
Modifier and Type | Method and Description |
---|---|
abstract TypeSystem.TypeFactory<?> |
TypeSystem.getCompatibleType(TypeSystem.TypeFactory<?> type1,
TypeSystem.TypeFactory<?> type2)
Get the type that is compatible with both of the supplied types.
|
abstract TypeSystem.TypeFactory<?> |
TypeSystem.getCompatibleType(TypeSystem.TypeFactory<?> type1,
TypeSystem.TypeFactory<?> type2)
Get the type that is compatible with both of the supplied types.
|
static <T> TypeSystem.TypeFactory<T> |
TypeSystem.with(TypeSystem.TypeFactory<T> original,
Order order,
NullOrder nullOrder)
|
static <T> TypeSystem.TypeFactory<T> |
TypeSystem.withComparator(TypeSystem.TypeFactory<T> original,
Comparator<T> comparator)
Return a new type factory that has a comparator that inverts the normal comparison.
|
static <T> TypeSystem.TypeFactory<T> |
TypeSystem.withOppositeComparator(TypeSystem.TypeFactory<T> original)
Return a new type factory that has a comparator that inverts the normal comparison.
|
Modifier and Type | Class and Description |
---|---|
protected class |
ValueTypeSystem.Factory<T> |
protected static class |
ValueTypeSystem.NodeKeyTypeFactory |
Modifier and Type | Method and Description |
---|---|
TypeSystem.TypeFactory<?> |
ValueTypeSystem.getCompatibleType(TypeSystem.TypeFactory<?> type1,
TypeSystem.TypeFactory<?> type2) |
TypeSystem.TypeFactory<?> |
ValueTypeSystem.getCompatibleType(TypeSystem.TypeFactory<?> type1,
TypeSystem.TypeFactory<?> type2) |
Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.