Examples of QueryBuilderVisitorException


Examples of it.unimi.dsi.mg4j.query.nodes.QueryBuilderVisitorException

    try {
      if ( node.termNumber != -1 ) return curr.top().documents( node.termNumber ).weight( weight() );
      return curr.top().documents( node.term ).weight( weight() );
    }
    catch ( IOException e ) {
      throw new QueryBuilderVisitorException( e );
    }
  }
View Full Code Here

Examples of it.unimi.dsi.mg4j.query.nodes.QueryBuilderVisitorException

  public DocumentIterator visit( final Prefix node ) throws QueryBuilderVisitorException {
    try {
      return curr.top().documents( node.prefix, limit ).weight( weight() );
    }
    catch ( IOException e ) {
      throw new QueryBuilderVisitorException( e );
    }
    catch ( TooManyTermsException e ) {
      throw new QueryBuilderVisitorException( e );
    }
  }
View Full Code Here

Examples of it.unimi.dsi.mg4j.query.nodes.QueryBuilderVisitorException

      if ( node.right != null ) right.set( method.invoke( parser, node.right.toString() ) );
      return PayloadPredicateDocumentIterator.getInstance( index.documents( 0 ),
          index.payload.rangeFilter( node.left == null ? null : left, node.right == null ? null : right ) ).weight( weight() );
    }
    catch( InvocationTargetException e ) {
      throw new QueryBuilderVisitorException( e.getCause() );
    }
    catch ( Exception e ) {
      throw new QueryBuilderVisitorException( e );
    }
  }
View Full Code Here

Examples of it.unimi.dsi.mg4j.query.nodes.QueryBuilderVisitorException

  public DocumentIterator visitPost( final And node, final DocumentIterator[] subNode ) throws QueryBuilderVisitorException {
    try {
      return AndDocumentIterator.getInstance( curr.top(), subNode ).weight( weights.popDouble() );
    }
    catch ( IOException e ) {
      throw new QueryBuilderVisitorException( e );
    }
  }
View Full Code Here

Examples of it.unimi.dsi.mg4j.query.nodes.QueryBuilderVisitorException

  public DocumentIterator visitPost( final Consecutive node, final DocumentIterator[] subNode ) throws QueryBuilderVisitorException {
    try {
      return ConsecutiveDocumentIterator.getInstance( subNode, node.gap ).weight( weights.popDouble() );
    }
    catch ( IOException e ) {
      throw new QueryBuilderVisitorException( e );
    }
  }
View Full Code Here

Examples of it.unimi.dsi.mg4j.query.nodes.QueryBuilderVisitorException

  public DocumentIterator visitPost( final Not node, final DocumentIterator subNode ) throws QueryBuilderVisitorException {
    try {
      return NotDocumentIterator.getInstance( subNode, numberOfDocuments ).weight( weights.popDouble() );
    }
    catch ( IOException e ) {
      throw new QueryBuilderVisitorException( e );
    }
  }
View Full Code Here

Examples of it.unimi.dsi.mg4j.query.nodes.QueryBuilderVisitorException

  public DocumentIterator visitPost( final Or node, final DocumentIterator[] subNode ) throws QueryBuilderVisitorException {
    try {
      return OrDocumentIterator.getInstance( subNode ).weight( weights.popDouble() );
    }
    catch ( IOException e ) {
      throw new QueryBuilderVisitorException( e );
    }
  }
View Full Code Here

Examples of it.unimi.dsi.mg4j.query.nodes.QueryBuilderVisitorException

  public DocumentIterator visitPost( final OrderedAnd node, final DocumentIterator[] subNode ) throws QueryBuilderVisitorException {
    try {
      return OrderedAndDocumentIterator.getInstance( curr.top(), subNode ).weight( weights.popDouble() );
    }
    catch ( IOException e ) {
      throw new QueryBuilderVisitorException( e );
    }
  }
View Full Code Here

Examples of it.unimi.dsi.mg4j.query.nodes.QueryBuilderVisitorException

    IndexIterator result;
    try {
      result = MultiTermIndexIterator.getInstance( curr.top(), indexIterator ).weight( weights.popDouble() );
    }
    catch ( IOException e ) {
      throw new QueryBuilderVisitorException( e );
    }
    result.term( node.toString() );
    return result;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.