Class DocumentBundlor
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.document.bundlor.DocumentBundlor
-
public class DocumentBundlor extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
BUNDLOR_META_PROP_PREFIX
Prefix used for various meta properties used for bundlingstatic java.lang.String
HAS_CHILD_PROP_PREFIX
static java.lang.String
META_PROP_BUNDLED_CHILD
Hidden property name having boolean value indicating that current node has children which are bundledstatic java.lang.String
META_PROP_BUNDLING_PATH
Hidden property name used as suffix for relative node path to indicate presence of that node.static java.lang.String
META_PROP_NON_BUNDLED_CHILD
Hidden property name having boolean value indicating that current node has children which are not bundledstatic java.lang.String
META_PROP_PATTERN
Hidden property to store the pattern as part of NodeState TODO - Also store the NodeTypestatic java.lang.String
PROP_DISABLED
Boolean property.static java.lang.String
PROP_PATTERN
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.jackrabbit.oak.api.PropertyState
asPropertyState()
Matcher
createMatcher()
static DocumentBundlor
from(java.lang.Iterable<java.lang.String> includeStrings)
static DocumentBundlor
from(org.apache.jackrabbit.oak.api.PropertyState prop)
static DocumentBundlor
from(org.apache.jackrabbit.oak.spi.state.NodeState nodeState)
boolean
isBundled(java.lang.String relativePath)
java.lang.String
toString()
-
-
-
Field Detail
-
BUNDLOR_META_PROP_PREFIX
public static final java.lang.String BUNDLOR_META_PROP_PREFIX
Prefix used for various meta properties used for bundling- See Also:
- Constant Field Values
-
META_PROP_PATTERN
public static final java.lang.String META_PROP_PATTERN
Hidden property to store the pattern as part of NodeState TODO - Also store the NodeType- See Also:
- Constant Field Values
-
META_PROP_BUNDLING_PATH
public static final java.lang.String META_PROP_BUNDLING_PATH
Hidden property name used as suffix for relative node path to indicate presence of that node. So for a relative node 'jcr:content' the parent node must have a property 'jcr:content/:doc-self-path.Its value is the depth of the bundled child node
- See Also:
- Constant Field Values
-
HAS_CHILD_PROP_PREFIX
public static final java.lang.String HAS_CHILD_PROP_PREFIX
- See Also:
- Constant Field Values
-
META_PROP_BUNDLED_CHILD
public static final java.lang.String META_PROP_BUNDLED_CHILD
Hidden property name having boolean value indicating that current node has children which are bundled- See Also:
- Constant Field Values
-
META_PROP_NON_BUNDLED_CHILD
public static final java.lang.String META_PROP_NON_BUNDLED_CHILD
Hidden property name having boolean value indicating that current node has children which are not bundled- See Also:
- Constant Field Values
-
PROP_DISABLED
public static final java.lang.String PROP_DISABLED
Boolean property. If set to true then that bundlor config would be considered as disabled and would not be used- See Also:
- Constant Field Values
-
PROP_PATTERN
public static final java.lang.String PROP_PATTERN
- See Also:
- Constant Field Values
-
-
Method Detail
-
from
public static DocumentBundlor from(org.apache.jackrabbit.oak.spi.state.NodeState nodeState)
-
from
public static DocumentBundlor from(java.lang.Iterable<java.lang.String> includeStrings)
-
from
public static DocumentBundlor from(org.apache.jackrabbit.oak.api.PropertyState prop)
-
isBundled
public boolean isBundled(java.lang.String relativePath)
-
asPropertyState
public org.apache.jackrabbit.oak.api.PropertyState asPropertyState()
-
createMatcher
public Matcher createMatcher()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-