Skip to content

Commit

Permalink
Use LabelIndex enum for label index setting options
Browse files Browse the repository at this point in the history
  • Loading branch information
burqen committed Jul 25, 2017
1 parent 8de11d6 commit 99e7f48
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@
import static org.neo4j.kernel.configuration.Settings.optionsIgnoreCase;
import static org.neo4j.kernel.configuration.Settings.pathSetting;
import static org.neo4j.kernel.configuration.Settings.setting;
import static org.neo4j.kernel.impl.index.labelscan.NativeLabelScanStore.NATIVE_LABEL_INDEX_TAG;

/**
* Settings for Neo4j.
Expand Down Expand Up @@ -574,7 +573,7 @@ public enum LabelIndex
@Description( "Backend to use for label --> nodes index" )
@Internal
public static final Setting<String> label_index =
setting( "dbms.label_index", optionsIgnoreCase( NATIVE_LABEL_INDEX_TAG ), NATIVE_LABEL_INDEX_TAG );
setting( "dbms.label_index", optionsIgnoreCase( LabelIndex.NATIVE.name(), LabelIndex.AUTO.name() ), LabelIndex.NATIVE.name() );

@Description( "Enable auth requirement to access Neo4j." )
public static final Setting<Boolean> auth_enabled = setting( "dbms.security.auth_enabled", BOOLEAN, "false" );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public class NativeLabelScanStore implements LabelScanStore
/**
* Native label index tag, to distinguish native label index from other label indexes
*/
public static final String NATIVE_LABEL_INDEX_TAG = "native";
private static final String NATIVE_LABEL_INDEX_TAG = "native";

/**
* Whether or not this label scan store is read-only.
Expand Down

0 comments on commit 99e7f48

Please sign in to comment.