Package org.nuxeo.elasticsearch.bulk
Class IndexAction
- java.lang.Object
-
- org.nuxeo.elasticsearch.bulk.IndexAction
-
- All Implemented Interfaces:
StreamProcessorTopology
public class IndexAction extends Object implements StreamProcessorTopology
A Nuxeo Bulk Action to index documents. it decouples the document extraction to build the elasticsearch request and the indexing.- Since:
- 10.3
-
-
Field Summary
Fields Modifier and Type Field Description static String
ACTION_FULL_NAME
static String
ACTION_NAME
static int
BULK_FLUSH_INTERVAL_DEFAULT
static String
BULK_FLUSH_INTERVAL_OPTION
static int
ES_BULK_ACTION_DEFAULT
static String
ES_BULK_ACTION_OPTION
static int
ES_BULK_SIZE_DEFAULT
static String
ES_BULK_SIZE_OPTION
static String
INDEX_UPDATE_ALIAS_PARAM
static String
REFRESH_INDEX_PARAM
-
Constructor Summary
Constructors Constructor Description IndexAction()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static int
getOptionAsInteger(Map<String,String> options, String option, int defaultValue)
Topology
getTopology(Map<String,String> options)
Returns a Stream computation topology.
-
-
-
Field Detail
-
ACTION_NAME
public static final String ACTION_NAME
- See Also:
- Constant Field Values
-
ACTION_FULL_NAME
public static final String ACTION_FULL_NAME
- See Also:
- Constant Field Values
-
ES_BULK_SIZE_OPTION
public static final String ES_BULK_SIZE_OPTION
- See Also:
- Constant Field Values
-
ES_BULK_SIZE_DEFAULT
public static final int ES_BULK_SIZE_DEFAULT
- See Also:
- Constant Field Values
-
ES_BULK_ACTION_OPTION
public static final String ES_BULK_ACTION_OPTION
- See Also:
- Constant Field Values
-
ES_BULK_ACTION_DEFAULT
public static final int ES_BULK_ACTION_DEFAULT
- See Also:
- Constant Field Values
-
BULK_FLUSH_INTERVAL_OPTION
public static final String BULK_FLUSH_INTERVAL_OPTION
- See Also:
- Constant Field Values
-
BULK_FLUSH_INTERVAL_DEFAULT
public static final int BULK_FLUSH_INTERVAL_DEFAULT
- See Also:
- Constant Field Values
-
INDEX_UPDATE_ALIAS_PARAM
public static final String INDEX_UPDATE_ALIAS_PARAM
- See Also:
- Constant Field Values
-
REFRESH_INDEX_PARAM
public static final String REFRESH_INDEX_PARAM
- See Also:
- Constant Field Values
-
-
Method Detail
-
getTopology
public Topology getTopology(Map<String,String> options)
Description copied from interface:StreamProcessorTopology
Returns a Stream computation topology.- Specified by:
getTopology
in interfaceStreamProcessorTopology
-
-