buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
@Override public void execute(SearchContext context) throws ElasticSearchException { if (context.facets() == null) { return; } if (context.queryResult().facets() != null) { // no need to compute the facets twice, they should be computed on a per context basis ...
@Override public void execute(SearchContext context) throws ElasticSearchException { if (context.facets() == null || context.facets().facetCollectors() == null) { return; } if (context.queryResult().facets() != null) { // no need to compute the facets twice, they shou...
public void render(Application app) { // update the world with a fixed time step world.step( 1 / 60.0f, 8, 3 ); // clear the screen and setup the projection matrix GL10 gl = app.getGraphics().getGL10(); gl.glClear( GL10.GL_COLOR_BUFFER_BIT ); camera.setMatrices( ); // render the world using t...
public void render(Application app) { // update the world with a fixed time step world.step( app.getGraphics().getDeltaTime(), 8, 3 ); // clear the screen and setup the projection matrix GL10 gl = app.getGraphics().getGL10(); gl.glClear( GL10.GL_COLOR_BUFFER_BIT ); camera.setMatrices( ); // r...
public double metric(long owningBucketOrd) { return sums.get(owningBucketOrd) / counts.get(owningBucketOrd); }
public double metric(long owningBucketOrd) { return valuesSource == null ? Double.NaN : sums.get(owningBucketOrd) / counts.get(owningBucketOrd); }
public double metric(long owningBucketOrd) { return maxes.get(owningBucketOrd); }
public double metric(long owningBucketOrd) { return valuesSource == null ? Double.NEGATIVE_INFINITY : maxes.get(owningBucketOrd); }
public double metric(long owningBucketOrd) { return mins.get(owningBucketOrd); }
public double metric(long owningBucketOrd) { return valuesSource == null ? Double.POSITIVE_INFINITY : mins.get(owningBucketOrd); }
public double metric(long owningBucketOrd) { return sums.get(owningBucketOrd); }
public double metric(long owningBucketOrd) { return valuesSource == null ? 0 : sums.get(owningBucketOrd); }
public double metric(long owningBucketOrd) { return counts.get(owningBucketOrd); }
public double metric(long owningBucketOrd) { return valuesSource == null ? 0 : counts.get(owningBucketOrd); }
public void readFrom(StreamInput in) throws IOException { super.readFrom(in); minScore = in.readFloat(); BytesHolder bytes = in.readBytesHolder(); querySource = bytes.bytes(); querySourceOffset = bytes.offset(); querySourceLength = bytes.length(); int typesS...
public void readFrom(StreamInput in) throws IOException { super.readFrom(in); minScore = in.readFloat(); BytesHolder bytes = in.readBytesReference(); querySource = bytes.bytes(); querySourceOffset = bytes.offset(); querySourceLength = bytes.length(); int typ...
protected final boolean lessThan(final ShardFieldDoc docA, final ShardFieldDoc docB) { final int n = fields.length; int c = 0; for (int i = 0; i < n && c == 0; ++i) { final SortField.Type type = fields[i].getType(); if (type == SortField.Type.STRING) { ...
protected final boolean lessThan(final ShardFieldDoc docA, final ShardFieldDoc docB) { final int n = fields.length; int c = 0; for (int i = 0; i < n && c == 0; ++i) { final SortField.Type type = fields[i].getType(); if (type == SortField.Type.STRING) { ...
int shardRequestId(); /* * Licensed to ElasticSearch and Shay Banon under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. ElasticSearch licenses this * file to you under the Apache License, Version 2.0 (the...
int shardRequestId(); /* * Licensed to ElasticSearch and Shay Banon under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. ElasticSearch licenses this * file to you under the Apache License, Version 2.0 (the...
public ShaderProgram shader; }
public Shader shader; }
public static BuildTarget newDefaultTarget (BuildTarget.TargetOs type, boolean is64Bit) { if (type == TargetOs.Windows && !is64Bit) { // Windows 32-Bit return new BuildTarget(TargetOs.Windows, false, new String[] {"**/*.c"}, new String[0], new String[] {"**/*.cpp"}, new String[0], new String[0], "i686-w64-...
public static BuildTarget newDefaultTarget (BuildTarget.TargetOs type, boolean is64Bit) { if (type == TargetOs.Windows && !is64Bit) { // Windows 32-Bit return new BuildTarget(TargetOs.Windows, false, new String[] {"**/*.c"}, new String[0], new String[] {"**/*.cpp"}, new String[0], new String[0], "i686-w64-...
public void create () { font = new BitmapFont(); batch = new SpriteBatch(); }
public void create () { font = new BitmapFont(Gdx.files.internal("data/arial-15.fnt"), false); batch = new SpriteBatch(); }
public void create() { world = new World(new Vector2(0, -40), true); renderer = new Box2DDebugRenderer(); cam = new OrthographicCamera(28, 20); createWorld(); Gdx.input.setInputProcessor(this); batch = new SpriteBatch(); font = new BitmapFont(); }
public void create() { world = new World(new Vector2(0, -40), true); renderer = new Box2DDebugRenderer(); cam = new OrthographicCamera(28, 20); createWorld(); Gdx.input.setInputProcessor(this); batch = new SpriteBatch(); font = new BitmapFont(Gdx.files.internal("data/arial-15.fnt"), false); }
public void create () { stage = new Stage(0, 0, false); font = new BitmapFont(); Gdx.input.setInputProcessor(stage); Gdx.graphics.setVSync(false); container = new Table(); stage.addActor(container); container.getTableLayout().debug(); Table table = new Table(); FlickScrollPane scroll = new FlickS...
public void create () { stage = new Stage(0, 0, false); font = new BitmapFont(Gdx.files.internal("data/arial-15.fnt"), false); Gdx.input.setInputProcessor(stage); Gdx.graphics.setVSync(false); container = new Table(); stage.addActor(container); container.getTableLayout().debug(); Table table = new T...
public void emptyAggregation() throws Exception { prepareCreate("empty_bucket_idx").addMapping("type", "value", "type=integer").execute().actionGet(); List<IndexRequestBuilder> builders = new ArrayList<IndexRequestBuilder>(); for (int i = 0; i < 2; i++) { builders.add(client().pr...
public void emptyAggregation() throws Exception { prepareCreate("empty_bucket_idx").addMapping("type", "value", "type=integer").execute().actionGet(); List<IndexRequestBuilder> builders = new ArrayList<IndexRequestBuilder>(); for (int i = 0; i < 2; i++) { builders.add(client().pr...
public void emptyAggregation() throws Exception { prepareCreate("empty_bucket_idx").addMapping("type", "value", "type=integer").execute().actionGet(); List<IndexRequestBuilder> builders = new ArrayList<IndexRequestBuilder>(); for (int i = 0; i < 2; i++) { builders.add(client().pr...
public void emptyAggregation() throws Exception { prepareCreate("empty_bucket_idx").addMapping("type", "value", "type=integer").execute().actionGet(); List<IndexRequestBuilder> builders = new ArrayList<IndexRequestBuilder>(); for (int i = 0; i < 2; i++) { builders.add(client().pr...
public void emptyAggregation() throws Exception { prepareCreate("empty_bucket_idx").addMapping("type", "value", "type=integer").execute().actionGet(); List<IndexRequestBuilder> builders = new ArrayList<IndexRequestBuilder>(); for (int i = 0; i < 2; i++) { builders.add(client().pr...
public void emptyAggregation() throws Exception { prepareCreate("empty_bucket_idx").addMapping("type", "value", "type=integer").execute().actionGet(); List<IndexRequestBuilder> builders = new ArrayList<IndexRequestBuilder>(); for (int i = 0; i < 2; i++) { builders.add(client().pr...
public void emptyAggregation() throws Exception { prepareCreate("empty_bucket_idx").addMapping("type", "value", "type=integer", "location", "type=geo_point").execute().actionGet(); List<IndexRequestBuilder> builders = new ArrayList<IndexRequestBuilder>(); for (int i = 0; i < 2; i++) { ...
public void emptyAggregation() throws Exception { prepareCreate("empty_bucket_idx").addMapping("type", "value", "type=integer", "location", "type=geo_point").execute().actionGet(); List<IndexRequestBuilder> builders = new ArrayList<IndexRequestBuilder>(); for (int i = 0; i < 2; i++) { ...
public void emptyAggregation() throws Exception { prepareCreate("empty_bucket_idx").addMapping("type", "value", "type=integer").execute().actionGet(); List<IndexRequestBuilder> builders = new ArrayList<IndexRequestBuilder>(); for (int i = 0; i < 2; i++) { builders.add(client().pr...
public void emptyAggregation() throws Exception { prepareCreate("empty_bucket_idx").addMapping("type", "value", "type=integer").execute().actionGet(); List<IndexRequestBuilder> builders = new ArrayList<IndexRequestBuilder>(); for (int i = 0; i < 2; i++) { builders.add(client().pr...
public void emptyAggregation() throws Exception { prepareCreate("empty_bucket_idx").addMapping("type", "value", "type=integer", "ip", "type=ip").execute().actionGet(); List<IndexRequestBuilder> builders = new ArrayList<IndexRequestBuilder>(); for (int i = 0; i < 2; i++) { builder...
public void emptyAggregation() throws Exception { prepareCreate("empty_bucket_idx").addMapping("type", "value", "type=integer", "ip", "type=ip").execute().actionGet(); List<IndexRequestBuilder> builders = new ArrayList<IndexRequestBuilder>(); for (int i = 0; i < 2; i++) { builder...
public void emptyAggregation() throws Exception { prepareCreate("empty_bucket_idx").addMapping("type", "value", "type=integer").execute().actionGet(); List<IndexRequestBuilder> builders = new ArrayList<IndexRequestBuilder>(); for (int i = 0; i < 2; i++) { builders.add(client().pr...
public void emptyAggregation() throws Exception { prepareCreate("empty_bucket_idx").addMapping("type", "value", "type=integer").execute().actionGet(); List<IndexRequestBuilder> builders = new ArrayList<IndexRequestBuilder>(); for (int i = 0; i < 2; i++) { builders.add(client().pr...
public void emptyAggregation() throws Exception { prepareCreate("empty_bucket_idx").addMapping("type", "value", "type=integer", "nested", "type=nested").execute().actionGet(); List<IndexRequestBuilder> builders = new ArrayList<IndexRequestBuilder>(); for (int i = 0; i < 2; i++) { ...
public void emptyAggregation() throws Exception { prepareCreate("empty_bucket_idx").addMapping("type", "value", "type=integer", "nested", "type=nested").execute().actionGet(); List<IndexRequestBuilder> builders = new ArrayList<IndexRequestBuilder>(); for (int i = 0; i < 2; i++) { ...
public void emptyAggregation() throws Exception { prepareCreate("empty_bucket_idx").addMapping("type", "value", "type=integer").execute().actionGet(); List<IndexRequestBuilder> builders = new ArrayList<IndexRequestBuilder>(); for (int i = 0; i < 2; i++) { builders.add(client().pr...
public void emptyAggregation() throws Exception { prepareCreate("empty_bucket_idx").addMapping("type", "value", "type=integer").execute().actionGet(); List<IndexRequestBuilder> builders = new ArrayList<IndexRequestBuilder>(); for (int i = 0; i < 2; i++) { builders.add(client().pr...
public void testEmptyAggregation() throws Exception { SearchResponse searchResponse = client().prepareSearch("empty_bucket_idx") .setQuery(matchAllQuery()) .addAggregation(histogram("histo").field("value").interval(1l).emptyBuckets(true).subAggregation(avg("avg"))) ...
public void testEmptyAggregation() throws Exception { SearchResponse searchResponse = client().prepareSearch("empty_bucket_idx") .setQuery(matchAllQuery()) .addAggregation(histogram("histo").field("value").interval(1l).minDocCount(0).subAggregation(avg("avg"))) ...
public void testEmptyAggregation() throws Exception { SearchResponse searchResponse = client().prepareSearch("empty_bucket_idx") .setQuery(matchAllQuery()) .addAggregation(histogram("histo").field("value").interval(1l).emptyBuckets(true).subAggregation(extendedStats("stats")...
public void testEmptyAggregation() throws Exception { SearchResponse searchResponse = client().prepareSearch("empty_bucket_idx") .setQuery(matchAllQuery()) .addAggregation(histogram("histo").field("value").interval(1l).minDocCount(0).subAggregation(extendedStats("stats"))) ...
public void testEmptyAggregation() throws Exception { SearchResponse searchResponse = client().prepareSearch("empty_bucket_idx") .setQuery(matchAllQuery()) .addAggregation(histogram("histo").field("value").interval(1l).emptyBuckets(true).subAggregation(max("max"))) ...
public void testEmptyAggregation() throws Exception { SearchResponse searchResponse = client().prepareSearch("empty_bucket_idx") .setQuery(matchAllQuery()) .addAggregation(histogram("histo").field("value").interval(1l).minDocCount(0).subAggregation(max("max"))) ...
public void testEmptyAggregation() throws Exception { SearchResponse searchResponse = client().prepareSearch("empty_bucket_idx") .setQuery(matchAllQuery()) .addAggregation(histogram("histo").field("value").interval(1l).emptyBuckets(true).subAggregation(min("min"))) ...
public void testEmptyAggregation() throws Exception { SearchResponse searchResponse = client().prepareSearch("empty_bucket_idx") .setQuery(matchAllQuery()) .addAggregation(histogram("histo").field("value").interval(1l).minDocCount(0).subAggregation(min("min"))) ...
public void testEmptyAggregation() throws Exception { SearchResponse searchResponse = client().prepareSearch("empty_bucket_idx") .setQuery(matchAllQuery()) .addAggregation(histogram("histo").field("value").interval(1l).emptyBuckets(true).subAggregation(stats("stats"))) ...
public void testEmptyAggregation() throws Exception { SearchResponse searchResponse = client().prepareSearch("empty_bucket_idx") .setQuery(matchAllQuery()) .addAggregation(histogram("histo").field("value").interval(1l).minDocCount(0).subAggregation(stats("stats"))) ...
public void testEmptyAggregation() throws Exception { SearchResponse searchResponse = client().prepareSearch("empty_bucket_idx") .setQuery(matchAllQuery()) .addAggregation(histogram("histo").field("value").interval(1l).emptyBuckets(true).subAggregation(sum("sum"))) ...
public void testEmptyAggregation() throws Exception { SearchResponse searchResponse = client().prepareSearch("empty_bucket_idx") .setQuery(matchAllQuery()) .addAggregation(histogram("histo").field("value").interval(1l).minDocCount(0).subAggregation(sum("sum"))) ...
public void recover(boolean indexShouldExists, RecoveryStatus recoveryStatus) throws IndexShardGatewayRecoveryException { recoveryStatus().index().startTime(System.currentTimeMillis()); // in the none case, we simply start the shard // clean the store, there should be nothing there... ...
public void recover(boolean indexShouldExists, RecoveryStatus recoveryStatus) throws IndexShardGatewayRecoveryException { recoveryStatus().index().startTime(System.currentTimeMillis()); // in the none case, we simply start the shard // clean the store, there should be nothing there... ...
public ComboBox (Object[] items, Stage stage, ComboBoxStyle style, String name) { super(name); setStyle(style); setItems(items); this.stage = stage; layout(); }
public ComboBox (Object[] items, Stage stage, ComboBoxStyle style, String name) { super(name); setStyle(style); setItems(items); this.stage = stage; pack(); }
public List (Object[] items, ListStyle style, String name) { super(name); setStyle(style); setItems(items); layout(); }
public List (Object[] items, ListStyle style, String name) { super(name); setStyle(style); setItems(items); pack(); }
public static void main (String[] args) { String[] excludes = { }; String[] headers = { "libjpeg/" }; BuildTarget win32home = BuildTarget.newDefaultTarget(TargetOs.Windows, false); win32home.compilerPrefix = ""; win32home.buildFileName = "build-windows32home.xml"; win32home.excludeFromMasterBuildFile = ...
public static void main (String[] args) { String[] excludes = { }; String[] headers = { "libjpeg/" }; BuildTarget win32home = BuildTarget.newDefaultTarget(TargetOs.Windows, false); win32home.compilerPrefix = ""; win32home.buildFileName = "build-windows32home.xml"; win32home.excludeFromMasterBuildFile = ...
public void execute(SearchContext searchContext) throws QueryPhaseExecutionException { try { searchContext.queryResult().from(searchContext.from()); searchContext.queryResult().size(searchContext.size()); Query query = searchContext.query(); if (searchContext...
public void execute(SearchContext searchContext) throws QueryPhaseExecutionException { try { searchContext.queryResult().from(searchContext.from()); searchContext.queryResult().size(searchContext.size()); Query query = searchContext.query(); if (searchContext...
@Test public void testSimpleFacets() throws Exception { SearchSourceBuilder sourceBuilder = searchSource() .query(termQuery("multi", "test")) .from(0).size(20).explain(true) .facets(facets().facet("all", termQuery("multi", "test"), true).facet("test1", termQue...
@Test public void testSimpleFacets() throws Exception { SearchSourceBuilder sourceBuilder = searchSource() .query(termQuery("multi", "test")) .from(0).size(20).explain(true) .facets(facets().queryFacet("all", termQuery("multi", "test"), true).queryFacet("test1...
public void build (String outputDir, String appName, String packageName, String mainClass) { Project project = new Project(); String packageDir = packageName.replace('.', '/'); // root dir/gradle files project.files.add(new ProjectFile("build.gradle", true)); project.files.add(new ProjectFile("settings.g...
public void build (String outputDir, String appName, String packageName, String mainClass) { Project project = new Project(); String packageDir = packageName.replace('.', '/'); // root dir/gradle files project.files.add(new ProjectFile("build.gradle", true)); project.files.add(new ProjectFile("settings.g...
protected ClusterHealthStatus ensureSearchable(String...indices) { // this is just a temporary thing but it's easier to change if it is encapsulated. return ensureYellow(indices); }
protected ClusterHealthStatus ensureSearchable(String...indices) { // this is just a temporary thing but it's easier to change if it is encapsulated. return ensureGreen(indices); }
@Inject public FsGateway(Settings settings, Environment environment, ClusterName clusterName) throws IOException { super(settings); File gatewayFile; String location = componentSettings.get("location"); if (location == null) { logger.warn("using local fs location for gat...
@Inject public FsGateway(Settings settings, Environment environment, ClusterName clusterName) throws IOException { super(settings); File gatewayFile; String location = componentSettings.get("location"); if (location == null) { logger.warn("using local fs location for gat...
@Inject public HdfsGateway(Settings settings, ClusterName clusterName) throws IOException { super(settings); this.closeFileSystem = componentSettings.getAsBoolean("close_fs", true); String uri = componentSettings.get("uri"); if (uri == null) { throw new ElasticSearchIlle...
@Inject public HdfsGateway(Settings settings, ClusterName clusterName) throws IOException { super(settings); this.closeFileSystem = componentSettings.getAsBoolean("close_fs", true); String uri = componentSettings.get("uri"); if (uri == null) { throw new ElasticSearchIlle...
private void shortcutDocIdsToLoad(SearchContext context) { TopDocs topDocs = context.queryResult().topDocs(); if (topDocs.scoreDocs.length < context.from()) { // no more docs... context.docIdsToLoad(EMPTY_DOC_IDS, 0, 0); return; } int totalSize = c...
private void shortcutDocIdsToLoad(SearchContext context) { TopDocs topDocs = context.queryResult().topDocs(); if (topDocs.scoreDocs.length < context.from()) { // no more docs... context.docIdsToLoad(EMPTY_DOC_IDS, 0, 0); return; } int totalSize = c...
public static void assertNoFailures(SearchResponse searchResponse) { assertThat("Unexpectd ShardFailures: " + Arrays.toString(searchResponse.getShardFailures()), searchResponse.getShardFailures().length, equalTo(0)); }
public static void assertNoFailures(SearchResponse searchResponse) { assertThat("Unexpected ShardFailures: " + Arrays.toString(searchResponse.getShardFailures()), searchResponse.getShardFailures().length, equalTo(0)); }
@Override public void create () { if(fileName.endsWith(".dae")) model = ColladaLoader.loadStillModel(Gdx.files.internal(fileName)); else throw new GdxRuntimeException("Unknown file format '" + fileName + "'"); if(textureFileName != null) texture = new Texture(Gdx.files.internal(textureFileName)); hasNormal...
@Override public void create () { if(fileName.endsWith(".dae")) model = ColladaLoader.loadStillModel(Gdx.files.internal(fileName)); else throw new GdxRuntimeException("Unknown file format '" + fileName + "'"); if(textureFileName != null) texture = new Texture(Gdx.files.internal(textureFileName)); hasNormal...
public void testCorruptTranslogFiles() throws Exception { internalCluster().startNodesAsync(1, ImmutableSettings.EMPTY).get(); assertAcked(prepareCreate("test").setSettings(ImmutableSettings.builder() .put("index.number_of_shards", 1) .put("index.number_of_replicas",...
public void testCorruptTranslogFiles() throws Exception { internalCluster().startNodesAsync(1, ImmutableSettings.EMPTY).get(); assertAcked(prepareCreate("test").setSettings(ImmutableSettings.builder() .put("index.number_of_shards", 1) .put("index.number_of_replicas",...
protected IOSApplication createApplication() { IOSApplicationConfiguration config = new IOSApplicationConfiguration(); config.useAccelerometer = false; return new IOSApplication(new GcTest(), config); }
protected IOSApplication createApplication() { IOSApplicationConfiguration config = new IOSApplicationConfiguration(); config.useAccelerometer = false; return new IOSApplication(new BulletTestCollection(), config); }
private List<Tuple<PluginInfo,Plugin>> loadPlugins() { File pluginsFile = environment.pluginsFile(); if (!isAccessibleDirectory(pluginsFile, logger)) { return Collections.emptyList(); } List<Tuple<PluginInfo, Plugin>> pluginData = Lists.newArrayList(); boolean d...
private List<Tuple<PluginInfo,Plugin>> loadPlugins() { File pluginsFile = environment.pluginsFile(); if (!isAccessibleDirectory(pluginsFile, logger)) { return Collections.emptyList(); } List<Tuple<PluginInfo, Plugin>> pluginData = Lists.newArrayList(); boolean d...
@Override public Query parse(QueryParseContext parseContext) throws IOException, QueryParsingException { XContentParser parser = parseContext.parser(); Filter filter = null; float boost = 1.0f; boolean cache = true; String currentFieldName = null; XContentParser.Tok...
@Override public Query parse(QueryParseContext parseContext) throws IOException, QueryParsingException { XContentParser parser = parseContext.parser(); Filter filter = null; float boost = 1.0f; boolean cache = true; String currentFieldName = null; XContentParser.Tok...
@Override public Query parse(QueryParseContext parseContext) throws IOException, QueryParsingException { XContentParser parser = parseContext.parser(); Query query = null; Filter filter = null; float boost = 1.0f; boolean cache = true; String currentFieldName = null...
@Override public Query parse(QueryParseContext parseContext) throws IOException, QueryParsingException { XContentParser parser = parseContext.parser(); Query query = null; Filter filter = null; float boost = 1.0f; boolean cache = true; String currentFieldName = null...
public GdxImage (GdxRenderer renderer, Texture texture, int srcX, int srcY, int srcWidth, int srcHeight, Color color, boolean tile) { this.renderer = renderer; width = Math.abs(srcWidth); height = Math.abs(srcHeight); this.tintColor = color == null ? Color.WHITE : color; this.tile = tile; sprite = new Sp...
public GdxImage (GdxRenderer renderer, Texture texture, int srcX, int srcY, int srcWidth, int srcHeight, Color color, boolean tile) { this.renderer = renderer; width = Math.abs(srcWidth); height = Math.abs(srcHeight); this.tintColor = color == null ? Color.WHITE : color; this.tile = tile; sprite = new Sp...
public void draw (SpriteBatch spriteBatch) { spriteBatch.draw(font.getSprite().getTexture(), vertices, 0, idx); }
public void draw (SpriteBatch spriteBatch) { spriteBatch.draw(font.getTextureRegion().getTexture(), vertices, 0, idx); }
public boolean touchDown (int x, int y, int pointer) { renderMode = (renderMode + 1) % 2; return false; } }); spriteBatch = new SpriteBatch(); spriteBatch.setProjectionMatrix(new Matrix4().setToOrtho(0, Gdx.graphics.getWidth(), Gdx.graphics.getHeight(), 0, 0, 1)); logoSprite = new Sprite(Gdx.gra...
public boolean touchDown (int x, int y, int pointer) { renderMode = (renderMode + 1) % 2; return false; } }); spriteBatch = new SpriteBatch(); spriteBatch.setProjectionMatrix(new Matrix4().setToOrtho(0, Gdx.graphics.getWidth(), Gdx.graphics.getHeight(), 0, 0, 1)); logoSprite = new Sprite(Gdx.gra...
public void create () { Sprite sprite = new Sprite(Gdx.graphics.newTexture(Gdx.files.internal("data/badlogicsmall.jpg"), Linear, Linear, ClampToEdge, ClampToEdge)); sprite.setSize(tileSize, tileSize); cache = new SpriteCache(1000, false); for (int y = 0; y < tileMapHeight; y++) { cache.beginCache(); ...
public void create () { Sprite sprite = new Sprite(Gdx.graphics.newTexture(Gdx.files.internal("data/badlogicsmall.jpg"), Linear, Linear, ClampToEdge, ClampToEdge)); sprite.setSize(tileSize, tileSize); cache = new SpriteCache(1000, false); for (int y = 0; y < tileMapHeight; y++) { cache.beginCache(); ...
protected void update(final int position, final RecentRepositoryItemView view, final Repository repository) { view.recentLabel.setVisibility(recent.get().contains(repository.getId()) ? VISIBLE : GONE); StyledText name = new StyledText(); if (!account.get().getLogin().equals(repository.getOw...
protected void update(final int position, final RecentRepositoryItemView view, final Repository repository) { view.recentLabel.setVisibility(recent.get().contains(repository.getId()) ? VISIBLE : GONE); StyledText name = new StyledText(); if (!account.get().getLogin().equals(repository.getOw...
protected void update(final int position, final RepositoryItemView view, final Repository repository) { StyledText name = new StyledText(); if (!login.equals(repository.getOwner().getLogin())) { int prefixColor = view.repoName.getResources().getColor(color.repo_description); ...
protected void update(final int position, final RepositoryItemView view, final Repository repository) { StyledText name = new StyledText(); if (!login.equals(repository.getOwner().getLogin())) { int prefixColor = view.repoName.getResources().getColor(color.text_description_selector); ...
public ShardIterator preferLocalShardsIt(String nodeId) { ArrayList<ShardRouting> ordered = new ArrayList<ShardRouting>(this.shards.size()); // fill it in a randomized fashion int index = counter.getAndIncrement(); for (int i = 0; i < this.shards.size(); i++) { int loc = ...
public ShardIterator preferLocalShardsIt(String nodeId) { ArrayList<ShardRouting> ordered = new ArrayList<ShardRouting>(this.shards.size()); // fill it in a randomized fashion int index = Math.abs(counter.getAndIncrement()); for (int i = 0; i < this.shards.size(); i++) { ...
protected void shardOperationOnReplica(ReplicaOperationRequest shardRequest) { ShardDeleteByQueryRequest request = shardRequest.request; IndexService indexService = indicesService.indexServiceSafe(shardRequest.request.index()); IndexShard indexShard = indexService.shardSafe(shardRequest.shar...
protected void shardOperationOnReplica(ReplicaOperationRequest shardRequest) { ShardDeleteByQueryRequest request = shardRequest.request; IndexService indexService = indicesService.indexServiceSafe(shardRequest.request.index()); IndexShard indexShard = indexService.shardSafe(shardRequest.shar...
private void loadQueries(IndexShard shard) { try { shard.refresh(new Engine.Refresh("percolator_load_queries").force(true)); Engine.Searcher searcher = shard.acquireSearcher("percolator_load_queries"); try { Query query = new XConst...
private void loadQueries(IndexShard shard) { try { shard.refresh(new Engine.Refresh("percolator_load_queries").force(true)); Engine.Searcher searcher = shard.acquireSearcher("percolator_load_queries"); try { Query query = new XConst...
public boolean reject(Thread t) { String threadName = t.getName(); if (threadName.contains("[" + MulticastChannel.SHARED_CHANNEL_NAME + "]") || threadName.contains("[" + ElasticsearchSingleNodeTest.nodeName() + "]") || threadName.contains("Keep-Alive-Timer")) { ...
public boolean reject(Thread t) { String threadName = t.getName(); if (threadName.contains("[" + MulticastChannel.SHARED_CHANNEL_NAME + "]") || threadName.contains("[" + ElasticsearchSingleNodeTest.nodeName() + "]") || threadName.contains("Keep-Alive-Timer")) { ...
public void onDialogResult(int requestCode, int resultCode, Bundle arguments) { if (RESULT_OK != resultCode) return; switch (requestCode) { case ISSUE_MILESTONE_UPDATE: milestoneTask.edit(arguments.getString(SingleChoiceDialogFragment.ARG_SELECTED)); brea...
public void onDialogResult(int requestCode, int resultCode, Bundle arguments) { if (RESULT_OK != resultCode) return; switch (requestCode) { case ISSUE_MILESTONE_UPDATE: milestoneTask.edit(arguments.getString(SingleChoiceDialogFragment.ARG_SELECTED)); brea...
public InternalAggregation reduce(ReduceContext reduceContext) { List<InternalAggregation> aggregations = reduceContext.aggregations(); long docCount = 0L; List<InternalAggregations> subAggregationsList = new ArrayList<>(aggregations.size()); for (InternalAggregation aggregation : ag...
public InternalAggregation reduce(ReduceContext reduceContext) { List<InternalAggregation> aggregations = reduceContext.aggregations(); long docCount = 0L; List<InternalAggregations> subAggregationsList = new ArrayList<>(aggregations.size()); for (InternalAggregation aggregation : ag...
@Override public byte[] get(String type, String id) throws ElasticSearchException { readAllowed(); DocumentMapper docMapper = mapperService.type(type); if (docMapper == null) { throw new DocumentMapperNotFoundException("No mapper found for type [" + type + "]"); } ...
@Override public byte[] get(String type, String id) throws ElasticSearchException { readAllowed(); DocumentMapper docMapper = mapperService.type(type); if (docMapper == null) { throw new DocumentMapperNotFoundException("No mapper found for type [" + type + "]"); } ...
public SizeFieldMapper(EnabledAttributeMapper enabled, FieldType fieldType, PostingsFormatProvider postingsProvider, DocValuesFormatProvider docValuesProvider, @Nullable Settings fieldDataSettings, Settings indexSettings) { super(new Names(Defaults.NAME), Defaults.PRECISION_STEP, ...
public SizeFieldMapper(EnabledAttributeMapper enabled, FieldType fieldType, PostingsFormatProvider postingsProvider, DocValuesFormatProvider docValuesProvider, @Nullable Settings fieldDataSettings, Settings indexSettings) { super(new Names(Defaults.NAME), Defaults.PRECISION_STEP, ...
private void addMoreLikeThis(MoreLikeThisRequest request, BoolQueryBuilder boolBuilder, String fieldName, String likeText, boolean failOnUnsupportedField) { MoreLikeThisFieldQueryBuilder mlt = moreLikeThisFieldQuery(fieldName) .likeText(likeText) .percentTermsToMatch(request....
private void addMoreLikeThis(MoreLikeThisRequest request, BoolQueryBuilder boolBuilder, String fieldName, String likeText, boolean failOnUnsupportedField) { MoreLikeThisFieldQueryBuilder mlt = moreLikeThisFieldQuery(fieldName) .likeText(likeText) .minimumShouldMatch(request.m...
public void handleRequest(final RestRequest request, final RestChannel channel, final Client client) { MoreLikeThisRequest mltRequest = moreLikeThisRequest(request.param("index")).type(request.param("type")).id(request.param("id")); mltRequest.routing(request.param("routing")); mltRequest.l...
public void handleRequest(final RestRequest request, final RestChannel channel, final Client client) { MoreLikeThisRequest mltRequest = moreLikeThisRequest(request.param("index")).type(request.param("type")).id(request.param("id")); mltRequest.routing(request.param("routing")); mltRequest.l...
public void testMLTPercentTermsToMatch() throws Exception { // setup for mocking fetching items MoreLikeThisQueryParser parser = (MoreLikeThisQueryParser) queryParser.queryParser("more_like_this"); parser.setFetchService(new MockMoreLikeThisFetchService()); // parsing the ES query ...
public void testMLTPercentTermsToMatch() throws Exception { // setup for mocking fetching items MoreLikeThisQueryParser parser = (MoreLikeThisQueryParser) queryParser.queryParser("more_like_this"); parser.setFetchService(new MockMoreLikeThisFetchService()); // parsing the ES query ...
public SizeFieldMapper(boolean enabled, Field.Store store) { super(new Names(Defaults.NAME), Defaults.PRECISION_STEP, Defaults.FUZZY_FACTOR, Defaults.INDEX, store, Defaults.BOOST, Defaults.OMIT_NORMS, Defaults.OMIT_TERM_FREQ_AND_POSITIONS, Defaults.NULL_VALUE, Defaults.IGNORE...
public SizeFieldMapper(boolean enabled, Field.Store store) { super(new Names(Defaults.NAME), Defaults.PRECISION_STEP, Defaults.FUZZY_FACTOR, Defaults.INDEX, store, Defaults.BOOST, Defaults.OMIT_NORMS, Defaults.INDEX_OPTIONS, Defaults.NULL_VALUE, Defaults.IGNORE_MALFORMED); ...
@Override public void run() { indexShard.recovering(); StopWatch throttlingWaitTime = new StopWatch().start(); // we know we are on a thread, we can spin till we can engage in recovery while (!recoveryThrottler.tryRecovery(shardId, "gateway")...
@Override public void run() { indexShard.recovering(); StopWatch throttlingWaitTime = new StopWatch().start(); // we know we are on a thread, we can spin till we can engage in recovery while (!recoveryThrottler.tryRecovery(shardId, "gateway")...
public void refresh(List<AtomicReaderContext> atomicReaderContexts) throws Exception { // 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 Exception { // do a quick check for the common case, that all are there if (refreshNeeded(atomicReaderContexts)) { synchronized (idReaders) { if (!refreshNeeded(atomicReaderContexts)) { ...
@Inject public ConcurrentMergeSchedulerProvider(ShardId shardId, @IndexSettings Settings indexSettings) { super(shardId, indexSettings); // TODO LUCENE MONITOR this will change in Lucene 4.0 this.maxThreadCount = componentSettings.getAsInt("max_thread_count", 1); logger.debug("using...
@Inject public ConcurrentMergeSchedulerProvider(ShardId shardId, @IndexSettings Settings indexSettings) { super(shardId, indexSettings); // TODO LUCENE MONITOR this will change in Lucene 4.0 this.maxThreadCount = componentSettings.getAsInt("max_thread_count", Math.max(1, Math.min(3, Runtime...
public static void main(String[] args) throws Exception { new NativeCodeGenerator().generate("src", "bin", "jni", new String[] { "**/AudioTools.java", "**/KissFFT.java", "**/VorbisDecoder.java" }, new String[] { "**/Mpg123Decoder.java" }); String[] headerDirs = new String[] { "kissff...
public static void main(String[] args) throws Exception { new NativeCodeGenerator().generate("src", "bin", "jni", new String[] { "**/AudioTools.java", "**/KissFFT.java", "**/VorbisDecoder.java" }, new String[] { "**/Mpg123Decoder.java" }); String[] headerDirs = new String[] { "kissff...
protected PrimaryResponse<BulkShardResponse, BulkShardRequest> shardOperationOnPrimary(ClusterState clusterState, PrimaryOperationRequest shardRequest) { final BulkShardRequest request = shardRequest.request; IndexService indexService = indicesService.indexServiceSafe(shardRequest.request.index()); ...
protected PrimaryResponse<BulkShardResponse, BulkShardRequest> shardOperationOnPrimary(ClusterState clusterState, PrimaryOperationRequest shardRequest) { final BulkShardRequest request = shardRequest.request; IndexService indexService = indicesService.indexServiceSafe(shardRequest.request.index()); ...
@Test public void testClusterFilters() { AllocationService strategy = new AllocationService(settingsBuilder() .put("cluster.routing.allocation.include.tag1", "value1,value2") .put("cluster.routing.allocation.exclude.tag1", "value3,value4") .build()); ...
@Test public void testClusterFilters() { AllocationService strategy = new AllocationService(settingsBuilder() .put("cluster.routing.allocation.include.tag1", "value1,value2") .put("cluster.routing.allocation.exclude.tag1", "value3,value4") .build()); ...
public int computeVisibleGlpyhs (CharSequence str, int start, int end, int width) { return bitmapFont.computeVisibleGlpyhs(str, start, end, width); }
public int computeVisibleGlpyhs (CharSequence str, int start, int end, int width) { return bitmapFont.computeVisibleGlyphs(str, start, end, width); }
public TextBounds setWrappedText (CharSequence str, float x, float y, float wrapWidth, HAlignment alignment) { BitmapFont font = this.font; int length = str.length(); reset(length); y += font.ascent; float down = font.down; int maxWidth = 0; int start = 0; int numLines = 0; while (start < length) ...
public TextBounds setWrappedText (CharSequence str, float x, float y, float wrapWidth, HAlignment alignment) { BitmapFont font = this.font; int length = str.length(); reset(length); y += font.ascent; float down = font.down; int maxWidth = 0; int start = 0; int numLines = 0; while (start < length) ...
protected UserPagerAdapter createAdapter() { return new UserPagerAdapter(getSupportFragmentManager(), getResources()); }
protected UserPagerAdapter createAdapter() { return new UserPagerAdapter(this); }
public void testFacetNumeric() throws ElasticsearchException, IOException { assertAcked(prepareCreate("test").addMapping("type", jsonBuilder().startObject().startObject("type").startObject("properties") .startObject("byte").field("type", "byte").startObject("fielddata").field("format", maybe...
public void testFacetNumeric() throws ElasticsearchException, IOException { assertAcked(prepareCreate("test").addMapping("type", jsonBuilder().startObject().startObject("type").startObject("properties") .startObject("byte").field("type", "byte").startObject("fielddata").field("format", maybe...
private void addCommitDetails(RepositoryCommit commit) { adapter.addHeader(commitHeader); commitMessage.setText(commit.getCommit().getMessage()); String commitAuthor = CommitUtils.getAuthor(commit); String commitCommitter = CommitUtils.getCommitter(commit); if (commitAutho...
private void addCommitDetails(RepositoryCommit commit) { adapter.addHeader(commitHeader); commitMessage.setText(commit.getCommit().getMessage()); String commitAuthor = CommitUtils.getAuthor(commit); String commitCommitter = CommitUtils.getCommitter(commit); if (commitAutho...
public static boolean safeClose(IndexWriter writer) { if (writer == null) { return true; } try { writer.close(); return true; } catch (IOException e) { return false; } }
public static boolean safeClose(IndexWriter writer) { if (writer == null) { return true; } try { writer.close(); return true; } catch (Throwable e) { return false; } }
protected IOSApplication createApplication() { IOSApplicationConfiguration config = new IOSApplicationConfiguration(); config.useAccelerometer = false; return new IOSApplication(new Box2DTestCollection(), config); }
protected IOSApplication createApplication() { IOSApplicationConfiguration config = new IOSApplicationConfiguration(); config.useAccelerometer = false; return new IOSApplication(new DownloadTest(), config); }
public boolean allocateUnassigned(RoutingNodes routingNodes, DiscoveryNodes nodes) { boolean changed = false; if (nodes.dataNodes().isEmpty()) { return changed; } Iterator<MutableShardRouting> unassignedIterator = routingNodes.unassigned().iterator(); while (una...
public boolean allocateUnassigned(RoutingNodes routingNodes, DiscoveryNodes nodes) { boolean changed = false; if (nodes.dataNodes().isEmpty()) { return changed; } Iterator<MutableShardRouting> unassignedIterator = routingNodes.unassigned().iterator(); while (una...
public static boolean parseDirectSpellcheckerSettings(XContentParser parser, String fieldName, DirectSpellcheckerSettings suggestion) throws IOException { if ("accuracy".equals(fieldName)) { suggestion.accuracy(parser.floatValue()); } else if ("suggest_mode".e...
public static boolean parseDirectSpellcheckerSettings(XContentParser parser, String fieldName, DirectSpellcheckerSettings suggestion) throws IOException { if ("accuracy".equals(fieldName)) { suggestion.accuracy(parser.floatValue()); } else if ("suggest_mode".e...
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException { builder.startObject(); if (field != null) { builder.field("field", field); } if (suggestMode != null) { builder.field("suggest_mode", sug...
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException { builder.startObject(); if (field != null) { builder.field("field", field); } if (suggestMode != null) { builder.field("suggest_mode", sug...
public XContentBuilder innerToXContent(XContentBuilder builder, Params params) throws IOException { if (suggestMode != null) { builder.field("suggest_mode", suggestMode); } if (accuracy != null) { builder.field("accuracy", accuracy); } if (sort != null...
public XContentBuilder innerToXContent(XContentBuilder builder, Params params) throws IOException { if (suggestMode != null) { builder.field("suggest_mode", suggestMode); } if (accuracy != null) { builder.field("accuracy", accuracy); } if (sort != null...
public static final List<Class<? extends GdxTest>> tests = new ArrayList<Class<? extends GdxTest>>(Arrays.asList( AnimationTest.class, AccelerometerTest.class, ActionTest.class, ActionSequenceTest.class, GroupTest.class, AlphaTest.class, AtlasIssueTest.class, AssetManagerTest.class, FilterPerformanceTest.class, ...
public static final List<Class<? extends GdxTest>> tests = new ArrayList<Class<? extends GdxTest>>(Arrays.asList( AnimationTest.class, AccelerometerTest.class, ActionTest.class, ActionSequenceTest.class, GroupTest.class, AlphaTest.class, AtlasIssueTest.class, AssetManagerTest.class, FilterPerformanceTest.class, ...
public boolean apply(Object input) { PendingClusterTasksResponse pendingTasks = client().admin().cluster().preparePendingClusterTasks().get(); return pendingTasks.pendingTasks().isEmpty(); } }); logger.info("checking all the documents are there");...
public boolean apply(Object input) { PendingClusterTasksResponse pendingTasks = client().admin().cluster().preparePendingClusterTasks().get(); return pendingTasks.pendingTasks().isEmpty(); } }); logger.info("checking all the documents are there");...
public static void main( String[] argv ) { JoglApplication app = new JoglApplication( "Debug Test", 480, 320, false ); app.getGraphics().setRenderListener( new com.badlogic.gdx.tests.SoundTest() ); }
public static void main( String[] argv ) { JoglApplication app = new JoglApplication( "Debug Test", 480, 320, false ); app.getGraphics().setRenderListener( new com.badlogic.gdx.tests.VertexBufferObjectClassTest() ); }
protected PrimaryResponse<DeleteResponse, DeleteRequest> shardOperationOnPrimary(ClusterState clusterState, PrimaryOperationRequest shardRequest) { DeleteRequest request = shardRequest.request; IndexShard indexShard = indicesService.indexServiceSafe(shardRequest.request.index()).shardSafe(shardReque...
protected PrimaryResponse<DeleteResponse, DeleteRequest> shardOperationOnPrimary(ClusterState clusterState, PrimaryOperationRequest shardRequest) { DeleteRequest request = shardRequest.request; IndexShard indexShard = indicesService.indexServiceSafe(shardRequest.request.index()).shardSafe(shardReque...
protected void shardOperationOnReplica(ReplicaOperationRequest shardRequest) { ShardDeleteRequest request = shardRequest.request; IndexShard indexShard = indicesService.indexServiceSafe(shardRequest.request.index()).shardSafe(shardRequest.shardId); Engine.Delete delete = indexShard.prepareDe...
protected void shardOperationOnReplica(ReplicaOperationRequest shardRequest) { ShardDeleteRequest request = shardRequest.request; IndexShard indexShard = indicesService.indexServiceSafe(shardRequest.request.index()).shardSafe(shardRequest.shardId); Engine.Delete delete = indexShard.prepareDe...
protected PrimaryResponse<IndexResponse, IndexRequest> shardOperationOnPrimary(ClusterState clusterState, PrimaryOperationRequest shardRequest) { final IndexRequest request = shardRequest.request; // validate, if routing is required, that we got routing IndexMetaData indexMetaData = cluster...
protected PrimaryResponse<IndexResponse, IndexRequest> shardOperationOnPrimary(ClusterState clusterState, PrimaryOperationRequest shardRequest) { final IndexRequest request = shardRequest.request; // validate, if routing is required, that we got routing IndexMetaData indexMetaData = cluster...
public SyncCampaign create(SyncResult syncResult); }
private static final String TAG = "SyncCampaign"; /** * Factory to create campaign */ public interface Factory { /** * Create campaign for result * * @param syncResult * @return campaign */ SyncCampaign create(SyncResult syncResult); ...
public void truncate (int newSize) { if (size <= newSize) return; for (int i = size; i < newSize; i++) items[i] = null; size = newSize; }
public void truncate (int newSize) { if (size <= newSize) return; for (int i = newSize; i < size; i++) items[i] = null; size = newSize; }
private static final ImmutableMap<String, PreBuiltDocValuesFormatProvider.Factory> builtInDocValuesFormats; static { MapBuilder<String, PreBuiltDocValuesFormatProvider.Factory> builtInDocValuesFormatsX = MapBuilder.newMapBuilder(); for (String name : DocValuesFormat.availableDocValuesFormats())...
private static final ImmutableMap<String, PreBuiltDocValuesFormatProvider.Factory> builtInDocValuesFormats; static { MapBuilder<String, PreBuiltDocValuesFormatProvider.Factory> builtInDocValuesFormatsX = MapBuilder.newMapBuilder(); for (String name : DocValuesFormat.availableDocValuesFormats())...
private static final ImmutableMap<String, PreBuiltPostingsFormatProvider.Factory> builtInPostingFormats; static { MapBuilder<String, PreBuiltPostingsFormatProvider.Factory> buildInPostingFormatsX = MapBuilder.newMapBuilder(); // add defaults ones for (String luceneName : PostingsFormat....
private static final ImmutableMap<String, PreBuiltPostingsFormatProvider.Factory> builtInPostingFormats; static { MapBuilder<String, PreBuiltPostingsFormatProvider.Factory> buildInPostingFormatsX = MapBuilder.newMapBuilder(); // add defaults ones for (String luceneName : PostingsFormat....
public RestStatus status() { return RestStatus.CONFLICT; }
public RestStatus status() { return RestStatus.INTERNAL_SERVER_ERROR; }
public void test2744() throws ElasticsearchException, IOException { assertAcked(prepareCreate("test") .addMapping("parent") .addMapping("test", "_parent", "type=foo")); ensureGreen(); // index simple data client().prepareIndex("test", "foo", "1").setS...
public void test2744() throws ElasticsearchException, IOException { assertAcked(prepareCreate("test") .addMapping("foo") .addMapping("test", "_parent", "type=foo")); ensureGreen(); // index simple data client().prepareIndex("test", "foo", "1").setSour...
public Gdx2DPixmap(InputStream in, int requestedFormat) throws IOException { ByteArrayOutputStream bytes = new ByteArrayOutputStream(); byte[] buffer = new byte[1024]; int readBytes = 0; while((readBytes = in.read(buffer)) != -1) { bytes.write(buffer); } buffer = bytes.toByteArray(); pixelPtr = ...
public Gdx2DPixmap(InputStream in, int requestedFormat) throws IOException { ByteArrayOutputStream bytes = new ByteArrayOutputStream(); byte[] buffer = new byte[1024]; int readBytes = 0; while((readBytes = in.read(buffer)) != -1) { bytes.write(buffer, 0, readBytes); } buffer = bytes.toByteArray();...
protected ValidateQueryResponse newResponse(ValidateQueryRequest request, AtomicReferenceArray shardsResponses, ClusterState clusterState) { int successfulShards = 0; int failedShards = 0; boolean valid = true; List<ShardOperationFailedException> shardFailures = null; List<Qu...
protected ValidateQueryResponse newResponse(ValidateQueryRequest request, AtomicReferenceArray shardsResponses, ClusterState clusterState) { int successfulShards = 0; int failedShards = 0; boolean valid = true; List<ShardOperationFailedException> shardFailures = null; List<Qu...
protected CountResponse newResponse(CountRequest request, AtomicReferenceArray shardsResponses, ClusterState clusterState) { int successfulShards = 0; int failedShards = 0; long count = 0; List<ShardOperationFailedException> shardFailures = null; for (int i = 0; i < shardsRes...
protected CountResponse newResponse(CountRequest request, AtomicReferenceArray shardsResponses, ClusterState clusterState) { int successfulShards = 0; int failedShards = 0; long count = 0; List<ShardOperationFailedException> shardFailures = null; for (int i = 0; i < shardsRes...
protected PercolateResponse newResponse(PercolateRequest request, AtomicReferenceArray shardsResponses, ClusterState clusterState) { int successfulShards = 0; int failedShards = 0; List<PercolateShardResponse> shardResults = null; List<ShardOperationFailedException> shardFailures = ...
protected PercolateResponse newResponse(PercolateRequest request, AtomicReferenceArray shardsResponses, ClusterState clusterState) { int successfulShards = 0; int failedShards = 0; List<PercolateShardResponse> shardResults = null; List<ShardOperationFailedException> shardFailures = ...
protected SuggestResponse newResponse(SuggestRequest request, AtomicReferenceArray shardsResponses, ClusterState clusterState) { int successfulShards = 0; int failedShards = 0; final Map<String, List<Suggest.Suggestion>> groupedSuggestions = new HashMap<String, List<Suggest.Suggestion>>(); ...
protected SuggestResponse newResponse(SuggestRequest request, AtomicReferenceArray shardsResponses, ClusterState clusterState) { int successfulShards = 0; int failedShards = 0; final Map<String, List<Suggest.Suggestion>> groupedSuggestions = new HashMap<String, List<Suggest.Suggestion>>(); ...