buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
@Inject public ElisionTokenFilterFactory(Index index, @IndexSettings Settings indexSettings, Environment env, @Assisted String name, @Assisted Settings settings) { super(index, indexSettings, name, settings); this.articles = Analysis.parseArticles(env, settings); }
@Inject public ElisionTokenFilterFactory(Index index, @IndexSettings Settings indexSettings, Environment env, @Assisted String name, @Assisted Settings settings) { super(index, indexSettings, name, settings); this.articles = Analysis.parseArticles(env, settings, version); }
@Inject public EnglishAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, Environment env, @Assisted String name, @Assisted Settings settings) { super(index, indexSettings, name, settings); analyzer = new EnglishAnalyzer(version, Analysis.parseStopWords(env, settings...
@Inject public EnglishAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, Environment env, @Assisted String name, @Assisted Settings settings) { super(index, indexSettings, name, settings); analyzer = new EnglishAnalyzer(version, Analysis.parseStopWords(env, settings...
@Inject public FinnishAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, Environment env, @Assisted String name, @Assisted Settings settings) { super(index, indexSettings, name, settings); analyzer = new FinnishAnalyzer(version, Analysis.parseStopWords(env, settings...
@Inject public FinnishAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, Environment env, @Assisted String name, @Assisted Settings settings) { super(index, indexSettings, name, settings); analyzer = new FinnishAnalyzer(version, Analysis.parseStopWords(env, settings...
@Inject public FrenchAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, Environment env, @Assisted String name, @Assisted Settings settings) { super(index, indexSettings, name, settings); analyzer = new FrenchAnalyzer(version, Analysis.parseStopWords(env, settings, ...
@Inject public FrenchAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, Environment env, @Assisted String name, @Assisted Settings settings) { super(index, indexSettings, name, settings); analyzer = new FrenchAnalyzer(version, Analysis.parseStopWords(env, settings, ...
@Inject public GalicianAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, Environment env, @Assisted String name, @Assisted Settings settings) { super(index, indexSettings, name, settings); analyzer = new GalicianAnalyzer(version, Analysis.parseStopWords(env, settin...
@Inject public GalicianAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, Environment env, @Assisted String name, @Assisted Settings settings) { super(index, indexSettings, name, settings); analyzer = new GalicianAnalyzer(version, Analysis.parseStopWords(env, settin...
@Inject public GermanAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, Environment env, @Assisted String name, @Assisted Settings settings) { super(index, indexSettings, name, settings); analyzer = new GermanAnalyzer(version, Analysis.parseStopWords(env, settings, ...
@Inject public GermanAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, Environment env, @Assisted String name, @Assisted Settings settings) { super(index, indexSettings, name, settings); analyzer = new GermanAnalyzer(version, Analysis.parseStopWords(env, settings, ...
@Inject public GreekAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, Environment env, @Assisted String name, @Assisted Settings settings) { super(index, indexSettings, name, settings); analyzer = new GreekAnalyzer(version, Analysis.parseStopWords(env, settings, Gr...
@Inject public GreekAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, Environment env, @Assisted String name, @Assisted Settings settings) { super(index, indexSettings, name, settings); analyzer = new GreekAnalyzer(version, Analysis.parseStopWords(env, settings, Gr...
@Inject public HindiAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, Environment env, @Assisted String name, @Assisted Settings settings) { super(index, indexSettings, name, settings); analyzer = new HindiAnalyzer(version, Analysis.parseStopWords(env, settings, Hi...
@Inject public HindiAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, Environment env, @Assisted String name, @Assisted Settings settings) { super(index, indexSettings, name, settings); analyzer = new HindiAnalyzer(version, Analysis.parseStopWords(env, settings, Hi...
@Inject public HungarianAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, Environment env, @Assisted String name, @Assisted Settings settings) { super(index, indexSettings, name, settings); analyzer = new HungarianAnalyzer(version, Analysis.parseStopWords(env, sett...
@Inject public HungarianAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, Environment env, @Assisted String name, @Assisted Settings settings) { super(index, indexSettings, name, settings); analyzer = new HungarianAnalyzer(version, Analysis.parseStopWords(env, sett...
@Inject public IndonesianAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, Environment env, @Assisted String name, @Assisted Settings settings) { super(index, indexSettings, name, settings); analyzer = new IndonesianAnalyzer(version, Analysis.parseStopWords(env, se...
@Inject public IndonesianAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, Environment env, @Assisted String name, @Assisted Settings settings) { super(index, indexSettings, name, settings); analyzer = new IndonesianAnalyzer(version, Analysis.parseStopWords(env, se...
@Inject public ItalianAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, Environment env, @Assisted String name, @Assisted Settings settings) { super(index, indexSettings, name, settings); analyzer = new ItalianAnalyzer(version, Analysis.parseStopWords(env, settings...
@Inject public ItalianAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, Environment env, @Assisted String name, @Assisted Settings settings) { super(index, indexSettings, name, settings); analyzer = new ItalianAnalyzer(version, Analysis.parseStopWords(env, settings...
@Inject public NorwegianAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, Environment env, @Assisted String name, @Assisted Settings settings) { super(index, indexSettings, name, settings); analyzer = new NorwegianAnalyzer(version, Analysis.parseStopWords(env, sett...
@Inject public NorwegianAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, Environment env, @Assisted String name, @Assisted Settings settings) { super(index, indexSettings, name, settings); analyzer = new NorwegianAnalyzer(version, Analysis.parseStopWords(env, sett...
@Inject public PatternAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, Environment env, @Assisted String name, @Assisted Settings settings) { super(index, indexSettings, name, settings); boolean lowercase = settings.getAsBoolean("lowercase", true); Set<?> stopWords = An...
@Inject public PatternAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, Environment env, @Assisted String name, @Assisted Settings settings) { super(index, indexSettings, name, settings); boolean lowercase = settings.getAsBoolean("lowercase", true); Set<?> stopWords = An...
@Inject public PersianAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, Environment env, @Assisted String name, @Assisted Settings settings) { super(index, indexSettings, name, settings); analyzer = new PersianAnalyzer(version, Analysis.parseStopWords(env, settings...
@Inject public PersianAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, Environment env, @Assisted String name, @Assisted Settings settings) { super(index, indexSettings, name, settings); analyzer = new PersianAnalyzer(version, Analysis.parseStopWords(env, settings...
@Inject public PortugueseAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, Environment env, @Assisted String name, @Assisted Settings settings) { super(index, indexSettings, name, settings); analyzer = new PortugueseAnalyzer(version, Analysis.parseStopWords(env, se...
@Inject public PortugueseAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, Environment env, @Assisted String name, @Assisted Settings settings) { super(index, indexSettings, name, settings); analyzer = new PortugueseAnalyzer(version, Analysis.parseStopWords(env, se...
@Inject public RomanianAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, Environment env, @Assisted String name, @Assisted Settings settings) { super(index, indexSettings, name, settings); analyzer = new RomanianAnalyzer(version, Analysis.parseStopWords(env, settin...
@Inject public RomanianAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, Environment env, @Assisted String name, @Assisted Settings settings) { super(index, indexSettings, name, settings); analyzer = new RomanianAnalyzer(version, Analysis.parseStopWords(env, settin...
@Inject public RussianAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, Environment env, @Assisted String name, @Assisted Settings settings) { super(index, indexSettings, name, settings); analyzer = new RussianAnalyzer(version, Analysis.parseStopWords(env, settings...
@Inject public RussianAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, Environment env, @Assisted String name, @Assisted Settings settings) { super(index, indexSettings, name, settings); analyzer = new RussianAnalyzer(version, Analysis.parseStopWords(env, settings...
@Inject public SnowballAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, Environment env, @Assisted String name, @Assisted Settings settings) { super(index, indexSettings, name, settings); String language = settings.get("language", settings.get("name", "English")); Set<?>...
@Inject public SnowballAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, Environment env, @Assisted String name, @Assisted Settings settings) { super(index, indexSettings, name, settings); String language = settings.get("language", settings.get("name", "English")); Set<?>...
@Inject public SpanishAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, Environment env, @Assisted String name, @Assisted Settings settings) { super(index, indexSettings, name, settings); analyzer = new SpanishAnalyzer(version, Analysis.parseStopWords(env, settings...
@Inject public SpanishAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, Environment env, @Assisted String name, @Assisted Settings settings) { super(index, indexSettings, name, settings); analyzer = new SpanishAnalyzer(version, Analysis.parseStopWords(env, settings...
@Inject public StandardAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, Environment env, @Assisted String name, @Assisted Settings settings) { super(index, indexSettings, name, settings); Set<?> stopWords = Analysis.parseStopWords(env, settings, StopAnalyzer.ENGLISH_STOP_WORDS_SE...
@Inject public StandardAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, Environment env, @Assisted String name, @Assisted Settings settings) { super(index, indexSettings, name, settings); Set<?> stopWords = Analysis.parseStopWords(env, settings, StopAnalyzer.ENGLISH_STOP_WORDS_SE...
@Inject public StopAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, Environment env, @Assisted String name, @Assisted Settings settings) { super(index, indexSettings, name, settings); Set<?> stopWords = Analysis.parseStopWords(env, settings, StopAnalyzer.ENGLISH_STOP_WORDS_SET); ...
@Inject public StopAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, Environment env, @Assisted String name, @Assisted Settings settings) { super(index, indexSettings, name, settings); Set<?> stopWords = Analysis.parseStopWords(env, settings, StopAnalyzer.ENGLISH_STOP_WORDS_SET, v...
@Inject public StopTokenFilterFactory(Index index, @IndexSettings Settings indexSettings, Environment env, @Assisted String name, @Assisted Settings settings) { super(index, indexSettings, name, settings); this.stopWords = Analysis.parseStopWords(env, settings, StopAnalyzer.ENGLISH_STOP_WORDS_SET); ...
@Inject public StopTokenFilterFactory(Index index, @IndexSettings Settings indexSettings, Environment env, @Assisted String name, @Assisted Settings settings) { super(index, indexSettings, name, settings); this.stopWords = Analysis.parseStopWords(env, settings, StopAnalyzer.ENGLISH_STOP_WORDS_SET, v...
@Inject public SwedishAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, Environment env, @Assisted String name, @Assisted Settings settings) { super(index, indexSettings, name, settings); analyzer = new SwedishAnalyzer(version, Analysis.parseStopWords(env, settings...
@Inject public SwedishAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, Environment env, @Assisted String name, @Assisted Settings settings) { super(index, indexSettings, name, settings); analyzer = new SwedishAnalyzer(version, Analysis.parseStopWords(env, settings...
@Inject public TurkishAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, Environment env, @Assisted String name, @Assisted Settings settings) { super(index, indexSettings, name, settings); analyzer = new TurkishAnalyzer(version, Analysis.parseStopWords(env, settings...
@Inject public TurkishAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, Environment env, @Assisted String name, @Assisted Settings settings) { super(index, indexSettings, name, settings); analyzer = new TurkishAnalyzer(version, Analysis.parseStopWords(env, settings...
final ClusterBlock NO_MASTER_BLOCK = new ClusterBlock(2, "no master", true, true, ClusterBlockLevel.ALL); /* * Licensed to Elastic Search and Shay Banon under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. ...
final ClusterBlock NO_MASTER_BLOCK = new ClusterBlock(2, "no master", true, true, ClusterBlockLevel.ALL); /* * Licensed to Elastic Search and Shay Banon under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. ...
public static void registerStreams() { InternalCountDateHistogramFacet.registerStreams(); InternalCountAndTotalDateHistogramFacet.registerStreams(); }
public static void registerStreams() { InternalCountDateHistogramFacet.registerStreams(); InternalFullDateHistogramFacet.registerStreams(); }
public void testDeletePercolatorType() throws Exception { DeleteIndexResponse deleteIndexResponse = client().admin().indices().prepareDelete().execute().actionGet(); assertThat("Delete Index failed - not acked", deleteIndexResponse.isAcknowledged(), equalTo(true)); ensureGreen(); cl...
public void testDeletePercolatorType() throws Exception { DeleteIndexResponse deleteIndexResponse = client().admin().indices().prepareDelete("_all").execute().actionGet(); assertThat("Delete Index failed - not acked", deleteIndexResponse.isAcknowledged(), equalTo(true)); ensureGreen(); ...
public void testPercolatingWithTimeToLive() throws Exception { Client client = client(); client.admin().indices().prepareDelete().execute().actionGet(); ensureGreen(); String precolatorMapping = XContentFactory.jsonBuilder().startObject().startObject(PercolatorService.TYPE_NAME) ...
public void testPercolatingWithTimeToLive() throws Exception { Client client = client(); client.admin().indices().prepareDelete("_all").execute().actionGet(); ensureGreen(); String precolatorMapping = XContentFactory.jsonBuilder().startObject().startObject(PercolatorService.TYPE_NAM...
public void testThatStatsAreWorking() throws Exception { String otherField = "testOtherField"; client().admin().indices().prepareDelete().get(); client().admin().indices().prepareCreate(INDEX) .setSettings(createDefaultSettings()) .get(); PutMappingR...
public void testThatStatsAreWorking() throws Exception { String otherField = "testOtherField"; client().admin().indices().prepareDelete("_all").get(); client().admin().indices().prepareCreate(INDEX) .setSettings(createDefaultSettings()) .get(); PutMa...
native static public void consoleLog(String message) /*-{ console.log( "GWT: " + message ); }-*/;
public void removeLifecycleListener (LifecycleListener listener) { synchronized(lifecycleListeners) { lifecycleListeners.removeValue(listener, true); } } native static void consoleLog(String message) /*-{ console.log( "GWT: " + message ); }-*/;
public ApplicationListener getApplicationListener () { return new GwtTestWrapper(); }
public ApplicationListener getApplicationListener () { return new AssetManagerTest(); }
public Filter parse(QueryParseContext parseContext) throws IOException, QueryParsingException { XContentParser parser = parseContext.parser(); XContentParser.Token token = parser.nextToken(); if (token != XContentParser.Token.FIELD_NAME) { throw new QueryParsingException(parseCo...
public Filter parse(QueryParseContext parseContext) throws IOException, QueryParsingException { XContentParser parser = parseContext.parser(); XContentParser.Token token = parser.nextToken(); if (token != XContentParser.Token.FIELD_NAME) { throw new QueryParsingException(parseCo...
public static void main(String[] args) { final int numberOfRuns = 10; final int numIndices = 5 * 365; // five years final int numShards = 6; final int numReplicas = 2; final int numberOfNodes = 30; final int numberOfTags = 2; AllocationService strategy = new ...
public static void main(String[] args) { final int numberOfRuns = 1; final int numIndices = 5 * 365; // five years final int numShards = 6; final int numReplicas = 2; final int numberOfNodes = 30; final int numberOfTags = 2; AllocationService strategy = new A...
public void onListItemClick(ListView list, View view, int position, long id) { Gist gist = (Gist) list.getItemAtPosition(position); startActivity(ViewGistActivity.createIntent(getActivity(), gist)); }
public void onListItemClick(ListView list, View view, int position, long id) { Gist gist = (Gist) list.getItemAtPosition(position); startActivity(ViewGistActivity.createIntent(getActivity(), gist.getId())); }
@Override public void create () { Gdx.app.log("MD5 Test", "created"); model = MD5Loader.loadModel(Gdx.files.internal("data/zfat.md5mesh").read(), true); anim = MD5Loader.loadAnimation(Gdx.files.internal("data/walk1.md5anim").read()); skeleton = new MD5Joints(); skeleton.joints = new float[anim.frames[0].join...
@Override public void create () { Gdx.app.log("MD5 Test", "created"); model = MD5Loader.loadModel(Gdx.files.internal("data/zfat.md5mesh").read(), false); anim = MD5Loader.loadAnimation(Gdx.files.internal("data/walk1.md5anim").read()); skeleton = new MD5Joints(); skeleton.joints = new float[anim.frames[0].joi...
public static final Class[] tests = { AlphaTest.class, AudioDeviceTest.class, AudioRecorderTest.class, BitmapFontAlignmentTest.class, BitmapFontFlipTest.class, BitmapFontTest.class, BobTest.class, Box2DTest.class, Box2DTestCollection.class, FilesTest.class, //FillrateTest.class, FloatTest.class...
public static final Class[] tests = { AlphaTest.class, AudioDeviceTest.class, AudioRecorderTest.class, BitmapFontAlignmentTest.class, BitmapFontFlipTest.class, BitmapFontTest.class, BobTest.class, Box2DTest.class, Box2DTestCollection.class, FilesTest.class, //FillrateTest.class, FloatTest.class...
public static void writeFont (BitmapFontData fontData, String[] pageRefs, FileHandle outFntFile, FontInfo info, int scaleW, int scaleH) { if (info == null) { info = new FontInfo(); info.face = outFntFile.nameWithoutExtension(); } int lineHeight = (int)fontData.lineHeight; int pages = pageRefs.length; ...
public static void writeFont (BitmapFontData fontData, String[] pageRefs, FileHandle outFntFile, FontInfo info, int scaleW, int scaleH) { if (info == null) { info = new FontInfo(); info.face = outFntFile.nameWithoutExtension(); } int lineHeight = (int)fontData.lineHeight; int pages = pageRefs.length; ...
public boolean handle (T event) { current++; return current > count; }
public boolean handle (T event) { current++; return current >= count; }
public void setChecked (String text) { if (text == null) throw new IllegalArgumentException("text cannot be null."); for (int i = 0, n = buttons.size; i < n; i++) { Button button = buttons.get(i); if (button instanceof TextButton && text.equals(((TextButton)button).getText())) { button.setChecked(true); ...
public void setChecked (String text) { if (text == null) throw new IllegalArgumentException("text cannot be null."); for (int i = 0, n = buttons.size; i < n; i++) { Button button = buttons.get(i); if (button instanceof TextButton && text.contentEquals(((TextButton)button).getText())) { button.setChecked(...
public void execute(SearchContext searchContext) throws QueryPhaseExecutionException { searchContext.queryResult().searchTimedOut(false); // set the filter on the searcher if (searchContext.scopePhases() != null) { // we have scoped queries, refresh the id cache try {...
public void execute(SearchContext searchContext) throws QueryPhaseExecutionException { searchContext.queryResult().searchTimedOut(false); // set the filter on the searcher if (searchContext.scopePhases() != null) { // we have scoped queries, refresh the id cache try {...
@Override public void render () { Gdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT); batch.begin(); font.drawMultiLineText(batch, message, 20, Gdx.graphics.getHeight() - 20, Color.WHITE); batch.end(); }
@Override public void render () { Gdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT); batch.begin(); font.drawMultiLine(batch, message, 20, Gdx.graphics.getHeight() - 20, Color.WHITE); batch.end(); }
protected void configure() { bind(DiscoveryNodeService.class).asEagerSingleton(); bind(ClusterService.class).to(InternalClusterService.class).asEagerSingleton(); bind(MetaDataService.class).asEagerSingleton(); bind(MetaDataCreateIndexService.class).asEagerSingleton(); bind(M...
protected void configure() { bind(DiscoveryNodeService.class).asEagerSingleton(); bind(ClusterService.class).to(InternalClusterService.class).asEagerSingleton(); bind(MetaDataService.class).asEagerSingleton(); bind(MetaDataCreateIndexService.class).asEagerSingleton(); bind(M...
private SearchContext createContext(InternalSearchRequest request) throws ElasticSearchException { IndexService indexService = indicesService.indexServiceSafe(request.index()); IndexShard indexShard = indexService.shardSafe(request.shardId()); SearchShardTarget shardTarget = new SearchShard...
private SearchContext createContext(InternalSearchRequest request) throws ElasticSearchException { IndexService indexService = indicesService.indexServiceSafe(request.index()); IndexShard indexShard = indexService.shardSafe(request.shardId()); SearchShardTarget shardTarget = new SearchShard...
public static void main (String[] argv) { // this is only here for me to debug native code faster // new SharedLibraryLoader("../../extensions/gdx-audio/libs/gdx-audio-natives.jar").load("gdx-audio"); // new SharedLibraryLoader("../../extensions/gdx-image/libs/gdx-image-natives.jar").load("gdx-image"); // new Sha...
public static void main (String[] argv) { // this is only here for me to debug native code faster // new SharedLibraryLoader("../../extensions/gdx-audio/libs/gdx-audio-natives.jar").load("gdx-audio"); // new SharedLibraryLoader("../../extensions/gdx-image/libs/gdx-image-natives.jar").load("gdx-image"); // new Sha...
public static void parseField(AbstractFieldMapper.Builder builder, String name, Map<String, Object> fieldNode, Mapper.TypeParser.ParserContext parserContext) { for (Map.Entry<String, Object> entry : fieldNode.entrySet()) { final String propName = Strings.toUnderscoreCase(entry.getKey()); ...
public static void parseField(AbstractFieldMapper.Builder builder, String name, Map<String, Object> fieldNode, Mapper.TypeParser.ParserContext parserContext) { for (Map.Entry<String, Object> entry : fieldNode.entrySet()) { final String propName = Strings.toUnderscoreCase(entry.getKey()); ...
@Override protected ShardIterator shards(ClusterState clusterState, GetRequest request) { return clusterService.operationRouting() .indexShards(clusterService.state(), request.index(), request.type(), request.id(), request.routing()); }
@Override protected ShardIterator shards(ClusterState clusterState, GetRequest request) { return clusterService.operationRouting() .getShards(clusterService.state(), request.index(), request.type(), request.id(), request.routing(), request.preference()); }
public void remove () { parent.removeActor(this); }
public void remove () { if (parent != null) parent.removeActor(this); }
public static boolean intersectRayBounds (Ray ray, BoundingBox box, Vector3 intersection) { Vector3.tmp.set(ray.origin); Vector3.tmp2.set(ray.origin); Vector3.tmp.sub(box.min); Vector3.tmp2.sub(box.max); if (Vector3.tmp.x > 0 && Vector3.tmp.y > 0 && Vector3.tmp.z > 0 && Vector3.tmp2.x < 0 && Vector3.tmp2.y <...
public static boolean intersectRayBounds (Ray ray, BoundingBox box, Vector3 intersection) { Vector3.tmp.set(ray.origin); Vector3.tmp2.set(ray.origin); Vector3.tmp.sub(box.min); Vector3.tmp2.sub(box.max); if (Vector3.tmp.x > 0 && Vector3.tmp.y > 0 && Vector3.tmp.z > 0 && Vector3.tmp2.x < 0 && Vector3.tmp2.y <...
public static void main(String[] args) throws Exception { // generate C/C++ code new NativeCodeGenerator().generate("src", "bin", "jni", null, new String[] { "**/BulletBuild.java" }); // generate build scripts, for win32 only // custom target for testing purposes String[] excludes = { "src/BulletMultiThread...
public static void main(String[] args) throws Exception { // generate C/C++ code new NativeCodeGenerator().generate("src", "bin", "jni"); // generate build scripts, for win32 only // custom target for testing purposes String[] excludes = { "src/BulletMultiThreaded/GpuSoftBodySolvers/**" }; String[] header...
public static ESLogger getLogger(String prefix, String name) { return defaultFactory.newInstance(prefix.intern(), name.intern()); }
public static ESLogger getLogger(String prefix, String name) { return defaultFactory.newInstance(prefix == null ? null : prefix.intern(), name.intern()); }
@Inject public LengthTokenFilterFactory(Index index, @IndexSettings Settings indexSettings, @Assisted String name, @Assisted Settings settings) { super(index, indexSettings, name, settings); min = settings.getAsInt("min", 0); max = settings.getAsInt("max", Integer.MAX_VALUE); enableP...
@Inject public LengthTokenFilterFactory(Index index, @IndexSettings Settings indexSettings, @Assisted String name, @Assisted Settings settings) { super(index, indexSettings, name, settings); min = settings.getAsInt("min", 0); max = settings.getAsInt("max", Integer.MAX_VALUE); enableP...
public boolean keyDown (int keycode) { ParticleEmitter emitter = emitters.get(emitterIndex); if (keycode == Input.Keys.KEYCODE_DPAD_UP) particleCount += 5; else if (keycode == Input.Keys.KEYCODE_DPAD_DOWN) particleCount -= 5; else if (keycode == Input.Keys.KEYCODE_SPACE) { emitterIndex...
public boolean keyDown (int keycode) { ParticleEmitter emitter = emitters.get(emitterIndex); if (keycode == Input.Keys.KEYCODE_DPAD_UP) particleCount += 5; else if (keycode == Input.Keys.KEYCODE_DPAD_DOWN) particleCount -= 5; else if (keycode == Input.Keys.KEYCODE_SPACE) { emitterIndex...
public void onItemClick(AdapterView<?> parent, View view, int position, long id) { Entry entry = (Entry) parent.getItemAtPosition(position); if (entry instanceof Folder) setFolder(tree, (Folder) entry); else startActivity(BranchFileViewActivity.createInten...
public void onItemClick(AdapterView<?> parent, View view, int position, long id) { Entry entry = (Entry) parent.getItemAtPosition(position); if (entry instanceof Folder) setFolder(tree, (Folder) entry); else startActivity(BranchFileViewActivity.createInten...
public static String VERSION = "0.9.8"; }
public static String VERSION = "0.9.9"; }
public Map<String, Object> sourceAsMap() throws IOException { Map<String, Object> mapping = XContentHelper.convertToMap(source.compressed(), 0, source.compressed().length).v2(); if (mapping.size() == 1 && mapping.containsKey(type())) { // the type name is the root value, reduce it ...
public Map<String, Object> sourceAsMap() throws IOException { Map<String, Object> mapping = XContentHelper.convertToMap(source.compressed(), 0, source.compressed().length, true).v2(); if (mapping.size() == 1 && mapping.containsKey(type())) { // the type name is the root value, reduce it ...
protected Field parseCreateField(ParseContext context) throws IOException { if (!enabled) { return null; } if (store == Field.Store.NO) { return null; } if (context.flyweight()) { return null; } byte[] data = context.source(...
protected Field parseCreateField(ParseContext context) throws IOException { if (!enabled) { return null; } if (store == Field.Store.NO) { return null; } if (context.flyweight()) { return null; } byte[] data = context.source(...
public static Map<String, Object> sourceAsMap(byte[] bytes, int offset, int length) throws ElasticSearchParseException { return XContentHelper.convertToMap(bytes, offset, length).v2(); }
public static Map<String, Object> sourceAsMap(byte[] bytes, int offset, int length) throws ElasticSearchParseException { return XContentHelper.convertToMap(bytes, offset, length, false).v2(); }
public void render () { Gdx.gl.glClearColor(0.2f, 0.2f, 0.2f, 1.0f); Gdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT); Gdx.gl.glEnable(GL10.GL_DEPTH_TEST); cam.update(); cam.apply(Gdx.gl10); drawAxes(); if (hasNormals) { Gdx.gl.glEnable(GL10.GL_LIGHTING); Gdx.gl.glEnable(GL10....
public void render () { Gdx.gl.glClearColor(0.2f, 0.2f, 0.2f, 1.0f); Gdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT); Gdx.gl.glEnable(GL10.GL_DEPTH_TEST); cam.update(); cam.apply(Gdx.gl10); drawAxes(); if (hasNormals) { Gdx.gl.glEnable(GL10.GL_LIGHTING); Gdx.gl.glEnable(GL10....
public void run() { try { removeShard(shardId, reason); } catch (Exception e) { logger.warn("failed to close shard", e); } finally { latch.countDown(); ...
public void run() { try { removeShard(shardId, reason); } catch (Throwable e) { logger.warn("failed to close shard", e); } finally { latch.countDown(); ...
public void run() { try { removeIndex(index, "shutdown", shardsStopExecutor); } catch (Exception e) { logger.warn("failed to delete index on stop [" + index + "]", e); } finally { ...
public void run() { try { removeIndex(index, "shutdown", shardsStopExecutor); } catch (Throwable e) { logger.warn("failed to delete index on stop [" + index + "]", e); } finally { ...
@Override public void act (float delta) { float alpha = createInterpolatedAlpha(delta); if (done) { target.rotation = rotation; } else { target.rotation = startRotation + deltaRotation * alpha; } }
@Override public void act (float delta) { float alpha = createInterpolatedAlpha(delta); if (done) { target.rotation = startRotation + rotation; } else { target.rotation = startRotation + deltaRotation * alpha; } }
@Override protected void configure() { bind(String.class).annotatedWith(IndexerIndexName.class).toInstance(settings.get("indexer.index_name", "indexer")); bind(IndexersService.class).asEagerSingleton(); bind(IndexerClusterService.class).asEagerSingleton(); bind(IndexersRouter.class)....
@Override protected void configure() { bind(String.class).annotatedWith(IndexerIndexName.class).toInstance(IndexerIndexName.Conf.indexName(settings)); bind(IndexersService.class).asEagerSingleton(); bind(IndexerClusterService.class).asEagerSingleton(); bind(IndexersRouter.class).asEa...
public void testFieldIndexedScript() throws ExecutionException, InterruptedException{ List<IndexRequestBuilder> builders = new ArrayList(); builders.add(client().prepareIndex(ScriptService.SCRIPT_INDEX, "groovy", "script1").setSource("{" + "\"script\":\"2\""+ "}")); ...
public void testFieldIndexedScript() throws ExecutionException, InterruptedException{ List<IndexRequestBuilder> builders = new ArrayList(); builders.add(client().prepareIndex(ScriptService.SCRIPT_INDEX, "groovy", "script1").setSource("{" + "\"script\":\"2\""+ "}")); ...
@Override protected void configure() { bind(FieldDataCache.class) .to(settings.getAsClass(FieldDataCacheSettings.FIELD_DATA_CACHE_TYPE, SoftFieldDataCache.class, "org.elasticsearch.index.cache.field.", "FieldDataCache")) .in(Scopes.SINGLETON);
@Override protected void configure() { bind(FieldDataCache.class) .to(settings.getAsClass(FieldDataCacheSettings.FIELD_DATA_CACHE_TYPE, SoftFieldDataCache.class, "org.elasticsearch.index.cache.field.data.", "FieldDataCache")) .in(Scopes.SINGLETON);
public void destroy() { } }
public void dispose() { } }
@Override public int contentByteArrayOffset() { if (!request.isSetBody()) { return 0; } return request.bufferForBody().arrayOffset(); }
@Override public int contentByteArrayOffset() { if (!request.isSetBody()) { return 0; } return request.bufferForBody().arrayOffset() + request.bufferForBody().position(); }
protected void setupDisplay () throws LWJGLException { Display.setDisplayMode(new DisplayMode(width, height)); Display.setFullscreen(false); Display.setTitle(title); int samples = 0; try { Display.create(new PixelFormat(8, 8, 0, samples)); } catch (Exception ex) { Display.destroy(); try { Disp...
protected void setupDisplay () throws LWJGLException { Display.setDisplayMode(new DisplayMode(width, height)); Display.setFullscreen(false); Display.setTitle(title); int samples = 0; try { Display.create(new PixelFormat(8, 8, 0, samples)); } catch (Exception ex) { Display.destroy(); try { Disp...
public void processMap (File inputDir, File outputDir, Settings settings) throws IOException { FileHandle inputDirHandle = new FileHandle(inputDir.getAbsolutePath()); File[] files = inputDir.listFiles(new TmxFilter()); for (File file : files) { map = TiledLoader.createMap(new FileHandle(file.getAbsolutePath(...
public void processMap (File inputDir, File outputDir, Settings settings) throws IOException { FileHandle inputDirHandle = new FileHandle(inputDir.getAbsolutePath()); File[] files = inputDir.listFiles(new TmxFilter()); for (File file : files) { map = TiledLoader.createMap(new FileHandle(file.getAbsolutePath(...
public void refresh(List<AtomicReaderContext> atomicReaderContexts) throws IOException { // do a quick check for the common case, that all are there if (refreshNeeded(atomicReaderContexts)) { synchronized (idReaders) { if (!refreshNeeded(atomicReaderContexts)) { ...
public void refresh(List<AtomicReaderContext> atomicReaderContexts) throws IOException { // do a quick check for the common case, that all are there if (refreshNeeded(atomicReaderContexts)) { synchronized (idReaders) { if (!refreshNeeded(atomicReaderContexts)) { ...
public GetResult innerGet(String type, String id, String[] gFields, boolean realtime, long version, VersionType versionType, FetchSourceContext fetchSourceContext) throws ElasticSearchException { fetchSourceContext = normalizeFetchSourceContent(fetchSourceContext, gFields); boolean loadSource = (gF...
public GetResult innerGet(String type, String id, String[] gFields, boolean realtime, long version, VersionType versionType, FetchSourceContext fetchSourceContext) throws ElasticSearchException { fetchSourceContext = normalizeFetchSourceContent(fetchSourceContext, gFields); boolean loadSource = (gF...
public Filter parse(QueryParseContext parseContext) throws IOException, QueryParsingException { XContentParser parser = parseContext.parser(); Query query = null; boolean queryFound = false; String childType = null; int shortCircuitParentDocSet = 8192; // Tests show a cut of...
public Filter parse(QueryParseContext parseContext) throws IOException, QueryParsingException { XContentParser parser = parseContext.parser(); Query query = null; boolean queryFound = false; String childType = null; int shortCircuitParentDocSet = 8192; // Tests show a cut of...
public Query parse(QueryParseContext parseContext) throws IOException, QueryParsingException { XContentParser parser = parseContext.parser(); Query innerQuery = null; boolean queryFound = false; float boost = 1.0f; String childType = null; ScoreType scoreType = null;...
public Query parse(QueryParseContext parseContext) throws IOException, QueryParsingException { XContentParser parser = parseContext.parser(); Query innerQuery = null; boolean queryFound = false; float boost = 1.0f; String childType = null; ScoreType scoreType = null;...
public Filter parse(QueryParseContext parseContext) throws IOException, QueryParsingException { XContentParser parser = parseContext.parser(); Query query = null; boolean queryFound = false; String parentType = null; boolean cache = false; CacheKeyFilter.Key cacheKe...
public Filter parse(QueryParseContext parseContext) throws IOException, QueryParsingException { XContentParser parser = parseContext.parser(); Query query = null; boolean queryFound = false; String parentType = null; boolean cache = false; CacheKeyFilter.Key cacheKe...
public Query parse(QueryParseContext parseContext) throws IOException, QueryParsingException { XContentParser parser = parseContext.parser(); Query innerQuery = null; boolean queryFound = false; float boost = 1.0f; String parentType = null; boolean score = false; ...
public Query parse(QueryParseContext parseContext) throws IOException, QueryParsingException { XContentParser parser = parseContext.parser(); Query innerQuery = null; boolean queryFound = false; float boost = 1.0f; String parentType = null; boolean score = false; ...
public Query parse(QueryParseContext parseContext) throws IOException, QueryParsingException { XContentParser parser = parseContext.parser(); Query query = null; boolean queryFound = false; float boost = 1.0f; String childType = null; ScoreType scoreType = ScoreType....
public Query parse(QueryParseContext parseContext) throws IOException, QueryParsingException { XContentParser parser = parseContext.parser(); Query query = null; boolean queryFound = false; float boost = 1.0f; String childType = null; ScoreType scoreType = ScoreType....
private SearchContext createContext(InternalSearchRequest request) throws ElasticSearchException { IndexService indexService = indicesService.indexServiceSafe(request.index()); IndexShard indexShard = indexService.shardSafe(request.shardId()); Engine.Searcher engineSearcher = indexShard.sear...
private SearchContext createContext(InternalSearchRequest request) throws ElasticSearchException { IndexService indexService = indicesService.indexServiceSafe(request.index()); IndexShard indexShard = indexService.shardSafe(request.shardId()); Engine.Searcher engineSearcher = indexShard.sear...
@Override public FacetCollector parser(String facetName, XContentParser parser, SearchContext context) throws IOException { String field = null; int size = 10; String fieldName = null; XContentParser.Token token; ImmutableSet<String> excluded = ImmutableSet.of(); whi...
@Override public FacetCollector parser(String facetName, XContentParser parser, SearchContext context) throws IOException { String field = null; int size = 10; String fieldName = null; XContentParser.Token token; ImmutableSet<String> excluded = ImmutableSet.of(); whi...
private InternalSearchRequest searchRequest(SearchSourceBuilder builder) { return new InternalSearchRequest("test", 0).source(builder.buildAsBytes()); }
private InternalSearchRequest searchRequest(SearchSourceBuilder builder) { return new InternalSearchRequest("test", 0, 1).source(builder.buildAsBytes()); }
public SearchContext(long id, SearchShardTarget shardTarget, TimeValue timeout, String[] types, Engine.Searcher engineSearcher, IndexService indexService, ScriptService scriptService) { this.id = id; this.shardTarget = shardTarget; this.timeout = timeout; thi...
public SearchContext(long id, SearchShardTarget shardTarget, TimeValue timeout, String[] types, Engine.Searcher engineSearcher, IndexService indexService, ScriptService scriptService) { this.id = id; this.shardTarget = shardTarget; this.timeout = timeout; thi...
public static Query fixNegativeQueryIfNeeded(Query q) { if (isNegativeQuery(q)) { BooleanQuery newBq = (BooleanQuery) q.clone(); newBq.add(new MatchAllDocsQuery(), BooleanClause.Occur.MUST); return newBq; } return q; }
public static Query fixNegativeQueryIfNeeded(Query q) { if (isNegativeQuery(q)) { BooleanQuery newBq = (BooleanQuery) q.clone(); newBq.add(MATCH_ALL_QUERY, BooleanClause.Occur.MUST); return newBq; } return q; }
public void testSimpleMapper() throws Exception { DocumentMapperParser mapperParser = MapperTests.newParser(); DocumentMapper docMapper = doc("test", rootObject("person") .add(object("name").add(stringField("first").store(YES).index(Field.Index.NO))) )...
public void testSimpleMapper() throws Exception { DocumentMapperParser mapperParser = MapperTests.newParser(); DocumentMapper docMapper = doc("test", rootObject("person") .add(object("name").add(stringField("first").store(true).index(false))) ).build(m...
public void readFrom(StreamInput in) throws IOException { super.readFrom(in); clusterName = ClusterName.readClusterName(in); clusterState = ClusterState.Builder.readFrom(in, null); }
public void readFrom(StreamInput in) throws IOException { super.readFrom(in); clusterName = ClusterName.readClusterName(in); clusterState = ClusterState.Builder.readFrom(in, null, clusterName); }
public final XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException { builder.startObject(name); builder.field(type); internalXContent(builder, params); if (aggregations != null || aggregationsBinary != null) { builder.startObject("aggrega...
public final XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException { builder.startObject(getName()); builder.field(type); internalXContent(builder, params); if (aggregations != null || aggregationsBinary != null) { builder.startObject("ag...
protected XContentBuilder internalXContent(XContentBuilder builder, Params params) throws IOException { builder.startObject(); if (childType == null) { throw new SearchSourceBuilderException("child_type must be set on children aggregation [" + name + "]"); } builder.field...
protected XContentBuilder internalXContent(XContentBuilder builder, Params params) throws IOException { builder.startObject(); if (childType == null) { throw new SearchSourceBuilderException("child_type must be set on children aggregation [" + getName() + "]"); } builder....
protected XContentBuilder internalXContent(XContentBuilder builder, Params params) throws IOException { if (filter == null) { throw new SearchSourceBuilderException("filter must be set on filter aggregation [" + name + "]"); } filter.toXContent(builder, params); return bu...
protected XContentBuilder internalXContent(XContentBuilder builder, Params params) throws IOException { if (filter == null) { throw new SearchSourceBuilderException("filter must be set on filter aggregation [" + getName() + "]"); } filter.toXContent(builder, params); retu...
protected XContentBuilder internalXContent(XContentBuilder builder, Params params) throws IOException { builder.startObject(); if (keyedFilters == null && nonKeyedFilters == null) { throw new SearchSourceBuilderException("At least one filter must be set on filter aggregation [" + name + ...
protected XContentBuilder internalXContent(XContentBuilder builder, Params params) throws IOException { builder.startObject(); if (keyedFilters == null && nonKeyedFilters == null) { throw new SearchSourceBuilderException("At least one filter must be set on filter aggregation [" + getName...
protected XContentBuilder doInternalXContent(XContentBuilder builder, Params params) throws IOException { if (interval == null) { throw new SearchSourceBuilderException("[interval] must be defined for histogram aggregation [" + name + "]"); } if (interval instanceof Number) { ...
protected XContentBuilder doInternalXContent(XContentBuilder builder, Params params) throws IOException { if (interval == null) { throw new SearchSourceBuilderException("[interval] must be defined for histogram aggregation [" + getName() + "]"); } if (interval instanceof Number) ...
protected XContentBuilder doInternalXContent(XContentBuilder builder, Params params) throws IOException { if (interval == null) { throw new SearchSourceBuilderException("[interval] must be defined for histogram aggregation [" + name + "]"); } builder.field("interval", interval); ...
protected XContentBuilder doInternalXContent(XContentBuilder builder, Params params) throws IOException { if (interval == null) { throw new SearchSourceBuilderException("[interval] must be defined for histogram aggregation [" + getName() + "]"); } builder.field("interval", interv...
protected XContentBuilder internalXContent(XContentBuilder builder, Params params) throws IOException { builder.startObject(); if (path == null) { throw new SearchSourceBuilderException("nested path must be set on nested aggregation [" + name + "]"); } builder.field("path...
protected XContentBuilder internalXContent(XContentBuilder builder, Params params) throws IOException { builder.startObject(); if (path == null) { throw new SearchSourceBuilderException("nested path must be set on nested aggregation [" + getName() + "]"); } builder.field(...
protected XContentBuilder doInternalXContent(XContentBuilder builder, Params params) throws IOException { if (ranges.isEmpty()) { throw new SearchSourceBuilderException("at least one range must be defined for range aggregation [" + name + "]"); }
protected XContentBuilder doInternalXContent(XContentBuilder builder, Params params) throws IOException { if (ranges.isEmpty()) { throw new SearchSourceBuilderException("at least one range must be defined for range aggregation [" + getName() + "]"); }
public IPv4RangeBuilder addMaskRange(String key, String mask) { long[] fromTo = cidrMaskToMinMax(mask); if (fromTo == null) { throw new SearchSourceBuilderException("invalid CIDR mask [" + mask + "] in ip_range aggregation [" + name + "]"); } ranges.add(new Range(key, fro...
public IPv4RangeBuilder addMaskRange(String key, String mask) { long[] fromTo = cidrMaskToMinMax(mask); if (fromTo == null) { throw new SearchSourceBuilderException("invalid CIDR mask [" + mask + "] in ip_range aggregation [" + getName() + "]"); } ranges.add(new Range(key...
public final XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException { builder.startObject(name).startObject(type); internalXContent(builder, params); return builder.endObject().endObject(); }
public final XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException { builder.startObject(getName()).startObject(type); internalXContent(builder, params); return builder.endObject().endObject(); }
public PercentilesBuilder percentiles(double... percentiles) { for (int i = 0; i < percentiles.length; i++) { if (percentiles[i] < 0 || percentiles[i] > 100) { throw new IllegalArgumentException("the percents in the percentiles aggregation [" + name + "] m...
public PercentilesBuilder percentiles(double... percentiles) { for (int i = 0; i < percentiles.length; i++) { if (percentiles[i] < 0 || percentiles[i] > 100) { throw new IllegalArgumentException("the percents in the percentiles aggregation [" + getName() +...
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException { builder.startObject(name).field(type); sourceBuilder().toXContent(builder, params); return builder.endObject(); }
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException { builder.startObject(getName()).field(type); sourceBuilder().toXContent(builder, params); return builder.endObject(); }
public void testNestedSorting(MultiValueMode sortMode) throws IOException { final String[] values = new String[randomIntBetween(2, 20)]; for (int i = 0; i < values.length; ++i) { values[i] = TestUtil.randomSimpleString(getRandom()); } final int numParents = scaledRandomIn...
public void testNestedSorting(MultiValueMode sortMode) throws IOException { final String[] values = new String[randomIntBetween(2, 20)]; for (int i = 0; i < values.length; ++i) { values[i] = TestUtil.randomSimpleString(getRandom()); } final int numParents = scaledRandomIn...
public void testBasicQuerySanities() { Query childQuery = new TermQuery(new Term("field", "value")); ScoreType scoreType = ScoreType.values()[random().nextInt(ScoreType.values().length)]; ParentFieldMapper parentFieldMapper = SearchContext.current().mapperService().documentMapper("child").pa...
public void testBasicQuerySanities() { Query childQuery = new TermQuery(new Term("field", "value")); ScoreType scoreType = ScoreType.values()[random().nextInt(ScoreType.values().length)]; ParentFieldMapper parentFieldMapper = SearchContext.current().mapperService().documentMapper("child").pa...
protected void assertAvgScoreMode(Filter parentFilter, IndexSearcher searcher) throws IOException { MultiValueMode sortMode = MultiValueMode.AVG; Filter childFilter = new NotFilter(parentFilter); XFieldComparatorSource nestedComparatorSource = createFieldComparator("field2", sortMode, -127, ...
protected void assertAvgScoreMode(Filter parentFilter, IndexSearcher searcher) throws IOException { MultiValueMode sortMode = MultiValueMode.AVG; Filter childFilter = new NotFilter(parentFilter); XFieldComparatorSource nestedComparatorSource = createFieldComparator("field2", sortMode, -127, ...
protected void assertAvgScoreMode(Filter parentFilter, IndexSearcher searcher, IndexFieldData.XFieldComparatorSource innerFieldComparator) throws IOException { MultiValueMode sortMode = MultiValueMode.AVG; Filter childFilter = new NotFilter(parentFilter); XFieldComparatorSource nestedCompara...
protected void assertAvgScoreMode(Filter parentFilter, IndexSearcher searcher, IndexFieldData.XFieldComparatorSource innerFieldComparator) throws IOException { MultiValueMode sortMode = MultiValueMode.AVG; Filter childFilter = new NotFilter(parentFilter); XFieldComparatorSource nestedCompara...
protected Settings nodeSettings(int nodeOrdinal) { return builder().put("gateway.type", "local").build(); }
protected Settings nodeSettings(int nodeOrdinal) { return builder().put(super.nodeSettings(nodeOrdinal)).put("gateway.type", "local").build(); }
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException { return builder.startObject(name) .startObject(type) .field("field", "date") ....
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException { return builder.startObject(getName()) .startObject(type) .field("field", "date") ...