|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compass.core.engine.subindex.ConstantSubIndexHash
public class ConstantSubIndexHash
Alwats returns a constant sub index for any hashing.
If using configuration, expectssubIndex as the setting name,
and the sub index value as the setting value.
| Constructor Summary | |
|---|---|
ConstantSubIndexHash()
Construts a new instances, will have to call configure(org.compass.core.config.CompassSettings)
in order to configure the sub index. |
|
ConstantSubIndexHash(String subIndex)
Constructs a new instance based on the given sub index. |
|
| Method Summary | |
|---|---|
void |
configure(CompassSettings settings)
Configures the constant sub index hash, expects subIndex as
the setting name, and the sub index value as the setting value. |
String[] |
getSubIndexes()
Returns the single constant sub index. |
String |
mapSubIndex(String alias,
Property[] ids)
Returns the single constant sub index. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ConstantSubIndexHash()
configure(org.compass.core.config.CompassSettings)
in order to configure the sub index.
public ConstantSubIndexHash(String subIndex)
subIndex - The constant sub index to use| Method Detail |
|---|
public void configure(CompassSettings settings)
throws CompassException
subIndex as
the setting name, and the sub index value as the setting value.
configure in interface CompassConfigurablesettings - The settings to configure by
CompassExceptionpublic String[] getSubIndexes()
getSubIndexes in interface SubIndexHash
public String mapSubIndex(String alias,
Property[] ids)
throws SearchEngineException
mapSubIndex in interface SubIndexHashalias - The alias to compute the sub index by (optional)ids - The set of ids to compute the sub index by (optional)
SearchEngineExceptionpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||