public class FetchSourceContext extends Object implements Streamable
Modifier and Type | Field and Description |
---|---|
static FetchSourceContext |
DO_NOT_FETCH_SOURCE |
static FetchSourceContext |
FETCH_SOURCE |
Constructor and Description |
---|
FetchSourceContext(boolean fetchSource) |
FetchSourceContext(boolean fetchSource,
String[] includes,
String[] excludes,
boolean transform) |
FetchSourceContext(String include) |
FetchSourceContext(String[] includes) |
FetchSourceContext(String[] includes,
String[] excludes) |
FetchSourceContext(String include,
String exclude) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String[] |
excludes() |
FetchSourceContext |
excludes(String[] excludes) |
boolean |
fetchSource() |
FetchSourceContext |
fetchSource(boolean fetchSource) |
int |
hashCode() |
String[] |
includes() |
FetchSourceContext |
includes(String[] includes) |
static FetchSourceContext |
optionalReadFromStream(StreamInput in) |
static void |
optionalWriteToStream(FetchSourceContext context,
StreamOutput out) |
static FetchSourceContext |
parseFromRestRequest(RestRequest request) |
void |
readFrom(StreamInput in) |
boolean |
transformSource()
Should the document be transformed after the source is loaded?
|
FetchSourceContext |
transformSource(boolean transformSource)
Should the document be transformed after the source is loaded?
|
void |
writeTo(StreamOutput out) |
public static final FetchSourceContext FETCH_SOURCE
public static final FetchSourceContext DO_NOT_FETCH_SOURCE
public FetchSourceContext(boolean fetchSource)
public FetchSourceContext(String include)
public FetchSourceContext(String[] includes)
public boolean fetchSource()
public FetchSourceContext fetchSource(boolean fetchSource)
public boolean transformSource()
public FetchSourceContext transformSource(boolean transformSource)
public String[] includes()
public FetchSourceContext includes(String[] includes)
public String[] excludes()
public FetchSourceContext excludes(String[] excludes)
public static FetchSourceContext optionalReadFromStream(StreamInput in) throws IOException
IOException
public static void optionalWriteToStream(FetchSourceContext context, StreamOutput out) throws IOException
IOException
public static FetchSourceContext parseFromRestRequest(RestRequest request)
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
IOException
Copyright © 2009–2016. All rights reserved.