Package org.uberfire.ext.metadata.engine
Interface Indexer
-
public interface Indexer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default StringgetIndexerId()booleansupportsPath(org.uberfire.java.nio.file.Path path)Different Indexers can handle different file-typesKObjecttoKObject(org.uberfire.java.nio.file.Path path)Index file represented by Path into an index objectKObjectKeytoKObjectKey(org.uberfire.java.nio.file.Path path)Index file represented by Path into an index key object
-
-
-
Method Detail
-
supportsPath
boolean supportsPath(org.uberfire.java.nio.file.Path path)
Different Indexers can handle different file-types- Parameters:
path-- Returns:
-
toKObject
KObject toKObject(org.uberfire.java.nio.file.Path path)
Index file represented by Path into an index object- Parameters:
path-- Returns:
-
toKObjectKey
KObjectKey toKObjectKey(org.uberfire.java.nio.file.Path path)
Index file represented by Path into an index key object- Parameters:
path-- Returns:
-
getIndexerId
default String getIndexerId()
- Returns:
- An unique identifier for this indexer. Must not be null.
-
-