public final class EsTestUtil extends Object
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)
source
- the source of the tupleindex
- the index of the tupletype
- the type of the tupleid
- the id of the tuplepublic static EsTupleMapper generateDefaultTupleMapper()
public static org.elasticsearch.node.Node startEsNode()
public static void waitForSeconds(int seconds)
InterruptedException
.seconds
- the seconds to waitCopyright © 2023 The Apache Software Foundation. All rights reserved.