public class TermVectorsResponse extends ActionResponse implements ToXContent
TransportResponse.EmptyToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsheadersEMPTY_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, remoteAddresscontextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContextpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamablewriteTo in class ActionResponseIOExceptionpublic void readFrom(StreamInput in) throws IOException
readFrom in interface StreamablereadFrom in class ActionResponseIOExceptionpublic org.apache.lucene.index.Fields getFields()
throws IOException
IOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent in interface ToXContentIOExceptionpublic 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
IOExceptionpublic 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
IOExceptionpublic 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–2017. All rights reserved.