Package com.orientechnologies.orient.core.index

Examples of com.orientechnologies.orient.core.index.OIndexTxAwareMultiValue


    create(indexName, this.indexClass, iType);
  }

  protected OrientIndex(final OrientBaseGraph orientGraph, final OIndex<?> rawIndex) {
    this.graph = orientGraph;
    this.underlying = rawIndex instanceof OIndexTxAwareMultiValue ? rawIndex : new OIndexTxAwareMultiValue(
        orientGraph.getRawGraph(), (OIndex<Set<OIdentifiable>>) rawIndex);

    final ODocument metadata = rawIndex.getMetadata();
    if (metadata == null) {
      load(rawIndex.getConfiguration());
View Full Code Here


    final ODocument metadata = new ODocument();
    metadata.field(CONFIG_CLASSNAME, className);
    metadata.field(CONFIG_RECORD_MAP_NAME, recordKeyValueIndex.getName());

    // CREATE THE MAP
    this.underlying = new OIndexTxAwareMultiValue(graph.getRawGraph(), (OIndex<Set<OIdentifiable>>) graph
        .getRawGraph()
        .getMetadata()
        .getIndexManager()
        .createIndex(indexName, OClass.INDEX_TYPE.NOTUNIQUE.toString(), new OSimpleKeyIndexDefinition(iKeyType), null, null,
            metadata));
View Full Code Here

        create(indexName, this.indexClass, iType);
    }

    protected OrientIndex(final OrientBaseGraph orientGraph, final OIndex<?> rawIndex) {
        this.graph = orientGraph;
        this.underlying = rawIndex instanceof OIndexTxAwareMultiValue ? rawIndex : new OIndexTxAwareMultiValue(
                orientGraph.getRawGraph(), (OIndex<Collection<OIdentifiable>>) rawIndex);
        load(rawIndex.getMetadata());
    }
View Full Code Here

        final ODocument metadata = new ODocument();
        metadata.field(CONFIG_CLASSNAME, className);
        metadata.field(CONFIG_RECORD_MAP_NAME, recordKeyValueIndex.getName());

        // CREATE THE MAP
        this.underlying = new OIndexTxAwareMultiValue(graph.getRawGraph(), (OIndex<Collection<OIdentifiable>>) graph.getRawGraph()
                .getMetadata().getIndexManager()
                .createIndex(indexName, OClass.INDEX_TYPE.NOTUNIQUE.toString(), new OSimpleKeyIndexDefinition(iKeyType), null, null
                        , metadata));

View Full Code Here

TOP

Related Classes of com.orientechnologies.orient.core.index.OIndexTxAwareMultiValue

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.