Skip to content

Commit

Permalink
Use simplified layout/key model
Browse files Browse the repository at this point in the history
  • Loading branch information
OliviaYtterbrink committed Mar 19, 2018
1 parent f5cc200 commit b8b01e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
Expand Up @@ -37,6 +37,7 @@
import org.neo4j.graphdb.ResourceIterator;
import org.neo4j.helpers.collection.BoundedIterable;
import org.neo4j.helpers.collection.Pair;
import org.neo4j.index.internal.gbptree.Layout;
import org.neo4j.index.internal.gbptree.RecoveryCleanupWorkCollector;
import org.neo4j.internal.kernel.api.InternalIndexState;
import org.neo4j.io.fs.FileSystemAbstraction;
Expand Down Expand Up @@ -79,7 +80,7 @@ public class SpatialCRSSchemaIndex
private byte[] failureBytes;
private SpatialSchemaKey treeKey;
private NativeSchemaValue treeValue;
private SpatialLayout layout;
private Layout<SpatialSchemaKey,NativeSchemaValue> layout;
private NativeSchemaIndexUpdater<SpatialSchemaKey,NativeSchemaValue> singleUpdater;
private NativeSchemaIndex<SpatialSchemaKey,NativeSchemaValue> schemaIndex;
private WorkSync<IndexUpdateApply<SpatialSchemaKey,NativeSchemaValue>,IndexUpdateWork<SpatialSchemaKey,NativeSchemaValue>> additionsWorkSync;
Expand Down
Expand Up @@ -25,7 +25,7 @@
import org.neo4j.values.storable.CoordinateReferenceSystem;

/**
* {@link Layout} for PointValues where they don't need to be unique.
* {@link Layout} for PointValues.
*/
class SpatialLayout extends SchemaLayout<SpatialSchemaKey>
{
Expand Down Expand Up @@ -80,10 +80,4 @@ public void readKey( PageCursor cursor, SpatialSchemaKey into, int keySize )
into.rawValueBits = cursor.getLong();
into.setEntityId( cursor.getLong() );
}

@Override
int compareValue( SpatialSchemaKey o1, SpatialSchemaKey o2 )
{
return o1.compareValueTo( o2 );
}
}

0 comments on commit b8b01e3

Please sign in to comment.