public class IndexDefinition extends Object implements org.apache.jackrabbit.oak.plugins.index.lucene.Aggregate.AggregateMapper
Modifier and Type | Class and Description |
---|---|
class |
IndexDefinition.IndexingRule |
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MAX_FIELD_LENGTH
Default value for property
maxFieldLength . |
Constructor and Description |
---|
IndexDefinition(org.apache.jackrabbit.oak.spi.state.NodeState root,
org.apache.jackrabbit.oak.spi.state.NodeBuilder defn) |
IndexDefinition(org.apache.jackrabbit.oak.spi.state.NodeState root,
org.apache.jackrabbit.oak.spi.state.NodeState defn) |
IndexDefinition(org.apache.jackrabbit.oak.spi.state.NodeState root,
org.apache.jackrabbit.oak.spi.state.NodeState defn,
org.apache.jackrabbit.oak.spi.state.NodeBuilder defnb) |
Modifier and Type | Method and Description |
---|---|
boolean |
evaluatePathRestrictions() |
boolean |
getActiveDeleteEnabled() |
org.apache.jackrabbit.oak.plugins.index.lucene.Aggregate |
getAggregate(String nodeType) |
org.apache.lucene.analysis.Analyzer |
getAnalyzer() |
IndexDefinition.IndexingRule |
getApplicableIndexingRule(String primaryNodeType) |
IndexDefinition.IndexingRule |
getApplicableIndexingRule(org.apache.jackrabbit.oak.api.Tree state)
Returns the first indexing rule that applies to the given node
state . |
int |
getBlobSize()
Size in bytes for the blobs created while storing the index content
|
org.apache.lucene.codecs.Codec |
getCodec() |
double |
getCostPerEntry() |
double |
getCostPerExecution() |
List<IndexDefinition.IndexingRule> |
getDefinedRules() |
org.apache.jackrabbit.oak.spi.state.NodeState |
getDefinitionNodeState() |
long |
getEntryCount() |
long |
getFulltextEntryCount(long numOfDocs) |
String |
getFunctionName() |
String |
getIndexName() |
String |
getIndexPathFromConfig() |
int |
getMaxExtractLength() |
int |
getNumberOfTopFacets() |
org.apache.jackrabbit.oak.plugins.index.PathFilter |
getPathFilter() |
String[] |
getQueryPaths() |
long |
getReindexCount() |
String |
getScorerProviderName() |
int |
getSuggesterUpdateFrequencyMinutes() |
InputStream |
getTikaConfig() |
IndexFormatVersion |
getVersion() |
boolean |
hasCustomTikaConfig() |
boolean |
hasFunctionDefined() |
boolean |
isEntryCountDefined() |
boolean |
isFullTextEnabled() |
boolean |
isOfOldFormat() |
boolean |
isSecureFacets() |
boolean |
isSpellcheckEnabled() |
boolean |
isSuggestAnalyzed() |
boolean |
isSuggestEnabled() |
boolean |
isTestMode() |
boolean |
saveDirListing() |
String |
toString() |
static org.apache.jackrabbit.oak.spi.state.NodeBuilder |
updateDefinition(org.apache.jackrabbit.oak.spi.state.NodeBuilder indexDefn) |
public static final int DEFAULT_MAX_FIELD_LENGTH
maxFieldLength
.public IndexDefinition(org.apache.jackrabbit.oak.spi.state.NodeState root, org.apache.jackrabbit.oak.spi.state.NodeBuilder defn)
public IndexDefinition(org.apache.jackrabbit.oak.spi.state.NodeState root, org.apache.jackrabbit.oak.spi.state.NodeState defn)
public IndexDefinition(org.apache.jackrabbit.oak.spi.state.NodeState root, org.apache.jackrabbit.oak.spi.state.NodeState defn, @Nullable org.apache.jackrabbit.oak.spi.state.NodeBuilder defnb)
public org.apache.jackrabbit.oak.spi.state.NodeState getDefinitionNodeState()
public boolean isFullTextEnabled()
public String getFunctionName()
public boolean hasFunctionDefined()
public int getBlobSize()
public org.apache.lucene.codecs.Codec getCodec()
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 int getMaxExtractLength()
public String getScorerProviderName()
public boolean saveDirListing()
public org.apache.jackrabbit.oak.plugins.index.PathFilter getPathFilter()
@CheckForNull public org.apache.jackrabbit.oak.plugins.index.lucene.Aggregate getAggregate(String nodeType)
getAggregate
in interface org.apache.jackrabbit.oak.plugins.index.lucene.Aggregate.AggregateMapper
public List<IndexDefinition.IndexingRule> getDefinedRules()
@CheckForNull public IndexDefinition.IndexingRule getApplicableIndexingRule(String primaryNodeType)
@CheckForNull public IndexDefinition.IndexingRule getApplicableIndexingRule(org.apache.jackrabbit.oak.api.Tree state)
state
.state
- a node state.null
if none applies.public boolean isSuggestEnabled()
public boolean isSpellcheckEnabled()
public String getIndexPathFromConfig()
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 boolean getActiveDeleteEnabled()
Copyright © 2012–2020 The Apache Software Foundation. All rights reserved.