Package | Description |
---|---|
org.modeshape.jcr.cache | |
org.modeshape.jcr.cache.change | |
org.modeshape.jcr.cache.document | |
org.modeshape.jcr.query.lucene |
The core query engine, which currently uses Lucene for indexing and raw queries, and
the Hibernate Search engine (which does not depend on or use Hibernate Core or JPA)
for updating and querying the Lucene indexes.
|
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.
|
org.modeshape.jcr.value.basic |
A set of basic implementations of the various interfaces defined in
org.modeshape.jcr.value . |
org.modeshape.jcr.value.binary |
Modifier and Type | Method and Description |
---|---|
Path.Segment |
ChildReference.getSegment() |
Path.Segment |
CachedNode.getSegment(NodeCache cache)
Get the path segment for this node.
|
Modifier and Type | Method and Description |
---|---|
ChildReference |
ChildReferences.getChild(Path.Segment segment)
Look for the child reference that has the given name and SNS index.
|
Constructor and Description |
---|
ChildReference(NodeKey key,
Path.Segment segment) |
Modifier and Type | Method and Description |
---|---|
Path.Segment |
NodeRenamed.getOldSegment()
Get the old segment for the node.
|
Modifier and Type | Method and Description |
---|---|
void |
RecordingChanges.nodeRenamed(NodeKey key,
Path newPath,
Path.Segment oldName) |
void |
NoOpChanges.nodeRenamed(NodeKey key,
Path path,
Path.Segment oldName) |
void |
Changes.nodeRenamed(NodeKey key,
Path newPath,
Path.Segment oldName)
Signal that a node was renamed (but still has the same parent)
|
Constructor and Description |
---|
NodeRenamed(NodeKey key,
Path newPath,
Path.Segment oldSegment) |
Modifier and Type | Method and Description |
---|---|
Path.Segment |
SessionNode.getSegment(NodeCache cache) |
Path.Segment |
LazyCachedNode.getSegment(NodeCache cache) |
protected Path.Segment |
SessionNode.getSegment(NodeCache cache,
CachedNode parent)
Get the segment for this node.
|
protected Path.Segment |
LazyCachedNode.getSegment(WorkspaceCache cache)
Get the name for this node, without any same-name-sibiling (SNS) index.
|
Modifier and Type | Method and Description |
---|---|
protected List<Path.Segment> |
DocumentTranslator.segmentsFrom(List<?> segmentValues) |
Modifier and Type | Method and Description |
---|---|
ChildReference |
ImmutableChildReferences.EmptyChildReferences.getChild(Path.Segment segment) |
ChildReference |
AbstractChildReferences.getChild(Path.Segment segment) |
Modifier and Type | Method and Description |
---|---|
protected Path.Segment |
CompareNameQuery.readFromDocument(org.apache.lucene.index.IndexReader reader,
int docId) |
Modifier and Type | Method and Description |
---|---|
static org.apache.lucene.search.Query |
CompareNameQuery.createQueryForNodesWithNameEqualTo(Path.Segment constraintValue,
String localNameField,
String snsIndexFieldName,
ValueFactories factories,
CaseOperations.CaseOperation caseOperation,
boolean includeSns)
Construct a
Query implementation that scores documents such that the node represented by the document has a name
that is greater than the supplied constraint name. |
static CompareNameQuery |
CompareNameQuery.createQueryForNodesWithNameGreaterThan(Path.Segment constraintValue,
String localNameField,
String snsIndexFieldName,
ValueFactories factories,
CaseOperations.CaseOperation caseOperation,
boolean includeSns)
Construct a
Query implementation that scores documents such that the node represented by the document has a name
that is greater than the supplied constraint name. |
static CompareNameQuery |
CompareNameQuery.createQueryForNodesWithNameGreaterThanOrEqualTo(Path.Segment constraintValue,
String localNameField,
String snsIndexFieldName,
ValueFactories factories,
CaseOperations.CaseOperation caseOperation,
boolean includeSns)
Construct a
Query implementation that scores documents such that the node represented by the document has a name
that is greater than or equal to the supplied constraint name. |
static CompareNameQuery |
CompareNameQuery.createQueryForNodesWithNameLessThan(Path.Segment constraintValue,
String localNameField,
String snsIndexFieldName,
ValueFactories factories,
CaseOperations.CaseOperation caseOperation,
boolean includeSns)
Construct a
Query implementation that scores documents such that the node represented by the document has a name
that is less than the supplied constraint name. |
static CompareNameQuery |
CompareNameQuery.createQueryForNodesWithNameLessThanOrEqualTo(Path.Segment constraintValue,
String localNameField,
String snsIndexFieldName,
ValueFactories factories,
CaseOperations.CaseOperation caseOperation,
boolean includeSns)
Construct a
Query implementation that scores documents such that the node represented by the document has a name
that is less than or equal to the supplied constraint name. |
Constructor and Description |
---|
CompareNameQuery(String localNameField,
String snsIndexFieldName,
Path.Segment constraintValue,
PathFactory pathFactory,
ValueFactory<String> stringFactory,
ValueFactory<Long> longFactory,
CompareQuery.Evaluator<Path.Segment> evaluator,
CaseOperations.CaseOperation caseOperation)
Construct a
Query implementation that scores nodes according to the supplied comparator. |
Constructor and Description |
---|
CompareNameQuery(String localNameField,
String snsIndexFieldName,
Path.Segment constraintValue,
PathFactory pathFactory,
ValueFactory<String> stringFactory,
ValueFactory<Long> longFactory,
CompareQuery.Evaluator<Path.Segment> evaluator,
CaseOperations.CaseOperation caseOperation)
Construct a
Query implementation that scores nodes according to the supplied comparator. |
Modifier and Type | Field and Description |
---|---|
static Path.Segment |
Path.PARENT_SEGMENT
Singleton instance of the path segment referencing a parent, provided as a convenience.
|
static Path.Segment |
Path.SELF_SEGMENT
Singleton instance of the path segment referencing a parent, provided as a convenience.
|
Modifier and Type | Field and Description |
---|---|
static Comparator<Path.Segment> |
ValueComparators.PATH_SEGMENT_COMPARATOR
A comparator of path segment values.
|
static Comparator<Path.Segment> |
ValueComparators.PATH_SEGMENT_NAME_COMPARATOR
A comparator of path segment names, excluding same-name-sibling indexes.
|
Modifier and Type | Method and Description |
---|---|
Path.Segment |
PathFactory.createSegment(Name segmentName)
Create a path segment given the supplied segment name.
|
Path.Segment |
PathFactory.createSegment(Name segmentName,
int index)
Create a path segment given the supplied segment name and index.
|
Path.Segment |
PathFactory.createSegment(String segmentName)
Create a path segment given the supplied segment name.
|
Path.Segment |
PathFactory.createSegment(String segmentName,
int index)
Create a path segment given the supplied segment name and index.
|
Path.Segment |
PathFactory.createSegment(String segmentName,
TextDecoder decoder)
Create a path segment given the supplied segment name.
|
Path.Segment |
Path.getLastSegment()
Get the last segment in this path.
|
Path.Segment |
Path.getSegment(int index)
Get the segment at the supplied index.
|
Path.Segment[] |
Path.getSegmentsArray()
Obtain a copy of the segments in this path.
|
Modifier and Type | Method and Description |
---|---|
List<Path.Segment> |
Path.getSegmentsList()
Get an unmodifiable list of the path segments.
|
Modifier and Type | Method and Description |
---|---|
T |
ValueFactory.create(Path.Segment value)
Create a value from a path segment.
|
Path |
PathFactory.create(Path parentPath,
Path.Segment... segments)
Create a path by appending the supplied names to the parent path.
|
Path |
PathFactory.createAbsolutePath(Path.Segment... segments)
Create an absolute path with the supplied segments, in order.
|
Path |
PathFactory.createRelativePath(Path.Segment... segments)
Create a relative path with the supplied segments, in order.
|
Modifier and Type | Method and Description |
---|---|
Path |
PathFactory.create(Path parentPath,
Iterable<Path.Segment> segments)
Create a path by appending the supplied names to the parent path.
|
Path |
PathFactory.createAbsolutePath(Iterable<Path.Segment> segments)
Create an absolute path with the supplied segments, in order.
|
Path |
PathFactory.createRelativePath(Iterable<Path.Segment> segments)
Create a relative path with the supplied segments, in order.
|
Modifier and Type | Class and Description |
---|---|
class |
BasicPathSegment
A basic implementation of
Path.Segment . |
class |
IdentifierPathSegment
A
Path.Segment implementation that represents an identifier segment. |
Modifier and Type | Field and Description |
---|---|
protected static Iterator<Path.Segment> |
AbstractPath.EMPTY_PATH_ITERATOR |
Modifier and Type | Method and Description |
---|---|
Path.Segment |
PathValueFactory.createSegment(Name segmentName) |
Path.Segment |
PathValueFactory.createSegment(Name segmentName,
int index) |
Path.Segment |
PathValueFactory.createSegment(String segmentName) |
Path.Segment |
PathValueFactory.createSegment(String segmentName,
int index) |
Path.Segment |
PathValueFactory.createSegment(String segmentName,
TextDecoder decoder) |
Path.Segment |
RootPath.getLastSegment() |
Path.Segment |
IdentifierPath.getLastSegment() |
Path.Segment |
ChildPath.getLastSegment() |
Path.Segment |
AbstractPath.getLastSegment() |
Path.Segment |
RootPath.getSegment(int index) |
Path.Segment |
IdentifierPath.getSegment(int index) |
Path.Segment |
ChildPath.getSegment(int index) |
Path.Segment |
AbstractPath.getSegment(int index) |
Path.Segment[] |
RootPath.getSegmentsArray() |
Path.Segment[] |
IdentifierPath.getSegmentsArray() |
Path.Segment[] |
AbstractPath.getSegmentsArray() |
Modifier and Type | Method and Description |
---|---|
protected List<Path.Segment> |
AbstractPath.createSegmentsSubList(int validBeginIndex,
int validEndIndex) |
List<Path.Segment> |
RootPath.getSegmentsList() |
List<Path.Segment> |
IdentifierPath.getSegmentsList() |
List<Path.Segment> |
ChildPath.getSegmentsList() |
List<Path.Segment> |
BasicPath.getSegmentsList() |
protected Iterator<Path.Segment> |
RootPath.getSegmentsOfParent() |
protected Iterator<Path.Segment> |
IdentifierPath.getSegmentsOfParent() |
protected Iterator<Path.Segment> |
ChildPath.getSegmentsOfParent() |
protected Iterator<Path.Segment> |
BasicPath.getSegmentsOfParent() |
protected abstract Iterator<Path.Segment> |
AbstractPath.getSegmentsOfParent()
Method used by
AbstractPath.equals(Object) implementation to quickly get an Iterator over the segments in the
parent. |
Iterator<Path.Segment> |
RootPath.iterator() |
Iterator<Path.Segment> |
IdentifierPath.iterator() |
Iterator<Path.Segment> |
ChildPath.iterator() |
Iterator<Path.Segment> |
AbstractPath.iterator() |
Modifier and Type | Method and Description |
---|---|
int |
BasicPathSegment.compareTo(Path.Segment that) |
UUID |
UuidValueFactory.create(Path.Segment value) |
URI |
UriValueFactory.create(Path.Segment value) |
String |
StringValueFactory.create(Path.Segment value) |
Reference |
ReferenceValueFactory.create(Path.Segment value) |
Path |
PathValueFactory.create(Path.Segment value) |
Object |
ObjectValueFactory.create(Path.Segment value) |
Name |
NameValueFactory.create(Path.Segment segment) |
Long |
LongValueFactory.create(Path.Segment value) |
DateTime |
JodaDateTimeValueFactory.create(Path.Segment value) |
Double |
DoubleValueFactory.create(Path.Segment value) |
BigDecimal |
DecimalValueFactory.create(Path.Segment value) |
Boolean |
BooleanValueFactory.create(Path.Segment value) |
Path |
PathValueFactory.create(Path parentPath,
Path.Segment... segments) |
Path |
PathValueFactory.createAbsolutePath(Path.Segment... segments) |
Path |
PathValueFactory.createRelativePath(Path.Segment... segments) |
Modifier and Type | Method and Description |
---|---|
Path |
PathValueFactory.create(Path parentPath,
Iterable<Path.Segment> segments) |
Path |
PathValueFactory.createAbsolutePath(Iterable<Path.Segment> segments) |
Path |
PathValueFactory.createRelativePath(Iterable<Path.Segment> segments) |
protected boolean |
AbstractPath.isNormalized(List<Path.Segment> segments) |
Constructor and Description |
---|
ChildPath(Path parent,
Path.Segment child) |
Constructor and Description |
---|
BasicPath(List<Path.Segment> segments,
boolean absolute) |
Modifier and Type | Method and Description |
---|---|
BinaryValue |
BinaryStoreValueFactory.create(Path.Segment value) |
Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.