org.apache.directory.server.core.annotations
Annotation Type CreateIndex


@Retention(value=RUNTIME)
@Target(value={METHOD,TYPE})
public @interface CreateIndex

An annotation for the Index creation. It's used when we need to inject an indexed attribute into a given partition. Here is an exemple :

Version:
$Rev$, $Date$
Author:
Apache Directory Project

Required Element Summary
 java.lang.String attribute
          The indexed attribute
 
Optional Element Summary
 int cacheSize
          The cache size
 java.lang.Class<? extends Index> type
          The index implementation class
 

Element Detail

attribute

public abstract java.lang.String attribute
The indexed attribute

type

public abstract java.lang.Class<? extends Index> type
The index implementation class

Default:
org.apache.directory.server.xdbm.Index.class

cacheSize

public abstract int cacheSize
The cache size

Default:
1000


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.