org.openanzo.common.rdb.layout.indexer
Class LiteralIndexerProperties

java.lang.Object
  extended by org.openanzo.common.rdb.layout.indexer.LiteralIndexerProperties

public class LiteralIndexerProperties
extends java.lang.Object

Configuration properties used for setting up literal indexer.

Author:
Generated Source from org.openanzo.utils.properties.jet

Field Summary
static java.lang.String KEY_LITERAL_INDEX_ENABLED
          Key for property "org.openanzo.indexer.literals.enabled" Should the literal indexer be enabled.
static java.lang.String KEY_LITERAL_INDEX_LOCATION
          Key for property "org.openanzo.indexer.literals.indexLocation" Location of the index files on disk.
static java.lang.String KEY_LITERAL_INDEX_REMOVE_LOCK_FILE
          Key for property "org.openanzo.indexer.literals.removeLockFile" Force a removal of a previous lock file on startup.
static java.lang.String KEY_LITERAL_INDEXER_CLEAR
          Key for property "org.openanzo.indexer.literals.indexClear" Clear the index on startup.
static java.lang.String KEY_LITERAL_INDEXER_REBUILD
          Key for property "org.openanzo.indexer.literals.rebuildIndex" Should the literal indexer be rebuilt on startup.
 
Constructor Summary
LiteralIndexerProperties()
           
 
Method Summary
static boolean getEnabled(java.util.Properties properties)
          Get KEY_LITERAL_INDEX_ENABLED property from properties
static boolean getIndexClear(java.util.Properties properties)
          Get KEY_LITERAL_INDEXER_CLEAR property from properties
static java.lang.String getIndexLocation(java.util.Properties properties)
          Get KEY_LITERAL_INDEX_LOCATION property from properties
static boolean getRebuildIndex(java.util.Properties properties)
          Get KEY_LITERAL_INDEXER_REBUILD property from properties
static boolean getRemoveLockFile(java.util.Properties properties)
          Get KEY_LITERAL_INDEX_REMOVE_LOCK_FILE property from properties
static void setEnabled(java.util.Properties properties, boolean enabled)
          Set KEY_LITERAL_INDEX_ENABLED property to enabled in properties
static void setIndexClear(java.util.Properties properties, boolean indexClear)
          Set KEY_LITERAL_INDEXER_CLEAR property to indexClear in properties
static void setIndexLocation(java.util.Properties properties, java.lang.String indexLocation)
          Set KEY_LITERAL_INDEX_LOCATION property to indexLocation in properties
static void setRebuildIndex(java.util.Properties properties, boolean rebuildIndex)
          Set KEY_LITERAL_INDEXER_REBUILD property to rebuildIndex in properties
static void setRemoveLockFile(java.util.Properties properties, boolean removeLockFile)
          Set KEY_LITERAL_INDEX_REMOVE_LOCK_FILE property to removeLockFile in properties
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KEY_LITERAL_INDEX_ENABLED

public static final java.lang.String KEY_LITERAL_INDEX_ENABLED
Key for property "org.openanzo.indexer.literals.enabled" Should the literal indexer be enabled.
  • Server:The server uses its own Lucene index, so this property is not used.
  • Client:When persistence is enabled on the client, enabling the literal indexer allows for text index predicates as part of Sparql queries.
  • Embedded:See server
  • See Also:
    Constant Field Values

    KEY_LITERAL_INDEXER_REBUILD

    public static final java.lang.String KEY_LITERAL_INDEXER_REBUILD
    Key for property "org.openanzo.indexer.literals.rebuildIndex" Should the literal indexer be rebuilt on startup.
  • Server:The server uses its own Lucene index, so this property is not used.
  • Client:When persistence is enabled on the client and this property is true, the index will rebuild the indexer when the container is started.
  • Embedded:See server
  • See Also:
    Constant Field Values

    KEY_LITERAL_INDEX_LOCATION

    public static final java.lang.String KEY_LITERAL_INDEX_LOCATION
    Key for property "org.openanzo.indexer.literals.indexLocation" Location of the index files on disk.
  • Server:The server uses its own Lucene index, so this property is not used.
  • Client:When persistence is enabled on the client, this property points to the location of the Lucene index on disk.
  • Embedded:See server
  • See Also:
    Constant Field Values

    KEY_LITERAL_INDEX_REMOVE_LOCK_FILE

    public static final java.lang.String KEY_LITERAL_INDEX_REMOVE_LOCK_FILE
    Key for property "org.openanzo.indexer.literals.removeLockFile" Force a removal of a previous lock file on startup.
  • Server:The server uses its own Lucene index, so this property is not used.
  • Client:When persistence is enabled on the client and this property is true, the index will remove any previous Lucene lock files on disk.
  • Embedded:See server
  • See Also:
    Constant Field Values

    KEY_LITERAL_INDEXER_CLEAR

    public static final java.lang.String KEY_LITERAL_INDEXER_CLEAR
    Key for property "org.openanzo.indexer.literals.indexClear" Clear the index on startup.
  • Server:The server uses its own Lucene index, so this property is not used.
  • Client:When persistence is enabled on the client and this property is true, the index will clear the indexer when the container is started.
  • Embedded:See server
  • See Also:
    Constant Field Values
    Constructor Detail

    LiteralIndexerProperties

    public LiteralIndexerProperties()
    Method Detail

    getEnabled

    public static boolean getEnabled(java.util.Properties properties)
    Get KEY_LITERAL_INDEX_ENABLED property from properties

    Parameters:
    properties - containing configuration data
    Returns:
    value of KEY_LITERAL_INDEX_ENABLED,or "false" if not present

    setEnabled

    public static void setEnabled(java.util.Properties properties,
                                  boolean enabled)
    Set KEY_LITERAL_INDEX_ENABLED property to enabled in properties

    Parameters:
    properties - containing configuration data
    enabled - value for enabled

    getRebuildIndex

    public static boolean getRebuildIndex(java.util.Properties properties)
    Get KEY_LITERAL_INDEXER_REBUILD property from properties

    Parameters:
    properties - containing configuration data
    Returns:
    value of KEY_LITERAL_INDEXER_REBUILD,or "false" if not present

    setRebuildIndex

    public static void setRebuildIndex(java.util.Properties properties,
                                       boolean rebuildIndex)
    Set KEY_LITERAL_INDEXER_REBUILD property to rebuildIndex in properties

    Parameters:
    properties - containing configuration data
    rebuildIndex - value for rebuildIndex

    getIndexLocation

    public static java.lang.String getIndexLocation(java.util.Properties properties)
    Get KEY_LITERAL_INDEX_LOCATION property from properties

    Parameters:
    properties - containing configuration data
    Returns:
    value of KEY_LITERAL_INDEX_LOCATION if not present

    setIndexLocation

    public static void setIndexLocation(java.util.Properties properties,
                                        java.lang.String indexLocation)
    Set KEY_LITERAL_INDEX_LOCATION property to indexLocation in properties

    Parameters:
    properties - containing configuration data
    indexLocation - value for indexLocation

    getRemoveLockFile

    public static boolean getRemoveLockFile(java.util.Properties properties)
    Get KEY_LITERAL_INDEX_REMOVE_LOCK_FILE property from properties

    Parameters:
    properties - containing configuration data
    Returns:
    value of KEY_LITERAL_INDEX_REMOVE_LOCK_FILE,or "true" if not present

    setRemoveLockFile

    public static void setRemoveLockFile(java.util.Properties properties,
                                         boolean removeLockFile)
    Set KEY_LITERAL_INDEX_REMOVE_LOCK_FILE property to removeLockFile in properties

    Parameters:
    properties - containing configuration data
    removeLockFile - value for removeLockFile

    getIndexClear

    public static boolean getIndexClear(java.util.Properties properties)
    Get KEY_LITERAL_INDEXER_CLEAR property from properties

    Parameters:
    properties - containing configuration data
    Returns:
    value of KEY_LITERAL_INDEXER_CLEAR,or "false" if not present

    setIndexClear

    public static void setIndexClear(java.util.Properties properties,
                                     boolean indexClear)
    Set KEY_LITERAL_INDEXER_CLEAR property to indexClear in properties

    Parameters:
    properties - containing configuration data
    indexClear - value for indexClear


    Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.