/** * Locks down participating contexts, and returns a "merged" reader of them. In case of error, unlocks as part of * cleanup and re-throws exception. Without error, it is the duty of caller to unlock contexts! * * @param indexingContexts * @param ignoreContext * @return * @throws IOException */ protected NexusIndexMultiReader getMergedIndexReader( final Collection<IndexingContext> indexingContexts, final boolean ignoreContext ) throws IOException { final List<IndexingContext> contexts = getParticipatingContexts( indexingContexts, ignoreContext ); return new NexusIndexMultiReader( contexts ); }
/** * Locks down participating contexts, and returns a "merged" reader of them. In case of error, unlocks as part of * cleanup and re-throws exception. Without error, it is the duty of caller to unlock contexts! * * @param indexingContexts * @param ignoreContext * @return * @throws IOException */ protected NexusIndexMultiReader getMergedIndexReader( final Collection<IndexingContext> indexingContexts, final boolean ignoreContext ) throws IOException { final List<IndexingContext> contexts = getParticipatingContexts( indexingContexts, ignoreContext ); return new NexusIndexMultiReader( contexts ); }
/** * Locks down participating contexts, and returns a "merged" reader of them. In case of error, unlocks as part of * cleanup and re-throws exception. Without error, it is the duty of caller to unlock contexts! * * @param indexingContexts * @param ignoreContext * @return * @throws IOException */ protected NexusIndexMultiReader getMergedIndexReader( final Collection<IndexingContext> indexingContexts, final boolean ignoreContext ) throws IOException { final List<IndexingContext> contexts = getParticipatingContexts( indexingContexts, ignoreContext ); return new NexusIndexMultiReader( contexts ); }
protected FlatSearchResponse searchFlatPaged( FlatSearchRequest request, Collection<IndexingContext> indexingContexts, boolean ignoreContext ) throws IOException { List<IndexingContext> contexts = getParticipatingContexts( indexingContexts, ignoreContext ); final TreeSet<ArtifactInfo> result = new TreeSet<ArtifactInfo>( request.getArtifactInfoComparator() ); return new FlatSearchResponse( request.getQuery(), searchFlat( request, result, contexts, request.getQuery() ), result ); }
protected FlatSearchResponse searchFlatPaged( FlatSearchRequest request, Collection<IndexingContext> indexingContexts, boolean ignoreContext ) throws IOException { List<IndexingContext> contexts = getParticipatingContexts( indexingContexts, ignoreContext ); final TreeSet<ArtifactInfo> result = new TreeSet<ArtifactInfo>( request.getArtifactInfoComparator() ); return new FlatSearchResponse( request.getQuery(), searchFlat( request, result, contexts, request.getQuery() ), result ); }
protected FlatSearchResponse searchFlatPaged( FlatSearchRequest request, Collection<IndexingContext> indexingContexts, boolean ignoreContext ) throws IOException { List<IndexingContext> contexts = getParticipatingContexts( indexingContexts, ignoreContext ); final TreeSet<ArtifactInfo> result = new TreeSet<ArtifactInfo>( request.getArtifactInfoComparator() ); return new FlatSearchResponse( request.getQuery(), searchFlat( request, result, contexts, request.getQuery() ), result ); }
protected GroupedSearchResponse searchGrouped( GroupedSearchRequest request, Collection<IndexingContext> indexingContexts, boolean ignoreContext ) throws IOException { List<IndexingContext> contexts = getParticipatingContexts( indexingContexts, ignoreContext ); final TreeMap<String, ArtifactInfoGroup> result = new TreeMap<String, ArtifactInfoGroup>( request.getGroupKeyComparator() ); return new GroupedSearchResponse( request.getQuery(), searchGrouped( request, result, request.getGrouping(), contexts, request.getQuery() ), result ); }
protected GroupedSearchResponse searchGrouped( GroupedSearchRequest request, Collection<IndexingContext> indexingContexts, boolean ignoreContext ) throws IOException { List<IndexingContext> contexts = getParticipatingContexts( indexingContexts, ignoreContext ); final TreeMap<String, ArtifactInfoGroup> result = new TreeMap<String, ArtifactInfoGroup>( request.getGroupKeyComparator() ); return new GroupedSearchResponse( request.getQuery(), searchGrouped( request, result, request.getGrouping(), contexts, request.getQuery() ), result ); }
protected GroupedSearchResponse searchGrouped( GroupedSearchRequest request, Collection<IndexingContext> indexingContexts, boolean ignoreContext ) throws IOException { List<IndexingContext> contexts = getParticipatingContexts( indexingContexts, ignoreContext ); final TreeMap<String, ArtifactInfoGroup> result = new TreeMap<String, ArtifactInfoGroup>( request.getGroupKeyComparator() ); return new GroupedSearchResponse( request.getQuery(), searchGrouped( request, result, request.getGrouping(), contexts, request.getQuery() ), result ); }
throws IOException List<IndexingContext> contexts = getParticipatingContexts( indexingContexts, ignoreContext );
throws IOException List<IndexingContext> contexts = getParticipatingContexts( indexingContexts, ignoreContext );
throws IOException List<IndexingContext> contexts = getParticipatingContexts( indexingContexts, ignoreContext );