Skip to content

Commit

Permalink
a better StringFactory method for the toString() of an Index.
Browse files Browse the repository at this point in the history
  • Loading branch information
okram committed Jul 28, 2011
1 parent 7e04d72 commit 91b9f83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.textile
Expand Up @@ -33,6 +33,7 @@ h3. Version 0.9 (Marvin -- NOT OFFICIALLY RELEASED YET)
* Changed the property graph schema of @GraphSail@ to more closely resemble the @SailGraph@ schema
* Extended @GraphSail@ to support Sesame-style inferencing
* @SailGraph@ dangling connection issue fixed
* Updated @Index.toString()@ to make it more readable and compact

==<hr/>==

Expand Down
Expand Up @@ -34,7 +34,7 @@ public static String edgeString(final Edge edge) {
}

public static String indexString(final Index index) {
String returnString = index.getIndexType() + "[" + index.getIndexName() + ":" + index.getIndexClass() + "]";
String returnString = index.getIndexType() + "[" + index.getIndexName() + ":" + index.getIndexClass().getSimpleName() + "]";
if (index instanceof AutomaticIndex) {
returnString = returnString + "[autoIndexKeys:" + ((AutomaticIndex) index).getAutoIndexKeys() + "]";
}
Expand Down

0 comments on commit 91b9f83

Please sign in to comment.