public final class IndexDefinition extends Object implements Aggregate.AggregateMapper
Modifier and Type | Class and Description |
---|---|
static class |
IndexDefinition.Builder |
class |
IndexDefinition.IndexingRule |
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_BLOB_SIZE
Blob size to use by default.
|
static int |
DEFAULT_MAX_FIELD_LENGTH
Default value for property
maxFieldLength . |
static String |
INDEX_DEFINITION_NODE
Hidden node under index definition which is used to store the index definition
nodestate as it was at time of reindexing
|
static String |
PROP_UID
Meta property which provides the unique id
|
static String |
STATUS_NODE
Hidden node under index definition which is used to store meta info
|
Constructor and Description |
---|
IndexDefinition(org.apache.jackrabbit.oak.spi.state.NodeState root,
org.apache.jackrabbit.oak.spi.state.NodeState defn,
String indexPath) |
public static final int DEFAULT_BLOB_SIZE
public static final int DEFAULT_MAX_FIELD_LENGTH
maxFieldLength
.public static final String INDEX_DEFINITION_NODE
public static final String STATUS_NODE
public static final String PROP_UID
public IndexDefinition(org.apache.jackrabbit.oak.spi.state.NodeState root, org.apache.jackrabbit.oak.spi.state.NodeState defn, String indexPath)
public static IndexDefinition.Builder newBuilder(org.apache.jackrabbit.oak.spi.state.NodeState root, org.apache.jackrabbit.oak.spi.state.NodeState defn, String indexPath)
public org.apache.jackrabbit.oak.spi.state.NodeState getDefinitionNodeState()
public boolean isFullTextEnabled()
public String getFunctionName()
public boolean hasFunctionDefined()
public int getBlobSize()
@CheckForNull public org.apache.lucene.codecs.Codec getCodec()
@Nonnull public org.apache.lucene.index.MergePolicy getMergePolicy()
public long getReindexCount()
public long getEntryCount()
public int getSuggesterUpdateFrequencyMinutes()
public boolean isEntryCountDefined()
public double getCostPerEntry()
public double getCostPerExecution()
public long getFulltextEntryCount(long numOfDocs)
public IndexFormatVersion getVersion()
public boolean isOfOldFormat()
public boolean isTestMode()
public boolean evaluatePathRestrictions()
public org.apache.lucene.analysis.Analyzer getAnalyzer()
public boolean hasCustomTikaConfig()
public InputStream getTikaConfig()
public String getIndexName()
public String[] getIndexTags()
public int getMaxExtractLength()
public String getScorerProviderName()
public boolean saveDirListing()
public org.apache.jackrabbit.oak.spi.filter.PathFilter getPathFilter()
@CheckForNull public String getUniqueId()
public boolean isNRTIndexingEnabled()
public boolean isSyncIndexingEnabled()
public boolean hasSyncPropertyDefinitions()
public boolean isPureNodeTypeIndex()
public static boolean hasPersistedIndex(org.apache.jackrabbit.oak.spi.state.NodeState definition)
definition
- nodestate for Index Definitionpublic static boolean isDisableStoredIndexDefinition()
public static void setDisableStoredIndexDefinition(boolean disableStoredIndexDefinitionDefault)
public boolean indexesRelativeNodes()
@CheckForNull public org.apache.jackrabbit.oak.plugins.index.lucene.Aggregate getAggregate(String nodeType)
getAggregate
in interface Aggregate.AggregateMapper
public boolean hasMatchingNodeTypeReg(org.apache.jackrabbit.oak.spi.state.NodeState root)
public List<IndexDefinition.IndexingRule> getDefinedRules()
@CheckForNull public IndexDefinition.IndexingRule getApplicableIndexingRule(String primaryNodeType)
@CheckForNull public IndexDefinition.IndexingRule getApplicableIndexingRule(org.apache.jackrabbit.oak.spi.state.NodeState state)
state
.state
- a node state.null
if none applies.public boolean isSuggestEnabled()
public boolean isSpellcheckEnabled()
public String getIndexPath()
public boolean isSuggestAnalyzed()
public boolean isSecureFacets()
public int getNumberOfTopFacets()
public static org.apache.jackrabbit.oak.spi.state.NodeBuilder updateDefinition(org.apache.jackrabbit.oak.spi.state.NodeBuilder indexDefn)
public static org.apache.jackrabbit.oak.spi.state.NodeBuilder updateDefinition(org.apache.jackrabbit.oak.spi.state.NodeBuilder indexDefn, String indexPath)
public static boolean supportsSyncOrNRTIndexing(org.apache.jackrabbit.oak.spi.state.NodeBuilder defn)
Copyright © 2012–2017 The Apache Software Foundation. All rights reserved.