23
23
import org .elasticsearch .action .ActionRequestValidationException ;
24
24
import org .elasticsearch .action .IndicesRequest ;
25
25
import org .elasticsearch .action .support .IndicesOptions ;
26
- import org .elasticsearch .action .support .master .MasterNodeOperationRequest ;
27
26
import org .elasticsearch .common .Strings ;
28
27
import org .elasticsearch .common .io .stream .StreamInput ;
29
28
import org .elasticsearch .common .io .stream .StreamOutput ;
30
- import org .elasticsearch .common .unit .TimeValue ;
31
29
32
30
import java .io .IOException ;
33
31
@@ -49,15 +47,6 @@ public GetFieldMappingsRequest() {
49
47
50
48
}
51
49
52
- public GetFieldMappingsRequest (GetFieldMappingsRequest other ) {
53
- this .local = other .local ;
54
- this .includeDefaults = other .includeDefaults ;
55
- this .indices = other .indices ;
56
- this .types = other .types ;
57
- this .indicesOptions = other .indicesOptions ;
58
- this .fields = other .fields ;
59
- }
60
-
61
50
/**
62
51
* Indicate whether the receiving node should operate based on local index information or forward requests,
63
52
* where needed, to other nodes. If running locally, request will not raise errors if running locally & missing indices.
@@ -129,8 +118,6 @@ public ActionRequestValidationException validate() {
129
118
@ Override
130
119
public void writeTo (StreamOutput out ) throws IOException {
131
120
super .writeTo (out );
132
- // This request used to inherit from MasterNodeOperationRequest, so for bwc we need to keep serializing it.
133
- MasterNodeOperationRequest .DEFAULT_MASTER_NODE_TIMEOUT .writeTo (out );
134
121
out .writeStringArray (indices );
135
122
out .writeStringArray (types );
136
123
indicesOptions .writeIndicesOptions (out );
@@ -142,8 +129,6 @@ public void writeTo(StreamOutput out) throws IOException {
142
129
@ Override
143
130
public void readFrom (StreamInput in ) throws IOException {
144
131
super .readFrom (in );
145
- // This request used to inherit from MasterNodeOperationRequest, so for bwc we need to keep serializing it.
146
- TimeValue .readTimeValue (in );
147
132
indices = in .readStringArray ();
148
133
types = in .readStringArray ();
149
134
indicesOptions = IndicesOptions .readIndicesOptions (in );
0 commit comments