public class TermVectorsResponse extends ActionResponse implements ToXContentObject
TransportResponse.Empty
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor and Description |
---|
TermVectorsResponse(java.lang.String index,
java.lang.String type,
java.lang.String id) |
Modifier and Type | Method and Description |
---|---|
org.apache.lucene.index.Fields |
getFields() |
java.lang.String |
getId() |
java.lang.String |
getIndex() |
TimeValue |
getTook() |
long |
getTookInMillis() |
java.lang.String |
getType() |
java.lang.Long |
getVersion() |
boolean |
isArtificial() |
boolean |
isExists() |
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
void |
setArtificial(boolean artificial) |
void |
setDocVersion(long version) |
void |
setExists(boolean exists) |
void |
setFields(org.apache.lucene.index.Fields termVectorsByField,
java.util.Set<java.lang.String> selectedFields,
java.util.EnumSet<TermVectorsRequest.Flag> flags,
org.apache.lucene.index.Fields topLevelFields) |
void |
setFields(org.apache.lucene.index.Fields termVectorsByField,
java.util.Set<java.lang.String> selectedFields,
java.util.EnumSet<TermVectorsRequest.Flag> flags,
org.apache.lucene.index.Fields topLevelFields,
AggregatedDfs dfs,
TermVectorsFilter termVectorsFilter) |
void |
setHeader(BytesReference header) |
void |
setTermVectorsField(BytesStreamOutput output) |
void |
setTookInMillis(long tookInMillis) |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
remoteAddress, remoteAddress
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isFragment
public TermVectorsResponse(java.lang.String index, java.lang.String type, java.lang.String id)
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
writeTo
in class ActionResponse
java.io.IOException
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
readFrom
in class ActionResponse
java.io.IOException
public org.apache.lucene.index.Fields getFields() throws java.io.IOException
java.io.IOException
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException
public void setTookInMillis(long tookInMillis)
public TimeValue getTook()
public long getTookInMillis()
public boolean isExists()
public void setExists(boolean exists)
public void setFields(org.apache.lucene.index.Fields termVectorsByField, java.util.Set<java.lang.String> selectedFields, java.util.EnumSet<TermVectorsRequest.Flag> flags, org.apache.lucene.index.Fields topLevelFields) throws java.io.IOException
java.io.IOException
public void setFields(org.apache.lucene.index.Fields termVectorsByField, java.util.Set<java.lang.String> selectedFields, java.util.EnumSet<TermVectorsRequest.Flag> flags, org.apache.lucene.index.Fields topLevelFields, @Nullable AggregatedDfs dfs, TermVectorsFilter termVectorsFilter) throws java.io.IOException
java.io.IOException
public void setTermVectorsField(BytesStreamOutput output)
public void setHeader(BytesReference header)
public void setDocVersion(long version)
public java.lang.Long getVersion()
public java.lang.String getIndex()
public java.lang.String getType()
public java.lang.String getId()
public boolean isArtificial()
public void setArtificial(boolean artificial)