Package it.unimi.dsi.mg4j.document

Examples of it.unimi.dsi.mg4j.document.MapVirtualDocumentCollection


  public DocumentSequence getSequence() throws ConfigurationException, IOException {
    if ( lastSequence != null ) lastSequence.close();
    return lastSequence = new CompositeDocumentSequence( new InputStreamDocumentSequence( this.getClass().getResourceAsStream( "documents.data" ), 10, new IdentityDocumentFactory(
        new String[] { "encoding=UTF-8" } ), NUMBER_OF_DOCUMENTS ), new IntArrayDocumentCollection( INTEGER_DOCUMENT ), new DateArrayDocumentCollection( DATE_DOCUMENT ),
        new MapVirtualDocumentCollection( VIRTUAL_DOCUMENT ) );
  }
View Full Code Here


  @SuppressWarnings("unchecked")
  public DocumentSequence getEmptySequence() throws ConfigurationException, IOException {
    if ( lastSequence != null ) lastSequence.close();
    return lastSequence = new CompositeDocumentSequence( new StringArrayDocumentCollection(), new IntArrayDocumentCollection(), new DateArrayDocumentCollection(),
        new MapVirtualDocumentCollection() );
  }
View Full Code Here

TOP

Related Classes of it.unimi.dsi.mg4j.document.MapVirtualDocumentCollection

Copyright © 2018 www.massapicom. 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.