Cassandra.h 128 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685
  1. /**
  2. * Autogenerated by Thrift Compiler (0.7.0)
  3. *
  4. * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
  5. */
  6. #ifndef Cassandra_H
  7. #define Cassandra_H
  8. #include <TProcessor.h>
  9. #include "cassandra_types.h"
  10. namespace org { namespace apache { namespace cassandra {
  11. class CassandraIf {
  12. public:
  13. virtual ~CassandraIf() {}
  14. virtual void login(const AuthenticationRequest& auth_request) = 0;
  15. virtual void set_keyspace(const std::string& keyspace) = 0;
  16. virtual void get(ColumnOrSuperColumn& _return, const std::string& key, const ColumnPath& column_path, const ConsistencyLevel::type consistency_level) = 0;
  17. virtual void get_slice(std::vector<ColumnOrSuperColumn> & _return, const std::string& key, const ColumnParent& column_parent, const SlicePredicate& predicate, const ConsistencyLevel::type consistency_level) = 0;
  18. virtual int32_t get_count(const std::string& key, const ColumnParent& column_parent, const SlicePredicate& predicate, const ConsistencyLevel::type consistency_level) = 0;
  19. virtual void multiget_slice(std::map<std::string, std::vector<ColumnOrSuperColumn> > & _return, const std::vector<std::string> & keys, const ColumnParent& column_parent, const SlicePredicate& predicate, const ConsistencyLevel::type consistency_level) = 0;
  20. virtual void multiget_count(std::map<std::string, int32_t> & _return, const std::vector<std::string> & keys, const ColumnParent& column_parent, const SlicePredicate& predicate, const ConsistencyLevel::type consistency_level) = 0;
  21. virtual void get_range_slices(std::vector<KeySlice> & _return, const ColumnParent& column_parent, const SlicePredicate& predicate, const KeyRange& range, const ConsistencyLevel::type consistency_level) = 0;
  22. virtual void get_indexed_slices(std::vector<KeySlice> & _return, const ColumnParent& column_parent, const IndexClause& index_clause, const SlicePredicate& column_predicate, const ConsistencyLevel::type consistency_level) = 0;
  23. virtual void insert(const std::string& key, const ColumnParent& column_parent, const Column& column, const ConsistencyLevel::type consistency_level) = 0;
  24. virtual void add(const std::string& key, const ColumnParent& column_parent, const CounterColumn& column, const ConsistencyLevel::type consistency_level) = 0;
  25. virtual void remove(const std::string& key, const ColumnPath& column_path, const int64_t timestamp, const ConsistencyLevel::type consistency_level) = 0;
  26. virtual void remove_counter(const std::string& key, const ColumnPath& path, const ConsistencyLevel::type consistency_level) = 0;
  27. virtual void batch_mutate(const std::map<std::string, std::map<std::string, std::vector<Mutation> > > & mutation_map, const ConsistencyLevel::type consistency_level) = 0;
  28. virtual void truncate(const std::string& cfname) = 0;
  29. virtual void describe_schema_versions(std::map<std::string, std::vector<std::string> > & _return) = 0;
  30. virtual void describe_keyspaces(std::vector<KsDef> & _return) = 0;
  31. virtual void describe_cluster_name(std::string& _return) = 0;
  32. virtual void describe_version(std::string& _return) = 0;
  33. virtual void describe_ring(std::vector<TokenRange> & _return, const std::string& keyspace) = 0;
  34. virtual void describe_partitioner(std::string& _return) = 0;
  35. virtual void describe_snitch(std::string& _return) = 0;
  36. virtual void describe_keyspace(KsDef& _return, const std::string& keyspace) = 0;
  37. virtual void describe_splits(std::vector<std::string> & _return, const std::string& cfName, const std::string& start_token, const std::string& end_token, const int32_t keys_per_split) = 0;
  38. virtual void system_add_column_family(std::string& _return, const CfDef& cf_def) = 0;
  39. virtual void system_drop_column_family(std::string& _return, const std::string& column_family) = 0;
  40. virtual void system_add_keyspace(std::string& _return, const KsDef& ks_def) = 0;
  41. virtual void system_drop_keyspace(std::string& _return, const std::string& keyspace) = 0;
  42. virtual void system_update_keyspace(std::string& _return, const KsDef& ks_def) = 0;
  43. virtual void system_update_column_family(std::string& _return, const CfDef& cf_def) = 0;
  44. virtual void execute_cql_query(CqlResult& _return, const std::string& query, const Compression::type compression) = 0;
  45. };
  46. class CassandraNull : virtual public CassandraIf {
  47. public:
  48. virtual ~CassandraNull() {}
  49. void login(const AuthenticationRequest& /* auth_request */) {
  50. return;
  51. }
  52. void set_keyspace(const std::string& /* keyspace */) {
  53. return;
  54. }
  55. void get(ColumnOrSuperColumn& /* _return */, const std::string& /* key */, const ColumnPath& /* column_path */, const ConsistencyLevel::type /* consistency_level */) {
  56. return;
  57. }
  58. void get_slice(std::vector<ColumnOrSuperColumn> & /* _return */, const std::string& /* key */, const ColumnParent& /* column_parent */, const SlicePredicate& /* predicate */, const ConsistencyLevel::type /* consistency_level */) {
  59. return;
  60. }
  61. int32_t get_count(const std::string& /* key */, const ColumnParent& /* column_parent */, const SlicePredicate& /* predicate */, const ConsistencyLevel::type /* consistency_level */) {
  62. int32_t _return = 0;
  63. return _return;
  64. }
  65. void multiget_slice(std::map<std::string, std::vector<ColumnOrSuperColumn> > & /* _return */, const std::vector<std::string> & /* keys */, const ColumnParent& /* column_parent */, const SlicePredicate& /* predicate */, const ConsistencyLevel::type /* consistency_level */) {
  66. return;
  67. }
  68. void multiget_count(std::map<std::string, int32_t> & /* _return */, const std::vector<std::string> & /* keys */, const ColumnParent& /* column_parent */, const SlicePredicate& /* predicate */, const ConsistencyLevel::type /* consistency_level */) {
  69. return;
  70. }
  71. void get_range_slices(std::vector<KeySlice> & /* _return */, const ColumnParent& /* column_parent */, const SlicePredicate& /* predicate */, const KeyRange& /* range */, const ConsistencyLevel::type /* consistency_level */) {
  72. return;
  73. }
  74. void get_indexed_slices(std::vector<KeySlice> & /* _return */, const ColumnParent& /* column_parent */, const IndexClause& /* index_clause */, const SlicePredicate& /* column_predicate */, const ConsistencyLevel::type /* consistency_level */) {
  75. return;
  76. }
  77. void insert(const std::string& /* key */, const ColumnParent& /* column_parent */, const Column& /* column */, const ConsistencyLevel::type /* consistency_level */) {
  78. return;
  79. }
  80. void add(const std::string& /* key */, const ColumnParent& /* column_parent */, const CounterColumn& /* column */, const ConsistencyLevel::type /* consistency_level */) {
  81. return;
  82. }
  83. void remove(const std::string& /* key */, const ColumnPath& /* column_path */, const int64_t /* timestamp */, const ConsistencyLevel::type /* consistency_level */) {
  84. return;
  85. }
  86. void remove_counter(const std::string& /* key */, const ColumnPath& /* path */, const ConsistencyLevel::type /* consistency_level */) {
  87. return;
  88. }
  89. void batch_mutate(const std::map<std::string, std::map<std::string, std::vector<Mutation> > > & /* mutation_map */, const ConsistencyLevel::type /* consistency_level */) {
  90. return;
  91. }
  92. void truncate(const std::string& /* cfname */) {
  93. return;
  94. }
  95. void describe_schema_versions(std::map<std::string, std::vector<std::string> > & /* _return */) {
  96. return;
  97. }
  98. void describe_keyspaces(std::vector<KsDef> & /* _return */) {
  99. return;
  100. }
  101. void describe_cluster_name(std::string& /* _return */) {
  102. return;
  103. }
  104. void describe_version(std::string& /* _return */) {
  105. return;
  106. }
  107. void describe_ring(std::vector<TokenRange> & /* _return */, const std::string& /* keyspace */) {
  108. return;
  109. }
  110. void describe_partitioner(std::string& /* _return */) {
  111. return;
  112. }
  113. void describe_snitch(std::string& /* _return */) {
  114. return;
  115. }
  116. void describe_keyspace(KsDef& /* _return */, const std::string& /* keyspace */) {
  117. return;
  118. }
  119. void describe_splits(std::vector<std::string> & /* _return */, const std::string& /* cfName */, const std::string& /* start_token */, const std::string& /* end_token */, const int32_t /* keys_per_split */) {
  120. return;
  121. }
  122. void system_add_column_family(std::string& /* _return */, const CfDef& /* cf_def */) {
  123. return;
  124. }
  125. void system_drop_column_family(std::string& /* _return */, const std::string& /* column_family */) {
  126. return;
  127. }
  128. void system_add_keyspace(std::string& /* _return */, const KsDef& /* ks_def */) {
  129. return;
  130. }
  131. void system_drop_keyspace(std::string& /* _return */, const std::string& /* keyspace */) {
  132. return;
  133. }
  134. void system_update_keyspace(std::string& /* _return */, const KsDef& /* ks_def */) {
  135. return;
  136. }
  137. void system_update_column_family(std::string& /* _return */, const CfDef& /* cf_def */) {
  138. return;
  139. }
  140. void execute_cql_query(CqlResult& /* _return */, const std::string& /* query */, const Compression::type /* compression */) {
  141. return;
  142. }
  143. };
  144. class Cassandra_login_args {
  145. public:
  146. Cassandra_login_args() {
  147. }
  148. virtual ~Cassandra_login_args() throw() {}
  149. AuthenticationRequest auth_request;
  150. void __set_auth_request(const AuthenticationRequest& val) {
  151. auth_request = val;
  152. }
  153. bool operator == (const Cassandra_login_args & rhs) const
  154. {
  155. if (!(auth_request == rhs.auth_request))
  156. return false;
  157. return true;
  158. }
  159. bool operator != (const Cassandra_login_args &rhs) const {
  160. return !(*this == rhs);
  161. }
  162. bool operator < (const Cassandra_login_args & ) const;
  163. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  164. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  165. };
  166. class Cassandra_login_pargs {
  167. public:
  168. virtual ~Cassandra_login_pargs() throw() {}
  169. const AuthenticationRequest* auth_request;
  170. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  171. };
  172. typedef struct _Cassandra_login_result__isset {
  173. _Cassandra_login_result__isset() : authnx(false), authzx(false) {}
  174. bool authnx;
  175. bool authzx;
  176. } _Cassandra_login_result__isset;
  177. class Cassandra_login_result {
  178. public:
  179. Cassandra_login_result() {
  180. }
  181. virtual ~Cassandra_login_result() throw() {}
  182. AuthenticationException authnx;
  183. AuthorizationException authzx;
  184. _Cassandra_login_result__isset __isset;
  185. void __set_authnx(const AuthenticationException& val) {
  186. authnx = val;
  187. }
  188. void __set_authzx(const AuthorizationException& val) {
  189. authzx = val;
  190. }
  191. bool operator == (const Cassandra_login_result & rhs) const
  192. {
  193. if (!(authnx == rhs.authnx))
  194. return false;
  195. if (!(authzx == rhs.authzx))
  196. return false;
  197. return true;
  198. }
  199. bool operator != (const Cassandra_login_result &rhs) const {
  200. return !(*this == rhs);
  201. }
  202. bool operator < (const Cassandra_login_result & ) const;
  203. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  204. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  205. };
  206. typedef struct _Cassandra_login_presult__isset {
  207. _Cassandra_login_presult__isset() : authnx(false), authzx(false) {}
  208. bool authnx;
  209. bool authzx;
  210. } _Cassandra_login_presult__isset;
  211. class Cassandra_login_presult {
  212. public:
  213. virtual ~Cassandra_login_presult() throw() {}
  214. AuthenticationException authnx;
  215. AuthorizationException authzx;
  216. _Cassandra_login_presult__isset __isset;
  217. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  218. };
  219. class Cassandra_set_keyspace_args {
  220. public:
  221. Cassandra_set_keyspace_args() : keyspace("") {
  222. }
  223. virtual ~Cassandra_set_keyspace_args() throw() {}
  224. std::string keyspace;
  225. void __set_keyspace(const std::string& val) {
  226. keyspace = val;
  227. }
  228. bool operator == (const Cassandra_set_keyspace_args & rhs) const
  229. {
  230. if (!(keyspace == rhs.keyspace))
  231. return false;
  232. return true;
  233. }
  234. bool operator != (const Cassandra_set_keyspace_args &rhs) const {
  235. return !(*this == rhs);
  236. }
  237. bool operator < (const Cassandra_set_keyspace_args & ) const;
  238. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  239. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  240. };
  241. class Cassandra_set_keyspace_pargs {
  242. public:
  243. virtual ~Cassandra_set_keyspace_pargs() throw() {}
  244. const std::string* keyspace;
  245. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  246. };
  247. typedef struct _Cassandra_set_keyspace_result__isset {
  248. _Cassandra_set_keyspace_result__isset() : ire(false) {}
  249. bool ire;
  250. } _Cassandra_set_keyspace_result__isset;
  251. class Cassandra_set_keyspace_result {
  252. public:
  253. Cassandra_set_keyspace_result() {
  254. }
  255. virtual ~Cassandra_set_keyspace_result() throw() {}
  256. InvalidRequestException ire;
  257. _Cassandra_set_keyspace_result__isset __isset;
  258. void __set_ire(const InvalidRequestException& val) {
  259. ire = val;
  260. }
  261. bool operator == (const Cassandra_set_keyspace_result & rhs) const
  262. {
  263. if (!(ire == rhs.ire))
  264. return false;
  265. return true;
  266. }
  267. bool operator != (const Cassandra_set_keyspace_result &rhs) const {
  268. return !(*this == rhs);
  269. }
  270. bool operator < (const Cassandra_set_keyspace_result & ) const;
  271. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  272. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  273. };
  274. typedef struct _Cassandra_set_keyspace_presult__isset {
  275. _Cassandra_set_keyspace_presult__isset() : ire(false) {}
  276. bool ire;
  277. } _Cassandra_set_keyspace_presult__isset;
  278. class Cassandra_set_keyspace_presult {
  279. public:
  280. virtual ~Cassandra_set_keyspace_presult() throw() {}
  281. InvalidRequestException ire;
  282. _Cassandra_set_keyspace_presult__isset __isset;
  283. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  284. };
  285. class Cassandra_get_args {
  286. public:
  287. Cassandra_get_args() : key("") {
  288. consistency_level = (ConsistencyLevel::type)1;
  289. }
  290. virtual ~Cassandra_get_args() throw() {}
  291. std::string key;
  292. ColumnPath column_path;
  293. ConsistencyLevel::type consistency_level;
  294. void __set_key(const std::string& val) {
  295. key = val;
  296. }
  297. void __set_column_path(const ColumnPath& val) {
  298. column_path = val;
  299. }
  300. void __set_consistency_level(const ConsistencyLevel::type val) {
  301. consistency_level = val;
  302. }
  303. bool operator == (const Cassandra_get_args & rhs) const
  304. {
  305. if (!(key == rhs.key))
  306. return false;
  307. if (!(column_path == rhs.column_path))
  308. return false;
  309. if (!(consistency_level == rhs.consistency_level))
  310. return false;
  311. return true;
  312. }
  313. bool operator != (const Cassandra_get_args &rhs) const {
  314. return !(*this == rhs);
  315. }
  316. bool operator < (const Cassandra_get_args & ) const;
  317. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  318. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  319. };
  320. class Cassandra_get_pargs {
  321. public:
  322. virtual ~Cassandra_get_pargs() throw() {}
  323. const std::string* key;
  324. const ColumnPath* column_path;
  325. const ConsistencyLevel::type* consistency_level;
  326. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  327. };
  328. typedef struct _Cassandra_get_result__isset {
  329. _Cassandra_get_result__isset() : success(false), ire(false), nfe(false), ue(false), te(false) {}
  330. bool success;
  331. bool ire;
  332. bool nfe;
  333. bool ue;
  334. bool te;
  335. } _Cassandra_get_result__isset;
  336. class Cassandra_get_result {
  337. public:
  338. Cassandra_get_result() {
  339. }
  340. virtual ~Cassandra_get_result() throw() {}
  341. ColumnOrSuperColumn success;
  342. InvalidRequestException ire;
  343. NotFoundException nfe;
  344. UnavailableException ue;
  345. TimedOutException te;
  346. _Cassandra_get_result__isset __isset;
  347. void __set_success(const ColumnOrSuperColumn& val) {
  348. success = val;
  349. }
  350. void __set_ire(const InvalidRequestException& val) {
  351. ire = val;
  352. }
  353. void __set_nfe(const NotFoundException& val) {
  354. nfe = val;
  355. }
  356. void __set_ue(const UnavailableException& val) {
  357. ue = val;
  358. }
  359. void __set_te(const TimedOutException& val) {
  360. te = val;
  361. }
  362. bool operator == (const Cassandra_get_result & rhs) const
  363. {
  364. if (!(success == rhs.success))
  365. return false;
  366. if (!(ire == rhs.ire))
  367. return false;
  368. if (!(nfe == rhs.nfe))
  369. return false;
  370. if (!(ue == rhs.ue))
  371. return false;
  372. if (!(te == rhs.te))
  373. return false;
  374. return true;
  375. }
  376. bool operator != (const Cassandra_get_result &rhs) const {
  377. return !(*this == rhs);
  378. }
  379. bool operator < (const Cassandra_get_result & ) const;
  380. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  381. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  382. };
  383. typedef struct _Cassandra_get_presult__isset {
  384. _Cassandra_get_presult__isset() : success(false), ire(false), nfe(false), ue(false), te(false) {}
  385. bool success;
  386. bool ire;
  387. bool nfe;
  388. bool ue;
  389. bool te;
  390. } _Cassandra_get_presult__isset;
  391. class Cassandra_get_presult {
  392. public:
  393. virtual ~Cassandra_get_presult() throw() {}
  394. ColumnOrSuperColumn* success;
  395. InvalidRequestException ire;
  396. NotFoundException nfe;
  397. UnavailableException ue;
  398. TimedOutException te;
  399. _Cassandra_get_presult__isset __isset;
  400. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  401. };
  402. class Cassandra_get_slice_args {
  403. public:
  404. Cassandra_get_slice_args() : key("") {
  405. consistency_level = (ConsistencyLevel::type)1;
  406. }
  407. virtual ~Cassandra_get_slice_args() throw() {}
  408. std::string key;
  409. ColumnParent column_parent;
  410. SlicePredicate predicate;
  411. ConsistencyLevel::type consistency_level;
  412. void __set_key(const std::string& val) {
  413. key = val;
  414. }
  415. void __set_column_parent(const ColumnParent& val) {
  416. column_parent = val;
  417. }
  418. void __set_predicate(const SlicePredicate& val) {
  419. predicate = val;
  420. }
  421. void __set_consistency_level(const ConsistencyLevel::type val) {
  422. consistency_level = val;
  423. }
  424. bool operator == (const Cassandra_get_slice_args & rhs) const
  425. {
  426. if (!(key == rhs.key))
  427. return false;
  428. if (!(column_parent == rhs.column_parent))
  429. return false;
  430. if (!(predicate == rhs.predicate))
  431. return false;
  432. if (!(consistency_level == rhs.consistency_level))
  433. return false;
  434. return true;
  435. }
  436. bool operator != (const Cassandra_get_slice_args &rhs) const {
  437. return !(*this == rhs);
  438. }
  439. bool operator < (const Cassandra_get_slice_args & ) const;
  440. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  441. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  442. };
  443. class Cassandra_get_slice_pargs {
  444. public:
  445. virtual ~Cassandra_get_slice_pargs() throw() {}
  446. const std::string* key;
  447. const ColumnParent* column_parent;
  448. const SlicePredicate* predicate;
  449. const ConsistencyLevel::type* consistency_level;
  450. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  451. };
  452. typedef struct _Cassandra_get_slice_result__isset {
  453. _Cassandra_get_slice_result__isset() : success(false), ire(false), ue(false), te(false) {}
  454. bool success;
  455. bool ire;
  456. bool ue;
  457. bool te;
  458. } _Cassandra_get_slice_result__isset;
  459. class Cassandra_get_slice_result {
  460. public:
  461. Cassandra_get_slice_result() {
  462. }
  463. virtual ~Cassandra_get_slice_result() throw() {}
  464. std::vector<ColumnOrSuperColumn> success;
  465. InvalidRequestException ire;
  466. UnavailableException ue;
  467. TimedOutException te;
  468. _Cassandra_get_slice_result__isset __isset;
  469. void __set_success(const std::vector<ColumnOrSuperColumn> & val) {
  470. success = val;
  471. }
  472. void __set_ire(const InvalidRequestException& val) {
  473. ire = val;
  474. }
  475. void __set_ue(const UnavailableException& val) {
  476. ue = val;
  477. }
  478. void __set_te(const TimedOutException& val) {
  479. te = val;
  480. }
  481. bool operator == (const Cassandra_get_slice_result & rhs) const
  482. {
  483. if (!(success == rhs.success))
  484. return false;
  485. if (!(ire == rhs.ire))
  486. return false;
  487. if (!(ue == rhs.ue))
  488. return false;
  489. if (!(te == rhs.te))
  490. return false;
  491. return true;
  492. }
  493. bool operator != (const Cassandra_get_slice_result &rhs) const {
  494. return !(*this == rhs);
  495. }
  496. bool operator < (const Cassandra_get_slice_result & ) const;
  497. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  498. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  499. };
  500. typedef struct _Cassandra_get_slice_presult__isset {
  501. _Cassandra_get_slice_presult__isset() : success(false), ire(false), ue(false), te(false) {}
  502. bool success;
  503. bool ire;
  504. bool ue;
  505. bool te;
  506. } _Cassandra_get_slice_presult__isset;
  507. class Cassandra_get_slice_presult {
  508. public:
  509. virtual ~Cassandra_get_slice_presult() throw() {}
  510. std::vector<ColumnOrSuperColumn> * success;
  511. InvalidRequestException ire;
  512. UnavailableException ue;
  513. TimedOutException te;
  514. _Cassandra_get_slice_presult__isset __isset;
  515. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  516. };
  517. class Cassandra_get_count_args {
  518. public:
  519. Cassandra_get_count_args() : key("") {
  520. consistency_level = (ConsistencyLevel::type)1;
  521. }
  522. virtual ~Cassandra_get_count_args() throw() {}
  523. std::string key;
  524. ColumnParent column_parent;
  525. SlicePredicate predicate;
  526. ConsistencyLevel::type consistency_level;
  527. void __set_key(const std::string& val) {
  528. key = val;
  529. }
  530. void __set_column_parent(const ColumnParent& val) {
  531. column_parent = val;
  532. }
  533. void __set_predicate(const SlicePredicate& val) {
  534. predicate = val;
  535. }
  536. void __set_consistency_level(const ConsistencyLevel::type val) {
  537. consistency_level = val;
  538. }
  539. bool operator == (const Cassandra_get_count_args & rhs) const
  540. {
  541. if (!(key == rhs.key))
  542. return false;
  543. if (!(column_parent == rhs.column_parent))
  544. return false;
  545. if (!(predicate == rhs.predicate))
  546. return false;
  547. if (!(consistency_level == rhs.consistency_level))
  548. return false;
  549. return true;
  550. }
  551. bool operator != (const Cassandra_get_count_args &rhs) const {
  552. return !(*this == rhs);
  553. }
  554. bool operator < (const Cassandra_get_count_args & ) const;
  555. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  556. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  557. };
  558. class Cassandra_get_count_pargs {
  559. public:
  560. virtual ~Cassandra_get_count_pargs() throw() {}
  561. const std::string* key;
  562. const ColumnParent* column_parent;
  563. const SlicePredicate* predicate;
  564. const ConsistencyLevel::type* consistency_level;
  565. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  566. };
  567. typedef struct _Cassandra_get_count_result__isset {
  568. _Cassandra_get_count_result__isset() : success(false), ire(false), ue(false), te(false) {}
  569. bool success;
  570. bool ire;
  571. bool ue;
  572. bool te;
  573. } _Cassandra_get_count_result__isset;
  574. class Cassandra_get_count_result {
  575. public:
  576. Cassandra_get_count_result() : success(0) {
  577. }
  578. virtual ~Cassandra_get_count_result() throw() {}
  579. int32_t success;
  580. InvalidRequestException ire;
  581. UnavailableException ue;
  582. TimedOutException te;
  583. _Cassandra_get_count_result__isset __isset;
  584. void __set_success(const int32_t val) {
  585. success = val;
  586. }
  587. void __set_ire(const InvalidRequestException& val) {
  588. ire = val;
  589. }
  590. void __set_ue(const UnavailableException& val) {
  591. ue = val;
  592. }
  593. void __set_te(const TimedOutException& val) {
  594. te = val;
  595. }
  596. bool operator == (const Cassandra_get_count_result & rhs) const
  597. {
  598. if (!(success == rhs.success))
  599. return false;
  600. if (!(ire == rhs.ire))
  601. return false;
  602. if (!(ue == rhs.ue))
  603. return false;
  604. if (!(te == rhs.te))
  605. return false;
  606. return true;
  607. }
  608. bool operator != (const Cassandra_get_count_result &rhs) const {
  609. return !(*this == rhs);
  610. }
  611. bool operator < (const Cassandra_get_count_result & ) const;
  612. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  613. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  614. };
  615. typedef struct _Cassandra_get_count_presult__isset {
  616. _Cassandra_get_count_presult__isset() : success(false), ire(false), ue(false), te(false) {}
  617. bool success;
  618. bool ire;
  619. bool ue;
  620. bool te;
  621. } _Cassandra_get_count_presult__isset;
  622. class Cassandra_get_count_presult {
  623. public:
  624. virtual ~Cassandra_get_count_presult() throw() {}
  625. int32_t* success;
  626. InvalidRequestException ire;
  627. UnavailableException ue;
  628. TimedOutException te;
  629. _Cassandra_get_count_presult__isset __isset;
  630. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  631. };
  632. class Cassandra_multiget_slice_args {
  633. public:
  634. Cassandra_multiget_slice_args() {
  635. consistency_level = (ConsistencyLevel::type)1;
  636. }
  637. virtual ~Cassandra_multiget_slice_args() throw() {}
  638. std::vector<std::string> keys;
  639. ColumnParent column_parent;
  640. SlicePredicate predicate;
  641. ConsistencyLevel::type consistency_level;
  642. void __set_keys(const std::vector<std::string> & val) {
  643. keys = val;
  644. }
  645. void __set_column_parent(const ColumnParent& val) {
  646. column_parent = val;
  647. }
  648. void __set_predicate(const SlicePredicate& val) {
  649. predicate = val;
  650. }
  651. void __set_consistency_level(const ConsistencyLevel::type val) {
  652. consistency_level = val;
  653. }
  654. bool operator == (const Cassandra_multiget_slice_args & rhs) const
  655. {
  656. if (!(keys == rhs.keys))
  657. return false;
  658. if (!(column_parent == rhs.column_parent))
  659. return false;
  660. if (!(predicate == rhs.predicate))
  661. return false;
  662. if (!(consistency_level == rhs.consistency_level))
  663. return false;
  664. return true;
  665. }
  666. bool operator != (const Cassandra_multiget_slice_args &rhs) const {
  667. return !(*this == rhs);
  668. }
  669. bool operator < (const Cassandra_multiget_slice_args & ) const;
  670. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  671. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  672. };
  673. class Cassandra_multiget_slice_pargs {
  674. public:
  675. virtual ~Cassandra_multiget_slice_pargs() throw() {}
  676. const std::vector<std::string> * keys;
  677. const ColumnParent* column_parent;
  678. const SlicePredicate* predicate;
  679. const ConsistencyLevel::type* consistency_level;
  680. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  681. };
  682. typedef struct _Cassandra_multiget_slice_result__isset {
  683. _Cassandra_multiget_slice_result__isset() : success(false), ire(false), ue(false), te(false) {}
  684. bool success;
  685. bool ire;
  686. bool ue;
  687. bool te;
  688. } _Cassandra_multiget_slice_result__isset;
  689. class Cassandra_multiget_slice_result {
  690. public:
  691. Cassandra_multiget_slice_result() {
  692. }
  693. virtual ~Cassandra_multiget_slice_result() throw() {}
  694. std::map<std::string, std::vector<ColumnOrSuperColumn> > success;
  695. InvalidRequestException ire;
  696. UnavailableException ue;
  697. TimedOutException te;
  698. _Cassandra_multiget_slice_result__isset __isset;
  699. void __set_success(const std::map<std::string, std::vector<ColumnOrSuperColumn> > & val) {
  700. success = val;
  701. }
  702. void __set_ire(const InvalidRequestException& val) {
  703. ire = val;
  704. }
  705. void __set_ue(const UnavailableException& val) {
  706. ue = val;
  707. }
  708. void __set_te(const TimedOutException& val) {
  709. te = val;
  710. }
  711. bool operator == (const Cassandra_multiget_slice_result & rhs) const
  712. {
  713. if (!(success == rhs.success))
  714. return false;
  715. if (!(ire == rhs.ire))
  716. return false;
  717. if (!(ue == rhs.ue))
  718. return false;
  719. if (!(te == rhs.te))
  720. return false;
  721. return true;
  722. }
  723. bool operator != (const Cassandra_multiget_slice_result &rhs) const {
  724. return !(*this == rhs);
  725. }
  726. bool operator < (const Cassandra_multiget_slice_result & ) const;
  727. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  728. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  729. };
  730. typedef struct _Cassandra_multiget_slice_presult__isset {
  731. _Cassandra_multiget_slice_presult__isset() : success(false), ire(false), ue(false), te(false) {}
  732. bool success;
  733. bool ire;
  734. bool ue;
  735. bool te;
  736. } _Cassandra_multiget_slice_presult__isset;
  737. class Cassandra_multiget_slice_presult {
  738. public:
  739. virtual ~Cassandra_multiget_slice_presult() throw() {}
  740. std::map<std::string, std::vector<ColumnOrSuperColumn> > * success;
  741. InvalidRequestException ire;
  742. UnavailableException ue;
  743. TimedOutException te;
  744. _Cassandra_multiget_slice_presult__isset __isset;
  745. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  746. };
  747. class Cassandra_multiget_count_args {
  748. public:
  749. Cassandra_multiget_count_args() {
  750. consistency_level = (ConsistencyLevel::type)1;
  751. }
  752. virtual ~Cassandra_multiget_count_args() throw() {}
  753. std::vector<std::string> keys;
  754. ColumnParent column_parent;
  755. SlicePredicate predicate;
  756. ConsistencyLevel::type consistency_level;
  757. void __set_keys(const std::vector<std::string> & val) {
  758. keys = val;
  759. }
  760. void __set_column_parent(const ColumnParent& val) {
  761. column_parent = val;
  762. }
  763. void __set_predicate(const SlicePredicate& val) {
  764. predicate = val;
  765. }
  766. void __set_consistency_level(const ConsistencyLevel::type val) {
  767. consistency_level = val;
  768. }
  769. bool operator == (const Cassandra_multiget_count_args & rhs) const
  770. {
  771. if (!(keys == rhs.keys))
  772. return false;
  773. if (!(column_parent == rhs.column_parent))
  774. return false;
  775. if (!(predicate == rhs.predicate))
  776. return false;
  777. if (!(consistency_level == rhs.consistency_level))
  778. return false;
  779. return true;
  780. }
  781. bool operator != (const Cassandra_multiget_count_args &rhs) const {
  782. return !(*this == rhs);
  783. }
  784. bool operator < (const Cassandra_multiget_count_args & ) const;
  785. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  786. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  787. };
  788. class Cassandra_multiget_count_pargs {
  789. public:
  790. virtual ~Cassandra_multiget_count_pargs() throw() {}
  791. const std::vector<std::string> * keys;
  792. const ColumnParent* column_parent;
  793. const SlicePredicate* predicate;
  794. const ConsistencyLevel::type* consistency_level;
  795. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  796. };
  797. typedef struct _Cassandra_multiget_count_result__isset {
  798. _Cassandra_multiget_count_result__isset() : success(false), ire(false), ue(false), te(false) {}
  799. bool success;
  800. bool ire;
  801. bool ue;
  802. bool te;
  803. } _Cassandra_multiget_count_result__isset;
  804. class Cassandra_multiget_count_result {
  805. public:
  806. Cassandra_multiget_count_result() {
  807. }
  808. virtual ~Cassandra_multiget_count_result() throw() {}
  809. std::map<std::string, int32_t> success;
  810. InvalidRequestException ire;
  811. UnavailableException ue;
  812. TimedOutException te;
  813. _Cassandra_multiget_count_result__isset __isset;
  814. void __set_success(const std::map<std::string, int32_t> & val) {
  815. success = val;
  816. }
  817. void __set_ire(const InvalidRequestException& val) {
  818. ire = val;
  819. }
  820. void __set_ue(const UnavailableException& val) {
  821. ue = val;
  822. }
  823. void __set_te(const TimedOutException& val) {
  824. te = val;
  825. }
  826. bool operator == (const Cassandra_multiget_count_result & rhs) const
  827. {
  828. if (!(success == rhs.success))
  829. return false;
  830. if (!(ire == rhs.ire))
  831. return false;
  832. if (!(ue == rhs.ue))
  833. return false;
  834. if (!(te == rhs.te))
  835. return false;
  836. return true;
  837. }
  838. bool operator != (const Cassandra_multiget_count_result &rhs) const {
  839. return !(*this == rhs);
  840. }
  841. bool operator < (const Cassandra_multiget_count_result & ) const;
  842. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  843. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  844. };
  845. typedef struct _Cassandra_multiget_count_presult__isset {
  846. _Cassandra_multiget_count_presult__isset() : success(false), ire(false), ue(false), te(false) {}
  847. bool success;
  848. bool ire;
  849. bool ue;
  850. bool te;
  851. } _Cassandra_multiget_count_presult__isset;
  852. class Cassandra_multiget_count_presult {
  853. public:
  854. virtual ~Cassandra_multiget_count_presult() throw() {}
  855. std::map<std::string, int32_t> * success;
  856. InvalidRequestException ire;
  857. UnavailableException ue;
  858. TimedOutException te;
  859. _Cassandra_multiget_count_presult__isset __isset;
  860. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  861. };
  862. class Cassandra_get_range_slices_args {
  863. public:
  864. Cassandra_get_range_slices_args() {
  865. consistency_level = (ConsistencyLevel::type)1;
  866. }
  867. virtual ~Cassandra_get_range_slices_args() throw() {}
  868. ColumnParent column_parent;
  869. SlicePredicate predicate;
  870. KeyRange range;
  871. ConsistencyLevel::type consistency_level;
  872. void __set_column_parent(const ColumnParent& val) {
  873. column_parent = val;
  874. }
  875. void __set_predicate(const SlicePredicate& val) {
  876. predicate = val;
  877. }
  878. void __set_range(const KeyRange& val) {
  879. range = val;
  880. }
  881. void __set_consistency_level(const ConsistencyLevel::type val) {
  882. consistency_level = val;
  883. }
  884. bool operator == (const Cassandra_get_range_slices_args & rhs) const
  885. {
  886. if (!(column_parent == rhs.column_parent))
  887. return false;
  888. if (!(predicate == rhs.predicate))
  889. return false;
  890. if (!(range == rhs.range))
  891. return false;
  892. if (!(consistency_level == rhs.consistency_level))
  893. return false;
  894. return true;
  895. }
  896. bool operator != (const Cassandra_get_range_slices_args &rhs) const {
  897. return !(*this == rhs);
  898. }
  899. bool operator < (const Cassandra_get_range_slices_args & ) const;
  900. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  901. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  902. };
  903. class Cassandra_get_range_slices_pargs {
  904. public:
  905. virtual ~Cassandra_get_range_slices_pargs() throw() {}
  906. const ColumnParent* column_parent;
  907. const SlicePredicate* predicate;
  908. const KeyRange* range;
  909. const ConsistencyLevel::type* consistency_level;
  910. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  911. };
  912. typedef struct _Cassandra_get_range_slices_result__isset {
  913. _Cassandra_get_range_slices_result__isset() : success(false), ire(false), ue(false), te(false) {}
  914. bool success;
  915. bool ire;
  916. bool ue;
  917. bool te;
  918. } _Cassandra_get_range_slices_result__isset;
  919. class Cassandra_get_range_slices_result {
  920. public:
  921. Cassandra_get_range_slices_result() {
  922. }
  923. virtual ~Cassandra_get_range_slices_result() throw() {}
  924. std::vector<KeySlice> success;
  925. InvalidRequestException ire;
  926. UnavailableException ue;
  927. TimedOutException te;
  928. _Cassandra_get_range_slices_result__isset __isset;
  929. void __set_success(const std::vector<KeySlice> & val) {
  930. success = val;
  931. }
  932. void __set_ire(const InvalidRequestException& val) {
  933. ire = val;
  934. }
  935. void __set_ue(const UnavailableException& val) {
  936. ue = val;
  937. }
  938. void __set_te(const TimedOutException& val) {
  939. te = val;
  940. }
  941. bool operator == (const Cassandra_get_range_slices_result & rhs) const
  942. {
  943. if (!(success == rhs.success))
  944. return false;
  945. if (!(ire == rhs.ire))
  946. return false;
  947. if (!(ue == rhs.ue))
  948. return false;
  949. if (!(te == rhs.te))
  950. return false;
  951. return true;
  952. }
  953. bool operator != (const Cassandra_get_range_slices_result &rhs) const {
  954. return !(*this == rhs);
  955. }
  956. bool operator < (const Cassandra_get_range_slices_result & ) const;
  957. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  958. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  959. };
  960. typedef struct _Cassandra_get_range_slices_presult__isset {
  961. _Cassandra_get_range_slices_presult__isset() : success(false), ire(false), ue(false), te(false) {}
  962. bool success;
  963. bool ire;
  964. bool ue;
  965. bool te;
  966. } _Cassandra_get_range_slices_presult__isset;
  967. class Cassandra_get_range_slices_presult {
  968. public:
  969. virtual ~Cassandra_get_range_slices_presult() throw() {}
  970. std::vector<KeySlice> * success;
  971. InvalidRequestException ire;
  972. UnavailableException ue;
  973. TimedOutException te;
  974. _Cassandra_get_range_slices_presult__isset __isset;
  975. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  976. };
  977. class Cassandra_get_indexed_slices_args {
  978. public:
  979. Cassandra_get_indexed_slices_args() {
  980. consistency_level = (ConsistencyLevel::type)1;
  981. }
  982. virtual ~Cassandra_get_indexed_slices_args() throw() {}
  983. ColumnParent column_parent;
  984. IndexClause index_clause;
  985. SlicePredicate column_predicate;
  986. ConsistencyLevel::type consistency_level;
  987. void __set_column_parent(const ColumnParent& val) {
  988. column_parent = val;
  989. }
  990. void __set_index_clause(const IndexClause& val) {
  991. index_clause = val;
  992. }
  993. void __set_column_predicate(const SlicePredicate& val) {
  994. column_predicate = val;
  995. }
  996. void __set_consistency_level(const ConsistencyLevel::type val) {
  997. consistency_level = val;
  998. }
  999. bool operator == (const Cassandra_get_indexed_slices_args & rhs) const
  1000. {
  1001. if (!(column_parent == rhs.column_parent))
  1002. return false;
  1003. if (!(index_clause == rhs.index_clause))
  1004. return false;
  1005. if (!(column_predicate == rhs.column_predicate))
  1006. return false;
  1007. if (!(consistency_level == rhs.consistency_level))
  1008. return false;
  1009. return true;
  1010. }
  1011. bool operator != (const Cassandra_get_indexed_slices_args &rhs) const {
  1012. return !(*this == rhs);
  1013. }
  1014. bool operator < (const Cassandra_get_indexed_slices_args & ) const;
  1015. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  1016. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  1017. };
  1018. class Cassandra_get_indexed_slices_pargs {
  1019. public:
  1020. virtual ~Cassandra_get_indexed_slices_pargs() throw() {}
  1021. const ColumnParent* column_parent;
  1022. const IndexClause* index_clause;
  1023. const SlicePredicate* column_predicate;
  1024. const ConsistencyLevel::type* consistency_level;
  1025. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  1026. };
  1027. typedef struct _Cassandra_get_indexed_slices_result__isset {
  1028. _Cassandra_get_indexed_slices_result__isset() : success(false), ire(false), ue(false), te(false) {}
  1029. bool success;
  1030. bool ire;
  1031. bool ue;
  1032. bool te;
  1033. } _Cassandra_get_indexed_slices_result__isset;
  1034. class Cassandra_get_indexed_slices_result {
  1035. public:
  1036. Cassandra_get_indexed_slices_result() {
  1037. }
  1038. virtual ~Cassandra_get_indexed_slices_result() throw() {}
  1039. std::vector<KeySlice> success;
  1040. InvalidRequestException ire;
  1041. UnavailableException ue;
  1042. TimedOutException te;
  1043. _Cassandra_get_indexed_slices_result__isset __isset;
  1044. void __set_success(const std::vector<KeySlice> & val) {
  1045. success = val;
  1046. }
  1047. void __set_ire(const InvalidRequestException& val) {
  1048. ire = val;
  1049. }
  1050. void __set_ue(const UnavailableException& val) {
  1051. ue = val;
  1052. }
  1053. void __set_te(const TimedOutException& val) {
  1054. te = val;
  1055. }
  1056. bool operator == (const Cassandra_get_indexed_slices_result & rhs) const
  1057. {
  1058. if (!(success == rhs.success))
  1059. return false;
  1060. if (!(ire == rhs.ire))
  1061. return false;
  1062. if (!(ue == rhs.ue))
  1063. return false;
  1064. if (!(te == rhs.te))
  1065. return false;
  1066. return true;
  1067. }
  1068. bool operator != (const Cassandra_get_indexed_slices_result &rhs) const {
  1069. return !(*this == rhs);
  1070. }
  1071. bool operator < (const Cassandra_get_indexed_slices_result & ) const;
  1072. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  1073. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  1074. };
  1075. typedef struct _Cassandra_get_indexed_slices_presult__isset {
  1076. _Cassandra_get_indexed_slices_presult__isset() : success(false), ire(false), ue(false), te(false) {}
  1077. bool success;
  1078. bool ire;
  1079. bool ue;
  1080. bool te;
  1081. } _Cassandra_get_indexed_slices_presult__isset;
  1082. class Cassandra_get_indexed_slices_presult {
  1083. public:
  1084. virtual ~Cassandra_get_indexed_slices_presult() throw() {}
  1085. std::vector<KeySlice> * success;
  1086. InvalidRequestException ire;
  1087. UnavailableException ue;
  1088. TimedOutException te;
  1089. _Cassandra_get_indexed_slices_presult__isset __isset;
  1090. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  1091. };
  1092. class Cassandra_insert_args {
  1093. public:
  1094. Cassandra_insert_args() : key("") {
  1095. consistency_level = (ConsistencyLevel::type)1;
  1096. }
  1097. virtual ~Cassandra_insert_args() throw() {}
  1098. std::string key;
  1099. ColumnParent column_parent;
  1100. Column column;
  1101. ConsistencyLevel::type consistency_level;
  1102. void __set_key(const std::string& val) {
  1103. key = val;
  1104. }
  1105. void __set_column_parent(const ColumnParent& val) {
  1106. column_parent = val;
  1107. }
  1108. void __set_column(const Column& val) {
  1109. column = val;
  1110. }
  1111. void __set_consistency_level(const ConsistencyLevel::type val) {
  1112. consistency_level = val;
  1113. }
  1114. bool operator == (const Cassandra_insert_args & rhs) const
  1115. {
  1116. if (!(key == rhs.key))
  1117. return false;
  1118. if (!(column_parent == rhs.column_parent))
  1119. return false;
  1120. if (!(column == rhs.column))
  1121. return false;
  1122. if (!(consistency_level == rhs.consistency_level))
  1123. return false;
  1124. return true;
  1125. }
  1126. bool operator != (const Cassandra_insert_args &rhs) const {
  1127. return !(*this == rhs);
  1128. }
  1129. bool operator < (const Cassandra_insert_args & ) const;
  1130. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  1131. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  1132. };
  1133. class Cassandra_insert_pargs {
  1134. public:
  1135. virtual ~Cassandra_insert_pargs() throw() {}
  1136. const std::string* key;
  1137. const ColumnParent* column_parent;
  1138. const Column* column;
  1139. const ConsistencyLevel::type* consistency_level;
  1140. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  1141. };
  1142. typedef struct _Cassandra_insert_result__isset {
  1143. _Cassandra_insert_result__isset() : ire(false), ue(false), te(false) {}
  1144. bool ire;
  1145. bool ue;
  1146. bool te;
  1147. } _Cassandra_insert_result__isset;
  1148. class Cassandra_insert_result {
  1149. public:
  1150. Cassandra_insert_result() {
  1151. }
  1152. virtual ~Cassandra_insert_result() throw() {}
  1153. InvalidRequestException ire;
  1154. UnavailableException ue;
  1155. TimedOutException te;
  1156. _Cassandra_insert_result__isset __isset;
  1157. void __set_ire(const InvalidRequestException& val) {
  1158. ire = val;
  1159. }
  1160. void __set_ue(const UnavailableException& val) {
  1161. ue = val;
  1162. }
  1163. void __set_te(const TimedOutException& val) {
  1164. te = val;
  1165. }
  1166. bool operator == (const Cassandra_insert_result & rhs) const
  1167. {
  1168. if (!(ire == rhs.ire))
  1169. return false;
  1170. if (!(ue == rhs.ue))
  1171. return false;
  1172. if (!(te == rhs.te))
  1173. return false;
  1174. return true;
  1175. }
  1176. bool operator != (const Cassandra_insert_result &rhs) const {
  1177. return !(*this == rhs);
  1178. }
  1179. bool operator < (const Cassandra_insert_result & ) const;
  1180. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  1181. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  1182. };
  1183. typedef struct _Cassandra_insert_presult__isset {
  1184. _Cassandra_insert_presult__isset() : ire(false), ue(false), te(false) {}
  1185. bool ire;
  1186. bool ue;
  1187. bool te;
  1188. } _Cassandra_insert_presult__isset;
  1189. class Cassandra_insert_presult {
  1190. public:
  1191. virtual ~Cassandra_insert_presult() throw() {}
  1192. InvalidRequestException ire;
  1193. UnavailableException ue;
  1194. TimedOutException te;
  1195. _Cassandra_insert_presult__isset __isset;
  1196. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  1197. };
  1198. class Cassandra_add_args {
  1199. public:
  1200. Cassandra_add_args() : key("") {
  1201. consistency_level = (ConsistencyLevel::type)1;
  1202. }
  1203. virtual ~Cassandra_add_args() throw() {}
  1204. std::string key;
  1205. ColumnParent column_parent;
  1206. CounterColumn column;
  1207. ConsistencyLevel::type consistency_level;
  1208. void __set_key(const std::string& val) {
  1209. key = val;
  1210. }
  1211. void __set_column_parent(const ColumnParent& val) {
  1212. column_parent = val;
  1213. }
  1214. void __set_column(const CounterColumn& val) {
  1215. column = val;
  1216. }
  1217. void __set_consistency_level(const ConsistencyLevel::type val) {
  1218. consistency_level = val;
  1219. }
  1220. bool operator == (const Cassandra_add_args & rhs) const
  1221. {
  1222. if (!(key == rhs.key))
  1223. return false;
  1224. if (!(column_parent == rhs.column_parent))
  1225. return false;
  1226. if (!(column == rhs.column))
  1227. return false;
  1228. if (!(consistency_level == rhs.consistency_level))
  1229. return false;
  1230. return true;
  1231. }
  1232. bool operator != (const Cassandra_add_args &rhs) const {
  1233. return !(*this == rhs);
  1234. }
  1235. bool operator < (const Cassandra_add_args & ) const;
  1236. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  1237. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  1238. };
  1239. class Cassandra_add_pargs {
  1240. public:
  1241. virtual ~Cassandra_add_pargs() throw() {}
  1242. const std::string* key;
  1243. const ColumnParent* column_parent;
  1244. const CounterColumn* column;
  1245. const ConsistencyLevel::type* consistency_level;
  1246. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  1247. };
  1248. typedef struct _Cassandra_add_result__isset {
  1249. _Cassandra_add_result__isset() : ire(false), ue(false), te(false) {}
  1250. bool ire;
  1251. bool ue;
  1252. bool te;
  1253. } _Cassandra_add_result__isset;
  1254. class Cassandra_add_result {
  1255. public:
  1256. Cassandra_add_result() {
  1257. }
  1258. virtual ~Cassandra_add_result() throw() {}
  1259. InvalidRequestException ire;
  1260. UnavailableException ue;
  1261. TimedOutException te;
  1262. _Cassandra_add_result__isset __isset;
  1263. void __set_ire(const InvalidRequestException& val) {
  1264. ire = val;
  1265. }
  1266. void __set_ue(const UnavailableException& val) {
  1267. ue = val;
  1268. }
  1269. void __set_te(const TimedOutException& val) {
  1270. te = val;
  1271. }
  1272. bool operator == (const Cassandra_add_result & rhs) const
  1273. {
  1274. if (!(ire == rhs.ire))
  1275. return false;
  1276. if (!(ue == rhs.ue))
  1277. return false;
  1278. if (!(te == rhs.te))
  1279. return false;
  1280. return true;
  1281. }
  1282. bool operator != (const Cassandra_add_result &rhs) const {
  1283. return !(*this == rhs);
  1284. }
  1285. bool operator < (const Cassandra_add_result & ) const;
  1286. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  1287. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  1288. };
  1289. typedef struct _Cassandra_add_presult__isset {
  1290. _Cassandra_add_presult__isset() : ire(false), ue(false), te(false) {}
  1291. bool ire;
  1292. bool ue;
  1293. bool te;
  1294. } _Cassandra_add_presult__isset;
  1295. class Cassandra_add_presult {
  1296. public:
  1297. virtual ~Cassandra_add_presult() throw() {}
  1298. InvalidRequestException ire;
  1299. UnavailableException ue;
  1300. TimedOutException te;
  1301. _Cassandra_add_presult__isset __isset;
  1302. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  1303. };
  1304. typedef struct _Cassandra_remove_args__isset {
  1305. _Cassandra_remove_args__isset() : consistency_level(false) {}
  1306. bool consistency_level;
  1307. } _Cassandra_remove_args__isset;
  1308. class Cassandra_remove_args {
  1309. public:
  1310. Cassandra_remove_args() : key(""), timestamp(0) {
  1311. consistency_level = (ConsistencyLevel::type)1;
  1312. }
  1313. virtual ~Cassandra_remove_args() throw() {}
  1314. std::string key;
  1315. ColumnPath column_path;
  1316. int64_t timestamp;
  1317. ConsistencyLevel::type consistency_level;
  1318. _Cassandra_remove_args__isset __isset;
  1319. void __set_key(const std::string& val) {
  1320. key = val;
  1321. }
  1322. void __set_column_path(const ColumnPath& val) {
  1323. column_path = val;
  1324. }
  1325. void __set_timestamp(const int64_t val) {
  1326. timestamp = val;
  1327. }
  1328. void __set_consistency_level(const ConsistencyLevel::type val) {
  1329. consistency_level = val;
  1330. }
  1331. bool operator == (const Cassandra_remove_args & rhs) const
  1332. {
  1333. if (!(key == rhs.key))
  1334. return false;
  1335. if (!(column_path == rhs.column_path))
  1336. return false;
  1337. if (!(timestamp == rhs.timestamp))
  1338. return false;
  1339. if (!(consistency_level == rhs.consistency_level))
  1340. return false;
  1341. return true;
  1342. }
  1343. bool operator != (const Cassandra_remove_args &rhs) const {
  1344. return !(*this == rhs);
  1345. }
  1346. bool operator < (const Cassandra_remove_args & ) const;
  1347. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  1348. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  1349. };
  1350. class Cassandra_remove_pargs {
  1351. public:
  1352. virtual ~Cassandra_remove_pargs() throw() {}
  1353. const std::string* key;
  1354. const ColumnPath* column_path;
  1355. const int64_t* timestamp;
  1356. const ConsistencyLevel::type* consistency_level;
  1357. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  1358. };
  1359. typedef struct _Cassandra_remove_result__isset {
  1360. _Cassandra_remove_result__isset() : ire(false), ue(false), te(false) {}
  1361. bool ire;
  1362. bool ue;
  1363. bool te;
  1364. } _Cassandra_remove_result__isset;
  1365. class Cassandra_remove_result {
  1366. public:
  1367. Cassandra_remove_result() {
  1368. }
  1369. virtual ~Cassandra_remove_result() throw() {}
  1370. InvalidRequestException ire;
  1371. UnavailableException ue;
  1372. TimedOutException te;
  1373. _Cassandra_remove_result__isset __isset;
  1374. void __set_ire(const InvalidRequestException& val) {
  1375. ire = val;
  1376. }
  1377. void __set_ue(const UnavailableException& val) {
  1378. ue = val;
  1379. }
  1380. void __set_te(const TimedOutException& val) {
  1381. te = val;
  1382. }
  1383. bool operator == (const Cassandra_remove_result & rhs) const
  1384. {
  1385. if (!(ire == rhs.ire))
  1386. return false;
  1387. if (!(ue == rhs.ue))
  1388. return false;
  1389. if (!(te == rhs.te))
  1390. return false;
  1391. return true;
  1392. }
  1393. bool operator != (const Cassandra_remove_result &rhs) const {
  1394. return !(*this == rhs);
  1395. }
  1396. bool operator < (const Cassandra_remove_result & ) const;
  1397. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  1398. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  1399. };
  1400. typedef struct _Cassandra_remove_presult__isset {
  1401. _Cassandra_remove_presult__isset() : ire(false), ue(false), te(false) {}
  1402. bool ire;
  1403. bool ue;
  1404. bool te;
  1405. } _Cassandra_remove_presult__isset;
  1406. class Cassandra_remove_presult {
  1407. public:
  1408. virtual ~Cassandra_remove_presult() throw() {}
  1409. InvalidRequestException ire;
  1410. UnavailableException ue;
  1411. TimedOutException te;
  1412. _Cassandra_remove_presult__isset __isset;
  1413. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  1414. };
  1415. class Cassandra_remove_counter_args {
  1416. public:
  1417. Cassandra_remove_counter_args() : key("") {
  1418. consistency_level = (ConsistencyLevel::type)1;
  1419. }
  1420. virtual ~Cassandra_remove_counter_args() throw() {}
  1421. std::string key;
  1422. ColumnPath path;
  1423. ConsistencyLevel::type consistency_level;
  1424. void __set_key(const std::string& val) {
  1425. key = val;
  1426. }
  1427. void __set_path(const ColumnPath& val) {
  1428. path = val;
  1429. }
  1430. void __set_consistency_level(const ConsistencyLevel::type val) {
  1431. consistency_level = val;
  1432. }
  1433. bool operator == (const Cassandra_remove_counter_args & rhs) const
  1434. {
  1435. if (!(key == rhs.key))
  1436. return false;
  1437. if (!(path == rhs.path))
  1438. return false;
  1439. if (!(consistency_level == rhs.consistency_level))
  1440. return false;
  1441. return true;
  1442. }
  1443. bool operator != (const Cassandra_remove_counter_args &rhs) const {
  1444. return !(*this == rhs);
  1445. }
  1446. bool operator < (const Cassandra_remove_counter_args & ) const;
  1447. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  1448. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  1449. };
  1450. class Cassandra_remove_counter_pargs {
  1451. public:
  1452. virtual ~Cassandra_remove_counter_pargs() throw() {}
  1453. const std::string* key;
  1454. const ColumnPath* path;
  1455. const ConsistencyLevel::type* consistency_level;
  1456. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  1457. };
  1458. typedef struct _Cassandra_remove_counter_result__isset {
  1459. _Cassandra_remove_counter_result__isset() : ire(false), ue(false), te(false) {}
  1460. bool ire;
  1461. bool ue;
  1462. bool te;
  1463. } _Cassandra_remove_counter_result__isset;
  1464. class Cassandra_remove_counter_result {
  1465. public:
  1466. Cassandra_remove_counter_result() {
  1467. }
  1468. virtual ~Cassandra_remove_counter_result() throw() {}
  1469. InvalidRequestException ire;
  1470. UnavailableException ue;
  1471. TimedOutException te;
  1472. _Cassandra_remove_counter_result__isset __isset;
  1473. void __set_ire(const InvalidRequestException& val) {
  1474. ire = val;
  1475. }
  1476. void __set_ue(const UnavailableException& val) {
  1477. ue = val;
  1478. }
  1479. void __set_te(const TimedOutException& val) {
  1480. te = val;
  1481. }
  1482. bool operator == (const Cassandra_remove_counter_result & rhs) const
  1483. {
  1484. if (!(ire == rhs.ire))
  1485. return false;
  1486. if (!(ue == rhs.ue))
  1487. return false;
  1488. if (!(te == rhs.te))
  1489. return false;
  1490. return true;
  1491. }
  1492. bool operator != (const Cassandra_remove_counter_result &rhs) const {
  1493. return !(*this == rhs);
  1494. }
  1495. bool operator < (const Cassandra_remove_counter_result & ) const;
  1496. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  1497. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  1498. };
  1499. typedef struct _Cassandra_remove_counter_presult__isset {
  1500. _Cassandra_remove_counter_presult__isset() : ire(false), ue(false), te(false) {}
  1501. bool ire;
  1502. bool ue;
  1503. bool te;
  1504. } _Cassandra_remove_counter_presult__isset;
  1505. class Cassandra_remove_counter_presult {
  1506. public:
  1507. virtual ~Cassandra_remove_counter_presult() throw() {}
  1508. InvalidRequestException ire;
  1509. UnavailableException ue;
  1510. TimedOutException te;
  1511. _Cassandra_remove_counter_presult__isset __isset;
  1512. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  1513. };
  1514. class Cassandra_batch_mutate_args {
  1515. public:
  1516. Cassandra_batch_mutate_args() {
  1517. consistency_level = (ConsistencyLevel::type)1;
  1518. }
  1519. virtual ~Cassandra_batch_mutate_args() throw() {}
  1520. std::map<std::string, std::map<std::string, std::vector<Mutation> > > mutation_map;
  1521. ConsistencyLevel::type consistency_level;
  1522. void __set_mutation_map(const std::map<std::string, std::map<std::string, std::vector<Mutation> > > & val) {
  1523. mutation_map = val;
  1524. }
  1525. void __set_consistency_level(const ConsistencyLevel::type val) {
  1526. consistency_level = val;
  1527. }
  1528. bool operator == (const Cassandra_batch_mutate_args & rhs) const
  1529. {
  1530. if (!(mutation_map == rhs.mutation_map))
  1531. return false;
  1532. if (!(consistency_level == rhs.consistency_level))
  1533. return false;
  1534. return true;
  1535. }
  1536. bool operator != (const Cassandra_batch_mutate_args &rhs) const {
  1537. return !(*this == rhs);
  1538. }
  1539. bool operator < (const Cassandra_batch_mutate_args & ) const;
  1540. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  1541. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  1542. };
  1543. class Cassandra_batch_mutate_pargs {
  1544. public:
  1545. virtual ~Cassandra_batch_mutate_pargs() throw() {}
  1546. const std::map<std::string, std::map<std::string, std::vector<Mutation> > > * mutation_map;
  1547. const ConsistencyLevel::type* consistency_level;
  1548. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  1549. };
  1550. typedef struct _Cassandra_batch_mutate_result__isset {
  1551. _Cassandra_batch_mutate_result__isset() : ire(false), ue(false), te(false) {}
  1552. bool ire;
  1553. bool ue;
  1554. bool te;
  1555. } _Cassandra_batch_mutate_result__isset;
  1556. class Cassandra_batch_mutate_result {
  1557. public:
  1558. Cassandra_batch_mutate_result() {
  1559. }
  1560. virtual ~Cassandra_batch_mutate_result() throw() {}
  1561. InvalidRequestException ire;
  1562. UnavailableException ue;
  1563. TimedOutException te;
  1564. _Cassandra_batch_mutate_result__isset __isset;
  1565. void __set_ire(const InvalidRequestException& val) {
  1566. ire = val;
  1567. }
  1568. void __set_ue(const UnavailableException& val) {
  1569. ue = val;
  1570. }
  1571. void __set_te(const TimedOutException& val) {
  1572. te = val;
  1573. }
  1574. bool operator == (const Cassandra_batch_mutate_result & rhs) const
  1575. {
  1576. if (!(ire == rhs.ire))
  1577. return false;
  1578. if (!(ue == rhs.ue))
  1579. return false;
  1580. if (!(te == rhs.te))
  1581. return false;
  1582. return true;
  1583. }
  1584. bool operator != (const Cassandra_batch_mutate_result &rhs) const {
  1585. return !(*this == rhs);
  1586. }
  1587. bool operator < (const Cassandra_batch_mutate_result & ) const;
  1588. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  1589. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  1590. };
  1591. typedef struct _Cassandra_batch_mutate_presult__isset {
  1592. _Cassandra_batch_mutate_presult__isset() : ire(false), ue(false), te(false) {}
  1593. bool ire;
  1594. bool ue;
  1595. bool te;
  1596. } _Cassandra_batch_mutate_presult__isset;
  1597. class Cassandra_batch_mutate_presult {
  1598. public:
  1599. virtual ~Cassandra_batch_mutate_presult() throw() {}
  1600. InvalidRequestException ire;
  1601. UnavailableException ue;
  1602. TimedOutException te;
  1603. _Cassandra_batch_mutate_presult__isset __isset;
  1604. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  1605. };
  1606. class Cassandra_truncate_args {
  1607. public:
  1608. Cassandra_truncate_args() : cfname("") {
  1609. }
  1610. virtual ~Cassandra_truncate_args() throw() {}
  1611. std::string cfname;
  1612. void __set_cfname(const std::string& val) {
  1613. cfname = val;
  1614. }
  1615. bool operator == (const Cassandra_truncate_args & rhs) const
  1616. {
  1617. if (!(cfname == rhs.cfname))
  1618. return false;
  1619. return true;
  1620. }
  1621. bool operator != (const Cassandra_truncate_args &rhs) const {
  1622. return !(*this == rhs);
  1623. }
  1624. bool operator < (const Cassandra_truncate_args & ) const;
  1625. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  1626. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  1627. };
  1628. class Cassandra_truncate_pargs {
  1629. public:
  1630. virtual ~Cassandra_truncate_pargs() throw() {}
  1631. const std::string* cfname;
  1632. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  1633. };
  1634. typedef struct _Cassandra_truncate_result__isset {
  1635. _Cassandra_truncate_result__isset() : ire(false), ue(false) {}
  1636. bool ire;
  1637. bool ue;
  1638. } _Cassandra_truncate_result__isset;
  1639. class Cassandra_truncate_result {
  1640. public:
  1641. Cassandra_truncate_result() {
  1642. }
  1643. virtual ~Cassandra_truncate_result() throw() {}
  1644. InvalidRequestException ire;
  1645. UnavailableException ue;
  1646. _Cassandra_truncate_result__isset __isset;
  1647. void __set_ire(const InvalidRequestException& val) {
  1648. ire = val;
  1649. }
  1650. void __set_ue(const UnavailableException& val) {
  1651. ue = val;
  1652. }
  1653. bool operator == (const Cassandra_truncate_result & rhs) const
  1654. {
  1655. if (!(ire == rhs.ire))
  1656. return false;
  1657. if (!(ue == rhs.ue))
  1658. return false;
  1659. return true;
  1660. }
  1661. bool operator != (const Cassandra_truncate_result &rhs) const {
  1662. return !(*this == rhs);
  1663. }
  1664. bool operator < (const Cassandra_truncate_result & ) const;
  1665. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  1666. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  1667. };
  1668. typedef struct _Cassandra_truncate_presult__isset {
  1669. _Cassandra_truncate_presult__isset() : ire(false), ue(false) {}
  1670. bool ire;
  1671. bool ue;
  1672. } _Cassandra_truncate_presult__isset;
  1673. class Cassandra_truncate_presult {
  1674. public:
  1675. virtual ~Cassandra_truncate_presult() throw() {}
  1676. InvalidRequestException ire;
  1677. UnavailableException ue;
  1678. _Cassandra_truncate_presult__isset __isset;
  1679. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  1680. };
  1681. class Cassandra_describe_schema_versions_args {
  1682. public:
  1683. Cassandra_describe_schema_versions_args() {
  1684. }
  1685. virtual ~Cassandra_describe_schema_versions_args() throw() {}
  1686. bool operator == (const Cassandra_describe_schema_versions_args & /* rhs */) const
  1687. {
  1688. return true;
  1689. }
  1690. bool operator != (const Cassandra_describe_schema_versions_args &rhs) const {
  1691. return !(*this == rhs);
  1692. }
  1693. bool operator < (const Cassandra_describe_schema_versions_args & ) const;
  1694. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  1695. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  1696. };
  1697. class Cassandra_describe_schema_versions_pargs {
  1698. public:
  1699. virtual ~Cassandra_describe_schema_versions_pargs() throw() {}
  1700. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  1701. };
  1702. typedef struct _Cassandra_describe_schema_versions_result__isset {
  1703. _Cassandra_describe_schema_versions_result__isset() : success(false), ire(false) {}
  1704. bool success;
  1705. bool ire;
  1706. } _Cassandra_describe_schema_versions_result__isset;
  1707. class Cassandra_describe_schema_versions_result {
  1708. public:
  1709. Cassandra_describe_schema_versions_result() {
  1710. }
  1711. virtual ~Cassandra_describe_schema_versions_result() throw() {}
  1712. std::map<std::string, std::vector<std::string> > success;
  1713. InvalidRequestException ire;
  1714. _Cassandra_describe_schema_versions_result__isset __isset;
  1715. void __set_success(const std::map<std::string, std::vector<std::string> > & val) {
  1716. success = val;
  1717. }
  1718. void __set_ire(const InvalidRequestException& val) {
  1719. ire = val;
  1720. }
  1721. bool operator == (const Cassandra_describe_schema_versions_result & rhs) const
  1722. {
  1723. if (!(success == rhs.success))
  1724. return false;
  1725. if (!(ire == rhs.ire))
  1726. return false;
  1727. return true;
  1728. }
  1729. bool operator != (const Cassandra_describe_schema_versions_result &rhs) const {
  1730. return !(*this == rhs);
  1731. }
  1732. bool operator < (const Cassandra_describe_schema_versions_result & ) const;
  1733. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  1734. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  1735. };
  1736. typedef struct _Cassandra_describe_schema_versions_presult__isset {
  1737. _Cassandra_describe_schema_versions_presult__isset() : success(false), ire(false) {}
  1738. bool success;
  1739. bool ire;
  1740. } _Cassandra_describe_schema_versions_presult__isset;
  1741. class Cassandra_describe_schema_versions_presult {
  1742. public:
  1743. virtual ~Cassandra_describe_schema_versions_presult() throw() {}
  1744. std::map<std::string, std::vector<std::string> > * success;
  1745. InvalidRequestException ire;
  1746. _Cassandra_describe_schema_versions_presult__isset __isset;
  1747. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  1748. };
  1749. class Cassandra_describe_keyspaces_args {
  1750. public:
  1751. Cassandra_describe_keyspaces_args() {
  1752. }
  1753. virtual ~Cassandra_describe_keyspaces_args() throw() {}
  1754. bool operator == (const Cassandra_describe_keyspaces_args & /* rhs */) const
  1755. {
  1756. return true;
  1757. }
  1758. bool operator != (const Cassandra_describe_keyspaces_args &rhs) const {
  1759. return !(*this == rhs);
  1760. }
  1761. bool operator < (const Cassandra_describe_keyspaces_args & ) const;
  1762. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  1763. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  1764. };
  1765. class Cassandra_describe_keyspaces_pargs {
  1766. public:
  1767. virtual ~Cassandra_describe_keyspaces_pargs() throw() {}
  1768. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  1769. };
  1770. typedef struct _Cassandra_describe_keyspaces_result__isset {
  1771. _Cassandra_describe_keyspaces_result__isset() : success(false), ire(false) {}
  1772. bool success;
  1773. bool ire;
  1774. } _Cassandra_describe_keyspaces_result__isset;
  1775. class Cassandra_describe_keyspaces_result {
  1776. public:
  1777. Cassandra_describe_keyspaces_result() {
  1778. }
  1779. virtual ~Cassandra_describe_keyspaces_result() throw() {}
  1780. std::vector<KsDef> success;
  1781. InvalidRequestException ire;
  1782. _Cassandra_describe_keyspaces_result__isset __isset;
  1783. void __set_success(const std::vector<KsDef> & val) {
  1784. success = val;
  1785. }
  1786. void __set_ire(const InvalidRequestException& val) {
  1787. ire = val;
  1788. }
  1789. bool operator == (const Cassandra_describe_keyspaces_result & rhs) const
  1790. {
  1791. if (!(success == rhs.success))
  1792. return false;
  1793. if (!(ire == rhs.ire))
  1794. return false;
  1795. return true;
  1796. }
  1797. bool operator != (const Cassandra_describe_keyspaces_result &rhs) const {
  1798. return !(*this == rhs);
  1799. }
  1800. bool operator < (const Cassandra_describe_keyspaces_result & ) const;
  1801. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  1802. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  1803. };
  1804. typedef struct _Cassandra_describe_keyspaces_presult__isset {
  1805. _Cassandra_describe_keyspaces_presult__isset() : success(false), ire(false) {}
  1806. bool success;
  1807. bool ire;
  1808. } _Cassandra_describe_keyspaces_presult__isset;
  1809. class Cassandra_describe_keyspaces_presult {
  1810. public:
  1811. virtual ~Cassandra_describe_keyspaces_presult() throw() {}
  1812. std::vector<KsDef> * success;
  1813. InvalidRequestException ire;
  1814. _Cassandra_describe_keyspaces_presult__isset __isset;
  1815. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  1816. };
  1817. class Cassandra_describe_cluster_name_args {
  1818. public:
  1819. Cassandra_describe_cluster_name_args() {
  1820. }
  1821. virtual ~Cassandra_describe_cluster_name_args() throw() {}
  1822. bool operator == (const Cassandra_describe_cluster_name_args & /* rhs */) const
  1823. {
  1824. return true;
  1825. }
  1826. bool operator != (const Cassandra_describe_cluster_name_args &rhs) const {
  1827. return !(*this == rhs);
  1828. }
  1829. bool operator < (const Cassandra_describe_cluster_name_args & ) const;
  1830. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  1831. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  1832. };
  1833. class Cassandra_describe_cluster_name_pargs {
  1834. public:
  1835. virtual ~Cassandra_describe_cluster_name_pargs() throw() {}
  1836. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  1837. };
  1838. typedef struct _Cassandra_describe_cluster_name_result__isset {
  1839. _Cassandra_describe_cluster_name_result__isset() : success(false) {}
  1840. bool success;
  1841. } _Cassandra_describe_cluster_name_result__isset;
  1842. class Cassandra_describe_cluster_name_result {
  1843. public:
  1844. Cassandra_describe_cluster_name_result() : success("") {
  1845. }
  1846. virtual ~Cassandra_describe_cluster_name_result() throw() {}
  1847. std::string success;
  1848. _Cassandra_describe_cluster_name_result__isset __isset;
  1849. void __set_success(const std::string& val) {
  1850. success = val;
  1851. }
  1852. bool operator == (const Cassandra_describe_cluster_name_result & rhs) const
  1853. {
  1854. if (!(success == rhs.success))
  1855. return false;
  1856. return true;
  1857. }
  1858. bool operator != (const Cassandra_describe_cluster_name_result &rhs) const {
  1859. return !(*this == rhs);
  1860. }
  1861. bool operator < (const Cassandra_describe_cluster_name_result & ) const;
  1862. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  1863. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  1864. };
  1865. typedef struct _Cassandra_describe_cluster_name_presult__isset {
  1866. _Cassandra_describe_cluster_name_presult__isset() : success(false) {}
  1867. bool success;
  1868. } _Cassandra_describe_cluster_name_presult__isset;
  1869. class Cassandra_describe_cluster_name_presult {
  1870. public:
  1871. virtual ~Cassandra_describe_cluster_name_presult() throw() {}
  1872. std::string* success;
  1873. _Cassandra_describe_cluster_name_presult__isset __isset;
  1874. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  1875. };
  1876. class Cassandra_describe_version_args {
  1877. public:
  1878. Cassandra_describe_version_args() {
  1879. }
  1880. virtual ~Cassandra_describe_version_args() throw() {}
  1881. bool operator == (const Cassandra_describe_version_args & /* rhs */) const
  1882. {
  1883. return true;
  1884. }
  1885. bool operator != (const Cassandra_describe_version_args &rhs) const {
  1886. return !(*this == rhs);
  1887. }
  1888. bool operator < (const Cassandra_describe_version_args & ) const;
  1889. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  1890. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  1891. };
  1892. class Cassandra_describe_version_pargs {
  1893. public:
  1894. virtual ~Cassandra_describe_version_pargs() throw() {}
  1895. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  1896. };
  1897. typedef struct _Cassandra_describe_version_result__isset {
  1898. _Cassandra_describe_version_result__isset() : success(false) {}
  1899. bool success;
  1900. } _Cassandra_describe_version_result__isset;
  1901. class Cassandra_describe_version_result {
  1902. public:
  1903. Cassandra_describe_version_result() : success("") {
  1904. }
  1905. virtual ~Cassandra_describe_version_result() throw() {}
  1906. std::string success;
  1907. _Cassandra_describe_version_result__isset __isset;
  1908. void __set_success(const std::string& val) {
  1909. success = val;
  1910. }
  1911. bool operator == (const Cassandra_describe_version_result & rhs) const
  1912. {
  1913. if (!(success == rhs.success))
  1914. return false;
  1915. return true;
  1916. }
  1917. bool operator != (const Cassandra_describe_version_result &rhs) const {
  1918. return !(*this == rhs);
  1919. }
  1920. bool operator < (const Cassandra_describe_version_result & ) const;
  1921. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  1922. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  1923. };
  1924. typedef struct _Cassandra_describe_version_presult__isset {
  1925. _Cassandra_describe_version_presult__isset() : success(false) {}
  1926. bool success;
  1927. } _Cassandra_describe_version_presult__isset;
  1928. class Cassandra_describe_version_presult {
  1929. public:
  1930. virtual ~Cassandra_describe_version_presult() throw() {}
  1931. std::string* success;
  1932. _Cassandra_describe_version_presult__isset __isset;
  1933. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  1934. };
  1935. class Cassandra_describe_ring_args {
  1936. public:
  1937. Cassandra_describe_ring_args() : keyspace("") {
  1938. }
  1939. virtual ~Cassandra_describe_ring_args() throw() {}
  1940. std::string keyspace;
  1941. void __set_keyspace(const std::string& val) {
  1942. keyspace = val;
  1943. }
  1944. bool operator == (const Cassandra_describe_ring_args & rhs) const
  1945. {
  1946. if (!(keyspace == rhs.keyspace))
  1947. return false;
  1948. return true;
  1949. }
  1950. bool operator != (const Cassandra_describe_ring_args &rhs) const {
  1951. return !(*this == rhs);
  1952. }
  1953. bool operator < (const Cassandra_describe_ring_args & ) const;
  1954. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  1955. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  1956. };
  1957. class Cassandra_describe_ring_pargs {
  1958. public:
  1959. virtual ~Cassandra_describe_ring_pargs() throw() {}
  1960. const std::string* keyspace;
  1961. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  1962. };
  1963. typedef struct _Cassandra_describe_ring_result__isset {
  1964. _Cassandra_describe_ring_result__isset() : success(false), ire(false) {}
  1965. bool success;
  1966. bool ire;
  1967. } _Cassandra_describe_ring_result__isset;
  1968. class Cassandra_describe_ring_result {
  1969. public:
  1970. Cassandra_describe_ring_result() {
  1971. }
  1972. virtual ~Cassandra_describe_ring_result() throw() {}
  1973. std::vector<TokenRange> success;
  1974. InvalidRequestException ire;
  1975. _Cassandra_describe_ring_result__isset __isset;
  1976. void __set_success(const std::vector<TokenRange> & val) {
  1977. success = val;
  1978. }
  1979. void __set_ire(const InvalidRequestException& val) {
  1980. ire = val;
  1981. }
  1982. bool operator == (const Cassandra_describe_ring_result & rhs) const
  1983. {
  1984. if (!(success == rhs.success))
  1985. return false;
  1986. if (!(ire == rhs.ire))
  1987. return false;
  1988. return true;
  1989. }
  1990. bool operator != (const Cassandra_describe_ring_result &rhs) const {
  1991. return !(*this == rhs);
  1992. }
  1993. bool operator < (const Cassandra_describe_ring_result & ) const;
  1994. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  1995. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  1996. };
  1997. typedef struct _Cassandra_describe_ring_presult__isset {
  1998. _Cassandra_describe_ring_presult__isset() : success(false), ire(false) {}
  1999. bool success;
  2000. bool ire;
  2001. } _Cassandra_describe_ring_presult__isset;
  2002. class Cassandra_describe_ring_presult {
  2003. public:
  2004. virtual ~Cassandra_describe_ring_presult() throw() {}
  2005. std::vector<TokenRange> * success;
  2006. InvalidRequestException ire;
  2007. _Cassandra_describe_ring_presult__isset __isset;
  2008. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  2009. };
  2010. class Cassandra_describe_partitioner_args {
  2011. public:
  2012. Cassandra_describe_partitioner_args() {
  2013. }
  2014. virtual ~Cassandra_describe_partitioner_args() throw() {}
  2015. bool operator == (const Cassandra_describe_partitioner_args & /* rhs */) const
  2016. {
  2017. return true;
  2018. }
  2019. bool operator != (const Cassandra_describe_partitioner_args &rhs) const {
  2020. return !(*this == rhs);
  2021. }
  2022. bool operator < (const Cassandra_describe_partitioner_args & ) const;
  2023. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  2024. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  2025. };
  2026. class Cassandra_describe_partitioner_pargs {
  2027. public:
  2028. virtual ~Cassandra_describe_partitioner_pargs() throw() {}
  2029. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  2030. };
  2031. typedef struct _Cassandra_describe_partitioner_result__isset {
  2032. _Cassandra_describe_partitioner_result__isset() : success(false) {}
  2033. bool success;
  2034. } _Cassandra_describe_partitioner_result__isset;
  2035. class Cassandra_describe_partitioner_result {
  2036. public:
  2037. Cassandra_describe_partitioner_result() : success("") {
  2038. }
  2039. virtual ~Cassandra_describe_partitioner_result() throw() {}
  2040. std::string success;
  2041. _Cassandra_describe_partitioner_result__isset __isset;
  2042. void __set_success(const std::string& val) {
  2043. success = val;
  2044. }
  2045. bool operator == (const Cassandra_describe_partitioner_result & rhs) const
  2046. {
  2047. if (!(success == rhs.success))
  2048. return false;
  2049. return true;
  2050. }
  2051. bool operator != (const Cassandra_describe_partitioner_result &rhs) const {
  2052. return !(*this == rhs);
  2053. }
  2054. bool operator < (const Cassandra_describe_partitioner_result & ) const;
  2055. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  2056. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  2057. };
  2058. typedef struct _Cassandra_describe_partitioner_presult__isset {
  2059. _Cassandra_describe_partitioner_presult__isset() : success(false) {}
  2060. bool success;
  2061. } _Cassandra_describe_partitioner_presult__isset;
  2062. class Cassandra_describe_partitioner_presult {
  2063. public:
  2064. virtual ~Cassandra_describe_partitioner_presult() throw() {}
  2065. std::string* success;
  2066. _Cassandra_describe_partitioner_presult__isset __isset;
  2067. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  2068. };
  2069. class Cassandra_describe_snitch_args {
  2070. public:
  2071. Cassandra_describe_snitch_args() {
  2072. }
  2073. virtual ~Cassandra_describe_snitch_args() throw() {}
  2074. bool operator == (const Cassandra_describe_snitch_args & /* rhs */) const
  2075. {
  2076. return true;
  2077. }
  2078. bool operator != (const Cassandra_describe_snitch_args &rhs) const {
  2079. return !(*this == rhs);
  2080. }
  2081. bool operator < (const Cassandra_describe_snitch_args & ) const;
  2082. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  2083. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  2084. };
  2085. class Cassandra_describe_snitch_pargs {
  2086. public:
  2087. virtual ~Cassandra_describe_snitch_pargs() throw() {}
  2088. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  2089. };
  2090. typedef struct _Cassandra_describe_snitch_result__isset {
  2091. _Cassandra_describe_snitch_result__isset() : success(false) {}
  2092. bool success;
  2093. } _Cassandra_describe_snitch_result__isset;
  2094. class Cassandra_describe_snitch_result {
  2095. public:
  2096. Cassandra_describe_snitch_result() : success("") {
  2097. }
  2098. virtual ~Cassandra_describe_snitch_result() throw() {}
  2099. std::string success;
  2100. _Cassandra_describe_snitch_result__isset __isset;
  2101. void __set_success(const std::string& val) {
  2102. success = val;
  2103. }
  2104. bool operator == (const Cassandra_describe_snitch_result & rhs) const
  2105. {
  2106. if (!(success == rhs.success))
  2107. return false;
  2108. return true;
  2109. }
  2110. bool operator != (const Cassandra_describe_snitch_result &rhs) const {
  2111. return !(*this == rhs);
  2112. }
  2113. bool operator < (const Cassandra_describe_snitch_result & ) const;
  2114. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  2115. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  2116. };
  2117. typedef struct _Cassandra_describe_snitch_presult__isset {
  2118. _Cassandra_describe_snitch_presult__isset() : success(false) {}
  2119. bool success;
  2120. } _Cassandra_describe_snitch_presult__isset;
  2121. class Cassandra_describe_snitch_presult {
  2122. public:
  2123. virtual ~Cassandra_describe_snitch_presult() throw() {}
  2124. std::string* success;
  2125. _Cassandra_describe_snitch_presult__isset __isset;
  2126. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  2127. };
  2128. class Cassandra_describe_keyspace_args {
  2129. public:
  2130. Cassandra_describe_keyspace_args() : keyspace("") {
  2131. }
  2132. virtual ~Cassandra_describe_keyspace_args() throw() {}
  2133. std::string keyspace;
  2134. void __set_keyspace(const std::string& val) {
  2135. keyspace = val;
  2136. }
  2137. bool operator == (const Cassandra_describe_keyspace_args & rhs) const
  2138. {
  2139. if (!(keyspace == rhs.keyspace))
  2140. return false;
  2141. return true;
  2142. }
  2143. bool operator != (const Cassandra_describe_keyspace_args &rhs) const {
  2144. return !(*this == rhs);
  2145. }
  2146. bool operator < (const Cassandra_describe_keyspace_args & ) const;
  2147. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  2148. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  2149. };
  2150. class Cassandra_describe_keyspace_pargs {
  2151. public:
  2152. virtual ~Cassandra_describe_keyspace_pargs() throw() {}
  2153. const std::string* keyspace;
  2154. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  2155. };
  2156. typedef struct _Cassandra_describe_keyspace_result__isset {
  2157. _Cassandra_describe_keyspace_result__isset() : success(false), nfe(false), ire(false) {}
  2158. bool success;
  2159. bool nfe;
  2160. bool ire;
  2161. } _Cassandra_describe_keyspace_result__isset;
  2162. class Cassandra_describe_keyspace_result {
  2163. public:
  2164. Cassandra_describe_keyspace_result() {
  2165. }
  2166. virtual ~Cassandra_describe_keyspace_result() throw() {}
  2167. KsDef success;
  2168. NotFoundException nfe;
  2169. InvalidRequestException ire;
  2170. _Cassandra_describe_keyspace_result__isset __isset;
  2171. void __set_success(const KsDef& val) {
  2172. success = val;
  2173. }
  2174. void __set_nfe(const NotFoundException& val) {
  2175. nfe = val;
  2176. }
  2177. void __set_ire(const InvalidRequestException& val) {
  2178. ire = val;
  2179. }
  2180. bool operator == (const Cassandra_describe_keyspace_result & rhs) const
  2181. {
  2182. if (!(success == rhs.success))
  2183. return false;
  2184. if (!(nfe == rhs.nfe))
  2185. return false;
  2186. if (!(ire == rhs.ire))
  2187. return false;
  2188. return true;
  2189. }
  2190. bool operator != (const Cassandra_describe_keyspace_result &rhs) const {
  2191. return !(*this == rhs);
  2192. }
  2193. bool operator < (const Cassandra_describe_keyspace_result & ) const;
  2194. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  2195. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  2196. };
  2197. typedef struct _Cassandra_describe_keyspace_presult__isset {
  2198. _Cassandra_describe_keyspace_presult__isset() : success(false), nfe(false), ire(false) {}
  2199. bool success;
  2200. bool nfe;
  2201. bool ire;
  2202. } _Cassandra_describe_keyspace_presult__isset;
  2203. class Cassandra_describe_keyspace_presult {
  2204. public:
  2205. virtual ~Cassandra_describe_keyspace_presult() throw() {}
  2206. KsDef* success;
  2207. NotFoundException nfe;
  2208. InvalidRequestException ire;
  2209. _Cassandra_describe_keyspace_presult__isset __isset;
  2210. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  2211. };
  2212. class Cassandra_describe_splits_args {
  2213. public:
  2214. Cassandra_describe_splits_args() : cfName(""), start_token(""), end_token(""), keys_per_split(0) {
  2215. }
  2216. virtual ~Cassandra_describe_splits_args() throw() {}
  2217. std::string cfName;
  2218. std::string start_token;
  2219. std::string end_token;
  2220. int32_t keys_per_split;
  2221. void __set_cfName(const std::string& val) {
  2222. cfName = val;
  2223. }
  2224. void __set_start_token(const std::string& val) {
  2225. start_token = val;
  2226. }
  2227. void __set_end_token(const std::string& val) {
  2228. end_token = val;
  2229. }
  2230. void __set_keys_per_split(const int32_t val) {
  2231. keys_per_split = val;
  2232. }
  2233. bool operator == (const Cassandra_describe_splits_args & rhs) const
  2234. {
  2235. if (!(cfName == rhs.cfName))
  2236. return false;
  2237. if (!(start_token == rhs.start_token))
  2238. return false;
  2239. if (!(end_token == rhs.end_token))
  2240. return false;
  2241. if (!(keys_per_split == rhs.keys_per_split))
  2242. return false;
  2243. return true;
  2244. }
  2245. bool operator != (const Cassandra_describe_splits_args &rhs) const {
  2246. return !(*this == rhs);
  2247. }
  2248. bool operator < (const Cassandra_describe_splits_args & ) const;
  2249. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  2250. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  2251. };
  2252. class Cassandra_describe_splits_pargs {
  2253. public:
  2254. virtual ~Cassandra_describe_splits_pargs() throw() {}
  2255. const std::string* cfName;
  2256. const std::string* start_token;
  2257. const std::string* end_token;
  2258. const int32_t* keys_per_split;
  2259. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  2260. };
  2261. typedef struct _Cassandra_describe_splits_result__isset {
  2262. _Cassandra_describe_splits_result__isset() : success(false), ire(false) {}
  2263. bool success;
  2264. bool ire;
  2265. } _Cassandra_describe_splits_result__isset;
  2266. class Cassandra_describe_splits_result {
  2267. public:
  2268. Cassandra_describe_splits_result() {
  2269. }
  2270. virtual ~Cassandra_describe_splits_result() throw() {}
  2271. std::vector<std::string> success;
  2272. InvalidRequestException ire;
  2273. _Cassandra_describe_splits_result__isset __isset;
  2274. void __set_success(const std::vector<std::string> & val) {
  2275. success = val;
  2276. }
  2277. void __set_ire(const InvalidRequestException& val) {
  2278. ire = val;
  2279. }
  2280. bool operator == (const Cassandra_describe_splits_result & rhs) const
  2281. {
  2282. if (!(success == rhs.success))
  2283. return false;
  2284. if (!(ire == rhs.ire))
  2285. return false;
  2286. return true;
  2287. }
  2288. bool operator != (const Cassandra_describe_splits_result &rhs) const {
  2289. return !(*this == rhs);
  2290. }
  2291. bool operator < (const Cassandra_describe_splits_result & ) const;
  2292. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  2293. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  2294. };
  2295. typedef struct _Cassandra_describe_splits_presult__isset {
  2296. _Cassandra_describe_splits_presult__isset() : success(false), ire(false) {}
  2297. bool success;
  2298. bool ire;
  2299. } _Cassandra_describe_splits_presult__isset;
  2300. class Cassandra_describe_splits_presult {
  2301. public:
  2302. virtual ~Cassandra_describe_splits_presult() throw() {}
  2303. std::vector<std::string> * success;
  2304. InvalidRequestException ire;
  2305. _Cassandra_describe_splits_presult__isset __isset;
  2306. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  2307. };
  2308. class Cassandra_system_add_column_family_args {
  2309. public:
  2310. Cassandra_system_add_column_family_args() {
  2311. }
  2312. virtual ~Cassandra_system_add_column_family_args() throw() {}
  2313. CfDef cf_def;
  2314. void __set_cf_def(const CfDef& val) {
  2315. cf_def = val;
  2316. }
  2317. bool operator == (const Cassandra_system_add_column_family_args & rhs) const
  2318. {
  2319. if (!(cf_def == rhs.cf_def))
  2320. return false;
  2321. return true;
  2322. }
  2323. bool operator != (const Cassandra_system_add_column_family_args &rhs) const {
  2324. return !(*this == rhs);
  2325. }
  2326. bool operator < (const Cassandra_system_add_column_family_args & ) const;
  2327. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  2328. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  2329. };
  2330. class Cassandra_system_add_column_family_pargs {
  2331. public:
  2332. virtual ~Cassandra_system_add_column_family_pargs() throw() {}
  2333. const CfDef* cf_def;
  2334. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  2335. };
  2336. typedef struct _Cassandra_system_add_column_family_result__isset {
  2337. _Cassandra_system_add_column_family_result__isset() : success(false), ire(false), sde(false) {}
  2338. bool success;
  2339. bool ire;
  2340. bool sde;
  2341. } _Cassandra_system_add_column_family_result__isset;
  2342. class Cassandra_system_add_column_family_result {
  2343. public:
  2344. Cassandra_system_add_column_family_result() : success("") {
  2345. }
  2346. virtual ~Cassandra_system_add_column_family_result() throw() {}
  2347. std::string success;
  2348. InvalidRequestException ire;
  2349. SchemaDisagreementException sde;
  2350. _Cassandra_system_add_column_family_result__isset __isset;
  2351. void __set_success(const std::string& val) {
  2352. success = val;
  2353. }
  2354. void __set_ire(const InvalidRequestException& val) {
  2355. ire = val;
  2356. }
  2357. void __set_sde(const SchemaDisagreementException& val) {
  2358. sde = val;
  2359. }
  2360. bool operator == (const Cassandra_system_add_column_family_result & rhs) const
  2361. {
  2362. if (!(success == rhs.success))
  2363. return false;
  2364. if (!(ire == rhs.ire))
  2365. return false;
  2366. if (!(sde == rhs.sde))
  2367. return false;
  2368. return true;
  2369. }
  2370. bool operator != (const Cassandra_system_add_column_family_result &rhs) const {
  2371. return !(*this == rhs);
  2372. }
  2373. bool operator < (const Cassandra_system_add_column_family_result & ) const;
  2374. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  2375. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  2376. };
  2377. typedef struct _Cassandra_system_add_column_family_presult__isset {
  2378. _Cassandra_system_add_column_family_presult__isset() : success(false), ire(false), sde(false) {}
  2379. bool success;
  2380. bool ire;
  2381. bool sde;
  2382. } _Cassandra_system_add_column_family_presult__isset;
  2383. class Cassandra_system_add_column_family_presult {
  2384. public:
  2385. virtual ~Cassandra_system_add_column_family_presult() throw() {}
  2386. std::string* success;
  2387. InvalidRequestException ire;
  2388. SchemaDisagreementException sde;
  2389. _Cassandra_system_add_column_family_presult__isset __isset;
  2390. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  2391. };
  2392. class Cassandra_system_drop_column_family_args {
  2393. public:
  2394. Cassandra_system_drop_column_family_args() : column_family("") {
  2395. }
  2396. virtual ~Cassandra_system_drop_column_family_args() throw() {}
  2397. std::string column_family;
  2398. void __set_column_family(const std::string& val) {
  2399. column_family = val;
  2400. }
  2401. bool operator == (const Cassandra_system_drop_column_family_args & rhs) const
  2402. {
  2403. if (!(column_family == rhs.column_family))
  2404. return false;
  2405. return true;
  2406. }
  2407. bool operator != (const Cassandra_system_drop_column_family_args &rhs) const {
  2408. return !(*this == rhs);
  2409. }
  2410. bool operator < (const Cassandra_system_drop_column_family_args & ) const;
  2411. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  2412. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  2413. };
  2414. class Cassandra_system_drop_column_family_pargs {
  2415. public:
  2416. virtual ~Cassandra_system_drop_column_family_pargs() throw() {}
  2417. const std::string* column_family;
  2418. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  2419. };
  2420. typedef struct _Cassandra_system_drop_column_family_result__isset {
  2421. _Cassandra_system_drop_column_family_result__isset() : success(false), ire(false), sde(false) {}
  2422. bool success;
  2423. bool ire;
  2424. bool sde;
  2425. } _Cassandra_system_drop_column_family_result__isset;
  2426. class Cassandra_system_drop_column_family_result {
  2427. public:
  2428. Cassandra_system_drop_column_family_result() : success("") {
  2429. }
  2430. virtual ~Cassandra_system_drop_column_family_result() throw() {}
  2431. std::string success;
  2432. InvalidRequestException ire;
  2433. SchemaDisagreementException sde;
  2434. _Cassandra_system_drop_column_family_result__isset __isset;
  2435. void __set_success(const std::string& val) {
  2436. success = val;
  2437. }
  2438. void __set_ire(const InvalidRequestException& val) {
  2439. ire = val;
  2440. }
  2441. void __set_sde(const SchemaDisagreementException& val) {
  2442. sde = val;
  2443. }
  2444. bool operator == (const Cassandra_system_drop_column_family_result & rhs) const
  2445. {
  2446. if (!(success == rhs.success))
  2447. return false;
  2448. if (!(ire == rhs.ire))
  2449. return false;
  2450. if (!(sde == rhs.sde))
  2451. return false;
  2452. return true;
  2453. }
  2454. bool operator != (const Cassandra_system_drop_column_family_result &rhs) const {
  2455. return !(*this == rhs);
  2456. }
  2457. bool operator < (const Cassandra_system_drop_column_family_result & ) const;
  2458. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  2459. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  2460. };
  2461. typedef struct _Cassandra_system_drop_column_family_presult__isset {
  2462. _Cassandra_system_drop_column_family_presult__isset() : success(false), ire(false), sde(false) {}
  2463. bool success;
  2464. bool ire;
  2465. bool sde;
  2466. } _Cassandra_system_drop_column_family_presult__isset;
  2467. class Cassandra_system_drop_column_family_presult {
  2468. public:
  2469. virtual ~Cassandra_system_drop_column_family_presult() throw() {}
  2470. std::string* success;
  2471. InvalidRequestException ire;
  2472. SchemaDisagreementException sde;
  2473. _Cassandra_system_drop_column_family_presult__isset __isset;
  2474. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  2475. };
  2476. class Cassandra_system_add_keyspace_args {
  2477. public:
  2478. Cassandra_system_add_keyspace_args() {
  2479. }
  2480. virtual ~Cassandra_system_add_keyspace_args() throw() {}
  2481. KsDef ks_def;
  2482. void __set_ks_def(const KsDef& val) {
  2483. ks_def = val;
  2484. }
  2485. bool operator == (const Cassandra_system_add_keyspace_args & rhs) const
  2486. {
  2487. if (!(ks_def == rhs.ks_def))
  2488. return false;
  2489. return true;
  2490. }
  2491. bool operator != (const Cassandra_system_add_keyspace_args &rhs) const {
  2492. return !(*this == rhs);
  2493. }
  2494. bool operator < (const Cassandra_system_add_keyspace_args & ) const;
  2495. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  2496. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  2497. };
  2498. class Cassandra_system_add_keyspace_pargs {
  2499. public:
  2500. virtual ~Cassandra_system_add_keyspace_pargs() throw() {}
  2501. const KsDef* ks_def;
  2502. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  2503. };
  2504. typedef struct _Cassandra_system_add_keyspace_result__isset {
  2505. _Cassandra_system_add_keyspace_result__isset() : success(false), ire(false), sde(false) {}
  2506. bool success;
  2507. bool ire;
  2508. bool sde;
  2509. } _Cassandra_system_add_keyspace_result__isset;
  2510. class Cassandra_system_add_keyspace_result {
  2511. public:
  2512. Cassandra_system_add_keyspace_result() : success("") {
  2513. }
  2514. virtual ~Cassandra_system_add_keyspace_result() throw() {}
  2515. std::string success;
  2516. InvalidRequestException ire;
  2517. SchemaDisagreementException sde;
  2518. _Cassandra_system_add_keyspace_result__isset __isset;
  2519. void __set_success(const std::string& val) {
  2520. success = val;
  2521. }
  2522. void __set_ire(const InvalidRequestException& val) {
  2523. ire = val;
  2524. }
  2525. void __set_sde(const SchemaDisagreementException& val) {
  2526. sde = val;
  2527. }
  2528. bool operator == (const Cassandra_system_add_keyspace_result & rhs) const
  2529. {
  2530. if (!(success == rhs.success))
  2531. return false;
  2532. if (!(ire == rhs.ire))
  2533. return false;
  2534. if (!(sde == rhs.sde))
  2535. return false;
  2536. return true;
  2537. }
  2538. bool operator != (const Cassandra_system_add_keyspace_result &rhs) const {
  2539. return !(*this == rhs);
  2540. }
  2541. bool operator < (const Cassandra_system_add_keyspace_result & ) const;
  2542. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  2543. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  2544. };
  2545. typedef struct _Cassandra_system_add_keyspace_presult__isset {
  2546. _Cassandra_system_add_keyspace_presult__isset() : success(false), ire(false), sde(false) {}
  2547. bool success;
  2548. bool ire;
  2549. bool sde;
  2550. } _Cassandra_system_add_keyspace_presult__isset;
  2551. class Cassandra_system_add_keyspace_presult {
  2552. public:
  2553. virtual ~Cassandra_system_add_keyspace_presult() throw() {}
  2554. std::string* success;
  2555. InvalidRequestException ire;
  2556. SchemaDisagreementException sde;
  2557. _Cassandra_system_add_keyspace_presult__isset __isset;
  2558. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  2559. };
  2560. class Cassandra_system_drop_keyspace_args {
  2561. public:
  2562. Cassandra_system_drop_keyspace_args() : keyspace("") {
  2563. }
  2564. virtual ~Cassandra_system_drop_keyspace_args() throw() {}
  2565. std::string keyspace;
  2566. void __set_keyspace(const std::string& val) {
  2567. keyspace = val;
  2568. }
  2569. bool operator == (const Cassandra_system_drop_keyspace_args & rhs) const
  2570. {
  2571. if (!(keyspace == rhs.keyspace))
  2572. return false;
  2573. return true;
  2574. }
  2575. bool operator != (const Cassandra_system_drop_keyspace_args &rhs) const {
  2576. return !(*this == rhs);
  2577. }
  2578. bool operator < (const Cassandra_system_drop_keyspace_args & ) const;
  2579. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  2580. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  2581. };
  2582. class Cassandra_system_drop_keyspace_pargs {
  2583. public:
  2584. virtual ~Cassandra_system_drop_keyspace_pargs() throw() {}
  2585. const std::string* keyspace;
  2586. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  2587. };
  2588. typedef struct _Cassandra_system_drop_keyspace_result__isset {
  2589. _Cassandra_system_drop_keyspace_result__isset() : success(false), ire(false), sde(false) {}
  2590. bool success;
  2591. bool ire;
  2592. bool sde;
  2593. } _Cassandra_system_drop_keyspace_result__isset;
  2594. class Cassandra_system_drop_keyspace_result {
  2595. public:
  2596. Cassandra_system_drop_keyspace_result() : success("") {
  2597. }
  2598. virtual ~Cassandra_system_drop_keyspace_result() throw() {}
  2599. std::string success;
  2600. InvalidRequestException ire;
  2601. SchemaDisagreementException sde;
  2602. _Cassandra_system_drop_keyspace_result__isset __isset;
  2603. void __set_success(const std::string& val) {
  2604. success = val;
  2605. }
  2606. void __set_ire(const InvalidRequestException& val) {
  2607. ire = val;
  2608. }
  2609. void __set_sde(const SchemaDisagreementException& val) {
  2610. sde = val;
  2611. }
  2612. bool operator == (const Cassandra_system_drop_keyspace_result & rhs) const
  2613. {
  2614. if (!(success == rhs.success))
  2615. return false;
  2616. if (!(ire == rhs.ire))
  2617. return false;
  2618. if (!(sde == rhs.sde))
  2619. return false;
  2620. return true;
  2621. }
  2622. bool operator != (const Cassandra_system_drop_keyspace_result &rhs) const {
  2623. return !(*this == rhs);
  2624. }
  2625. bool operator < (const Cassandra_system_drop_keyspace_result & ) const;
  2626. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  2627. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  2628. };
  2629. typedef struct _Cassandra_system_drop_keyspace_presult__isset {
  2630. _Cassandra_system_drop_keyspace_presult__isset() : success(false), ire(false), sde(false) {}
  2631. bool success;
  2632. bool ire;
  2633. bool sde;
  2634. } _Cassandra_system_drop_keyspace_presult__isset;
  2635. class Cassandra_system_drop_keyspace_presult {
  2636. public:
  2637. virtual ~Cassandra_system_drop_keyspace_presult() throw() {}
  2638. std::string* success;
  2639. InvalidRequestException ire;
  2640. SchemaDisagreementException sde;
  2641. _Cassandra_system_drop_keyspace_presult__isset __isset;
  2642. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  2643. };
  2644. class Cassandra_system_update_keyspace_args {
  2645. public:
  2646. Cassandra_system_update_keyspace_args() {
  2647. }
  2648. virtual ~Cassandra_system_update_keyspace_args() throw() {}
  2649. KsDef ks_def;
  2650. void __set_ks_def(const KsDef& val) {
  2651. ks_def = val;
  2652. }
  2653. bool operator == (const Cassandra_system_update_keyspace_args & rhs) const
  2654. {
  2655. if (!(ks_def == rhs.ks_def))
  2656. return false;
  2657. return true;
  2658. }
  2659. bool operator != (const Cassandra_system_update_keyspace_args &rhs) const {
  2660. return !(*this == rhs);
  2661. }
  2662. bool operator < (const Cassandra_system_update_keyspace_args & ) const;
  2663. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  2664. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  2665. };
  2666. class Cassandra_system_update_keyspace_pargs {
  2667. public:
  2668. virtual ~Cassandra_system_update_keyspace_pargs() throw() {}
  2669. const KsDef* ks_def;
  2670. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  2671. };
  2672. typedef struct _Cassandra_system_update_keyspace_result__isset {
  2673. _Cassandra_system_update_keyspace_result__isset() : success(false), ire(false), sde(false) {}
  2674. bool success;
  2675. bool ire;
  2676. bool sde;
  2677. } _Cassandra_system_update_keyspace_result__isset;
  2678. class Cassandra_system_update_keyspace_result {
  2679. public:
  2680. Cassandra_system_update_keyspace_result() : success("") {
  2681. }
  2682. virtual ~Cassandra_system_update_keyspace_result() throw() {}
  2683. std::string success;
  2684. InvalidRequestException ire;
  2685. SchemaDisagreementException sde;
  2686. _Cassandra_system_update_keyspace_result__isset __isset;
  2687. void __set_success(const std::string& val) {
  2688. success = val;
  2689. }
  2690. void __set_ire(const InvalidRequestException& val) {
  2691. ire = val;
  2692. }
  2693. void __set_sde(const SchemaDisagreementException& val) {
  2694. sde = val;
  2695. }
  2696. bool operator == (const Cassandra_system_update_keyspace_result & rhs) const
  2697. {
  2698. if (!(success == rhs.success))
  2699. return false;
  2700. if (!(ire == rhs.ire))
  2701. return false;
  2702. if (!(sde == rhs.sde))
  2703. return false;
  2704. return true;
  2705. }
  2706. bool operator != (const Cassandra_system_update_keyspace_result &rhs) const {
  2707. return !(*this == rhs);
  2708. }
  2709. bool operator < (const Cassandra_system_update_keyspace_result & ) const;
  2710. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  2711. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  2712. };
  2713. typedef struct _Cassandra_system_update_keyspace_presult__isset {
  2714. _Cassandra_system_update_keyspace_presult__isset() : success(false), ire(false), sde(false) {}
  2715. bool success;
  2716. bool ire;
  2717. bool sde;
  2718. } _Cassandra_system_update_keyspace_presult__isset;
  2719. class Cassandra_system_update_keyspace_presult {
  2720. public:
  2721. virtual ~Cassandra_system_update_keyspace_presult() throw() {}
  2722. std::string* success;
  2723. InvalidRequestException ire;
  2724. SchemaDisagreementException sde;
  2725. _Cassandra_system_update_keyspace_presult__isset __isset;
  2726. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  2727. };
  2728. class Cassandra_system_update_column_family_args {
  2729. public:
  2730. Cassandra_system_update_column_family_args() {
  2731. }
  2732. virtual ~Cassandra_system_update_column_family_args() throw() {}
  2733. CfDef cf_def;
  2734. void __set_cf_def(const CfDef& val) {
  2735. cf_def = val;
  2736. }
  2737. bool operator == (const Cassandra_system_update_column_family_args & rhs) const
  2738. {
  2739. if (!(cf_def == rhs.cf_def))
  2740. return false;
  2741. return true;
  2742. }
  2743. bool operator != (const Cassandra_system_update_column_family_args &rhs) const {
  2744. return !(*this == rhs);
  2745. }
  2746. bool operator < (const Cassandra_system_update_column_family_args & ) const;
  2747. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  2748. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  2749. };
  2750. class Cassandra_system_update_column_family_pargs {
  2751. public:
  2752. virtual ~Cassandra_system_update_column_family_pargs() throw() {}
  2753. const CfDef* cf_def;
  2754. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  2755. };
  2756. typedef struct _Cassandra_system_update_column_family_result__isset {
  2757. _Cassandra_system_update_column_family_result__isset() : success(false), ire(false), sde(false) {}
  2758. bool success;
  2759. bool ire;
  2760. bool sde;
  2761. } _Cassandra_system_update_column_family_result__isset;
  2762. class Cassandra_system_update_column_family_result {
  2763. public:
  2764. Cassandra_system_update_column_family_result() : success("") {
  2765. }
  2766. virtual ~Cassandra_system_update_column_family_result() throw() {}
  2767. std::string success;
  2768. InvalidRequestException ire;
  2769. SchemaDisagreementException sde;
  2770. _Cassandra_system_update_column_family_result__isset __isset;
  2771. void __set_success(const std::string& val) {
  2772. success = val;
  2773. }
  2774. void __set_ire(const InvalidRequestException& val) {
  2775. ire = val;
  2776. }
  2777. void __set_sde(const SchemaDisagreementException& val) {
  2778. sde = val;
  2779. }
  2780. bool operator == (const Cassandra_system_update_column_family_result & rhs) const
  2781. {
  2782. if (!(success == rhs.success))
  2783. return false;
  2784. if (!(ire == rhs.ire))
  2785. return false;
  2786. if (!(sde == rhs.sde))
  2787. return false;
  2788. return true;
  2789. }
  2790. bool operator != (const Cassandra_system_update_column_family_result &rhs) const {
  2791. return !(*this == rhs);
  2792. }
  2793. bool operator < (const Cassandra_system_update_column_family_result & ) const;
  2794. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  2795. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  2796. };
  2797. typedef struct _Cassandra_system_update_column_family_presult__isset {
  2798. _Cassandra_system_update_column_family_presult__isset() : success(false), ire(false), sde(false) {}
  2799. bool success;
  2800. bool ire;
  2801. bool sde;
  2802. } _Cassandra_system_update_column_family_presult__isset;
  2803. class Cassandra_system_update_column_family_presult {
  2804. public:
  2805. virtual ~Cassandra_system_update_column_family_presult() throw() {}
  2806. std::string* success;
  2807. InvalidRequestException ire;
  2808. SchemaDisagreementException sde;
  2809. _Cassandra_system_update_column_family_presult__isset __isset;
  2810. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  2811. };
  2812. class Cassandra_execute_cql_query_args {
  2813. public:
  2814. Cassandra_execute_cql_query_args() : query("") {
  2815. }
  2816. virtual ~Cassandra_execute_cql_query_args() throw() {}
  2817. std::string query;
  2818. Compression::type compression;
  2819. void __set_query(const std::string& val) {
  2820. query = val;
  2821. }
  2822. void __set_compression(const Compression::type val) {
  2823. compression = val;
  2824. }
  2825. bool operator == (const Cassandra_execute_cql_query_args & rhs) const
  2826. {
  2827. if (!(query == rhs.query))
  2828. return false;
  2829. if (!(compression == rhs.compression))
  2830. return false;
  2831. return true;
  2832. }
  2833. bool operator != (const Cassandra_execute_cql_query_args &rhs) const {
  2834. return !(*this == rhs);
  2835. }
  2836. bool operator < (const Cassandra_execute_cql_query_args & ) const;
  2837. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  2838. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  2839. };
  2840. class Cassandra_execute_cql_query_pargs {
  2841. public:
  2842. virtual ~Cassandra_execute_cql_query_pargs() throw() {}
  2843. const std::string* query;
  2844. const Compression::type* compression;
  2845. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  2846. };
  2847. typedef struct _Cassandra_execute_cql_query_result__isset {
  2848. _Cassandra_execute_cql_query_result__isset() : success(false), ire(false), ue(false), te(false), sde(false) {}
  2849. bool success;
  2850. bool ire;
  2851. bool ue;
  2852. bool te;
  2853. bool sde;
  2854. } _Cassandra_execute_cql_query_result__isset;
  2855. class Cassandra_execute_cql_query_result {
  2856. public:
  2857. Cassandra_execute_cql_query_result() {
  2858. }
  2859. virtual ~Cassandra_execute_cql_query_result() throw() {}
  2860. CqlResult success;
  2861. InvalidRequestException ire;
  2862. UnavailableException ue;
  2863. TimedOutException te;
  2864. SchemaDisagreementException sde;
  2865. _Cassandra_execute_cql_query_result__isset __isset;
  2866. void __set_success(const CqlResult& val) {
  2867. success = val;
  2868. }
  2869. void __set_ire(const InvalidRequestException& val) {
  2870. ire = val;
  2871. }
  2872. void __set_ue(const UnavailableException& val) {
  2873. ue = val;
  2874. }
  2875. void __set_te(const TimedOutException& val) {
  2876. te = val;
  2877. }
  2878. void __set_sde(const SchemaDisagreementException& val) {
  2879. sde = val;
  2880. }
  2881. bool operator == (const Cassandra_execute_cql_query_result & rhs) const
  2882. {
  2883. if (!(success == rhs.success))
  2884. return false;
  2885. if (!(ire == rhs.ire))
  2886. return false;
  2887. if (!(ue == rhs.ue))
  2888. return false;
  2889. if (!(te == rhs.te))
  2890. return false;
  2891. if (!(sde == rhs.sde))
  2892. return false;
  2893. return true;
  2894. }
  2895. bool operator != (const Cassandra_execute_cql_query_result &rhs) const {
  2896. return !(*this == rhs);
  2897. }
  2898. bool operator < (const Cassandra_execute_cql_query_result & ) const;
  2899. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  2900. uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
  2901. };
  2902. typedef struct _Cassandra_execute_cql_query_presult__isset {
  2903. _Cassandra_execute_cql_query_presult__isset() : success(false), ire(false), ue(false), te(false), sde(false) {}
  2904. bool success;
  2905. bool ire;
  2906. bool ue;
  2907. bool te;
  2908. bool sde;
  2909. } _Cassandra_execute_cql_query_presult__isset;
  2910. class Cassandra_execute_cql_query_presult {
  2911. public:
  2912. virtual ~Cassandra_execute_cql_query_presult() throw() {}
  2913. CqlResult* success;
  2914. InvalidRequestException ire;
  2915. UnavailableException ue;
  2916. TimedOutException te;
  2917. SchemaDisagreementException sde;
  2918. _Cassandra_execute_cql_query_presult__isset __isset;
  2919. uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
  2920. };
  2921. class CassandraClient : virtual public CassandraIf {
  2922. public:
  2923. CassandraClient(boost::shared_ptr< ::apache::thrift::protocol::TProtocol> prot) :
  2924. piprot_(prot),
  2925. poprot_(prot) {
  2926. iprot_ = prot.get();
  2927. oprot_ = prot.get();
  2928. }
  2929. CassandraClient(boost::shared_ptr< ::apache::thrift::protocol::TProtocol> iprot, boost::shared_ptr< ::apache::thrift::protocol::TProtocol> oprot) :
  2930. piprot_(iprot),
  2931. poprot_(oprot) {
  2932. iprot_ = iprot.get();
  2933. oprot_ = oprot.get();
  2934. }
  2935. boost::shared_ptr< ::apache::thrift::protocol::TProtocol> getInputProtocol() {
  2936. return piprot_;
  2937. }
  2938. boost::shared_ptr< ::apache::thrift::protocol::TProtocol> getOutputProtocol() {
  2939. return poprot_;
  2940. }
  2941. void login(const AuthenticationRequest& auth_request);
  2942. void send_login(const AuthenticationRequest& auth_request);
  2943. void recv_login();
  2944. void set_keyspace(const std::string& keyspace);
  2945. void send_set_keyspace(const std::string& keyspace);
  2946. void recv_set_keyspace();
  2947. void get(ColumnOrSuperColumn& _return, const std::string& key, const ColumnPath& column_path, const ConsistencyLevel::type consistency_level);
  2948. void send_get(const std::string& key, const ColumnPath& column_path, const ConsistencyLevel::type consistency_level);
  2949. void recv_get(ColumnOrSuperColumn& _return);
  2950. void get_slice(std::vector<ColumnOrSuperColumn> & _return, const std::string& key, const ColumnParent& column_parent, const SlicePredicate& predicate, const ConsistencyLevel::type consistency_level);
  2951. void send_get_slice(const std::string& key, const ColumnParent& column_parent, const SlicePredicate& predicate, const ConsistencyLevel::type consistency_level);
  2952. void recv_get_slice(std::vector<ColumnOrSuperColumn> & _return);
  2953. int32_t get_count(const std::string& key, const ColumnParent& column_parent, const SlicePredicate& predicate, const ConsistencyLevel::type consistency_level);
  2954. void send_get_count(const std::string& key, const ColumnParent& column_parent, const SlicePredicate& predicate, const ConsistencyLevel::type consistency_level);
  2955. int32_t recv_get_count();
  2956. void multiget_slice(std::map<std::string, std::vector<ColumnOrSuperColumn> > & _return, const std::vector<std::string> & keys, const ColumnParent& column_parent, const SlicePredicate& predicate, const ConsistencyLevel::type consistency_level);
  2957. void send_multiget_slice(const std::vector<std::string> & keys, const ColumnParent& column_parent, const SlicePredicate& predicate, const ConsistencyLevel::type consistency_level);
  2958. void recv_multiget_slice(std::map<std::string, std::vector<ColumnOrSuperColumn> > & _return);
  2959. void multiget_count(std::map<std::string, int32_t> & _return, const std::vector<std::string> & keys, const ColumnParent& column_parent, const SlicePredicate& predicate, const ConsistencyLevel::type consistency_level);
  2960. void send_multiget_count(const std::vector<std::string> & keys, const ColumnParent& column_parent, const SlicePredicate& predicate, const ConsistencyLevel::type consistency_level);
  2961. void recv_multiget_count(std::map<std::string, int32_t> & _return);
  2962. void get_range_slices(std::vector<KeySlice> & _return, const ColumnParent& column_parent, const SlicePredicate& predicate, const KeyRange& range, const ConsistencyLevel::type consistency_level);
  2963. void send_get_range_slices(const ColumnParent& column_parent, const SlicePredicate& predicate, const KeyRange& range, const ConsistencyLevel::type consistency_level);
  2964. void recv_get_range_slices(std::vector<KeySlice> & _return);
  2965. void get_indexed_slices(std::vector<KeySlice> & _return, const ColumnParent& column_parent, const IndexClause& index_clause, const SlicePredicate& column_predicate, const ConsistencyLevel::type consistency_level);
  2966. void send_get_indexed_slices(const ColumnParent& column_parent, const IndexClause& index_clause, const SlicePredicate& column_predicate, const ConsistencyLevel::type consistency_level);
  2967. void recv_get_indexed_slices(std::vector<KeySlice> & _return);
  2968. void insert(const std::string& key, const ColumnParent& column_parent, const Column& column, const ConsistencyLevel::type consistency_level);
  2969. void send_insert(const std::string& key, const ColumnParent& column_parent, const Column& column, const ConsistencyLevel::type consistency_level);
  2970. void recv_insert();
  2971. void add(const std::string& key, const ColumnParent& column_parent, const CounterColumn& column, const ConsistencyLevel::type consistency_level);
  2972. void send_add(const std::string& key, const ColumnParent& column_parent, const CounterColumn& column, const ConsistencyLevel::type consistency_level);
  2973. void recv_add();
  2974. void remove(const std::string& key, const ColumnPath& column_path, const int64_t timestamp, const ConsistencyLevel::type consistency_level);
  2975. void send_remove(const std::string& key, const ColumnPath& column_path, const int64_t timestamp, const ConsistencyLevel::type consistency_level);
  2976. void recv_remove();
  2977. void remove_counter(const std::string& key, const ColumnPath& path, const ConsistencyLevel::type consistency_level);
  2978. void send_remove_counter(const std::string& key, const ColumnPath& path, const ConsistencyLevel::type consistency_level);
  2979. void recv_remove_counter();
  2980. void batch_mutate(const std::map<std::string, std::map<std::string, std::vector<Mutation> > > & mutation_map, const ConsistencyLevel::type consistency_level);
  2981. void send_batch_mutate(const std::map<std::string, std::map<std::string, std::vector<Mutation> > > & mutation_map, const ConsistencyLevel::type consistency_level);
  2982. void recv_batch_mutate();
  2983. void truncate(const std::string& cfname);
  2984. void send_truncate(const std::string& cfname);
  2985. void recv_truncate();
  2986. void describe_schema_versions(std::map<std::string, std::vector<std::string> > & _return);
  2987. void send_describe_schema_versions();
  2988. void recv_describe_schema_versions(std::map<std::string, std::vector<std::string> > & _return);
  2989. void describe_keyspaces(std::vector<KsDef> & _return);
  2990. void send_describe_keyspaces();
  2991. void recv_describe_keyspaces(std::vector<KsDef> & _return);
  2992. void describe_cluster_name(std::string& _return);
  2993. void send_describe_cluster_name();
  2994. void recv_describe_cluster_name(std::string& _return);
  2995. void describe_version(std::string& _return);
  2996. void send_describe_version();
  2997. void recv_describe_version(std::string& _return);
  2998. void describe_ring(std::vector<TokenRange> & _return, const std::string& keyspace);
  2999. void send_describe_ring(const std::string& keyspace);
  3000. void recv_describe_ring(std::vector<TokenRange> & _return);
  3001. void describe_partitioner(std::string& _return);
  3002. void send_describe_partitioner();
  3003. void recv_describe_partitioner(std::string& _return);
  3004. void describe_snitch(std::string& _return);
  3005. void send_describe_snitch();
  3006. void recv_describe_snitch(std::string& _return);
  3007. void describe_keyspace(KsDef& _return, const std::string& keyspace);
  3008. void send_describe_keyspace(const std::string& keyspace);
  3009. void recv_describe_keyspace(KsDef& _return);
  3010. void describe_splits(std::vector<std::string> & _return, const std::string& cfName, const std::string& start_token, const std::string& end_token, const int32_t keys_per_split);
  3011. void send_describe_splits(const std::string& cfName, const std::string& start_token, const std::string& end_token, const int32_t keys_per_split);
  3012. void recv_describe_splits(std::vector<std::string> & _return);
  3013. void system_add_column_family(std::string& _return, const CfDef& cf_def);
  3014. void send_system_add_column_family(const CfDef& cf_def);
  3015. void recv_system_add_column_family(std::string& _return);
  3016. void system_drop_column_family(std::string& _return, const std::string& column_family);
  3017. void send_system_drop_column_family(const std::string& column_family);
  3018. void recv_system_drop_column_family(std::string& _return);
  3019. void system_add_keyspace(std::string& _return, const KsDef& ks_def);
  3020. void send_system_add_keyspace(const KsDef& ks_def);
  3021. void recv_system_add_keyspace(std::string& _return);
  3022. void system_drop_keyspace(std::string& _return, const std::string& keyspace);
  3023. void send_system_drop_keyspace(const std::string& keyspace);
  3024. void recv_system_drop_keyspace(std::string& _return);
  3025. void system_update_keyspace(std::string& _return, const KsDef& ks_def);
  3026. void send_system_update_keyspace(const KsDef& ks_def);
  3027. void recv_system_update_keyspace(std::string& _return);
  3028. void system_update_column_family(std::string& _return, const CfDef& cf_def);
  3029. void send_system_update_column_family(const CfDef& cf_def);
  3030. void recv_system_update_column_family(std::string& _return);
  3031. void execute_cql_query(CqlResult& _return, const std::string& query, const Compression::type compression);
  3032. void send_execute_cql_query(const std::string& query, const Compression::type compression);
  3033. void recv_execute_cql_query(CqlResult& _return);
  3034. protected:
  3035. boost::shared_ptr< ::apache::thrift::protocol::TProtocol> piprot_;
  3036. boost::shared_ptr< ::apache::thrift::protocol::TProtocol> poprot_;
  3037. ::apache::thrift::protocol::TProtocol* iprot_;
  3038. ::apache::thrift::protocol::TProtocol* oprot_;
  3039. };
  3040. class CassandraProcessor : virtual public ::apache::thrift::TProcessor {
  3041. protected:
  3042. boost::shared_ptr<CassandraIf> iface_;
  3043. virtual bool process_fn(::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, std::string& fname, int32_t seqid, void* callContext);
  3044. private:
  3045. std::map<std::string, void (CassandraProcessor::*)(int32_t, ::apache::thrift::protocol::TProtocol*, ::apache::thrift::protocol::TProtocol*, void*)> processMap_;
  3046. void process_login(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
  3047. void process_set_keyspace(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
  3048. void process_get(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
  3049. void process_get_slice(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
  3050. void process_get_count(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
  3051. void process_multiget_slice(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
  3052. void process_multiget_count(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
  3053. void process_get_range_slices(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
  3054. void process_get_indexed_slices(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
  3055. void process_insert(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
  3056. void process_add(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
  3057. void process_remove(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
  3058. void process_remove_counter(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
  3059. void process_batch_mutate(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
  3060. void process_truncate(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
  3061. void process_describe_schema_versions(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
  3062. void process_describe_keyspaces(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
  3063. void process_describe_cluster_name(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
  3064. void process_describe_version(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
  3065. void process_describe_ring(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
  3066. void process_describe_partitioner(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
  3067. void process_describe_snitch(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
  3068. void process_describe_keyspace(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
  3069. void process_describe_splits(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
  3070. void process_system_add_column_family(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
  3071. void process_system_drop_column_family(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
  3072. void process_system_add_keyspace(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
  3073. void process_system_drop_keyspace(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
  3074. void process_system_update_keyspace(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
  3075. void process_system_update_column_family(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
  3076. void process_execute_cql_query(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext);
  3077. public:
  3078. CassandraProcessor(boost::shared_ptr<CassandraIf> iface) :
  3079. iface_(iface) {
  3080. processMap_["login"] = &CassandraProcessor::process_login;
  3081. processMap_["set_keyspace"] = &CassandraProcessor::process_set_keyspace;
  3082. processMap_["get"] = &CassandraProcessor::process_get;
  3083. processMap_["get_slice"] = &CassandraProcessor::process_get_slice;
  3084. processMap_["get_count"] = &CassandraProcessor::process_get_count;
  3085. processMap_["multiget_slice"] = &CassandraProcessor::process_multiget_slice;
  3086. processMap_["multiget_count"] = &CassandraProcessor::process_multiget_count;
  3087. processMap_["get_range_slices"] = &CassandraProcessor::process_get_range_slices;
  3088. processMap_["get_indexed_slices"] = &CassandraProcessor::process_get_indexed_slices;
  3089. processMap_["insert"] = &CassandraProcessor::process_insert;
  3090. processMap_["add"] = &CassandraProcessor::process_add;
  3091. processMap_["remove"] = &CassandraProcessor::process_remove;
  3092. processMap_["remove_counter"] = &CassandraProcessor::process_remove_counter;
  3093. processMap_["batch_mutate"] = &CassandraProcessor::process_batch_mutate;
  3094. processMap_["truncate"] = &CassandraProcessor::process_truncate;
  3095. processMap_["describe_schema_versions"] = &CassandraProcessor::process_describe_schema_versions;
  3096. processMap_["describe_keyspaces"] = &CassandraProcessor::process_describe_keyspaces;
  3097. processMap_["describe_cluster_name"] = &CassandraProcessor::process_describe_cluster_name;
  3098. processMap_["describe_version"] = &CassandraProcessor::process_describe_version;
  3099. processMap_["describe_ring"] = &CassandraProcessor::process_describe_ring;
  3100. processMap_["describe_partitioner"] = &CassandraProcessor::process_describe_partitioner;
  3101. processMap_["describe_snitch"] = &CassandraProcessor::process_describe_snitch;
  3102. processMap_["describe_keyspace"] = &CassandraProcessor::process_describe_keyspace;
  3103. processMap_["describe_splits"] = &CassandraProcessor::process_describe_splits;
  3104. processMap_["system_add_column_family"] = &CassandraProcessor::process_system_add_column_family;
  3105. processMap_["system_drop_column_family"] = &CassandraProcessor::process_system_drop_column_family;
  3106. processMap_["system_add_keyspace"] = &CassandraProcessor::process_system_add_keyspace;
  3107. processMap_["system_drop_keyspace"] = &CassandraProcessor::process_system_drop_keyspace;
  3108. processMap_["system_update_keyspace"] = &CassandraProcessor::process_system_update_keyspace;
  3109. processMap_["system_update_column_family"] = &CassandraProcessor::process_system_update_column_family;
  3110. processMap_["execute_cql_query"] = &CassandraProcessor::process_execute_cql_query;
  3111. }
  3112. virtual bool process(boost::shared_ptr< ::apache::thrift::protocol::TProtocol> piprot, boost::shared_ptr< ::apache::thrift::protocol::TProtocol> poprot, void* callContext);
  3113. virtual ~CassandraProcessor() {}
  3114. };
  3115. class CassandraMultiface : virtual public CassandraIf {
  3116. public:
  3117. CassandraMultiface(std::vector<boost::shared_ptr<CassandraIf> >& ifaces) : ifaces_(ifaces) {
  3118. }
  3119. virtual ~CassandraMultiface() {}
  3120. protected:
  3121. std::vector<boost::shared_ptr<CassandraIf> > ifaces_;
  3122. CassandraMultiface() {}
  3123. void add(boost::shared_ptr<CassandraIf> iface) {
  3124. ifaces_.push_back(iface);
  3125. }
  3126. public:
  3127. void login(const AuthenticationRequest& auth_request) {
  3128. size_t sz = ifaces_.size();
  3129. for (size_t i = 0; i < sz; ++i) {
  3130. ifaces_[i]->login(auth_request);
  3131. }
  3132. }
  3133. void set_keyspace(const std::string& keyspace) {
  3134. size_t sz = ifaces_.size();
  3135. for (size_t i = 0; i < sz; ++i) {
  3136. ifaces_[i]->set_keyspace(keyspace);
  3137. }
  3138. }
  3139. void get(ColumnOrSuperColumn& _return, const std::string& key, const ColumnPath& column_path, const ConsistencyLevel::type consistency_level) {
  3140. size_t sz = ifaces_.size();
  3141. for (size_t i = 0; i < sz; ++i) {
  3142. if (i == sz - 1) {
  3143. ifaces_[i]->get(_return, key, column_path, consistency_level);
  3144. return;
  3145. } else {
  3146. ifaces_[i]->get(_return, key, column_path, consistency_level);
  3147. }
  3148. }
  3149. }
  3150. void get_slice(std::vector<ColumnOrSuperColumn> & _return, const std::string& key, const ColumnParent& column_parent, const SlicePredicate& predicate, const ConsistencyLevel::type consistency_level) {
  3151. size_t sz = ifaces_.size();
  3152. for (size_t i = 0; i < sz; ++i) {
  3153. if (i == sz - 1) {
  3154. ifaces_[i]->get_slice(_return, key, column_parent, predicate, consistency_level);
  3155. return;
  3156. } else {
  3157. ifaces_[i]->get_slice(_return, key, column_parent, predicate, consistency_level);
  3158. }
  3159. }
  3160. }
  3161. int32_t get_count(const std::string& key, const ColumnParent& column_parent, const SlicePredicate& predicate, const ConsistencyLevel::type consistency_level) {
  3162. size_t sz = ifaces_.size();
  3163. for (size_t i = 0; i < sz; ++i) {
  3164. if (i == sz - 1) {
  3165. return ifaces_[i]->get_count(key, column_parent, predicate, consistency_level);
  3166. } else {
  3167. ifaces_[i]->get_count(key, column_parent, predicate, consistency_level);
  3168. }
  3169. }
  3170. }
  3171. void multiget_slice(std::map<std::string, std::vector<ColumnOrSuperColumn> > & _return, const std::vector<std::string> & keys, const ColumnParent& column_parent, const SlicePredicate& predicate, const ConsistencyLevel::type consistency_level) {
  3172. size_t sz = ifaces_.size();
  3173. for (size_t i = 0; i < sz; ++i) {
  3174. if (i == sz - 1) {
  3175. ifaces_[i]->multiget_slice(_return, keys, column_parent, predicate, consistency_level);
  3176. return;
  3177. } else {
  3178. ifaces_[i]->multiget_slice(_return, keys, column_parent, predicate, consistency_level);
  3179. }
  3180. }
  3181. }
  3182. void multiget_count(std::map<std::string, int32_t> & _return, const std::vector<std::string> & keys, const ColumnParent& column_parent, const SlicePredicate& predicate, const ConsistencyLevel::type consistency_level) {
  3183. size_t sz = ifaces_.size();
  3184. for (size_t i = 0; i < sz; ++i) {
  3185. if (i == sz - 1) {
  3186. ifaces_[i]->multiget_count(_return, keys, column_parent, predicate, consistency_level);
  3187. return;
  3188. } else {
  3189. ifaces_[i]->multiget_count(_return, keys, column_parent, predicate, consistency_level);
  3190. }
  3191. }
  3192. }
  3193. void get_range_slices(std::vector<KeySlice> & _return, const ColumnParent& column_parent, const SlicePredicate& predicate, const KeyRange& range, const ConsistencyLevel::type consistency_level) {
  3194. size_t sz = ifaces_.size();
  3195. for (size_t i = 0; i < sz; ++i) {
  3196. if (i == sz - 1) {
  3197. ifaces_[i]->get_range_slices(_return, column_parent, predicate, range, consistency_level);
  3198. return;
  3199. } else {
  3200. ifaces_[i]->get_range_slices(_return, column_parent, predicate, range, consistency_level);
  3201. }
  3202. }
  3203. }
  3204. void get_indexed_slices(std::vector<KeySlice> & _return, const ColumnParent& column_parent, const IndexClause& index_clause, const SlicePredicate& column_predicate, const ConsistencyLevel::type consistency_level) {
  3205. size_t sz = ifaces_.size();
  3206. for (size_t i = 0; i < sz; ++i) {
  3207. if (i == sz - 1) {
  3208. ifaces_[i]->get_indexed_slices(_return, column_parent, index_clause, column_predicate, consistency_level);
  3209. return;
  3210. } else {
  3211. ifaces_[i]->get_indexed_slices(_return, column_parent, index_clause, column_predicate, consistency_level);
  3212. }
  3213. }
  3214. }
  3215. void insert(const std::string& key, const ColumnParent& column_parent, const Column& column, const ConsistencyLevel::type consistency_level) {
  3216. size_t sz = ifaces_.size();
  3217. for (size_t i = 0; i < sz; ++i) {
  3218. ifaces_[i]->insert(key, column_parent, column, consistency_level);
  3219. }
  3220. }
  3221. void add(const std::string& key, const ColumnParent& column_parent, const CounterColumn& column, const ConsistencyLevel::type consistency_level) {
  3222. size_t sz = ifaces_.size();
  3223. for (size_t i = 0; i < sz; ++i) {
  3224. ifaces_[i]->add(key, column_parent, column, consistency_level);
  3225. }
  3226. }
  3227. void remove(const std::string& key, const ColumnPath& column_path, const int64_t timestamp, const ConsistencyLevel::type consistency_level) {
  3228. size_t sz = ifaces_.size();
  3229. for (size_t i = 0; i < sz; ++i) {
  3230. ifaces_[i]->remove(key, column_path, timestamp, consistency_level);
  3231. }
  3232. }
  3233. void remove_counter(const std::string& key, const ColumnPath& path, const ConsistencyLevel::type consistency_level) {
  3234. size_t sz = ifaces_.size();
  3235. for (size_t i = 0; i < sz; ++i) {
  3236. ifaces_[i]->remove_counter(key, path, consistency_level);
  3237. }
  3238. }
  3239. void batch_mutate(const std::map<std::string, std::map<std::string, std::vector<Mutation> > > & mutation_map, const ConsistencyLevel::type consistency_level) {
  3240. size_t sz = ifaces_.size();
  3241. for (size_t i = 0; i < sz; ++i) {
  3242. ifaces_[i]->batch_mutate(mutation_map, consistency_level);
  3243. }
  3244. }
  3245. void truncate(const std::string& cfname) {
  3246. size_t sz = ifaces_.size();
  3247. for (size_t i = 0; i < sz; ++i) {
  3248. ifaces_[i]->truncate(cfname);
  3249. }
  3250. }
  3251. void describe_schema_versions(std::map<std::string, std::vector<std::string> > & _return) {
  3252. size_t sz = ifaces_.size();
  3253. for (size_t i = 0; i < sz; ++i) {
  3254. if (i == sz - 1) {
  3255. ifaces_[i]->describe_schema_versions(_return);
  3256. return;
  3257. } else {
  3258. ifaces_[i]->describe_schema_versions(_return);
  3259. }
  3260. }
  3261. }
  3262. void describe_keyspaces(std::vector<KsDef> & _return) {
  3263. size_t sz = ifaces_.size();
  3264. for (size_t i = 0; i < sz; ++i) {
  3265. if (i == sz - 1) {
  3266. ifaces_[i]->describe_keyspaces(_return);
  3267. return;
  3268. } else {
  3269. ifaces_[i]->describe_keyspaces(_return);
  3270. }
  3271. }
  3272. }
  3273. void describe_cluster_name(std::string& _return) {
  3274. size_t sz = ifaces_.size();
  3275. for (size_t i = 0; i < sz; ++i) {
  3276. if (i == sz - 1) {
  3277. ifaces_[i]->describe_cluster_name(_return);
  3278. return;
  3279. } else {
  3280. ifaces_[i]->describe_cluster_name(_return);
  3281. }
  3282. }
  3283. }
  3284. void describe_version(std::string& _return) {
  3285. size_t sz = ifaces_.size();
  3286. for (size_t i = 0; i < sz; ++i) {
  3287. if (i == sz - 1) {
  3288. ifaces_[i]->describe_version(_return);
  3289. return;
  3290. } else {
  3291. ifaces_[i]->describe_version(_return);
  3292. }
  3293. }
  3294. }
  3295. void describe_ring(std::vector<TokenRange> & _return, const std::string& keyspace) {
  3296. size_t sz = ifaces_.size();
  3297. for (size_t i = 0; i < sz; ++i) {
  3298. if (i == sz - 1) {
  3299. ifaces_[i]->describe_ring(_return, keyspace);
  3300. return;
  3301. } else {
  3302. ifaces_[i]->describe_ring(_return, keyspace);
  3303. }
  3304. }
  3305. }
  3306. void describe_partitioner(std::string& _return) {
  3307. size_t sz = ifaces_.size();
  3308. for (size_t i = 0; i < sz; ++i) {
  3309. if (i == sz - 1) {
  3310. ifaces_[i]->describe_partitioner(_return);
  3311. return;
  3312. } else {
  3313. ifaces_[i]->describe_partitioner(_return);
  3314. }
  3315. }
  3316. }
  3317. void describe_snitch(std::string& _return) {
  3318. size_t sz = ifaces_.size();
  3319. for (size_t i = 0; i < sz; ++i) {
  3320. if (i == sz - 1) {
  3321. ifaces_[i]->describe_snitch(_return);
  3322. return;
  3323. } else {
  3324. ifaces_[i]->describe_snitch(_return);
  3325. }
  3326. }
  3327. }
  3328. void describe_keyspace(KsDef& _return, const std::string& keyspace) {
  3329. size_t sz = ifaces_.size();
  3330. for (size_t i = 0; i < sz; ++i) {
  3331. if (i == sz - 1) {
  3332. ifaces_[i]->describe_keyspace(_return, keyspace);
  3333. return;
  3334. } else {
  3335. ifaces_[i]->describe_keyspace(_return, keyspace);
  3336. }
  3337. }
  3338. }
  3339. void describe_splits(std::vector<std::string> & _return, const std::string& cfName, const std::string& start_token, const std::string& end_token, const int32_t keys_per_split) {
  3340. size_t sz = ifaces_.size();
  3341. for (size_t i = 0; i < sz; ++i) {
  3342. if (i == sz - 1) {
  3343. ifaces_[i]->describe_splits(_return, cfName, start_token, end_token, keys_per_split);
  3344. return;
  3345. } else {
  3346. ifaces_[i]->describe_splits(_return, cfName, start_token, end_token, keys_per_split);
  3347. }
  3348. }
  3349. }
  3350. void system_add_column_family(std::string& _return, const CfDef& cf_def) {
  3351. size_t sz = ifaces_.size();
  3352. for (size_t i = 0; i < sz; ++i) {
  3353. if (i == sz - 1) {
  3354. ifaces_[i]->system_add_column_family(_return, cf_def);
  3355. return;
  3356. } else {
  3357. ifaces_[i]->system_add_column_family(_return, cf_def);
  3358. }
  3359. }
  3360. }
  3361. void system_drop_column_family(std::string& _return, const std::string& column_family) {
  3362. size_t sz = ifaces_.size();
  3363. for (size_t i = 0; i < sz; ++i) {
  3364. if (i == sz - 1) {
  3365. ifaces_[i]->system_drop_column_family(_return, column_family);
  3366. return;
  3367. } else {
  3368. ifaces_[i]->system_drop_column_family(_return, column_family);
  3369. }
  3370. }
  3371. }
  3372. void system_add_keyspace(std::string& _return, const KsDef& ks_def) {
  3373. size_t sz = ifaces_.size();
  3374. for (size_t i = 0; i < sz; ++i) {
  3375. if (i == sz - 1) {
  3376. ifaces_[i]->system_add_keyspace(_return, ks_def);
  3377. return;
  3378. } else {
  3379. ifaces_[i]->system_add_keyspace(_return, ks_def);
  3380. }
  3381. }
  3382. }
  3383. void system_drop_keyspace(std::string& _return, const std::string& keyspace) {
  3384. size_t sz = ifaces_.size();
  3385. for (size_t i = 0; i < sz; ++i) {
  3386. if (i == sz - 1) {
  3387. ifaces_[i]->system_drop_keyspace(_return, keyspace);
  3388. return;
  3389. } else {
  3390. ifaces_[i]->system_drop_keyspace(_return, keyspace);
  3391. }
  3392. }
  3393. }
  3394. void system_update_keyspace(std::string& _return, const KsDef& ks_def) {
  3395. size_t sz = ifaces_.size();
  3396. for (size_t i = 0; i < sz; ++i) {
  3397. if (i == sz - 1) {
  3398. ifaces_[i]->system_update_keyspace(_return, ks_def);
  3399. return;
  3400. } else {
  3401. ifaces_[i]->system_update_keyspace(_return, ks_def);
  3402. }
  3403. }
  3404. }
  3405. void system_update_column_family(std::string& _return, const CfDef& cf_def) {
  3406. size_t sz = ifaces_.size();
  3407. for (size_t i = 0; i < sz; ++i) {
  3408. if (i == sz - 1) {
  3409. ifaces_[i]->system_update_column_family(_return, cf_def);
  3410. return;
  3411. } else {
  3412. ifaces_[i]->system_update_column_family(_return, cf_def);
  3413. }
  3414. }
  3415. }
  3416. void execute_cql_query(CqlResult& _return, const std::string& query, const Compression::type compression) {
  3417. size_t sz = ifaces_.size();
  3418. for (size_t i = 0; i < sz; ++i) {
  3419. if (i == sz - 1) {
  3420. ifaces_[i]->execute_cql_query(_return, query, compression);
  3421. return;
  3422. } else {
  3423. ifaces_[i]->execute_cql_query(_return, query, compression);
  3424. }
  3425. }
  3426. }
  3427. };
  3428. }}} // namespace
  3429. #endif