Package org.neo4j.gds.utils
Class StatementApi
- java.lang.Object
-
- org.neo4j.gds.utils.StatementApi
-
- Direct Known Subclasses:
NativeNodePropertyExporter,NativeRelationshipExporter,NativeRelationshipStreamExporter,StatementAction,StatementFunction
public abstract class StatementApi extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceStatementApi.TxConsumerstatic interfaceStatementApi.TxFunction<T>
-
Field Summary
Fields Modifier and Type Field Description protected org.neo4j.gds.transaction.TransactionContexttx
-
Constructor Summary
Constructors Modifier Constructor Description protectedStatementApi(org.neo4j.gds.transaction.TransactionContext tx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidacceptInTransaction(StatementApi.TxConsumer fun)protected <T> TapplyInTransaction(StatementApi.TxFunction<T> fun)protected intgetOrCreatePropertyToken(java.lang.String propertyKey)protected intgetOrCreateRelationshipToken(java.lang.String relationshipType)
-
-
-
Method Detail
-
applyInTransaction
protected final <T> T applyInTransaction(StatementApi.TxFunction<T> fun)
-
acceptInTransaction
protected final void acceptInTransaction(StatementApi.TxConsumer fun)
-
getOrCreatePropertyToken
protected final int getOrCreatePropertyToken(java.lang.String propertyKey)
-
getOrCreateRelationshipToken
protected final int getOrCreateRelationshipToken(java.lang.String relationshipType)
-
-