Examples of IndexCreator


Examples of com.smoker.imagesearch.model.IndexCreator

  private Settings    settings;

  public JImageSearch()
  {
    searcher = new Searcher();
    indexCreator = new IndexCreator(searcher);
    indexLoader = new IndexLoader(searcher);
    displayData = new DisplayData(searcher);
  }
View Full Code Here

Examples of htsjdk.tribble.index.IndexCreator

    }

    @Test(dataProvider = "indexCreator")
    public void testGetIndexCreator(IndexCreatorTest spec) throws Exception{
        File dummy = new File("");
        IndexCreator ic = GATKVCFUtils.getIndexCreator(spec.type, spec.parameter, dummy);
        Assert.assertEquals(ic.getClass(), spec.expectedClass, "Wrong IndexCreator type");
        if (spec.expectedDimension != null) {
            Integer dimension = (int)spec.dimensionGetter.invoke(ic);
            Assert.assertEquals(dimension, spec.expectedDimension, "Wrong dimension");
        }
    }
View Full Code Here

Examples of htsjdk.tribble.index.IndexCreator

        }

        FileOutputStream outputStream = new FileOutputStream(outputFile);
        EnumSet<Options> options = EnumSet.of(Options.INDEX_ON_THE_FLY);
        final IndexCreator idxCreator = GATKVCFUtils.getIndexCreator(variant_index_type, variant_index_parameter, outputFile, ref.getSequenceDictionary());
        final VariantContextWriter outputWriter = VariantContextWriterFactory.create(outputFile, outputStream, ref.getSequenceDictionary(), idxCreator, options);

        boolean firstFile = true;
        int count = 0;
        while(!priorityQueue.isEmpty() ){
View Full Code Here

Examples of htsjdk.tribble.index.IndexCreator

                return new TabixIndexCreator(TabixFormat.VCF);
            else
                return new TabixIndexCreator(sequenceDictionary, TabixFormat.VCF);
        }

        IndexCreator idxCreator;
        switch (type) {
            case DYNAMIC_SEEK: idxCreator = new DynamicIndexCreator(outFile, IndexFactory.IndexBalanceApproach.FOR_SEEK_TIME); break;
            case DYNAMIC_SIZE: idxCreator = new DynamicIndexCreator(outFile, IndexFactory.IndexBalanceApproach.FOR_SIZE); break;
            case LINEAR: idxCreator = new LinearIndexCreator(outFile, parameter); break;
            case INTERVAL: idxCreator = new IntervalIndexCreator(outFile, parameter); break;
View Full Code Here

Examples of org.apache.maven.index.context.IndexCreator

    }

    private IndexingContext newTestContext( final File basedir, final String baseUrl )
        throws IOException, UnsupportedExistingLuceneIndexException, ComponentLookupException
    {
        IndexCreator min = container.lookup( IndexCreator.class, "min" );
        IndexCreator jar = container.lookup( IndexCreator.class, "jarContent" );

        List<IndexCreator> creators = new ArrayList<IndexCreator>();
        creators.add( min );
        creators.add( jar );
View Full Code Here

Examples of org.apache.maven.index.context.IndexCreator

        DEFAULT_CREATORS = new ArrayList<IndexCreator>();
        FULL_CREATORS = new ArrayList<IndexCreator>();
        MIN_CREATORS = new ArrayList<IndexCreator>();

        IndexCreator min = lookup( IndexCreator.class, MinimalArtifactInfoIndexCreator.ID );
        IndexCreator mavenPlugin = lookup( IndexCreator.class, MavenPluginArtifactInfoIndexCreator.ID );
        IndexCreator mavenArchetype = lookup( IndexCreator.class, MavenArchetypeArtifactInfoIndexCreator.ID );
        IndexCreator jar = lookup( IndexCreator.class, JarFileContentsIndexCreator.ID );

        MIN_CREATORS.add( min );

        DEFAULT_CREATORS.add( min );
        DEFAULT_CREATORS.add( mavenPlugin );
View Full Code Here

Examples of org.apache.maven.index.context.IndexCreator

        basedir.mkdirs();

        PlexusContainer container = new DefaultPlexusContainer();

        IndexCreator min = container.lookup( IndexCreator.class, "min" );
        IndexCreator jar = container.lookup( IndexCreator.class, "jarContent" );

        List<IndexCreator> creators = new ArrayList<IndexCreator>();
        creators.add( min );
        creators.add( jar );
View Full Code Here

Examples of org.apache.maven.index.context.IndexCreator

            final ArrayList<IndexCreator> sortedCreators = new ArrayList<IndexCreator>( creators.size() );

            for ( String id : sortedIds )
            {
                final IndexCreator creator = creatorsById.get( id );

                if ( creator != null )
                {
                    sortedCreators.add( creator );
                }
View Full Code Here

Examples of org.apache.maven.index.context.IndexCreator

  protected void hackContext(DefaultIndexingContext context)
      throws Exception
  {
    List<IndexCreator> creators = new ArrayList<IndexCreator>();

    IndexCreator min = lookup(IndexCreator.class, MinimalArtifactInfoIndexCreator.ID);
    IndexCreator mavenPlugin = lookup(IndexCreator.class, MavenPluginArtifactInfoIndexCreator.ID);
    IndexCreator mavenArchetype = lookup(IndexCreator.class, MavenArchetypeArtifactInfoIndexCreator.ID);
    IndexCreator jar = lookup(IndexCreator.class, JarFileContentsIndexCreator.ID);

    creators.add(min);
    creators.add(mavenPlugin);
    creators.add(mavenArchetype);
    creators.add(jar);
View Full Code Here

Examples of org.apache.maven.index.context.IndexCreator

  private List<IndexCreator> m_minCreators = new ArrayList<IndexCreator>();

  public IndexCreatorHelper(PlexusContainer testCaseContainer)
      throws ComponentLookupException
  {
    IndexCreator min = testCaseContainer.lookup(IndexCreator.class, "min");
    IndexCreator jar = testCaseContainer.lookup(IndexCreator.class, "jarContent");

    m_minCreators.add(min);

    m_fullCreators.add(min);
    m_fullCreators.add(jar);
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.