Examples of PurgeAll


Examples of org.hibernate.search.indexes.serialization.operations.impl.PurgeAll

    ops.add( new OptimizeAll() );
  }

  @Override
  public void addPurgeAll(String entityClassName) {
    ops.add( new PurgeAll( entityClassName ) );
  }
View Full Code Here

Examples of org.hibernate.search.indexes.serialization.operations.impl.PurgeAll

    for ( Operation operation : message.getOperations() ) {
      if ( operation instanceof OptimizeAll ) {
        hydrator.addOptimizeAll();
      }
      else if ( operation instanceof PurgeAll ) {
        PurgeAll safeOperation = ( PurgeAll ) operation;
        hydrator.addPurgeAllLuceneWork( safeOperation.getClass().getName() );
      }
      else if ( operation instanceof Delete ) {
        Delete safeOperation = ( Delete ) operation;
        hydrator.addDeleteLuceneWork(
            safeOperation.getEntityClassName(),
            safeOperation.getId()
        );
      }
      else if ( operation instanceof Add ) {
        Add safeOperation = ( Add ) operation;
        buildLuceneDocument( safeOperation.getDocument(), hydrator );
        hydrator.addAddLuceneWork(
            safeOperation.getEntityClassName(),
            safeOperation.getId(),
            safeOperation.getFieldToAnalyzerMap()
        );
      }
      else if ( operation instanceof Update ) {
        Update safeOperation = ( Update ) operation;
        buildLuceneDocument( safeOperation.getDocument(), hydrator );
        hydrator.addUpdateLuceneWork(
            safeOperation.getEntityClassName(),
            safeOperation.getId(),
            safeOperation.getFieldToAnalyzerMap()
        );
      }
    }
  }
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.