Package org.apache.uima.lucas.indexer.mapping

Examples of org.apache.uima.lucas.indexer.mapping.FieldDescription


    tokenStream1 = new CollectionTokenStream(tokens1);
    tokenStream2 = new CollectionTokenStream(tokens2);

    tokenStreams = Lists.newArrayList(tokenStream1, tokenStream2);
   
    fieldDescription = new FieldDescription("field1");
    fieldDescription.getAnnotationDescriptions().add(annotationDescription1);
    fieldDescription.getAnnotationDescriptions().add(annotationDescription2);
    fieldDescription.setFilterDescriptions(Collections.EMPTY_LIST);
  }
View Full Code Here


  @Test
  public void testMappingFile() {
    Collection<FieldDescription> fieldDescriptions = luceneCASIndexer.getFieldDescriptions();
    assertEquals(1, fieldDescriptions.size());
    FieldDescription fieldDescription = fieldDescriptions.iterator().next();
    assertEquals(FIELD_NAME, fieldDescription.getName());
    assertEquals(2, fieldDescription.getAnnotationDescriptions().size());
  }
View Full Code Here

TOP

Related Classes of org.apache.uima.lucas.indexer.mapping.FieldDescription

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.