Class IndexerInfo
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.index.importer.IndexerInfo
-
public class IndexerInfo extends 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 String
checkpoint
static String
INDEX_METADATA_FILE_NAME
Name of meta file which stores the index related meta information in properties file formatstatic String
INDEXER_META
File name stored in final index directory which contains meta information like checkpoint details.static String
PROP_INDEX_PATH
Property name in index-details.txt which refers to the index path in repository
-
Constructor Summary
Constructors Constructor Description IndexerInfo(File rootDir, String checkpoint)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IndexerInfo
fromDirectory(File rootDir)
Map<String,File>
getIndexes()
void
save()
-
-
-
Field Detail
-
INDEXER_META
public static final 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 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 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 String checkpoint
-
-
Method Detail
-
save
public void save() throws IOException
- Throws:
IOException
-
getIndexes
public Map<String,File> getIndexes() throws IOException
- Throws:
IOException
-
fromDirectory
public static IndexerInfo fromDirectory(File rootDir) throws IOException
- Throws:
IOException
-
-