| Modifier and Type | Class and Description |
|---|---|
static class |
PropertyIndexCleaner.CleanupStats |
| Constructor and Description |
|---|
PropertyIndexCleaner(org.apache.jackrabbit.oak.spi.state.NodeStore nodeStore,
org.apache.jackrabbit.oak.plugins.index.IndexPathService indexPathService,
org.apache.jackrabbit.oak.plugins.index.AsyncIndexInfoService asyncIndexInfoService,
org.apache.jackrabbit.oak.stats.StatisticsProvider statsProvider) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isRecursiveDelete() |
PropertyIndexCleaner.CleanupStats |
performCleanup(boolean forceCleanup)
Performs the cleanup run
|
void |
run() |
void |
setCreatedTimeThreshold(TimeUnit unit,
long time)
Specifies the threshold for created time such that only those entries
in unique indexes are purged which have
async indexer time - creation time > threshold
|
void |
setRecursiveDelete(boolean recursiveDelete) |
public PropertyIndexCleaner(org.apache.jackrabbit.oak.spi.state.NodeStore nodeStore, org.apache.jackrabbit.oak.plugins.index.IndexPathService indexPathService, org.apache.jackrabbit.oak.plugins.index.AsyncIndexInfoService asyncIndexInfoService, org.apache.jackrabbit.oak.stats.StatisticsProvider statsProvider)
public PropertyIndexCleaner.CleanupStats performCleanup(boolean forceCleanup) throws org.apache.jackrabbit.oak.api.CommitFailedException
forceCleanup - if true then clean up would attempted even if no change
is found in async indexer stateorg.apache.jackrabbit.oak.api.CommitFailedExceptionpublic void setCreatedTimeThreshold(TimeUnit unit, long time)
unit - time unittime - time value in given unitpublic boolean isRecursiveDelete()
public void setRecursiveDelete(boolean recursiveDelete)
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.