@Override
 public LegacyIndexHits relationshipLegacyIndexQuery(
     KernelStatement statement,
     String indexName,
     Object queryOrQueryObject,
     long startNode,
     long endNode)
     throws LegacyIndexNotFoundKernelException {
   LegacyIndex index = statement.legacyIndexTxState().relationshipChanges(indexName);
   if (startNode != -1 || endNode != -1) {
     return index.query(queryOrQueryObject, startNode, endNode);
   }
   return index.query(queryOrQueryObject);
 }
 @Override
 public LegacyIndexHits relationshipLegacyIndexGet(
     KernelStatement statement,
     String indexName,
     String key,
     Object value,
     long startNode,
     long endNode)
     throws LegacyIndexNotFoundKernelException {
   LegacyIndex index = statement.legacyIndexTxState().relationshipChanges(indexName);
   if (startNode != -1 || endNode != -1) {
     return index.get(key, value, startNode, endNode);
   }
   return index.get(key, value);
 }
 @Override
 public void relationshipLegacyIndexDrop(KernelStatement statement, String indexName)
     throws LegacyIndexNotFoundKernelException {
   statement.legacyIndexTxState().relationshipChanges(indexName).drop();
   statement.legacyIndexTxState().deleteIndex(IndexEntityType.Relationship, indexName);
 }
 @Override
 public void relationshipRemoveFromLegacyIndex(
     KernelStatement statement, String indexName, long relationship)
     throws LegacyIndexNotFoundKernelException {
   statement.legacyIndexTxState().relationshipChanges(indexName).remove(relationship);
 }
 @Override
 public void nodeRemoveFromLegacyIndex(KernelStatement statement, String indexName, long node)
     throws LegacyIndexNotFoundKernelException {
   statement.legacyIndexTxState().nodeChanges(indexName).remove(node);
 }
 @Override
 public void nodeAddToLegacyIndex(
     KernelStatement statement, String indexName, long node, String key, Object value)
     throws LegacyIndexNotFoundKernelException {
   statement.legacyIndexTxState().nodeChanges(indexName).addNode(node, key, value);
 }
 @Override
 public LegacyIndexHits nodeLegacyIndexQuery(
     KernelStatement statement, String indexName, Object queryOrQueryObject)
     throws LegacyIndexNotFoundKernelException {
   return statement.legacyIndexTxState().nodeChanges(indexName).query(queryOrQueryObject);
 }
 @Override
 public LegacyIndexHits nodeLegacyIndexGet(
     KernelStatement statement, String indexName, String key, Object value)
     throws LegacyIndexNotFoundKernelException {
   return statement.legacyIndexTxState().nodeChanges(indexName).get(key, value);
 }