All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.graphaware.module.relcount.count.LegacyFallbackRelationshipCounter Maven / Gradle / Ivy

There is a newer version: 2.3.2.37.9
Show newest version
/*
 * Copyright (c) 2013 GraphAware
 *
 * This file is part of GraphAware.
 *
 * GraphAware is free software: you can redistribute it and/or modify it under the terms of
 * the GNU General Public License as published by the Free Software Foundation, either
 * version 3 of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
 *  without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU General Public License for more details. You should have received a copy of
 * the GNU General Public License along with this program.  If not, see
 * .
 */

package com.graphaware.module.relcount.count;

import com.graphaware.module.relcount.RelationshipCountModule;
import org.neo4j.graphdb.GraphDatabaseService;

/**
 * {@link BaseFallbackRelationshipCounter} using {@link LegacyNaiveRelationshipCounter}.
 * 

* Note that it is called legacy, because it is superseded by {@link FallbackRelationshipCounter} as of Neo4j 2.1 * * @deprecated in favour of {@link FallbackRelationshipCounter}. */ @Deprecated public class LegacyFallbackRelationshipCounter extends BaseFallbackRelationshipCounter { /** * Construct a new relationship counter. Use this constructor when * only a single instance of {@link com.graphaware.module.relcount.RelationshipCountModule} is registered. * * @param database on which the module is running. */ public LegacyFallbackRelationshipCounter(GraphDatabaseService database) { this(database, RelationshipCountModule.FULL_RELCOUNT_DEFAULT_ID); } /** * Construct a new relationship counter. Use this constructor when multiple instances of {@link com.graphaware.module.relcount.RelationshipCountModule} * have been registered with the {@link com.graphaware.runtime.GraphAwareRuntime}. * This should rarely be the case. * * @param database on which the module is running. * @param id of the {@link com.graphaware.module.relcount.RelationshipCountModule} used to cache relationship counts. */ public LegacyFallbackRelationshipCounter(GraphDatabaseService database, String id) { super(new LegacyNaiveRelationshipCounter(database, id), new CachedRelationshipCounter(database, id)); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy