Package org.neo4j.internal.recordstorage
Class AbstractInMemoryStorageReader
- java.lang.Object
-
- org.neo4j.internal.recordstorage.AbstractInMemoryStorageReader
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.neo4j.storageengine.api.StorageReader,org.neo4j.storageengine.api.StorageSchemaReader
public abstract class AbstractInMemoryStorageReader extends java.lang.Object implements org.neo4j.storageengine.api.StorageReader
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractInMemoryStorageReader.AbstractAllRelationshipScan
-
Field Summary
Fields Modifier and Type Field Description protected org.neo4j.counts.CountsAccessorcountsprotected org.neo4j.gds.core.cypher.CypherGraphStoregraphStoreprotected org.neo4j.token.TokenHolderstokenHolders
-
Constructor Summary
Constructors Constructor Description AbstractInMemoryStorageReader(org.neo4j.gds.core.cypher.CypherGraphStore graphStore, org.neo4j.token.TokenHolders tokenHolders, org.neo4j.counts.CountsAccessor counts)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.neo4j.storageengine.api.AllNodeScanallNodeScan()voidclose()booleanconstraintExists(org.neo4j.internal.schema.ConstraintDescriptor descriptor)org.neo4j.internal.schema.ConstraintDescriptorconstraintGetForName(java.lang.String name)java.util.Iterator<org.neo4j.internal.schema.ConstraintDescriptor>constraintsGetAll()java.util.Iterator<org.neo4j.internal.schema.ConstraintDescriptor>constraintsGetForLabel(int labelId)java.util.Iterator<org.neo4j.internal.schema.ConstraintDescriptor>constraintsGetForRelationshipType(int typeId)java.util.Iterator<org.neo4j.internal.schema.ConstraintDescriptor>constraintsGetForSchema(org.neo4j.internal.schema.SchemaDescriptor descriptor)longcountsForNode(int labelId, org.neo4j.io.pagecache.context.CursorContext cursorContext)longcountsForRelationship(int startLabelId, int typeId, int endLabelId, org.neo4j.io.pagecache.context.CursorContext cursorContext)<T> TgetOrCreateSchemaDependantState(java.lang.Class<T> type, java.util.function.Function<org.neo4j.storageengine.api.StorageReader,T> factory)booleanhasRelatedSchema(int label, org.neo4j.common.EntityType entityType)booleanhasRelatedSchema(long[] labels, int propertyKey, org.neo4j.common.EntityType entityType)java.util.Iterator<org.neo4j.internal.schema.IndexDescriptor>indexesGetAll()java.util.Iterator<org.neo4j.internal.schema.IndexDescriptor>indexesGetForLabel(int labelId)java.util.Iterator<org.neo4j.internal.schema.IndexDescriptor>indexesGetForRelationshipType(int relationshipType)booleanindexExists(org.neo4j.internal.schema.IndexDescriptor index)org.neo4j.internal.schema.IndexDescriptorindexGetForName(java.lang.String name)java.util.Iterator<org.neo4j.internal.schema.IndexDescriptor>indexGetForSchema(org.neo4j.internal.schema.SchemaDescriptor descriptor)java.lang.LongindexGetOwningUniquenessConstraintId(org.neo4j.internal.schema.IndexDescriptor index)intlabelCount()protected booleannodeExists(long id)longnodesGetCount(org.neo4j.io.pagecache.context.CursorContext cursorContext)intpropertyKeyCount()intrelationshipTypeCount()org.neo4j.storageengine.api.StorageSchemaReaderschemaSnapshot()org.neo4j.common.TokenNameLookuptokenNameLookup()java.util.Collection<org.neo4j.internal.schema.constraints.IndexBackedConstraintDescriptor>uniquenessConstraintsGetRelated(long[] labels, int propertyKeyId, org.neo4j.common.EntityType entityType)java.util.Collection<org.neo4j.internal.schema.IndexDescriptor>valueIndexesGetRelated(long[] tokens, int[] propertyKeyIds, org.neo4j.common.EntityType entityType)java.util.Collection<org.neo4j.internal.schema.IndexDescriptor>valueIndexesGetRelated(long[] tokens, int propertyKeyId, org.neo4j.common.EntityType entityType)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Method Detail
-
indexGetForSchema
public java.util.Iterator<org.neo4j.internal.schema.IndexDescriptor> indexGetForSchema(org.neo4j.internal.schema.SchemaDescriptor descriptor)
- Specified by:
indexGetForSchemain interfaceorg.neo4j.storageengine.api.StorageSchemaReader
-
indexesGetForLabel
public java.util.Iterator<org.neo4j.internal.schema.IndexDescriptor> indexesGetForLabel(int labelId)
- Specified by:
indexesGetForLabelin interfaceorg.neo4j.storageengine.api.StorageSchemaReader
-
indexesGetForRelationshipType
public java.util.Iterator<org.neo4j.internal.schema.IndexDescriptor> indexesGetForRelationshipType(int relationshipType)
- Specified by:
indexesGetForRelationshipTypein interfaceorg.neo4j.storageengine.api.StorageSchemaReader
-
indexGetForName
public org.neo4j.internal.schema.IndexDescriptor indexGetForName(java.lang.String name)
- Specified by:
indexGetForNamein interfaceorg.neo4j.storageengine.api.StorageSchemaReader
-
constraintGetForName
public org.neo4j.internal.schema.ConstraintDescriptor constraintGetForName(java.lang.String name)
- Specified by:
constraintGetForNamein interfaceorg.neo4j.storageengine.api.StorageSchemaReader
-
indexExists
public boolean indexExists(org.neo4j.internal.schema.IndexDescriptor index)
- Specified by:
indexExistsin interfaceorg.neo4j.storageengine.api.StorageReader
-
indexesGetAll
public java.util.Iterator<org.neo4j.internal.schema.IndexDescriptor> indexesGetAll()
- Specified by:
indexesGetAllin interfaceorg.neo4j.storageengine.api.StorageSchemaReader
-
valueIndexesGetRelated
public java.util.Collection<org.neo4j.internal.schema.IndexDescriptor> valueIndexesGetRelated(long[] tokens, int propertyKeyId, org.neo4j.common.EntityType entityType)- Specified by:
valueIndexesGetRelatedin interfaceorg.neo4j.storageengine.api.StorageReader
-
valueIndexesGetRelated
public java.util.Collection<org.neo4j.internal.schema.IndexDescriptor> valueIndexesGetRelated(long[] tokens, int[] propertyKeyIds, org.neo4j.common.EntityType entityType)- Specified by:
valueIndexesGetRelatedin interfaceorg.neo4j.storageengine.api.StorageReader
-
uniquenessConstraintsGetRelated
public java.util.Collection<org.neo4j.internal.schema.constraints.IndexBackedConstraintDescriptor> uniquenessConstraintsGetRelated(long[] labels, int propertyKeyId, org.neo4j.common.EntityType entityType)- Specified by:
uniquenessConstraintsGetRelatedin interfaceorg.neo4j.storageengine.api.StorageReader
-
hasRelatedSchema
public boolean hasRelatedSchema(long[] labels, int propertyKey, org.neo4j.common.EntityType entityType)- Specified by:
hasRelatedSchemain interfaceorg.neo4j.storageengine.api.StorageReader
-
hasRelatedSchema
public boolean hasRelatedSchema(int label, org.neo4j.common.EntityType entityType)- Specified by:
hasRelatedSchemain interfaceorg.neo4j.storageengine.api.StorageReader
-
constraintsGetForSchema
public java.util.Iterator<org.neo4j.internal.schema.ConstraintDescriptor> constraintsGetForSchema(org.neo4j.internal.schema.SchemaDescriptor descriptor)
- Specified by:
constraintsGetForSchemain interfaceorg.neo4j.storageengine.api.StorageReader
-
constraintExists
public boolean constraintExists(org.neo4j.internal.schema.ConstraintDescriptor descriptor)
- Specified by:
constraintExistsin interfaceorg.neo4j.storageengine.api.StorageReader
-
constraintsGetForLabel
public java.util.Iterator<org.neo4j.internal.schema.ConstraintDescriptor> constraintsGetForLabel(int labelId)
- Specified by:
constraintsGetForLabelin interfaceorg.neo4j.storageengine.api.StorageSchemaReader
-
constraintsGetForRelationshipType
public java.util.Iterator<org.neo4j.internal.schema.ConstraintDescriptor> constraintsGetForRelationshipType(int typeId)
- Specified by:
constraintsGetForRelationshipTypein interfaceorg.neo4j.storageengine.api.StorageSchemaReader
-
constraintsGetAll
public java.util.Iterator<org.neo4j.internal.schema.ConstraintDescriptor> constraintsGetAll()
- Specified by:
constraintsGetAllin interfaceorg.neo4j.storageengine.api.StorageSchemaReader
-
indexGetOwningUniquenessConstraintId
public java.lang.Long indexGetOwningUniquenessConstraintId(org.neo4j.internal.schema.IndexDescriptor index)
- Specified by:
indexGetOwningUniquenessConstraintIdin interfaceorg.neo4j.storageengine.api.StorageReader
-
countsForNode
public long countsForNode(int labelId, org.neo4j.io.pagecache.context.CursorContext cursorContext)- Specified by:
countsForNodein interfaceorg.neo4j.storageengine.api.StorageReader
-
countsForRelationship
public long countsForRelationship(int startLabelId, int typeId, int endLabelId, org.neo4j.io.pagecache.context.CursorContext cursorContext)- Specified by:
countsForRelationshipin interfaceorg.neo4j.storageengine.api.StorageReader
-
nodesGetCount
public long nodesGetCount(org.neo4j.io.pagecache.context.CursorContext cursorContext)
- Specified by:
nodesGetCountin interfaceorg.neo4j.storageengine.api.StorageReader
-
labelCount
public int labelCount()
- Specified by:
labelCountin interfaceorg.neo4j.storageengine.api.StorageReader
-
propertyKeyCount
public int propertyKeyCount()
- Specified by:
propertyKeyCountin interfaceorg.neo4j.storageengine.api.StorageReader
-
relationshipTypeCount
public int relationshipTypeCount()
- Specified by:
relationshipTypeCountin interfaceorg.neo4j.storageengine.api.StorageReader
-
getOrCreateSchemaDependantState
public <T> T getOrCreateSchemaDependantState(java.lang.Class<T> type, java.util.function.Function<org.neo4j.storageengine.api.StorageReader,T> factory)- Specified by:
getOrCreateSchemaDependantStatein interfaceorg.neo4j.storageengine.api.StorageReader
-
allNodeScan
public org.neo4j.storageengine.api.AllNodeScan allNodeScan()
- Specified by:
allNodeScanin interfaceorg.neo4j.storageengine.api.StorageReader
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfaceorg.neo4j.storageengine.api.StorageReader
-
schemaSnapshot
public org.neo4j.storageengine.api.StorageSchemaReader schemaSnapshot()
- Specified by:
schemaSnapshotin interfaceorg.neo4j.storageengine.api.StorageReader
-
tokenNameLookup
public org.neo4j.common.TokenNameLookup tokenNameLookup()
- Specified by:
tokenNameLookupin interfaceorg.neo4j.storageengine.api.StorageReader
-
nodeExists
protected boolean nodeExists(long id)
-
-