io.searchbox.indices
Class CreateIndex

java.lang.Object
  extended by io.searchbox.AbstractAction
      extended by io.searchbox.indices.CreateIndex
All Implemented Interfaces:
Action

public class CreateIndex
extends AbstractAction
implements Action

Author:
Dogukan Sonmez

Field Summary
 
Fields inherited from class io.searchbox.AbstractAction
id, indexName, typeName
 
Constructor Summary
CreateIndex(String indexName)
           
CreateIndex(String indexName, org.elasticsearch.common.settings.Settings settings)
           
CreateIndex(String indexName, String settingsSource)
           
 
Method Summary
 byte[] createByteResult(Map jsonMap)
           
 String getName()
           
 
Methods inherited from class io.searchbox.AbstractAction
addParameter, buildQueryString, buildURI, buildURI, getData, getId, getIdFromSource, getIndexName, getParameter, getPathToResult, getRestMethodName, getTypeName, getURI, 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
 
Methods inherited from interface io.searchbox.Action
getData, getPathToResult, getRestMethodName, getURI
 

Constructor Detail

CreateIndex

public CreateIndex(String indexName)

CreateIndex

public CreateIndex(String indexName,
                   org.elasticsearch.common.settings.Settings settings)

CreateIndex

public CreateIndex(String indexName,
                   String settingsSource)
            throws FileNotFoundException
Throws:
FileNotFoundException
Method Detail

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


Copyright © 2012. All Rights Reserved.