buggy_function stringlengths 1 391k | fixed_function stringlengths 0 392k |
|---|---|
AbortBenchmarkRequestBuilder prepareAbortBench(String... benchmarkNames);
/*
* Licensed to Elasticsearch 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
* ... | AbortBenchmarkRequestBuilder prepareAbortBench(String... benchmarkNames);
/*
* Licensed to Elasticsearch 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
* ... |
public void hideList () {
if (list.getParent() == null) return;
getStage().removeCaptureListener(list.stageListener);
list.addAction(sequence(fadeOut(0.15f, Interpolation.fade), removeActor()));
}
| public void hideList () {
if (list == null || list.getParent() == null) return;
getStage().removeCaptureListener(list.stageListener);
list.addAction(sequence(fadeOut(0.15f, Interpolation.fade), removeActor()));
}
|
public BulkRequest add(byte[] data, int from, int length, boolean contentUnsafe, @Nullable String defaultIndex, @Nullable String defaultType) throws Exception {
XContent xContent = XContentFactory.xContent(data, from, length);
byte marker = xContent.streamSeparator();
while (true) {
... | public BulkRequest add(byte[] data, int from, int length, boolean contentUnsafe, @Nullable String defaultIndex, @Nullable String defaultType) throws Exception {
XContent xContent = XContentFactory.xContent(data, from, length);
byte marker = xContent.streamSeparator();
while (true) {
... |
public static final Class[] tests = {
AnimationTest.class,
AccelerometerTest.class,
ActionTest.class,
ActionSequenceTest.class,
AlphaTest.class,
AtlasIssueTest.class,
FilterPerformanceTest.class,
AudioDeviceTest.class,
AudioRecorderTest.class,
BitmapFontAlignmentTest.class,
BitmapFontFl... | public static final Class[] tests = {
AnimationTest.class,
AccelerometerTest.class,
ActionTest.class,
ActionSequenceTest.class,
AlphaTest.class,
AtlasIssueTest.class,
FilterPerformanceTest.class,
AudioDeviceTest.class,
AudioRecorderTest.class,
BitmapFontAlignmentTest.class,
BitmapFontFl... |
@Override protected void doJson(JsonBuilder builder, Params params) throws IOException {
builder.startObject("bool");
for (Clause clause : clauses) {
if (clause.occur == BooleanClause.Occur.MUST) {
builder.field("must");
clause.queryBuilder.toJson(builder,... | @Override protected void doJson(JsonBuilder builder, Params params) throws IOException {
builder.startObject("bool");
for (Clause clause : clauses) {
if (clause.occur == BooleanClause.Occur.MUST) {
builder.field("must");
clause.queryBuilder.toJson(builder,... |
public void processResults(TopDocs topDocs, SearchContext context) {
Map<Object, TIntObjectHashMap<ParentDoc>> parentDocsPerReader = new HashMap<Object, TIntObjectHashMap<ParentDoc>>();
for (ScoreDoc scoreDoc : topDocs.scoreDocs) {
int readerIndex = ReaderUtil.subIndex(scoreDoc.doc, cont... | public void processResults(TopDocs topDocs, SearchContext context) {
Map<Object, TIntObjectHashMap<ParentDoc>> parentDocsPerReader = new HashMap<Object, TIntObjectHashMap<ParentDoc>>();
for (ScoreDoc scoreDoc : topDocs.scoreDocs) {
int readerIndex = ReaderUtil.subIndex(scoreDoc.doc, cont... |
@Override protected void render (SpriteBatch batch) {
updateTransform();
tmp4.set(scenetransform);
if (debug && debugTexture != null && parent != null)
batch.draw(debugTexture, x, y, originX, originY, width == 0 ? 200 : width, height == 0 ? 200 : height, scaleX, scaleY,
rotation, 0, 0, debugTexture.getWi... | @Override protected void render (SpriteBatch batch) {
updateTransform();
tmp4.set(scenetransform);
if (debug && debugTexture != null && parent != null)
batch.draw(debugTexture, x, y, originX, originY, width == 0 ? 200 : width, height == 0 ? 200 : height, scaleX, scaleY,
rotation, 0, 0, debugTexture.getWi... |
@Override public void render () {
Gdx.graphics.getGL10().glClear(GL10.GL_COLOR_BUFFER_BIT);
batch.begin();
batch.draw(texture, 0, 0, 256, 256, 0, 0, 256, 256, Color.WHITE, false, false);
batch.end();
}
| @Override public void render () {
Gdx.graphics.getGL10().glClear(GL10.GL_COLOR_BUFFER_BIT);
batch.begin();
batch.draw(texture, 0, 0, 256, 256, 0, 0, 256, 256, false, false);
batch.end();
}
|
@Override public void render () {
frameBuffer.begin();
Gdx.graphics.getGL20().glViewport(0, 0, frameBuffer.getWidth(), frameBuffer.getHeight());
Gdx.graphics.getGL20().glClearColor(0f, 1f, 0f, 1);
Gdx.graphics.getGL20().glClear(GL20.GL_COLOR_BUFFER_BIT);
Gdx.graphics.getGL20().glEnable(GL20.GL_TEXTURE_2D);
... | @Override public void render () {
frameBuffer.begin();
Gdx.graphics.getGL20().glViewport(0, 0, frameBuffer.getWidth(), frameBuffer.getHeight());
Gdx.graphics.getGL20().glClearColor(0f, 1f, 0f, 1);
Gdx.graphics.getGL20().glClear(GL20.GL_COLOR_BUFFER_BIT);
Gdx.graphics.getGL20().glEnable(GL20.GL_TEXTURE_2D);
... |
public void render() {
Gdx.gl10.glClear(GL10.GL_COLOR_BUFFER_BIT);
batch.begin();
float width = (int)(Gdx.graphics.getPpcX() * 2);
float height = (int)(Gdx.graphics.getPpcY() * 1);
batch.draw(texture, 10, 100, width, height, 0, 0, 64, 32, Color.WHITE, false, false );
font.draw(batch, "button is 2x1 cm (... | public void render() {
Gdx.gl10.glClear(GL10.GL_COLOR_BUFFER_BIT);
batch.begin();
float width = (int)(Gdx.graphics.getPpcX() * 2);
float height = (int)(Gdx.graphics.getPpcY() * 1);
batch.draw(texture, 10, 100, width, height, 0, 0, 64, 32, false, false );
font.draw(batch, "button is 2x1 cm (" + width + "... |
@Override public FieldSelectorResult accept(String fieldName) {
if (name.equals(fieldName)) {
return FieldSelectorResult.LOAD_AND_BREAK;
}
return FieldSelectorResult.NO_LOAD;
}
| @Override public FieldSelectorResult accept(String fieldName) {
if (name.equals(fieldName)) {
return FieldSelectorResult.LOAD;
}
return FieldSelectorResult.NO_LOAD;
}
|
public InternalAggregation buildEmptyAggregation() {
return new StringTerms(name, order, bucketCountThresholds.getRequiredSize(), bucketCountThresholds.getShardSize(), bucketCountThresholds.getMinDocCount(), Collections.<InternalTerms.Bucket>emptyList(), showTermDocCountError, 0);
}
| public InternalAggregation buildEmptyAggregation() {
return new StringTerms(name, order, bucketCountThresholds.getRequiredSize(), bucketCountThresholds.getShardSize(), bucketCountThresholds.getMinDocCount(), Collections.<InternalTerms.Bucket>emptyList(), showTermDocCountError, 0, 0);
}
|
private static DoubleTerms convertToDouble(LongTerms terms) {
final InternalTerms.Bucket[] buckets = terms.getBuckets().toArray(new InternalTerms.Bucket[0]);
for (int i = 0; i < buckets.length; ++i) {
buckets[i] = convertToDouble(buckets[i]);
}
return new DoubleTerms(term... | private static DoubleTerms convertToDouble(LongTerms terms) {
final InternalTerms.Bucket[] buckets = terms.getBuckets().toArray(new InternalTerms.Bucket[0]);
for (int i = 0; i < buckets.length; ++i) {
buckets[i] = convertToDouble(buckets[i]);
}
return new DoubleTerms(term... |
@Inject public FsTranslog(ShardId shardId, @IndexSettings Settings indexSettings, NodeEnvironment nodeEnv) {
super(shardId, indexSettings);
this.location = new File(new File(new File(new File(nodeEnv.nodeDataLocation(), "indices"), shardId.index().name()), Integer.toString(shardId.id())), "translog"... | @Inject public FsTranslog(ShardId shardId, @IndexSettings Settings indexSettings, NodeEnvironment nodeEnv) {
super(shardId, indexSettings);
this.location = new File(nodeEnv.shardLocation(shardId), "translog");
this.location.mkdirs();
this.useStream = componentSettings.getAsBoolean("u... |
private StoreFilesMetaData listStoreMetaData(ShardId shardId) throws IOException {
IndexService indexService = indicesService.indexService(shardId.index().name());
if (indexService != null) {
InternalIndexShard indexShard = (InternalIndexShard) indexService.shard(shardId.id());
... | private StoreFilesMetaData listStoreMetaData(ShardId shardId) throws IOException {
IndexService indexService = indicesService.indexService(shardId.index().name());
if (indexService != null) {
InternalIndexShard indexShard = (InternalIndexShard) indexService.shard(shardId.id());
... |
private void configurePager() {
ActionBar actionBar = getSupportActionBar();
actionBar.setDisplayHomeAsUpEnabled(true);
User author = gist.getUser();
if (author != null) {
actionBar.setSubtitle(author.getLogin());
avatars.bind(actionBar, author);
} els... | private void configurePager() {
ActionBar actionBar = getSupportActionBar();
actionBar.setDisplayHomeAsUpEnabled(true);
User author = gist.getUser();
if (author != null) {
actionBar.setSubtitle(author.getLogin());
avatars.bind(actionBar, author);
} els... |
public void act () {
act(Gdx.graphics.getDeltaTime());
}
| public void act () {
act(Math.min(Gdx.graphics.getDeltaTime(), 1 / 30f));
}
|
public void testNgramHighlighting() throws ElasticSearchException, IOException {
client().admin().indices().prepareCreate("test")
.addMapping("test", jsonBuilder()
.startObject()
.startObject("test")
.startObject("properties")
... | public void testNgramHighlighting() throws ElasticSearchException, IOException {
client().admin().indices().prepareCreate("test")
.addMapping("test", jsonBuilder()
.startObject()
.startObject("test")
.startObject("properties")
... |
public SearchRepositoryListAdapter(LayoutInflater inflater, SearchRepository[] elements) {
super(layout.repo_search_item, inflater, elements);
}
| public SearchRepositoryListAdapter(LayoutInflater inflater, SearchRepository[] elements) {
super(layout.user_repo_item, inflater, elements);
}
|
public static void main(String[] args) throws Exception {
new NativeCodeGenerator().generate("src", "bin", "jni",
new String[] { "**/AudioTools.java", "**/KissFFT.java", "**/VorbisDecoder.java", "**/SoundTouch.java" },
new String[] { "**/Mpg123Decoder.java" });
String[] headerDirs = ... | public static void main(String[] args) throws Exception {
new NativeCodeGenerator().generate("src", "bin", "jni",
new String[] { "**/AudioTools.java", "**/KissFFT.java", "**/VorbisDecoder.java", "**/SoundTouch.java" },
new String[] { "**/Mpg123Decoder.java" });
String[] headerDirs = ... |
public int compare(TextFragment o1, TextFragment o2) {
return Math.round(o2.getScore() - o1.getScore());
}
});
}
String[] fragments = null;
// numbe... | public int compare(TextFragment o1, TextFragment o2) {
return Math.round(o2.getScore() - o1.getScore());
}
});
}
String[] fragments = null;
// numbe... |
private void loadState() throws Exception {
MetaData.Builder metaDataBuilder = MetaData.builder();
MetaData globalMetaData = loadGlobalState();
if (globalMetaData != null) {
metaDataBuilder.metaData(globalMetaData);
}
Set<String> indices = nodeEnv.finalAllIndices... | private void loadState() throws Exception {
MetaData.Builder metaDataBuilder = MetaData.builder();
MetaData globalMetaData = loadGlobalState();
if (globalMetaData != null) {
metaDataBuilder.metaData(globalMetaData);
}
Set<String> indices = nodeEnv.findAllIndices(... |
protected String executor() {
return ThreadPool.Names.CACHE;
}
| protected String executor() {
return ThreadPool.Names.GENERIC;
}
|
public ConnectTransportException(DiscoveryNode node, String msg, String action, Throwable cause) {
super(node.name(), node.address(), action, cause);
this.node = node;
}
| public ConnectTransportException(DiscoveryNode node, String msg, String action, Throwable cause) {
super(node.name(), node.address(), action, msg, cause);
this.node = node;
}
|
public static void load () {
try {
FileHandle filehandle = Gdx.files.external(file);
String[] strings = filehandle.readString().split("\n");
soundEnabled = Boolean.parseBoolean(strings[0];
for (int i = 0; i < 5; i++) {
highscores[i] = Integer.parseInt(strings[i+1];
}
} catch (Throwable e... | public static void load () {
try {
FileHandle filehandle = Gdx.files.external(file);
String[] strings = filehandle.readString().split("\n");
soundEnabled = Boolean.parseBoolean(strings[0];
for (int i = 0; i < 5; i++) {
highscores[i] = Integer.parseInt(strings[i+1]);
}
} catch (Throwable ... |
protected void loadTileSet(TiledMap map, Element element, FileHandle tmxFile, ImageResolver imageResolver) {
if (element.getName().equals("tileset")) {
String name = element.get("name", null);
int firstgid = element.getIntAttribute("firstgid", 1);
int tilewidth = element.getIntAttribute("tilewidth", 0);
... | protected void loadTileSet(TiledMap map, Element element, FileHandle tmxFile, ImageResolver imageResolver) {
if (element.getName().equals("tileset")) {
String name = element.get("name", null);
int firstgid = element.getIntAttribute("firstgid", 1);
int tilewidth = element.getIntAttribute("tilewidth", 0);
... |
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 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... |
@Override public void create () {
if (spriteBatch != null) return;
spriteBatch = new SpriteBatch();
Matrix4 transform = new Matrix4();
transform.setToTranslation(0, Gdx.graphics.getHeight(), 0);
transform.mul(new Matrix4().setToScaling(1, -1, 1));
spriteBatch.setTransformMatrix(transform);
pixS1 = Gdx.... | @Override public void create () {
if (spriteBatch != null) return;
spriteBatch = new SpriteBatch();
Matrix4 transform = new Matrix4();
transform.setToTranslation(0, Gdx.graphics.getHeight(), 0);
transform.mul(new Matrix4().setToScaling(1, -1, 1));
spriteBatch.setTransformMatrix(transform);
pixS1 = Gdx.... |
public void create () {
batch = new SpriteBatch();
atlas = new TextureAtlas(Gdx.files.internal("data"));
badlogic = atlas.getSprite("badlogicslice");
badlogic.setPosition(50, 50);
badlogicSmall = atlas.getSprite("badlogicsmall");
badlogicSmall.setPosition(10, 10);
badlogicSmall.getRegion().flip(true, ... | public void create () {
batch = new SpriteBatch();
atlas = new TextureAtlas(Gdx.files.internal("data"));
badlogic = atlas.getSprite("badlogicslice");
badlogic.setPosition(50, 50);
badlogicSmall = atlas.getSprite("badlogicsmall");
badlogicSmall.setPosition(10, 10);
badlogicSmall.flip(true, true);
At... |
public void updateIndexingBufferSize(ByteSizeValue indexingBufferSize) {
ByteSizeValue preValue = this.indexingBufferSize;
try (InternalLock _ = readLock.acquire()) {
this.indexingBufferSize = indexingBufferSize;
IndexWriter indexWriter = this.indexWriter;
if (ind... | public void updateIndexingBufferSize(ByteSizeValue indexingBufferSize) {
ByteSizeValue preValue = this.indexingBufferSize;
try (InternalLock _ = readLock.acquire()) {
this.indexingBufferSize = indexingBufferSize;
IndexWriter indexWriter = this.indexWriter;
if (ind... |
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {
builder.startObject("highlight");
if (tagsSchema != null) {
builder.field("tags_schema", tagsSchema);
}
if (preTags != null) {
builder.array("pre_tags", preTags);
... | public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {
builder.startObject("highlight");
if (tagsSchema != null) {
builder.field("tags_schema", tagsSchema);
}
if (preTags != null) {
builder.array("pre_tags", preTags);
... |
public void updateViewFor(Issue issue) {
User assignee = issue.getAssignee();
if (assignee != null) {
assigneeText.setText(assignee.getLogin());
assigneeAvatar.setVisibility(VISIBLE);
avatarHelper.bind(assigneeAvatar, assignee);
} else {
assign... | public void updateViewFor(Issue issue) {
User assignee = issue.getAssignee();
if (assignee != null) {
assigneeText.setText(assignee.getLogin());
assigneeAvatar.setVisibility(VISIBLE);
avatarHelper.bind(assigneeAvatar, assignee);
} else {
assign... |
public void updateViewFor(Issue issue) {
titleText.setText(issue.getTitle());
String body = issue.getBodyHtml();
if (body != null && body.length() > 0)
bodyViewer.setHtml(body).getView().setVisibility(VISIBLE);
else
bodyViewer.getView().setVisibility(GONE);
... | public void updateViewFor(Issue issue) {
titleText.setText(issue.getTitle());
String body = issue.getBodyHtml();
if (body != null && body.length() > 0)
bodyViewer.setHtml(body).getView().setVisibility(VISIBLE);
else
bodyViewer.getView().setVisibility(GONE);
... |
public static PercolateResponse reduce(PercolateRequest request, AtomicReferenceArray shardsResponses, PercolatorService percolatorService) {
int successfulShards = 0;
int failedShards = 0;
List<PercolateShardResponse> shardResults = null;
List<ShardOperationFailedException> shardFa... | public static PercolateResponse reduce(PercolateRequest request, AtomicReferenceArray shardsResponses, PercolatorService percolatorService) {
int successfulShards = 0;
int failedShards = 0;
List<PercolateShardResponse> shardResults = null;
List<ShardOperationFailedException> shardFa... |
private static final Recycler INSTANCE;
static {
String property = System.getProperty("ES.RECYCLE");
if (property != null && !Boolean.parseBoolean(property)) {
INSTANCE = new NoCacheCacheRecycler();
} else {
INSTANCE = new DefaultCacheRecycler();
}
}
| private static final Recycler INSTANCE;
static {
String property = System.getProperty("es.cache.recycle");
if (property != null && !Boolean.parseBoolean(property)) {
INSTANCE = new NoCacheCacheRecycler();
} else {
INSTANCE = new DefaultCacheRecycler();
}
... |
private void testLoad(boolean fullRecovery) {
startNode("server1");
// get the environment, so we can clear the work dir when needed
Environment environment = ((InternalNode) node("server1")).injector().getInstance(Environment.class);
logger.info("--> creating test index ...");
... | private void testLoad(boolean fullRecovery) {
startNode("server1");
// get the environment, so we can clear the work dir when needed
Environment environment = ((InternalNode) node("server1")).injector().getInstance(Environment.class);
logger.info("--> creating test index ...");
... |
@Override protected ClusterHealthResponse masterOperation(ClusterHealthRequest request) throws ElasticSearchException {
int waitFor = 2;
if (request.waitForStatus() == null) {
waitFor--;
}
if (request.waitForRelocatingShards() == -1) {
waitFor--;
}
... | @Override protected ClusterHealthResponse masterOperation(ClusterHealthRequest request) throws ElasticSearchException {
int waitFor = 2;
if (request.waitForStatus() == null) {
waitFor--;
}
if (request.waitForRelocatingShards() == -1) {
waitFor--;
}
... |
public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) {
throw new EsRejectedExecutionException();
}
| public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) {
throw new EsRejectedExecutionException("rejected execution of [" + r.getClass().getName() + "]");
}
|
public void onFailure(Throwable e) {
try {
channel.sendResponse(new XContentThrowableRestResponse(request, e));
} catch (IOException e1) {
logger.error("Failed to send failure response", e1);
}
}
| public void onFailure(Throwable e) {
try {
channel.sendResponse(new BytesRestResponse(request, e));
} catch (IOException e1) {
logger.error("Failed to send failure response", e1);
}
}
|
public void onResponse(T response) {
try {
XContentBuilder builder = RestXContentBuilder.restContentBuilder(request);
builder.startObject()
.field(Fields.ACKNOWLEDGED, response.isAcknowledged());
addCustomFields(builder, response);
builder.... | public void onResponse(T response) {
try {
XContentBuilder builder = RestXContentBuilder.restContentBuilder(request);
builder.startObject()
.field(Fields.ACKNOWLEDGED, response.isAcknowledged());
addCustomFields(builder, response);
builder.... |
public void onResponse(SnapshotsStatusResponse response) {
try {
XContentBuilder builder = RestXContentBuilder.restContentBuilder(request);
builder.startObject();
response.toXContent(builder, request);
builder.en... | public void onResponse(SnapshotsStatusResponse response) {
try {
XContentBuilder builder = RestXContentBuilder.restContentBuilder(request);
builder.startObject();
response.toXContent(builder, request);
builder.en... |
public void handleRequest(final RestRequest request, final RestChannel channel) {
IndicesAliasesRequest indicesAliasesRequest = new IndicesAliasesRequest();
indicesAliasesRequest.listenerThreaded(false);
indicesAliasesRequest.masterNodeTimeout(request.paramAsTime("master_timeout", indicesAli... | public void handleRequest(final RestRequest request, final RestChannel channel) {
IndicesAliasesRequest indicesAliasesRequest = new IndicesAliasesRequest();
indicesAliasesRequest.listenerThreaded(false);
indicesAliasesRequest.masterNodeTimeout(request.paramAsTime("master_timeout", indicesAli... |
public void handleRequest(final RestRequest request, final RestChannel channel) {
String[] indices = Strings.splitStringByCommaToArray(request.param("index"));
String alias = request.param("name");
Map<String, Object> filter = null;
String routing = null;
String indexRouting ... | public void handleRequest(final RestRequest request, final RestChannel channel) {
String[] indices = Strings.splitStringByCommaToArray(request.param("index"));
String alias = request.param("name");
Map<String, Object> filter = null;
String routing = null;
String indexRouting ... |
public void handleRequest(final RestRequest request, final RestChannel channel) {
CreateIndexRequest createIndexRequest = new CreateIndexRequest(request.param("index"));
createIndexRequest.listenerThreaded(false);
if (request.hasContent()) {
try {
createIndexReque... | public void handleRequest(final RestRequest request, final RestChannel channel) {
CreateIndexRequest createIndexRequest = new CreateIndexRequest(request.param("index"));
createIndexRequest.listenerThreaded(false);
if (request.hasContent()) {
try {
createIndexReque... |
public void handleRequest(final RestRequest request, final RestChannel channel) {
UpdateSettingsRequest updateSettingsRequest = updateSettingsRequest(Strings.splitStringByCommaToArray(request.param("index")));
updateSettingsRequest.listenerThreaded(false);
updateSettingsRequest.timeout(reque... | public void handleRequest(final RestRequest request, final RestChannel channel) {
UpdateSettingsRequest updateSettingsRequest = updateSettingsRequest(Strings.splitStringByCommaToArray(request.param("index")));
updateSettingsRequest.listenerThreaded(false);
updateSettingsRequest.timeout(reque... |
public void handleRequest(final RestRequest request, final RestChannel channel) {
PutIndexTemplateRequest putRequest = new PutIndexTemplateRequest(request.param("name"));
putRequest.listenerThreaded(false);
putRequest.template(request.param("template", putRequest.template()));
putReq... | public void handleRequest(final RestRequest request, final RestChannel channel) {
PutIndexTemplateRequest putRequest = new PutIndexTemplateRequest(request.param("name"));
putRequest.listenerThreaded(false);
putRequest.template(request.param("template", putRequest.template()));
putReq... |
public void onFailure(Throwable e) {
try {
channel.sendResponse(new XContentThrowableRestResponse(request, e));
} catch (IOException e1) {
logger.error("Failed to send failure response", e1);
}
}
});
... | public void onFailure(Throwable e) {
try {
channel.sendResponse(new BytesRestResponse(request, e));
} catch (IOException e1) {
logger.error("Failed to send failure response", e1);
}
}
});
}
|
public Actor hit (float x, float y) {
if (x < 0 && x >= getWidth() && y < 0 && y >= getHeight()) return null;
if (scrollX && hScrollBounds.contains(x, y)) return this;
if (scrollY && vScrollBounds.contains(x, y)) return this;
return super.hit(x, y);
}
| public Actor hit (float x, float y) {
if (x < 0 || x >= getWidth() || y < 0 || y >= getHeight()) return null;
if (scrollX && hScrollBounds.contains(x, y)) return this;
if (scrollY && vScrollBounds.contains(x, y)) return this;
return super.hit(x, y);
}
|
public static void main (String[] args) throws Exception {
new NativeCodeGenerator().generate("src/", "bin/", "jni/");
BuildConfig buildConfig = new BuildConfig("gdx-controllers-desktop");
BuildTarget win32home = BuildTarget.newDefaultTarget(TargetOs.Windows, false);
win32home.buildFileName = "build-windows32h... | public static void main (String[] args) throws Exception {
new NativeCodeGenerator().generate("src/", "bin/", "jni/");
BuildConfig buildConfig = new BuildConfig("gdx-controllers-desktop");
BuildTarget win32home = BuildTarget.newDefaultTarget(TargetOs.Windows, false);
win32home.buildFileName = "build-windows32h... |
private ShardSearchTransportRequest shardSearchRequest = new ShardSearchTransportRequest();
ShardDfsOnlyRequest() {
}
ShardDfsOnlyRequest(ShardRouting shardRouting, int numberOfShards, @Nullable String[] filteringAliases, @Nullable long nowInMillis, DfsOnlyRequest request) {
super(shardRoutin... | private ShardSearchTransportRequest shardSearchRequest = new ShardSearchTransportRequest();
ShardDfsOnlyRequest() {
}
ShardDfsOnlyRequest(ShardRouting shardRouting, int numberOfShards, @Nullable String[] filteringAliases, long nowInMillis, DfsOnlyRequest request) {
super(shardRouting.shardId(... |
@Inject public NettyHttpServerTransport(Settings settings, NetworkService networkService) {
super(settings);
this.networkService = networkService;
ByteSizeValue maxContentLength = componentSettings.getAsBytesSize("max_content_length", settings.getAsBytesSize("http.max_content_length", new By... | @Inject public NettyHttpServerTransport(Settings settings, NetworkService networkService) {
super(settings);
this.networkService = networkService;
ByteSizeValue maxContentLength = componentSettings.getAsBytesSize("max_content_length", settings.getAsBytesSize("http.max_content_length", new By... |
private static void addUrl(List<URL> urls, String url) {
try {
urls.add(new URL(url));
} catch (MalformedURLException e) {
// We simply ignore malformed URL
}
}
File distroFile(Environment env) {
return new File(env... | private static void addUrl(List<URL> urls, String url) {
try {
urls.add(new URL(url));
} catch (MalformedURLException e) {
// We simply ignore malformed URL
}
}
File distroFile(Environment env) {
return new File(env... |
public ExitStatus execute(Settings settings, Environment env) throws Exception {
XContentBuilder builder = jsonBuilder().startObject().field("_id", 1).field("file").startObject();
if (base64text != null) {
// If base64 is provided
builder.field("_content"... | public ExitStatus execute(Settings settings, Environment env) throws Exception {
XContentBuilder builder = jsonBuilder().startObject().field("_id", 1).field("file").startObject();
if (base64text != null) {
// If base64 is provided
builder.field("_content"... |
private void checkCapacity(int len) {
if(len>=bits.length) {
long[] newBits = new long[len+1];
System.arraycopy(bits, 0, newBits, 0, bits.length);
bits = newBits;
}
}
| private void checkCapacity(int len) {
if(len> bits.length) {
long[] newBits = new long[len+1];
System.arraycopy(bits, 0, newBits, 0, bits.length);
bits = newBits;
}
}
|
public ParticleEffect (ParticleEffect effect) {
emitters = new Array(true, effect.emitters.size);
for (int i = 0, n = effect.emitters.size; i < n; i++)
emitters.add(new ParticleEmitter(effect.emitters.items[i]));
}
| public ParticleEffect (ParticleEffect effect) {
emitters = new Array(true, effect.emitters.size);
for (int i = 0, n = effect.emitters.size; i < n; i++)
emitters.add(new ParticleEmitter(effect.emitters.get(i)));
}
|
@Override public void run() {
boolean restartWithWrapper = false;
if (System.getProperty("elasticsearch-service") != null) {
try {
Class wrapperManager = settings.getClassLoader().loadClass("org.tanukisoftware.wrapper.WrapperManager... | @Override public void run() {
boolean restartWithWrapper = false;
if (System.getProperty("elasticsearch-service") != null) {
try {
Class wrapperManager = settings.getClassLoader().loadClass("org.tanukisoftware.wrapper.WrapperManager... |
@Override public void run() {
boolean removed = listeners.remove(listener);
if (removed) {
listener.onTimeout();
}
}
}, timeout);
}
| @Override public void run() {
boolean removed = listeners.remove(listener);
if (removed) {
listener.onTimeout();
}
}
}, timeout, ThreadPool.ExecutionType.THREADED);
}
|
@Override public void run() {
if (recovered.compareAndSet(false, true)) {
gateway.performStateRecovery(recoveryListener);
}
}
}, recoverAfterTime);
}
} else {
... | @Override public void run() {
if (recovered.compareAndSet(false, true)) {
gateway.performStateRecovery(recoveryListener);
}
}
}, recoverAfterTime, ThreadPool.ExecutionType.THREADED);
... |
@Override protected void moveToSecondPhase() throws Exception {
sortedShardList = searchPhaseController.sortDocs(queryFetchResults.values());
final InternalSearchResponse internalResponse = searchPhaseController.merge(sortedShardList, queryFetchResults, queryFetchResults);
St... | @Override protected void moveToSecondPhase() throws Exception {
sortedShardList = searchPhaseController.sortDocs(queryFetchResults.values());
final InternalSearchResponse internalResponse = searchPhaseController.merge(sortedShardList, queryFetchResults, queryFetchResults);
St... |
public void process(MetaData metaData, String aliasOrIndex, @Nullable MappingMetaData mappingMd, boolean allowIdGeneration) throws ElasticsearchException {
// resolve the routing if needed
routing(metaData.resolveIndexRouting(routing, aliasOrIndex));
// resolve timestamp if provided external... | public void process(MetaData metaData, String aliasOrIndex, @Nullable MappingMetaData mappingMd, boolean allowIdGeneration) throws ElasticsearchException {
// resolve the routing if needed
routing(metaData.resolveIndexRouting(routing, aliasOrIndex));
// resolve timestamp if provided external... |
public static native void calculateVertices (float[] joints, float[] weights, float[] verticesIn, float[] verticesOut,
int numVertices, int vstride, int wstride); /*
for (int vertexOffset = 2, k = 0; vertexOffset < numVertices; vertexOffset += vstride) {
float finalX = 0;
float finalY = 0;
float finalZ = ... | public static native void calculateVertices (float[] joints, float[] weights, float[] verticesIn, float[] verticesOut,
int numVertices, int vstride, int wstride)/*-{ }-*/; /*
for (int vertexOffset = 2, k = 0; vertexOffset < numVertices; vertexOffset += vstride) {
float finalX = 0;
float finalY = 0;
float ... |
public String toString () {
String name = this.name != null ? this.name : getClass().getSimpleName();
if (name.equals("")) name = getClass().getName();
return name + " pos=" + x + "," + y + " origin=" + originX + "," + originY + " size=" + width + "," + height;
}
| public String toString () {
String name = this.name != null ? this.name : getClass().getName();
if (name.equals("")) name = getClass().getName();
return name + " pos=" + x + "," + y + " origin=" + originX + "," + originY + " size=" + width + "," + height;
}
|
public void create () {
String vertexShader = "attribute vec4 a_position; \n" +
"attribute vec4 a_color;\n" +
"attribute vec2 a_texCoord0;\n" +
"uniform mat4 u_worldView;\n" +
"varying vec4 v_color;" +
"varying vec2 v_texCoords;" +
"void main() ... | public void create () {
String vertexShader = "attribute vec4 a_position; \n" +
"attribute vec4 a_color;\n" +
"attribute vec2 a_texCoord0;\n" +
"uniform mat4 u_worldView;\n" +
"varying vec4 v_color;" +
"varying vec2 v_texCoords;" +
"void main() ... |
public void create () {
for (int i = 0; i < music.length; i++) {
music[i] = Gdx.audio.newMusic(Gdx.files.internal("data/music.mp3"));
}
buttons = new TextureRegion(new Texture(Gdx.files.internal("data/playback.png")));
batch = new SpriteBatch();
font = new BitmapFont(Gdx.files.internal("data/arial-15.fnt... | public void create () {
for (int i = 0; i < music.length; i++) {
music[i] = Gdx.audio.newMusic(Gdx.files.internal("data/cloudconnected.ogg"));
}
buttons = new TextureRegion(new Texture(Gdx.files.internal("data/playback.png")));
batch = new SpriteBatch();
font = new BitmapFont(Gdx.files.internal("data/ari... |
public void create () {
Texture texture = new Texture(Gdx.files.internal("data/layers.png"));
layers = new TextureRegion[3];
layers[0] = new TextureRegion(texture, 0, 0, 542, 363);
layers[1] = new TextureRegion(texture, 0, 363, 1024, 149);
layers[2] = new TextureRegion(texture, 547, 0, 224, 51);
camera = ... | public void create () {
Texture texture = new Texture(Gdx.files.internal("data/layers.png"));
layers = new TextureRegion[3];
layers[0] = new TextureRegion(texture, 0, 0, 542, 363);
layers[1] = new TextureRegion(texture, 0, 363, 1024, 149);
layers[2] = new TextureRegion(texture, 547, 0, 224, 51);
camera = ... |
public void create () {
renderer = new ShapeRenderer();
cam = new PerspectiveCamera(47, Gdx.graphics.getWidth(), Gdx.graphics.getHeight());
cam.position.set(0, 0, 2);
cam.near = 0.1f;
controller = new PerspectiveCamController(cam);
Gdx.input.setInputProcessor(controller);
batch = new SpriteBatch();
fon... | public void create () {
renderer = new ShapeRenderer();
cam = new PerspectiveCamera(47, Gdx.graphics.getWidth(), Gdx.graphics.getHeight());
cam.position.set(0, 0, 2);
cam.near = 0.1f;
controller = new PerspectiveCamController(cam);
Gdx.input.setInputProcessor(controller);
batch = new SpriteBatch();
fon... |
public void create () {
// a bitmap font to draw some text, note that we
// pass true to the constructor, which flips glyphs on y
font = new BitmapFont(true);
// a texture region, note the flipping on y again
region = new TextureRegion(new Texture("data/badlogic.jpg"));
region.flip(false, true);
//... | public void create () {
// a bitmap font to draw some text, note that we
// pass true to the constructor, which flips glyphs on y
font = new BitmapFont(Gdx.files.internal("data/arial-15.fnt"), true);
// a texture region, note the flipping on y again
region = new TextureRegion(new Texture("data/badlogic.jp... |
public SplitPane (Actor firstWidget, Actor secondWidget, boolean vertical, Skin skin) {
this(firstWidget, secondWidget, vertical, skin, "default-" + (vertical ? "verticle" : "horizontal"));
}
| public SplitPane (Actor firstWidget, Actor secondWidget, boolean vertical, Skin skin) {
this(firstWidget, secondWidget, vertical, skin, "default-" + (vertical ? "vertical" : "horizontal"));
}
|
@Override public void create () {
font = new BitmapFont();
batch = new SpriteBatch();
texture = new Texture(Gdx.files.internal("data/ui.png"));
}
| @Override public void create () {
font = new BitmapFont();
batch = new SpriteBatch();
texture = new Texture(Gdx.files.internal("data/badlogicsmall.jpg"));
}
|
protected String executor() {
return ThreadPool.Names.SEARCH;
}
| protected String executor() {
return ThreadPool.Names.SUGGEST;
}
|
public static void main(String[] args) throws Exception {
ShardId shardId = new ShardId(new Index("index"), 1);
Settings settings = EMPTY_SETTINGS;
// Store store = new RamStore(shardId, settings);
Store store = new ByteBufferStore(shardId, settings, null, new ByteBufferCache(setting... | public static void main(String[] args) throws Exception {
ShardId shardId = new ShardId(new Index("index"), 1);
Settings settings = EMPTY_SETTINGS;
// Store store = new RamStore(shardId, settings);
Store store = new ByteBufferStore(shardId, settings, null, new ByteBufferCache(setting... |
public void testUpdate() throws Exception {
createIndex();
ClusterHealthResponse clusterHealth = client.admin().cluster().prepareHealth().setWaitForGreenStatus().execute().actionGet();
assertThat(clusterHealth.timedOut(), equalTo(false));
assertThat(clusterHealth.status(), equalTo(Cl... | public void testUpdate() throws Exception {
createIndex();
ClusterHealthResponse clusterHealth = client.admin().cluster().prepareHealth().setWaitForGreenStatus().execute().actionGet();
assertThat(clusterHealth.timedOut(), equalTo(false));
assertThat(clusterHealth.status(), equalTo(Cl... |
protected SingleTypeAdapter<Gist> createAdapter(List<Gist> items) {
return new GistListAdapter(avatars, getActivity().getLayoutInflater(),
items.toArray(new Gist[items.size()]));
}
| protected SingleTypeAdapter<Gist> createAdapter(List<Gist> items) {
return new GistListAdapter(avatars, getActivity().getLayoutInflater(),
items);
}
|
public ThreadPool(Settings settings, @Nullable NodeSettingsService nodeSettingsService) {
super(settings);
Map<String, Settings> groupSettings = settings.getGroups(THREADPOOL_GROUP);
// TODO figure out the best defaults for *all* thread pools
defaultExecutorTypeSettings = Immutable... | public ThreadPool(Settings settings, @Nullable NodeSettingsService nodeSettingsService) {
super(settings);
Map<String, Settings> groupSettings = settings.getGroups(THREADPOOL_GROUP);
// TODO figure out the best defaults for *all* thread pools
defaultExecutorTypeSettings = Immutable... |
@Override public Facet facet() {
return new InternalStringTermsFacet(facetName, comparatorType, size, Sets.newHashSet(new InternalStringTermsFacet.StringEntry(indexName, count)), 0);
}
| @Override public Facet facet() {
return new InternalStringTermsFacet(facetName, comparatorType, size, Sets.newHashSet(new InternalStringTermsFacet.StringEntry(indexName, count)), 0, count);
}
|
public View createTabContent(String tag) {
return ViewUtils.setGone(new View(this), true);
}
| public View createTabContent(String tag) {
return ViewUtils.setGone(new View(getApplication()), true);
}
|
import com.badlogic.gdx.controllers.desktop.ois.OisCallback;
package com.badlogic.gdx.controllers;
import java.awt.Frame;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import javax.swing.JFrame;
import javax.swing.SwingUtilities;
import org.lwj... | import com.badlogic.gdx.controllers.desktop.ois.OisCallback;
package com.badlogic.gdx.controllers;
import java.awt.Frame;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import javax.swing.JFrame;
import javax.swing.SwingUtilities;
import org.lwj... |
package com.badlogic.gdx.graphics.g3d;
package com.badlogic.gdx.graphics.g3d.xoppa;
import java.util.Comparator;
public interface RenderBatchListener extends Comparator<RenderInstance> {
/** Returns the shader to be used for this instance. If the suggestedShader isn't null the preferred action is to return
* that... | package com.badlogic.gdx.graphics.g3d;
package com.badlogic.gdx.graphics.g3d;
import java.util.Comparator;
public interface RenderBatchListener extends Comparator<RenderInstance> {
/** Returns the shader to be used for this instance. If the suggestedShader isn't null the preferred action is to return
* that shade... |
public void handleRequest(final RestRequest request, final RestChannel channel) {
try {
boolean helpWanted = request.paramAsBoolean("h", false);
if (helpWanted) {
channel.sendResponse(new StringRestResponse(RestStatus.OK, HELP));
} else {
c... | public void handleRequest(final RestRequest request, final RestChannel channel) {
try {
boolean helpWanted = request.paramAsBoolean("h", request.paramAsBoolean("help", false));
if (helpWanted) {
channel.sendResponse(new StringRestResponse(RestStatus.OK, HELP));
... |
public void onCancel(DialogInterface arg0) {
listener.cancled();
}
});
alert.show();
}
});
| public void onCancel(DialogInterface arg0) {
listener.canceled();
}
});
alert.show();
}
});
|
@Override public void run () {
String output = JOptionPane.showInputDialog(null, title, text);
if (output != null)
listener.input(output);
else
listener.cancled();
}
});
| @Override public void run () {
String output = JOptionPane.showInputDialog(null, title, text);
if (output != null)
listener.input(output);
else
listener.canceled();
}
});
|
public void run () {
String output = JOptionPane.showInputDialog(null, title, text);
if(output != null)
listener.input(output);
else
listener.cancled();
}
});
| public void run () {
String output = JOptionPane.showInputDialog(null, title, text);
if(output != null)
listener.input(output);
else
listener.canceled();
}
});
|
public static void main (String[] argv) {
new JoglApplication(new com.badlogic.gdx.tests.Box2DTest(), "Debug Test", 480, 320, false);
}
| public static void main (String[] argv) {
new JoglApplication(new com.badlogic.gdx.tests.SoundTest(), "Debug Test", 480, 320, false);
}
|
@Override public void create () {
// sound = Gdx.audio.newSound(Gdx.files.getFileHandle("data/shotgun.wav", FileType.Internal));
sound = Gdx.audio.newSound(Gdx.files.getFileHandle("data/sell_buy_item.wav", FileType.Internal));
// music = Gdx.audio.newMusic(Gdx.files.internal("data/cloudconnected.ogg"));
music... | @Override public void create () {
// sound = Gdx.audio.newSound(Gdx.files.getFileHandle("data/shotgun.wav", FileType.Internal));
sound = Gdx.audio.newSound(Gdx.files.getFileHandle("data/test2_notwork.wav", FileType.Internal));
// music = Gdx.audio.newMusic(Gdx.files.internal("data/cloudconnected.ogg"));
music... |
public String toString() {
return getClass().getSimpleName() + "[" + username + "]";
}
| public String toString() {
return getClass().getSimpleName() + '[' + username + ']';
}
|
@Override public boolean includeInObject() {
return false;
}
| @Override public boolean includeInObject() {
return true;
}
|
private void testLanguage(String filename, String expected, String... forcedLanguage) throws IOException {
byte[] html = copyToBytesFromClasspath("/org/elasticsearch/index/mapper/xcontent/" + filename);
XContentBuilder xcb = jsonBuilder()
.startObject()
.field("_... | private void testLanguage(String filename, String expected, String... forcedLanguage) throws IOException {
byte[] html = copyToBytesFromClasspath("/org/elasticsearch/index/mapper/xcontent/" + filename);
XContentBuilder xcb = jsonBuilder()
.startObject()
.field("_... |
public void shardsCleanup() throws Exception {
try {
client1.admin().indices().prepareDelete("test").execute().actionGet();
} catch (Exception ex) {
// Ignore
}
logger.info("--> creating index [test] with one shard and on replica");
client1.admin().in... | public void shardsCleanup() throws Exception {
try {
client1.admin().indices().prepareDelete("test").execute().actionGet();
} catch (Exception ex) {
// Ignore
}
logger.info("--> creating index [test] with one shard and on replica");
client1.admin().in... |
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 SharedLib... | 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 SharedLib... |
@Override public ByteSizeValue estimateFlushableMemorySize() {
rwl.readLock().lock();
try {
long bytes = IndexWriters.estimateRamSize(indexWriter);
bytes += translog.estimateMemorySize().bytes();
return new ByteSizeValue(bytes);
} catch (Exception e) {
... | @Override public ByteSizeValue estimateFlushableMemorySize() {
rwl.readLock().lock();
try {
long bytes = IndexWriters.estimateRamSize(indexWriter);
bytes += translog.memorySizeInBytes();
return new ByteSizeValue(bytes);
} catch (Exception e) {
... |
public int compare(RestFilter o1, RestFilter o2) {
return o2.order() - o1.order();
}
});
filters = copy;
}
| public int compare(RestFilter o1, RestFilter o2) {
return Integer.compare(o1.order(), o2.order());
}
});
filters = copy;
}
|
private void focusChanged (FocusEvent event) {
Stage stage = getStage();
if (isModal && stage.getRoot().getChildren().peek() == Dialog.this) { // This dialog is the top most actor.
Actor newFocusedActor = event.getRelatedActor();
if (newFocusedActor == null || !newFocusedActor.isDescendantOf(Dialog... | private void focusChanged (FocusEvent event) {
Stage stage = getStage();
if (isModal && stage != null && stage.getRoot().getChildren().peek() == Dialog.this) { // Dialog is top most actor.
Actor newFocusedActor = event.getRelatedActor();
if (newFocusedActor == null || !newFocusedActor.isDescendantO... |
protected void moveToSecondPhase() throws Exception {
// no need to sort, since we know we have no hits back
final InternalSearchResponse internalResponse = searchPhaseController.merge(SearchPhaseController.EMPTY_DOCS, firstResults, (AtomicArray<? extends FetchSearchResultProvider>) Atom... | protected void moveToSecondPhase() throws Exception {
// no need to sort, since we know we have no hits back
final InternalSearchResponse internalResponse = searchPhaseController.merge(SearchPhaseController.EMPTY_DOCS, firstResults, (AtomicArray<? extends FetchSearchResultProvider>) Atom... |
private void innerFinishHim() throws IOException {
sortedShardList = searchPhaseController.sortDocs(request, useSlowScroll, firstResults);
final InternalSearchResponse internalResponse = searchPhaseController.merge(sortedShardList, firstResults, firstResults);
String scrollId... | private void innerFinishHim() throws IOException {
sortedShardList = searchPhaseController.sortDocs(request, useSlowScroll, firstResults);
final InternalSearchResponse internalResponse = searchPhaseController.merge(sortedShardList, firstResults, firstResults);
String scrollId... |
protected void moveToSecondPhase() throws Exception {
final InternalSearchResponse internalResponse = searchPhaseController.merge(SearchPhaseController.EMPTY_DOCS, firstResults, (AtomicArray<? extends FetchSearchResultProvider>) AtomicArray.empty());
String scrollId = null;
i... | protected void moveToSecondPhase() throws Exception {
final InternalSearchResponse internalResponse = searchPhaseController.merge(SearchPhaseController.EMPTY_DOCS, firstResults, (AtomicArray<? extends FetchSearchResultProvider>) AtomicArray.empty());
String scrollId = null;
i... |
protected ShardSegments shardOperation(IndexShardSegmentRequest request) throws ElasticsearchException {
InternalIndexService indexService = (InternalIndexService) indicesService.indexServiceSafe(request.shardId().getIndex());
InternalIndexShard indexShard = (InternalIndexShard) indexService.shardSa... | protected ShardSegments shardOperation(IndexShardSegmentRequest request) throws ElasticsearchException {
InternalIndexService indexService = (InternalIndexService) indicesService.indexServiceSafe(request.shardId().getIndex());
InternalIndexShard indexShard = (InternalIndexShard) indexService.shardSa... |
protected ShardValidateQueryResponse shardOperation(ShardValidateQueryRequest request) throws ElasticsearchException {
IndexService indexService = indicesService.indexServiceSafe(request.shardId().getIndex());
IndexQueryParserService queryParserService = indexService.queryParserService();
In... | protected ShardValidateQueryResponse shardOperation(ShardValidateQueryRequest request) throws ElasticsearchException {
IndexService indexService = indicesService.indexServiceSafe(request.shardId().getIndex());
IndexQueryParserService queryParserService = indexService.queryParserService();
In... |
protected ShardCountResponse shardOperation(ShardCountRequest request) throws ElasticsearchException {
IndexService indexService = indicesService.indexServiceSafe(request.shardId().getIndex());
IndexShard indexShard = indexService.shardSafe(request.shardId().id());
SearchShardTarget shardTa... | protected ShardCountResponse shardOperation(ShardCountRequest request) throws ElasticsearchException {
IndexService indexService = indicesService.indexServiceSafe(request.shardId().getIndex());
IndexShard indexShard = indexService.shardSafe(request.shardId().id());
SearchShardTarget shardTa... |
private final long nowInMillis;
IndexDeleteByQueryRequest(DeleteByQueryRequest request, String index, @Nullable Set<String> routing, @Nullable String[] filteringAliases,
long nowInMillis) {
super(index, request.timeout(), request.replicationType(), request.consistencyLevel... | private final long nowInMillis;
IndexDeleteByQueryRequest(DeleteByQueryRequest request, String index, @Nullable Set<String> routing, @Nullable String[] filteringAliases,
long nowInMillis) {
super(index, request.timeout(), request.replicationType(), request.consistencyLevel... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.