Examples of IdentityDocumentFactory


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
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.