Class AbstractInMemoryCountStore

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.neo4j.counts.CountsAccessor, org.neo4j.counts.CountsStorage, org.neo4j.counts.CountsStore, org.neo4j.counts.CountsVisitor.Visitable, org.neo4j.kernel.impl.index.schema.ConsistencyCheckable

    public abstract class AbstractInMemoryCountStore
    extends java.lang.Object
    implements org.neo4j.counts.CountsStore
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.neo4j.counts.CountsAccessor

        org.neo4j.counts.CountsAccessor.Updater
      • Nested classes/interfaces inherited from interface org.neo4j.counts.CountsStore

        org.neo4j.counts.CountsStore.NullCountsStore
    • Field Summary

      • Fields inherited from interface org.neo4j.counts.CountsAccessor

        NO_OP_UPDATER
      • Fields inherited from interface org.neo4j.counts.CountsStore

        NULL_INSTANCE
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractInMemoryCountStore​(org.neo4j.gds.api.GraphStore graphStore, org.neo4j.token.TokenHolders tokenHolders)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void accept​(org.neo4j.counts.CountsVisitor visitor, org.neo4j.io.pagecache.context.CursorContext cursorContext)  
      org.neo4j.counts.CountsAccessor.Updater apply​(long txId, org.neo4j.io.pagecache.context.CursorContext cursorContext)  
      void close()  
      boolean consistencyCheck​(org.neo4j.annotations.documented.ReporterFactory reporterFactory, org.neo4j.io.pagecache.context.CursorContext cursorContext)  
      long nodeCount​(int labelId, org.neo4j.io.pagecache.context.CursorContext cursorContext)  
      long relationshipCount​(int startLabelId, int typeId, int endLabelId, org.neo4j.io.pagecache.context.CursorContext cursorContext)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.neo4j.counts.CountsStorage

        checkpoint, start
    • Constructor Detail

      • AbstractInMemoryCountStore

        public AbstractInMemoryCountStore​(org.neo4j.gds.api.GraphStore graphStore,
                                          org.neo4j.token.TokenHolders tokenHolders)
    • Method Detail

      • apply

        public org.neo4j.counts.CountsAccessor.Updater apply​(long txId,
                                                             org.neo4j.io.pagecache.context.CursorContext cursorContext)
        Specified by:
        apply in interface org.neo4j.counts.CountsStore
      • nodeCount

        public long nodeCount​(int labelId,
                              org.neo4j.io.pagecache.context.CursorContext cursorContext)
        Specified by:
        nodeCount in interface org.neo4j.counts.CountsAccessor
      • relationshipCount

        public long relationshipCount​(int startLabelId,
                                      int typeId,
                                      int endLabelId,
                                      org.neo4j.io.pagecache.context.CursorContext cursorContext)
        Specified by:
        relationshipCount in interface org.neo4j.counts.CountsAccessor
      • accept

        public void accept​(org.neo4j.counts.CountsVisitor visitor,
                           org.neo4j.io.pagecache.context.CursorContext cursorContext)
        Specified by:
        accept in interface org.neo4j.counts.CountsVisitor.Visitable
      • consistencyCheck

        public boolean consistencyCheck​(org.neo4j.annotations.documented.ReporterFactory reporterFactory,
                                        org.neo4j.io.pagecache.context.CursorContext cursorContext)
        Specified by:
        consistencyCheck in interface org.neo4j.kernel.impl.index.schema.ConsistencyCheckable
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface org.neo4j.counts.CountsStorage