better delete by query request serialization handling

This commit is contained in:
kimchy 2010-05-13 09:02:59 +03:00
parent 0e163e3649
commit b0dd31e600
1 changed files with 10 additions and 0 deletions

View File

@ -167,7 +167,17 @@ public class DeleteByQueryRequest extends IndicesReplicationOperationRequest {
* The query source to execute. * The query source to execute.
*/ */
@Required public DeleteByQueryRequest query(byte[] querySource) { @Required public DeleteByQueryRequest query(byte[] querySource) {
return query(querySource, 0, querySource.length);
}
/**
* The query source to execute.
*/
@Required public DeleteByQueryRequest query(byte[] querySource, int offset, int length) {
this.querySource = querySource; this.querySource = querySource;
this.querySourceOffset = offset;
this.querySourceLength = length;
this.querySourceUnsafe = false;
return this; return this;
} }