io.searchbox.core
Class Count
java.lang.Object
io.searchbox.AbstractAction
io.searchbox.core.Count
- All Implemented Interfaces:
- Action
public class Count
- extends AbstractAction
- implements Action
- Author:
- Dogukan Sonmez
Constructor Summary |
protected |
Count()
|
|
Count(org.elasticsearch.action.ActionRequest request)
|
|
Count(String query)
|
Methods inherited from class io.searchbox.AbstractAction |
addParameter, buildQueryString, buildURI, buildURI, getData, getId, getIdFromSource, getIndexName, getParameter, getTypeName, isBulkOperation, isParameterExist, isValid, isValid, removeParameter, setBulkOperation, setData, setPathToResult, setRestMethodName, setURI |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Count
public Count(String query)
Count
protected Count()
Count
public Count(org.elasticsearch.action.ActionRequest request)
throws IOException
- Throws:
IOException
addIndex
public void addIndex(String index)
addType
public void addType(String type)
removeIndex
public boolean removeIndex(String index)
removeType
public boolean removeType(String type)
clearAllIndex
public void clearAllIndex()
clearAllType
public void clearAllType()
addIndex
public void addIndex(Collection<String> index)
addType
public void addType(Collection<String> type)
isIndexExist
public boolean isIndexExist(String index)
isTypeExist
public boolean isTypeExist(String type)
indexSize
public int indexSize()
typeSize
public int typeSize()
getURI
public String getURI()
- Specified by:
getURI
in interface Action
- Overrides:
getURI
in class AbstractAction
createQueryString
protected String createQueryString(LinkedHashSet<String> set)
getName
public String getName()
- Specified by:
getName
in interface Action
- Overrides:
getName
in class AbstractAction
createByteResult
public byte[] createByteResult(Map jsonMap)
throws IOException
- Specified by:
createByteResult
in interface Action
- Throws:
IOException
getPathToResult
public String getPathToResult()
- Specified by:
getPathToResult
in interface Action
- Overrides:
getPathToResult
in class AbstractAction
getRestMethodName
public String getRestMethodName()
- Specified by:
getRestMethodName
in interface Action
- Overrides:
getRestMethodName
in class AbstractAction
Copyright © 2012. All Rights Reserved.