GigaSpaces XAP 10.0.1 API

com.gigaspaces.metadata.index
Class SpaceIndexFactory

java.lang.Object
  extended by com.gigaspaces.metadata.index.SpaceIndexFactory

public class SpaceIndexFactory
extends Object

Factory which provides methods to create space indexes.

Since:
8.0
Author:
Niv Ingberg
See Also:
SpaceIndex, SpaceTypeDescriptor, SpaceTypeDescriptorBuilder

Constructor Summary
SpaceIndexFactory()
           
 
Method Summary
static SpaceIndex createCompoundIndex(String[] paths)
           
static SpaceIndex createCompoundIndex(String[] paths, SpaceIndexType indexType, String indexName, boolean unique)
          Creates a space compound index from the specified paths with the specified index type.
static SpaceIndex createPathIndex(String path, SpaceIndexType indexType)
          Creates a space index for the specified path with the specified index type.
static SpaceIndex createPathIndex(String path, SpaceIndexType indexType, boolean unique)
          Creates a space index for the specified path with the specified index type.
static SpaceIndex createPropertyIndex(String propertyName, SpaceIndexType indexType)
          Creates a space index for the specified property with the specified index type.
static SpaceIndex createPropertyIndex(String propertyName, SpaceIndexType indexType, boolean unique)
          Creates a space index for the specified property with the specified index type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpaceIndexFactory

public SpaceIndexFactory()
Method Detail

createPropertyIndex

public static SpaceIndex createPropertyIndex(String propertyName,
                                             SpaceIndexType indexType)
Creates a space index for the specified property with the specified index type.

Parameters:
propertyName - Name of property to index.
indexType - type of index.
Returns:
A space index for the specified property.

createPropertyIndex

public static SpaceIndex createPropertyIndex(String propertyName,
                                             SpaceIndexType indexType,
                                             boolean unique)
Creates a space index for the specified property with the specified index type.

Parameters:
propertyName - Name of property to index.
indexType - type of index.
unique - tre if unique index.
Returns:
A space index for the specified property.

createPathIndex

public static SpaceIndex createPathIndex(String path,
                                         SpaceIndexType indexType)
Creates a space index for the specified path with the specified index type.

Parameters:
path - Path to index.
indexType - type of index.
Returns:
A space index for the specified path.

createPathIndex

public static SpaceIndex createPathIndex(String path,
                                         SpaceIndexType indexType,
                                         boolean unique)
Creates a space index for the specified path with the specified index type.

Parameters:
path - Path to index.
indexType - type of index.
unique - tre if unique index.
Returns:
A space index for the specified path.

createCompoundIndex

public static SpaceIndex createCompoundIndex(String[] paths)

createCompoundIndex

public static SpaceIndex createCompoundIndex(String[] paths,
                                             SpaceIndexType indexType,
                                             String indexName,
                                             boolean unique)
Creates a space compound index from the specified paths with the specified index type.

Parameters:
paths -
indexType -
indexName - - null or a preset name
Returns:

GigaSpaces XAP 10.0.1 API

Copyright © GigaSpaces.