public abstract class OutOfBandIndexerBase extends java.lang.Object implements java.io.Closeable, IndexUpdateCallback, NodeTraversalCallback
NodeTraversalCallback.PathSource
Modifier and Type | Field and Description |
---|---|
protected Closer |
closer |
static java.lang.String |
LOCAL_INDEX_ROOT_DIR
Directory name in output directory under which indexes are
stored
|
NOOP
NOOP
Constructor and Description |
---|
OutOfBandIndexerBase(IndexHelper indexHelper,
IndexerSupport indexerSupport) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected abstract IndexEditorProvider |
createIndexEditorProvider() |
protected java.io.File |
getLocalIndexDir() |
void |
indexUpdate()
Invoked by the
IndexEditor for every NodeState
indexed it. |
protected void |
preformIndexUpdate(NodeState baseState) |
void |
reindex() |
void |
traversedNode(NodeTraversalCallback.PathSource pathSource) |
protected final Closer closer
public static final java.lang.String LOCAL_INDEX_ROOT_DIR
public OutOfBandIndexerBase(IndexHelper indexHelper, IndexerSupport indexerSupport)
public void reindex() throws CommitFailedException, java.io.IOException
CommitFailedException
java.io.IOException
protected java.io.File getLocalIndexDir() throws java.io.IOException
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException
public void indexUpdate() throws CommitFailedException
IndexUpdateCallback
IndexEditor
for every NodeState
indexed it.indexUpdate
in interface IndexUpdateCallback
CommitFailedException
public void traversedNode(NodeTraversalCallback.PathSource pathSource) throws CommitFailedException
traversedNode
in interface NodeTraversalCallback
CommitFailedException
protected void preformIndexUpdate(NodeState baseState) throws java.io.IOException, CommitFailedException
java.io.IOException
CommitFailedException
protected abstract IndexEditorProvider createIndexEditorProvider() throws java.io.IOException
java.io.IOException
Copyright © 2012–2022 The Apache Software Foundation. All rights reserved.