Package org.hibernate.search.metadata.impl

Examples of org.hibernate.search.metadata.impl.IndexedTypeDescriptorImpl


      IndexedTypeDescriptor indexedTypeDescriptor;
      if ( indexBinder == null ) {
        indexedTypeDescriptor = new IndexedTypeDescriptorForUnindexedType(entityType);
      }
      else {
        indexedTypeDescriptor = new IndexedTypeDescriptorImpl(
            indexBinder.getDocumentBuilder().getMetadata(),
            indexBinder.getIndexManagers()
        );
      }
      indexedTypeDescriptors.put( entityType, indexedTypeDescriptor );
View Full Code Here


      IndexedTypeDescriptor indexedTypeDescriptor;
      if ( indexBinder == null ) {
        indexedTypeDescriptor = new IndexedTypeDescriptorForUnindexedType( entityType );
      }
      else {
        indexedTypeDescriptor = new IndexedTypeDescriptorImpl(
            indexBinder.getDocumentBuilder().getMetadata(),
            indexBinder.getIndexManagers()
        );
      }
      indexedTypeDescriptors.put( entityType, indexedTypeDescriptor );
View Full Code Here

      IndexedTypeDescriptor indexedTypeDescriptor;
      if ( indexBinder == null ) {
        indexedTypeDescriptor = new IndexedTypeDescriptorForUnindexedType(entityType);
      }
      else {
        indexedTypeDescriptor = new IndexedTypeDescriptorImpl(
            indexBinder.getDocumentBuilder().getMetadata(),
            indexBinder.getIndexManagers()
        );
      }
      indexedTypeDescriptors.put( entityType, indexedTypeDescriptor );
View Full Code Here

  }

  @Test
  public void testSharedIndexInformation() {
    TypeMetadata typeMetadata = metadataProvider.getTypeMetadataFor( Foo.class );
    IndexedTypeDescriptor typeDescriptor = new IndexedTypeDescriptorImpl(
        typeMetadata,
        DescriptorTestHelper.getDummyShardedIndexManager()
    );
    assertTrue( typeDescriptor.isSharded() );

    Set<IndexDescriptor> indexDescriptors = typeDescriptor.getIndexDescriptors();
    assertTrue( indexDescriptors.size() == 3 );
    for ( IndexDescriptor indexDescriptor : indexDescriptors ) {
      String shardName = indexDescriptor.getName();
      assertTrue( "Missing shard name: " + shardName, TEST_INDEX_NAMES.contains( indexDescriptor.getName() ) );
    }
View Full Code Here

    //not allowed
  }

  public static IndexedTypeDescriptor getTypeDescriptor(AnnotationMetadataProvider metadataProvider, Class<?> clazz) {
    TypeMetadata typeMetadata = metadataProvider.getTypeMetadataFor( clazz );
    return new IndexedTypeDescriptorImpl(
        typeMetadata,
        getDummyUnShardedIndexManager()
    );
  }
View Full Code Here

  }

  @Test
  public void testSharedIndexInformation() {
    TypeMetadata typeMetadata = metadataProvider.getTypeMetadataFor( Foo.class );
    IndexedTypeDescriptor typeDescriptor = new IndexedTypeDescriptorImpl(
        typeMetadata,
        DescriptorTestHelper.getDummyShardedIndexManager()
    );
    assertTrue( typeDescriptor.isSharded() );

    Set<IndexDescriptor> indexDescriptors = typeDescriptor.getIndexDescriptors();
    assertTrue( indexDescriptors.size() == 3 );
    for ( IndexDescriptor indexDescriptor : indexDescriptors ) {
      String shardName = indexDescriptor.getName();
      assertTrue(
          "Missing shard name: " + shardName,
View Full Code Here

      IndexedTypeDescriptor indexedTypeDescriptor;
      if ( indexBinder == null ) {
        indexedTypeDescriptor = new IndexedTypeDescriptorForUnindexedType(entityType);
      }
      else {
        indexedTypeDescriptor = new IndexedTypeDescriptorImpl(
            indexBinder.getDocumentBuilder().getMetadata(),
            indexBinder.getIndexManagers()
        );
      }
      indexedTypeDescriptors.put( entityType, indexedTypeDescriptor );
View Full Code Here

      IndexedTypeDescriptor indexedTypeDescriptor;
      if ( indexBinder == null ) {
        indexedTypeDescriptor = new IndexedTypeDescriptorForUnindexedType(entityType);
      }
      else {
        indexedTypeDescriptor = new IndexedTypeDescriptorImpl(
            indexBinder.getDocumentBuilder().getMetadata(),
            indexBinder.getIndexManagers()
        );
      }
      indexedTypeDescriptors.put( entityType, indexedTypeDescriptor );
View Full Code Here

      IndexedTypeDescriptor indexedTypeDescriptor;
      if ( indexBinder == null ) {
        indexedTypeDescriptor = new IndexedTypeDescriptorForUnindexedType( entityType );
      }
      else {
        indexedTypeDescriptor = new IndexedTypeDescriptorImpl(
            indexBinder.getDocumentBuilder().getMetadata(),
            indexBinder.getIndexManagers()
        );
      }
      indexedTypeDescriptors.put( entityType, indexedTypeDescriptor );
View Full Code Here

TOP

Related Classes of org.hibernate.search.metadata.impl.IndexedTypeDescriptorImpl

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.