public final class EsTestUtil extends Object
ElasticSearch example utilities.
Modifier and Type | Method and Description |
---|---|
static EsTupleMapper |
generateDefaultTupleMapper()
Generates a new tuple mapper.
|
static Tuple |
generateTestTuple(String source,
String index,
String type,
String id)
Generates a test tuple.
|
static org.elasticsearch.node.Node |
startEsNode()
Starts an ElasticSearch node.
|
static void |
waitForSeconds(int seconds)
Waits for specified seconds and ignores
InterruptedException . |
public static Tuple generateTestTuple(String source, String index, String type, String id)
Generates a test tuple.
source
- the source of the tupleindex
- the index of the tupletype
- the type of the tupleid
- the id of the tuplepublic static EsTupleMapper generateDefaultTupleMapper()
Generates a new tuple mapper.
public static org.elasticsearch.node.Node startEsNode()
Starts an ElasticSearch node.
public static void waitForSeconds(int seconds)
Waits for specified seconds and ignores InterruptedException
.
seconds
- the seconds to waitCopyright © 2019 The Apache Software Foundation. All rights reserved.