Package it.unimi.dsi.mg4j.document

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


  // We keep track of the last returned sequence to close it without cluttering the test code
  private DocumentSequence lastSequence;

  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

TOP

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

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.