Class PredicateQuerySerializer


  • public class PredicateQuerySerializer
    extends java.lang.Object
    Converts PredicateQuery to and from JSON Example: { features: [ {"k": "key-name", "v":"value", "s":"0xDEADBEEFDEADBEEF"} ], rangeFeatures: [ {"k": "key-name", "v":42, "s":"0xDEADBEEFDEADBEEF"} ] }
    Author:
    bjorncs
    • Constructor Detail

      • PredicateQuerySerializer

        public PredicateQuerySerializer()
    • Method Detail

      • toJSON

        public void toJSON​(PredicateQuery query,
                           java.io.Writer writer)
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • fromJSON

        public PredicateQuery fromJSON​(java.lang.String json)
      • parseQueriesFromFile

        public static java.util.List<PredicateQuery> parseQueriesFromFile​(java.lang.String queryFile,
                                                                          int maxQueryCount)
                                                                   throws java.io.IOException
        Throws:
        java.io.IOException