public boolean visitPre( Select node ) throws QueryBuilderVisitorException { currentIndex.push( node.index.toString() ); return true; } public boolean visitPre( Remap node ) throws QueryBuilderVisitorException { return true; }
public boolean visitPre( Select node ) throws QueryBuilderVisitorException { currentIndex.push( node.index.toString() ); return true; } public boolean visitPre( Remap node ) throws QueryBuilderVisitorException { return true; }
public boolean visitPre( Select node ) throws QueryBuilderVisitorException { currentIndex.push( node.index.toString() ); return true; } public boolean visitPre( Remap node ) throws QueryBuilderVisitorException { return true; }
public boolean visitPre( Select node ) throws QueryBuilderVisitorException { currentIndex.push( node.index.toString() ); return true; } public boolean visitPre( Remap node ) throws QueryBuilderVisitorException { return true; }
public QueryBuilderVisitor<Set<String>> prepare() { currentIndex.clear(); currentIndex.push( defaultIndex ); return this; }
public QueryBuilderVisitor<Set<String>> prepare() { currentIndex.clear(); currentIndex.push( defaultIndex ); return this; }
public QueryBuilderVisitor<Set<String>> prepare() { currentIndex.clear(); currentIndex.push( defaultIndex ); return this; }
public QueryBuilderVisitor<Set<String>> prepare() { currentIndex.clear(); currentIndex.push( defaultIndex ); return this; }
public boolean visitPre( final Select node ) throws QueryBuilderVisitorException { if ( indexMap == null ) throw new IllegalArgumentException( "You cannot use Select nodes without an index map" ); final Index index = indexMap.get( node.index.toString() ); if ( index == null ) throw new NoSuchElementException( "The selected index (" + node.index + ")" + " does not appear in the index map (" + indexMap + ")" ); curr.push( indexMap.get( node.index.toString() ) ); return true; }
public boolean visitPre( final Select node ) throws QueryBuilderVisitorException { if ( indexMap == null ) throw new IllegalArgumentException( "You cannot use Select nodes without an index map" ); final Index index = indexMap.get( node.index.toString() ); if ( index == null ) throw new NoSuchElementException( "The selected index (" + node.index + ")" + " does not appear in the index map (" + indexMap + ")" ); curr.push( indexMap.get( node.index.toString() ) ); return true; }
public boolean visitPre( final Select node ) throws QueryBuilderVisitorException { if ( indexMap == null ) throw new IllegalArgumentException( "You cannot use Select nodes without an index map" ); final Index index = indexMap.get( node.index.toString() ); if ( index == null ) throw new NoSuchElementException( "The selected index (" + node.index + ")" + " does not appear in the index map (" + indexMap + ")" ); curr.push( indexMap.get( node.index.toString() ) ); return true; }
public boolean visitPre( final Select node ) throws QueryBuilderVisitorException { if ( indexMap == null ) throw new IllegalArgumentException( "You cannot use Select nodes without an index map" ); final Index index = indexMap.get( node.index.toString() ); if ( index == null ) throw new NoSuchElementException( "The selected index (" + node.index + ")" + " does not appear in the index map (" + indexMap + ")" ); curr.push( indexMap.get( node.index.toString() ) ); return true; }
/** Creates a new builder visitor with additional parsers for payload-based indices. * * @param indexMap a map from index names to indices, to be used in {@link Select} nodes, or <code>null</code> * if the only used index is the default index. * @param defaultIndex the default index. * @param limit a limit that will be used with {@link Prefix} nodes. */ public DocumentIteratorBuilderVisitor( final Object2ReferenceMap<String,Index> indexMap, final Reference2ReferenceMap<Index,Object> index2Parser, final Index defaultIndex, final int limit ) { this.indexMap = indexMap; this.defaultIndex = defaultIndex; this.index2Parser = index2Parser; this.limit = limit; weights = new DoubleArrayList(); weight = Double.NaN; curr = new ObjectArrayList<Index>(); curr.push( defaultIndex ); this.numberOfDocuments = defaultIndex.numberOfDocuments; }
/** Creates a new builder visitor with additional parsers for payload-based indices. * * @param indexMap a map from index names to indices, to be used in {@link Select} nodes, or <code>null</code> * if the only used index is the default index. * @param defaultIndex the default index. * @param limit a limit that will be used with {@link Prefix} nodes. */ public DocumentIteratorBuilderVisitor( final Object2ReferenceMap<String,Index> indexMap, final Reference2ReferenceMap<Index,Object> index2Parser, final Index defaultIndex, final int limit ) { this.indexMap = indexMap; this.defaultIndex = defaultIndex; this.index2Parser = index2Parser; this.limit = limit; weights = new DoubleArrayList(); weight = Double.NaN; curr = new ObjectArrayList<Index>(); curr.push( defaultIndex ); this.numberOfDocuments = defaultIndex.numberOfDocuments; }
/** Creates a new builder visitor with additional parsers for payload-based indices. * * @param indexMap a map from index names to indices, to be used in {@link Select} nodes, or <code>null</code> * if the only used index is the default index. * @param defaultIndex the default index. * @param limit a limit that will be used with {@link Prefix} nodes. */ public DocumentIteratorBuilderVisitor( final Object2ReferenceMap<String,Index> indexMap, final Reference2ReferenceMap<Index,Object> index2Parser, final Index defaultIndex, final int limit ) { this.indexMap = indexMap; this.defaultIndex = defaultIndex; this.index2Parser = index2Parser; this.limit = limit; weights = new DoubleArrayList(); weight = Double.NaN; curr = new ObjectArrayList<Index>(); curr.push( defaultIndex ); this.numberOfDocuments = defaultIndex.numberOfDocuments; }
/** Creates a new builder visitor with additional parsers for payload-based indices. * * @param indexMap a map from index names to indices, to be used in {@link Select} nodes, or <code>null</code> * if the only used index is the default index. * @param defaultIndex the default index. * @param limit a limit that will be used with {@link Prefix} nodes. */ public DocumentIteratorBuilderVisitor( final Object2ReferenceMap<String,Index> indexMap, final Reference2ReferenceMap<Index,Object> index2Parser, final Index defaultIndex, final int limit ) { this.indexMap = indexMap; this.defaultIndex = defaultIndex; this.index2Parser = index2Parser; this.limit = limit; weights = new DoubleArrayList(); weight = Double.NaN; curr = new ObjectArrayList<Index>(); curr.push( defaultIndex ); this.numberOfDocuments = defaultIndex.numberOfDocuments; }