Class QueryIndex

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable
    Direct Known Subclasses:
    ReadonlyQueryIndex, WritableQueryIndex

    abstract class QueryIndex
    extends java.lang.Object
    implements java.io.Closeable
    • Constructor Detail

      • QueryIndex

        QueryIndex()
    • Method Detail

      • commit

        abstract void commit​(java.util.List<MonitorQuery> updates)
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • getQuery

        public MonitorQuery getQuery​(java.lang.String queryId)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • purgeCache

        public abstract void purgeCache()
                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • purgeCache

        abstract void purgeCache​(QueryIndex.CachePopulator populator)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • numDocs

        abstract int numDocs()
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • cacheSize

        public abstract int cacheSize()
      • deleteQueries

        abstract void deleteQueries​(java.util.List<java.lang.String> ids)
                             throws java.io.IOException
        Throws:
        java.io.IOException
      • clear

        abstract void clear()
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • getLastPurged

        public abstract long getLastPurged()