public class IndexCreationFeature extends AbstractFeature implements RepositoryFeature<IndexCreationFeature>
RepositoryIndexEvent
, if the URI of the index has been changed.Constructor and Description |
---|
IndexCreationFeature(boolean skipPackedIndexCreation) |
IndexCreationFeature(Repository repository,
EventHandler listener) |
Modifier and Type | Method and Description |
---|---|
IndexCreationFeature |
get()
Returns the concrete feature instance.
|
URI |
getIndexPath()
Returns the path that is used to store the index.
|
StorageAsset |
getLocalIndexPath()
Returns the path where the index is stored physically.
|
StorageAsset |
getLocalPackedIndexPath()
Returns the directory where the packed index is stored.
|
URI |
getPackedIndexPath()
Returns the path of the packed index.
|
boolean |
hasIndex()
Returns true, if this repository has a index defined.
|
boolean |
isSkipPackedIndexCreation()
Returns true, if no packed index files should be created.
|
void |
setIndexPath(URI indexPath)
Sets the path that is used to store the index.
|
void |
setLocalIndexPath(StorageAsset localIndexPath)
Sets the path where the index is stored locally.
|
void |
setLocalPackedIndexPath(StorageAsset localPackedIndexPath)
Sets the path where the packed index is stored physically.
|
void |
setPackedIndexPath(URI packedIndexPath)
Sets the path (relative or absolute) of the packed index.
|
void |
setSkipPackedIndexCreation(boolean skipPackedIndexCreation)
Sets the flag for packed index creation.
|
String |
toString() |
addListener, clearListeners, pushEvent, removeListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getId, isFeature, isFeature
public IndexCreationFeature(Repository repository, EventHandler listener)
public IndexCreationFeature(boolean skipPackedIndexCreation)
public IndexCreationFeature get()
RepositoryFeature
get
in interface RepositoryFeature<IndexCreationFeature>
public boolean isSkipPackedIndexCreation()
public void setSkipPackedIndexCreation(boolean skipPackedIndexCreation)
skipPackedIndexCreation
- public URI getIndexPath()
public void setIndexPath(URI indexPath)
indexPath
- the uri to the index path (may be relative)public boolean hasIndex()
true
, if a index path is set, otherwise false
public StorageAsset getLocalIndexPath()
public void setLocalIndexPath(StorageAsset localIndexPath)
localIndexPath
- public URI getPackedIndexPath()
public void setPackedIndexPath(URI packedIndexPath)
RepositoryIndexEvent.Index#PACKED_INDEX_URI_CHANGE
, if the value changes.packedIndexPath
- the new path uri for the packed indexpublic StorageAsset getLocalPackedIndexPath()
public void setLocalPackedIndexPath(StorageAsset localPackedIndexPath)
localPackedIndexPath
- Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.