Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@

package org.elasticsearch.action.get;

import com.carrotsearch.hppc.IntArrayList;

import org.elasticsearch.action.ActionRequestValidationException;
import org.elasticsearch.action.support.single.shard.SingleShardRequest;
import org.elasticsearch.common.io.stream.StreamInput;
Expand All @@ -26,13 +24,13 @@ public class MultiGetShardRequest extends SingleShardRequest<MultiGetShardReques
private boolean realtime;
private boolean refresh;

IntArrayList locations;
List<Integer> locations;
List<MultiGetRequest.Item> items;

MultiGetShardRequest(StreamInput in) throws IOException {
super(in);
int size = in.readVInt();
locations = new IntArrayList(size);
locations = new ArrayList<>(size);
items = new ArrayList<>(size);

for (int i = 0; i < size; i++) {
Expand All @@ -48,7 +46,7 @@ public class MultiGetShardRequest extends SingleShardRequest<MultiGetShardReques
MultiGetShardRequest(MultiGetRequest multiGetRequest, String index, int shardId) {
super(index);
this.shardId = shardId;
locations = new IntArrayList();
locations = new ArrayList<>();
items = new ArrayList<>();
preference = multiGetRequest.preference;
realtime = multiGetRequest.realtime;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@

package org.elasticsearch.action.get;

import com.carrotsearch.hppc.IntArrayList;

import org.elasticsearch.action.ActionResponse;
import org.elasticsearch.common.io.stream.StreamInput;
import org.elasticsearch.common.io.stream.StreamOutput;
Expand All @@ -20,20 +18,20 @@

public class MultiGetShardResponse extends ActionResponse {

final IntArrayList locations;
final List<Integer> locations;
final List<GetResponse> responses;
final List<MultiGetResponse.Failure> failures;

MultiGetShardResponse() {
locations = new IntArrayList();
locations = new ArrayList<>();
responses = new ArrayList<>();
failures = new ArrayList<>();
}

MultiGetShardResponse(StreamInput in) throws IOException {
super(in);
int size = in.readVInt();
locations = new IntArrayList(size);
locations = new ArrayList<>(size);
responses = new ArrayList<>(size);
failures = new ArrayList<>(size);
for (int i = 0; i < size; i++) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@

package org.elasticsearch.action.termvectors;

import com.carrotsearch.hppc.IntArrayList;

import org.elasticsearch.action.ActionRequestValidationException;
import org.elasticsearch.action.support.single.shard.SingleShardRequest;
import org.elasticsearch.common.io.stream.StreamInput;
Expand All @@ -24,13 +22,13 @@ public class MultiTermVectorsShardRequest extends SingleShardRequest<MultiTermVe
private int shardId;
private String preference;

IntArrayList locations;
List<Integer> locations;
List<TermVectorsRequest> requests;

MultiTermVectorsShardRequest(StreamInput in) throws IOException {
super(in);
int size = in.readVInt();
locations = new IntArrayList(size);
locations = new ArrayList<>(size);
requests = new ArrayList<>(size);
for (int i = 0; i < size; i++) {
locations.add(in.readVInt());
Expand All @@ -43,7 +41,7 @@ public class MultiTermVectorsShardRequest extends SingleShardRequest<MultiTermVe
MultiTermVectorsShardRequest(String index, int shardId) {
super(index);
this.shardId = shardId;
locations = new IntArrayList();
locations = new ArrayList<>();
requests = new ArrayList<>();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@

package org.elasticsearch.action.termvectors;

import com.carrotsearch.hppc.IntArrayList;

import org.elasticsearch.action.ActionResponse;
import org.elasticsearch.common.io.stream.StreamInput;
import org.elasticsearch.common.io.stream.StreamOutput;
Expand All @@ -20,20 +18,20 @@

public class MultiTermVectorsShardResponse extends ActionResponse {

final IntArrayList locations;
final List<Integer> locations;
final List<TermVectorsResponse> responses;
final List<MultiTermVectorsResponse.Failure> failures;

MultiTermVectorsShardResponse() {
locations = new IntArrayList();
locations = new ArrayList<>();
responses = new ArrayList<>();
failures = new ArrayList<>();
}

MultiTermVectorsShardResponse(StreamInput in) throws IOException {
super(in);
int size = in.readVInt();
locations = new IntArrayList(size);
locations = new ArrayList<>(size);
responses = new ArrayList<>(size);
failures = new ArrayList<>(size);
for (int i = 0; i < size; i++) {
Expand Down