@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);
 }