public class QueryMQL extends Object
| Modifier and Type | Field and Description |
|---|---|
HashMap<String,List<String>> |
new_title |
HashMap<String,List<String>> |
title_types |
String |
typeCacheFile |
| Constructor and Description |
|---|
QueryMQL() |
QueryMQL(String apikey) |
QueryMQL(String typeCacheLocation,
String midCacheLocation,
String apikey) |
| Modifier and Type | Method and Description |
|---|---|
MQLQueryWrapper |
buildQuery(String namespace,
String value) |
static String |
decodeMQL(String s) |
static String |
encodeMQL(String str) |
org.json.simple.JSONObject |
getCursorAndResponse(String mqlQuery,
String cursor) |
static String |
getMD5Checksum(String query) |
org.json.simple.JSONObject |
getResponse(String mqlQuery) |
void |
loadTypeCache() |
String |
lookupMid(MQLQueryWrapper mql)
Deprecated.
|
String |
lookupMidFromTitle(MQLQueryWrapper mql) |
List<String> |
lookupQuery(String query) |
List<String> |
lookupTypeFromTitle(MQLQueryWrapper mql) |
static void |
main(String[] args) |
static String |
toHex(String arg)
Create queries with mid for type i.e.
|
void |
writeNewTitleToCache() |
public String typeCacheFile
public QueryMQL()
public QueryMQL(String apikey)
public void loadTypeCache()
public List<String> lookupQuery(String query) throws org.json.simple.parser.ParseException, IOException
org.json.simple.parser.ParseExceptionIOExceptionpublic org.json.simple.JSONObject getCursorAndResponse(String mqlQuery, String cursor) throws IOException, org.json.simple.parser.ParseException
IOExceptionorg.json.simple.parser.ParseExceptionpublic org.json.simple.JSONObject getResponse(String mqlQuery) throws IOException, org.json.simple.parser.ParseException
IOExceptionorg.json.simple.parser.ParseExceptionpublic String lookupMidFromTitle(MQLQueryWrapper mql) throws Exception
Exceptionpublic List<String> lookupTypeFromTitle(MQLQueryWrapper mql) throws Exception
Exception@Deprecated public String lookupMid(MQLQueryWrapper mql) throws Exception
mql - Exceptionpublic MQLQueryWrapper buildQuery(String namespace, String value)
public static String toHex(String arg)
Copyright © 2017. All rights reserved.