buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
private void computeNumberWidth(final Object[] items) { int[] numbers = new int[items.length]; for (int i = 0; i < numbers.length; i++) numbers[i] = ((Issue) items[i]).getNumber(); int digits = TypefaceUtils.getMaxDigits(numbers); numberWidth = TypefaceUtils.getWidth(numb...
private void computeNumberWidth(final Object[] items) { int[] numbers = new int[items.length]; for (int i = 0; i < numbers.length; i++) numbers[i] = ((Issue) items[i]).getNumber(); int digits = Math.max(TypefaceUtils.getMaxDigits(numbers), 4); numberWidth = TypefaceUtils....
public static ShardRoutingState fromValue(byte value) { switch (value) { case 1: return UNASSIGNED; case 2: return INITIALIZING; case 3: return STARTED; case 4: return RELOCATING; defa...
public static ShardRoutingState fromValue(byte value) { switch (value) { case 1: return UNASSIGNED; case 2: return INITIALIZING; case 3: return STARTED; case 4: return RELOCATING; defa...
public static XContentType xContentType(byte[] data, int offset, int length) { length = length < GUESS_HEADER_LENGTH ? length : GUESS_HEADER_LENGTH; if (length > 1 && data[0] == 0x00 && data[1] == 0x00) { return XContentType.XSON; } for (int i = offset; i < length; i++) {...
public static XContentType xContentType(byte[] data, int offset, int length) { length = length < GUESS_HEADER_LENGTH ? length : GUESS_HEADER_LENGTH; if (length > 1 && data[offset] == 0x00 && data[offset + 1] == 0x00) { return XContentType.XSON; } for (int i = offset; i < ...
public void testStoredFieldsWithoutSource() throws Exception { client.admin().indices().prepareDelete().execute().actionGet(); client.admin().indices().prepareCreate("test").execute().actionGet(); client.admin().cluster().prepareHealth().setWaitForYellowStatus().execute().actionGet(); ...
public void testStoredFieldsWithoutSource() throws Exception { client.admin().indices().prepareDelete().execute().actionGet(); client.admin().indices().prepareCreate("test").execute().actionGet(); client.admin().cluster().prepareHealth().setWaitForYellowStatus().execute().actionGet(); ...
protected void update(final int position, final GistView view, final Gist gist) { view.gistId.setText(gist.getId()); String description = gist.getDescription(); if (!TextUtils.isEmpty(description)) view.title.setText(description); else view.title.setText(stri...
protected void update(final int position, final GistView view, final Gist gist) { view.gistId.setText(gist.getId()); String description = gist.getDescription(); if (!TextUtils.isEmpty(description)) view.title.setText(description); else view.title.setText(stri...
private HttpResponseStatus getStatus(HttpResponse.Status status) { switch (status) { case CONTINUE: return HttpResponseStatus.CONTINUE; case SWITCHING_PROTOCOLS: return HttpResponseStatus.SWITCHING_PROTOCOLS; case OK: return...
private HttpResponseStatus getStatus(HttpResponse.Status status) { switch (status) { case CONTINUE: return HttpResponseStatus.CONTINUE; case SWITCHING_PROTOCOLS: return HttpResponseStatus.SWITCHING_PROTOCOLS; case OK: return...
public float angle() { float angle = (float)Math.atan2(y, x) * MathUtils.degreesToRadians; if(angle < 0) angle += 360; return angle; }
public float angle() { float angle = (float)Math.atan2(y, x) * MathUtils.radiansToDegrees; if(angle < 0) angle += 360; return angle; }
public static Tuple<Settings, Environment> prepareSettings(Settings pSettings, boolean loadConfigSettings) { // just create enough settings to build the environment ImmutableSettings.Builder settingsBuilder = settingsBuilder() .put(pSettings) .putProperties("elasticse...
public static Tuple<Settings, Environment> prepareSettings(Settings pSettings, boolean loadConfigSettings) { // just create enough settings to build the environment ImmutableSettings.Builder settingsBuilder = settingsBuilder() .put(pSettings) .putProperties("elasticse...
public void indexRandom(String index, boolean forceRefresh, IndexRequestBuilder... builders) throws InterruptedException, ExecutionException { Random random = getRandom(); List<IndexRequestBuilder> list = Arrays.asList(builders); Collections.shuffle(list, random); for (IndexRequestBu...
public void indexRandom(String index, boolean forceRefresh, IndexRequestBuilder... builders) throws InterruptedException, ExecutionException { Random random = getRandom(); List<IndexRequestBuilder> list = Arrays.asList(builders); Collections.shuffle(list, random); for (IndexRequestBu...
public Filter parse(QueryParseContext parseContext) throws IOException, QueryParsingException { XContentParser parser = parseContext.parser(); boolean cache = true; CacheKeyFilter.Key cacheKey = null; String fieldName = null; BytesRef from = null; BytesRef to = null;...
public Filter parse(QueryParseContext parseContext) throws IOException, QueryParsingException { XContentParser parser = parseContext.parser(); boolean cache = true; CacheKeyFilter.Key cacheKey = null; String fieldName = null; BytesRef from = null; BytesRef to = null;...
public Query parse(QueryParseContext parseContext) throws IOException, QueryParsingException { XContentParser parser = parseContext.parser(); XContentParser.Token token = parser.nextToken(); if (token != XContentParser.Token.FIELD_NAME) { throw new QueryParsingException(parseCon...
public Query parse(QueryParseContext parseContext) throws IOException, QueryParsingException { XContentParser parser = parseContext.parser(); XContentParser.Token token = parser.nextToken(); if (token != XContentParser.Token.FIELD_NAME) { throw new QueryParsingException(parseCon...
@Override public void toXContent(XContentBuilder builder, Params params) throws IOException { builder.startObject(name); builder.field("_type", "histogram"); builder.field("_field", fieldName); builder.field("_value_field", valueFieldName); builder.field("_unit", unit); ...
@Override public void toXContent(XContentBuilder builder, Params params) throws IOException { builder.startObject(name); builder.field("_type", "geo_distance"); builder.field("_field", fieldName); builder.field("_value_field", valueFieldName); builder.field("_unit", unit); ...
public void computeStatistics() { SinglePassStatistics single = new SinglePassStatistics(); for (long datum : iterationData.data()) { if (datum > -1) { // ignore unset values in the underlying array single.push(datum); } } sum = single.sum...
public void computeStatistics() { final SinglePassStatistics single = new SinglePassStatistics(); for (long datum : iterationData.data()) { if (datum > -1) { // ignore unset values in the underlying array single.push(datum); } } sum = sing...
public void updateVertexBufferFromArray( int numVertices ) { verticesBuffer.position(0); verticesBuffer.put( verticesArray, 0, numVertices * vertexSize / 4 ); verticesBuffer.flip(); }
public void updateVertexBufferFromArray( int numVertices ) { verticesBuffer.clear(); verticesBuffer.put( verticesArray, 0, numVertices * vertexSize / 4 ); verticesBuffer.flip(); }
private void rebuild( ) { if( mesh == null ) { FloatMesh m = new FloatMesh( 6 * text.length(), 3, false, false, true, 1, 2, false, 0 ); mesh = new MeshRenderer( graphics.getGL10(), m, false, font.isManaged() ); } if( mesh.getMesh().getMaximumVertices() / 6 < text.length() ) { mesh.dispose...
private void rebuild( ) { if( mesh == null ) { FloatMesh m = new FloatMesh( 6 * text.length(), 3, false, false, true, 1, 2, false, 0 ); mesh = new MeshRenderer( graphics.getGL10(), m, false, font.isManaged() ); } if( mesh.getMesh().getMaximumVertices() / 6 <= text.length() ) { mesh.dispos...
public void respond(CollisionPacket packet, float displacementDistance) { destination.set( packet.position ).add( packet.velocity ); newPosition.set( packet.position ); if( packet.getNearestDistance() >= displacementDistance ) { newVelocity.set( packet.velocity ).nor().mul(packet.getNearestDistance() ...
public void respond(CollisionPacket packet, float displacementDistance) { destination.set( packet.position ).add( packet.velocity ); newPosition.set( packet.position ); if( packet.getNearestDistance() >= displacementDistance ) { newVelocity.set( packet.velocity ).nor().mul(packet.getNearestDistance() ...
protected ShardStatus shardOperation(IndexShardStatusRequest request) throws ElasticSearchException { InternalIndexService indexService = (InternalIndexService) indicesService.indexServiceSafe(request.index()); InternalIndexShard indexShard = (InternalIndexShard) indexService.shardSafe(request.shard...
protected ShardStatus shardOperation(IndexShardStatusRequest request) throws ElasticSearchException { InternalIndexService indexService = (InternalIndexService) indicesService.indexServiceSafe(request.index()); InternalIndexShard indexShard = (InternalIndexShard) indexService.shardSafe(request.shard...
protected ShardValidateQueryResponse shardOperation(ShardValidateQueryRequest request) throws ElasticSearchException { IndexQueryParserService queryParserService = indicesService.indexServiceSafe(request.index()).queryParserService(); IndexService indexService = indicesService.indexServiceSafe(reque...
protected ShardValidateQueryResponse shardOperation(ShardValidateQueryRequest request) throws ElasticSearchException { IndexQueryParserService queryParserService = indicesService.indexServiceSafe(request.index()).queryParserService(); IndexService indexService = indicesService.indexServiceSafe(reque...
protected ShardCountResponse shardOperation(ShardCountRequest request) throws ElasticSearchException { IndexService indexService = indicesService.indexServiceSafe(request.index()); IndexShard indexShard = indexService.shardSafe(request.shardId()); SearchShardTarget shardTarget = new SearchS...
protected ShardCountResponse shardOperation(ShardCountRequest request) throws ElasticSearchException { IndexService indexService = indicesService.indexServiceSafe(request.index()); IndexShard indexShard = indexService.shardSafe(request.shardId()); SearchShardTarget shardTarget = new SearchS...
protected ShardSuggestResponse shardOperation(ShardSuggestRequest request) throws ElasticSearchException { IndexService indexService = indicesService.indexServiceSafe(request.index()); IndexShard indexShard = indexService.shardSafe(request.shardId()); final Engine.Searcher searcher = indexSh...
protected ShardSuggestResponse shardOperation(ShardSuggestRequest request) throws ElasticSearchException { IndexService indexService = indicesService.indexServiceSafe(request.index()); IndexShard indexShard = indexService.shardSafe(request.shardId()); final Engine.Searcher searcher = indexSh...
private void loadQueries(IndexShard shard) { try { shard.refresh(new Engine.Refresh().force(true)); Engine.Searcher searcher = shard.searcher(); try { Query query = new XConstantScoreQuery( indexCache.fil...
private void loadQueries(IndexShard shard) { try { shard.refresh(new Engine.Refresh().force(true)); Engine.Searcher searcher = shard.acquireSearcher(); try { Query query = new XConstantScoreQuery( indexCa...
public TermVectorResponse getTermVector(TermVectorRequest request) { final Engine.Searcher searcher = indexShard.searcher(); IndexReader topLevelReader = searcher.reader(); final TermVectorResponse termVectorResponse = new TermVectorResponse(request.index(), request.type(), request.id()); ...
public TermVectorResponse getTermVector(TermVectorRequest request) { final Engine.Searcher searcher = indexShard.acquireSearcher(); IndexReader topLevelReader = searcher.reader(); final TermVectorResponse termVectorResponse = new TermVectorResponse(request.index(), request.type(), request.id...
private void purgeShards(List<IndexShard> shardsToPurge) { for (IndexShard shardToPurge : shardsToPurge) { Query query = NumericRangeQuery.newLongRange(TTLFieldMapper.NAME, null, System.currentTimeMillis(), false, true); Engine.Searcher searcher = shardToPurge.searcher(); ...
private void purgeShards(List<IndexShard> shardsToPurge) { for (IndexShard shardToPurge : shardsToPurge) { Query query = NumericRangeQuery.newLongRange(TTLFieldMapper.NAME, null, System.currentTimeMillis(), false, true); Engine.Searcher searcher = shardToPurge.acquireSearcher(); ...
private SearchContext findContext(long id) throws SearchContextMissingException { SearchContext context = activeContexts.get(id); if (context == null) { throw new SearchContextMissingException(id); } SearchContext.setCurrent(context); return context; } Se...
private SearchContext findContext(long id) throws SearchContextMissingException { SearchContext context = activeContexts.get(id); if (context == null) { throw new SearchContextMissingException(id); } SearchContext.setCurrent(context); return context; } Se...
public void end( ) { if( idxPos == 0 ) return; gl.glEnableClientState( GL10.GL_VERTEX_ARRAY ); positionsBuffer.clear(); positionsBuffer.put( positions, 0, idxPos ); positionsBuffer.flip(); gl.glVertexPointer( 3, GL10.GL_FLOAT, 0, positionsBuffer ); if( colorsDefined ) { gl.glEnableClientS...
public void end( ) { if( idxPos == 0 ) return; gl.glEnableClientState( GL10.GL_VERTEX_ARRAY ); positionsBuffer.clear(); positionsBuffer.put( positions, 0, idxPos ); positionsBuffer.flip(); gl.glVertexPointer( 3, GL10.GL_FLOAT, 0, positionsBuffer ); if( colorsDefined ) { gl.glEnableClientS...
public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); // Start out with a progress indicator. setListShown(false); // Prepare the loader. Either re-connect with an existing one, // or start a new one. refresh(); ...
public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); // Start out with a progress indicator. setListShown(false); // Prepare the loader. Either re-connect with an existing one, // or start a new one. getLoaderManage...
public void onListItemClick(ListView l, View v, int position, long id) { startActivity(ViewIssuesActivity.createIntent(items, position - l.getHeaderViewsCount())); }
public void onListItemClick(ListView l, View v, int position, long id) { startActivity(ViewIssuesActivity.createIntent(items, position - getListAdapter().getHeadersCount())); }
public Fragment getItem(int position) { switch (position) { case 0: return new UserReceivedNewsFragment(); case 1: return new RepoListFragment(); case 2: return defaultUser ? new MyFollowersFragment() : new MembersFragment(); default: ...
public Fragment getItem(int position) { switch (position) { case 0: return defaultUser ? new UserReceivedNewsFragment() : new OrganizationNewsFragment(); case 1: return new RepoListFragment(); case 2: return defaultUser ? new MyFollowersFragment() ...
private static final int CURRENT_VERSION = -1; TermVectorResponse response = null; TermVectorWriter(TermVectorResponse termVectorResponse) throws IOException { response = termVectorResponse; } void setFields(Fields termVectorsByField, Set<String> selectedFields, EnumSet<Flag> flags, Fields...
private static final int CURRENT_VERSION = -1; TermVectorResponse response = null; TermVectorWriter(TermVectorResponse termVectorResponse) throws IOException { response = termVectorResponse; } void setFields(Fields termVectorsByField, Set<String> selectedFields, EnumSet<Flag> flags, Fields...
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)) { ...
public DocIdSet getDocIdSet(AtomicReaderContext context, Bits acceptDocs) throws IOException { Terms terms = context.reader().terms(UidFieldMapper.NAME); if (terms == null) { return null; } TermsEnum termsEnum = terms.iterator(null); BytesRef uidSpare = new Bytes...
public DocIdSet getDocIdSet(AtomicReaderContext context, Bits acceptDocs) throws IOException { Terms terms = context.reader().terms(UidFieldMapper.NAME); if (terms == null) { return null; } TermsEnum termsEnum = terms.iterator(null); BytesRef uidSpare = new Bytes...
private void checkIndex(boolean throwException) throws IndexShardException { try { checkIndexTook = 0; long time = System.currentTimeMillis(); if (!Lucene.indexExists(store.directory())) { return; } CheckIndex checkIndex = new Check...
private void checkIndex(boolean throwException) throws IndexShardException { try { checkIndexTook = 0; long time = System.currentTimeMillis(); if (!Lucene.indexExists(store.directory())) { return; } CheckIndex checkIndex = new Check...
public void execute(SearchContext context) { final ObjectOpenHashSet<Term> termsSet = cachedTermsSet.get(); try { if (!context.queryRewritten()) { context.updateRewriteQuery(context.searcher().rewrite(context.query())); } if (!termsSet.isEmpty()) ...
public void execute(SearchContext context) { final ObjectOpenHashSet<Term> termsSet = cachedTermsSet.get(); try { if (!context.queryRewritten()) { context.updateRewriteQuery(context.searcher().rewrite(context.query())); } if (!termsSet.isEmpty()) ...
public void setUp() throws Exception { directory = new RAMDirectory(); IndexWriter writer = new IndexWriter(directory, new IndexWriterConfig(Lucene.VERSION, new WhitespaceAnalyzer(Lucene.VERSION))); //Add series of docs with filterable fields : acces rights, prices, dates and "in-stock" fla...
public void setUp() throws Exception { directory = new RAMDirectory(); IndexWriter writer = new IndexWriter(directory, new IndexWriterConfig(Lucene.VERSION, new WhitespaceAnalyzer(Lucene.VERSION))); //Add series of docs with filterable fields : acces rights, prices, dates and "in-stock" fla...
protected AtomicReaderContext refreshReader() throws Exception { if (readerContext != null) { readerContext.reader().close(); } AtomicReader reader = new SlowCompositeReaderWrapper(DirectoryReader.open(writer, true)); readerContext = reader.getContext(); return re...
protected AtomicReaderContext refreshReader() throws Exception { if (readerContext != null) { readerContext.reader().close(); } AtomicReader reader = SlowCompositeReaderWrapper.wrap(DirectoryReader.open(writer, true)); readerContext = reader.getContext(); return r...
public void render(Application app) { // first we update the world. For simplicity // we use the delta time provided by the Graphics // instance. Normally you'll want to fix the time // step. long start = System.nanoTime(); world.step( app.getGraphics().getDeltaTime(), 3, 3 ); float updateTime = (Syst...
public void render(Application app) { // first we update the world. For simplicity // we use the delta time provided by the Graphics // instance. Normally you'll want to fix the time // step. long start = System.nanoTime(); world.step( app.getGraphics().getDeltaTime(), 3, 3 ); float updateTime = (Syst...
protected ViewHoldingListAdapter<SearchRepository> adapterFor(List<SearchRepository> items) { return new ViewHoldingListAdapter<SearchRepository>(items, ViewInflator.viewInflatorFor(getActivity(), layout.repo_list_item), ReflectiveHolderFactory.reflectiveFactoryFor(SearchRepoViewHolder.class...
protected ViewHoldingListAdapter<SearchRepository> adapterFor(List<SearchRepository> items) { return new ViewHoldingListAdapter<SearchRepository>(items, ViewInflator.viewInflatorFor(getActivity(), layout.repo_search_list_item), ReflectiveHolderFactory.reflectiveFactoryFor(SearchRepoViewHolde...
public static void main(String[] args) throws Exception { // generate C/C++ code new NativeCodeGenerator().generate(); // generate build scripts, for win32 only // custom target for testing purposes BuildTarget win32home = BuildTarget.newDefaultTarget(TargetOs.Windows, false); win32home.compilerPrefix =...
public static void main(String[] args) throws Exception { // generate C/C++ code new NativeCodeGenerator().generate(); // generate build scripts, for win32 only // custom target for testing purposes BuildTarget win32home = BuildTarget.newDefaultTarget(TargetOs.Windows, false); win32home.compilerPrefix =...
@Override public RecoveryStatus recover() throws IndexShardGatewayRecoveryException { // in the none case, we simply start the shard // clean the store, there should be nothing there... try { indexShard.store().deleteContent(); } catch (IOException e) { logger...
@Override public RecoveryStatus recover() throws IndexShardGatewayRecoveryException { // in the none case, we simply start the shard // clean the store, there should be nothing there... try { indexShard.store().deleteContent(); } catch (IOException e) { logger...
public void onFailure(Throwable t) { if (logger.isDebugEnabled()) { logger.debug("[{}] Failed to execute query phase", t, querySearchRequest.id()); } AsyncAction.this.shardFailures.add(new ShardSearchFailure(t)); ...
public void onFailure(Throwable t) { if (logger.isDebugEnabled()) { logger.debug("[{}] Failed to execute query phase", t, querySearchRequest.id()); } AsyncAction.this.addShardFailure(new ShardSearchFailure(t)); ...
public void onFailure(Throwable t) { if (logger.isDebugEnabled()) { logger.debug("[{}] Failed to execute fetch phase", t, fetchSearchRequest.id()); } AsyncAction.this.shardFailures.add(new ShardSearchFailure(t)); ...
public void onFailure(Throwable t) { if (logger.isDebugEnabled()) { logger.debug("[{}] Failed to execute fetch phase", t, fetchSearchRequest.id()); } AsyncAction.this.addShardFailure(new ShardSearchFailure(t)); ...
public boolean scrolled (int amount) { app.graphics.requestRendering(); return processor != null ? processor.scrolled(amount) : false; } }; if (queueEvents) inputProcessor = processorQueue = new InputProcessorQueue(inputProcessor); else processorQueue = null; app.getCallbacks().add(new Glf...
public boolean scrolled (int amount) { app.graphics.requestRendering(); return processor != null ? processor.scrolled(amount) : false; } }; if (queueEvents) inputProcessor = processorQueue = new InputProcessorQueue(inputProcessor); else processorQueue = null; app.callbacks.add(new GlfwInpu...
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...
public Filter parse(QueryParseContext parseContext) throws IOException, QueryParsingException { XContentParser parser = parseContext.parser(); boolean cache = false; CacheKeyFilter.Key cacheKey = null; String fieldName = null; double top = Double.NaN; double bottom ...
public Filter parse(QueryParseContext parseContext) throws IOException, QueryParsingException { XContentParser parser = parseContext.parser(); boolean cache = false; CacheKeyFilter.Key cacheKey = null; String fieldName = null; double top = Double.NaN; double bottom ...
public Filter parse(QueryParseContext parseContext) throws IOException, QueryParsingException { XContentParser parser = parseContext.parser(); XContentParser.Token token; boolean cache = false; CacheKeyFilter.Key cacheKey = null; String filterName = null; String cur...
public Filter parse(QueryParseContext parseContext) throws IOException, QueryParsingException { XContentParser parser = parseContext.parser(); XContentParser.Token token; boolean cache = false; CacheKeyFilter.Key cacheKey = null; String filterName = null; String cur...
public Filter parse(QueryParseContext parseContext) throws IOException, QueryParsingException { XContentParser parser = parseContext.parser(); XContentParser.Token token; boolean cache = false; CacheKeyFilter.Key cacheKey = null; String filterName = null; String cur...
public Filter parse(QueryParseContext parseContext) throws IOException, QueryParsingException { XContentParser parser = parseContext.parser(); XContentParser.Token token; boolean cache = false; CacheKeyFilter.Key cacheKey = null; String filterName = null; String cur...
public Filter parse(QueryParseContext parseContext) throws IOException, QueryParsingException { XContentParser parser = parseContext.parser(); boolean cache = false; CacheKeyFilter.Key cacheKey = null; String fieldName = null; List<GeoPoint> shell = Lists.newArrayList(); ...
public Filter parse(QueryParseContext parseContext) throws IOException, QueryParsingException { XContentParser parser = parseContext.parser(); boolean cache = false; CacheKeyFilter.Key cacheKey = null; String fieldName = null; List<GeoPoint> shell = Lists.newArrayList(); ...
public Filter parse(QueryParseContext parseContext) throws IOException, QueryParsingException { ensureNotDeleteByQuery(NAME, parseContext); XContentParser parser = parseContext.parser(); boolean queryFound = false; boolean filterFound = false; String childType = null; ...
public Filter parse(QueryParseContext parseContext) throws IOException, QueryParsingException { ensureNotDeleteByQuery(NAME, parseContext); XContentParser parser = parseContext.parser(); boolean queryFound = false; boolean filterFound = false; String childType = null; ...
public Query parse(QueryParseContext parseContext) throws IOException, QueryParsingException { ensureNotDeleteByQuery(NAME, parseContext); XContentParser parser = parseContext.parser(); boolean queryFound = false; float boost = 1.0f; String childType = null; ScoreTyp...
public Query parse(QueryParseContext parseContext) throws IOException, QueryParsingException { ensureNotDeleteByQuery(NAME, parseContext); XContentParser parser = parseContext.parser(); boolean queryFound = false; float boost = 1.0f; String childType = null; ScoreTyp...
public Filter parse(QueryParseContext parseContext) throws IOException, QueryParsingException { ensureNotDeleteByQuery(NAME, parseContext); XContentParser parser = parseContext.parser(); boolean queryFound = false; boolean filterFound = false; String parentType = null; ...
public Filter parse(QueryParseContext parseContext) throws IOException, QueryParsingException { ensureNotDeleteByQuery(NAME, parseContext); XContentParser parser = parseContext.parser(); boolean queryFound = false; boolean filterFound = false; String parentType = null; ...
public Query parse(QueryParseContext parseContext) throws IOException, QueryParsingException { ensureNotDeleteByQuery(NAME, parseContext); XContentParser parser = parseContext.parser(); boolean queryFound = false; float boost = 1.0f; String parentType = null; boolean...
public Query parse(QueryParseContext parseContext) throws IOException, QueryParsingException { ensureNotDeleteByQuery(NAME, parseContext); XContentParser parser = parseContext.parser(); boolean queryFound = false; float boost = 1.0f; String parentType = null; boolean...
public Filter parse(QueryParseContext parseContext) throws IOException, QueryParsingException { XContentParser parser = parseContext.parser(); boolean cache = false; // default to false, since its using fielddata cache CacheKeyFilter.Key cacheKey = null; String fieldName = null; ...
public Filter parse(QueryParseContext parseContext) throws IOException, QueryParsingException { XContentParser parser = parseContext.parser(); boolean cache = false; // default to false, since its using fielddata cache CacheKeyFilter.Key cacheKey = null; String fieldName = null; ...
public Filter parse(QueryParseContext parseContext) throws IOException, QueryParsingException { XContentParser parser = parseContext.parser(); MapperService.SmartNameFieldMappers smartNameFieldMappers; Boolean cache = null; String filterName = null; String currentFieldName =...
public Filter parse(QueryParseContext parseContext) throws IOException, QueryParsingException { XContentParser parser = parseContext.parser(); MapperService.SmartNameFieldMappers smartNameFieldMappers; Boolean cache = null; String filterName = null; String currentFieldName =...
public Query parse(QueryParseContext parseContext) throws IOException, QueryParsingException { ensureNotDeleteByQuery(NAME, parseContext); XContentParser parser = parseContext.parser(); boolean queryFound = false; float boost = 1.0f; String childType = null; ScoreTyp...
public Query parse(QueryParseContext parseContext) throws IOException, QueryParsingException { ensureNotDeleteByQuery(NAME, parseContext); XContentParser parser = parseContext.parser(); boolean queryFound = false; float boost = 1.0f; String childType = null; ScoreTyp...
public void testGlobalOrdinalsGetRemovedOnceIndexReaderCloses() throws Exception { fillExtendedMvSet(); refreshReader(); FieldDataType fieldDataType = new FieldDataType("string", ImmutableSettings.builder().put("global_values", "fixed")); IndexFieldData.WithOrdinals ifd = getForField...
public void testGlobalOrdinalsGetRemovedOnceIndexReaderCloses() throws Exception { fillExtendedMvSet(); refreshReader(); FieldDataType fieldDataType = new FieldDataType("string", ImmutableSettings.builder().put("global_values", "fixed").put("cache", "node")); IndexFieldData.WithOrdin...
public void percolateNonMatchingConstantScoreQuery() throws Exception { assertAcked(client().admin().indices().prepareCreate("test")); ensureGreen(); logger.info("--> register a query"); client().prepareIndex("test", PercolatorService.TYPE_NAME, "1") .setSource(jsonB...
public void percolateNonMatchingConstantScoreQuery() throws Exception { assertAcked(client().admin().indices().prepareCreate("test")); ensureGreen(); logger.info("--> register a query"); client().prepareIndex("test", PercolatorService.TYPE_NAME, "1") .setSource(jsonB...
@Inject public TieredMergePolicyProvider(Store store, IndexSettingsService indexSettingsService) { super(store.shardId(), store.indexSettings()); this.indexSettingsService = indexSettingsService; this.compoundFormat = indexSettings.getAsBoolean("index.compound_format", store.suggestUseCompo...
@Inject public TieredMergePolicyProvider(Store store, IndexSettingsService indexSettingsService) { super(store.shardId(), store.indexSettings()); this.indexSettingsService = indexSettingsService; this.compoundFormat = indexSettings.getAsBoolean("index.compound_format", store.suggestUseCompo...
@Override public ShardRouting firstOrNull() { if (size == 0) { return null; } return shards.get((index + 1) % size); }
@Override public ShardRouting firstOrNull() { if (size == 0) { return null; } return shards.get(index); }
protected void setUp() throws Exception { super.setUp(); Repository repo = new Repository(); repo.setName("repo"); repo.setOwner(new User().setLogin("owner")); setActivityIntent(EditIssueActivity.createIntent(repo, "an issue")); }
protected void setUp() throws Exception { super.setUp(); Repository repo = new Repository(); repo.setName("repo"); repo.setOwner(new User().setLogin("owner")); setActivityIntent(EditIssueActivity.createIntent(repo)); }
public static long getUnsafeBufferAddress(Buffer buffer) { return getBufferAddress(buffer); }
public static long getUnsafeBufferAddress(Buffer buffer) { return getBufferAddress(buffer) + buffer.position(); }
protected ViewHoldingListAdapter<Gist> adapterFor(List<Gist> items) { return new ViewHoldingListAdapter<Gist>(items, viewInflatorFor(getActivity(), layout.gist_list_item), reflectiveFactoryFor(GistViewHolder.class)); }
protected ViewHoldingListAdapter<Gist> adapterFor(List<Gist> items) { return new ViewHoldingListAdapter<Gist>(items, viewInflatorFor(getActivity(), layout.gist_list_item), reflectiveFactoryFor(GistViewHolder.class, GistViewHolder.computeMaxDigits(items))); }
public void testRandomSorting() throws ElasticSearchException, IOException, InterruptedException, ExecutionException { int numberOfShards = between(1, 10); Random random = getRandom(); prepareCreate("test") .setSettings(randomSettingsBuilder().put("index.number_of_shards", nu...
public void testRandomSorting() throws ElasticSearchException, IOException, InterruptedException, ExecutionException { int numberOfShards = between(1, 10); Random random = getRandom(); prepareCreate("test") .setSettings(randomSettingsBuilder().put("index.number_of_shards", nu...
public static void assertOrderedSearchHits(SearchResponse searchResponse, String... ids) { String shardStatus = formatShardStatus(searchResponse); assertThat("Expected different hit count. " + shardStatus, searchResponse.getHits().hits().length, equalTo(ids.length)); for (int i=0; i<ids.leng...
public static void assertOrderedSearchHits(SearchResponse searchResponse, String... ids) { String shardStatus = formatShardStatus(searchResponse); assertThat("Expected different hit count. " + shardStatus, searchResponse.getHits().hits().length, equalTo(ids.length)); for (int i=0; i<ids.leng...
public boolean mouseMoved (int screenX, int screenY) { triangulate(); return false; } }); } void triangulate () { seed = 4139368480425561099l; MathUtils.random.setSeed(seed); int pointCount = 100; points.clear(); for (int i = 0; i < pointCount; i++) { float value; do { value = Ma...
public boolean mouseMoved (int screenX, int screenY) { triangulate(); return false; } }); } void triangulate () { // seed = 4139368480425561099l; MathUtils.random.setSeed(seed); int pointCount = 100; points.clear(); for (int i = 0; i < pointCount; i++) { float value; do { value =...
public String toString () { if (size == 0) return "{}"; StringBuilder buffer = new StringBuilder(32); buffer.append('{'); Array<K> keys = orderedKeys(); for (int i = 0, n = keys.size; i < n; i++) { K key = keys.get(i); if (i > 0) buffer.append(", "); buffer.append(key); buffer.append('='); buf...
public String toString () { if (size == 0) return "{}"; StringBuilder buffer = new StringBuilder(32); buffer.append('{'); Array<K> keys = this.keys; for (int i = 0, n = keys.size; i < n; i++) { K key = keys.get(i); if (i > 0) buffer.append(", "); buffer.append(key); buffer.append('='); buffer....
@Inject public NodeEnvironment(Settings settings, Environment environment) throws IOException { super(settings); if (!DiscoveryNode.nodeRequiresLocalStorage(settings)) { nodeFiles = null; nodeIndicesLocations = null; locks = null; localNodeId = -1; ...
@Inject public NodeEnvironment(Settings settings, Environment environment) throws IOException { super(settings); if (!DiscoveryNode.nodeRequiresLocalStorage(settings)) { nodeFiles = null; nodeIndicesLocations = null; locks = null; localNodeId = -1; ...
protected AbstractStore(ShardId shardId, @IndexSettings Settings indexSettings, IndexStore indexStore) { super(shardId, indexSettings); this.indexStore = indexStore; this.sync = componentSettings.getAsBoolean("sync", false); }
protected AbstractStore(ShardId shardId, @IndexSettings Settings indexSettings, IndexStore indexStore) { super(shardId, indexSettings); this.indexStore = indexStore; this.sync = componentSettings.getAsBoolean("sync", true); // TODO we don't really need to fsync when using shared gateway... ...
public static void main (String[] argv) { new JoglApplication(new com.badlogic.gdx.tests.KinematicBodyTest(), "Debug Test", 480, 320, false); }
public static void main (String[] argv) { new JoglApplication(new com.badlogic.gdx.tests.MatrixJNITest(), "Debug Test", 480, 320, false); }
public String mapLibraryName (String libraryName) { if (isWindows) return libraryName + (is64Bit ? "64.dll" : ".dll"); if (isLinux) return "lib" + libraryName + (isARM ? "arm" + abi : "") + (is64Bit ? "64.so" : ".so"); if (isMac) return "lib" + libraryName + ".dylib"; return libraryName; }
public String mapLibraryName (String libraryName) { if (isWindows) return libraryName + (is64Bit ? "64.dll" : ".dll"); if (isLinux) return "lib" + libraryName + (isARM ? "arm" + abi : "") + (is64Bit ? "64.so" : ".so"); if (isMac) return "lib" + libraryName + (is64Bit ? "64.dylib" : ".dylib"); return libraryNam...
public RestStatus status() { return RestStatus.SERVICE_UNAVAILABLE; }
public RestStatus status() { return RestStatus.TOO_MANY_REQUESTS; }
public synchronized void removeShard(int shardId, String reason) throws ElasticsearchException { final Injector shardInjector; final IndexShard indexShard; final ShardId sId = new ShardId(index, shardId); Map<Integer, Injector> tmpShardInjectors = newHashMap(shardsInjectors); ...
public synchronized void removeShard(int shardId, String reason) throws ElasticsearchException { final Injector shardInjector; final IndexShard indexShard; final ShardId sId = new ShardId(index, shardId); Map<Integer, Injector> tmpShardInjectors = newHashMap(shardsInjectors); ...
public ClusterState execute(final ClusterState currentState) throws Exception { List<String> indicesToClose = Lists.newArrayList(); try { for (String index : request.indices()) { if (!currentState.metaData().hasIndex(index)) { ...
public ClusterState execute(final ClusterState currentState) throws Exception { List<String> indicesToClose = Lists.newArrayList(); try { for (String index : request.indices()) { if (!currentState.metaData().hasIndex(index)) { ...
public void testMaxSizeExceededOnNew() throws Exception { final int size = scaledRandomIntBetween(5, 1 << 22); for (String type : Arrays.asList("Byte", "Int", "Long", "Float", "Double", "Object")) { HierarchyCircuitBreakerService hcbs = new HierarchyCircuitBreakerService( ...
public void testMaxSizeExceededOnNew() throws Exception { final int size = scaledRandomIntBetween(5, 1 << 22); for (String type : Arrays.asList("Byte", "Int", "Long", "Float", "Double", "Object")) { HierarchyCircuitBreakerService hcbs = new HierarchyCircuitBreakerService( ...
protected ShardRefreshResponse shardOperation(ShardRefreshRequest request) throws ElasticSearchException { IndexShard indexShard = indicesService.indexServiceSafe(request.index()).shardSafe(request.shardId()); indexShard.refresh(new Engine.Refresh(request.waitForOperations())); return new Sh...
protected ShardRefreshResponse shardOperation(ShardRefreshRequest request) throws ElasticSearchException { IndexShard indexShard = indicesService.indexServiceSafe(request.index()).shardSafe(request.shardId()); indexShard.refresh(new Engine.Refresh().force(request.force())); return new ShardR...
protected MultiGetShardResponse shardOperation(MultiGetShardRequest request, int shardId) throws ElasticSearchException { IndexService indexService = indicesService.indexServiceSafe(request.index()); IndexShard indexShard = indexService.shardSafe(shardId); if (request.refresh() && !request....
protected MultiGetShardResponse shardOperation(MultiGetShardRequest request, int shardId) throws ElasticSearchException { IndexService indexService = indicesService.indexServiceSafe(request.index()); IndexShard indexShard = indexService.shardSafe(shardId); if (request.refresh() && !request....
public void run() { recoveryStatus = new RecoveryStatus(); recoveryStatus.updateStage(RecoveryStatus.Stage.INIT); try { logger.debug("starting recovery from {} ...", shardGateway); shardGateway.recover(indexShouldExists...
public void run() { recoveryStatus = new RecoveryStatus(); recoveryStatus.updateStage(RecoveryStatus.Stage.INIT); try { logger.debug("starting recovery from {} ...", shardGateway); shardGateway.recover(indexShouldExists...
private void loadQueries(IndexShard shard) { try { shard.refresh(new Engine.Refresh(true)); Engine.Searcher searcher = shard.searcher(); try { Query query = new XConstantScoreQuery( indexCache.filter().ca...
private void loadQueries(IndexShard shard) { try { shard.refresh(new Engine.Refresh().force(true)); Engine.Searcher searcher = shard.searcher(); try { Query query = new XConstantScoreQuery( indexCache.fil...
public void testClusterUpdateSettingsNoAcknowledgement() { client().admin().indices().prepareCreate("test") .setSettings(settingsBuilder() .put("number_of_shards", between(cluster().dataNodes(), DEFAULT_MAX_NUM_SHARDS)) .put("number_of_replicas...
public void testClusterUpdateSettingsNoAcknowledgement() { client().admin().indices().prepareCreate("test") .setSettings(settingsBuilder() .put("number_of_shards", between(immutableCluster().dataNodes(), DEFAULT_MAX_NUM_SHARDS)) .put("number_of...
public void testSimpleStats() throws Exception { // clear all stats first client().admin().indices().prepareStats().clear().execute().actionGet(); final int numNodes = cluster().dataNodes(); assertThat(numNodes, greaterThanOrEqualTo(2)); final int shardsIdx1 = randomIntBetwee...
public void testSimpleStats() throws Exception { // clear all stats first client().admin().indices().prepareStats().clear().execute().actionGet(); final int numNodes = immutableCluster().dataNodes(); assertThat(numNodes, greaterThanOrEqualTo(2)); final int shardsIdx1 = random...
public void testStopOneNodePreferenceWithRedState() throws InterruptedException { assertAcked(prepareCreate("test").setSettings(settingsBuilder().put("index.number_of_shards", cluster().dataNodes()+2).put("index.number_of_replicas", 0))); ensureGreen(); for (int i = 0; i < 10; i++) { ...
public void testStopOneNodePreferenceWithRedState() throws InterruptedException { assertAcked(prepareCreate("test").setSettings(settingsBuilder().put("index.number_of_shards", immutableCluster().dataNodes()+2).put("index.number_of_replicas", 0))); ensureGreen(); for (int i = 0; i < 10; i++) ...
public void testSimpleStats() throws Exception { // clear all stats first client().admin().indices().prepareStats().clear().execute().actionGet(); final int numNodes = cluster().dataNodes(); assertThat(numNodes, greaterThanOrEqualTo(2)); final int shardsIdx1 = randomIntBetwee...
public void testSimpleStats() throws Exception { // clear all stats first client().admin().indices().prepareStats().clear().execute().actionGet(); final int numNodes = immutableCluster().dataNodes(); assertThat(numNodes, greaterThanOrEqualTo(2)); final int shardsIdx1 = random...
protected int maximumNumberOfReplicas() { return cluster().dataNodes() - 1; }
protected int maximumNumberOfReplicas() { return immutableCluster().dataNodes() - 1; }
public void dispatchDelayedMessages () { if (queue.size() == 0) return; // Get current time long currentTime = getCurrentTime(); // Now peek at the queue to see if any telegrams need dispatching. // remove all telegrams from the front of the queue that have gone // past their time stamp. do { // Rea...
public void dispatchDelayedMessages () { if (queue.size() == 0) return; // Get current time long currentTime = getCurrentTime(); // Now peek at the queue to see if any telegrams need dispatching. // remove all telegrams from the front of the queue that have gone // past their time stamp. do { // Rea...
public static void main (String[] args) throws Exception { new NativeCodeGenerator().generate("src/", "bin/", "jni/"); BuildConfig buildConfig = new BuildConfig("gdx-controllers-desktop"); String[] windowsSrc = {"*.cpp", "ois-v1-4svn/src/*.cpp", "ois-v1-4svn/src/win32/*.cpp" }; String[] linuxSrc ...
public static void main (String[] args) throws Exception { new NativeCodeGenerator().generate("src/", "bin/", "jni/"); BuildConfig buildConfig = new BuildConfig("gdx-controllers-desktop"); String[] windowsSrc = {"*.cpp", "ois-v1-4svn/src/*.cpp", "ois-v1-4svn/src/win32/*.cpp" }; String[] linuxSrc ...
public int indexRecoveryProgress() { if (recoveredIndexSize == 0) { if (indexSize == reusedIndexSize) { return 100; } return 0; } return (int) (((double) recoveredIndexSize) / expectedRecoveredIndexSize().bytes() * 100); }
public int indexRecoveryProgress() { if (recoveredIndexSize == 0) { if (indexSize != 0 && indexSize == reusedIndexSize) { return 100; } return 0; } return (int) (((double) recoveredIndexSize) / expectedRecoveredIndexSize().bytes() * 100); ...
@Override protected PercolateResponse shardOperation(PercolateRequest request, int shardId) throws ElasticSearchException { IndexService indexService = indicesService.indexServiceSafe(request.index()); PercolatorService percolatorService = indexService.percolateService(); PercolatorExecutor...
@Override protected PercolateResponse shardOperation(PercolateRequest request, int shardId) throws ElasticSearchException { IndexService indexService = indicesService.indexServiceSafe(request.index()); PercolatorService percolatorService = indexService.percolateService(); PercolatorExecutor...
public MassData getMassData() { jniGetMassData(addr, tmp); massData.mass = tmp[0]; massData.center.x = tmp[1]; massData.center.y = tmp[2]; massData.I = tmp[3]; return null; }
public MassData getMassData() { jniGetMassData(addr, tmp); massData.mass = tmp[0]; massData.center.x = tmp[1]; massData.center.y = tmp[2]; massData.I = tmp[3]; return massData; }
@BeforeClass public void setupServer() { node = nodeBuilder().settings(settingsBuilder().put("node.local", true)).node(); }
@BeforeClass public void setupServer() { node = nodeBuilder().local(true).node(); }
public void onUnload(FieldMapper.Names fieldNames, FieldDataType fieldDataType, boolean wasEvicted, long sizeInBytes, @Nullable AtomicFieldData fieldData) { assert sizeInBytes > 0 : "When reducing circuit breaker, it should be adjusted with a positive number and not [" + sizeInBytes + "]"; circuitBr...
public void onUnload(FieldMapper.Names fieldNames, FieldDataType fieldDataType, boolean wasEvicted, long sizeInBytes, @Nullable AtomicFieldData fieldData) { assert sizeInBytes >= 0 : "When reducing circuit breaker, it should be adjusted with a number higher or equal to 0 and not [" + sizeInBytes + "]"; ...
private void postTouchEvent (AndroidInput input, int type, int x, int y, int pointer) { synchronized (input) { TouchEvent event = input.freeTouchEvents.newObject(); event.pointer = 0; event.x = x; event.y = y; event.type = type; input.touchEvents.add(event); } }
private void postTouchEvent (AndroidInput input, int type, int x, int y, int pointer) { synchronized (input) { TouchEvent event = input.freeTouchEvents.newObject(); event.pointer = pointer; event.x = x; event.y = y; event.type = type; input.touchEvents.add(event); } }
protected Settings nodeSettings(int nodeOrdinal) { return ImmutableSettings.builder() .put(super.nodeSettings(nodeOrdinal)) .put("action.admin.cluster.node.shutdown.delay", "10ms") .put("gateway.recover_after_nodes", 2) .put(BalancedShardsAlloc...
protected Settings nodeSettings(int nodeOrdinal) { return ImmutableSettings.builder() .put(super.nodeSettings(nodeOrdinal)) .put("action.admin.cluster.node.shutdown.delay", "10ms") .put("gateway.recover_after_nodes", 2) .put(BalancedShardsAlloc...
@Inject public FsGateway(Settings settings, ClusterService clusterService, MetaDataCreateIndexService createIndexService, Environment environment, ClusterName clusterName, ThreadPool threadPool) throws IOException { super(settings, clusterService, createIndexService); F...
@Inject public FsGateway(Settings settings, ClusterService clusterService, MetaDataCreateIndexService createIndexService, Environment environment, ClusterName clusterName, ThreadPool threadPool) throws IOException { super(settings, clusterService, createIndexService); F...
public FsIndexStore(Index index, @IndexSettings Settings indexSettings, IndexService indexService, NodeEnvironment nodeEnv) { super(index, indexSettings, indexService); if (nodeEnv.hasNodeFile()) { this.location = new File(new File(nodeEnv.nodeLocation(), "indices"), index.name()); ...
public FsIndexStore(Index index, @IndexSettings Settings indexSettings, IndexService indexService, NodeEnvironment nodeEnv) { super(index, indexSettings, indexService); if (nodeEnv.hasNodeFile()) { this.location = new File(new File(nodeEnv.nodeDataLocation(), "indices"), index.name()); ...
@Inject public FsTranslog(ShardId shardId, @IndexSettings Settings indexSettings, NodeEnvironment nodeEnv) { super(shardId, indexSettings); this.location = new File(new File(new File(new File(nodeEnv.nodeLocation(), "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(new File(new File(new File(nodeEnv.nodeDataLocation(), "indices"), shardId.index().name()), Integer.toString(shardId.id())), "translog"...
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()); ...
public void run() throws Exception { long numberOfRounds = 0; long testStart = System.currentTimeMillis(); while (true) { Node[] nodes = new Node[numberOfNodes]; for (int i = 0; i < nodes.length; i++) { nodes[i] = NodeBuilder.nodeBuilder().settings(set...
public void run() throws Exception { long numberOfRounds = 0; long testStart = System.currentTimeMillis(); while (true) { Node[] nodes = new Node[numberOfNodes]; for (int i = 0; i < nodes.length; i++) { nodes[i] = NodeBuilder.nodeBuilder().settings(set...
public void run() throws Exception { Node[] nodes = new Node[numberOfNodes]; for (int i = 0; i < nodes.length; i++) { nodes[i] = NodeBuilder.nodeBuilder().settings(settings).node(); } client = NodeBuilder.nodeBuilder().settings(settings).client(true).node(); logg...
public void run() throws Exception { Node[] nodes = new Node[numberOfNodes]; for (int i = 0; i < nodes.length; i++) { nodes[i] = NodeBuilder.nodeBuilder().settings(settings).node(); } client = NodeBuilder.nodeBuilder().settings(settings).client(true).node(); logg...
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...
private SnapshotsStatusResponse buildResponse(SnapshotsStatusRequest request, ImmutableList<SnapshotMetaData.Entry> currentSnapshots, TransportNodesSnapshotsStatus.NodesSnapshotStatus nodeSnapshotStatuses) { // First process snapshot that are currently proce...
private SnapshotsStatusResponse buildResponse(SnapshotsStatusRequest request, ImmutableList<SnapshotMetaData.Entry> currentSnapshots, TransportNodesSnapshotsStatus.NodesSnapshotStatus nodeSnapshotStatuses) { // First process snapshot that are currently proce...
public ShardStats(IndexShard indexShard, CommonStatsFlags flags) { super(indexShard.routingEntry().index(), indexShard.routingEntry().id()); this.shardRouting = indexShard.routingEntry(); this.stats = new CommonStats(indexShard, flags); }
public ShardStats(IndexShard indexShard, CommonStatsFlags flags) { super(indexShard.routingEntry().shardId()); this.shardRouting = indexShard.routingEntry(); this.stats = new CommonStats(indexShard, flags); }