public class OAutoShardingIndexFactory extends Object implements OIndexFactory
Modifier and Type | Field and Description |
---|---|
static String |
AUTOSHARDING_ALGORITHM |
static String |
NONE_VALUE_CONTAINER |
Constructor and Description |
---|
OAutoShardingIndexFactory() |
Modifier and Type | Method and Description |
---|---|
OIndexInternal<?> |
createIndex(String name,
OStorage storage,
String indexType,
String algorithm,
String valueContainerAlgorithm,
ODocument metadata,
int version)
Creates an index.
|
OIndexEngine |
createIndexEngine(String algorithm,
String name,
Boolean durableInNonTxMode,
OStorage storage,
int version,
Map<String,String> engineProperties) |
Set<String> |
getAlgorithms() |
int |
getLastVersion() |
Set<String> |
getTypes()
Index types:
UNIQUE
NOTUNIQUE
|
static boolean |
isMultiValueIndex(String indexType) |
public static final String AUTOSHARDING_ALGORITHM
public static final String NONE_VALUE_CONTAINER
public static boolean isMultiValueIndex(String indexType)
public Set<String> getTypes()
getTypes
in interface OIndexFactory
public Set<String> getAlgorithms()
getAlgorithms
in interface OIndexFactory
public OIndexInternal<?> createIndex(String name, OStorage storage, String indexType, String algorithm, String valueContainerAlgorithm, ODocument metadata, int version) throws OConfigurationException
OIndexFactory
createIndex
in interface OIndexFactory
storage
- TODOindexType
- index typeOConfigurationException
- if index creation failedpublic int getLastVersion()
getLastVersion
in interface OIndexFactory
public OIndexEngine createIndexEngine(String algorithm, String name, Boolean durableInNonTxMode, OStorage storage, int version, Map<String,String> engineProperties)
createIndexEngine
in interface OIndexFactory
Copyright © 2009–2019 OrientDB. All rights reserved.