AliRoot Core  3dc7879 (3dc7879)
AliElasticSearchRootTest.C File Reference

Go to the source code of this file.

Functions

void InitElastic ()
 
void testExportBinary ()
 
void testGetIndexLayout ()
 
void testSelect ()
 
void AliElasticSearchRootTest (char *phostName=0)
 
void testExportClass ()
 

Variables

char * hostName ="localhost:9200"
 
AliElasticSearchRootpelastic =NULL
 

Function Documentation

void AliElasticSearchRootTest ( char *  phostName = 0)

Definition at line 42 of file AliElasticSearchRootTest.C.

void InitElastic ( )

Definition at line 53 of file AliElasticSearchRootTest.C.

Referenced by AliElasticSearchRootTest().

void testExportBinary ( )

testExportBinary() AliElasticSearchRoot::ExportBinary

  • 1.) Get production tree and export al branches to the elastic key /alice_mc/passguess/
  • 2.) Get QA/TPC and export all branches to the elastic key /alice/tpc_bulk
  • 3.) Get QA.TPC and export selected branches to the elastic key /alice/tpx_test0

Definition at line 64 of file AliElasticSearchRootTest.C.

Referenced by AliElasticSearchRootTest().

void testExportClass ( )

Definition at line 102 of file AliElasticSearchRootTest.C.

Referenced by AliElasticSearchRootTest().

void testGetIndexLayout ( )

Definition at line 124 of file AliElasticSearchRootTest.C.

Referenced by AliElasticSearchRootTest().

void testSelect ( )

Definition at line 136 of file AliElasticSearchRootTest.C.

Referenced by AliElasticSearchRootTest().

Variable Documentation

char* hostName ="localhost:9200"

test of AliEleasticSearchRoot - C++ interace to the Elastic using gSystem->GetFromPipe,Exec, curl and jq

Origignally planned usage of higher level C++ inteface not possible for a moment

  • C++11 or better C++14 and ROOT6 needed (e.g https://github.com/QHedgeTech/cpp-elasticsearch/tree/master/src )
    Author
    marian Ivanov maria.nosp@m.n.iv.nosp@m.anov@.nosp@m.cern.nosp@m..ch
    In order to run the test Elastic server has to be running = default location hostName="localhost:9200" - but it can be specified as test argument to run tests one by one
    1 .L $AliRoot_SRC/STAT/Macros/AliElasticSearchRootTest.C
    2  InitElastic();
    3  testGetIndexLayout();
    4  testSelect();
    To run full test
    1 aliroot -b -q $AliRoot_SRC/STAT/Macros/AliElasticSearchRootTest.C |tee AliElasticSearchRootTest.log
    2 Parse output
    3  cat AliElasticSearchRootTest.log | grep "I-AliElasticSearchRoot.*Key"
    4  I-AliElasticSearchRoot::AliElasticSearchRootTest: KeyValue-Begin
    5  I-AliElasticSearchRoot::ExportBinary: KeyValue-Begin
    6  I-AliElasticSearchRoot::ExportBinary: KeyValue-End
    7  I-AliElasticSearchRoot::GetIndexLayout: KeyValue-Begin
    8  I-AliElasticSearchRoot::GetIndexLayout: KeyValue-End
    9  I-AliElasticSearchRoot::select: KeyValue-Begin
    10  I-AliElasticSearchRoot::select: KeyValue-End
    11  I-AliElasticSearchRoot::AliElasticSearchRootTest: KeyValue-End

Definition at line 33 of file AliElasticSearchRootTest.C.

Referenced by AliElasticSearchRootTest(), and InitElastic().

AliElasticSearchRoot* pelastic =NULL

Definition at line 34 of file AliElasticSearchRootTest.C.