Changeset 5278
- Timestamp:
- 2011-12-16 17:00:24 (17 months ago)
- Location:
- trunk
- Files:
-
- 17 added
- 5 edited
-
apps/linkindex-cli (added)
-
apps/linkindex-cli/pom.xml (added)
-
apps/linkindex-cli/src (added)
-
apps/linkindex-cli/src/main (added)
-
apps/linkindex-cli/src/main/java (added)
-
apps/linkindex-cli/src/main/java/org (added)
-
apps/linkindex-cli/src/main/java/org/lilyproject (added)
-
apps/linkindex-cli/src/main/java/org/lilyproject/tools (added)
-
apps/linkindex-cli/src/main/java/org/lilyproject/tools/linkindex.cli (added)
-
apps/linkindex-cli/src/main/java/org/lilyproject/tools/linkindex.cli/LinkIndexCli.java (added)
-
apps/linkindex-cli/src/main/resources (added)
-
apps/linkindex-cli/src/main/resources/org (added)
-
apps/linkindex-cli/src/main/resources/org/lilyproject (added)
-
apps/linkindex-cli/src/main/resources/org/lilyproject/tools (added)
-
apps/linkindex-cli/src/main/resources/org/lilyproject/tools/linkindex (added)
-
apps/linkindex-cli/src/main/resources/org/lilyproject/tools/linkindex/cli (added)
-
apps/linkindex-cli/src/main/resources/org/lilyproject/tools/linkindex/cli/LinkIndexCli_help_header.txt (added)
-
cr/linkindex/src/main/java/org/lilyproject/linkindex/LinkIndex.java (modified) (6 diffs)
-
cr/repository/api/src/main/java/org/lilyproject/repository/api/ValueType.java (modified) (1 diff)
-
dist/dist-assembly.xml (modified) (3 diffs)
-
dist/pom.xml (modified) (1 diff)
-
pom.xml (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/cr/linkindex/src/main/java/org/lilyproject/linkindex/LinkIndex.java
r5122 r5278 261 261 try { 262 262 Query query = new Query(); 263 query.addEqualsCondition("vtag", vtag.getBytes());264 263 query.addEqualsCondition("target", record.toBytes()); 264 if (vtag != null) { 265 query.addEqualsCondition("vtag", vtag.getBytes()); 266 } 265 267 if (sourceField != null) { 266 268 query.addEqualsCondition("sourcefield", sourceField.getBytes()); … … 290 292 Query query = new Query(); 291 293 query.addEqualsCondition("target", record.toBytes()); 292 query.addEqualsCondition("vtag", vtag.getBytes()); 294 if (vtag != null) { 295 query.addEqualsCondition("vtag", vtag.getBytes()); 296 } 293 297 294 298 Set<FieldedLink> result = new HashSet<FieldedLink>(); … … 346 350 Query query = new Query(); 347 351 query.addEqualsCondition("source", record.toBytes()); 348 query.addEqualsCondition("vtag", vtag.getBytes()); 352 if (vtag != null) { 353 query.addEqualsCondition("vtag", vtag.getBytes()); 354 } 349 355 if (sourceField != null) { 350 356 query.addEqualsCondition("sourcefield", sourceField.getBytes()); … … 363 369 } catch (IOException e) { 364 370 throw new LinkIndexException("Error getting forward links for record '" + record + "', vtag '" + 365 vtag + "' ", e);371 vtag + "', field '" + sourceField + "'", e); 366 372 } finally { 367 373 metrics.report(Action.GET_FW_LINKS, System.currentTimeMillis() - before); … … 375 381 Query query = new Query(); 376 382 query.addEqualsCondition("source", record.toBytes()); 377 query.addEqualsCondition("vtag", vtag.getBytes()); 383 if (vtag != null) { 384 query.addEqualsCondition("vtag", vtag.getBytes()); 385 } 378 386 379 387 Set<FieldedLink> result = new HashSet<FieldedLink>(); … … 395 403 } 396 404 } 405 397 406 } -
trunk/cr/repository/api/src/main/java/org/lilyproject/repository/api/ValueType.java
r5267 r5278 155 155 * 156 156 * <p> 157 * This method returns the deepest level (non List or Path) value type. 157 * This method returns the deepest level (non List or Path) value type, 158 * or the current value type if it is not a list or path. 158 159 */ 159 160 ValueType getDeepestValueType(); -
trunk/dist/dist-assembly.xml
r5164 r5278 258 258 <fileMode>0755</fileMode> 259 259 </file> 260 <!--261 260 <file> 262 261 <source>${basedir}/../tools/print-host/target/dist-scripts/lily-print-host.bat</source> … … 264 263 <fileMode>0755</fileMode> 265 264 </file> 266 -->267 265 268 266 <!-- Lily schema upgrade tool for upgrade from Lily 1.0 to Lily 1.1 --> … … 291 289 <fileMode>0755</fileMode> 292 290 </file> 293 < !--file>291 <file> 294 292 <source>${basedir}/../tools/record-row-visualizer/target/dist-scripts/lily-record-row-visualizer.bat</source> 295 293 <outputDirectory>/bin/</outputDirectory> 296 294 <fileMode>0755</fileMode> 297 </file--> 295 </file> 296 297 <!-- Linkindex tool --> 298 <file> 299 <source>${basedir}/../apps/linkindex-cli/target/dist-scripts/lily-query-linkindex</source> 300 <outputDirectory>/bin/</outputDirectory> 301 <fileMode>0755</fileMode> 302 </file> 303 <file> 304 <source>${basedir}/../apps/linkindex-cli/target/dist-scripts/lily-query-linkindex.bat</source> 305 <outputDirectory>/bin/</outputDirectory> 306 <fileMode>0755</fileMode> 307 </file> 298 308 </files> 299 309 -
trunk/dist/pom.xml
r5247 r5278 113 113 <artifactId>lily-record-row-visualizer</artifactId> 114 114 </dependency> 115 116 <dependency> 117 <groupId>org.lilyproject</groupId> 118 <artifactId>lily-linkindex-cli</artifactId> 119 </dependency> 115 120 </dependencies> 116 121 -
trunk/pom.xml
r5270 r5278 119 119 <module>apps/tester</module> 120 120 <module>apps/mbox-import</module> 121 <module>apps/linkindex-cli</module> 121 122 122 123 <module>dist</module> … … 378 379 <groupId>org.lilyproject</groupId> 379 380 <artifactId>lily-record-row-visualizer</artifactId> 381 <version>1.2-SNAPSHOT</version> 382 </dependency> 383 <dependency> 384 <groupId>org.lilyproject</groupId> 385 <artifactId>lily-linkindex-cli</artifactId> 380 386 <version>1.2-SNAPSHOT</version> 381 387 </dependency>
Note: See TracChangeset
for help on using the changeset viewer.