|
Neo4j Enterprise | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.neo4j.kernel.impl.nioneo.store.RecordStore.Processor
org.neo4j.backup.check.ConsistencyCheck
public abstract class ConsistencyCheck
Finds inconsistency in a Neo4j store.
Warning: will not find "dangling" records, i.e. records that are correct but
not referenced.
Warning: will only find multiple references to the same property chain or
dynamic record chain for incremental checks (if the stores
are diff stores). Also, this checking is very
incomplete.
| Constructor Summary | |
|---|---|
ConsistencyCheck(org.neo4j.kernel.impl.nioneo.store.StoreAccess stores)
Creates a standard checker. |
|
ConsistencyCheck(org.neo4j.kernel.impl.nioneo.store.StoreAccess stores,
boolean checkPropertyOwners)
Creates a standard checker or a checker that validates property owners. |
|
| Methods inherited from class org.neo4j.kernel.impl.nioneo.store.RecordStore.Processor |
|---|
applyById, applyFiltered, applyFiltered, processDynamic, processRecord, progressInit, scan, scanById |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConsistencyCheck(org.neo4j.kernel.impl.nioneo.store.StoreAccess stores)
stores - the stores to check.
public ConsistencyCheck(org.neo4j.kernel.impl.nioneo.store.StoreAccess stores,
boolean checkPropertyOwners)
stores - the stores to check.checkPropertyOwners - if true ownership validation will
be performed.| Method Detail |
|---|
public static void main(String... args)
args - The arguments to the checker, the first is taken as the path
to the store to check.
public static void run(org.neo4j.kernel.impl.nioneo.store.StoreAccess stores,
boolean propowner)
public Iterator<org.neo4j.kernel.impl.nioneo.store.RecordStore<?>> iterator()
iterator in interface Iterable<org.neo4j.kernel.impl.nioneo.store.RecordStore<?>>public void run()
run in interface Runnable
public void checkResult()
throws AssertionError
AssertionError summarizing the number of inconsistencies will be
thrown.
AssertionError - if any inconsistencies were found.
public void processNode(org.neo4j.kernel.impl.nioneo.store.RecordStore<org.neo4j.kernel.impl.nioneo.store.NodeRecord> store,
org.neo4j.kernel.impl.nioneo.store.NodeRecord node)
processNode in class org.neo4j.kernel.impl.nioneo.store.RecordStore.Processor
public void processRelationship(org.neo4j.kernel.impl.nioneo.store.RecordStore<org.neo4j.kernel.impl.nioneo.store.RelationshipRecord> store,
org.neo4j.kernel.impl.nioneo.store.RelationshipRecord rel)
processRelationship in class org.neo4j.kernel.impl.nioneo.store.RecordStore.Processor
public void processProperty(org.neo4j.kernel.impl.nioneo.store.RecordStore<org.neo4j.kernel.impl.nioneo.store.PropertyRecord> store,
org.neo4j.kernel.impl.nioneo.store.PropertyRecord property)
processProperty in class org.neo4j.kernel.impl.nioneo.store.RecordStore.Processor
public void processString(org.neo4j.kernel.impl.nioneo.store.RecordStore<org.neo4j.kernel.impl.nioneo.store.DynamicRecord> store,
org.neo4j.kernel.impl.nioneo.store.DynamicRecord string)
processString in class org.neo4j.kernel.impl.nioneo.store.RecordStore.Processor
public void processArray(org.neo4j.kernel.impl.nioneo.store.RecordStore<org.neo4j.kernel.impl.nioneo.store.DynamicRecord> store,
org.neo4j.kernel.impl.nioneo.store.DynamicRecord array)
processArray in class org.neo4j.kernel.impl.nioneo.store.RecordStore.Processor
public void processRelationshipType(org.neo4j.kernel.impl.nioneo.store.RecordStore<org.neo4j.kernel.impl.nioneo.store.RelationshipTypeRecord> store,
org.neo4j.kernel.impl.nioneo.store.RelationshipTypeRecord type)
processRelationshipType in class org.neo4j.kernel.impl.nioneo.store.RecordStore.Processor
public void processPropertyIndex(org.neo4j.kernel.impl.nioneo.store.RecordStore<org.neo4j.kernel.impl.nioneo.store.PropertyIndexRecord> store,
org.neo4j.kernel.impl.nioneo.store.PropertyIndexRecord index)
processPropertyIndex in class org.neo4j.kernel.impl.nioneo.store.RecordStore.Processor
protected abstract <R1 extends org.neo4j.kernel.impl.nioneo.store.AbstractBaseRecord,R2 extends org.neo4j.kernel.impl.nioneo.store.AbstractBaseRecord> void report(org.neo4j.kernel.impl.nioneo.store.RecordStore<R1> recordStore,
R1 record,
org.neo4j.kernel.impl.nioneo.store.RecordStore<? extends R2> referredStore,
R2 referred,
InconsistencyType inconsistency)
recordStore - the store containing the record found to be inconsistent.record - the record found to be inconsistent.referredStore - the store containing the record the inconsistent record references.referred - the record the inconsistent record references.inconsistency - a description of the inconsistency.
protected abstract <R extends org.neo4j.kernel.impl.nioneo.store.AbstractBaseRecord> void report(org.neo4j.kernel.impl.nioneo.store.RecordStore<R> recordStore,
R record,
InconsistencyType inconsistency)
recordStore - the store the inconsistent record is stored in.record - the inconsistent record.inconsistency - a description of the inconsistency.
|
Neo4j Enterprise | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||