@Target(value=TYPE) @Retention(value=SOURCE) public static @interface ConstrainedBinaryIndexer.Registration
ConstrainedBinaryIndexer
with constraints on
the scanned binary. The registered indexer is loaded and executed only of
the constraints are fulfilled.Modifier and Type | Required Element and Description |
---|---|
String |
indexerName
Return the name of this indexer.
|
int |
indexVersion
Return the version stamp of the schema that is currently being stored
by this indexer.
|
Modifier and Type | Optional Element and Description |
---|---|
String[] |
mimeType
One or more mime types that have to be present inside of the binary
to enable this indexer.
|
String |
namePattern
Regular expression of file names which have to be present
inside of the binary to enable this indexer.
|
String[] |
requiredResource
At least one of these resources has to be present to trigger this
indexer.
|
public abstract String indexerName
BinaryIndexerFactory
public abstract int indexVersion
BinaryIndexerFactory
public abstract String[] requiredResource
{}
if the resource check should be skipped.public abstract String[] mimeType
{}
if the mime type check should be skipped. The mime
type check can be expensive especially for mime types which require
file reading, for such mime types consider to prefer name pattern.public abstract String namePattern
""
if the file name check should be skipped.