org.apache.lucene.monitor

## Interface MonitorQuerySerializer

-     public interface MonitorQuerySerializer

  Serializes and deserializes MonitorQuery objects into byte streams Use this for persistent query indexes

- - ### Method Summary

    All Methods Static Methods Instance Methods Abstract Methods Default Methods
    Modifier and Type | Method and Description
    --- | ---
    `MonitorQuery` | `deserialize(BytesRef binaryValue)` Builds a MonitorQuery from a byte representation
    `static MonitorQuerySerializer` | `fromParser(Function<String,Query> parser)` Build a serializer from a query parser
    `BytesRef` | `serialize(MonitorQuery query)` Converts a MonitorQuery into a byte representation

- - ### Method Detail

    - #### deserialize

          MonitorQuery deserialize(BytesRef binaryValue)

      Builds a MonitorQuery from a byte representation

    - #### serialize

          BytesRef serialize(MonitorQuery query)

      Converts a MonitorQuery into a byte representation

    - #### fromParser

          static MonitorQuerySerializer fromParser(Function<String,Query> parser)

      Build a serializer from a query parser
      Parameters:
        `parser` - a parser to convert a String representation of a query into a lucene query object

Copyright © 2000-2024 Apache Software Foundation. All Rights Reserved.