Skip to content

Commit

Permalink
Improvements to IndexPopulationStressTest
Browse files Browse the repository at this point in the history
- Parameterized instead of subclassed
- Broke out some code to methods
- Uses SimpleNodeValueClient instead of a modified NodeValueIterator
- Simplified random value generator a bit
  • Loading branch information
tinwelint committed Oct 10, 2018
1 parent 83fe858 commit 1dd2abe
Show file tree
Hide file tree
Showing 7 changed files with 161 additions and 356 deletions.
Expand Up @@ -37,8 +37,6 @@ public class NodeValueIterator extends PrimitiveLongCollections.PrimitiveLongBas
{
private boolean closed;
private IndexProgressor progressor;
private boolean needsValues;
private Value[] values;

@Override
protected boolean fetchNext()
Expand All @@ -61,25 +59,18 @@ public void initialize( IndexDescriptor descriptor,
boolean needsValues )
{
this.progressor = progressor;
this.needsValues = needsValues;
}

@Override
public boolean acceptNode( long reference, Value... values )
{
this.values = values;
return next( reference );
}

public Value[] getValues()
{
return values;
}

@Override
public boolean needsValues()
{
return needsValues;
return false;
}

@Override
Expand Down

This file was deleted.

0 comments on commit 1dd2abe

Please sign in to comment.