Class IndexVersionOperation


  • public class IndexVersionOperation
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      IndexVersionOperation​(org.apache.jackrabbit.oak.plugins.index.search.spi.query.IndexName indexName)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.List<IndexVersionOperation> generateIndexVersionOperationList​(org.apache.jackrabbit.oak.spi.state.NodeState indexDefParentNode, java.util.List<org.apache.jackrabbit.oak.plugins.index.search.spi.query.IndexName> indexNameObjectList, long purgeThresholdMillis)  
      org.apache.jackrabbit.oak.plugins.index.search.spi.query.IndexName getIndexName()  
      org.apache.jackrabbit.oak.indexversion.IndexVersionOperation.Operation getOperation()  
      void setOperation​(org.apache.jackrabbit.oak.indexversion.IndexVersionOperation.Operation operation)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • IndexVersionOperation

        public IndexVersionOperation​(org.apache.jackrabbit.oak.plugins.index.search.spi.query.IndexName indexName)
    • Method Detail

      • setOperation

        public void setOperation​(org.apache.jackrabbit.oak.indexversion.IndexVersionOperation.Operation operation)
      • getOperation

        public org.apache.jackrabbit.oak.indexversion.IndexVersionOperation.Operation getOperation()
      • getIndexName

        public org.apache.jackrabbit.oak.plugins.index.search.spi.query.IndexName getIndexName()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • generateIndexVersionOperationList

        public static java.util.List<IndexVersionOperation> generateIndexVersionOperationList​(org.apache.jackrabbit.oak.spi.state.NodeState indexDefParentNode,
                                                                                              java.util.List<org.apache.jackrabbit.oak.plugins.index.search.spi.query.IndexName> indexNameObjectList,
                                                                                              long purgeThresholdMillis)
        Parameters:
        indexDefParentNode - NodeState of parent of baseIndex
        indexNameObjectList - This is a list of IndexName Objects with same baseIndexName on which operations will be applied.
        purgeThresholdMillis - after which a fully functional index is eligible for purge operations
        Returns:
        This method returns an IndexVersionOperation list i.e indexNameObjectList marked with operations