This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*! | |
* jQuery QueryBuilder ElasticSearch Filter Support | |
* Allows to convert exported rules as a ElasticSearch filter query object. | |
* Copyright 2015 Esat Emre Demirel (http://blog.esatemre.com) | |
*/ | |
function getRawFilter(data) { | |
var hede = parse(data); | |
return JSON.stringify(hede); | |
} | |
function parse(data) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.text.SimpleDateFormat; | |
import java.util.ArrayList; | |
import java.util.Date; | |
import org.apache.hadoop.hbase.util.Bytes; | |
import org.codehaus.jettison.json.JSONException; | |
import org.codehaus.jettison.json.JSONObject; | |
import org.hbase.async.HBaseClient; | |
import org.hbase.async.PutRequest; | |
import com.stumbleupon.async.Deferred; |