fixed node-costs in csv

This commit is contained in:
Arndt 2015-03-09 18:35:05 +01:00
parent 0fe5d5144a
commit 4b084bd033
3 changed files with 79 additions and 37 deletions

View file

@ -281,9 +281,6 @@ public final class BExpressionContext
public String getKeyValueDescription( boolean inverseDirection, byte[] ab )
{
int inverseBitByteIndex = meta.readVarLength ? 0 : 7;
// int abLen = ab.length;
StringBuilder sb = new StringBuilder( 200 );
decode( lookupData, inverseDirection, ab );
for( int inum = 0; inum < lookupValues.size(); inum++ ) // loop over lookup names
@ -292,7 +289,8 @@ public final class BExpressionContext
String value = va[lookupData[inum]].toString();
if ( value != null && value.length() > 0 )
{
sb.append( " " + lookupNames.get( inum ) + "=" + value );
if ( sb.length() > 0 ) sb.append( ' ' );
sb.append(lookupNames.get( inum ) + "=" + value );
}
}
return sb.toString();
@ -571,6 +569,7 @@ public final class BExpressionContext
lookupData[inum] = valueIndex;
}
/**
* special hack for yes/proposed relations:
* add a lookup value if not yet a smaller, >1 value was added