/** Sets the indexed fields to those provided (default: all fields, but see {@link #indexedFields}). * * <p>This is a utility method that provides a way to set {@link #indexedFields} in a chainable way. * * @param field a list of fields to be indexed, that will <em>replace</em> the current values in {@link #indexedFields}. * @return this index builder. * @see IndexBuilder#indexedFields */ public IndexBuilder indexedFields( int... field ) { indexedFields.clear(); for( int f: field ) indexedFields.add( f ); return this; }
/** Sets the indexed fields to those provided (default: all fields, but see {@link #indexedFields}). * * <p>This is a utility method that provides a way to set {@link #indexedFields} in a chainable way. * * @param field a list of fields to be indexed, that will <em>replace</em> the current values in {@link #indexedFields}. * @return this index builder. * @see IndexBuilder#indexedFields */ public IndexBuilder indexedFields( int... field ) { indexedFields.clear(); for( int f: field ) indexedFields.add( f ); return this; }
/** Sets the indexed fields to those provided (default: all fields, but see {@link #indexedFields}). * * <p>This is a utility method that provides a way to set {@link #indexedFields} in a chainable way. * * @param field a list of fields to be indexed, that will <em>replace</em> the current values in {@link #indexedFields}. * @return this index builder. * @see IndexBuilder#indexedFields */ public IndexBuilder indexedFields( int... field ) { indexedFields.clear(); for( int f: field ) indexedFields.add( f ); return this; }
/** Sets the indexed fields to those provided (default: all fields, but see {@link #indexedFields}). * * <p>This is a utility method that provides a way to set {@link #indexedFields} in a chainable way. * * @param field a list of fields to be indexed, that will <em>replace</em> the current values in {@link #indexedFields}. * @return this index builder. * @see IndexBuilder#indexedFields */ public IndexBuilder indexedFields( int... field ) { indexedFields.clear(); for( int f: field ) indexedFields.add( f ); return this; }
public void clear() { for (int i = 0; i < length; i++) { Octant leaf = leaves[i]; if (leaf != null) { leaf.clear(); } } leaves = new Octant[0]; leavesCount = 0; length = 0; garbageQueue.clear(); selectedLeaves.clear(); visibleLeaves = 0; }
public void clear() { timeSortedMap.clear(); garbageQueue.clear(); countMap = new int[0]; length = 0; if (mainIndex != null) { mainIndex.clear(); if (!viewIndexes.isEmpty()) { for (TimeIndexImpl index : viewIndexes.values()) { index.clear(); } } } }
public void clear() { timeSortedMap.clear(); garbageQueue.clear(); countMap = new int[0]; length = 0; if (mainIndex != null) { mainIndex.clear(); if (!viewIndexes.isEmpty()) { for (TimeIndexImpl index : viewIndexes.values()) { index.clear(); } } } }
@SuppressWarnings("unchecked") public int nextInt() { if ( !hasNext() ) throw new NoSuchElementException(); ObjectList<Scan.VirtualDocumentFragment> vdf; try { vdf = (ObjectList<VirtualDocumentFragment>)cachedDocument.content( virtualField ); } catch ( IOException exc1 ) { throw new RuntimeException( exc1 ); } succ.clear(); resolver.context( cachedDocument ); ObjectIterator<VirtualDocumentFragment> it = vdf.iterator(); while ( it.hasNext() ) { int successor = resolver.resolve( it.next().documentSpecifier() ); if ( successor >= 0 ) succ.add( successor ); } cachedSuccessors = succ.toIntArray(); // Get ready for the next request try { cachedDocument.close(); cachedDocument = documentIterator.nextDocument(); } catch ( IOException e ) { throw new RuntimeException( e ); } return cachedDocumentNumber++; }
@SuppressWarnings("unchecked") public int nextInt() { if ( !hasNext() ) throw new NoSuchElementException(); ObjectList<Scan.VirtualDocumentFragment> vdf; try { vdf = (ObjectList<VirtualDocumentFragment>)cachedDocument.content( virtualField ); } catch ( IOException exc1 ) { throw new RuntimeException( exc1 ); } succ.clear(); resolver.context( cachedDocument ); ObjectIterator<VirtualDocumentFragment> it = vdf.iterator(); while ( it.hasNext() ) { int successor = resolver.resolve( it.next().documentSpecifier() ); if ( successor >= 0 ) succ.add( successor ); } cachedSuccessors = succ.toIntArray(); // Get ready for the next request try { cachedDocument.close(); cachedDocument = documentIterator.nextDocument(); } catch ( IOException e ) { throw new RuntimeException( e ); } return cachedDocumentNumber++; }