Class IndexerInfo
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.index.importer.IndexerInfo
-
public class IndexerInfo extends java.lang.Object
Represents the index data created by oak-run tooling on the file system. It looks for 'indexer-info.properties' file in given directory to read the check point information. Then for each sub directory it looks for 'index-details.txt' file which contains index specific implementation details. It looks for property 'indexPath' which is used to associate the index data to index location in repository
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
checkpoint
static java.lang.String
INDEX_METADATA_FILE_NAME
Name of meta file which stores the index related meta information in properties file formatstatic java.lang.String
INDEXER_META
File name stored in final index directory which contains meta information like checkpoint details.static java.lang.String
PROP_INDEX_PATH
Property name in index-details.txt which refers to the index path in repository
-
Constructor Summary
Constructors Constructor Description IndexerInfo(java.io.File rootDir, java.lang.String checkpoint)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IndexerInfo
fromDirectory(java.io.File rootDir)
java.util.Map<java.lang.String,java.io.File>
getIndexes()
void
save()
-
-
-
Field Detail
-
INDEXER_META
public static final java.lang.String INDEXER_META
File name stored in final index directory which contains meta information like checkpoint details. This can be used by importer while importing the indexes- See Also:
- Constant Field Values
-
INDEX_METADATA_FILE_NAME
public static final java.lang.String INDEX_METADATA_FILE_NAME
Name of meta file which stores the index related meta information in properties file format- See Also:
- Constant Field Values
-
PROP_INDEX_PATH
public static final java.lang.String PROP_INDEX_PATH
Property name in index-details.txt which refers to the index path in repository- See Also:
- Constant Field Values
-
checkpoint
public final java.lang.String checkpoint
-
-
Method Detail
-
save
public void save() throws java.io.IOException
- Throws:
java.io.IOException
-
getIndexes
public java.util.Map<java.lang.String,java.io.File> getIndexes() throws java.io.IOException
- Throws:
java.io.IOException
-
fromDirectory
public static IndexerInfo fromDirectory(java.io.File rootDir) throws java.io.IOException
- Throws:
java.io.IOException
-
-