public abstract class XContentStructure extends Object
Modifier and Type | Class and Description |
---|---|
static class |
XContentStructure.InnerQuery
InnerQuery is an extension of
XContentStructure that eagerly
parses the query in a streaming manner if the types are available at
construction time. |
Constructor and Description |
---|
XContentStructure(QueryParseContext queryParseContext)
Create a new XContentStructure for the current parsing context.
|
Modifier and Type | Method and Description |
---|---|
org.apache.lucene.search.Query |
asQuery(String... types)
Use the captured bytes to parse the inner query using the specified
types.
|
BytesReference |
bytes()
Return the bytes that are going to be used for parsing
|
void |
bytes(BytesReference innerBytes)
Set the bytes to be used for parsing
|
XContentStructure |
freeze()
"Freeze" the parsing content, which means copying the current parser's
structure into an internal
BytesReference to be parsed later. |
public XContentStructure(QueryParseContext queryParseContext)
public XContentStructure freeze() throws IOException
BytesReference
to be parsed later.IOException
public void bytes(BytesReference innerBytes)
public BytesReference bytes()
public org.apache.lucene.search.Query asQuery(String... types) throws IOException
types
- types to be used during the inner query parsingQuery
parsed from the bytes captured in freeze()
IOException
Copyright © 2009–2016. All rights reserved.