public class TermVectorsResponse extends ActionResponse implements ToXContent
TransportResponse.Empty
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
headers
EMPTY_PARAMS
Constructor and Description |
---|
TermVectorsResponse(String index,
String type,
String id) |
Modifier and Type | Method and Description |
---|---|
org.apache.lucene.index.Fields |
getFields() |
String |
getId() |
String |
getIndex() |
TimeValue |
getTook() |
long |
getTookInMillis() |
String |
getType() |
Long |
getVersion() |
boolean |
isArtificial() |
boolean |
isExists() |
void |
readFrom(StreamInput in) |
void |
setArtificial(boolean artificial) |
void |
setDocVersion(long version) |
void |
setExists(boolean exists) |
void |
setFields(org.apache.lucene.index.Fields termVectorsByField,
Set<String> selectedFields,
EnumSet<TermVectorsRequest.Flag> flags,
org.apache.lucene.index.Fields topLevelFields) |
void |
setFields(org.apache.lucene.index.Fields termVectorsByField,
Set<String> selectedFields,
EnumSet<TermVectorsRequest.Flag> flags,
org.apache.lucene.index.Fields topLevelFields,
AggregatedDfs dfs,
TermVectorsFilter termVectorsFilter) |
void |
setHeader(BytesReference header) |
void |
setTermVectorsField(BytesStreamOutput output) |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
updateTookInMillis(long startTime) |
void |
writeTo(StreamOutput out) |
remoteAddress, remoteAddress
contextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContext
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
writeTo
in class ActionResponse
IOException
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
readFrom
in class ActionResponse
IOException
public org.apache.lucene.index.Fields getFields() throws IOException
IOException
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent
in interface ToXContent
IOException
public void updateTookInMillis(long startTime)
public TimeValue getTook()
public long getTookInMillis()
public boolean isExists()
public void setExists(boolean exists)
public void setFields(org.apache.lucene.index.Fields termVectorsByField, Set<String> selectedFields, EnumSet<TermVectorsRequest.Flag> flags, org.apache.lucene.index.Fields topLevelFields) throws IOException
IOException
public void setFields(org.apache.lucene.index.Fields termVectorsByField, Set<String> selectedFields, EnumSet<TermVectorsRequest.Flag> flags, org.apache.lucene.index.Fields topLevelFields, @Nullable AggregatedDfs dfs, TermVectorsFilter termVectorsFilter) throws IOException
IOException
public void setTermVectorsField(BytesStreamOutput output)
public void setHeader(BytesReference header)
public void setDocVersion(long version)
public Long getVersion()
public String getIndex()
public String getType()
public String getId()
public boolean isArtificial()
public void setArtificial(boolean artificial)
Copyright © 2009–2016. All rights reserved.