hadoop_1.2.1.xml 3.5 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491384923849338494384953849638497384983849938500385013850238503385043850538506385073850838509385103851138512385133851438515385163851738518385193852038521385223852338524385253852638527385283852938530385313853238533385343853538536385373853838539385403854138542385433854438545385463854738548385493855038551385523855338554385553855638557385583855938560385613856238563385643856538566385673856838569385703857138572385733857438575385763857738578385793858038581385823858338584385853858638587385883858938590385913859238593385943859538596385973859838599386003860138602386033860438605386063860738608386093861038611386123861338614386153861638617386183861938620386213862238623386243862538626386273862838629386303863138632386333863438635386363863738638386393864038641386423864338644386453864638647386483864938650386513865238653386543865538656386573865838659386603866138662386633866438665386663866738668386693867038671386723867338674386753867638677386783867938680386813868238683386843868538686386873868838689386903869138692386933869438695386963869738698386993870038701387023870338704387053870638707387083870938710387113871238713387143871538716387173871838719387203872138722387233872438725387263872738728387293873038731387323873338734387353873638737387383873938740387413874238743387443874538746387473874838749387503875138752387533875438755387563875738758387593876038761387623876338764387653876638767387683876938770387713877238773387743877538776387773877838779387803878138782387833878438785387863878738788387893879038791387923879338794387953879638797387983879938800388013880238803388043880538806388073880838809388103881138812388133881438815388163881738818388193882038821388223882338824388253882638827388283882938830388313883238833388343883538836388373883838839388403884138842388433884438845388463884738848388493885038851388523885338854388553885638857388583885938860388613886238863388643886538866388673886838869388703887138872388733887438875388763887738878388793888038881388823888338884388853888638887388883888938890388913889238893388943889538896388973889838899389003890138902389033890438905389063890738908389093891038911389123891338914389153891638917389183891938920389213892238923389243892538926389273892838929389303893138932389333893438935389363893738938389393894038941389423894338944389453894638947389483894938950389513895238953389543895538956389573895838959389603896138962389633896438965389663896738968389693897038971389723897338974389753897638977389783897938980389813898238983389843898538986389873898838989389903899138992389933899438995389963899738998389993900039001390023900339004390053900639007390083900939010390113901239013390143901539016390173901839019390203902139022390233902439025390263902739028390293903039031390323903339034390353903639037390383903939040390413904239043390443904539046390473904839049390503905139052390533905439055390563905739058390593906039061390623906339064390653906639067390683906939070390713907239073390743907539076390773907839079390803908139082390833908439085390863908739088390893909039091390923909339094390953909639097390983909939100391013910239103391043910539106391073910839109391103911139112391133911439115391163911739118391193912039121391223912339124391253912639127391283912939130391313913239133391343913539136391373913839139391403914139142391433914439145391463914739148391493915039151391523915339154391553915639157391583915939160391613916239163391643916539166391673916839169391703917139172391733917439175391763917739178391793918039181391823918339184391853918639187391883918939190391913919239193391943919539196391973919839199392003920139202392033920439205392063920739208392093921039211392123921339214392153921639217392183921939220392213922239223392243922539226392273922839229392303923139232392333923439235392363923739238392393924039241392423924339244392453924639247392483924939250392513925239253392543925539256392573925839259392603926139262392633926439265392663926739268392693927039271392723927339274392753927639277392783927939280392813928239283392843928539286392873928839289392903929139292392933929439295392963929739298392993930039301393023930339304393053930639307393083930939310393113931239313393143931539316393173931839319393203932139322393233932439325393263932739328393293933039331393323933339334393353933639337393383933939340393413934239343393443934539346393473934839349393503935139352393533935439355393563935739358393593936039361393623936339364393653936639367393683936939370393713937239373393743937539376393773937839379393803938139382393833938439385393863938739388393893939039391393923939339394393953939639397393983939939400394013940239403394043940539406394073940839409394103941139412394133941439415394163941739418394193942039421394223942339424394253942639427394283942939430394313943239433394343943539436394373943839439394403944139442394433944439445394463944739448394493945039451394523945339454394553945639457394583945939460394613946239463394643946539466394673946839469394703947139472394733947439475394763947739478394793948039481394823948339484394853948639487394883948939490394913949239493394943949539496394973949839499395003950139502395033950439505395063950739508395093951039511395123951339514395153951639517395183951939520395213952239523395243952539526395273952839529395303953139532395333953439535395363953739538395393954039541395423954339544395453954639547395483954939550395513955239553395543955539556395573955839559395603956139562395633956439565395663956739568395693957039571395723957339574395753957639577395783957939580395813958239583395843958539586395873958839589395903959139592395933959439595395963959739598395993960039601396023960339604396053960639607396083960939610396113961239613396143961539616396173961839619396203962139622396233962439625396263962739628396293963039631396323963339634396353963639637396383963939640396413964239643396443964539646396473964839649396503965139652396533965439655396563965739658396593966039661396623966339664396653966639667396683966939670396713967239673396743967539676396773967839679396803968139682396833968439685396863968739688396893969039691396923969339694396953969639697396983969939700397013970239703397043970539706397073970839709397103971139712397133971439715397163971739718397193972039721397223972339724397253972639727397283972939730397313973239733397343973539736397373973839739397403974139742397433974439745397463974739748397493975039751397523975339754397553975639757397583975939760397613976239763397643976539766397673976839769397703977139772397733977439775397763977739778397793978039781397823978339784397853978639787397883978939790397913979239793397943979539796397973979839799398003980139802398033980439805398063980739808398093981039811398123981339814398153981639817398183981939820398213982239823398243982539826398273982839829398303983139832398333983439835398363983739838398393984039841398423984339844398453984639847398483984939850398513985239853398543985539856398573985839859398603986139862398633986439865398663986739868398693987039871398723987339874398753987639877398783987939880398813988239883398843988539886398873988839889398903989139892398933989439895398963989739898398993990039901399023990339904399053990639907399083990939910399113991239913399143991539916399173991839919399203992139922399233992439925399263992739928399293993039931399323993339934399353993639937399383993939940399413994239943399443994539946399473994839949399503995139952399533995439955399563995739958399593996039961399623996339964399653996639967399683996939970399713997239973399743997539976399773997839979399803998139982399833998439985399863998739988399893999039991399923999339994399953999639997399983999940000400014000240003400044000540006400074000840009400104001140012400134001440015400164001740018400194002040021400224002340024400254002640027400284002940030400314003240033400344003540036400374003840039400404004140042400434004440045400464004740048400494005040051400524005340054400554005640057400584005940060400614006240063400644006540066400674006840069400704007140072400734007440075400764007740078400794008040081400824008340084400854008640087400884008940090400914009240093400944009540096400974009840099401004010140102401034010440105401064010740108401094011040111401124011340114401154011640117401184011940120401214012240123401244012540126401274012840129401304013140132401334013440135401364013740138401394014040141401424014340144401454014640147401484014940150401514015240153401544015540156401574015840159401604016140162401634016440165401664016740168401694017040171401724017340174401754017640177401784017940180401814018240183401844018540186401874018840189401904019140192401934019440195401964019740198401994020040201402024020340204402054020640207402084020940210402114021240213402144021540216402174021840219402204022140222402234022440225402264022740228402294023040231402324023340234402354023640237402384023940240402414024240243402444024540246402474024840249402504025140252402534025440255402564025740258402594026040261402624026340264402654026640267402684026940270402714027240273402744027540276402774027840279402804028140282402834028440285402864028740288402894029040291402924029340294402954029640297402984029940300403014030240303403044030540306403074030840309403104031140312403134031440315403164031740318403194032040321403224032340324403254032640327403284032940330403314033240333403344033540336403374033840339403404034140342403434034440345403464034740348403494035040351403524035340354403554035640357403584035940360403614036240363403644036540366403674036840369403704037140372403734037440375403764037740378403794038040381403824038340384403854038640387403884038940390403914039240393403944039540396403974039840399404004040140402404034040440405404064040740408404094041040411404124041340414404154041640417404184041940420404214042240423404244042540426404274042840429404304043140432404334043440435404364043740438404394044040441404424044340444404454044640447404484044940450404514045240453404544045540456404574045840459404604046140462404634046440465404664046740468404694047040471404724047340474404754047640477404784047940480404814048240483404844048540486404874048840489404904049140492404934049440495404964049740498404994050040501405024050340504405054050640507405084050940510405114051240513405144051540516405174051840519405204052140522405234052440525405264052740528405294053040531405324053340534405354053640537405384053940540405414054240543405444054540546405474054840549405504055140552405534055440555405564055740558405594056040561405624056340564405654056640567405684056940570405714057240573405744057540576405774057840579405804058140582405834058440585405864058740588405894059040591405924059340594405954059640597405984059940600406014060240603406044060540606406074060840609406104061140612406134061440615406164061740618406194062040621406224062340624406254062640627406284062940630406314063240633406344063540636406374063840639406404064140642406434064440645406464064740648406494065040651406524065340654406554065640657406584065940660406614066240663406644066540666406674066840669406704067140672406734067440675406764067740678406794068040681406824068340684406854068640687406884068940690406914069240693406944069540696406974069840699407004070140702407034070440705407064070740708407094071040711407124071340714407154071640717407184071940720407214072240723407244072540726407274072840729407304073140732407334073440735407364073740738407394074040741407424074340744407454074640747407484074940750407514075240753407544075540756407574075840759407604076140762407634076440765407664076740768407694077040771407724077340774407754077640777407784077940780407814078240783407844078540786407874078840789407904079140792407934079440795407964079740798407994080040801408024080340804408054080640807408084080940810408114081240813408144081540816408174081840819408204082140822408234082440825408264082740828408294083040831408324083340834408354083640837408384083940840408414084240843408444084540846408474084840849408504085140852408534085440855408564085740858408594086040861408624086340864408654086640867408684086940870408714087240873408744087540876408774087840879408804088140882408834088440885408864088740888408894089040891408924089340894408954089640897408984089940900409014090240903409044090540906409074090840909409104091140912409134091440915409164091740918409194092040921409224092340924409254092640927409284092940930409314093240933409344093540936409374093840939409404094140942409434094440945409464094740948409494095040951409524095340954409554095640957409584095940960409614096240963409644096540966409674096840969409704097140972409734097440975409764097740978409794098040981409824098340984409854098640987409884098940990409914099240993409944099540996409974099840999410004100141002410034100441005410064100741008410094101041011410124101341014410154101641017410184101941020410214102241023410244102541026410274102841029410304103141032410334103441035410364103741038410394104041041410424104341044410454104641047410484104941050410514105241053410544105541056410574105841059410604106141062410634106441065410664106741068410694107041071410724107341074410754107641077410784107941080410814108241083410844108541086410874108841089410904109141092410934109441095410964109741098410994110041101411024110341104411054110641107411084110941110411114111241113411144111541116411174111841119411204112141122411234112441125411264112741128411294113041131411324113341134411354113641137411384113941140411414114241143411444114541146411474114841149411504115141152411534115441155411564115741158411594116041161411624116341164411654116641167411684116941170411714117241173411744117541176411774117841179411804118141182411834118441185411864118741188411894119041191411924119341194411954119641197411984119941200412014120241203412044120541206412074120841209412104121141212412134121441215412164121741218412194122041221412224122341224412254122641227412284122941230412314123241233412344123541236412374123841239412404124141242412434124441245412464124741248412494125041251412524125341254412554125641257412584125941260412614126241263412644126541266412674126841269412704127141272412734127441275412764127741278412794128041281412824128341284412854128641287412884128941290412914129241293412944129541296412974129841299413004130141302413034130441305413064130741308413094131041311413124131341314413154131641317413184131941320413214132241323413244132541326413274132841329413304133141332413334133441335413364133741338413394134041341413424134341344413454134641347413484134941350413514135241353413544135541356413574135841359413604136141362413634136441365413664136741368413694137041371413724137341374413754137641377413784137941380413814138241383413844138541386413874138841389413904139141392413934139441395413964139741398413994140041401414024140341404414054140641407414084140941410414114141241413414144141541416414174141841419414204142141422414234142441425414264142741428414294143041431414324143341434414354143641437414384143941440414414144241443414444144541446414474144841449414504145141452414534145441455414564145741458414594146041461414624146341464414654146641467414684146941470414714147241473414744147541476414774147841479414804148141482414834148441485414864148741488414894149041491414924149341494414954149641497414984149941500415014150241503415044150541506415074150841509415104151141512415134151441515415164151741518415194152041521415224152341524415254152641527415284152941530415314153241533415344153541536415374153841539415404154141542415434154441545415464154741548415494155041551415524155341554415554155641557415584155941560415614156241563415644156541566415674156841569415704157141572415734157441575415764157741578415794158041581415824158341584415854158641587415884158941590415914159241593415944159541596415974159841599416004160141602416034160441605416064160741608416094161041611416124161341614416154161641617416184161941620416214162241623416244162541626416274162841629416304163141632416334163441635416364163741638416394164041641416424164341644416454164641647416484164941650416514165241653416544165541656416574165841659416604166141662416634166441665416664166741668416694167041671416724167341674416754167641677416784167941680416814168241683416844168541686416874168841689416904169141692416934169441695416964169741698416994170041701417024170341704417054170641707417084170941710417114171241713417144171541716417174171841719417204172141722417234172441725417264172741728417294173041731417324173341734417354173641737417384173941740417414174241743417444174541746417474174841749417504175141752417534175441755417564175741758417594176041761417624176341764417654176641767417684176941770417714177241773417744177541776417774177841779417804178141782417834178441785417864178741788417894179041791417924179341794417954179641797417984179941800418014180241803418044180541806418074180841809418104181141812418134181441815418164181741818418194182041821418224182341824418254182641827418284182941830418314183241833418344183541836418374183841839418404184141842418434184441845418464184741848418494185041851418524185341854418554185641857418584185941860418614186241863418644186541866418674186841869418704187141872418734187441875418764187741878418794188041881418824188341884418854188641887418884188941890418914189241893418944189541896418974189841899419004190141902419034190441905419064190741908419094191041911419124191341914419154191641917419184191941920419214192241923419244192541926419274192841929419304193141932419334193441935419364193741938419394194041941419424194341944419454194641947419484194941950419514195241953419544195541956419574195841959419604196141962419634196441965419664196741968419694197041971419724197341974419754197641977419784197941980419814198241983419844198541986419874198841989419904199141992419934199441995419964199741998419994200042001420024200342004420054200642007420084200942010420114201242013420144201542016420174201842019420204202142022420234202442025420264202742028420294203042031420324203342034420354203642037420384203942040420414204242043420444204542046420474204842049420504205142052420534205442055420564205742058420594206042061420624206342064420654206642067420684206942070420714207242073420744207542076420774207842079420804208142082420834208442085420864208742088420894209042091420924209342094420954209642097420984209942100421014210242103421044210542106421074210842109421104211142112421134211442115421164211742118421194212042121421224212342124421254212642127421284212942130421314213242133421344213542136421374213842139421404214142142421434214442145421464214742148421494215042151421524215342154421554215642157421584215942160421614216242163421644216542166421674216842169421704217142172421734217442175421764217742178421794218042181421824218342184421854218642187421884218942190421914219242193421944219542196421974219842199422004220142202422034220442205422064220742208422094221042211422124221342214422154221642217422184221942220422214222242223422244222542226422274222842229422304223142232422334223442235422364223742238422394224042241422424224342244422454224642247422484224942250422514225242253422544225542256422574225842259422604226142262422634226442265422664226742268422694227042271422724227342274422754227642277422784227942280422814228242283422844228542286422874228842289422904229142292422934229442295422964229742298422994230042301423024230342304423054230642307423084230942310423114231242313423144231542316423174231842319423204232142322423234232442325423264232742328423294233042331423324233342334423354233642337423384233942340423414234242343423444234542346423474234842349423504235142352423534235442355423564235742358423594236042361423624236342364423654236642367423684236942370423714237242373423744237542376423774237842379423804238142382423834238442385423864238742388423894239042391423924239342394423954239642397423984239942400424014240242403424044240542406424074240842409424104241142412424134241442415424164241742418424194242042421424224242342424424254242642427424284242942430424314243242433424344243542436424374243842439424404244142442424434244442445424464244742448424494245042451424524245342454424554245642457424584245942460424614246242463424644246542466424674246842469424704247142472424734247442475424764247742478424794248042481424824248342484424854248642487424884248942490424914249242493424944249542496424974249842499425004250142502425034250442505425064250742508425094251042511425124251342514425154251642517425184251942520425214252242523425244252542526425274252842529425304253142532425334253442535425364253742538425394254042541425424254342544425454254642547425484254942550425514255242553425544255542556425574255842559425604256142562425634256442565425664256742568425694257042571425724257342574425754257642577425784257942580425814258242583425844258542586425874258842589425904259142592425934259442595425964259742598425994260042601426024260342604426054260642607426084260942610426114261242613426144261542616426174261842619426204262142622426234262442625426264262742628426294263042631426324263342634426354263642637426384263942640426414264242643426444264542646426474264842649426504265142652426534265442655426564265742658426594266042661426624266342664426654266642667426684266942670426714267242673426744267542676426774267842679426804268142682426834268442685426864268742688426894269042691426924269342694426954269642697426984269942700427014270242703427044270542706427074270842709427104271142712427134271442715427164271742718427194272042721427224272342724427254272642727427284272942730427314273242733427344273542736427374273842739427404274142742427434274442745427464274742748427494275042751427524275342754427554275642757427584275942760427614276242763427644276542766427674276842769427704277142772427734277442775427764277742778427794278042781427824278342784427854278642787427884278942790427914279242793427944279542796427974279842799428004280142802428034280442805428064280742808428094281042811428124281342814428154281642817428184281942820428214282242823428244282542826428274282842829428304283142832428334283442835428364283742838428394284042841428424284342844428454284642847428484284942850428514285242853428544285542856428574285842859428604286142862428634286442865428664286742868428694287042871428724287342874428754287642877428784287942880428814288242883428844288542886428874288842889428904289142892428934289442895428964289742898428994290042901429024290342904429054290642907429084290942910429114291242913429144291542916429174291842919429204292142922429234292442925429264292742928429294293042931429324293342934429354293642937429384293942940429414294242943429444294542946429474294842949429504295142952429534295442955429564295742958429594296042961429624296342964429654296642967429684296942970429714297242973429744297542976429774297842979429804298142982429834298442985429864298742988429894299042991429924299342994429954299642997429984299943000430014300243003430044300543006430074300843009430104301143012430134301443015430164301743018430194302043021430224302343024430254302643027430284302943030430314303243033430344303543036430374303843039430404304143042430434304443045430464304743048430494305043051430524305343054430554305643057430584305943060430614306243063430644306543066430674306843069430704307143072430734307443075430764307743078430794308043081430824308343084430854308643087430884308943090430914309243093430944309543096430974309843099431004310143102431034310443105431064310743108431094311043111431124311343114431154311643117431184311943120431214312243123431244312543126431274312843129431304313143132431334313443135431364313743138431394314043141431424314343144431454314643147431484314943150431514315243153431544315543156431574315843159431604316143162431634316443165431664316743168431694317043171431724317343174431754317643177431784317943180431814318243183431844318543186431874318843189431904319143192431934319443195431964319743198431994320043201432024320343204432054320643207432084320943210432114321243213432144321543216432174321843219432204322143222432234322443225432264322743228432294323043231432324323343234432354323643237432384323943240432414324243243432444324543246432474324843249432504325143252432534325443255432564325743258432594326043261432624326343264432654326643267432684326943270432714327243273432744327543276432774327843279432804328143282432834328443285432864328743288432894329043291432924329343294432954329643297432984329943300433014330243303433044330543306433074330843309433104331143312433134331443315433164331743318433194332043321433224332343324433254332643327433284332943330433314333243333433344333543336433374333843339433404334143342433434334443345433464334743348433494335043351433524335343354433554335643357433584335943360433614336243363433644336543366433674336843369433704337143372433734337443375433764337743378433794338043381433824338343384433854338643387433884338943390433914339243393433944339543396433974339843399434004340143402434034340443405434064340743408434094341043411434124341343414434154341643417434184341943420434214342243423434244342543426434274342843429434304343143432434334343443435434364343743438434394344043441434424344343444434454344643447434484344943450434514345243453434544345543456434574345843459434604346143462434634346443465434664346743468434694347043471434724347343474434754347643477434784347943480434814348243483434844348543486434874348843489434904349143492434934349443495434964349743498434994350043501435024350343504435054350643507435084350943510435114351243513435144351543516435174351843519435204352143522435234352443525435264352743528435294353043531435324353343534435354353643537435384353943540435414354243543435444354543546435474354843549435504355143552435534355443555435564355743558435594356043561435624356343564435654356643567435684356943570435714357243573435744357543576435774357843579435804358143582435834358443585435864358743588435894359043591435924359343594435954359643597435984359943600436014360243603436044360543606436074360843609436104361143612436134361443615436164361743618436194362043621436224362343624436254362643627436284362943630436314363243633436344363543636436374363843639436404364143642436434364443645436464364743648436494365043651436524365343654436554365643657436584365943660436614366243663436644366543666436674366843669436704367143672436734367443675436764367743678436794368043681436824368343684436854368643687436884368943690436914369243693436944369543696436974369843699437004370143702437034370443705437064370743708437094371043711437124371343714437154371643717437184371943720437214372243723437244372543726437274372843729437304373143732437334373443735437364373743738437394374043741437424374343744437454374643747437484374943750437514375243753437544375543756437574375843759437604376143762437634376443765437664376743768437694377043771437724377343774437754377643777437784377943780437814378243783437844378543786437874378843789437904379143792437934379443795437964379743798437994380043801438024380343804438054380643807438084380943810438114381243813438144381543816438174381843819438204382143822438234382443825438264382743828438294383043831438324383343834438354383643837438384383943840438414384243843438444384543846438474384843849438504385143852438534385443855438564385743858438594386043861438624386343864438654386643867438684386943870438714387243873438744387543876438774387843879438804388143882438834388443885438864388743888438894389043891438924389343894438954389643897438984389943900439014390243903439044390543906439074390843909439104391143912439134391443915439164391743918439194392043921439224392343924439254392643927439284392943930439314393243933439344393543936439374393843939439404394143942439434394443945439464394743948439494395043951439524395343954439554395643957439584395943960439614396243963439644396543966439674396843969439704397143972439734397443975439764397743978439794398043981439824398343984439854398643987439884398943990439914399243993439944399543996439974399843999440004400144002440034400444005440064400744008440094401044011440124401344014440154401644017440184401944020440214402244023440244402544026440274402844029440304403144032440334403444035440364403744038440394404044041440424404344044440454404644047440484404944050440514405244053440544405544056440574405844059440604406144062440634406444065440664406744068440694407044071440724407344074440754407644077440784407944080440814408244083440844408544086440874408844089440904409144092440934409444095440964409744098440994410044101441024410344104441054410644107441084410944110441114411244113441144411544116441174411844119441204412144122441234412444125441264412744128441294413044131441324413344134441354413644137441384413944140441414414244143441444414544146441474414844149441504415144152441534415444155441564415744158441594416044161441624416344164441654416644167441684416944170441714417244173441744417544176441774417844179441804418144182441834418444185441864418744188441894419044191441924419344194441954419644197441984419944200442014420244203442044420544206442074420844209442104421144212442134421444215442164421744218442194422044221442224422344224442254422644227442284422944230442314423244233442344423544236442374423844239442404424144242442434424444245442464424744248442494425044251442524425344254442554425644257442584425944260442614426244263442644426544266442674426844269442704427144272442734427444275442764427744278442794428044281442824428344284442854428644287442884428944290442914429244293442944429544296442974429844299443004430144302443034430444305443064430744308443094431044311443124431344314443154431644317443184431944320443214432244323443244432544326443274432844329443304433144332443334433444335443364433744338443394434044341443424434344344443454434644347443484434944350443514435244353443544435544356443574435844359443604436144362443634436444365443664436744368443694437044371443724437344374443754437644377443784437944380443814438244383443844438544386443874438844389443904439144392443934439444395443964439744398443994440044401444024440344404444054440644407444084440944410444114441244413444144441544416444174441844419444204442144422444234442444425444264442744428444294443044431444324443344434444354443644437444384443944440444414444244443444444444544446444474444844449444504445144452444534445444455444564445744458444594446044461444624446344464444654446644467444684446944470444714447244473444744447544476444774447844479444804448144482444834448444485444864448744488444894449044491444924449344494444954449644497444984449944500445014450244503445044450544506445074450844509445104451144512445134451444515445164451744518445194452044521445224452344524445254452644527445284452944530445314453244533445344453544536445374453844539445404454144542445434454444545445464454744548445494455044551445524455344554445554455644557445584455944560445614456244563445644456544566445674456844569445704457144572445734457444575445764457744578445794458044581445824458344584445854458644587445884458944590445914459244593445944459544596445974459844599446004460144602446034460444605446064460744608446094461044611446124461344614446154461644617446184461944620446214462244623446244462544626446274462844629446304463144632446334463444635446364463744638446394464044641446424464344644446454464644647446484464944650446514465244653446544465544656446574465844659446604466144662446634466444665446664466744668446694467044671446724467344674446754467644677446784467944680446814468244683446844468544686446874468844689446904469144692446934469444695446964469744698446994470044701447024470344704447054470644707447084470944710447114471244713447144471544716447174471844719447204472144722447234472444725447264472744728447294473044731447324473344734447354473644737447384473944740447414474244743447444474544746447474474844749447504475144752447534475444755447564475744758447594476044761447624476344764447654476644767447684476944770447714477244773447744477544776447774477844779447804478144782447834478444785447864478744788447894479044791447924479344794447954479644797447984479944800448014480244803448044480544806448074480844809448104481144812448134481444815448164481744818448194482044821448224482344824448254482644827448284482944830448314483244833448344483544836448374483844839448404484144842448434484444845448464484744848448494485044851448524485344854448554485644857448584485944860448614486244863448644486544866448674486844869448704487144872448734487444875448764487744878448794488044881448824488344884448854488644887448884488944890448914489244893448944489544896448974489844899449004490144902449034490444905449064490744908449094491044911449124491344914449154491644917449184491944920449214492244923449244492544926449274492844929449304493144932449334493444935449364493744938449394494044941449424494344944449454494644947449484494944950449514495244953449544495544956449574495844959449604496144962449634496444965449664496744968449694497044971449724497344974449754497644977449784497944980449814498244983449844498544986449874498844989449904499144992449934499444995449964499744998449994500045001450024500345004450054500645007450084500945010450114501245013450144501545016450174501845019450204502145022450234502445025450264502745028450294503045031450324503345034450354503645037450384503945040450414504245043450444504545046450474504845049450504505145052450534505445055450564505745058450594506045061450624506345064450654506645067450684506945070450714507245073450744507545076450774507845079450804508145082450834508445085450864508745088450894509045091450924509345094450954509645097450984509945100451014510245103451044510545106451074510845109451104511145112451134511445115451164511745118451194512045121451224512345124451254512645127451284512945130451314513245133451344513545136451374513845139451404514145142451434514445145451464514745148451494515045151451524515345154451554515645157451584515945160451614516245163451644516545166451674516845169451704517145172451734517445175451764517745178451794518045181451824518345184451854518645187451884518945190451914519245193451944519545196451974519845199452004520145202452034520445205452064520745208452094521045211452124521345214452154521645217452184521945220452214522245223452244522545226452274522845229452304523145232452334523445235452364523745238452394524045241452424524345244452454524645247452484524945250452514525245253452544525545256452574525845259452604526145262452634526445265452664526745268452694527045271452724527345274452754527645277452784527945280452814528245283452844528545286452874528845289452904529145292452934529445295452964529745298452994530045301453024530345304453054530645307453084530945310453114531245313453144531545316453174531845319453204532145322453234532445325453264532745328453294533045331453324533345334453354533645337453384533945340453414534245343453444534545346453474534845349453504535145352453534535445355453564535745358453594536045361453624536345364453654536645367453684536945370453714537245373453744537545376453774537845379453804538145382453834538445385453864538745388453894539045391453924539345394453954539645397453984539945400454014540245403454044540545406454074540845409454104541145412454134541445415454164541745418454194542045421454224542345424454254542645427454284542945430454314543245433454344543545436454374543845439454404544145442454434544445445454464544745448454494545045451454524545345454454554545645457454584545945460454614546245463454644546545466454674546845469454704547145472454734547445475454764547745478454794548045481454824548345484454854548645487454884548945490454914549245493454944549545496454974549845499455004550145502455034550445505455064550745508455094551045511455124551345514455154551645517455184551945520455214552245523455244552545526455274552845529455304553145532455334553445535455364553745538455394554045541455424554345544455454554645547455484554945550455514555245553455544555545556455574555845559455604556145562455634556445565455664556745568455694557045571455724557345574455754557645577455784557945580455814558245583455844558545586455874558845589455904559145592455934559445595455964559745598455994560045601456024560345604456054560645607456084560945610456114561245613456144561545616456174561845619456204562145622456234562445625456264562745628456294563045631456324563345634456354563645637456384563945640456414564245643456444564545646456474564845649456504565145652456534565445655456564565745658456594566045661456624566345664456654566645667456684566945670456714567245673456744567545676456774567845679456804568145682456834568445685456864568745688456894569045691456924569345694456954569645697456984569945700457014570245703457044570545706457074570845709457104571145712457134571445715457164571745718457194572045721457224572345724457254572645727457284572945730457314573245733457344573545736457374573845739457404574145742457434574445745457464574745748457494575045751457524575345754457554575645757457584575945760457614576245763457644576545766457674576845769457704577145772457734577445775457764577745778457794578045781457824578345784457854578645787457884578945790457914579245793457944579545796457974579845799458004580145802458034580445805458064580745808458094581045811458124581345814458154581645817458184581945820458214582245823458244582545826458274582845829458304583145832458334583445835458364583745838458394584045841458424584345844458454584645847458484584945850458514585245853458544585545856458574585845859458604586145862458634586445865458664586745868458694587045871458724587345874458754587645877458784587945880458814588245883458844588545886458874588845889458904589145892458934589445895458964589745898458994590045901459024590345904459054590645907459084590945910459114591245913459144591545916459174591845919459204592145922459234592445925459264592745928459294593045931459324593345934459354593645937459384593945940459414594245943459444594545946459474594845949459504595145952459534595445955459564595745958459594596045961459624596345964459654596645967459684596945970459714597245973459744597545976459774597845979459804598145982459834598445985459864598745988459894599045991459924599345994459954599645997459984599946000460014600246003460044600546006460074600846009460104601146012460134601446015460164601746018460194602046021460224602346024460254602646027460284602946030460314603246033460344603546036460374603846039460404604146042460434604446045460464604746048460494605046051460524605346054460554605646057460584605946060460614606246063460644606546066460674606846069460704607146072460734607446075460764607746078460794608046081460824608346084460854608646087460884608946090460914609246093460944609546096460974609846099461004610146102461034610446105461064610746108461094611046111461124611346114461154611646117461184611946120461214612246123461244612546126461274612846129461304613146132461334613446135461364613746138461394614046141461424614346144461454614646147461484614946150461514615246153461544615546156461574615846159461604616146162461634616446165461664616746168461694617046171461724617346174461754617646177461784617946180461814618246183461844618546186461874618846189461904619146192461934619446195461964619746198461994620046201462024620346204462054620646207462084620946210462114621246213462144621546216462174621846219462204622146222462234622446225462264622746228462294623046231462324623346234462354623646237462384623946240462414624246243462444624546246462474624846249462504625146252462534625446255462564625746258462594626046261462624626346264462654626646267462684626946270462714627246273462744627546276462774627846279462804628146282462834628446285462864628746288462894629046291462924629346294462954629646297462984629946300463014630246303463044630546306463074630846309463104631146312463134631446315463164631746318463194632046321463224632346324463254632646327463284632946330463314633246333463344633546336463374633846339463404634146342463434634446345463464634746348463494635046351463524635346354463554635646357463584635946360463614636246363463644636546366463674636846369463704637146372463734637446375463764637746378463794638046381463824638346384463854638646387463884638946390463914639246393463944639546396463974639846399464004640146402464034640446405464064640746408464094641046411464124641346414464154641646417464184641946420464214642246423464244642546426464274642846429464304643146432464334643446435464364643746438464394644046441464424644346444464454644646447464484644946450464514645246453464544645546456464574645846459464604646146462464634646446465464664646746468464694647046471464724647346474464754647646477464784647946480464814648246483464844648546486464874648846489464904649146492464934649446495464964649746498464994650046501465024650346504465054650646507465084650946510465114651246513465144651546516465174651846519465204652146522465234652446525465264652746528465294653046531465324653346534465354653646537465384653946540465414654246543465444654546546465474654846549465504655146552465534655446555465564655746558465594656046561465624656346564465654656646567465684656946570465714657246573465744657546576465774657846579465804658146582465834658446585465864658746588465894659046591465924659346594465954659646597465984659946600466014660246603466044660546606466074660846609466104661146612466134661446615466164661746618466194662046621466224662346624466254662646627466284662946630466314663246633466344663546636466374663846639466404664146642466434664446645466464664746648466494665046651466524665346654466554665646657466584665946660466614666246663466644666546666466674666846669466704667146672466734667446675466764667746678466794668046681466824668346684466854668646687466884668946690466914669246693466944669546696466974669846699467004670146702467034670446705467064670746708467094671046711467124671346714467154671646717467184671946720467214672246723467244672546726467274672846729467304673146732467334673446735467364673746738467394674046741467424674346744467454674646747467484674946750467514675246753467544675546756467574675846759467604676146762467634676446765467664676746768467694677046771467724677346774467754677646777467784677946780467814678246783467844678546786467874678846789467904679146792467934679446795467964679746798467994680046801468024680346804468054680646807468084680946810468114681246813468144681546816468174681846819468204682146822468234682446825468264682746828468294683046831468324683346834468354683646837468384683946840468414684246843468444684546846468474684846849468504685146852468534685446855468564685746858468594686046861468624686346864468654686646867468684686946870468714687246873468744687546876468774687846879468804688146882468834688446885468864688746888468894689046891468924689346894468954689646897468984689946900469014690246903469044690546906469074690846909469104691146912469134691446915469164691746918469194692046921469224692346924469254692646927469284692946930469314693246933469344693546936469374693846939469404694146942469434694446945469464694746948469494695046951469524695346954469554695646957469584695946960469614696246963469644696546966469674696846969469704697146972469734697446975469764697746978469794698046981469824698346984469854698646987469884698946990469914699246993469944699546996469974699846999470004700147002470034700447005470064700747008470094701047011470124701347014470154701647017470184701947020470214702247023470244702547026470274702847029470304703147032470334703447035470364703747038470394704047041470424704347044470454704647047470484704947050470514705247053470544705547056470574705847059470604706147062470634706447065470664706747068470694707047071470724707347074470754707647077470784707947080470814708247083470844708547086470874708847089470904709147092470934709447095470964709747098470994710047101471024710347104471054710647107471084710947110471114711247113471144711547116471174711847119471204712147122471234712447125471264712747128471294713047131471324713347134471354713647137471384713947140471414714247143471444714547146471474714847149471504715147152471534715447155471564715747158471594716047161471624716347164471654716647167471684716947170471714717247173471744717547176471774717847179471804718147182471834718447185471864718747188471894719047191471924719347194471954719647197471984719947200472014720247203472044720547206472074720847209472104721147212472134721447215472164721747218472194722047221472224722347224472254722647227472284722947230472314723247233472344723547236472374723847239472404724147242472434724447245472464724747248472494725047251472524725347254472554725647257472584725947260472614726247263472644726547266472674726847269472704727147272472734727447275472764727747278472794728047281472824728347284472854728647287472884728947290472914729247293472944729547296472974729847299473004730147302473034730447305473064730747308473094731047311473124731347314473154731647317473184731947320473214732247323473244732547326473274732847329473304733147332473334733447335473364733747338473394734047341473424734347344473454734647347473484734947350473514735247353473544735547356473574735847359473604736147362473634736447365473664736747368473694737047371473724737347374473754737647377473784737947380473814738247383473844738547386473874738847389473904739147392473934739447395473964739747398473994740047401474024740347404474054740647407474084740947410474114741247413474144741547416474174741847419474204742147422474234742447425474264742747428474294743047431474324743347434474354743647437474384743947440474414744247443474444744547446474474744847449474504745147452474534745447455474564745747458474594746047461474624746347464474654746647467474684746947470474714747247473474744747547476474774747847479474804748147482474834748447485474864748747488474894749047491474924749347494474954749647497474984749947500475014750247503475044750547506475074750847509475104751147512475134751447515475164751747518475194752047521475224752347524475254752647527475284752947530475314753247533475344753547536475374753847539475404754147542475434754447545475464754747548475494755047551475524755347554475554755647557475584755947560475614756247563475644756547566475674756847569475704757147572475734757447575475764757747578475794758047581475824758347584475854758647587475884758947590475914759247593475944759547596475974759847599476004760147602476034760447605476064760747608476094761047611476124761347614476154761647617476184761947620476214762247623476244762547626476274762847629476304763147632476334763447635476364763747638476394764047641476424764347644476454764647647476484764947650476514765247653476544765547656476574765847659476604766147662476634766447665476664766747668476694767047671476724767347674476754767647677476784767947680476814768247683476844768547686476874768847689476904769147692476934769447695476964769747698476994770047701477024770347704477054770647707477084770947710477114771247713477144771547716477174771847719477204772147722477234772447725477264772747728477294773047731477324773347734477354773647737477384773947740477414774247743477444774547746477474774847749477504775147752477534775447755477564775747758477594776047761477624776347764477654776647767477684776947770477714777247773477744777547776477774777847779477804778147782477834778447785477864778747788477894779047791477924779347794477954779647797477984779947800478014780247803478044780547806478074780847809478104781147812478134781447815478164781747818478194782047821478224782347824478254782647827478284782947830478314783247833478344783547836478374783847839478404784147842478434784447845478464784747848478494785047851478524785347854478554785647857478584785947860478614786247863478644786547866478674786847869478704787147872478734787447875478764787747878478794788047881478824788347884478854788647887478884788947890478914789247893478944789547896478974789847899479004790147902479034790447905479064790747908479094791047911479124791347914479154791647917479184791947920479214792247923479244792547926479274792847929479304793147932479334793447935479364793747938479394794047941479424794347944479454794647947479484794947950479514795247953479544795547956479574795847959479604796147962479634796447965479664796747968479694797047971479724797347974479754797647977479784797947980479814798247983479844798547986479874798847989479904799147992479934799447995479964799747998479994800048001480024800348004480054800648007480084800948010480114801248013480144801548016480174801848019480204802148022480234802448025480264802748028480294803048031480324803348034480354803648037480384803948040480414804248043480444804548046480474804848049480504805148052480534805448055480564805748058480594806048061480624806348064480654806648067480684806948070480714807248073480744807548076480774807848079480804808148082480834808448085480864808748088480894809048091480924809348094480954809648097480984809948100481014810248103481044810548106481074810848109481104811148112481134811448115481164811748118481194812048121481224812348124481254812648127481284812948130481314813248133481344813548136481374813848139481404814148142481434814448145481464814748148481494815048151481524815348154481554815648157481584815948160481614816248163481644816548166481674816848169481704817148172481734817448175481764817748178481794818048181481824818348184481854818648187481884818948190481914819248193481944819548196481974819848199482004820148202482034820448205482064820748208482094821048211482124821348214482154821648217482184821948220482214822248223482244822548226482274822848229482304823148232482334823448235482364823748238482394824048241482424824348244482454824648247482484824948250482514825248253482544825548256482574825848259482604826148262482634826448265482664826748268482694827048271482724827348274482754827648277482784827948280482814828248283482844828548286482874828848289482904829148292482934829448295482964829748298482994830048301483024830348304483054830648307483084830948310483114831248313483144831548316483174831848319483204832148322483234832448325483264832748328483294833048331483324833348334483354833648337483384833948340483414834248343483444834548346483474834848349483504835148352483534835448355483564835748358483594836048361483624836348364483654836648367483684836948370483714837248373483744837548376483774837848379483804838148382483834838448385483864838748388483894839048391483924839348394483954839648397483984839948400484014840248403484044840548406484074840848409484104841148412484134841448415484164841748418484194842048421484224842348424484254842648427484284842948430484314843248433484344843548436484374843848439484404844148442484434844448445484464844748448484494845048451484524845348454484554845648457484584845948460484614846248463484644846548466484674846848469484704847148472484734847448475484764847748478484794848048481484824848348484484854848648487484884848948490484914849248493484944849548496484974849848499485004850148502485034850448505485064850748508485094851048511485124851348514485154851648517485184851948520485214852248523485244852548526485274852848529485304853148532485334853448535485364853748538485394854048541485424854348544485454854648547485484854948550485514855248553485544855548556485574855848559485604856148562485634856448565485664856748568485694857048571485724857348574485754857648577485784857948580485814858248583485844858548586485874858848589485904859148592485934859448595485964859748598485994860048601486024860348604486054860648607486084860948610486114861248613486144861548616486174861848619486204862148622486234862448625486264862748628486294863048631486324863348634486354863648637486384863948640486414864248643486444864548646486474864848649486504865148652486534865448655486564865748658486594866048661486624866348664486654866648667486684866948670486714867248673486744867548676486774867848679486804868148682486834868448685486864868748688486894869048691486924869348694486954869648697486984869948700487014870248703487044870548706487074870848709487104871148712487134871448715487164871748718487194872048721487224872348724487254872648727487284872948730487314873248733487344873548736487374873848739487404874148742487434874448745487464874748748487494875048751487524875348754487554875648757487584875948760487614876248763487644876548766487674876848769487704877148772487734877448775487764877748778487794878048781487824878348784487854878648787487884878948790487914879248793487944879548796487974879848799488004880148802488034880448805488064880748808488094881048811488124881348814488154881648817488184881948820488214882248823488244882548826488274882848829488304883148832488334883448835488364883748838488394884048841488424884348844488454884648847488484884948850488514885248853488544885548856488574885848859488604886148862488634886448865488664886748868488694887048871488724887348874488754887648877488784887948880488814888248883488844888548886488874888848889488904889148892488934889448895488964889748898488994890048901489024890348904489054890648907489084890948910489114891248913489144891548916489174891848919489204892148922489234892448925489264892748928489294893048931489324893348934489354893648937489384893948940489414894248943489444894548946489474894848949489504895148952489534895448955489564895748958489594896048961489624896348964489654896648967489684896948970489714897248973489744897548976489774897848979489804898148982489834898448985489864898748988489894899048991489924899348994489954899648997489984899949000490014900249003490044900549006490074900849009490104901149012490134901449015490164901749018490194902049021490224902349024490254902649027490284902949030490314903249033490344903549036490374903849039490404904149042490434904449045490464904749048490494905049051490524905349054490554905649057490584905949060490614906249063490644906549066490674906849069490704907149072490734907449075490764907749078490794908049081490824908349084490854908649087490884908949090490914909249093490944909549096490974909849099491004910149102491034910449105491064910749108491094911049111491124911349114491154911649117491184911949120491214912249123491244912549126491274912849129491304913149132491334913449135491364913749138491394914049141491424914349144491454914649147491484914949150491514915249153491544915549156491574915849159491604916149162491634916449165491664916749168491694917049171491724917349174491754917649177491784917949180491814918249183491844918549186491874918849189491904919149192491934919449195491964919749198491994920049201492024920349204492054920649207492084920949210492114921249213492144921549216492174921849219492204922149222492234922449225492264922749228492294923049231492324923349234492354923649237492384923949240492414924249243492444924549246492474924849249492504925149252492534925449255492564925749258492594926049261492624926349264492654926649267492684926949270492714927249273492744927549276492774927849279492804928149282492834928449285492864928749288492894929049291492924929349294492954929649297492984929949300493014930249303493044930549306493074930849309493104931149312493134931449315493164931749318493194932049321493224932349324493254932649327493284932949330493314933249333493344933549336493374933849339493404934149342493434934449345493464934749348493494935049351493524935349354493554935649357493584935949360493614936249363493644936549366493674936849369493704937149372493734937449375493764937749378493794938049381493824938349384493854938649387493884938949390493914939249393493944939549396493974939849399494004940149402494034940449405494064940749408494094941049411494124941349414494154941649417494184941949420494214942249423494244942549426494274942849429494304943149432494334943449435494364943749438494394944049441494424944349444494454944649447494484944949450494514945249453494544945549456494574945849459494604946149462494634946449465494664946749468494694947049471494724947349474494754947649477494784947949480494814948249483494844948549486494874948849489494904949149492494934949449495494964949749498494994950049501495024950349504495054950649507495084950949510495114951249513495144951549516495174951849519495204952149522495234952449525495264952749528495294953049531495324953349534495354953649537495384953949540495414954249543495444954549546495474954849549495504955149552495534955449555495564955749558495594956049561495624956349564495654956649567495684956949570495714957249573495744957549576495774957849579495804958149582495834958449585495864958749588495894959049591495924959349594495954959649597495984959949600496014960249603496044960549606496074960849609496104961149612496134961449615496164961749618496194962049621496224962349624496254962649627496284962949630496314963249633496344963549636496374963849639496404964149642496434964449645496464964749648496494965049651496524965349654496554965649657496584965949660496614966249663496644966549666496674966849669496704967149672496734967449675496764967749678496794968049681496824968349684496854968649687496884968949690496914969249693496944969549696496974969849699497004970149702497034970449705497064970749708497094971049711497124971349714497154971649717497184971949720497214972249723497244972549726497274972849729497304973149732497334973449735497364973749738497394974049741497424974349744497454974649747497484974949750497514975249753497544975549756497574975849759497604976149762497634976449765497664976749768497694977049771497724977349774497754977649777497784977949780497814978249783497844978549786497874978849789497904979149792497934979449795497964979749798497994980049801498024980349804498054980649807498084980949810498114981249813498144981549816498174981849819498204982149822498234982449825498264982749828498294983049831498324983349834498354983649837498384983949840498414984249843498444984549846498474984849849498504985149852498534985449855498564985749858498594986049861498624986349864498654986649867498684986949870498714987249873498744987549876498774987849879498804988149882498834988449885498864988749888498894989049891498924989349894498954989649897498984989949900499014990249903499044990549906499074990849909499104991149912499134991449915499164991749918499194992049921499224992349924499254992649927499284992949930499314993249933499344993549936499374993849939499404994149942499434994449945499464994749948499494995049951499524995349954499554995649957499584995949960499614996249963499644996549966499674996849969499704997149972499734997449975499764997749978499794998049981499824998349984499854998649987499884998949990499914999249993499944999549996499974999849999500005000150002500035000450005500065000750008500095001050011500125001350014500155001650017500185001950020500215002250023500245002550026500275002850029500305003150032500335003450035500365003750038500395004050041500425004350044500455004650047500485004950050500515005250053500545005550056500575005850059500605006150062500635006450065500665006750068500695007050071500725007350074500755007650077500785007950080500815008250083500845008550086500875008850089500905009150092500935009450095500965009750098500995010050101501025010350104501055010650107501085010950110501115011250113501145011550116501175011850119501205012150122501235012450125501265012750128501295013050131501325013350134501355013650137501385013950140501415014250143501445014550146501475014850149501505015150152501535015450155501565015750158501595016050161501625016350164501655016650167501685016950170501715017250173501745017550176501775017850179501805018150182501835018450185501865018750188501895019050191501925019350194501955019650197501985019950200502015020250203502045020550206502075020850209502105021150212502135021450215502165021750218502195022050221502225022350224502255022650227502285022950230502315023250233502345023550236502375023850239502405024150242502435024450245502465024750248502495025050251502525025350254502555025650257502585025950260502615026250263502645026550266502675026850269502705027150272502735027450275502765027750278502795028050281502825028350284502855028650287502885028950290502915029250293502945029550296502975029850299503005030150302503035030450305503065030750308503095031050311503125031350314503155031650317503185031950320503215032250323503245032550326503275032850329503305033150332503335033450335503365033750338503395034050341503425034350344503455034650347503485034950350503515035250353503545035550356503575035850359503605036150362503635036450365503665036750368503695037050371503725037350374503755037650377503785037950380503815038250383503845038550386503875038850389503905039150392503935039450395503965039750398503995040050401504025040350404504055040650407504085040950410504115041250413504145041550416504175041850419504205042150422504235042450425504265042750428504295043050431504325043350434504355043650437504385043950440504415044250443504445044550446504475044850449504505045150452504535045450455504565045750458504595046050461504625046350464504655046650467504685046950470504715047250473504745047550476504775047850479504805048150482504835048450485504865048750488504895049050491504925049350494504955049650497504985049950500505015050250503505045050550506505075050850509505105051150512505135051450515505165051750518505195052050521505225052350524505255052650527505285052950530505315053250533505345053550536505375053850539505405054150542505435054450545505465054750548505495055050551505525055350554505555055650557505585055950560505615056250563505645056550566505675056850569505705057150572505735057450575505765057750578505795058050581505825058350584505855058650587505885058950590505915059250593505945059550596505975059850599506005060150602506035060450605506065060750608506095061050611506125061350614506155061650617506185061950620506215062250623506245062550626506275062850629506305063150632506335063450635506365063750638506395064050641506425064350644506455064650647506485064950650506515065250653506545065550656506575065850659506605066150662506635066450665506665066750668506695067050671506725067350674506755067650677506785067950680506815068250683506845068550686506875068850689506905069150692506935069450695506965069750698506995070050701507025070350704507055070650707507085070950710507115071250713507145071550716507175071850719507205072150722507235072450725507265072750728507295073050731507325073350734507355073650737507385073950740507415074250743507445074550746507475074850749507505075150752507535075450755507565075750758507595076050761507625076350764507655076650767507685076950770507715077250773507745077550776507775077850779507805078150782507835078450785507865078750788507895079050791507925079350794507955079650797507985079950800508015080250803508045080550806508075080850809508105081150812508135081450815508165081750818508195082050821508225082350824508255082650827508285082950830508315083250833508345083550836508375083850839508405084150842508435084450845508465084750848508495085050851508525085350854508555085650857508585085950860508615086250863508645086550866508675086850869508705087150872508735087450875508765087750878508795088050881508825088350884508855088650887508885088950890508915089250893508945089550896508975089850899509005090150902509035090450905509065090750908509095091050911509125091350914509155091650917509185091950920509215092250923509245092550926509275092850929509305093150932509335093450935509365093750938509395094050941509425094350944509455094650947509485094950950509515095250953509545095550956509575095850959509605096150962509635096450965509665096750968509695097050971509725097350974509755097650977509785097950980509815098250983509845098550986509875098850989509905099150992509935099450995509965099750998509995100051001510025100351004510055100651007510085100951010510115101251013510145101551016510175101851019510205102151022510235102451025510265102751028510295103051031510325103351034510355103651037510385103951040510415104251043510445104551046510475104851049510505105151052510535105451055510565105751058510595106051061510625106351064510655106651067510685106951070510715107251073510745107551076510775107851079510805108151082510835108451085510865108751088510895109051091510925109351094510955109651097510985109951100511015110251103511045110551106511075110851109511105111151112511135111451115511165111751118511195112051121511225112351124511255112651127511285112951130511315113251133511345113551136511375113851139511405114151142511435114451145511465114751148511495115051151511525115351154511555115651157511585115951160511615116251163511645116551166511675116851169511705117151172511735117451175511765117751178511795118051181511825118351184511855118651187511885118951190511915119251193511945119551196511975119851199512005120151202512035120451205512065120751208512095121051211512125121351214512155121651217512185121951220512215122251223512245122551226512275122851229512305123151232512335123451235512365123751238512395124051241512425124351244512455124651247512485124951250512515125251253512545125551256512575125851259512605126151262512635126451265512665126751268512695127051271512725127351274512755127651277512785127951280512815128251283512845128551286512875128851289512905129151292512935129451295512965129751298512995130051301513025130351304513055130651307513085130951310513115131251313513145131551316513175131851319513205132151322513235132451325513265132751328513295133051331513325133351334513355133651337513385133951340513415134251343513445134551346513475134851349513505135151352513535135451355513565135751358513595136051361513625136351364513655136651367513685136951370513715137251373513745137551376513775137851379513805138151382513835138451385513865138751388513895139051391513925139351394513955139651397513985139951400514015140251403514045140551406514075140851409514105141151412514135141451415514165141751418514195142051421514225142351424514255142651427514285142951430514315143251433514345143551436514375143851439514405144151442514435144451445514465144751448514495145051451514525145351454514555145651457514585145951460514615146251463514645146551466514675146851469514705147151472514735147451475514765147751478514795148051481514825148351484514855148651487514885148951490514915149251493514945149551496514975149851499515005150151502515035150451505515065150751508515095151051511515125151351514515155151651517515185151951520515215152251523515245152551526515275152851529515305153151532515335153451535515365153751538515395154051541515425154351544515455154651547515485154951550515515155251553515545155551556515575155851559515605156151562515635156451565515665156751568515695157051571515725157351574515755157651577515785157951580515815158251583515845158551586515875158851589515905159151592515935159451595515965159751598515995160051601516025160351604516055160651607516085160951610516115161251613516145161551616516175161851619516205162151622516235162451625516265162751628516295163051631516325163351634516355163651637516385163951640516415164251643516445164551646516475164851649516505165151652516535165451655516565165751658516595166051661516625166351664516655166651667516685166951670516715167251673516745167551676516775167851679516805168151682516835168451685516865168751688516895169051691516925169351694516955169651697516985169951700517015170251703517045170551706517075170851709517105171151712517135171451715517165171751718517195172051721517225172351724517255172651727517285172951730517315173251733517345173551736517375173851739517405174151742517435174451745517465174751748517495175051751517525175351754517555175651757517585175951760517615176251763517645176551766517675176851769517705177151772517735177451775517765177751778517795178051781517825178351784517855178651787517885178951790517915179251793517945179551796517975179851799518005180151802518035180451805518065180751808518095181051811518125181351814518155181651817518185181951820518215182251823518245182551826518275182851829518305183151832518335183451835518365183751838518395184051841518425184351844518455184651847518485184951850518515185251853518545185551856518575185851859518605186151862518635186451865518665186751868518695187051871518725187351874518755187651877518785187951880518815188251883518845188551886518875188851889518905189151892518935189451895518965189751898518995190051901519025190351904519055190651907519085190951910519115191251913519145191551916519175191851919519205192151922519235192451925519265192751928519295193051931519325193351934519355193651937519385193951940519415194251943519445194551946519475194851949519505195151952519535195451955519565195751958519595196051961519625196351964519655196651967519685196951970519715197251973519745197551976519775197851979519805198151982519835198451985519865198751988519895199051991519925199351994519955199651997519985199952000520015200252003520045200552006520075200852009520105201152012520135201452015520165201752018520195202052021520225202352024520255202652027520285202952030520315203252033520345203552036520375203852039520405204152042520435204452045520465204752048520495205052051520525205352054520555205652057520585205952060520615206252063520645206552066520675206852069520705207152072520735207452075520765207752078520795208052081520825208352084520855208652087520885208952090520915209252093520945209552096520975209852099521005210152102521035210452105521065210752108521095211052111521125211352114521155211652117521185211952120521215212252123521245212552126521275212852129521305213152132521335213452135521365213752138521395214052141521425214352144521455214652147521485214952150521515215252153521545215552156521575215852159521605216152162521635216452165521665216752168521695217052171521725217352174521755217652177521785217952180521815218252183521845218552186521875218852189521905219152192521935219452195521965219752198521995220052201522025220352204522055220652207522085220952210522115221252213522145221552216522175221852219522205222152222522235222452225522265222752228522295223052231522325223352234522355223652237522385223952240522415224252243522445224552246522475224852249522505225152252522535225452255522565225752258522595226052261522625226352264522655226652267522685226952270522715227252273522745227552276522775227852279522805228152282522835228452285522865228752288522895229052291522925229352294522955229652297522985229952300523015230252303523045230552306523075230852309523105231152312523135231452315523165231752318523195232052321523225232352324523255232652327523285232952330523315233252333523345233552336523375233852339523405234152342523435234452345523465234752348523495235052351523525235352354523555235652357523585235952360523615236252363523645236552366523675236852369523705237152372523735237452375523765237752378523795238052381523825238352384523855238652387523885238952390523915239252393523945239552396523975239852399524005240152402524035240452405524065240752408524095241052411524125241352414524155241652417524185241952420524215242252423524245242552426524275242852429524305243152432524335243452435524365243752438524395244052441524425244352444524455244652447524485244952450524515245252453524545245552456524575245852459524605246152462524635246452465524665246752468524695247052471524725247352474524755247652477524785247952480524815248252483524845248552486524875248852489524905249152492524935249452495524965249752498524995250052501525025250352504525055250652507525085250952510525115251252513525145251552516525175251852519525205252152522525235252452525525265252752528525295253052531525325253352534525355253652537525385253952540525415254252543525445254552546525475254852549525505255152552525535255452555525565255752558525595256052561525625256352564525655256652567525685256952570525715257252573525745257552576525775257852579525805258152582525835258452585525865258752588525895259052591525925259352594525955259652597525985259952600526015260252603526045260552606526075260852609526105261152612526135261452615526165261752618526195262052621526225262352624526255262652627526285262952630526315263252633526345263552636526375263852639526405264152642526435264452645526465264752648526495265052651526525265352654526555265652657526585265952660526615266252663526645266552666526675266852669526705267152672526735267452675526765267752678526795268052681526825268352684526855268652687526885268952690526915269252693526945269552696526975269852699527005270152702527035270452705527065270752708527095271052711527125271352714527155271652717527185271952720527215272252723527245272552726527275272852729527305273152732527335273452735527365273752738527395274052741527425274352744527455274652747527485274952750527515275252753527545275552756527575275852759527605276152762527635276452765527665276752768527695277052771527725277352774527755277652777527785277952780527815278252783527845278552786527875278852789527905279152792527935279452795527965279752798527995280052801528025280352804528055280652807528085280952810528115281252813528145281552816528175281852819528205282152822528235282452825528265282752828528295283052831528325283352834528355283652837528385283952840528415284252843528445284552846528475284852849528505285152852528535285452855528565285752858528595286052861528625286352864528655286652867528685286952870528715287252873528745287552876528775287852879528805288152882528835288452885528865288752888528895289052891528925289352894528955289652897528985289952900529015290252903529045290552906529075290852909529105291152912529135291452915529165291752918529195292052921529225292352924529255292652927529285292952930529315293252933529345293552936529375293852939529405294152942529435294452945529465294752948529495295052951529525295352954529555295652957529585295952960529615296252963529645296552966529675296852969529705297152972529735297452975529765297752978529795298052981529825298352984529855298652987529885298952990529915299252993529945299552996529975299852999530005300153002530035300453005530065300753008530095301053011530125301353014530155301653017530185301953020530215302253023530245302553026530275302853029530305303153032530335303453035530365303753038530395304053041530425304353044530455304653047530485304953050530515305253053530545305553056530575305853059530605306153062530635306453065530665306753068530695307053071530725307353074530755307653077530785307953080530815308253083530845308553086530875308853089530905309153092530935309453095530965309753098530995310053101531025310353104531055310653107531085310953110531115311253113531145311553116531175311853119531205312153122531235312453125531265312753128531295313053131531325313353134531355313653137531385313953140531415314253143531445314553146531475314853149531505315153152531535315453155531565315753158531595316053161531625316353164531655316653167531685316953170531715317253173531745317553176531775317853179531805318153182531835318453185531865318753188531895319053191531925319353194531955319653197531985319953200532015320253203532045320553206532075320853209532105321153212532135321453215532165321753218532195322053221532225322353224532255322653227532285322953230532315323253233532345323553236532375323853239532405324153242532435324453245532465324753248532495325053251532525325353254532555325653257532585325953260532615326253263532645326553266532675326853269532705327153272532735327453275532765327753278532795328053281532825328353284532855328653287532885328953290532915329253293532945329553296532975329853299533005330153302533035330453305533065330753308533095331053311533125331353314533155331653317533185331953320533215332253323533245332553326533275332853329533305333153332533335333453335533365333753338533395334053341533425334353344533455334653347533485334953350533515335253353533545335553356533575335853359533605336153362533635336453365533665336753368533695337053371533725337353374533755337653377533785337953380533815338253383533845338553386533875338853389533905339153392533935339453395533965339753398533995340053401534025340353404534055340653407534085340953410534115341253413534145341553416534175341853419534205342153422534235342453425534265342753428534295343053431534325343353434534355343653437534385343953440534415344253443534445344553446534475344853449534505345153452534535345453455534565345753458534595346053461534625346353464534655346653467534685346953470534715347253473534745347553476534775347853479534805348153482534835348453485534865348753488534895349053491534925349353494534955349653497534985349953500535015350253503535045350553506535075350853509535105351153512535135351453515535165351753518535195352053521535225352353524535255352653527535285352953530535315353253533535345353553536535375353853539535405354153542535435354453545535465354753548535495355053551535525355353554535555355653557535585355953560535615356253563535645356553566535675356853569535705357153572535735357453575535765357753578535795358053581535825358353584535855358653587535885358953590535915359253593535945359553596535975359853599536005360153602536035360453605536065360753608536095361053611536125361353614536155361653617536185361953620536215362253623536245362553626536275362853629536305363153632536335363453635536365363753638536395364053641536425364353644536455364653647536485364953650536515365253653536545365553656536575365853659536605366153662536635366453665536665366753668536695367053671536725367353674536755367653677536785367953680536815368253683536845368553686536875368853689536905369153692536935369453695536965369753698536995370053701537025370353704537055370653707537085370953710537115371253713537145371553716537175371853719537205372153722537235372453725537265372753728537295373053731537325373353734537355373653737537385373953740537415374253743537445374553746537475374853749537505375153752537535375453755537565375753758537595376053761537625376353764537655376653767537685376953770537715377253773537745377553776537775377853779537805378153782537835378453785537865378753788537895379053791537925379353794537955379653797537985379953800538015380253803538045380553806538075380853809538105381153812538135381453815538165381753818538195382053821538225382353824538255382653827538285382953830538315383253833538345383553836538375383853839538405384153842538435384453845538465384753848538495385053851538525385353854538555385653857538585385953860538615386253863538645386553866538675386853869538705387153872538735387453875538765387753878538795388053881538825388353884538855388653887538885388953890538915389253893538945389553896538975389853899539005390153902539035390453905539065390753908539095391053911539125391353914539155391653917539185391953920539215392253923539245392553926539275392853929539305393153932539335393453935539365393753938539395394053941539425394353944539455394653947539485394953950539515395253953539545395553956539575395853959539605396153962539635396453965539665396753968539695397053971539725397353974539755397653977539785397953980539815398253983539845398553986539875398853989539905399153992539935399453995539965399753998539995400054001540025400354004540055400654007540085400954010540115401254013540145401554016540175401854019540205402154022540235402454025540265402754028540295403054031540325403354034540355403654037540385403954040540415404254043540445404554046540475404854049540505405154052540535405454055540565405754058540595406054061540625406354064540655406654067540685406954070540715407254073540745407554076540775407854079540805408154082540835408454085540865408754088540895409054091540925409354094540955409654097540985409954100541015410254103541045410554106541075410854109541105411154112541135411454115541165411754118541195412054121541225412354124541255412654127541285412954130541315413254133541345413554136541375413854139541405414154142541435414454145541465414754148541495415054151541525415354154541555415654157541585415954160541615416254163541645416554166541675416854169541705417154172541735417454175541765417754178541795418054181541825418354184541855418654187541885418954190541915419254193541945419554196541975419854199542005420154202542035420454205542065420754208542095421054211542125421354214542155421654217542185421954220542215422254223542245422554226542275422854229542305423154232542335423454235542365423754238542395424054241542425424354244542455424654247542485424954250542515425254253542545425554256542575425854259542605426154262542635426454265542665426754268542695427054271542725427354274542755427654277542785427954280542815428254283542845428554286542875428854289542905429154292542935429454295542965429754298542995430054301543025430354304543055430654307543085430954310543115431254313543145431554316543175431854319543205432154322543235432454325543265432754328543295433054331543325433354334543355433654337543385433954340543415434254343543445434554346543475434854349543505435154352543535435454355543565435754358543595436054361543625436354364543655436654367543685436954370543715437254373543745437554376543775437854379543805438154382543835438454385543865438754388543895439054391543925439354394543955439654397543985439954400544015440254403544045440554406544075440854409544105441154412544135441454415544165441754418544195442054421544225442354424544255442654427544285442954430544315443254433544345443554436544375443854439544405444154442544435444454445544465444754448544495445054451544525445354454544555445654457544585445954460544615446254463544645446554466544675446854469544705447154472544735447454475544765447754478544795448054481544825448354484544855448654487544885448954490544915449254493544945449554496544975449854499545005450154502545035450454505545065450754508545095451054511545125451354514545155451654517545185451954520545215452254523545245452554526545275452854529545305453154532545335453454535545365453754538545395454054541545425454354544545455454654547545485454954550545515455254553545545455554556545575455854559545605456154562545635456454565545665456754568545695457054571545725457354574545755457654577545785457954580545815458254583545845458554586545875458854589545905459154592545935459454595545965459754598545995460054601546025460354604546055460654607546085460954610546115461254613546145461554616546175461854619546205462154622546235462454625546265462754628546295463054631546325463354634546355463654637546385463954640546415464254643546445464554646546475464854649546505465154652546535465454655546565465754658546595466054661546625466354664546655466654667546685466954670546715467254673546745467554676546775467854679546805468154682546835468454685546865468754688546895469054691546925469354694546955469654697546985469954700547015470254703547045470554706547075470854709547105471154712547135471454715547165471754718547195472054721547225472354724547255472654727547285472954730547315473254733547345473554736547375473854739547405474154742547435474454745547465474754748547495475054751547525475354754547555475654757547585475954760547615476254763547645476554766547675476854769547705477154772547735477454775547765477754778547795478054781547825478354784547855478654787547885478954790547915479254793547945479554796547975479854799548005480154802548035480454805548065480754808548095481054811548125481354814548155481654817548185481954820548215482254823548245482554826548275482854829548305483154832548335483454835548365483754838548395484054841548425484354844548455484654847548485484954850548515485254853548545485554856548575485854859548605486154862548635486454865548665486754868548695487054871548725487354874548755487654877548785487954880548815488254883548845488554886548875488854889548905489154892548935489454895548965489754898548995490054901549025490354904549055490654907549085490954910549115491254913549145491554916549175491854919549205492154922549235492454925549265492754928549295493054931549325493354934549355493654937549385493954940549415494254943549445494554946549475494854949549505495154952549535495454955549565495754958549595496054961549625496354964549655496654967549685496954970549715497254973549745497554976549775497854979549805498154982549835498454985549865498754988549895499054991549925499354994549955499654997549985499955000550015500255003550045500555006550075500855009550105501155012550135501455015550165501755018550195502055021550225502355024550255502655027550285502955030550315503255033550345503555036550375503855039550405504155042550435504455045550465504755048550495505055051550525505355054550555505655057550585505955060550615506255063550645506555066550675506855069550705507155072550735507455075550765507755078550795508055081550825508355084550855508655087550885508955090550915509255093550945509555096550975509855099551005510155102551035510455105551065510755108551095511055111551125511355114551155511655117551185511955120551215512255123551245512555126551275512855129551305513155132551335513455135551365513755138551395514055141551425514355144551455514655147551485514955150551515515255153551545515555156551575515855159551605516155162551635516455165551665516755168551695517055171551725517355174551755517655177551785517955180551815518255183551845518555186551875518855189551905519155192551935519455195551965519755198551995520055201552025520355204552055520655207552085520955210552115521255213552145521555216552175521855219552205522155222552235522455225552265522755228552295523055231552325523355234552355523655237552385523955240552415524255243552445524555246552475524855249552505525155252552535525455255552565525755258552595526055261552625526355264552655526655267552685526955270552715527255273552745527555276552775527855279552805528155282552835528455285552865528755288552895529055291552925529355294552955529655297552985529955300553015530255303553045530555306553075530855309553105531155312553135531455315553165531755318553195532055321553225532355324553255532655327553285532955330553315533255333553345533555336553375533855339553405534155342553435534455345553465534755348553495535055351553525535355354553555535655357553585535955360553615536255363553645536555366553675536855369553705537155372553735537455375553765537755378553795538055381553825538355384553855538655387553885538955390553915539255393553945539555396553975539855399554005540155402554035540455405554065540755408554095541055411554125541355414554155541655417554185541955420554215542255423554245542555426554275542855429554305543155432554335543455435554365543755438554395544055441554425544355444554455544655447554485544955450554515545255453554545545555456554575545855459554605546155462554635546455465554665546755468554695547055471554725547355474554755547655477554785547955480554815548255483554845548555486554875548855489554905549155492554935549455495554965549755498554995550055501555025550355504555055550655507555085550955510555115551255513555145551555516555175551855519555205552155522555235552455525555265552755528555295553055531555325553355534555355553655537555385553955540555415554255543555445554555546555475554855549555505555155552555535555455555555565555755558555595556055561555625556355564555655556655567555685556955570555715557255573555745557555576555775557855579555805558155582555835558455585555865558755588555895559055591555925559355594555955559655597555985559955600556015560255603556045560555606556075560855609556105561155612556135561455615556165561755618556195562055621556225562355624556255562655627556285562955630556315563255633556345563555636556375563855639556405564155642556435564455645556465564755648556495565055651556525565355654556555565655657556585565955660556615566255663556645566555666556675566855669556705567155672556735567455675556765567755678556795568055681556825568355684556855568655687556885568955690556915569255693556945569555696556975569855699557005570155702557035570455705557065570755708557095571055711557125571355714557155571655717557185571955720557215572255723557245572555726557275572855729557305573155732557335573455735557365573755738557395574055741557425574355744557455574655747557485574955750557515575255753557545575555756557575575855759557605576155762557635576455765557665576755768557695577055771557725577355774557755577655777557785577955780557815578255783557845578555786557875578855789557905579155792557935579455795557965579755798557995580055801558025580355804558055580655807558085580955810558115581255813558145581555816558175581855819558205582155822558235582455825558265582755828558295583055831558325583355834558355583655837558385583955840558415584255843558445584555846558475584855849558505585155852558535585455855558565585755858558595586055861558625586355864558655586655867558685586955870558715587255873558745587555876558775587855879558805588155882558835588455885558865588755888558895589055891558925589355894558955589655897558985589955900559015590255903559045590555906559075590855909559105591155912559135591455915559165591755918559195592055921559225592355924559255592655927559285592955930559315593255933559345593555936559375593855939559405594155942559435594455945559465594755948559495595055951559525595355954559555595655957559585595955960559615596255963559645596555966559675596855969559705597155972559735597455975559765597755978559795598055981559825598355984559855598655987559885598955990559915599255993559945599555996559975599855999560005600156002560035600456005560065600756008560095601056011560125601356014560155601656017560185601956020560215602256023560245602556026560275602856029560305603156032560335603456035560365603756038560395604056041560425604356044560455604656047560485604956050560515605256053560545605556056560575605856059560605606156062560635606456065560665606756068560695607056071560725607356074560755607656077560785607956080560815608256083560845608556086560875608856089560905609156092560935609456095560965609756098560995610056101561025610356104561055610656107561085610956110561115611256113561145611556116561175611856119561205612156122561235612456125561265612756128561295613056131561325613356134561355613656137561385613956140561415614256143561445614556146561475614856149561505615156152561535615456155561565615756158561595616056161561625616356164561655616656167561685616956170561715617256173561745617556176561775617856179561805618156182561835618456185561865618756188561895619056191561925619356194561955619656197561985619956200562015620256203562045620556206562075620856209562105621156212562135621456215562165621756218562195622056221562225622356224562255622656227562285622956230562315623256233562345623556236562375623856239562405624156242562435624456245562465624756248562495625056251562525625356254562555625656257562585625956260562615626256263562645626556266562675626856269562705627156272562735627456275562765627756278562795628056281562825628356284562855628656287562885628956290562915629256293562945629556296562975629856299563005630156302563035630456305563065630756308563095631056311563125631356314563155631656317563185631956320563215632256323563245632556326563275632856329563305633156332563335633456335563365633756338563395634056341563425634356344563455634656347563485634956350563515635256353563545635556356563575635856359563605636156362563635636456365563665636756368563695637056371563725637356374563755637656377563785637956380563815638256383563845638556386563875638856389563905639156392563935639456395563965639756398563995640056401564025640356404564055640656407564085640956410564115641256413564145641556416564175641856419564205642156422564235642456425564265642756428564295643056431564325643356434564355643656437564385643956440564415644256443564445644556446564475644856449564505645156452564535645456455564565645756458564595646056461564625646356464564655646656467564685646956470564715647256473564745647556476564775647856479564805648156482564835648456485564865648756488564895649056491564925649356494564955649656497564985649956500565015650256503565045650556506565075650856509565105651156512565135651456515565165651756518565195652056521565225652356524565255652656527565285652956530565315653256533565345653556536565375653856539565405654156542565435654456545565465654756548565495655056551565525655356554565555655656557565585655956560565615656256563565645656556566565675656856569565705657156572565735657456575565765657756578565795658056581565825658356584565855658656587565885658956590565915659256593565945659556596565975659856599566005660156602566035660456605566065660756608566095661056611566125661356614566155661656617566185661956620566215662256623566245662556626566275662856629566305663156632566335663456635566365663756638566395664056641566425664356644566455664656647566485664956650566515665256653566545665556656566575665856659566605666156662566635666456665566665666756668566695667056671566725667356674566755667656677566785667956680566815668256683566845668556686566875668856689566905669156692566935669456695566965669756698566995670056701567025670356704567055670656707567085670956710567115671256713567145671556716567175671856719567205672156722567235672456725567265672756728567295673056731567325673356734567355673656737567385673956740567415674256743567445674556746567475674856749567505675156752567535675456755567565675756758567595676056761567625676356764567655676656767567685676956770567715677256773567745677556776567775677856779567805678156782567835678456785567865678756788567895679056791567925679356794567955679656797567985679956800568015680256803568045680556806568075680856809568105681156812568135681456815568165681756818568195682056821568225682356824568255682656827568285682956830568315683256833568345683556836568375683856839568405684156842568435684456845568465684756848568495685056851568525685356854568555685656857568585685956860568615686256863568645686556866568675686856869568705687156872568735687456875568765687756878568795688056881568825688356884568855688656887568885688956890568915689256893568945689556896568975689856899569005690156902569035690456905569065690756908569095691056911569125691356914569155691656917569185691956920569215692256923569245692556926569275692856929569305693156932569335693456935569365693756938569395694056941569425694356944569455694656947569485694956950569515695256953569545695556956569575695856959569605696156962569635696456965569665696756968569695697056971569725697356974569755697656977569785697956980569815698256983569845698556986569875698856989569905699156992569935699456995569965699756998569995700057001570025700357004570055700657007570085700957010570115701257013570145701557016570175701857019570205702157022570235702457025570265702757028570295703057031570325703357034570355703657037570385703957040570415704257043570445704557046570475704857049570505705157052570535705457055570565705757058570595706057061570625706357064570655706657067570685706957070570715707257073570745707557076570775707857079570805708157082570835708457085570865708757088570895709057091570925709357094570955709657097570985709957100571015710257103571045710557106571075710857109571105711157112571135711457115571165711757118571195712057121571225712357124571255712657127571285712957130571315713257133571345713557136571375713857139571405714157142571435714457145571465714757148571495715057151571525715357154571555715657157571585715957160571615716257163571645716557166571675716857169571705717157172571735717457175571765717757178571795718057181571825718357184571855718657187571885718957190571915719257193571945719557196571975719857199572005720157202572035720457205572065720757208572095721057211572125721357214572155721657217572185721957220572215722257223572245722557226572275722857229572305723157232572335723457235572365723757238572395724057241572425724357244572455724657247572485724957250572515725257253572545725557256572575725857259572605726157262572635726457265572665726757268572695727057271572725727357274572755727657277572785727957280572815728257283572845728557286572875728857289572905729157292572935729457295572965729757298572995730057301573025730357304573055730657307573085730957310573115731257313573145731557316573175731857319573205732157322573235732457325573265732757328573295733057331573325733357334573355733657337573385733957340573415734257343573445734557346573475734857349573505735157352573535735457355573565735757358573595736057361573625736357364573655736657367573685736957370573715737257373573745737557376573775737857379573805738157382573835738457385573865738757388573895739057391573925739357394573955739657397573985739957400574015740257403574045740557406574075740857409574105741157412574135741457415574165741757418574195742057421574225742357424574255742657427574285742957430574315743257433574345743557436574375743857439574405744157442574435744457445574465744757448574495745057451574525745357454574555745657457574585745957460574615746257463574645746557466574675746857469574705747157472574735747457475574765747757478574795748057481574825748357484574855748657487574885748957490574915749257493574945749557496574975749857499575005750157502575035750457505575065750757508575095751057511575125751357514575155751657517575185751957520575215752257523575245752557526575275752857529575305753157532575335753457535575365753757538575395754057541575425754357544575455754657547575485754957550575515755257553575545755557556575575755857559575605756157562575635756457565575665756757568575695757057571575725757357574575755757657577575785757957580575815758257583575845758557586575875758857589575905759157592575935759457595575965759757598575995760057601576025760357604576055760657607576085760957610576115761257613576145761557616576175761857619576205762157622576235762457625576265762757628576295763057631576325763357634576355763657637576385763957640576415764257643576445764557646576475764857649576505765157652576535765457655576565765757658576595766057661576625766357664576655766657667576685766957670576715767257673576745767557676576775767857679576805768157682576835768457685576865768757688576895769057691576925769357694576955769657697576985769957700577015770257703577045770557706577075770857709577105771157712577135771457715577165771757718577195772057721577225772357724577255772657727577285772957730577315773257733577345773557736577375773857739577405774157742577435774457745577465774757748577495775057751577525775357754577555775657757577585775957760577615776257763577645776557766577675776857769577705777157772577735777457775577765777757778577795778057781577825778357784577855778657787577885778957790577915779257793577945779557796577975779857799578005780157802578035780457805578065780757808578095781057811578125781357814578155781657817578185781957820578215782257823578245782557826578275782857829578305783157832578335783457835578365783757838578395784057841578425784357844578455784657847578485784957850578515785257853578545785557856578575785857859578605786157862578635786457865578665786757868578695787057871578725787357874578755787657877578785787957880578815788257883578845788557886578875788857889578905789157892578935789457895578965789757898578995790057901579025790357904579055790657907579085790957910579115791257913579145791557916579175791857919579205792157922579235792457925579265792757928579295793057931579325793357934579355793657937579385793957940579415794257943579445794557946579475794857949579505795157952579535795457955579565795757958579595796057961579625796357964579655796657967579685796957970579715797257973579745797557976579775797857979579805798157982579835798457985579865798757988579895799057991579925799357994579955799657997579985799958000580015800258003580045800558006580075800858009580105801158012580135801458015580165801758018580195802058021580225802358024580255802658027580285802958030580315803258033580345803558036580375803858039580405804158042580435804458045580465804758048580495805058051580525805358054580555805658057580585805958060580615806258063580645806558066580675806858069580705807158072580735807458075580765807758078580795808058081580825808358084580855808658087580885808958090580915809258093580945809558096580975809858099581005810158102581035810458105581065810758108581095811058111581125811358114581155811658117581185811958120581215812258123581245812558126581275812858129581305813158132581335813458135581365813758138581395814058141581425814358144581455814658147581485814958150581515815258153581545815558156581575815858159581605816158162581635816458165581665816758168581695817058171581725817358174581755817658177581785817958180581815818258183581845818558186581875818858189581905819158192581935819458195581965819758198581995820058201582025820358204582055820658207582085820958210582115821258213582145821558216582175821858219582205822158222582235822458225582265822758228582295823058231582325823358234582355823658237582385823958240582415824258243582445824558246582475824858249582505825158252582535825458255582565825758258582595826058261582625826358264582655826658267582685826958270582715827258273582745827558276582775827858279582805828158282582835828458285582865828758288582895829058291582925829358294582955829658297582985829958300583015830258303583045830558306583075830858309583105831158312583135831458315583165831758318583195832058321583225832358324583255832658327583285832958330583315833258333583345833558336583375833858339583405834158342583435834458345583465834758348583495835058351583525835358354583555835658357583585835958360583615836258363583645836558366583675836858369583705837158372583735837458375583765837758378583795838058381583825838358384583855838658387583885838958390583915839258393583945839558396583975839858399584005840158402584035840458405584065840758408584095841058411584125841358414584155841658417584185841958420584215842258423584245842558426584275842858429584305843158432584335843458435584365843758438584395844058441584425844358444584455844658447584485844958450584515845258453584545845558456584575845858459584605846158462584635846458465584665846758468584695847058471584725847358474584755847658477584785847958480584815848258483584845848558486584875848858489584905849158492584935849458495584965849758498584995850058501585025850358504585055850658507585085850958510585115851258513585145851558516585175851858519585205852158522585235852458525585265852758528585295853058531585325853358534585355853658537585385853958540585415854258543585445854558546585475854858549585505855158552585535855458555585565855758558585595856058561585625856358564585655856658567585685856958570585715857258573585745857558576585775857858579585805858158582585835858458585585865858758588585895859058591585925859358594585955859658597585985859958600586015860258603586045860558606586075860858609586105861158612586135861458615586165861758618586195862058621586225862358624586255862658627586285862958630586315863258633586345863558636586375863858639586405864158642586435864458645586465864758648586495865058651586525865358654586555865658657586585865958660586615866258663586645866558666586675866858669586705867158672586735867458675586765867758678586795868058681586825868358684586855868658687586885868958690586915869258693586945869558696586975869858699587005870158702587035870458705587065870758708587095871058711587125871358714587155871658717587185871958720587215872258723587245872558726587275872858729587305873158732587335873458735587365873758738587395874058741587425874358744587455874658747587485874958750587515875258753587545875558756587575875858759587605876158762587635876458765587665876758768587695877058771587725877358774587755877658777587785877958780587815878258783587845878558786587875878858789587905879158792587935879458795587965879758798587995880058801588025880358804588055880658807588085880958810588115881258813588145881558816588175881858819588205882158822588235882458825588265882758828588295883058831588325883358834588355883658837588385883958840588415884258843588445884558846588475884858849588505885158852588535885458855588565885758858588595886058861588625886358864588655886658867588685886958870588715887258873588745887558876588775887858879588805888158882588835888458885588865888758888588895889058891588925889358894588955889658897588985889958900589015890258903589045890558906589075890858909589105891158912589135891458915589165891758918589195892058921589225892358924589255892658927589285892958930589315893258933589345893558936589375893858939589405894158942589435894458945589465894758948589495895058951589525895358954589555895658957589585895958960589615896258963589645896558966589675896858969589705897158972589735897458975589765897758978589795898058981589825898358984589855898658987589885898958990589915899258993589945899558996589975899858999590005900159002590035900459005590065900759008590095901059011590125901359014590155901659017590185901959020590215902259023590245902559026590275902859029590305903159032590335903459035590365903759038590395904059041590425904359044590455904659047590485904959050590515905259053590545905559056590575905859059590605906159062590635906459065590665906759068590695907059071590725907359074590755907659077590785907959080590815908259083590845908559086590875908859089590905909159092590935909459095590965909759098590995910059101591025910359104591055910659107591085910959110591115911259113591145911559116591175911859119591205912159122591235912459125591265912759128591295913059131591325913359134591355913659137591385913959140591415914259143591445914559146591475914859149591505915159152591535915459155591565915759158591595916059161591625916359164591655916659167591685916959170591715917259173591745917559176591775917859179591805918159182591835918459185591865918759188591895919059191591925919359194591955919659197591985919959200592015920259203592045920559206592075920859209592105921159212592135921459215592165921759218592195922059221592225922359224592255922659227592285922959230592315923259233592345923559236592375923859239592405924159242592435924459245592465924759248592495925059251592525925359254592555925659257592585925959260592615926259263592645926559266592675926859269592705927159272592735927459275592765927759278592795928059281592825928359284592855928659287592885928959290592915929259293592945929559296592975929859299593005930159302593035930459305593065930759308593095931059311593125931359314593155931659317593185931959320593215932259323593245932559326593275932859329593305933159332593335933459335593365933759338593395934059341593425934359344593455934659347593485934959350593515935259353593545935559356593575935859359593605936159362593635936459365593665936759368593695937059371593725937359374593755937659377593785937959380593815938259383593845938559386593875938859389593905939159392593935939459395593965939759398593995940059401594025940359404594055940659407594085940959410594115941259413594145941559416594175941859419594205942159422594235942459425594265942759428594295943059431594325943359434594355943659437594385943959440594415944259443594445944559446594475944859449594505945159452594535945459455594565945759458594595946059461594625946359464594655946659467594685946959470594715947259473594745947559476594775947859479594805948159482594835948459485594865948759488594895949059491594925949359494594955949659497594985949959500595015950259503595045950559506595075950859509595105951159512595135951459515595165951759518595195952059521595225952359524595255952659527595285952959530595315953259533595345953559536595375953859539595405954159542595435954459545595465954759548595495955059551595525955359554595555955659557595585955959560595615956259563595645956559566595675956859569595705957159572595735957459575595765957759578595795958059581595825958359584595855958659587595885958959590595915959259593595945959559596595975959859599596005960159602596035960459605596065960759608596095961059611596125961359614596155961659617596185961959620596215962259623596245962559626596275962859629596305963159632596335963459635596365963759638596395964059641596425964359644596455964659647596485964959650596515965259653596545965559656596575965859659596605966159662596635966459665596665966759668596695967059671596725967359674596755967659677596785967959680596815968259683596845968559686596875968859689596905969159692596935969459695596965969759698596995970059701597025970359704597055970659707597085970959710597115971259713597145971559716597175971859719597205972159722597235972459725597265972759728597295973059731597325973359734597355973659737597385973959740597415974259743597445974559746597475974859749597505975159752597535975459755597565975759758597595976059761597625976359764597655976659767597685976959770597715977259773597745977559776597775977859779597805978159782597835978459785597865978759788597895979059791597925979359794597955979659797597985979959800598015980259803598045980559806598075980859809598105981159812598135981459815598165981759818598195982059821598225982359824598255982659827598285982959830598315983259833598345983559836598375983859839598405984159842598435984459845598465984759848598495985059851598525985359854598555985659857598585985959860598615986259863598645986559866598675986859869598705987159872598735987459875598765987759878598795988059881598825988359884598855988659887598885988959890598915989259893598945989559896598975989859899599005990159902599035990459905599065990759908599095991059911599125991359914599155991659917599185991959920599215992259923599245992559926599275992859929599305993159932599335993459935599365993759938599395994059941599425994359944599455994659947599485994959950599515995259953599545995559956599575995859959599605996159962599635996459965599665996759968599695997059971599725997359974599755997659977599785997959980599815998259983599845998559986599875998859989599905999159992599935999459995599965999759998599996000060001600026000360004600056000660007600086000960010600116001260013600146001560016600176001860019600206002160022600236002460025600266002760028600296003060031600326003360034600356003660037600386003960040600416004260043600446004560046600476004860049600506005160052600536005460055600566005760058600596006060061600626006360064600656006660067600686006960070600716007260073600746007560076600776007860079600806008160082600836008460085600866008760088600896009060091600926009360094600956009660097600986009960100601016010260103601046010560106601076010860109601106011160112601136011460115601166011760118601196012060121601226012360124601256012660127601286012960130601316013260133601346013560136601376013860139601406014160142601436014460145601466014760148601496015060151601526015360154601556015660157601586015960160601616016260163601646016560166601676016860169601706017160172601736017460175601766017760178601796018060181601826018360184601856018660187601886018960190601916019260193601946019560196601976019860199602006020160202602036020460205602066020760208602096021060211602126021360214602156021660217602186021960220602216022260223602246022560226602276022860229602306023160232602336023460235602366023760238602396024060241602426024360244602456024660247602486024960250602516025260253602546025560256602576025860259602606026160262602636026460265602666026760268602696027060271602726027360274602756027660277602786027960280602816028260283602846028560286602876028860289602906029160292602936029460295602966029760298602996030060301603026030360304603056030660307603086030960310603116031260313603146031560316603176031860319603206032160322603236032460325603266032760328603296033060331603326033360334603356033660337603386033960340603416034260343603446034560346603476034860349603506035160352603536035460355603566035760358603596036060361603626036360364603656036660367603686036960370603716037260373603746037560376603776037860379603806038160382603836038460385603866038760388603896039060391603926039360394603956039660397603986039960400604016040260403604046040560406604076040860409604106041160412604136041460415604166041760418604196042060421604226042360424604256042660427604286042960430604316043260433604346043560436604376043860439604406044160442604436044460445604466044760448604496045060451604526045360454604556045660457604586045960460604616046260463604646046560466604676046860469604706047160472604736047460475604766047760478604796048060481604826048360484604856048660487604886048960490604916049260493604946049560496604976049860499605006050160502605036050460505605066050760508605096051060511605126051360514605156051660517605186051960520605216052260523605246052560526605276052860529605306053160532605336053460535605366053760538605396054060541605426054360544605456054660547605486054960550605516055260553605546055560556605576055860559605606056160562605636056460565605666056760568605696057060571605726057360574605756057660577605786057960580605816058260583605846058560586605876058860589605906059160592605936059460595605966059760598605996060060601606026060360604606056060660607606086060960610606116061260613606146061560616606176061860619606206062160622606236062460625606266062760628606296063060631606326063360634606356063660637606386063960640606416064260643606446064560646606476064860649606506065160652606536065460655606566065760658606596066060661606626066360664606656066660667606686066960670606716067260673606746067560676606776067860679606806068160682606836068460685606866068760688606896069060691606926069360694606956069660697606986069960700607016070260703607046070560706607076070860709607106071160712607136071460715607166071760718607196072060721607226072360724607256072660727607286072960730607316073260733607346073560736607376073860739607406074160742607436074460745607466074760748607496075060751607526075360754607556075660757607586075960760607616076260763607646076560766607676076860769607706077160772607736077460775607766077760778607796078060781607826078360784607856078660787607886078960790607916079260793607946079560796607976079860799608006080160802608036080460805608066080760808608096081060811608126081360814608156081660817608186081960820608216082260823608246082560826608276082860829608306083160832608336083460835608366083760838608396084060841608426084360844608456084660847608486084960850608516085260853608546085560856608576085860859608606086160862608636086460865608666086760868608696087060871608726087360874608756087660877608786087960880608816088260883608846088560886608876088860889608906089160892608936089460895608966089760898608996090060901609026090360904609056090660907609086090960910609116091260913609146091560916609176091860919609206092160922609236092460925609266092760928609296093060931609326093360934609356093660937609386093960940609416094260943609446094560946609476094860949609506095160952609536095460955609566095760958609596096060961609626096360964609656096660967609686096960970609716097260973609746097560976609776097860979609806098160982609836098460985609866098760988609896099060991609926099360994609956099660997609986099961000610016100261003610046100561006610076100861009610106101161012610136101461015610166101761018610196102061021610226102361024610256102661027610286102961030610316103261033610346103561036610376103861039610406104161042610436104461045610466104761048610496105061051610526105361054610556105661057610586105961060610616106261063610646106561066610676106861069610706107161072610736107461075610766107761078610796108061081610826108361084610856108661087610886108961090610916109261093610946109561096610976109861099611006110161102611036110461105611066110761108611096111061111611126111361114611156111661117611186111961120611216112261123611246112561126611276112861129611306113161132611336113461135611366113761138611396114061141611426114361144611456114661147611486114961150611516115261153611546115561156611576115861159611606116161162611636116461165611666116761168611696117061171611726117361174611756117661177611786117961180611816118261183611846118561186611876118861189611906119161192611936119461195611966119761198611996120061201612026120361204612056120661207612086120961210612116121261213612146121561216612176121861219612206122161222612236122461225612266122761228612296123061231612326123361234612356123661237612386123961240612416124261243612446124561246612476124861249612506125161252612536125461255612566125761258612596126061261612626126361264612656126661267612686126961270612716127261273612746127561276612776127861279612806128161282612836128461285612866128761288612896129061291612926129361294612956129661297612986129961300613016130261303613046130561306613076130861309613106131161312613136131461315613166131761318613196132061321613226132361324613256132661327613286132961330613316133261333613346133561336613376133861339613406134161342613436134461345613466134761348613496135061351613526135361354613556135661357613586135961360613616136261363613646136561366613676136861369613706137161372613736137461375613766137761378613796138061381613826138361384613856138661387613886138961390613916139261393613946139561396613976139861399614006140161402614036140461405614066140761408614096141061411614126141361414614156141661417614186141961420614216142261423614246142561426614276142861429614306143161432614336143461435614366143761438614396144061441614426144361444614456144661447614486144961450614516145261453614546145561456614576145861459614606146161462614636146461465614666146761468614696147061471614726147361474614756147661477614786147961480614816148261483614846148561486614876148861489614906149161492614936149461495614966149761498614996150061501615026150361504615056150661507615086150961510615116151261513615146151561516615176151861519615206152161522615236152461525615266152761528615296153061531615326153361534615356153661537615386153961540615416154261543615446154561546615476154861549615506155161552615536155461555615566155761558615596156061561615626156361564615656156661567615686156961570615716157261573615746157561576615776157861579615806158161582615836158461585615866158761588615896159061591615926159361594615956159661597615986159961600616016160261603616046160561606616076160861609616106161161612616136161461615616166161761618616196162061621616226162361624616256162661627616286162961630616316163261633616346163561636616376163861639616406164161642616436164461645616466164761648616496165061651616526165361654616556165661657616586165961660616616166261663616646166561666616676166861669616706167161672616736167461675616766167761678616796168061681616826168361684616856168661687616886168961690616916169261693616946169561696616976169861699617006170161702617036170461705617066170761708617096171061711617126171361714617156171661717617186171961720617216172261723617246172561726617276172861729617306173161732617336173461735617366173761738617396174061741617426174361744617456174661747617486174961750617516175261753617546175561756617576175861759617606176161762617636176461765617666176761768617696177061771617726177361774617756177661777617786177961780617816178261783617846178561786617876178861789617906179161792617936179461795617966179761798617996180061801618026180361804618056180661807618086180961810618116181261813618146181561816618176181861819618206182161822618236182461825618266182761828618296183061831618326183361834618356183661837618386183961840618416184261843618446184561846618476184861849618506185161852618536185461855618566185761858618596186061861618626186361864618656186661867618686186961870618716187261873618746187561876618776187861879618806188161882618836188461885618866188761888618896189061891618926189361894618956189661897618986189961900619016190261903619046190561906619076190861909619106191161912619136191461915619166191761918619196192061921619226192361924619256192661927619286192961930619316193261933619346193561936619376193861939619406194161942619436194461945619466194761948619496195061951619526195361954619556195661957619586195961960619616196261963619646196561966619676196861969619706197161972619736197461975619766197761978619796198061981619826198361984619856198661987619886198961990619916199261993619946199561996619976199861999620006200162002620036200462005620066200762008620096201062011620126201362014620156201662017620186201962020620216202262023620246202562026620276202862029620306203162032620336203462035620366203762038620396204062041620426204362044620456204662047620486204962050620516205262053620546205562056620576205862059620606206162062620636206462065620666206762068620696207062071620726207362074620756207662077620786207962080620816208262083620846208562086620876208862089620906209162092620936209462095620966209762098620996210062101621026210362104621056210662107621086210962110621116211262113621146211562116621176211862119621206212162122621236212462125621266212762128621296213062131621326213362134621356213662137621386213962140621416214262143621446214562146621476214862149621506215162152621536215462155621566215762158621596216062161621626216362164621656216662167621686216962170621716217262173621746217562176621776217862179621806218162182621836218462185621866218762188621896219062191621926219362194621956219662197621986219962200622016220262203622046220562206622076220862209622106221162212622136221462215622166221762218622196222062221622226222362224622256222662227622286222962230622316223262233622346223562236622376223862239622406224162242622436224462245622466224762248622496225062251622526225362254622556225662257622586225962260622616226262263622646226562266622676226862269622706227162272622736227462275622766227762278622796228062281622826228362284622856228662287622886228962290622916229262293622946229562296622976229862299623006230162302623036230462305623066230762308623096231062311623126231362314623156231662317623186231962320623216232262323623246232562326623276232862329623306233162332623336233462335623366233762338623396234062341623426234362344623456234662347623486234962350623516235262353623546235562356623576235862359623606236162362623636236462365623666236762368623696237062371623726237362374623756237662377623786237962380623816238262383623846238562386623876238862389623906239162392623936239462395623966239762398623996240062401624026240362404624056240662407624086240962410624116241262413624146241562416624176241862419624206242162422624236242462425624266242762428624296243062431624326243362434624356243662437624386243962440624416244262443624446244562446624476244862449624506245162452624536245462455624566245762458624596246062461624626246362464624656246662467624686246962470624716247262473624746247562476624776247862479624806248162482624836248462485624866248762488624896249062491624926249362494624956249662497624986249962500625016250262503625046250562506625076250862509625106251162512625136251462515625166251762518625196252062521625226252362524625256252662527625286252962530625316253262533625346253562536625376253862539625406254162542625436254462545625466254762548625496255062551625526255362554625556255662557625586255962560625616256262563625646256562566625676256862569625706257162572625736257462575625766257762578625796258062581625826258362584625856258662587625886258962590625916259262593625946259562596625976259862599626006260162602626036260462605626066260762608626096261062611626126261362614626156261662617626186261962620626216262262623626246262562626626276262862629626306263162632626336263462635626366263762638626396264062641626426264362644626456264662647626486264962650626516265262653626546265562656626576265862659626606266162662626636266462665626666266762668626696267062671626726267362674626756267662677626786267962680626816268262683626846268562686626876268862689626906269162692626936269462695626966269762698626996270062701627026270362704627056270662707627086270962710627116271262713627146271562716627176271862719627206272162722627236272462725627266272762728627296273062731627326273362734627356273662737627386273962740627416274262743627446274562746627476274862749627506275162752627536275462755627566275762758627596276062761627626276362764627656276662767627686276962770627716277262773627746277562776627776277862779627806278162782627836278462785627866278762788627896279062791627926279362794627956279662797627986279962800628016280262803628046280562806628076280862809628106281162812628136281462815628166281762818628196282062821628226282362824628256282662827628286282962830628316283262833628346283562836628376283862839628406284162842628436284462845628466284762848628496285062851628526285362854628556285662857628586285962860628616286262863628646286562866628676286862869628706287162872628736287462875628766287762878628796288062881628826288362884628856288662887628886288962890628916289262893628946289562896628976289862899629006290162902629036290462905629066290762908629096291062911629126291362914629156291662917629186291962920629216292262923629246292562926629276292862929629306293162932629336293462935629366293762938629396294062941629426294362944629456294662947629486294962950629516295262953629546295562956629576295862959629606296162962629636296462965629666296762968629696297062971629726297362974629756297662977629786297962980629816298262983629846298562986629876298862989629906299162992629936299462995629966299762998629996300063001630026300363004630056300663007630086300963010630116301263013630146301563016630176301863019630206302163022630236302463025630266302763028630296303063031630326303363034630356303663037630386303963040630416304263043630446304563046630476304863049630506305163052630536305463055630566305763058630596306063061630626306363064630656306663067630686306963070630716307263073630746307563076630776307863079630806308163082630836308463085630866308763088630896309063091630926309363094630956309663097630986309963100631016310263103631046310563106631076310863109631106311163112631136311463115631166311763118631196312063121631226312363124631256312663127631286312963130631316313263133631346313563136631376313863139631406314163142631436314463145631466314763148631496315063151631526315363154631556315663157631586315963160631616316263163631646316563166631676316863169631706317163172631736317463175631766317763178631796318063181631826318363184631856318663187631886318963190631916319263193631946319563196631976319863199632006320163202632036320463205632066320763208632096321063211632126321363214632156321663217632186321963220632216322263223632246322563226632276322863229632306323163232632336323463235632366323763238632396324063241632426324363244632456324663247632486324963250632516325263253632546325563256632576325863259632606326163262632636326463265632666326763268632696327063271632726327363274632756327663277632786327963280632816328263283632846328563286632876328863289632906329163292632936329463295632966329763298632996330063301633026330363304633056330663307633086330963310633116331263313633146331563316633176331863319633206332163322633236332463325633266332763328633296333063331633326333363334633356333663337633386333963340633416334263343633446334563346633476334863349633506335163352633536335463355633566335763358633596336063361633626336363364633656336663367633686336963370633716337263373633746337563376633776337863379633806338163382633836338463385633866338763388633896339063391633926339363394633956339663397633986339963400634016340263403634046340563406634076340863409634106341163412634136341463415634166341763418634196342063421634226342363424634256342663427634286342963430634316343263433634346343563436634376343863439634406344163442634436344463445634466344763448634496345063451634526345363454634556345663457634586345963460634616346263463634646346563466634676346863469634706347163472634736347463475634766347763478634796348063481634826348363484634856348663487634886348963490634916349263493634946349563496634976349863499635006350163502635036350463505635066350763508635096351063511635126351363514635156351663517635186351963520635216352263523635246352563526635276352863529635306353163532635336353463535635366353763538635396354063541635426354363544635456354663547635486354963550635516355263553635546355563556635576355863559635606356163562635636356463565635666356763568635696357063571635726357363574635756357663577635786357963580635816358263583635846358563586635876358863589635906359163592635936359463595635966359763598635996360063601636026360363604636056360663607636086360963610636116361263613636146361563616636176361863619636206362163622636236362463625636266362763628636296363063631636326363363634636356363663637636386363963640636416364263643636446364563646636476364863649636506365163652636536365463655636566365763658636596366063661636626366363664636656366663667636686366963670636716367263673636746367563676636776367863679636806368163682636836368463685636866368763688636896369063691636926369363694636956369663697636986369963700637016370263703637046370563706637076370863709637106371163712637136371463715637166371763718637196372063721637226372363724637256372663727637286372963730637316373263733637346373563736637376373863739637406374163742637436374463745637466374763748637496375063751637526375363754637556375663757637586375963760637616376263763637646376563766637676376863769637706377163772637736377463775637766377763778637796378063781637826378363784637856378663787637886378963790637916379263793637946379563796637976379863799638006380163802638036380463805638066380763808638096381063811638126381363814638156381663817638186381963820638216382263823638246382563826638276382863829638306383163832638336383463835638366383763838638396384063841638426384363844638456384663847638486384963850638516385263853638546385563856638576385863859638606386163862638636386463865638666386763868638696387063871638726387363874638756387663877638786387963880638816388263883638846388563886638876388863889638906389163892638936389463895638966389763898638996390063901639026390363904639056390663907639086390963910639116391263913639146391563916639176391863919639206392163922639236392463925639266392763928639296393063931639326393363934639356393663937639386393963940639416394263943639446394563946639476394863949639506395163952639536395463955639566395763958639596396063961639626396363964639656396663967639686396963970639716397263973639746397563976639776397863979639806398163982639836398463985639866398763988639896399063991639926399363994639956399663997639986399964000640016400264003640046400564006640076400864009640106401164012640136401464015640166401764018640196402064021640226402364024640256402664027640286402964030640316403264033640346403564036640376403864039640406404164042640436404464045640466404764048640496405064051640526405364054640556405664057640586405964060640616406264063640646406564066640676406864069640706407164072640736407464075640766407764078640796408064081640826408364084640856408664087640886408964090640916409264093640946409564096640976409864099641006410164102641036410464105641066410764108641096411064111641126411364114641156411664117641186411964120641216412264123641246412564126641276412864129641306413164132641336413464135641366413764138641396414064141641426414364144641456414664147641486414964150641516415264153641546415564156641576415864159641606416164162641636416464165641666416764168641696417064171641726417364174641756417664177641786417964180641816418264183641846418564186641876418864189641906419164192641936419464195641966419764198641996420064201642026420364204642056420664207642086420964210642116421264213642146421564216642176421864219642206422164222642236422464225642266422764228642296423064231642326423364234642356423664237642386423964240642416424264243642446424564246642476424864249642506425164252642536425464255642566425764258642596426064261642626426364264642656426664267642686426964270642716427264273642746427564276642776427864279642806428164282642836428464285642866428764288642896429064291642926429364294642956429664297642986429964300643016430264303643046430564306643076430864309643106431164312643136431464315643166431764318643196432064321643226432364324643256432664327643286432964330643316433264333643346433564336643376433864339643406434164342643436434464345643466434764348643496435064351643526435364354643556435664357643586435964360643616436264363643646436564366643676436864369643706437164372643736437464375643766437764378643796438064381643826438364384643856438664387643886438964390643916439264393643946439564396643976439864399644006440164402644036440464405644066440764408644096441064411644126441364414644156441664417644186441964420644216442264423644246442564426644276442864429644306443164432644336443464435644366443764438644396444064441644426444364444644456444664447644486444964450644516445264453644546445564456644576445864459644606446164462644636446464465644666446764468644696447064471644726447364474644756447664477644786447964480644816448264483644846448564486644876448864489644906449164492644936449464495644966449764498644996450064501645026450364504645056450664507645086450964510645116451264513645146451564516645176451864519645206452164522645236452464525645266452764528645296453064531645326453364534645356453664537645386453964540645416454264543645446454564546645476454864549645506455164552645536455464555645566455764558645596456064561645626456364564645656456664567645686456964570645716457264573645746457564576645776457864579645806458164582645836458464585645866458764588645896459064591645926459364594645956459664597645986459964600646016460264603646046460564606646076460864609646106461164612646136461464615646166461764618646196462064621646226462364624646256462664627646286462964630646316463264633646346463564636646376463864639646406464164642646436464464645646466464764648646496465064651646526465364654646556465664657646586465964660646616466264663646646466564666646676466864669646706467164672646736467464675646766467764678646796468064681646826468364684646856468664687646886468964690646916469264693646946469564696646976469864699647006470164702647036470464705647066470764708647096471064711647126471364714647156471664717647186471964720647216472264723647246472564726647276472864729647306473164732647336473464735647366473764738647396474064741647426474364744647456474664747647486474964750647516475264753647546475564756647576475864759647606476164762647636476464765647666476764768647696477064771647726477364774647756477664777647786477964780647816478264783647846478564786647876478864789647906479164792647936479464795647966479764798647996480064801648026480364804648056480664807648086480964810648116481264813648146481564816648176481864819648206482164822648236482464825648266482764828648296483064831648326483364834648356483664837648386483964840648416484264843648446484564846648476484864849648506485164852648536485464855648566485764858648596486064861648626486364864648656486664867648686486964870648716487264873648746487564876648776487864879648806488164882648836488464885648866488764888648896489064891648926489364894648956489664897648986489964900649016490264903649046490564906649076490864909649106491164912649136491464915649166491764918649196492064921649226492364924649256492664927649286492964930649316493264933649346493564936649376493864939649406494164942649436494464945649466494764948649496495064951649526495364954649556495664957649586495964960649616496264963649646496564966649676496864969649706497164972649736497464975649766497764978649796498064981649826498364984649856498664987649886498964990649916499264993649946499564996649976499864999650006500165002650036500465005650066500765008650096501065011650126501365014650156501665017650186501965020650216502265023650246502565026650276502865029650306503165032650336503465035650366503765038650396504065041650426504365044650456504665047650486504965050650516505265053650546505565056650576505865059650606506165062650636506465065650666506765068650696507065071650726507365074650756507665077650786507965080650816508265083650846508565086650876508865089650906509165092650936509465095650966509765098650996510065101651026510365104651056510665107651086510965110651116511265113651146511565116651176511865119651206512165122651236512465125651266512765128651296513065131651326513365134651356513665137651386513965140651416514265143651446514565146651476514865149651506515165152651536515465155651566515765158651596516065161651626516365164651656516665167651686516965170651716517265173651746517565176651776517865179651806518165182651836518465185651866518765188651896519065191651926519365194651956519665197651986519965200652016520265203652046520565206652076520865209652106521165212652136521465215652166521765218652196522065221652226522365224652256522665227652286522965230652316523265233652346523565236652376523865239652406524165242652436524465245652466524765248652496525065251652526525365254652556525665257652586525965260652616526265263652646526565266652676526865269652706527165272652736527465275652766527765278652796528065281652826528365284652856528665287652886528965290652916529265293652946529565296652976529865299653006530165302653036530465305653066530765308653096531065311653126531365314653156531665317653186531965320653216532265323653246532565326653276532865329653306533165332653336533465335653366533765338653396534065341653426534365344653456534665347653486534965350653516535265353653546535565356653576535865359653606536165362653636536465365653666536765368653696537065371653726537365374653756537665377653786537965380653816538265383653846538565386653876538865389653906539165392653936539465395653966539765398653996540065401654026540365404654056540665407654086540965410654116541265413654146541565416654176541865419654206542165422654236542465425654266542765428654296543065431654326543365434654356543665437654386543965440654416544265443654446544565446654476544865449654506545165452654536545465455654566545765458654596546065461654626546365464654656546665467654686546965470654716547265473654746547565476654776547865479654806548165482654836548465485654866548765488654896549065491654926549365494654956549665497654986549965500655016550265503655046550565506655076550865509655106551165512655136551465515655166551765518655196552065521655226552365524655256552665527655286552965530655316553265533655346553565536655376553865539655406554165542655436554465545655466554765548655496555065551655526555365554655556555665557655586555965560655616556265563655646556565566655676556865569655706557165572655736557465575655766557765578655796558065581655826558365584655856558665587655886558965590655916559265593655946559565596655976559865599656006560165602656036560465605656066560765608656096561065611656126561365614656156561665617656186561965620656216562265623656246562565626656276562865629656306563165632656336563465635656366563765638656396564065641656426564365644656456564665647656486564965650656516565265653656546565565656656576565865659656606566165662656636566465665656666566765668656696567065671656726567365674656756567665677656786567965680656816568265683656846568565686656876568865689656906569165692656936569465695656966569765698656996570065701657026570365704657056570665707657086570965710657116571265713657146571565716657176571865719657206572165722657236572465725657266572765728657296573065731657326573365734657356573665737657386573965740657416574265743657446574565746657476574865749657506575165752657536575465755657566575765758657596576065761657626576365764657656576665767657686576965770657716577265773657746577565776657776577865779657806578165782657836578465785657866578765788657896579065791657926579365794657956579665797657986579965800658016580265803658046580565806658076580865809658106581165812658136581465815658166581765818658196582065821658226582365824658256582665827658286582965830658316583265833658346583565836658376583865839658406584165842658436584465845658466584765848658496585065851658526585365854658556585665857658586585965860658616586265863658646586565866658676586865869658706587165872658736587465875658766587765878658796588065881658826588365884658856588665887658886588965890658916589265893658946589565896658976589865899659006590165902659036590465905659066590765908659096591065911659126591365914659156591665917659186591965920659216592265923659246592565926659276592865929659306593165932659336593465935659366593765938659396594065941659426594365944659456594665947659486594965950659516595265953659546595565956659576595865959659606596165962659636596465965659666596765968659696597065971659726597365974659756597665977659786597965980659816598265983659846598565986659876598865989659906599165992659936599465995659966599765998659996600066001660026600366004660056600666007660086600966010660116601266013660146601566016660176601866019660206602166022660236602466025660266602766028660296603066031660326603366034660356603666037660386603966040660416604266043660446604566046660476604866049660506605166052660536605466055660566605766058660596606066061660626606366064660656606666067660686606966070660716607266073660746607566076660776607866079660806608166082660836608466085660866608766088660896609066091660926609366094660956609666097660986609966100661016610266103661046610566106661076610866109661106611166112661136611466115661166611766118661196612066121661226612366124661256612666127661286612966130661316613266133661346613566136661376613866139661406614166142661436614466145661466614766148661496615066151661526615366154661556615666157661586615966160661616616266163661646616566166661676616866169661706617166172661736617466175661766617766178661796618066181661826618366184661856618666187661886618966190661916619266193661946619566196661976619866199662006620166202662036620466205662066620766208662096621066211662126621366214662156621666217662186621966220662216622266223662246622566226662276622866229662306623166232662336623466235662366623766238662396624066241662426624366244662456624666247662486624966250662516625266253662546625566256662576625866259662606626166262662636626466265662666626766268662696627066271662726627366274662756627666277662786627966280662816628266283662846628566286662876628866289662906629166292662936629466295662966629766298662996630066301663026630366304663056630666307663086630966310663116631266313663146631566316663176631866319663206632166322663236632466325663266632766328663296633066331663326633366334663356633666337663386633966340663416634266343663446634566346663476634866349663506635166352663536635466355663566635766358663596636066361663626636366364663656636666367663686636966370663716637266373663746637566376663776637866379663806638166382663836638466385663866638766388663896639066391663926639366394663956639666397663986639966400664016640266403664046640566406664076640866409664106641166412664136641466415664166641766418664196642066421664226642366424664256642666427664286642966430664316643266433664346643566436664376643866439664406644166442664436644466445664466644766448664496645066451664526645366454664556645666457664586645966460664616646266463664646646566466664676646866469664706647166472664736647466475664766647766478664796648066481664826648366484664856648666487664886648966490664916649266493664946649566496664976649866499665006650166502665036650466505665066650766508665096651066511665126651366514665156651666517665186651966520665216652266523665246652566526665276652866529665306653166532665336653466535665366653766538665396654066541665426654366544665456654666547665486654966550665516655266553665546655566556665576655866559665606656166562665636656466565665666656766568665696657066571665726657366574665756657666577665786657966580665816658266583665846658566586665876658866589665906659166592665936659466595665966659766598665996660066601666026660366604666056660666607666086660966610666116661266613666146661566616666176661866619666206662166622666236662466625666266662766628666296663066631666326663366634666356663666637666386663966640666416664266643666446664566646666476664866649666506665166652666536665466655666566665766658666596666066661666626666366664666656666666667666686666966670666716667266673666746667566676666776667866679666806668166682666836668466685666866668766688666896669066691666926669366694666956669666697666986669966700667016670266703667046670566706667076670866709667106671166712667136671466715667166671766718667196672066721667226672366724667256672666727667286672966730667316673266733667346673566736667376673866739667406674166742667436674466745667466674766748667496675066751667526675366754667556675666757667586675966760667616676266763667646676566766667676676866769667706677166772667736677466775667766677766778667796678066781667826678366784667856678666787667886678966790667916679266793667946679566796667976679866799668006680166802668036680466805668066680766808668096681066811668126681366814668156681666817668186681966820668216682266823668246682566826668276682866829668306683166832668336683466835668366683766838668396684066841668426684366844668456684666847668486684966850668516685266853668546685566856668576685866859668606686166862668636686466865668666686766868668696687066871668726687366874668756687666877668786687966880668816688266883668846688566886668876688866889668906689166892668936689466895668966689766898668996690066901669026690366904669056690666907669086690966910669116691266913669146691566916669176691866919669206692166922669236692466925669266692766928669296693066931669326693366934669356693666937669386693966940669416694266943669446694566946669476694866949669506695166952669536695466955669566695766958669596696066961669626696366964669656696666967669686696966970669716697266973669746697566976669776697866979669806698166982669836698466985669866698766988669896699066991669926699366994669956699666997669986699967000670016700267003670046700567006670076700867009670106701167012670136701467015670166701767018670196702067021670226702367024670256702667027670286702967030670316703267033670346703567036670376703867039670406704167042670436704467045670466704767048670496705067051670526705367054670556705667057670586705967060670616706267063670646706567066670676706867069670706707167072670736707467075670766707767078670796708067081670826708367084670856708667087670886708967090670916709267093670946709567096670976709867099671006710167102671036710467105671066710767108671096711067111671126711367114671156711667117671186711967120671216712267123671246712567126671276712867129671306713167132671336713467135671366713767138671396714067141671426714367144671456714667147671486714967150671516715267153671546715567156671576715867159671606716167162671636716467165671666716767168671696717067171671726717367174671756717667177671786717967180671816718267183671846718567186671876718867189671906719167192671936719467195671966719767198671996720067201672026720367204672056720667207672086720967210672116721267213672146721567216672176721867219672206722167222672236722467225672266722767228672296723067231672326723367234672356723667237672386723967240672416724267243672446724567246672476724867249672506725167252672536725467255672566725767258672596726067261672626726367264672656726667267672686726967270672716727267273672746727567276672776727867279672806728167282672836728467285672866728767288672896729067291672926729367294672956729667297672986729967300673016730267303673046730567306673076730867309673106731167312673136731467315673166731767318673196732067321673226732367324673256732667327673286732967330673316733267333673346733567336673376733867339673406734167342673436734467345673466734767348673496735067351673526735367354673556735667357673586735967360673616736267363673646736567366673676736867369673706737167372673736737467375673766737767378673796738067381673826738367384673856738667387673886738967390673916739267393673946739567396673976739867399674006740167402674036740467405674066740767408674096741067411674126741367414674156741667417674186741967420674216742267423674246742567426674276742867429674306743167432674336743467435674366743767438674396744067441674426744367444674456744667447674486744967450674516745267453674546745567456674576745867459674606746167462674636746467465674666746767468674696747067471674726747367474674756747667477674786747967480674816748267483674846748567486674876748867489674906749167492674936749467495674966749767498674996750067501675026750367504675056750667507675086750967510675116751267513675146751567516675176751867519675206752167522675236752467525675266752767528675296753067531675326753367534675356753667537675386753967540675416754267543675446754567546675476754867549675506755167552675536755467555675566755767558675596756067561675626756367564675656756667567675686756967570675716757267573675746757567576675776757867579675806758167582675836758467585675866758767588675896759067591675926759367594675956759667597675986759967600676016760267603676046760567606676076760867609676106761167612676136761467615676166761767618676196762067621676226762367624676256762667627676286762967630676316763267633676346763567636676376763867639676406764167642676436764467645676466764767648676496765067651676526765367654676556765667657676586765967660676616766267663676646766567666676676766867669676706767167672676736767467675676766767767678676796768067681676826768367684676856768667687676886768967690676916769267693676946769567696676976769867699677006770167702677036770467705677066770767708677096771067711677126771367714677156771667717677186771967720677216772267723677246772567726677276772867729677306773167732677336773467735677366773767738677396774067741677426774367744677456774667747677486774967750677516775267753677546775567756677576775867759677606776167762677636776467765677666776767768677696777067771677726777367774677756777667777677786777967780677816778267783677846778567786677876778867789677906779167792677936779467795677966779767798677996780067801678026780367804678056780667807678086780967810678116781267813678146781567816678176781867819678206782167822678236782467825678266782767828678296783067831678326783367834678356783667837678386783967840678416784267843678446784567846678476784867849678506785167852678536785467855678566785767858678596786067861678626786367864678656786667867678686786967870678716787267873678746787567876678776787867879678806788167882678836788467885678866788767888678896789067891678926789367894678956789667897678986789967900679016790267903679046790567906679076790867909679106791167912679136791467915679166791767918679196792067921679226792367924679256792667927679286792967930679316793267933679346793567936679376793867939679406794167942679436794467945679466794767948679496795067951679526795367954679556795667957679586795967960679616796267963679646796567966679676796867969679706797167972679736797467975679766797767978679796798067981679826798367984679856798667987679886798967990679916799267993679946799567996679976799867999680006800168002680036800468005680066800768008680096801068011680126801368014680156801668017680186801968020680216802268023680246802568026680276802868029680306803168032680336803468035680366803768038680396804068041680426804368044680456804668047680486804968050680516805268053680546805568056680576805868059680606806168062680636806468065680666806768068680696807068071680726807368074680756807668077680786807968080680816808268083680846808568086680876808868089680906809168092680936809468095680966809768098680996810068101681026810368104681056810668107681086810968110681116811268113681146811568116681176811868119681206812168122681236812468125681266812768128681296813068131681326813368134681356813668137681386813968140681416814268143681446814568146681476814868149681506815168152681536815468155681566815768158681596816068161681626816368164681656816668167681686816968170681716817268173681746817568176681776817868179681806818168182681836818468185681866818768188681896819068191681926819368194681956819668197681986819968200682016820268203682046820568206682076820868209682106821168212682136821468215682166821768218682196822068221682226822368224682256822668227682286822968230682316823268233682346823568236682376823868239682406824168242682436824468245682466824768248682496825068251682526825368254682556825668257682586825968260682616826268263682646826568266682676826868269682706827168272682736827468275682766827768278682796828068281682826828368284682856828668287682886828968290682916829268293682946829568296682976829868299683006830168302683036830468305683066830768308683096831068311683126831368314683156831668317683186831968320683216832268323683246832568326683276832868329683306833168332683336833468335683366833768338683396834068341683426834368344683456834668347683486834968350683516835268353683546835568356683576835868359683606836168362683636836468365683666836768368683696837068371683726837368374683756837668377683786837968380683816838268383683846838568386683876838868389683906839168392683936839468395683966839768398683996840068401684026840368404684056840668407684086840968410684116841268413684146841568416684176841868419684206842168422684236842468425684266842768428684296843068431684326843368434684356843668437684386843968440684416844268443684446844568446684476844868449684506845168452684536845468455684566845768458684596846068461684626846368464684656846668467684686846968470684716847268473684746847568476684776847868479684806848168482684836848468485684866848768488684896849068491684926849368494684956849668497684986849968500685016850268503685046850568506685076850868509685106851168512685136851468515685166851768518685196852068521685226852368524685256852668527685286852968530685316853268533685346853568536685376853868539685406854168542685436854468545685466854768548685496855068551685526855368554685556855668557685586855968560685616856268563685646856568566685676856868569685706857168572685736857468575685766857768578685796858068581685826858368584685856858668587685886858968590685916859268593685946859568596685976859868599686006860168602686036860468605686066860768608686096861068611686126861368614686156861668617686186861968620686216862268623686246862568626686276862868629686306863168632686336863468635686366863768638686396864068641686426864368644686456864668647686486864968650686516865268653686546865568656686576865868659686606866168662686636866468665686666866768668686696867068671686726867368674686756867668677686786867968680686816868268683686846868568686686876868868689686906869168692686936869468695686966869768698686996870068701687026870368704687056870668707687086870968710687116871268713687146871568716687176871868719687206872168722687236872468725687266872768728687296873068731687326873368734687356873668737687386873968740687416874268743687446874568746687476874868749687506875168752687536875468755687566875768758687596876068761687626876368764687656876668767687686876968770687716877268773687746877568776687776877868779687806878168782687836878468785687866878768788687896879068791687926879368794687956879668797687986879968800688016880268803688046880568806688076880868809688106881168812688136881468815688166881768818688196882068821688226882368824688256882668827688286882968830688316883268833688346883568836688376883868839688406884168842688436884468845688466884768848688496885068851688526885368854688556885668857688586885968860688616886268863688646886568866688676886868869688706887168872688736887468875688766887768878688796888068881688826888368884688856888668887688886888968890688916889268893688946889568896688976889868899689006890168902689036890468905689066890768908689096891068911689126891368914689156891668917689186891968920689216892268923689246892568926689276892868929689306893168932689336893468935689366893768938689396894068941689426894368944689456894668947689486894968950689516895268953689546895568956689576895868959689606896168962689636896468965689666896768968689696897068971689726897368974689756897668977689786897968980689816898268983689846898568986689876898868989689906899168992689936899468995689966899768998689996900069001690026900369004690056900669007690086900969010690116901269013690146901569016690176901869019690206902169022690236902469025690266902769028690296903069031690326903369034690356903669037690386903969040690416904269043690446904569046690476904869049690506905169052690536905469055690566905769058690596906069061690626906369064690656906669067690686906969070690716907269073690746907569076690776907869079690806908169082690836908469085690866908769088690896909069091690926909369094690956909669097690986909969100691016910269103691046910569106691076910869109691106911169112691136911469115691166911769118691196912069121691226912369124691256912669127691286912969130691316913269133691346913569136691376913869139691406914169142691436914469145691466914769148691496915069151691526915369154691556915669157691586915969160691616916269163691646916569166691676916869169691706917169172691736917469175691766917769178691796918069181691826918369184691856918669187691886918969190691916919269193691946919569196691976919869199692006920169202692036920469205692066920769208692096921069211692126921369214692156921669217692186921969220692216922269223692246922569226692276922869229692306923169232692336923469235692366923769238692396924069241692426924369244692456924669247692486924969250692516925269253692546925569256692576925869259692606926169262692636926469265692666926769268692696927069271692726927369274692756927669277692786927969280692816928269283692846928569286692876928869289692906929169292692936929469295692966929769298692996930069301693026930369304693056930669307693086930969310693116931269313693146931569316693176931869319693206932169322693236932469325693266932769328693296933069331693326933369334693356933669337693386933969340693416934269343693446934569346693476934869349693506935169352693536935469355693566935769358693596936069361693626936369364693656936669367693686936969370693716937269373693746937569376693776937869379693806938169382693836938469385693866938769388693896939069391693926939369394693956939669397693986939969400694016940269403694046940569406694076940869409694106941169412694136941469415694166941769418694196942069421694226942369424694256942669427694286942969430694316943269433694346943569436694376943869439694406944169442694436944469445694466944769448694496945069451694526945369454694556945669457694586945969460694616946269463694646946569466694676946869469694706947169472694736947469475694766947769478694796948069481694826948369484694856948669487694886948969490694916949269493694946949569496694976949869499695006950169502695036950469505695066950769508695096951069511695126951369514695156951669517695186951969520695216952269523695246952569526695276952869529695306953169532695336953469535695366953769538695396954069541695426954369544695456954669547695486954969550695516955269553695546955569556695576955869559695606956169562695636956469565695666956769568695696957069571695726957369574695756957669577695786957969580695816958269583695846958569586695876958869589695906959169592695936959469595695966959769598695996960069601696026960369604696056960669607696086960969610696116961269613696146961569616696176961869619696206962169622696236962469625696266962769628696296963069631696326963369634696356963669637696386963969640696416964269643696446964569646696476964869649696506965169652696536965469655696566965769658696596966069661696626966369664696656966669667696686966969670696716967269673696746967569676696776967869679696806968169682696836968469685696866968769688696896969069691696926969369694696956969669697696986969969700697016970269703697046970569706697076970869709697106971169712697136971469715697166971769718697196972069721697226972369724697256972669727697286972969730697316973269733697346973569736697376973869739697406974169742697436974469745697466974769748697496975069751697526975369754697556975669757697586975969760697616976269763697646976569766697676976869769697706977169772697736977469775697766977769778697796978069781697826978369784697856978669787697886978969790697916979269793697946979569796697976979869799698006980169802698036980469805698066980769808698096981069811698126981369814698156981669817698186981969820698216982269823698246982569826698276982869829698306983169832698336983469835698366983769838698396984069841698426984369844698456984669847698486984969850698516985269853698546985569856698576985869859698606986169862698636986469865698666986769868698696987069871698726987369874698756987669877698786987969880698816988269883698846988569886698876988869889698906989169892698936989469895698966989769898698996990069901699026990369904699056990669907699086990969910699116991269913699146991569916699176991869919699206992169922699236992469925699266992769928699296993069931699326993369934699356993669937699386993969940699416994269943699446994569946699476994869949699506995169952699536995469955699566995769958699596996069961699626996369964699656996669967699686996969970699716997269973699746997569976699776997869979699806998169982699836998469985699866998769988699896999069991699926999369994699956999669997699986999970000700017000270003700047000570006700077000870009700107001170012700137001470015700167001770018700197002070021700227002370024700257002670027700287002970030700317003270033700347003570036700377003870039700407004170042700437004470045700467004770048700497005070051700527005370054700557005670057700587005970060700617006270063700647006570066700677006870069700707007170072700737007470075700767007770078700797008070081700827008370084700857008670087700887008970090700917009270093700947009570096700977009870099701007010170102701037010470105701067010770108701097011070111701127011370114701157011670117701187011970120701217012270123701247012570126701277012870129701307013170132701337013470135701367013770138701397014070141701427014370144701457014670147701487014970150701517015270153701547015570156701577015870159701607016170162701637016470165701667016770168701697017070171701727017370174701757017670177701787017970180701817018270183701847018570186701877018870189701907019170192701937019470195701967019770198701997020070201702027020370204702057020670207702087020970210702117021270213702147021570216702177021870219702207022170222702237022470225702267022770228702297023070231702327023370234702357023670237702387023970240702417024270243702447024570246702477024870249702507025170252702537025470255702567025770258702597026070261702627026370264702657026670267702687026970270702717027270273702747027570276702777027870279702807028170282702837028470285702867028770288702897029070291702927029370294702957029670297702987029970300703017030270303703047030570306703077030870309703107031170312703137031470315703167031770318703197032070321703227032370324703257032670327703287032970330703317033270333703347033570336703377033870339703407034170342703437034470345703467034770348703497035070351703527035370354703557035670357703587035970360703617036270363703647036570366703677036870369703707037170372703737037470375703767037770378703797038070381703827038370384703857038670387703887038970390703917039270393703947039570396703977039870399704007040170402704037040470405704067040770408704097041070411704127041370414704157041670417704187041970420704217042270423704247042570426704277042870429704307043170432704337043470435704367043770438704397044070441704427044370444704457044670447704487044970450704517045270453704547045570456704577045870459704607046170462704637046470465704667046770468704697047070471704727047370474704757047670477704787047970480704817048270483704847048570486704877048870489704907049170492704937049470495704967049770498704997050070501705027050370504705057050670507705087050970510705117051270513705147051570516705177051870519705207052170522705237052470525705267052770528705297053070531705327053370534705357053670537705387053970540705417054270543705447054570546705477054870549705507055170552705537055470555705567055770558705597056070561705627056370564705657056670567705687056970570705717057270573705747057570576705777057870579705807058170582705837058470585705867058770588705897059070591705927059370594705957059670597705987059970600706017060270603706047060570606706077060870609706107061170612706137061470615706167061770618706197062070621706227062370624706257062670627706287062970630706317063270633706347063570636706377063870639706407064170642706437064470645706467064770648706497065070651706527065370654706557065670657706587065970660706617066270663706647066570666706677066870669706707067170672706737067470675706767067770678706797068070681706827068370684706857068670687706887068970690706917069270693706947069570696706977069870699707007070170702707037070470705707067070770708707097071070711707127071370714707157071670717707187071970720707217072270723707247072570726707277072870729707307073170732707337073470735707367073770738707397074070741707427074370744707457074670747707487074970750707517075270753707547075570756707577075870759707607076170762707637076470765707667076770768707697077070771707727077370774707757077670777707787077970780707817078270783707847078570786707877078870789707907079170792707937079470795707967079770798707997080070801708027080370804708057080670807708087080970810708117081270813708147081570816708177081870819708207082170822708237082470825708267082770828708297083070831708327083370834708357083670837708387083970840708417084270843708447084570846708477084870849708507085170852708537085470855708567085770858708597086070861708627086370864708657086670867708687086970870708717087270873708747087570876708777087870879708807088170882708837088470885708867088770888708897089070891708927089370894708957089670897708987089970900709017090270903709047090570906709077090870909709107091170912709137091470915709167091770918709197092070921709227092370924709257092670927709287092970930709317093270933709347093570936709377093870939709407094170942709437094470945709467094770948709497095070951709527095370954709557095670957709587095970960709617096270963709647096570966709677096870969709707097170972709737097470975709767097770978709797098070981709827098370984709857098670987709887098970990709917099270993709947099570996709977099870999710007100171002710037100471005710067100771008710097101071011710127101371014710157101671017710187101971020710217102271023710247102571026710277102871029710307103171032710337103471035710367103771038710397104071041710427104371044710457104671047710487104971050710517105271053710547105571056710577105871059710607106171062710637106471065710667106771068710697107071071710727107371074710757107671077710787107971080710817108271083710847108571086710877108871089710907109171092710937109471095710967109771098710997110071101711027110371104711057110671107711087110971110711117111271113711147111571116711177111871119711207112171122711237112471125711267112771128711297113071131711327113371134711357113671137711387113971140711417114271143711447114571146711477114871149711507115171152711537115471155711567115771158711597116071161711627116371164711657116671167711687116971170711717117271173711747117571176711777117871179711807118171182711837118471185711867118771188711897119071191711927119371194711957119671197711987119971200712017120271203712047120571206712077120871209712107121171212712137121471215712167121771218712197122071221712227122371224712257122671227712287122971230712317123271233712347123571236712377123871239712407124171242712437124471245712467124771248712497125071251712527125371254712557125671257712587125971260712617126271263712647126571266712677126871269712707127171272712737127471275712767127771278712797128071281712827128371284712857128671287712887128971290712917129271293712947129571296712977129871299713007130171302713037130471305713067130771308713097131071311713127131371314713157131671317713187131971320713217132271323713247132571326713277132871329713307133171332713337133471335713367133771338713397134071341713427134371344713457134671347713487134971350713517135271353713547135571356713577135871359713607136171362713637136471365713667136771368713697137071371713727137371374713757137671377713787137971380713817138271383713847138571386713877138871389713907139171392713937139471395713967139771398713997140071401714027140371404714057140671407714087140971410714117141271413714147141571416714177141871419714207142171422714237142471425714267142771428714297143071431714327143371434714357143671437714387143971440714417144271443714447144571446714477144871449714507145171452714537145471455714567145771458714597146071461714627146371464714657146671467714687146971470714717147271473714747147571476714777147871479714807148171482714837148471485714867148771488714897149071491714927149371494714957149671497714987149971500715017150271503715047150571506715077150871509715107151171512715137151471515715167151771518715197152071521715227152371524715257152671527715287152971530715317153271533715347153571536715377153871539715407154171542715437154471545715467154771548715497155071551715527155371554715557155671557715587155971560715617156271563715647156571566715677156871569715707157171572715737157471575715767157771578715797158071581715827158371584715857158671587715887158971590715917159271593715947159571596715977159871599716007160171602716037160471605716067160771608716097161071611716127161371614716157161671617716187161971620716217162271623716247162571626716277162871629716307163171632716337163471635716367163771638716397164071641716427164371644716457164671647716487164971650716517165271653716547165571656716577165871659716607166171662716637166471665716667166771668716697167071671716727167371674716757167671677716787167971680716817168271683716847168571686716877168871689716907169171692716937169471695716967169771698716997170071701717027170371704717057170671707717087170971710717117171271713717147171571716717177171871719717207172171722717237172471725717267172771728717297173071731717327173371734717357173671737717387173971740717417174271743717447174571746717477174871749717507175171752717537175471755717567175771758717597176071761717627176371764717657176671767717687176971770717717177271773717747177571776717777177871779717807178171782717837178471785717867178771788717897179071791717927179371794717957179671797717987179971800718017180271803718047180571806718077180871809718107181171812718137181471815718167181771818718197182071821718227182371824718257182671827718287182971830718317183271833718347183571836718377183871839718407184171842718437184471845718467184771848718497185071851718527185371854718557185671857718587185971860718617186271863718647186571866718677186871869718707187171872718737187471875718767187771878718797188071881718827188371884718857188671887718887188971890718917189271893718947189571896718977189871899719007190171902719037190471905719067190771908719097191071911719127191371914719157191671917719187191971920719217192271923719247192571926719277192871929719307193171932719337193471935719367193771938719397194071941719427194371944719457194671947719487194971950719517195271953719547195571956719577195871959719607196171962719637196471965719667196771968719697197071971719727197371974719757197671977719787197971980719817198271983719847198571986719877198871989719907199171992719937199471995719967199771998719997200072001720027200372004720057200672007720087200972010720117201272013720147201572016720177201872019720207202172022720237202472025720267202772028720297203072031720327203372034720357203672037720387203972040720417204272043720447204572046720477204872049720507205172052720537205472055720567205772058720597206072061720627206372064720657206672067720687206972070720717207272073720747207572076720777207872079720807208172082720837208472085720867208772088720897209072091720927209372094720957209672097720987209972100721017210272103721047210572106721077210872109721107211172112721137211472115721167211772118721197212072121721227212372124721257212672127721287212972130721317213272133721347213572136721377213872139721407214172142721437214472145721467214772148721497215072151721527215372154721557215672157721587215972160721617216272163721647216572166721677216872169721707217172172721737217472175721767217772178721797218072181721827218372184721857218672187721887218972190721917219272193721947219572196721977219872199722007220172202722037220472205722067220772208722097221072211722127221372214722157221672217722187221972220722217222272223722247222572226722277222872229722307223172232722337223472235722367223772238722397224072241722427224372244722457224672247722487224972250722517225272253722547225572256722577225872259722607226172262722637226472265722667226772268722697227072271722727227372274722757227672277722787227972280722817228272283722847228572286722877228872289722907229172292722937229472295722967229772298722997230072301723027230372304723057230672307723087230972310723117231272313723147231572316723177231872319723207232172322723237232472325723267232772328723297233072331723327233372334723357233672337723387233972340723417234272343723447234572346723477234872349723507235172352723537235472355723567235772358723597236072361723627236372364723657236672367723687236972370723717237272373723747237572376723777237872379723807238172382723837238472385723867238772388723897239072391723927239372394723957239672397723987239972400724017240272403724047240572406724077240872409724107241172412724137241472415724167241772418724197242072421724227242372424724257242672427724287242972430724317243272433724347243572436724377243872439724407244172442724437244472445724467244772448724497245072451724527245372454724557245672457724587245972460724617246272463724647246572466724677246872469724707247172472724737247472475724767247772478724797248072481724827248372484724857248672487724887248972490724917249272493724947249572496724977249872499725007250172502725037250472505725067250772508725097251072511725127251372514725157251672517725187251972520725217252272523725247252572526725277252872529725307253172532725337253472535725367253772538725397254072541725427254372544725457254672547725487254972550725517255272553725547255572556725577255872559725607256172562725637256472565725667256772568725697257072571725727257372574725757257672577725787257972580725817258272583725847258572586725877258872589725907259172592725937259472595725967259772598725997260072601726027260372604726057260672607726087260972610726117261272613726147261572616726177261872619726207262172622726237262472625726267262772628726297263072631726327263372634726357263672637726387263972640726417264272643726447264572646726477264872649726507265172652726537265472655726567265772658726597266072661726627266372664726657266672667726687266972670726717267272673726747267572676726777267872679726807268172682726837268472685726867268772688726897269072691726927269372694726957269672697726987269972700727017270272703727047270572706727077270872709727107271172712727137271472715727167271772718727197272072721727227272372724727257272672727727287272972730727317273272733727347273572736727377273872739727407274172742727437274472745727467274772748727497275072751727527275372754727557275672757727587275972760727617276272763727647276572766727677276872769727707277172772727737277472775727767277772778727797278072781727827278372784727857278672787727887278972790727917279272793727947279572796727977279872799728007280172802728037280472805728067280772808728097281072811728127281372814728157281672817728187281972820728217282272823728247282572826728277282872829728307283172832728337283472835728367283772838728397284072841728427284372844728457284672847728487284972850728517285272853728547285572856728577285872859728607286172862728637286472865728667286772868728697287072871728727287372874728757287672877728787287972880728817288272883728847288572886728877288872889728907289172892728937289472895728967289772898728997290072901729027290372904729057290672907729087290972910729117291272913729147291572916729177291872919729207292172922729237292472925729267292772928729297293072931729327293372934729357293672937729387293972940729417294272943729447294572946729477294872949729507295172952729537295472955729567295772958729597296072961729627296372964729657296672967729687296972970729717297272973729747297572976729777297872979729807298172982729837298472985729867298772988729897299072991729927299372994729957299672997729987299973000730017300273003730047300573006730077300873009730107301173012730137301473015730167301773018730197302073021730227302373024730257302673027730287302973030730317303273033730347303573036730377303873039730407304173042730437304473045730467304773048730497305073051730527305373054730557305673057730587305973060730617306273063730647306573066730677306873069730707307173072730737307473075730767307773078730797308073081730827308373084730857308673087730887308973090730917309273093730947309573096730977309873099731007310173102731037310473105731067310773108731097311073111731127311373114731157311673117731187311973120731217312273123731247312573126731277312873129731307313173132731337313473135731367313773138731397314073141731427314373144731457314673147731487314973150731517315273153731547315573156731577315873159731607316173162731637316473165731667316773168731697317073171731727317373174731757317673177731787317973180731817318273183731847318573186731877318873189731907319173192731937319473195731967319773198731997320073201732027320373204732057320673207732087320973210732117321273213732147321573216732177321873219732207322173222732237322473225732267322773228732297323073231732327323373234732357323673237732387323973240732417324273243732447324573246732477324873249732507325173252732537325473255732567325773258732597326073261732627326373264732657326673267732687326973270732717327273273732747327573276732777327873279732807328173282732837328473285732867328773288732897329073291732927329373294732957329673297732987329973300733017330273303733047330573306733077330873309733107331173312733137331473315733167331773318733197332073321733227332373324733257332673327733287332973330733317333273333733347333573336733377333873339733407334173342733437334473345733467334773348733497335073351733527335373354733557335673357733587335973360733617336273363733647336573366733677336873369733707337173372733737337473375733767337773378733797338073381733827338373384733857338673387733887338973390733917339273393733947339573396733977339873399734007340173402734037340473405734067340773408734097341073411734127341373414734157341673417734187341973420734217342273423734247342573426734277342873429734307343173432734337343473435734367343773438734397344073441734427344373444734457344673447734487344973450734517345273453734547345573456734577345873459734607346173462734637346473465734667346773468734697347073471734727347373474734757347673477734787347973480734817348273483734847348573486734877348873489734907349173492734937349473495734967349773498734997350073501735027350373504735057350673507735087350973510735117351273513735147351573516735177351873519735207352173522735237352473525735267352773528735297353073531735327353373534735357353673537735387353973540735417354273543735447354573546735477354873549735507355173552735537355473555735567355773558735597356073561735627356373564735657356673567735687356973570735717357273573735747357573576735777357873579735807358173582735837358473585735867358773588735897359073591735927359373594735957359673597735987359973600736017360273603736047360573606736077360873609736107361173612736137361473615736167361773618736197362073621736227362373624736257362673627736287362973630736317363273633736347363573636736377363873639736407364173642736437364473645736467364773648736497365073651736527365373654736557365673657736587365973660736617366273663736647366573666736677366873669736707367173672736737367473675736767367773678736797368073681736827368373684736857368673687736887368973690736917369273693736947369573696736977369873699737007370173702737037370473705737067370773708737097371073711737127371373714737157371673717737187371973720737217372273723737247372573726737277372873729737307373173732737337373473735737367373773738737397374073741737427374373744737457374673747737487374973750737517375273753737547375573756737577375873759737607376173762737637376473765737667376773768737697377073771737727377373774737757377673777737787377973780737817378273783737847378573786737877378873789737907379173792737937379473795737967379773798737997380073801738027380373804738057380673807738087380973810738117381273813738147381573816738177381873819738207382173822738237382473825738267382773828738297383073831738327383373834738357383673837738387383973840738417384273843738447384573846738477384873849738507385173852738537385473855738567385773858738597386073861738627386373864738657386673867738687386973870738717387273873738747387573876738777387873879738807388173882738837388473885738867388773888738897389073891738927389373894738957389673897738987389973900739017390273903739047390573906739077390873909739107391173912739137391473915739167391773918739197392073921739227392373924739257392673927739287392973930739317393273933739347393573936739377393873939739407394173942739437394473945739467394773948739497395073951739527395373954739557395673957739587395973960739617396273963739647396573966739677396873969739707397173972739737397473975739767397773978739797398073981739827398373984739857398673987739887398973990739917399273993739947399573996739977399873999740007400174002740037400474005740067400774008740097401074011740127401374014740157401674017740187401974020740217402274023740247402574026740277402874029740307403174032740337403474035740367403774038740397404074041740427404374044740457404674047740487404974050740517405274053740547405574056740577405874059740607406174062740637406474065740667406774068740697407074071740727407374074740757407674077740787407974080740817408274083740847408574086740877408874089740907409174092740937409474095740967409774098740997410074101741027410374104741057410674107741087410974110741117411274113741147411574116741177411874119741207412174122741237412474125741267412774128741297413074131741327413374134741357413674137741387413974140741417414274143741447414574146741477414874149741507415174152741537415474155741567415774158741597416074161741627416374164741657416674167741687416974170741717417274173741747417574176741777417874179741807418174182741837418474185741867418774188741897419074191741927419374194741957419674197741987419974200742017420274203742047420574206742077420874209742107421174212742137421474215742167421774218742197422074221742227422374224742257422674227742287422974230742317423274233742347423574236742377423874239742407424174242742437424474245742467424774248742497425074251742527425374254742557425674257742587425974260742617426274263742647426574266742677426874269742707427174272742737427474275742767427774278742797428074281742827428374284742857428674287742887428974290742917429274293742947429574296742977429874299743007430174302743037430474305743067430774308743097431074311743127431374314743157431674317743187431974320743217432274323743247432574326743277432874329743307433174332743337433474335743367433774338743397434074341743427434374344743457434674347743487434974350743517435274353743547435574356743577435874359743607436174362743637436474365743667436774368743697437074371743727437374374743757437674377743787437974380743817438274383743847438574386743877438874389743907439174392743937439474395743967439774398743997440074401744027440374404744057440674407744087440974410744117441274413744147441574416744177441874419744207442174422744237442474425744267442774428744297443074431744327443374434744357443674437744387443974440744417444274443744447444574446744477444874449744507445174452744537445474455744567445774458744597446074461744627446374464744657446674467744687446974470744717447274473744747447574476744777447874479744807448174482744837448474485744867448774488744897449074491744927449374494744957449674497744987449974500745017450274503745047450574506745077450874509745107451174512745137451474515745167451774518745197452074521745227452374524745257452674527745287452974530745317453274533745347453574536745377453874539745407454174542745437454474545745467454774548745497455074551745527455374554745557455674557745587455974560745617456274563745647456574566745677456874569745707457174572745737457474575745767457774578745797458074581745827458374584745857458674587745887458974590745917459274593745947459574596745977459874599746007460174602746037460474605746067460774608746097461074611746127461374614746157461674617746187461974620746217462274623746247462574626746277462874629746307463174632746337463474635746367463774638746397464074641746427464374644746457464674647746487464974650746517465274653746547465574656746577465874659746607466174662746637466474665746667466774668746697467074671746727467374674746757467674677746787467974680746817468274683746847468574686746877468874689746907469174692746937469474695746967469774698746997470074701747027470374704747057470674707747087470974710747117471274713747147471574716747177471874719747207472174722747237472474725747267472774728747297473074731747327473374734747357473674737747387473974740747417474274743747447474574746747477474874749747507475174752747537475474755747567475774758747597476074761747627476374764747657476674767747687476974770747717477274773747747477574776747777477874779747807478174782747837478474785747867478774788747897479074791747927479374794747957479674797747987479974800748017480274803748047480574806748077480874809748107481174812748137481474815748167481774818748197482074821748227482374824748257482674827748287482974830748317483274833748347483574836748377483874839748407484174842748437484474845748467484774848748497485074851748527485374854748557485674857748587485974860748617486274863748647486574866748677486874869748707487174872748737487474875748767487774878748797488074881748827488374884748857488674887748887488974890748917489274893748947489574896748977489874899749007490174902749037490474905749067490774908749097491074911749127491374914749157491674917749187491974920749217492274923749247492574926749277492874929749307493174932749337493474935749367493774938749397494074941749427494374944749457494674947749487494974950749517495274953749547495574956749577495874959749607496174962749637496474965749667496774968749697497074971749727497374974749757497674977749787497974980749817498274983749847498574986749877498874989749907499174992749937499474995749967499774998749997500075001750027500375004750057500675007750087500975010750117501275013750147501575016750177501875019750207502175022750237502475025750267502775028750297503075031750327503375034750357503675037750387503975040750417504275043750447504575046750477504875049750507505175052750537505475055750567505775058750597506075061750627506375064750657506675067750687506975070750717507275073750747507575076750777507875079750807508175082750837508475085750867508775088750897509075091750927509375094750957509675097750987509975100751017510275103751047510575106751077510875109751107511175112751137511475115751167511775118751197512075121751227512375124751257512675127751287512975130751317513275133751347513575136751377513875139751407514175142751437514475145751467514775148751497515075151751527515375154751557515675157751587515975160751617516275163751647516575166751677516875169751707517175172751737517475175751767517775178751797518075181751827518375184751857518675187751887518975190751917519275193751947519575196751977519875199752007520175202752037520475205752067520775208752097521075211752127521375214752157521675217752187521975220752217522275223752247522575226752277522875229752307523175232752337523475235752367523775238752397524075241752427524375244752457524675247752487524975250752517525275253752547525575256752577525875259752607526175262752637526475265752667526775268752697527075271752727527375274752757527675277752787527975280752817528275283752847528575286752877528875289752907529175292752937529475295752967529775298752997530075301753027530375304753057530675307753087530975310753117531275313753147531575316753177531875319753207532175322753237532475325753267532775328753297533075331753327533375334753357533675337753387533975340753417534275343753447534575346753477534875349753507535175352753537535475355753567535775358753597536075361753627536375364753657536675367753687536975370753717537275373753747537575376753777537875379753807538175382753837538475385753867538775388753897539075391753927539375394753957539675397753987539975400754017540275403754047540575406754077540875409754107541175412754137541475415754167541775418754197542075421754227542375424754257542675427754287542975430754317543275433754347543575436754377543875439754407544175442754437544475445754467544775448754497545075451754527545375454754557545675457754587545975460754617546275463754647546575466754677546875469754707547175472754737547475475754767547775478754797548075481754827548375484754857548675487754887548975490754917549275493754947549575496754977549875499755007550175502755037550475505755067550775508755097551075511755127551375514755157551675517755187551975520755217552275523755247552575526755277552875529755307553175532755337553475535755367553775538755397554075541755427554375544755457554675547755487554975550755517555275553755547555575556755577555875559755607556175562755637556475565755667556775568755697557075571755727557375574755757557675577755787557975580755817558275583755847558575586755877558875589755907559175592755937559475595755967559775598755997560075601756027560375604756057560675607756087560975610756117561275613756147561575616756177561875619756207562175622756237562475625756267562775628756297563075631756327563375634756357563675637756387563975640756417564275643756447564575646756477564875649756507565175652756537565475655756567565775658756597566075661756627566375664756657566675667756687566975670756717567275673756747567575676756777567875679756807568175682756837568475685756867568775688756897569075691756927569375694756957569675697756987569975700757017570275703757047570575706757077570875709757107571175712757137571475715757167571775718757197572075721757227572375724757257572675727757287572975730757317573275733757347573575736757377573875739757407574175742757437574475745757467574775748757497575075751757527575375754757557575675757757587575975760757617576275763757647576575766757677576875769757707577175772757737577475775757767577775778757797578075781757827578375784757857578675787757887578975790757917579275793757947579575796757977579875799758007580175802758037580475805758067580775808758097581075811758127581375814758157581675817758187581975820758217582275823758247582575826758277582875829758307583175832758337583475835758367583775838758397584075841758427584375844758457584675847758487584975850758517585275853758547585575856758577585875859758607586175862758637586475865758667586775868758697587075871758727587375874758757587675877758787587975880758817588275883758847588575886758877588875889758907589175892758937589475895758967589775898758997590075901759027590375904759057590675907759087590975910759117591275913759147591575916759177591875919759207592175922759237592475925759267592775928759297593075931759327593375934759357593675937759387593975940759417594275943759447594575946759477594875949759507595175952759537595475955759567595775958759597596075961759627596375964759657596675967759687596975970759717597275973759747597575976759777597875979759807598175982759837598475985759867598775988759897599075991759927599375994759957599675997759987599976000760017600276003760047600576006760077600876009760107601176012760137601476015760167601776018760197602076021760227602376024760257602676027760287602976030760317603276033760347603576036760377603876039760407604176042760437604476045760467604776048760497605076051760527605376054760557605676057760587605976060760617606276063760647606576066760677606876069760707607176072760737607476075760767607776078760797608076081760827608376084760857608676087760887608976090760917609276093760947609576096760977609876099761007610176102761037610476105761067610776108761097611076111761127611376114761157611676117761187611976120761217612276123761247612576126761277612876129761307613176132761337613476135761367613776138761397614076141761427614376144761457614676147761487614976150761517615276153761547615576156761577615876159761607616176162761637616476165761667616776168761697617076171761727617376174761757617676177761787617976180761817618276183761847618576186761877618876189761907619176192761937619476195761967619776198761997620076201762027620376204762057620676207762087620976210762117621276213762147621576216762177621876219762207622176222762237622476225762267622776228762297623076231762327623376234762357623676237762387623976240762417624276243762447624576246762477624876249762507625176252762537625476255762567625776258762597626076261762627626376264762657626676267762687626976270762717627276273762747627576276762777627876279762807628176282762837628476285762867628776288762897629076291762927629376294762957629676297762987629976300763017630276303763047630576306763077630876309763107631176312763137631476315763167631776318763197632076321763227632376324763257632676327763287632976330763317633276333763347633576336763377633876339763407634176342763437634476345763467634776348763497635076351763527635376354763557635676357763587635976360763617636276363763647636576366763677636876369763707637176372763737637476375763767637776378763797638076381763827638376384763857638676387763887638976390763917639276393763947639576396763977639876399764007640176402764037640476405764067640776408764097641076411764127641376414764157641676417764187641976420764217642276423764247642576426764277642876429764307643176432764337643476435764367643776438764397644076441764427644376444764457644676447764487644976450764517645276453764547645576456764577645876459764607646176462764637646476465764667646776468764697647076471764727647376474764757647676477764787647976480764817648276483764847648576486764877648876489764907649176492764937649476495764967649776498764997650076501765027650376504765057650676507765087650976510765117651276513765147651576516765177651876519765207652176522765237652476525765267652776528765297653076531765327653376534765357653676537765387653976540765417654276543765447654576546765477654876549765507655176552765537655476555765567655776558765597656076561765627656376564765657656676567765687656976570765717657276573765747657576576765777657876579765807658176582765837658476585765867658776588765897659076591765927659376594765957659676597765987659976600766017660276603766047660576606766077660876609766107661176612766137661476615766167661776618766197662076621766227662376624766257662676627766287662976630766317663276633766347663576636766377663876639766407664176642766437664476645766467664776648766497665076651766527665376654766557665676657766587665976660766617666276663766647666576666766677666876669766707667176672766737667476675766767667776678766797668076681766827668376684766857668676687766887668976690766917669276693766947669576696766977669876699767007670176702767037670476705767067670776708767097671076711767127671376714767157671676717767187671976720767217672276723767247672576726767277672876729767307673176732767337673476735767367673776738767397674076741767427674376744767457674676747767487674976750767517675276753767547675576756767577675876759767607676176762767637676476765767667676776768767697677076771767727677376774767757677676777767787677976780767817678276783767847678576786767877678876789767907679176792767937679476795767967679776798767997680076801768027680376804768057680676807768087680976810768117681276813768147681576816768177681876819768207682176822768237682476825768267682776828768297683076831768327683376834768357683676837768387683976840768417684276843768447684576846768477684876849768507685176852768537685476855768567685776858768597686076861768627686376864768657686676867768687686976870768717687276873768747687576876768777687876879768807688176882768837688476885768867688776888768897689076891768927689376894768957689676897768987689976900769017690276903769047690576906769077690876909769107691176912769137691476915769167691776918769197692076921769227692376924769257692676927769287692976930769317693276933769347693576936769377693876939769407694176942769437694476945769467694776948769497695076951769527695376954769557695676957769587695976960769617696276963769647696576966769677696876969769707697176972769737697476975769767697776978769797698076981769827698376984769857698676987769887698976990769917699276993769947699576996769977699876999770007700177002770037700477005770067700777008770097701077011770127701377014770157701677017770187701977020770217702277023770247702577026770277702877029770307703177032770337703477035770367703777038770397704077041770427704377044770457704677047770487704977050770517705277053770547705577056770577705877059770607706177062770637706477065770667706777068770697707077071770727707377074770757707677077770787707977080770817708277083770847708577086770877708877089770907709177092770937709477095770967709777098770997710077101771027710377104771057710677107771087710977110771117711277113771147711577116771177711877119771207712177122771237712477125771267712777128771297713077131771327713377134771357713677137771387713977140771417714277143771447714577146771477714877149771507715177152771537715477155771567715777158771597716077161771627716377164771657716677167771687716977170771717717277173771747717577176771777717877179771807718177182771837718477185771867718777188771897719077191771927719377194771957719677197771987719977200772017720277203772047720577206772077720877209772107721177212772137721477215772167721777218772197722077221772227722377224772257722677227772287722977230772317723277233772347723577236772377723877239772407724177242772437724477245772467724777248772497725077251772527725377254772557725677257772587725977260772617726277263772647726577266772677726877269772707727177272772737727477275772767727777278772797728077281772827728377284772857728677287772887728977290772917729277293772947729577296772977729877299773007730177302773037730477305773067730777308773097731077311773127731377314773157731677317773187731977320773217732277323773247732577326773277732877329773307733177332773337733477335773367733777338773397734077341773427734377344773457734677347773487734977350773517735277353773547735577356773577735877359773607736177362773637736477365773667736777368773697737077371773727737377374773757737677377773787737977380773817738277383773847738577386773877738877389773907739177392773937739477395773967739777398773997740077401774027740377404774057740677407774087740977410774117741277413774147741577416774177741877419774207742177422774237742477425774267742777428774297743077431774327743377434774357743677437774387743977440774417744277443774447744577446774477744877449774507745177452774537745477455774567745777458774597746077461774627746377464774657746677467774687746977470774717747277473774747747577476774777747877479774807748177482774837748477485774867748777488774897749077491774927749377494774957749677497774987749977500775017750277503775047750577506775077750877509775107751177512775137751477515775167751777518775197752077521775227752377524775257752677527775287752977530775317753277533775347753577536775377753877539775407754177542775437754477545775467754777548775497755077551775527755377554775557755677557775587755977560775617756277563775647756577566775677756877569775707757177572775737757477575775767757777578775797758077581775827758377584775857758677587775887758977590775917759277593775947759577596775977759877599776007760177602776037760477605776067760777608776097761077611776127761377614776157761677617776187761977620776217762277623776247762577626776277762877629776307763177632776337763477635776367763777638776397764077641776427764377644776457764677647776487764977650776517765277653776547765577656776577765877659776607766177662776637766477665776667766777668776697767077671776727767377674776757767677677776787767977680776817768277683776847768577686776877768877689776907769177692776937769477695776967769777698776997770077701777027770377704777057770677707777087770977710777117771277713777147771577716777177771877719777207772177722777237772477725777267772777728777297773077731777327773377734777357773677737777387773977740777417774277743777447774577746777477774877749777507775177752777537775477755777567775777758777597776077761777627776377764777657776677767777687776977770777717777277773777747777577776777777777877779777807778177782777837778477785777867778777788777897779077791777927779377794777957779677797777987779977800778017780277803778047780577806778077780877809778107781177812778137781477815778167781777818778197782077821778227782377824778257782677827778287782977830778317783277833778347783577836778377783877839778407784177842778437784477845778467784777848778497785077851778527785377854778557785677857778587785977860778617786277863778647786577866778677786877869778707787177872778737787477875778767787777878778797788077881778827788377884778857788677887778887788977890778917789277893778947789577896778977789877899779007790177902779037790477905779067790777908779097791077911779127791377914779157791677917779187791977920779217792277923779247792577926779277792877929779307793177932779337793477935779367793777938779397794077941779427794377944779457794677947779487794977950779517795277953779547795577956779577795877959779607796177962779637796477965779667796777968779697797077971779727797377974779757797677977779787797977980779817798277983779847798577986779877798877989779907799177992779937799477995779967799777998779997800078001780027800378004780057800678007780087800978010780117801278013780147801578016780177801878019780207802178022780237802478025780267802778028780297803078031780327803378034780357803678037780387803978040780417804278043780447804578046780477804878049780507805178052780537805478055780567805778058780597806078061780627806378064780657806678067780687806978070780717807278073780747807578076780777807878079780807808178082780837808478085780867808778088780897809078091780927809378094780957809678097780987809978100781017810278103781047810578106781077810878109781107811178112781137811478115781167811778118781197812078121781227812378124781257812678127781287812978130781317813278133781347813578136781377813878139781407814178142781437814478145781467814778148781497815078151781527815378154781557815678157781587815978160781617816278163781647816578166781677816878169781707817178172781737817478175781767817778178781797818078181781827818378184781857818678187781887818978190781917819278193781947819578196781977819878199782007820178202782037820478205782067820778208782097821078211782127821378214782157821678217782187821978220782217822278223782247822578226782277822878229782307823178232782337823478235782367823778238782397824078241782427824378244782457824678247782487824978250782517825278253782547825578256782577825878259782607826178262782637826478265782667826778268782697827078271782727827378274782757827678277782787827978280782817828278283782847828578286782877828878289782907829178292782937829478295782967829778298782997830078301783027830378304783057830678307783087830978310783117831278313783147831578316783177831878319783207832178322783237832478325783267832778328783297833078331783327833378334783357833678337783387833978340783417834278343783447834578346783477834878349783507835178352783537835478355783567835778358783597836078361783627836378364783657836678367783687836978370783717837278373783747837578376783777837878379783807838178382783837838478385783867838778388783897839078391783927839378394783957839678397783987839978400784017840278403784047840578406784077840878409784107841178412784137841478415784167841778418784197842078421784227842378424784257842678427784287842978430784317843278433784347843578436784377843878439784407844178442784437844478445784467844778448784497845078451784527845378454784557845678457784587845978460784617846278463784647846578466784677846878469784707847178472784737847478475784767847778478784797848078481784827848378484784857848678487784887848978490784917849278493784947849578496784977849878499785007850178502785037850478505785067850778508785097851078511785127851378514785157851678517785187851978520785217852278523785247852578526785277852878529785307853178532785337853478535785367853778538785397854078541785427854378544785457854678547785487854978550785517855278553785547855578556785577855878559785607856178562785637856478565785667856778568785697857078571785727857378574785757857678577785787857978580785817858278583785847858578586785877858878589785907859178592785937859478595785967859778598785997860078601786027860378604786057860678607786087860978610786117861278613786147861578616786177861878619786207862178622786237862478625786267862778628786297863078631786327863378634786357863678637786387863978640786417864278643786447864578646786477864878649786507865178652786537865478655786567865778658786597866078661786627866378664786657866678667786687866978670786717867278673786747867578676786777867878679786807868178682786837868478685786867868778688786897869078691786927869378694786957869678697786987869978700787017870278703787047870578706787077870878709787107871178712787137871478715787167871778718787197872078721787227872378724787257872678727787287872978730787317873278733787347873578736787377873878739787407874178742787437874478745787467874778748787497875078751787527875378754787557875678757787587875978760787617876278763787647876578766787677876878769787707877178772787737877478775787767877778778787797878078781787827878378784787857878678787787887878978790787917879278793787947879578796787977879878799788007880178802788037880478805788067880778808788097881078811788127881378814788157881678817788187881978820788217882278823788247882578826788277882878829788307883178832788337883478835788367883778838788397884078841788427884378844788457884678847788487884978850788517885278853788547885578856788577885878859788607886178862788637886478865788667886778868788697887078871788727887378874788757887678877788787887978880788817888278883788847888578886788877888878889788907889178892788937889478895788967889778898788997890078901789027890378904789057890678907789087890978910789117891278913789147891578916789177891878919789207892178922789237892478925789267892778928789297893078931789327893378934789357893678937789387893978940789417894278943789447894578946789477894878949789507895178952789537895478955789567895778958789597896078961789627896378964789657896678967789687896978970789717897278973789747897578976789777897878979789807898178982789837898478985789867898778988789897899078991789927899378994789957899678997789987899979000790017900279003790047900579006790077900879009790107901179012790137901479015790167901779018790197902079021790227902379024790257902679027790287902979030790317903279033790347903579036790377903879039790407904179042790437904479045790467904779048790497905079051790527905379054790557905679057790587905979060790617906279063790647906579066790677906879069790707907179072790737907479075790767907779078790797908079081790827908379084790857908679087790887908979090790917909279093790947909579096790977909879099791007910179102791037910479105791067910779108791097911079111791127911379114791157911679117791187911979120791217912279123791247912579126791277912879129791307913179132791337913479135791367913779138791397914079141791427914379144791457914679147791487914979150791517915279153791547915579156791577915879159791607916179162791637916479165791667916779168791697917079171791727917379174791757917679177791787917979180791817918279183791847918579186791877918879189791907919179192791937919479195791967919779198791997920079201792027920379204792057920679207792087920979210792117921279213792147921579216792177921879219792207922179222792237922479225792267922779228792297923079231792327923379234792357923679237792387923979240792417924279243792447924579246792477924879249792507925179252792537925479255792567925779258792597926079261792627926379264792657926679267792687926979270792717927279273792747927579276792777927879279792807928179282792837928479285792867928779288792897929079291792927929379294792957929679297792987929979300793017930279303793047930579306793077930879309793107931179312793137931479315793167931779318793197932079321793227932379324793257932679327793287932979330793317933279333793347933579336793377933879339793407934179342793437934479345793467934779348793497935079351793527935379354793557935679357793587935979360793617936279363793647936579366793677936879369793707937179372793737937479375793767937779378793797938079381793827938379384793857938679387793887938979390793917939279393793947939579396793977939879399794007940179402794037940479405794067940779408794097941079411794127941379414794157941679417794187941979420794217942279423794247942579426794277942879429794307943179432794337943479435794367943779438794397944079441794427944379444794457944679447794487944979450794517945279453794547945579456794577945879459794607946179462794637946479465794667946779468794697947079471794727947379474794757947679477794787947979480794817948279483794847948579486794877948879489794907949179492794937949479495794967949779498794997950079501795027950379504795057950679507795087950979510795117951279513795147951579516795177951879519795207952179522795237952479525795267952779528795297953079531795327953379534795357953679537795387953979540795417954279543795447954579546795477954879549795507955179552795537955479555795567955779558795597956079561795627956379564795657956679567795687956979570795717957279573795747957579576795777957879579795807958179582795837958479585795867958779588795897959079591795927959379594795957959679597795987959979600796017960279603796047960579606796077960879609796107961179612796137961479615796167961779618796197962079621796227962379624796257962679627796287962979630796317963279633796347963579636796377963879639796407964179642796437964479645796467964779648796497965079651796527965379654796557965679657796587965979660796617966279663796647966579666796677966879669796707967179672796737967479675796767967779678796797968079681796827968379684796857968679687796887968979690796917969279693796947969579696796977969879699797007970179702797037970479705797067970779708797097971079711797127971379714797157971679717797187971979720797217972279723797247972579726797277972879729797307973179732797337973479735797367973779738797397974079741797427974379744797457974679747797487974979750797517975279753797547975579756797577975879759797607976179762797637976479765797667976779768797697977079771797727977379774797757977679777797787977979780797817978279783797847978579786797877978879789797907979179792797937979479795797967979779798797997980079801798027980379804798057980679807798087980979810798117981279813798147981579816798177981879819798207982179822798237982479825798267982779828798297983079831798327983379834798357983679837798387983979840798417984279843798447984579846798477984879849798507985179852798537985479855798567985779858798597986079861798627986379864798657986679867798687986979870798717987279873798747987579876798777987879879798807988179882798837988479885798867988779888798897989079891798927989379894798957989679897798987989979900799017990279903799047990579906799077990879909799107991179912799137991479915799167991779918799197992079921799227992379924799257992679927799287992979930799317993279933799347993579936799377993879939799407994179942799437994479945799467994779948799497995079951799527995379954799557995679957799587995979960799617996279963799647996579966799677996879969799707997179972799737997479975799767997779978799797998079981799827998379984799857998679987799887998979990799917999279993799947999579996799977999879999800008000180002800038000480005800068000780008800098001080011800128001380014800158001680017800188001980020800218002280023800248002580026800278002880029800308003180032800338003480035800368003780038800398004080041800428004380044800458004680047800488004980050800518005280053800548005580056800578005880059800608006180062800638006480065800668006780068800698007080071800728007380074800758007680077800788007980080800818008280083800848008580086800878008880089800908009180092800938009480095800968009780098800998010080101801028010380104801058010680107801088010980110801118011280113801148011580116801178011880119801208012180122801238012480125801268012780128801298013080131801328013380134801358013680137801388013980140801418014280143801448014580146801478014880149801508015180152801538015480155801568015780158801598016080161801628016380164801658016680167801688016980170801718017280173801748017580176801778017880179801808018180182801838018480185801868018780188801898019080191801928019380194801958019680197801988019980200802018020280203802048020580206802078020880209802108021180212802138021480215802168021780218802198022080221802228022380224802258022680227802288022980230802318023280233802348023580236802378023880239802408024180242802438024480245802468024780248802498025080251802528025380254802558025680257802588025980260802618026280263802648026580266802678026880269802708027180272802738027480275802768027780278802798028080281802828028380284802858028680287802888028980290802918029280293802948029580296802978029880299803008030180302803038030480305803068030780308803098031080311803128031380314803158031680317803188031980320803218032280323803248032580326803278032880329803308033180332803338033480335803368033780338803398034080341803428034380344803458034680347803488034980350803518035280353803548035580356803578035880359803608036180362803638036480365803668036780368803698037080371803728037380374803758037680377803788037980380803818038280383803848038580386803878038880389803908039180392803938039480395803968039780398803998040080401804028040380404804058040680407804088040980410804118041280413804148041580416804178041880419804208042180422804238042480425804268042780428804298043080431804328043380434804358043680437804388043980440804418044280443804448044580446804478044880449804508045180452804538045480455804568045780458804598046080461804628046380464804658046680467804688046980470804718047280473804748047580476804778047880479804808048180482804838048480485804868048780488804898049080491804928049380494804958049680497804988049980500805018050280503805048050580506805078050880509805108051180512805138051480515805168051780518805198052080521805228052380524805258052680527805288052980530805318053280533805348053580536805378053880539805408054180542805438054480545805468054780548805498055080551805528055380554805558055680557805588055980560805618056280563805648056580566805678056880569805708057180572805738057480575805768057780578805798058080581805828058380584805858058680587805888058980590805918059280593805948059580596805978059880599806008060180602806038060480605806068060780608806098061080611806128061380614806158061680617806188061980620806218062280623806248062580626806278062880629806308063180632806338063480635806368063780638806398064080641806428064380644806458064680647806488064980650806518065280653806548065580656806578065880659806608066180662806638066480665806668066780668806698067080671806728067380674806758067680677806788067980680806818068280683806848068580686806878068880689806908069180692806938069480695806968069780698806998070080701807028070380704807058070680707807088070980710807118071280713807148071580716807178071880719807208072180722807238072480725807268072780728807298073080731807328073380734807358073680737807388073980740807418074280743807448074580746807478074880749807508075180752807538075480755807568075780758807598076080761807628076380764807658076680767807688076980770807718077280773807748077580776807778077880779807808078180782807838078480785807868078780788807898079080791807928079380794807958079680797807988079980800808018080280803808048080580806808078080880809808108081180812808138081480815808168081780818808198082080821808228082380824808258082680827808288082980830808318083280833808348083580836808378083880839808408084180842808438084480845808468084780848808498085080851808528085380854808558085680857808588085980860808618086280863808648086580866808678086880869808708087180872808738087480875808768087780878808798088080881808828088380884808858088680887808888088980890808918089280893808948089580896808978089880899809008090180902809038090480905809068090780908809098091080911809128091380914809158091680917809188091980920809218092280923809248092580926809278092880929809308093180932809338093480935809368093780938809398094080941809428094380944809458094680947809488094980950809518095280953809548095580956809578095880959809608096180962809638096480965809668096780968809698097080971809728097380974809758097680977809788097980980809818098280983809848098580986809878098880989809908099180992809938099480995809968099780998809998100081001810028100381004810058100681007810088100981010810118101281013810148101581016810178101881019810208102181022810238102481025810268102781028810298103081031810328103381034810358103681037810388103981040810418104281043810448104581046810478104881049810508105181052810538105481055810568105781058810598106081061810628106381064810658106681067810688106981070810718107281073810748107581076810778107881079810808108181082810838108481085810868108781088810898109081091810928109381094810958109681097810988109981100811018110281103811048110581106811078110881109811108111181112811138111481115811168111781118811198112081121811228112381124811258112681127811288112981130811318113281133811348113581136811378113881139811408114181142811438114481145811468114781148811498115081151811528115381154811558115681157811588115981160811618116281163811648116581166811678116881169811708117181172811738117481175811768117781178811798118081181811828118381184811858118681187811888118981190811918119281193811948119581196811978119881199812008120181202812038120481205812068120781208812098121081211812128121381214812158121681217812188121981220812218122281223812248122581226812278122881229812308123181232812338123481235812368123781238812398124081241812428124381244812458124681247812488124981250812518125281253812548125581256812578125881259812608126181262812638126481265812668126781268812698127081271812728127381274812758127681277812788127981280812818128281283812848128581286812878128881289812908129181292812938129481295812968129781298812998130081301813028130381304813058130681307813088130981310813118131281313813148131581316813178131881319813208132181322813238132481325813268132781328813298133081331813328133381334813358133681337813388133981340813418134281343813448134581346813478134881349813508135181352813538135481355813568135781358813598136081361813628136381364813658136681367813688136981370813718137281373813748137581376813778137881379813808138181382813838138481385813868138781388813898139081391813928139381394813958139681397813988139981400814018140281403814048140581406814078140881409814108141181412814138141481415814168141781418814198142081421814228142381424814258142681427814288142981430814318143281433814348143581436814378143881439814408144181442814438144481445814468144781448814498145081451814528145381454814558145681457814588145981460814618146281463814648146581466814678146881469814708147181472814738147481475814768147781478814798148081481814828148381484814858148681487814888148981490814918149281493814948149581496814978149881499815008150181502815038150481505815068150781508815098151081511815128151381514815158151681517815188151981520815218152281523815248152581526815278152881529815308153181532815338153481535815368153781538815398154081541815428154381544815458154681547815488154981550815518155281553815548155581556815578155881559815608156181562815638156481565815668156781568815698157081571815728157381574815758157681577815788157981580815818158281583815848158581586815878158881589815908159181592815938159481595815968159781598815998160081601816028160381604816058160681607816088160981610816118161281613816148161581616816178161881619816208162181622816238162481625816268162781628816298163081631816328163381634816358163681637816388163981640816418164281643816448164581646816478164881649816508165181652816538165481655816568165781658816598166081661816628166381664816658166681667816688166981670816718167281673816748167581676816778167881679816808168181682816838168481685816868168781688816898169081691816928169381694816958169681697816988169981700817018170281703817048170581706817078170881709817108171181712817138171481715817168171781718817198172081721817228172381724817258172681727817288172981730817318173281733817348173581736817378173881739817408174181742817438174481745817468174781748817498175081751817528175381754817558175681757817588175981760817618176281763817648176581766817678176881769817708177181772817738177481775817768177781778817798178081781817828178381784817858178681787817888178981790817918179281793817948179581796817978179881799818008180181802818038180481805818068180781808818098181081811818128181381814818158181681817818188181981820818218182281823818248182581826818278182881829818308183181832818338183481835818368183781838818398184081841818428184381844818458184681847818488184981850818518185281853818548185581856818578185881859818608186181862818638186481865818668186781868818698187081871818728187381874818758187681877818788187981880818818188281883818848188581886818878188881889818908189181892818938189481895818968189781898818998190081901819028190381904819058190681907819088190981910819118191281913819148191581916819178191881919819208192181922819238192481925819268192781928819298193081931819328193381934819358193681937819388193981940819418194281943819448194581946819478194881949819508195181952819538195481955819568195781958819598196081961819628196381964819658196681967819688196981970819718197281973819748197581976819778197881979819808198181982819838198481985819868198781988819898199081991819928199381994819958199681997819988199982000820018200282003820048200582006820078200882009820108201182012820138201482015820168201782018820198202082021820228202382024820258202682027820288202982030820318203282033820348203582036820378203882039820408204182042820438204482045820468204782048820498205082051820528205382054820558205682057820588205982060820618206282063820648206582066820678206882069820708207182072820738207482075820768207782078820798208082081820828208382084820858208682087820888208982090820918209282093820948209582096820978209882099821008210182102821038210482105821068210782108821098211082111821128211382114821158211682117821188211982120821218212282123821248212582126821278212882129821308213182132821338213482135821368213782138821398214082141821428214382144821458214682147821488214982150821518215282153821548215582156821578215882159821608216182162821638216482165821668216782168821698217082171821728217382174821758217682177821788217982180821818218282183821848218582186821878218882189821908219182192821938219482195821968219782198821998220082201822028220382204822058220682207822088220982210822118221282213822148221582216822178221882219822208222182222822238222482225822268222782228822298223082231822328223382234822358223682237822388223982240822418224282243822448224582246822478224882249822508225182252822538225482255822568225782258822598226082261822628226382264822658226682267822688226982270822718227282273822748227582276822778227882279822808228182282822838228482285822868228782288822898229082291822928229382294822958229682297822988229982300823018230282303823048230582306823078230882309823108231182312823138231482315823168231782318823198232082321823228232382324823258232682327823288232982330823318233282333823348233582336823378233882339823408234182342823438234482345823468234782348823498235082351823528235382354823558235682357823588235982360823618236282363823648236582366823678236882369823708237182372823738237482375823768237782378823798238082381823828238382384823858238682387823888238982390823918239282393823948239582396823978239882399824008240182402824038240482405824068240782408824098241082411824128241382414824158241682417824188241982420824218242282423824248242582426824278242882429824308243182432824338243482435824368243782438824398244082441824428244382444824458244682447824488244982450824518245282453824548245582456824578245882459824608246182462824638246482465824668246782468824698247082471824728247382474824758247682477824788247982480824818248282483824848248582486824878248882489824908249182492824938249482495824968249782498824998250082501825028250382504825058250682507825088250982510825118251282513825148251582516825178251882519825208252182522825238252482525825268252782528825298253082531825328253382534825358253682537825388253982540825418254282543825448254582546825478254882549825508255182552825538255482555825568255782558825598256082561825628256382564825658256682567825688256982570825718257282573825748257582576825778257882579825808258182582825838258482585825868258782588825898259082591825928259382594825958259682597825988259982600826018260282603826048260582606826078260882609826108261182612826138261482615826168261782618826198262082621826228262382624826258262682627826288262982630826318263282633826348263582636826378263882639826408264182642826438264482645826468264782648826498265082651826528265382654826558265682657826588265982660826618266282663826648266582666826678266882669826708267182672826738267482675826768267782678826798268082681826828268382684826858268682687826888268982690826918269282693826948269582696826978269882699827008270182702827038270482705827068270782708827098271082711827128271382714827158271682717827188271982720827218272282723827248272582726827278272882729827308273182732827338273482735827368273782738827398274082741827428274382744827458274682747827488274982750827518275282753827548275582756827578275882759827608276182762827638276482765827668276782768827698277082771827728277382774827758277682777827788277982780827818278282783827848278582786827878278882789827908279182792827938279482795827968279782798827998280082801828028280382804828058280682807828088280982810828118281282813828148281582816828178281882819828208282182822828238282482825828268282782828828298283082831828328283382834828358283682837828388283982840828418284282843828448284582846828478284882849828508285182852828538285482855828568285782858828598286082861828628286382864828658286682867828688286982870828718287282873828748287582876828778287882879828808288182882828838288482885828868288782888828898289082891828928289382894828958289682897828988289982900829018290282903829048290582906829078290882909829108291182912829138291482915829168291782918829198292082921829228292382924829258292682927829288292982930829318293282933829348293582936829378293882939829408294182942829438294482945829468294782948829498295082951829528295382954829558295682957829588295982960829618296282963829648296582966829678296882969829708297182972829738297482975829768297782978829798298082981829828298382984829858298682987829888298982990829918299282993829948299582996829978299882999830008300183002830038300483005830068300783008830098301083011830128301383014830158301683017830188301983020830218302283023830248302583026830278302883029830308303183032830338303483035830368303783038830398304083041830428304383044830458304683047830488304983050830518305283053830548305583056830578305883059830608306183062830638306483065830668306783068830698307083071830728307383074830758307683077830788307983080830818308283083830848308583086830878308883089830908309183092830938309483095830968309783098830998310083101831028310383104831058310683107831088310983110831118311283113831148311583116831178311883119831208312183122831238312483125831268312783128831298313083131831328313383134831358313683137831388313983140831418314283143831448314583146831478314883149831508315183152831538315483155831568315783158831598316083161831628316383164831658316683167831688316983170831718317283173831748317583176831778317883179831808318183182831838318483185831868318783188831898319083191831928319383194831958319683197831988319983200832018320283203832048320583206832078320883209832108321183212832138321483215832168321783218832198322083221832228322383224832258322683227832288322983230832318323283233832348323583236832378323883239832408324183242832438324483245832468324783248832498325083251832528325383254832558325683257832588325983260832618326283263832648326583266832678326883269832708327183272832738327483275832768327783278832798328083281832828328383284832858328683287832888328983290832918329283293832948329583296832978329883299833008330183302833038330483305833068330783308833098331083311833128331383314833158331683317833188331983320833218332283323833248332583326833278332883329833308333183332833338333483335833368333783338833398334083341833428334383344833458334683347833488334983350833518335283353833548335583356833578335883359833608336183362833638336483365833668336783368833698337083371833728337383374833758337683377833788337983380833818338283383833848338583386833878338883389833908339183392833938339483395833968339783398833998340083401834028340383404834058340683407834088340983410834118341283413834148341583416834178341883419834208342183422834238342483425834268342783428834298343083431834328343383434834358343683437834388343983440834418344283443834448344583446834478344883449834508345183452834538345483455834568345783458834598346083461834628346383464834658346683467834688346983470834718347283473834748347583476834778347883479834808348183482834838348483485834868348783488834898349083491834928349383494834958349683497834988349983500835018350283503835048350583506835078350883509835108351183512835138351483515835168351783518835198352083521835228352383524835258352683527835288352983530835318353283533835348353583536835378353883539835408354183542835438354483545835468354783548835498355083551835528355383554835558355683557835588355983560835618356283563835648356583566835678356883569835708357183572835738357483575835768357783578835798358083581835828358383584835858358683587835888358983590835918359283593835948359583596835978359883599836008360183602836038360483605836068360783608836098361083611836128361383614836158361683617836188361983620836218362283623836248362583626836278362883629836308363183632836338363483635836368363783638836398364083641836428364383644836458364683647836488364983650836518365283653836548365583656836578365883659836608366183662836638366483665836668366783668836698367083671836728367383674836758367683677836788367983680836818368283683836848368583686836878368883689836908369183692836938369483695836968369783698836998370083701837028370383704837058370683707837088370983710837118371283713837148371583716837178371883719837208372183722837238372483725837268372783728837298373083731837328373383734837358373683737837388373983740837418374283743837448374583746837478374883749837508375183752837538375483755837568375783758837598376083761837628376383764837658376683767837688376983770837718377283773837748377583776837778377883779837808378183782837838378483785837868378783788837898379083791837928379383794837958379683797837988379983800838018380283803838048380583806838078380883809838108381183812838138381483815838168381783818838198382083821838228382383824838258382683827838288382983830838318383283833838348383583836838378383883839838408384183842838438384483845838468384783848838498385083851838528385383854838558385683857838588385983860838618386283863838648386583866838678386883869838708387183872838738387483875838768387783878838798388083881838828388383884838858388683887838888388983890838918389283893838948389583896838978389883899839008390183902839038390483905839068390783908839098391083911839128391383914839158391683917839188391983920839218392283923839248392583926839278392883929839308393183932839338393483935839368393783938839398394083941839428394383944839458394683947839488394983950839518395283953839548395583956839578395883959839608396183962839638396483965839668396783968839698397083971839728397383974839758397683977839788397983980839818398283983839848398583986839878398883989839908399183992839938399483995839968399783998839998400084001840028400384004840058400684007840088400984010840118401284013840148401584016840178401884019840208402184022840238402484025840268402784028840298403084031840328403384034840358403684037840388403984040840418404284043840448404584046840478404884049840508405184052840538405484055840568405784058840598406084061840628406384064840658406684067840688406984070840718407284073840748407584076840778407884079840808408184082840838408484085840868408784088840898409084091840928409384094840958409684097840988409984100841018410284103841048410584106841078410884109841108411184112841138411484115841168411784118841198412084121841228412384124841258412684127841288412984130841318413284133841348413584136841378413884139841408414184142841438414484145841468414784148841498415084151841528415384154841558415684157841588415984160841618416284163841648416584166841678416884169841708417184172841738417484175841768417784178841798418084181841828418384184841858418684187841888418984190841918419284193841948419584196841978419884199842008420184202842038420484205842068420784208842098421084211842128421384214842158421684217842188421984220842218422284223842248422584226842278422884229842308423184232842338423484235842368423784238842398424084241842428424384244842458424684247842488424984250842518425284253842548425584256842578425884259842608426184262842638426484265842668426784268842698427084271842728427384274842758427684277842788427984280842818428284283842848428584286842878428884289842908429184292842938429484295842968429784298842998430084301843028430384304843058430684307843088430984310843118431284313843148431584316843178431884319843208432184322843238432484325843268432784328843298433084331843328433384334843358433684337843388433984340843418434284343843448434584346843478434884349843508435184352843538435484355843568435784358843598436084361843628436384364843658436684367843688436984370843718437284373843748437584376843778437884379843808438184382843838438484385843868438784388843898439084391843928439384394843958439684397843988439984400844018440284403844048440584406844078440884409844108441184412844138441484415844168441784418844198442084421844228442384424844258442684427844288442984430844318443284433844348443584436844378443884439844408444184442844438444484445844468444784448844498445084451844528445384454844558445684457844588445984460844618446284463844648446584466844678446884469844708447184472844738447484475844768447784478844798448084481844828448384484844858448684487844888448984490844918449284493844948449584496844978449884499845008450184502845038450484505845068450784508845098451084511845128451384514845158451684517845188451984520845218452284523845248452584526845278452884529845308453184532845338453484535845368453784538845398454084541845428454384544845458454684547845488454984550845518455284553845548455584556845578455884559845608456184562845638456484565845668456784568845698457084571845728457384574845758457684577845788457984580845818458284583845848458584586845878458884589845908459184592845938459484595845968459784598845998460084601846028460384604846058460684607846088460984610846118461284613846148461584616846178461884619846208462184622846238462484625846268462784628846298463084631846328463384634846358463684637846388463984640846418464284643846448464584646846478464884649846508465184652846538465484655846568465784658846598466084661846628466384664846658466684667846688466984670846718467284673846748467584676846778467884679846808468184682846838468484685846868468784688846898469084691846928469384694846958469684697846988469984700847018470284703847048470584706847078470884709847108471184712847138471484715847168471784718847198472084721847228472384724847258472684727847288472984730847318473284733847348473584736847378473884739847408474184742847438474484745847468474784748847498475084751847528475384754847558475684757847588475984760847618476284763847648476584766847678476884769847708477184772847738477484775847768477784778847798478084781847828478384784847858478684787847888478984790847918479284793847948479584796847978479884799848008480184802848038480484805848068480784808848098481084811848128481384814848158481684817848188481984820848218482284823848248482584826848278482884829848308483184832848338483484835848368483784838848398484084841848428484384844848458484684847848488484984850848518485284853848548485584856848578485884859848608486184862848638486484865848668486784868848698487084871848728487384874848758487684877848788487984880848818488284883848848488584886848878488884889848908489184892848938489484895848968489784898848998490084901849028490384904849058490684907849088490984910849118491284913849148491584916849178491884919849208492184922849238492484925849268492784928849298493084931849328493384934849358493684937849388493984940849418494284943849448494584946849478494884949849508495184952849538495484955849568495784958849598496084961849628496384964849658496684967849688496984970849718497284973849748497584976849778497884979849808498184982849838498484985849868498784988849898499084991849928499384994849958499684997849988499985000850018500285003850048500585006850078500885009850108501185012850138501485015850168501785018850198502085021850228502385024850258502685027850288502985030850318503285033850348503585036850378503885039850408504185042850438504485045850468504785048850498505085051850528505385054850558505685057850588505985060850618506285063850648506585066850678506885069850708507185072850738507485075850768507785078850798508085081850828508385084850858508685087850888508985090850918509285093850948509585096850978509885099851008510185102851038510485105851068510785108851098511085111851128511385114851158511685117851188511985120851218512285123851248512585126851278512885129851308513185132851338513485135851368513785138851398514085141851428514385144851458514685147851488514985150851518515285153851548515585156851578515885159851608516185162851638516485165851668516785168851698517085171851728517385174851758517685177851788517985180851818518285183851848518585186851878518885189851908519185192851938519485195851968519785198851998520085201852028520385204852058520685207852088520985210852118521285213852148521585216852178521885219852208522185222852238522485225852268522785228852298523085231852328523385234852358523685237852388523985240852418524285243852448524585246852478524885249852508525185252852538525485255852568525785258852598526085261852628526385264852658526685267852688526985270852718527285273852748527585276852778527885279852808528185282852838528485285852868528785288852898529085291852928529385294852958529685297852988529985300853018530285303853048530585306853078530885309853108531185312853138531485315853168531785318853198532085321853228532385324853258532685327853288532985330853318533285333853348533585336853378533885339853408534185342853438534485345853468534785348853498535085351853528535385354853558535685357853588535985360853618536285363853648536585366853678536885369853708537185372853738537485375853768537785378853798538085381853828538385384853858538685387853888538985390853918539285393853948539585396853978539885399854008540185402854038540485405854068540785408854098541085411854128541385414854158541685417854188541985420854218542285423854248542585426854278542885429854308543185432854338543485435854368543785438854398544085441854428544385444854458544685447854488544985450854518545285453854548545585456854578545885459854608546185462854638546485465854668546785468854698547085471854728547385474854758547685477854788547985480854818548285483854848548585486854878548885489854908549185492854938549485495854968549785498854998550085501855028550385504855058550685507855088550985510855118551285513855148551585516855178551885519855208552185522855238552485525855268552785528855298553085531855328553385534855358553685537855388553985540855418554285543855448554585546855478554885549855508555185552855538555485555855568555785558855598556085561855628556385564855658556685567855688556985570855718557285573855748557585576855778557885579855808558185582855838558485585855868558785588855898559085591855928559385594855958559685597855988559985600856018560285603856048560585606856078560885609856108561185612856138561485615856168561785618856198562085621856228562385624856258562685627856288562985630856318563285633856348563585636856378563885639856408564185642856438564485645856468564785648856498565085651856528565385654856558565685657856588565985660856618566285663856648566585666856678566885669856708567185672856738567485675856768567785678856798568085681856828568385684856858568685687856888568985690856918569285693856948569585696856978569885699857008570185702857038570485705857068570785708857098571085711857128571385714857158571685717857188571985720857218572285723857248572585726857278572885729857308573185732857338573485735857368573785738857398574085741857428574385744857458574685747857488574985750857518575285753857548575585756857578575885759857608576185762857638576485765857668576785768857698577085771857728577385774857758577685777857788577985780857818578285783857848578585786857878578885789857908579185792857938579485795857968579785798857998580085801858028580385804858058580685807858088580985810858118581285813858148581585816858178581885819858208582185822858238582485825858268582785828858298583085831858328583385834858358583685837858388583985840858418584285843858448584585846858478584885849858508585185852858538585485855858568585785858858598586085861858628586385864858658586685867858688586985870858718587285873858748587585876858778587885879858808588185882858838588485885858868588785888858898589085891858928589385894858958589685897858988589985900859018590285903859048590585906859078590885909859108591185912859138591485915859168591785918859198592085921859228592385924859258592685927859288592985930859318593285933859348593585936859378593885939859408594185942859438594485945859468594785948859498595085951859528595385954859558595685957859588595985960859618596285963859648596585966859678596885969859708597185972859738597485975859768597785978859798598085981859828598385984859858598685987859888598985990859918599285993859948599585996859978599885999860008600186002860038600486005860068600786008860098601086011860128601386014860158601686017860188601986020860218602286023860248602586026860278602886029860308603186032860338603486035860368603786038860398604086041860428604386044860458604686047860488604986050860518605286053860548605586056860578605886059860608606186062860638606486065860668606786068860698607086071860728607386074860758607686077860788607986080860818608286083860848608586086860878608886089860908609186092860938609486095860968609786098860998610086101861028610386104861058610686107861088610986110861118611286113861148611586116861178611886119861208612186122861238612486125861268612786128861298613086131861328613386134861358613686137861388613986140861418614286143861448614586146861478614886149861508615186152861538615486155861568615786158861598616086161861628616386164861658616686167861688616986170861718617286173861748617586176861778617886179861808618186182861838618486185861868618786188861898619086191861928619386194861958619686197861988619986200862018620286203862048620586206862078620886209862108621186212862138621486215862168621786218862198622086221862228622386224862258622686227862288622986230862318623286233862348623586236862378623886239862408624186242862438624486245862468624786248862498625086251862528625386254862558625686257862588625986260862618626286263862648626586266862678626886269862708627186272862738627486275862768627786278862798628086281862828628386284862858628686287862888628986290862918629286293862948629586296862978629886299863008630186302863038630486305863068630786308863098631086311863128631386314863158631686317863188631986320863218632286323863248632586326863278632886329863308633186332863338633486335863368633786338863398634086341863428634386344863458634686347863488634986350863518635286353863548635586356863578635886359863608636186362863638636486365863668636786368863698637086371863728637386374863758637686377863788637986380863818638286383863848638586386863878638886389863908639186392863938639486395863968639786398863998640086401864028640386404864058640686407864088640986410864118641286413864148641586416864178641886419864208642186422864238642486425864268642786428864298643086431864328643386434864358643686437864388643986440864418644286443864448644586446864478644886449864508645186452864538645486455864568645786458864598646086461864628646386464864658646686467864688646986470864718647286473864748647586476864778647886479864808648186482864838648486485864868648786488864898649086491864928649386494864958649686497864988649986500865018650286503865048650586506865078650886509865108651186512865138651486515865168651786518865198652086521865228652386524865258652686527865288652986530865318653286533865348653586536865378653886539865408654186542865438654486545865468654786548865498655086551865528655386554865558655686557865588655986560865618656286563865648656586566865678656886569865708657186572865738657486575865768657786578865798658086581865828658386584865858658686587865888658986590865918659286593865948659586596865978659886599866008660186602866038660486605866068660786608866098661086611866128661386614866158661686617866188661986620866218662286623866248662586626866278662886629866308663186632866338663486635866368663786638866398664086641866428664386644866458664686647866488664986650866518665286653866548665586656866578665886659866608666186662866638666486665866668666786668866698667086671866728667386674866758667686677866788667986680866818668286683866848668586686866878668886689866908669186692866938669486695866968669786698866998670086701867028670386704867058670686707867088670986710867118671286713867148671586716867178671886719867208672186722867238672486725867268672786728867298673086731867328673386734867358673686737867388673986740867418674286743867448674586746867478674886749867508675186752867538675486755867568675786758867598676086761867628676386764867658676686767867688676986770867718677286773867748677586776867778677886779867808678186782867838678486785867868678786788867898679086791867928679386794867958679686797867988679986800868018680286803868048680586806868078680886809868108681186812868138681486815868168681786818868198682086821868228682386824868258682686827868288682986830868318683286833868348683586836868378683886839868408684186842868438684486845868468684786848868498685086851868528685386854868558685686857868588685986860868618686286863868648686586866868678686886869868708687186872868738687486875868768687786878868798688086881868828688386884868858688686887868888688986890868918689286893868948689586896868978689886899869008690186902869038690486905869068690786908869098691086911869128691386914869158691686917869188691986920869218692286923869248692586926869278692886929869308693186932869338693486935869368693786938869398694086941869428694386944869458694686947869488694986950869518695286953869548695586956869578695886959869608696186962869638696486965869668696786968869698697086971869728697386974869758697686977869788697986980869818698286983869848698586986869878698886989
  1. <?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
  2. <!-- Generated by the JDiff Javadoc doclet -->
  3. <!-- (http://www.jdiff.org) -->
  4. <!-- on Sun Aug 04 12:45:54 PDT 2013 -->
  5. <api
  6. xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
  7. xsi:noNamespaceSchemaLocation='api.xsd'
  8. name="hadoop 1.2.1"
  9. jdversion="1.0.9">
  10. <!-- Command line arguments = -doclet jdiff.JDiff -docletpath /grid/dev/mattf/hadoop-1.2/build/ivy/lib/Hadoop/jdiff/jdiff-1.0.9.jar:/grid/dev/mattf/hadoop-1.2/build/ivy/lib/Hadoop/jdiff/xerces-1.4.4.jar -classpath /grid/dev/mattf/hadoop-1.2/build/classes:/grid/dev/mattf/hadoop-1.2/lib/hsqldb-1.8.0.10.jar:/grid/dev/mattf/hadoop-1.2/lib/jsp-2.1/jsp-2.1.jar:/grid/dev/mattf/hadoop-1.2/lib/jsp-2.1/jsp-api-2.1.jar:/grid/dev/mattf/hadoop-1.2/lib/kfs-0.2.2.jar:/home/mattf/.ivy2/cache/log4j/log4j/jars/log4j-1.2.15.jar:/home/mattf/.ivy2/cache/commons-httpclient/commons-httpclient/jars/commons-httpclient-3.0.1.jar:/home/mattf/.ivy2/cache/commons-codec/commons-codec/jars/commons-codec-1.4.jar:/home/mattf/.ivy2/cache/commons-cli/commons-cli/jars/commons-cli-1.2.jar:/home/mattf/.ivy2/cache/commons-io/commons-io/jars/commons-io-2.1.jar:/home/mattf/.ivy2/cache/xmlenc/xmlenc/jars/xmlenc-0.52.jar:/home/mattf/.ivy2/cache/commons-daemon/commons-daemon/jars/commons-daemon-1.0.1.jar:/home/mattf/.ivy2/cache/net.java.dev.jets3t/jets3t/jars/jets3t-0.6.1.jar:/home/mattf/.ivy2/cache/commons-net/commons-net/jars/commons-net-3.1.jar:/home/mattf/.ivy2/cache/org.mortbay.jetty/jetty/jars/jetty-6.1.26.jar:/home/mattf/.ivy2/cache/org.mortbay.jetty/jetty-util/jars/jetty-util-6.1.26.jar:/home/mattf/.ivy2/cache/org.mortbay.jetty/servlet-api/jars/servlet-api-2.5-20081211.jar:/home/mattf/.ivy2/cache/asm/asm/jars/asm-3.2.jar:/home/mattf/.ivy2/cache/com.sun.jersey/jersey-core/bundles/jersey-core-1.8.jar:/home/mattf/.ivy2/cache/com.sun.jersey/jersey-json/bundles/jersey-json-1.8.jar:/home/mattf/.ivy2/cache/com.sun.jersey/jersey-server/bundles/jersey-server-1.8.jar:/home/mattf/.ivy2/cache/tomcat/jasper-runtime/jars/jasper-runtime-5.5.12.jar:/home/mattf/.ivy2/cache/tomcat/jasper-compiler/jars/jasper-compiler-5.5.12.jar:/home/mattf/.ivy2/cache/commons-el/commons-el/jars/commons-el-1.0.jar:/home/mattf/.ivy2/cache/commons-configuration/commons-configuration/jars/commons-configuration-1.6.jar:/home/mattf/.ivy2/cache/commons-collections/commons-collections/jars/commons-collections-3.2.1.jar:/home/mattf/.ivy2/cache/commons-lang/commons-lang/jars/commons-lang-2.4.jar:/home/mattf/.ivy2/cache/commons-logging/commons-logging/jars/commons-logging-1.1.1.jar:/home/mattf/.ivy2/cache/commons-digester/commons-digester/jars/commons-digester-1.8.jar:/home/mattf/.ivy2/cache/commons-beanutils/commons-beanutils/jars/commons-beanutils-1.7.0.jar:/home/mattf/.ivy2/cache/commons-beanutils/commons-beanutils-core/jars/commons-beanutils-core-1.8.0.jar:/home/mattf/.ivy2/cache/org.apache.commons/commons-math/jars/commons-math-2.1.jar:/home/mattf/.ivy2/cache/junit/junit/jars/junit-4.5.jar:/home/mattf/.ivy2/cache/commons-logging/commons-logging-api/jars/commons-logging-api-1.0.4.jar:/home/mattf/.ivy2/cache/org.slf4j/slf4j-api/jars/slf4j-api-1.4.3.jar:/home/mattf/.ivy2/cache/org.eclipse.jdt/core/jars/core-3.1.1.jar:/home/mattf/.ivy2/cache/oro/oro/jars/oro-2.0.8.jar:/home/mattf/.ivy2/cache/org.slf4j/slf4j-log4j12/jars/slf4j-log4j12-1.4.3.jar:/home/mattf/.ivy2/cache/org.codehaus.jackson/jackson-mapper-asl/jars/jackson-mapper-asl-1.8.8.jar:/home/mattf/.ivy2/cache/org.codehaus.jackson/jackson-core-asl/jars/jackson-core-asl-1.8.8.jar:/home/mattf/.ivy2/cache/org.mockito/mockito-all/jars/mockito-all-1.8.5.jar:/home/mattf/.ivy2/cache/com.jcraft/jsch/jars/jsch-0.1.42.jar:/home/mattf/.ivy2/cache/org.aspectj/aspectjrt/jars/aspectjrt-1.6.11.jar:/home/mattf/.ivy2/cache/org.aspectj/aspectjtools/jars/aspectjtools-1.6.11.jar:/home/mattf/.ivy2/cache/org.vafer/jdeb/maven-plugins/jdeb-0.8.jar:/grid/dev/mattf/hadoop-1.2/conf:/home/mattf/.ivy2/cache/commons-logging/commons-logging/jars/commons-logging-1.0.4.jar:/home/mattf/.ivy2/cache/jdiff/jdiff/jars/jdiff-1.0.9.jar:/home/mattf/.ivy2/cache/xerces/xerces/jars/xerces-1.4.4.jar:/home/jenkins/tools/ant/apache-ant-1.8.2/lib/ant-launcher.jar:/home/jenkins/tools/ant/apache-ant-1.8.2/lib/ant.jar:/home/jenkins/tools/ant/apache-ant-1.8.2/lib/ant-swing.jar:/home/jenkins/tools/ant/apache-ant-1.8.2/lib/ant-commons-net.jar:/home/jenkins/tools/ant/apache-ant-1.8.2/lib/ant-apache-log4j.jar:/home/jenkins/tools/ant/apache-ant-1.8.2/lib/ant-netrexx.jar:/home/jenkins/tools/ant/apache-ant-1.8.2/lib/ant-apache-bsf.jar:/home/jenkins/tools/ant/apache-ant-1.8.2/lib/ant-antlr.jar:/home/jenkins/tools/ant/apache-ant-1.8.2/lib/ant-apache-xalan2.jar:/home/jenkins/tools/ant/apache-ant-1.8.2/lib/ant-junit4.jar:/home/jenkins/tools/ant/apache-ant-1.8.2/lib/ant-jmf.jar:/home/jenkins/tools/ant/apache-ant-1.8.2/lib/ant-javamail.jar:/home/jenkins/tools/ant/apache-ant-1.8.2/lib/ant-apache-regexp.jar:/home/jenkins/tools/ant/apache-ant-1.8.2/lib/ant-apache-oro.jar:/home/jenkins/tools/ant/apache-ant-1.8.2/lib/ant-commons-logging.jar:/home/jenkins/tools/ant/apache-ant-1.8.2/lib/ant-testutil.jar:/home/jenkins/tools/ant/apache-ant-1.8.2/lib/ant-jdepend.jar:/home/jenkins/tools/ant/apache-ant-1.8.2/lib/ant-jai.jar:/home/jenkins/tools/ant/apache-ant-1.8.2/lib/ant-apache-resolver.jar:/home/jenkins/tools/ant/apache-ant-1.8.2/lib/ant-junit.jar:/home/jenkins/tools/ant/apache-ant-1.8.2/lib/ant-apache-bcel.jar:/home/jenkins/tools/ant/apache-ant-1.8.2/lib/ant-jsch.jar:/home/mattf/tools/jdk1.6.0_u31_64bit/lib/tools.jar -sourcepath /grid/dev/mattf/hadoop-1.2/src/core:/grid/dev/mattf/hadoop-1.2/src/mapred:/grid/dev/mattf/hadoop-1.2/src/tools -apidir /grid/dev/mattf/hadoop-1.2/lib/jdiff -apiname hadoop 1.2.1 -->
  11. <package name="org.apache.hadoop">
  12. <!-- start interface org.apache.hadoop.HadoopVersionAnnotation -->
  13. <interface name="HadoopVersionAnnotation" abstract="true"
  14. static="false" final="false" visibility="public"
  15. deprecated="not deprecated">
  16. <implements name="java.lang.annotation.Annotation"/>
  17. <method name="version" return="java.lang.String"
  18. abstract="false" native="false" synchronized="false"
  19. static="false" final="false" visibility="public"
  20. deprecated="not deprecated">
  21. <doc>
  22. <![CDATA[Get the Hadoop version
  23. @return the version string "0.6.3-dev"]]>
  24. </doc>
  25. </method>
  26. <method name="user" return="java.lang.String"
  27. abstract="false" native="false" synchronized="false"
  28. static="false" final="false" visibility="public"
  29. deprecated="not deprecated">
  30. <doc>
  31. <![CDATA[Get the username that compiled Hadoop.]]>
  32. </doc>
  33. </method>
  34. <method name="date" return="java.lang.String"
  35. abstract="false" native="false" synchronized="false"
  36. static="false" final="false" visibility="public"
  37. deprecated="not deprecated">
  38. <doc>
  39. <![CDATA[Get the date when Hadoop was compiled.
  40. @return the date in unix 'date' format]]>
  41. </doc>
  42. </method>
  43. <method name="url" return="java.lang.String"
  44. abstract="false" native="false" synchronized="false"
  45. static="false" final="false" visibility="public"
  46. deprecated="not deprecated">
  47. <doc>
  48. <![CDATA[Get the url for the subversion repository.]]>
  49. </doc>
  50. </method>
  51. <method name="revision" return="java.lang.String"
  52. abstract="false" native="false" synchronized="false"
  53. static="false" final="false" visibility="public"
  54. deprecated="not deprecated">
  55. <doc>
  56. <![CDATA[Get the subversion revision.
  57. @return the revision number as a string (eg. "451451")]]>
  58. </doc>
  59. </method>
  60. <method name="srcChecksum" return="java.lang.String"
  61. abstract="false" native="false" synchronized="false"
  62. static="false" final="false" visibility="public"
  63. deprecated="not deprecated">
  64. <doc>
  65. <![CDATA[Get a checksum of the source files from which
  66. Hadoop was compiled.
  67. @return a string that uniquely identifies the source]]>
  68. </doc>
  69. </method>
  70. <doc>
  71. <![CDATA[A package attribute that captures the version of Hadoop that was compiled.]]>
  72. </doc>
  73. </interface>
  74. <!-- end interface org.apache.hadoop.HadoopVersionAnnotation -->
  75. </package>
  76. <package name="org.apache.hadoop.classification">
  77. <!-- start class org.apache.hadoop.classification.InterfaceAudience -->
  78. <class name="InterfaceAudience" extends="java.lang.Object"
  79. abstract="false"
  80. static="false" final="false" visibility="public"
  81. deprecated="not deprecated">
  82. <doc>
  83. <![CDATA[Annotation to inform users of a package, class or method's intended audience.]]>
  84. </doc>
  85. </class>
  86. <!-- end class org.apache.hadoop.classification.InterfaceAudience -->
  87. <!-- start interface org.apache.hadoop.classification.InterfaceAudience.LimitedPrivate -->
  88. <interface name="InterfaceAudience.LimitedPrivate" abstract="true"
  89. static="true" final="false" visibility="public"
  90. deprecated="not deprecated">
  91. <implements name="java.lang.annotation.Annotation"/>
  92. <method name="value" return="java.lang.String[]"
  93. abstract="false" native="false" synchronized="false"
  94. static="false" final="false" visibility="public"
  95. deprecated="not deprecated">
  96. </method>
  97. <doc>
  98. <![CDATA[Intended only for the project(s) specified in the annotation.
  99. For example, "Common", "HDFS", "MapReduce", "ZooKeeper", "HBase".]]>
  100. </doc>
  101. </interface>
  102. <!-- end interface org.apache.hadoop.classification.InterfaceAudience.LimitedPrivate -->
  103. <!-- start interface org.apache.hadoop.classification.InterfaceAudience.Private -->
  104. <interface name="InterfaceAudience.Private" abstract="true"
  105. static="true" final="false" visibility="public"
  106. deprecated="not deprecated">
  107. <implements name="java.lang.annotation.Annotation"/>
  108. <doc>
  109. <![CDATA[Intended for use only within Hadoop itself.]]>
  110. </doc>
  111. </interface>
  112. <!-- end interface org.apache.hadoop.classification.InterfaceAudience.Private -->
  113. <!-- start interface org.apache.hadoop.classification.InterfaceAudience.Public -->
  114. <interface name="InterfaceAudience.Public" abstract="true"
  115. static="true" final="false" visibility="public"
  116. deprecated="not deprecated">
  117. <implements name="java.lang.annotation.Annotation"/>
  118. <doc>
  119. <![CDATA[Intended for use by any project or application.]]>
  120. </doc>
  121. </interface>
  122. <!-- end interface org.apache.hadoop.classification.InterfaceAudience.Public -->
  123. <!-- start class org.apache.hadoop.classification.InterfaceStability -->
  124. <class name="InterfaceStability" extends="java.lang.Object"
  125. abstract="false"
  126. static="false" final="false" visibility="public"
  127. deprecated="not deprecated">
  128. <constructor name="InterfaceStability"
  129. static="false" final="false" visibility="public"
  130. deprecated="not deprecated">
  131. </constructor>
  132. <doc>
  133. <![CDATA[Annotation to inform users of how much to rely on a particular package,
  134. class or method not changing over time.]]>
  135. </doc>
  136. </class>
  137. <!-- end class org.apache.hadoop.classification.InterfaceStability -->
  138. <!-- start interface org.apache.hadoop.classification.InterfaceStability.Evolving -->
  139. <interface name="InterfaceStability.Evolving" abstract="true"
  140. static="true" final="false" visibility="public"
  141. deprecated="not deprecated">
  142. <implements name="java.lang.annotation.Annotation"/>
  143. <doc>
  144. <![CDATA[Evolving, but can break compatibility at minor release (i.e. m.x)]]>
  145. </doc>
  146. </interface>
  147. <!-- end interface org.apache.hadoop.classification.InterfaceStability.Evolving -->
  148. <!-- start interface org.apache.hadoop.classification.InterfaceStability.Stable -->
  149. <interface name="InterfaceStability.Stable" abstract="true"
  150. static="true" final="false" visibility="public"
  151. deprecated="not deprecated">
  152. <implements name="java.lang.annotation.Annotation"/>
  153. <doc>
  154. <![CDATA[Can evolve while retaining compatibility for minor release boundaries.;
  155. can break compatibility only at major release (ie. at m.0).]]>
  156. </doc>
  157. </interface>
  158. <!-- end interface org.apache.hadoop.classification.InterfaceStability.Stable -->
  159. <!-- start interface org.apache.hadoop.classification.InterfaceStability.Unstable -->
  160. <interface name="InterfaceStability.Unstable" abstract="true"
  161. static="true" final="false" visibility="public"
  162. deprecated="not deprecated">
  163. <implements name="java.lang.annotation.Annotation"/>
  164. <doc>
  165. <![CDATA[No guarantee is provided as to reliability or stability across any
  166. level of release granularity.]]>
  167. </doc>
  168. </interface>
  169. <!-- end interface org.apache.hadoop.classification.InterfaceStability.Unstable -->
  170. </package>
  171. <package name="org.apache.hadoop.conf">
  172. <!-- start interface org.apache.hadoop.conf.Configurable -->
  173. <interface name="Configurable" abstract="true"
  174. static="false" final="false" visibility="public"
  175. deprecated="not deprecated">
  176. <method name="setConf"
  177. abstract="false" native="false" synchronized="false"
  178. static="false" final="false" visibility="public"
  179. deprecated="not deprecated">
  180. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  181. <doc>
  182. <![CDATA[Set the configuration to be used by this object.]]>
  183. </doc>
  184. </method>
  185. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  186. abstract="false" native="false" synchronized="false"
  187. static="false" final="false" visibility="public"
  188. deprecated="not deprecated">
  189. <doc>
  190. <![CDATA[Return the configuration used by this object.]]>
  191. </doc>
  192. </method>
  193. <doc>
  194. <![CDATA[Something that may be configured with a {@link Configuration}.]]>
  195. </doc>
  196. </interface>
  197. <!-- end interface org.apache.hadoop.conf.Configurable -->
  198. <!-- start class org.apache.hadoop.conf.Configuration -->
  199. <class name="Configuration" extends="java.lang.Object"
  200. abstract="false"
  201. static="false" final="false" visibility="public"
  202. deprecated="not deprecated">
  203. <implements name="java.lang.Iterable"/>
  204. <implements name="org.apache.hadoop.io.Writable"/>
  205. <constructor name="Configuration"
  206. static="false" final="false" visibility="public"
  207. deprecated="not deprecated">
  208. <doc>
  209. <![CDATA[A new configuration.]]>
  210. </doc>
  211. </constructor>
  212. <constructor name="Configuration" type="boolean"
  213. static="false" final="false" visibility="public"
  214. deprecated="not deprecated">
  215. <doc>
  216. <![CDATA[A new configuration where the behavior of reading from the default
  217. resources can be turned off.
  218. If the parameter {@code loadDefaults} is false, the new instance
  219. will not load resources from the default files.
  220. @param loadDefaults specifies whether to load from the default files]]>
  221. </doc>
  222. </constructor>
  223. <constructor name="Configuration" type="org.apache.hadoop.conf.Configuration"
  224. static="false" final="false" visibility="public"
  225. deprecated="not deprecated">
  226. <doc>
  227. <![CDATA[A new configuration with the same settings cloned from another.
  228. @param other the configuration from which to clone settings.]]>
  229. </doc>
  230. </constructor>
  231. <method name="addDefaultResource"
  232. abstract="false" native="false" synchronized="true"
  233. static="true" final="false" visibility="public"
  234. deprecated="not deprecated">
  235. <param name="name" type="java.lang.String"/>
  236. <doc>
  237. <![CDATA[Add a default resource. Resources are loaded in the order of the resources
  238. added.
  239. @param name file name. File should be present in the classpath.]]>
  240. </doc>
  241. </method>
  242. <method name="addResource"
  243. abstract="false" native="false" synchronized="false"
  244. static="false" final="false" visibility="public"
  245. deprecated="not deprecated">
  246. <param name="name" type="java.lang.String"/>
  247. <doc>
  248. <![CDATA[Add a configuration resource.
  249. The properties of this resource will override properties of previously
  250. added resources, unless they were marked <a href="#Final">final</a>.
  251. @param name resource to be added, the classpath is examined for a file
  252. with that name.]]>
  253. </doc>
  254. </method>
  255. <method name="addResource"
  256. abstract="false" native="false" synchronized="false"
  257. static="false" final="false" visibility="public"
  258. deprecated="not deprecated">
  259. <param name="url" type="java.net.URL"/>
  260. <doc>
  261. <![CDATA[Add a configuration resource.
  262. The properties of this resource will override properties of previously
  263. added resources, unless they were marked <a href="#Final">final</a>.
  264. @param url url of the resource to be added, the local filesystem is
  265. examined directly to find the resource, without referring to
  266. the classpath.]]>
  267. </doc>
  268. </method>
  269. <method name="addResource"
  270. abstract="false" native="false" synchronized="false"
  271. static="false" final="false" visibility="public"
  272. deprecated="not deprecated">
  273. <param name="file" type="org.apache.hadoop.fs.Path"/>
  274. <doc>
  275. <![CDATA[Add a configuration resource.
  276. The properties of this resource will override properties of previously
  277. added resources, unless they were marked <a href="#Final">final</a>.
  278. @param file file-path of resource to be added, the local filesystem is
  279. examined directly to find the resource, without referring to
  280. the classpath.]]>
  281. </doc>
  282. </method>
  283. <method name="addResource"
  284. abstract="false" native="false" synchronized="false"
  285. static="false" final="false" visibility="public"
  286. deprecated="not deprecated">
  287. <param name="in" type="java.io.InputStream"/>
  288. <doc>
  289. <![CDATA[Add a configuration resource.
  290. The properties of this resource will override properties of previously
  291. added resources, unless they were marked <a href="#Final">final</a>.
  292. @param in InputStream to deserialize the object from.]]>
  293. </doc>
  294. </method>
  295. <method name="reloadConfiguration"
  296. abstract="false" native="false" synchronized="true"
  297. static="false" final="false" visibility="public"
  298. deprecated="not deprecated">
  299. <doc>
  300. <![CDATA[Reload configuration from previously added resources.
  301. This method will clear all the configuration read from the added
  302. resources, and final parameters. This will make the resources to
  303. be read again before accessing the values. Values that are added
  304. via set methods will overlay values read from the resources.]]>
  305. </doc>
  306. </method>
  307. <method name="get" return="java.lang.String"
  308. abstract="false" native="false" synchronized="false"
  309. static="false" final="false" visibility="public"
  310. deprecated="not deprecated">
  311. <param name="name" type="java.lang.String"/>
  312. <doc>
  313. <![CDATA[Get the value of the <code>name</code> property, <code>null</code> if
  314. no such property exists.
  315. Values are processed for <a href="#VariableExpansion">variable expansion</a>
  316. before being returned.
  317. @param name the property name.
  318. @return the value of the <code>name</code> property,
  319. or null if no such property exists.]]>
  320. </doc>
  321. </method>
  322. <method name="getRaw" return="java.lang.String"
  323. abstract="false" native="false" synchronized="false"
  324. static="false" final="false" visibility="public"
  325. deprecated="not deprecated">
  326. <param name="name" type="java.lang.String"/>
  327. <doc>
  328. <![CDATA[Get the value of the <code>name</code> property, without doing
  329. <a href="#VariableExpansion">variable expansion</a>.
  330. @param name the property name.
  331. @return the value of the <code>name</code> property,
  332. or null if no such property exists.]]>
  333. </doc>
  334. </method>
  335. <method name="set"
  336. abstract="false" native="false" synchronized="false"
  337. static="false" final="false" visibility="public"
  338. deprecated="not deprecated">
  339. <param name="name" type="java.lang.String"/>
  340. <param name="value" type="java.lang.String"/>
  341. <doc>
  342. <![CDATA[Set the <code>value</code> of the <code>name</code> property.
  343. @param name property name.
  344. @param value property value.]]>
  345. </doc>
  346. </method>
  347. <method name="unset"
  348. abstract="false" native="false" synchronized="true"
  349. static="false" final="false" visibility="public"
  350. deprecated="not deprecated">
  351. <param name="name" type="java.lang.String"/>
  352. <doc>
  353. <![CDATA[Unset a previously set property.]]>
  354. </doc>
  355. </method>
  356. <method name="setIfUnset"
  357. abstract="false" native="false" synchronized="false"
  358. static="false" final="false" visibility="public"
  359. deprecated="not deprecated">
  360. <param name="name" type="java.lang.String"/>
  361. <param name="value" type="java.lang.String"/>
  362. <doc>
  363. <![CDATA[Sets a property if it is currently unset.
  364. @param name the property name
  365. @param value the new value]]>
  366. </doc>
  367. </method>
  368. <method name="get" return="java.lang.String"
  369. abstract="false" native="false" synchronized="false"
  370. static="false" final="false" visibility="public"
  371. deprecated="not deprecated">
  372. <param name="name" type="java.lang.String"/>
  373. <param name="defaultValue" type="java.lang.String"/>
  374. <doc>
  375. <![CDATA[Get the value of the <code>name</code> property. If no such property
  376. exists, then <code>defaultValue</code> is returned.
  377. @param name property name.
  378. @param defaultValue default value.
  379. @return property value, or <code>defaultValue</code> if the property
  380. doesn't exist.]]>
  381. </doc>
  382. </method>
  383. <method name="getInt" return="int"
  384. abstract="false" native="false" synchronized="false"
  385. static="false" final="false" visibility="public"
  386. deprecated="not deprecated">
  387. <param name="name" type="java.lang.String"/>
  388. <param name="defaultValue" type="int"/>
  389. <doc>
  390. <![CDATA[Get the value of the <code>name</code> property as an <code>int</code>.
  391. If no such property exists, or if the specified value is not a valid
  392. <code>int</code>, then <code>defaultValue</code> is returned.
  393. @param name property name.
  394. @param defaultValue default value.
  395. @return property value as an <code>int</code>,
  396. or <code>defaultValue</code>.]]>
  397. </doc>
  398. </method>
  399. <method name="setInt"
  400. abstract="false" native="false" synchronized="false"
  401. static="false" final="false" visibility="public"
  402. deprecated="not deprecated">
  403. <param name="name" type="java.lang.String"/>
  404. <param name="value" type="int"/>
  405. <doc>
  406. <![CDATA[Set the value of the <code>name</code> property to an <code>int</code>.
  407. @param name property name.
  408. @param value <code>int</code> value of the property.]]>
  409. </doc>
  410. </method>
  411. <method name="getLong" return="long"
  412. abstract="false" native="false" synchronized="false"
  413. static="false" final="false" visibility="public"
  414. deprecated="not deprecated">
  415. <param name="name" type="java.lang.String"/>
  416. <param name="defaultValue" type="long"/>
  417. <doc>
  418. <![CDATA[Get the value of the <code>name</code> property as a <code>long</code>.
  419. If no such property is specified, or if the specified value is not a valid
  420. <code>long</code>, then <code>defaultValue</code> is returned.
  421. @param name property name.
  422. @param defaultValue default value.
  423. @return property value as a <code>long</code>,
  424. or <code>defaultValue</code>.]]>
  425. </doc>
  426. </method>
  427. <method name="setLong"
  428. abstract="false" native="false" synchronized="false"
  429. static="false" final="false" visibility="public"
  430. deprecated="not deprecated">
  431. <param name="name" type="java.lang.String"/>
  432. <param name="value" type="long"/>
  433. <doc>
  434. <![CDATA[Set the value of the <code>name</code> property to a <code>long</code>.
  435. @param name property name.
  436. @param value <code>long</code> value of the property.]]>
  437. </doc>
  438. </method>
  439. <method name="getFloat" return="float"
  440. abstract="false" native="false" synchronized="false"
  441. static="false" final="false" visibility="public"
  442. deprecated="not deprecated">
  443. <param name="name" type="java.lang.String"/>
  444. <param name="defaultValue" type="float"/>
  445. <doc>
  446. <![CDATA[Get the value of the <code>name</code> property as a <code>float</code>.
  447. If no such property is specified, or if the specified value is not a valid
  448. <code>float</code>, then <code>defaultValue</code> is returned.
  449. @param name property name.
  450. @param defaultValue default value.
  451. @return property value as a <code>float</code>,
  452. or <code>defaultValue</code>.]]>
  453. </doc>
  454. </method>
  455. <method name="setFloat"
  456. abstract="false" native="false" synchronized="false"
  457. static="false" final="false" visibility="public"
  458. deprecated="not deprecated">
  459. <param name="name" type="java.lang.String"/>
  460. <param name="value" type="float"/>
  461. <doc>
  462. <![CDATA[Set the value of the <code>name</code> property to a <code>float</code>.
  463. @param name property name.
  464. @param value property value.]]>
  465. </doc>
  466. </method>
  467. <method name="getBoolean" return="boolean"
  468. abstract="false" native="false" synchronized="false"
  469. static="false" final="false" visibility="public"
  470. deprecated="not deprecated">
  471. <param name="name" type="java.lang.String"/>
  472. <param name="defaultValue" type="boolean"/>
  473. <doc>
  474. <![CDATA[Get the value of the <code>name</code> property as a <code>boolean</code>.
  475. If no such property is specified, or if the specified value is not a valid
  476. <code>boolean</code>, then <code>defaultValue</code> is returned.
  477. @param name property name.
  478. @param defaultValue default value.
  479. @return property value as a <code>boolean</code>,
  480. or <code>defaultValue</code>.]]>
  481. </doc>
  482. </method>
  483. <method name="setBoolean"
  484. abstract="false" native="false" synchronized="false"
  485. static="false" final="false" visibility="public"
  486. deprecated="not deprecated">
  487. <param name="name" type="java.lang.String"/>
  488. <param name="value" type="boolean"/>
  489. <doc>
  490. <![CDATA[Set the value of the <code>name</code> property to a <code>boolean</code>.
  491. @param name property name.
  492. @param value <code>boolean</code> value of the property.]]>
  493. </doc>
  494. </method>
  495. <method name="setBooleanIfUnset"
  496. abstract="false" native="false" synchronized="false"
  497. static="false" final="false" visibility="public"
  498. deprecated="not deprecated">
  499. <param name="name" type="java.lang.String"/>
  500. <param name="value" type="boolean"/>
  501. <doc>
  502. <![CDATA[Set the given property, if it is currently unset.
  503. @param name property name
  504. @param value new value]]>
  505. </doc>
  506. </method>
  507. <method name="setEnum"
  508. abstract="false" native="false" synchronized="false"
  509. static="false" final="false" visibility="public"
  510. deprecated="not deprecated">
  511. <param name="name" type="java.lang.String"/>
  512. <param name="value" type="java.lang.Enum"/>
  513. <doc>
  514. <![CDATA[Set the value of the <code>name</code> property to the given type. This
  515. is equivalent to <code>set(&lt;name&gt;, value.toString())</code>.
  516. @param name property name
  517. @param value new value]]>
  518. </doc>
  519. </method>
  520. <method name="getEnum" return="java.lang.Enum"
  521. abstract="false" native="false" synchronized="false"
  522. static="false" final="false" visibility="public"
  523. deprecated="not deprecated">
  524. <param name="name" type="java.lang.String"/>
  525. <param name="defaultValue" type="java.lang.Enum"/>
  526. <doc>
  527. <![CDATA[Return value matching this enumerated type.
  528. @param name Property name
  529. @param defaultValue Value returned if no mapping exists
  530. @throws IllegalArgumentException If mapping is illegal for the type
  531. provided]]>
  532. </doc>
  533. </method>
  534. <method name="getRange" return="org.apache.hadoop.conf.Configuration.IntegerRanges"
  535. abstract="false" native="false" synchronized="false"
  536. static="false" final="false" visibility="public"
  537. deprecated="not deprecated">
  538. <param name="name" type="java.lang.String"/>
  539. <param name="defaultValue" type="java.lang.String"/>
  540. <doc>
  541. <![CDATA[Parse the given attribute as a set of integer ranges
  542. @param name the attribute name
  543. @param defaultValue the default value if it is not set
  544. @return a new set of ranges from the configured value]]>
  545. </doc>
  546. </method>
  547. <method name="getStringCollection" return="java.util.Collection"
  548. abstract="false" native="false" synchronized="false"
  549. static="false" final="false" visibility="public"
  550. deprecated="not deprecated">
  551. <param name="name" type="java.lang.String"/>
  552. <doc>
  553. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  554. a collection of <code>String</code>s.
  555. If no such property is specified then empty collection is returned.
  556. <p>
  557. This is an optimized version of {@link #getStrings(String)}
  558. @param name property name.
  559. @return property value as a collection of <code>String</code>s.]]>
  560. </doc>
  561. </method>
  562. <method name="getStrings" return="java.lang.String[]"
  563. abstract="false" native="false" synchronized="false"
  564. static="false" final="false" visibility="public"
  565. deprecated="not deprecated">
  566. <param name="name" type="java.lang.String"/>
  567. <doc>
  568. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  569. an array of <code>String</code>s.
  570. If no such property is specified then <code>null</code> is returned.
  571. @param name property name.
  572. @return property value as an array of <code>String</code>s,
  573. or <code>null</code>.]]>
  574. </doc>
  575. </method>
  576. <method name="getStrings" return="java.lang.String[]"
  577. abstract="false" native="false" synchronized="false"
  578. static="false" final="false" visibility="public"
  579. deprecated="not deprecated">
  580. <param name="name" type="java.lang.String"/>
  581. <param name="defaultValue" type="java.lang.String[]"/>
  582. <doc>
  583. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  584. an array of <code>String</code>s.
  585. If no such property is specified then default value is returned.
  586. @param name property name.
  587. @param defaultValue The default value
  588. @return property value as an array of <code>String</code>s,
  589. or default value.]]>
  590. </doc>
  591. </method>
  592. <method name="setStrings"
  593. abstract="false" native="false" synchronized="false"
  594. static="false" final="false" visibility="public"
  595. deprecated="not deprecated">
  596. <param name="name" type="java.lang.String"/>
  597. <param name="values" type="java.lang.String[]"/>
  598. <doc>
  599. <![CDATA[Set the array of string values for the <code>name</code> property as
  600. as comma delimited values.
  601. @param name property name.
  602. @param values The values]]>
  603. </doc>
  604. </method>
  605. <method name="getClassByName" return="java.lang.Class"
  606. abstract="false" native="false" synchronized="false"
  607. static="false" final="false" visibility="public"
  608. deprecated="not deprecated">
  609. <param name="name" type="java.lang.String"/>
  610. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  611. <doc>
  612. <![CDATA[Load a class by name.
  613. @param name the class name.
  614. @return the class object.
  615. @throws ClassNotFoundException if the class is not found.]]>
  616. </doc>
  617. </method>
  618. <method name="getClasses" return="java.lang.Class[]"
  619. abstract="false" native="false" synchronized="false"
  620. static="false" final="false" visibility="public"
  621. deprecated="not deprecated">
  622. <param name="name" type="java.lang.String"/>
  623. <param name="defaultValue" type="java.lang.Class[]"/>
  624. <doc>
  625. <![CDATA[Get the value of the <code>name</code> property
  626. as an array of <code>Class</code>.
  627. The value of the property specifies a list of comma separated class names.
  628. If no such property is specified, then <code>defaultValue</code> is
  629. returned.
  630. @param name the property name.
  631. @param defaultValue default value.
  632. @return property value as a <code>Class[]</code>,
  633. or <code>defaultValue</code>.]]>
  634. </doc>
  635. </method>
  636. <method name="getClass" return="java.lang.Class"
  637. abstract="false" native="false" synchronized="false"
  638. static="false" final="false" visibility="public"
  639. deprecated="not deprecated">
  640. <param name="name" type="java.lang.String"/>
  641. <param name="defaultValue" type="java.lang.Class"/>
  642. <doc>
  643. <![CDATA[Get the value of the <code>name</code> property as a <code>Class</code>.
  644. If no such property is specified, then <code>defaultValue</code> is
  645. returned.
  646. @param name the class name.
  647. @param defaultValue default value.
  648. @return property value as a <code>Class</code>,
  649. or <code>defaultValue</code>.]]>
  650. </doc>
  651. </method>
  652. <method name="getClass" return="java.lang.Class"
  653. abstract="false" native="false" synchronized="false"
  654. static="false" final="false" visibility="public"
  655. deprecated="not deprecated">
  656. <param name="name" type="java.lang.String"/>
  657. <param name="defaultValue" type="java.lang.Class"/>
  658. <param name="xface" type="java.lang.Class"/>
  659. <doc>
  660. <![CDATA[Get the value of the <code>name</code> property as a <code>Class</code>
  661. implementing the interface specified by <code>xface</code>.
  662. If no such property is specified, then <code>defaultValue</code> is
  663. returned.
  664. An exception is thrown if the returned class does not implement the named
  665. interface.
  666. @param name the class name.
  667. @param defaultValue default value.
  668. @param xface the interface implemented by the named class.
  669. @return property value as a <code>Class</code>,
  670. or <code>defaultValue</code>.]]>
  671. </doc>
  672. </method>
  673. <method name="getInstances" return="java.util.List"
  674. abstract="false" native="false" synchronized="false"
  675. static="false" final="false" visibility="public"
  676. deprecated="not deprecated">
  677. <param name="name" type="java.lang.String"/>
  678. <param name="xface" type="java.lang.Class"/>
  679. <doc>
  680. <![CDATA[Get the value of the <code>name</code> property as a <code>List</code>
  681. of objects implementing the interface specified by <code>xface</code>.
  682. An exception is thrown if any of the classes does not exist, or if it does
  683. not implement the named interface.
  684. @param name the property name.
  685. @param xface the interface implemented by the classes named by
  686. <code>name</code>.
  687. @return a <code>List</code> of objects implementing <code>xface</code>.]]>
  688. </doc>
  689. </method>
  690. <method name="setClass"
  691. abstract="false" native="false" synchronized="false"
  692. static="false" final="false" visibility="public"
  693. deprecated="not deprecated">
  694. <param name="name" type="java.lang.String"/>
  695. <param name="theClass" type="java.lang.Class"/>
  696. <param name="xface" type="java.lang.Class"/>
  697. <doc>
  698. <![CDATA[Set the value of the <code>name</code> property to the name of a
  699. <code>theClass</code> implementing the given interface <code>xface</code>.
  700. An exception is thrown if <code>theClass</code> does not implement the
  701. interface <code>xface</code>.
  702. @param name property name.
  703. @param theClass property value.
  704. @param xface the interface implemented by the named class.]]>
  705. </doc>
  706. </method>
  707. <method name="getLocalPath" return="org.apache.hadoop.fs.Path"
  708. abstract="false" native="false" synchronized="false"
  709. static="false" final="false" visibility="public"
  710. deprecated="not deprecated">
  711. <param name="dirsProp" type="java.lang.String"/>
  712. <param name="path" type="java.lang.String"/>
  713. <exception name="IOException" type="java.io.IOException"/>
  714. <doc>
  715. <![CDATA[Get a local file under a directory named by <i>dirsProp</i> with
  716. the given <i>path</i>. If <i>dirsProp</i> contains multiple directories,
  717. then one is chosen based on <i>path</i>'s hash code. If the selected
  718. directory does not exist, an attempt is made to create it.
  719. @param dirsProp directory in which to locate the file.
  720. @param path file-path.
  721. @return local file under the directory with the given path.]]>
  722. </doc>
  723. </method>
  724. <method name="getFile" return="java.io.File"
  725. abstract="false" native="false" synchronized="false"
  726. static="false" final="false" visibility="public"
  727. deprecated="not deprecated">
  728. <param name="dirsProp" type="java.lang.String"/>
  729. <param name="path" type="java.lang.String"/>
  730. <exception name="IOException" type="java.io.IOException"/>
  731. <doc>
  732. <![CDATA[Get a local file name under a directory named in <i>dirsProp</i> with
  733. the given <i>path</i>. If <i>dirsProp</i> contains multiple directories,
  734. then one is chosen based on <i>path</i>'s hash code. If the selected
  735. directory does not exist, an attempt is made to create it.
  736. @param dirsProp directory in which to locate the file.
  737. @param path file-path.
  738. @return local file under the directory with the given path.]]>
  739. </doc>
  740. </method>
  741. <method name="getResource" return="java.net.URL"
  742. abstract="false" native="false" synchronized="false"
  743. static="false" final="false" visibility="public"
  744. deprecated="not deprecated">
  745. <param name="name" type="java.lang.String"/>
  746. <doc>
  747. <![CDATA[Get the {@link URL} for the named resource.
  748. @param name resource name.
  749. @return the url for the named resource.]]>
  750. </doc>
  751. </method>
  752. <method name="getConfResourceAsInputStream" return="java.io.InputStream"
  753. abstract="false" native="false" synchronized="false"
  754. static="false" final="false" visibility="public"
  755. deprecated="not deprecated">
  756. <param name="name" type="java.lang.String"/>
  757. <doc>
  758. <![CDATA[Get an input stream attached to the configuration resource with the
  759. given <code>name</code>.
  760. @param name configuration resource name.
  761. @return an input stream attached to the resource.]]>
  762. </doc>
  763. </method>
  764. <method name="getConfResourceAsReader" return="java.io.Reader"
  765. abstract="false" native="false" synchronized="false"
  766. static="false" final="false" visibility="public"
  767. deprecated="not deprecated">
  768. <param name="name" type="java.lang.String"/>
  769. <doc>
  770. <![CDATA[Get a {@link Reader} attached to the configuration resource with the
  771. given <code>name</code>.
  772. @param name configuration resource name.
  773. @return a reader attached to the resource.]]>
  774. </doc>
  775. </method>
  776. <method name="size" return="int"
  777. abstract="false" native="false" synchronized="false"
  778. static="false" final="false" visibility="public"
  779. deprecated="not deprecated">
  780. <doc>
  781. <![CDATA[Return the number of keys in the configuration.
  782. @return number of keys in the configuration.]]>
  783. </doc>
  784. </method>
  785. <method name="clear"
  786. abstract="false" native="false" synchronized="false"
  787. static="false" final="false" visibility="public"
  788. deprecated="not deprecated">
  789. <doc>
  790. <![CDATA[Clears all keys from the configuration.]]>
  791. </doc>
  792. </method>
  793. <method name="iterator" return="java.util.Iterator"
  794. abstract="false" native="false" synchronized="false"
  795. static="false" final="false" visibility="public"
  796. deprecated="not deprecated">
  797. <doc>
  798. <![CDATA[Get an {@link Iterator} to go through the list of <code>String</code>
  799. key-value pairs in the configuration.
  800. @return an iterator over the entries.]]>
  801. </doc>
  802. </method>
  803. <method name="writeXml"
  804. abstract="false" native="false" synchronized="false"
  805. static="false" final="false" visibility="public"
  806. deprecated="not deprecated">
  807. <param name="out" type="java.io.OutputStream"/>
  808. <exception name="IOException" type="java.io.IOException"/>
  809. <doc>
  810. <![CDATA[Write out the non-default properties in this configuration to the given
  811. {@link OutputStream}.
  812. @param out the output stream to write to.]]>
  813. </doc>
  814. </method>
  815. <method name="writeXml"
  816. abstract="false" native="false" synchronized="false"
  817. static="false" final="false" visibility="public"
  818. deprecated="not deprecated">
  819. <param name="out" type="java.io.Writer"/>
  820. <exception name="IOException" type="java.io.IOException"/>
  821. <doc>
  822. <![CDATA[Write out the non-default properties in this configuration to the given
  823. {@link Writer}.
  824. @param out the writer to write to.]]>
  825. </doc>
  826. </method>
  827. <method name="dumpConfiguration"
  828. abstract="false" native="false" synchronized="false"
  829. static="true" final="false" visibility="public"
  830. deprecated="not deprecated">
  831. <param name="config" type="org.apache.hadoop.conf.Configuration"/>
  832. <param name="out" type="java.io.Writer"/>
  833. <exception name="IOException" type="java.io.IOException"/>
  834. <doc>
  835. <![CDATA[Writes out all the parameters and their properties (final and resource) to
  836. the given {@link Writer}
  837. The format of the output would be
  838. { "properties" : [ {key1,value1,key1.isFinal,key1.resource}, {key2,value2,
  839. key2.isFinal,key2.resource}... ] }
  840. It does not output the parameters of the configuration object which is
  841. loaded from an input stream.
  842. @param out the Writer to write to
  843. @throws IOException]]>
  844. </doc>
  845. </method>
  846. <method name="getClassLoader" return="java.lang.ClassLoader"
  847. abstract="false" native="false" synchronized="false"
  848. static="false" final="false" visibility="public"
  849. deprecated="not deprecated">
  850. <doc>
  851. <![CDATA[Get the {@link ClassLoader} for this job.
  852. @return the correct class loader.]]>
  853. </doc>
  854. </method>
  855. <method name="setClassLoader"
  856. abstract="false" native="false" synchronized="false"
  857. static="false" final="false" visibility="public"
  858. deprecated="not deprecated">
  859. <param name="classLoader" type="java.lang.ClassLoader"/>
  860. <doc>
  861. <![CDATA[Set the class loader that will be used to load the various objects.
  862. @param classLoader the new class loader.]]>
  863. </doc>
  864. </method>
  865. <method name="toString" return="java.lang.String"
  866. abstract="false" native="false" synchronized="false"
  867. static="false" final="false" visibility="public"
  868. deprecated="not deprecated">
  869. </method>
  870. <method name="setQuietMode"
  871. abstract="false" native="false" synchronized="true"
  872. static="false" final="false" visibility="public"
  873. deprecated="not deprecated">
  874. <param name="quietmode" type="boolean"/>
  875. <doc>
  876. <![CDATA[Set the quietness-mode.
  877. In the quiet-mode, error and informational messages might not be logged.
  878. @param quietmode <code>true</code> to set quiet-mode on, <code>false</code>
  879. to turn it off.]]>
  880. </doc>
  881. </method>
  882. <method name="main"
  883. abstract="false" native="false" synchronized="false"
  884. static="true" final="false" visibility="public"
  885. deprecated="not deprecated">
  886. <param name="args" type="java.lang.String[]"/>
  887. <exception name="Exception" type="java.lang.Exception"/>
  888. <doc>
  889. <![CDATA[For debugging. List non-default properties to the terminal and exit.]]>
  890. </doc>
  891. </method>
  892. <method name="readFields"
  893. abstract="false" native="false" synchronized="false"
  894. static="false" final="false" visibility="public"
  895. deprecated="not deprecated">
  896. <param name="in" type="java.io.DataInput"/>
  897. <exception name="IOException" type="java.io.IOException"/>
  898. </method>
  899. <method name="write"
  900. abstract="false" native="false" synchronized="false"
  901. static="false" final="false" visibility="public"
  902. deprecated="not deprecated">
  903. <param name="out" type="java.io.DataOutput"/>
  904. <exception name="IOException" type="java.io.IOException"/>
  905. </method>
  906. <method name="getValByRegex" return="java.util.Map"
  907. abstract="false" native="false" synchronized="false"
  908. static="false" final="false" visibility="public"
  909. deprecated="not deprecated">
  910. <param name="regex" type="java.lang.String"/>
  911. <doc>
  912. <![CDATA[get keys matching the the regex
  913. @param regex
  914. @return Map<String,String> with matching keys]]>
  915. </doc>
  916. </method>
  917. <doc>
  918. <![CDATA[Provides access to configuration parameters.
  919. <h4 id="Resources">Resources</h4>
  920. <p>Configurations are specified by resources. A resource contains a set of
  921. name/value pairs as XML data. Each resource is named by either a
  922. <code>String</code> or by a {@link Path}. If named by a <code>String</code>,
  923. then the classpath is examined for a file with that name. If named by a
  924. <code>Path</code>, then the local filesystem is examined directly, without
  925. referring to the classpath.
  926. <p>Unless explicitly turned off, Hadoop by default specifies two
  927. resources, loaded in-order from the classpath: <ol>
  928. <li><tt><a href="{@docRoot}/../core-default.html">core-default.xml</a>
  929. </tt>: Read-only defaults for hadoop.</li>
  930. <li><tt>core-site.xml</tt>: Site-specific configuration for a given hadoop
  931. installation.</li>
  932. </ol>
  933. Applications may add additional resources, which are loaded
  934. subsequent to these resources in the order they are added.
  935. <h4 id="FinalParams">Final Parameters</h4>
  936. <p>Configuration parameters may be declared <i>final</i>.
  937. Once a resource declares a value final, no subsequently-loaded
  938. resource can alter that value.
  939. For example, one might define a final parameter with:
  940. <tt><pre>
  941. &lt;property&gt;
  942. &lt;name&gt;dfs.client.buffer.dir&lt;/name&gt;
  943. &lt;value&gt;/tmp/hadoop/dfs/client&lt;/value&gt;
  944. <b>&lt;final&gt;true&lt;/final&gt;</b>
  945. &lt;/property&gt;</pre></tt>
  946. Administrators typically define parameters as final in
  947. <tt>core-site.xml</tt> for values that user applications may not alter.
  948. <h4 id="VariableExpansion">Variable Expansion</h4>
  949. <p>Value strings are first processed for <i>variable expansion</i>. The
  950. available properties are:<ol>
  951. <li>Other properties defined in this Configuration; and, if a name is
  952. undefined here,</li>
  953. <li>Properties in {@link System#getProperties()}.</li>
  954. </ol>
  955. <p>For example, if a configuration resource contains the following property
  956. definitions:
  957. <tt><pre>
  958. &lt;property&gt;
  959. &lt;name&gt;basedir&lt;/name&gt;
  960. &lt;value&gt;/user/${<i>user.name</i>}&lt;/value&gt;
  961. &lt;/property&gt;
  962. &lt;property&gt;
  963. &lt;name&gt;tempdir&lt;/name&gt;
  964. &lt;value&gt;${<i>basedir</i>}/tmp&lt;/value&gt;
  965. &lt;/property&gt;</pre></tt>
  966. When <tt>conf.get("tempdir")</tt> is called, then <tt>${<i>basedir</i>}</tt>
  967. will be resolved to another property in this Configuration, while
  968. <tt>${<i>user.name</i>}</tt> would then ordinarily be resolved to the value
  969. of the System property with that name.]]>
  970. </doc>
  971. </class>
  972. <!-- end class org.apache.hadoop.conf.Configuration -->
  973. <!-- start class org.apache.hadoop.conf.Configuration.IntegerRanges -->
  974. <class name="Configuration.IntegerRanges" extends="java.lang.Object"
  975. abstract="false"
  976. static="true" final="false" visibility="public"
  977. deprecated="not deprecated">
  978. <constructor name="Configuration.IntegerRanges"
  979. static="false" final="false" visibility="public"
  980. deprecated="not deprecated">
  981. </constructor>
  982. <constructor name="Configuration.IntegerRanges" type="java.lang.String"
  983. static="false" final="false" visibility="public"
  984. deprecated="not deprecated">
  985. </constructor>
  986. <method name="isIncluded" return="boolean"
  987. abstract="false" native="false" synchronized="false"
  988. static="false" final="false" visibility="public"
  989. deprecated="not deprecated">
  990. <param name="value" type="int"/>
  991. <doc>
  992. <![CDATA[Is the given value in the set of ranges
  993. @param value the value to check
  994. @return is the value in the ranges?]]>
  995. </doc>
  996. </method>
  997. <method name="toString" return="java.lang.String"
  998. abstract="false" native="false" synchronized="false"
  999. static="false" final="false" visibility="public"
  1000. deprecated="not deprecated">
  1001. </method>
  1002. <doc>
  1003. <![CDATA[A class that represents a set of positive integer ranges. It parses
  1004. strings of the form: "2-3,5,7-" where ranges are separated by comma and
  1005. the lower/upper bounds are separated by dash. Either the lower or upper
  1006. bound may be omitted meaning all values up to or over. So the string
  1007. above means 2, 3, 5, and 7, 8, 9, ...]]>
  1008. </doc>
  1009. </class>
  1010. <!-- end class org.apache.hadoop.conf.Configuration.IntegerRanges -->
  1011. <!-- start class org.apache.hadoop.conf.Configured -->
  1012. <class name="Configured" extends="java.lang.Object"
  1013. abstract="false"
  1014. static="false" final="false" visibility="public"
  1015. deprecated="not deprecated">
  1016. <implements name="org.apache.hadoop.conf.Configurable"/>
  1017. <constructor name="Configured"
  1018. static="false" final="false" visibility="public"
  1019. deprecated="not deprecated">
  1020. <doc>
  1021. <![CDATA[Construct a Configured.]]>
  1022. </doc>
  1023. </constructor>
  1024. <constructor name="Configured" type="org.apache.hadoop.conf.Configuration"
  1025. static="false" final="false" visibility="public"
  1026. deprecated="not deprecated">
  1027. <doc>
  1028. <![CDATA[Construct a Configured.]]>
  1029. </doc>
  1030. </constructor>
  1031. <method name="setConf"
  1032. abstract="false" native="false" synchronized="false"
  1033. static="false" final="false" visibility="public"
  1034. deprecated="not deprecated">
  1035. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1036. </method>
  1037. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  1038. abstract="false" native="false" synchronized="false"
  1039. static="false" final="false" visibility="public"
  1040. deprecated="not deprecated">
  1041. </method>
  1042. <doc>
  1043. <![CDATA[Base class for things that may be configured with a {@link Configuration}.]]>
  1044. </doc>
  1045. </class>
  1046. <!-- end class org.apache.hadoop.conf.Configured -->
  1047. <!-- start class org.apache.hadoop.conf.ConfServlet -->
  1048. <class name="ConfServlet" extends="javax.servlet.http.HttpServlet"
  1049. abstract="false"
  1050. static="false" final="false" visibility="public"
  1051. deprecated="not deprecated">
  1052. <constructor name="ConfServlet"
  1053. static="false" final="false" visibility="public"
  1054. deprecated="not deprecated">
  1055. </constructor>
  1056. <method name="doGet"
  1057. abstract="false" native="false" synchronized="false"
  1058. static="false" final="false" visibility="public"
  1059. deprecated="not deprecated">
  1060. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  1061. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  1062. <exception name="ServletException" type="javax.servlet.ServletException"/>
  1063. <exception name="IOException" type="java.io.IOException"/>
  1064. </method>
  1065. <doc>
  1066. <![CDATA[A servlet to print out the running configuration data.]]>
  1067. </doc>
  1068. </class>
  1069. <!-- end class org.apache.hadoop.conf.ConfServlet -->
  1070. <!-- start class org.apache.hadoop.conf.ConfServlet.BadFormatException -->
  1071. <class name="ConfServlet.BadFormatException" extends="java.lang.Exception"
  1072. abstract="false"
  1073. static="true" final="false" visibility="public"
  1074. deprecated="not deprecated">
  1075. <constructor name="ConfServlet.BadFormatException" type="java.lang.String"
  1076. static="false" final="false" visibility="public"
  1077. deprecated="not deprecated">
  1078. </constructor>
  1079. </class>
  1080. <!-- end class org.apache.hadoop.conf.ConfServlet.BadFormatException -->
  1081. </package>
  1082. <package name="org.apache.hadoop.fs">
  1083. <!-- start class org.apache.hadoop.fs.BlockLocation -->
  1084. <class name="BlockLocation" extends="java.lang.Object"
  1085. abstract="false"
  1086. static="false" final="false" visibility="public"
  1087. deprecated="not deprecated">
  1088. <implements name="org.apache.hadoop.io.Writable"/>
  1089. <constructor name="BlockLocation"
  1090. static="false" final="false" visibility="public"
  1091. deprecated="not deprecated">
  1092. <doc>
  1093. <![CDATA[Default Constructor]]>
  1094. </doc>
  1095. </constructor>
  1096. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], long, long"
  1097. static="false" final="false" visibility="public"
  1098. deprecated="not deprecated">
  1099. <doc>
  1100. <![CDATA[Constructor with host, name, offset and length]]>
  1101. </doc>
  1102. </constructor>
  1103. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], java.lang.String[], long, long"
  1104. static="false" final="false" visibility="public"
  1105. deprecated="not deprecated">
  1106. <doc>
  1107. <![CDATA[Constructor with host, name, network topology, offset and length]]>
  1108. </doc>
  1109. </constructor>
  1110. <method name="getHosts" return="java.lang.String[]"
  1111. abstract="false" native="false" synchronized="false"
  1112. static="false" final="false" visibility="public"
  1113. deprecated="not deprecated">
  1114. <exception name="IOException" type="java.io.IOException"/>
  1115. <doc>
  1116. <![CDATA[Get the list of hosts (hostname) hosting this block]]>
  1117. </doc>
  1118. </method>
  1119. <method name="getNames" return="java.lang.String[]"
  1120. abstract="false" native="false" synchronized="false"
  1121. static="false" final="false" visibility="public"
  1122. deprecated="not deprecated">
  1123. <exception name="IOException" type="java.io.IOException"/>
  1124. <doc>
  1125. <![CDATA[Get the list of names (hostname:port) hosting this block]]>
  1126. </doc>
  1127. </method>
  1128. <method name="getTopologyPaths" return="java.lang.String[]"
  1129. abstract="false" native="false" synchronized="false"
  1130. static="false" final="false" visibility="public"
  1131. deprecated="not deprecated">
  1132. <exception name="IOException" type="java.io.IOException"/>
  1133. <doc>
  1134. <![CDATA[Get the list of network topology paths for each of the hosts.
  1135. The last component of the path is the host.]]>
  1136. </doc>
  1137. </method>
  1138. <method name="getOffset" return="long"
  1139. abstract="false" native="false" synchronized="false"
  1140. static="false" final="false" visibility="public"
  1141. deprecated="not deprecated">
  1142. <doc>
  1143. <![CDATA[Get the start offset of file associated with this block]]>
  1144. </doc>
  1145. </method>
  1146. <method name="getLength" return="long"
  1147. abstract="false" native="false" synchronized="false"
  1148. static="false" final="false" visibility="public"
  1149. deprecated="not deprecated">
  1150. <doc>
  1151. <![CDATA[Get the length of the block]]>
  1152. </doc>
  1153. </method>
  1154. <method name="setOffset"
  1155. abstract="false" native="false" synchronized="false"
  1156. static="false" final="false" visibility="public"
  1157. deprecated="not deprecated">
  1158. <param name="offset" type="long"/>
  1159. <doc>
  1160. <![CDATA[Set the start offset of file associated with this block]]>
  1161. </doc>
  1162. </method>
  1163. <method name="setLength"
  1164. abstract="false" native="false" synchronized="false"
  1165. static="false" final="false" visibility="public"
  1166. deprecated="not deprecated">
  1167. <param name="length" type="long"/>
  1168. <doc>
  1169. <![CDATA[Set the length of block]]>
  1170. </doc>
  1171. </method>
  1172. <method name="setHosts"
  1173. abstract="false" native="false" synchronized="false"
  1174. static="false" final="false" visibility="public"
  1175. deprecated="not deprecated">
  1176. <param name="hosts" type="java.lang.String[]"/>
  1177. <exception name="IOException" type="java.io.IOException"/>
  1178. <doc>
  1179. <![CDATA[Set the hosts hosting this block]]>
  1180. </doc>
  1181. </method>
  1182. <method name="setNames"
  1183. abstract="false" native="false" synchronized="false"
  1184. static="false" final="false" visibility="public"
  1185. deprecated="not deprecated">
  1186. <param name="names" type="java.lang.String[]"/>
  1187. <exception name="IOException" type="java.io.IOException"/>
  1188. <doc>
  1189. <![CDATA[Set the names (host:port) hosting this block]]>
  1190. </doc>
  1191. </method>
  1192. <method name="setTopologyPaths"
  1193. abstract="false" native="false" synchronized="false"
  1194. static="false" final="false" visibility="public"
  1195. deprecated="not deprecated">
  1196. <param name="topologyPaths" type="java.lang.String[]"/>
  1197. <exception name="IOException" type="java.io.IOException"/>
  1198. <doc>
  1199. <![CDATA[Set the network topology paths of the hosts]]>
  1200. </doc>
  1201. </method>
  1202. <method name="write"
  1203. abstract="false" native="false" synchronized="false"
  1204. static="false" final="false" visibility="public"
  1205. deprecated="not deprecated">
  1206. <param name="out" type="java.io.DataOutput"/>
  1207. <exception name="IOException" type="java.io.IOException"/>
  1208. <doc>
  1209. <![CDATA[Implement write of Writable]]>
  1210. </doc>
  1211. </method>
  1212. <method name="readFields"
  1213. abstract="false" native="false" synchronized="false"
  1214. static="false" final="false" visibility="public"
  1215. deprecated="not deprecated">
  1216. <param name="in" type="java.io.DataInput"/>
  1217. <exception name="IOException" type="java.io.IOException"/>
  1218. <doc>
  1219. <![CDATA[Implement readFields of Writable]]>
  1220. </doc>
  1221. </method>
  1222. <method name="toString" return="java.lang.String"
  1223. abstract="false" native="false" synchronized="false"
  1224. static="false" final="false" visibility="public"
  1225. deprecated="not deprecated">
  1226. </method>
  1227. </class>
  1228. <!-- end class org.apache.hadoop.fs.BlockLocation -->
  1229. <!-- start class org.apache.hadoop.fs.BufferedFSInputStream -->
  1230. <class name="BufferedFSInputStream" extends="java.io.BufferedInputStream"
  1231. abstract="false"
  1232. static="false" final="false" visibility="public"
  1233. deprecated="not deprecated">
  1234. <implements name="org.apache.hadoop.fs.Seekable"/>
  1235. <implements name="org.apache.hadoop.fs.PositionedReadable"/>
  1236. <implements name="org.apache.hadoop.fs.HasFileDescriptor"/>
  1237. <constructor name="BufferedFSInputStream" type="org.apache.hadoop.fs.FSInputStream, int"
  1238. static="false" final="false" visibility="public"
  1239. deprecated="not deprecated">
  1240. <doc>
  1241. <![CDATA[Creates a <code>BufferedFSInputStream</code>
  1242. with the specified buffer size,
  1243. and saves its argument, the input stream
  1244. <code>in</code>, for later use. An internal
  1245. buffer array of length <code>size</code>
  1246. is created and stored in <code>buf</code>.
  1247. @param in the underlying input stream.
  1248. @param size the buffer size.
  1249. @exception IllegalArgumentException if size <= 0.]]>
  1250. </doc>
  1251. </constructor>
  1252. <method name="getPos" return="long"
  1253. abstract="false" native="false" synchronized="false"
  1254. static="false" final="false" visibility="public"
  1255. deprecated="not deprecated">
  1256. <exception name="IOException" type="java.io.IOException"/>
  1257. </method>
  1258. <method name="skip" return="long"
  1259. abstract="false" native="false" synchronized="false"
  1260. static="false" final="false" visibility="public"
  1261. deprecated="not deprecated">
  1262. <param name="n" type="long"/>
  1263. <exception name="IOException" type="java.io.IOException"/>
  1264. </method>
  1265. <method name="seek"
  1266. abstract="false" native="false" synchronized="false"
  1267. static="false" final="false" visibility="public"
  1268. deprecated="not deprecated">
  1269. <param name="pos" type="long"/>
  1270. <exception name="IOException" type="java.io.IOException"/>
  1271. </method>
  1272. <method name="seekToNewSource" return="boolean"
  1273. abstract="false" native="false" synchronized="false"
  1274. static="false" final="false" visibility="public"
  1275. deprecated="not deprecated">
  1276. <param name="targetPos" type="long"/>
  1277. <exception name="IOException" type="java.io.IOException"/>
  1278. </method>
  1279. <method name="read" return="int"
  1280. abstract="false" native="false" synchronized="false"
  1281. static="false" final="false" visibility="public"
  1282. deprecated="not deprecated">
  1283. <param name="position" type="long"/>
  1284. <param name="buffer" type="byte[]"/>
  1285. <param name="offset" type="int"/>
  1286. <param name="length" type="int"/>
  1287. <exception name="IOException" type="java.io.IOException"/>
  1288. </method>
  1289. <method name="readFully"
  1290. abstract="false" native="false" synchronized="false"
  1291. static="false" final="false" visibility="public"
  1292. deprecated="not deprecated">
  1293. <param name="position" type="long"/>
  1294. <param name="buffer" type="byte[]"/>
  1295. <param name="offset" type="int"/>
  1296. <param name="length" type="int"/>
  1297. <exception name="IOException" type="java.io.IOException"/>
  1298. </method>
  1299. <method name="readFully"
  1300. abstract="false" native="false" synchronized="false"
  1301. static="false" final="false" visibility="public"
  1302. deprecated="not deprecated">
  1303. <param name="position" type="long"/>
  1304. <param name="buffer" type="byte[]"/>
  1305. <exception name="IOException" type="java.io.IOException"/>
  1306. </method>
  1307. <method name="getFileDescriptor" return="java.io.FileDescriptor"
  1308. abstract="false" native="false" synchronized="false"
  1309. static="false" final="false" visibility="public"
  1310. deprecated="not deprecated">
  1311. <exception name="IOException" type="java.io.IOException"/>
  1312. </method>
  1313. <doc>
  1314. <![CDATA[A class optimizes reading from FSInputStream by bufferring]]>
  1315. </doc>
  1316. </class>
  1317. <!-- end class org.apache.hadoop.fs.BufferedFSInputStream -->
  1318. <!-- start class org.apache.hadoop.fs.ChecksumException -->
  1319. <class name="ChecksumException" extends="java.io.IOException"
  1320. abstract="false"
  1321. static="false" final="false" visibility="public"
  1322. deprecated="not deprecated">
  1323. <constructor name="ChecksumException" type="java.lang.String, long"
  1324. static="false" final="false" visibility="public"
  1325. deprecated="not deprecated">
  1326. </constructor>
  1327. <method name="getPos" return="long"
  1328. abstract="false" native="false" synchronized="false"
  1329. static="false" final="false" visibility="public"
  1330. deprecated="not deprecated">
  1331. </method>
  1332. <doc>
  1333. <![CDATA[Thrown for checksum errors.]]>
  1334. </doc>
  1335. </class>
  1336. <!-- end class org.apache.hadoop.fs.ChecksumException -->
  1337. <!-- start class org.apache.hadoop.fs.ChecksumFileSystem -->
  1338. <class name="ChecksumFileSystem" extends="org.apache.hadoop.fs.FilterFileSystem"
  1339. abstract="true"
  1340. static="false" final="false" visibility="public"
  1341. deprecated="not deprecated">
  1342. <constructor name="ChecksumFileSystem" type="org.apache.hadoop.fs.FileSystem"
  1343. static="false" final="false" visibility="public"
  1344. deprecated="not deprecated">
  1345. </constructor>
  1346. <method name="getApproxChkSumLength" return="double"
  1347. abstract="false" native="false" synchronized="false"
  1348. static="true" final="false" visibility="public"
  1349. deprecated="not deprecated">
  1350. <param name="size" type="long"/>
  1351. </method>
  1352. <method name="setConf"
  1353. abstract="false" native="false" synchronized="false"
  1354. static="false" final="false" visibility="public"
  1355. deprecated="not deprecated">
  1356. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1357. </method>
  1358. <method name="setVerifyChecksum"
  1359. abstract="false" native="false" synchronized="false"
  1360. static="false" final="false" visibility="public"
  1361. deprecated="not deprecated">
  1362. <param name="verifyChecksum" type="boolean"/>
  1363. <doc>
  1364. <![CDATA[Set whether to verify checksum.]]>
  1365. </doc>
  1366. </method>
  1367. <method name="getRawFileSystem" return="org.apache.hadoop.fs.FileSystem"
  1368. abstract="false" native="false" synchronized="false"
  1369. static="false" final="false" visibility="public"
  1370. deprecated="not deprecated">
  1371. <doc>
  1372. <![CDATA[get the raw file system]]>
  1373. </doc>
  1374. </method>
  1375. <method name="getChecksumFile" return="org.apache.hadoop.fs.Path"
  1376. abstract="false" native="false" synchronized="false"
  1377. static="false" final="false" visibility="public"
  1378. deprecated="not deprecated">
  1379. <param name="file" type="org.apache.hadoop.fs.Path"/>
  1380. <doc>
  1381. <![CDATA[Return the name of the checksum file associated with a file.]]>
  1382. </doc>
  1383. </method>
  1384. <method name="isChecksumFile" return="boolean"
  1385. abstract="false" native="false" synchronized="false"
  1386. static="true" final="false" visibility="public"
  1387. deprecated="not deprecated">
  1388. <param name="file" type="org.apache.hadoop.fs.Path"/>
  1389. <doc>
  1390. <![CDATA[Return true iff file is a checksum file name.]]>
  1391. </doc>
  1392. </method>
  1393. <method name="getChecksumFileLength" return="long"
  1394. abstract="false" native="false" synchronized="false"
  1395. static="false" final="false" visibility="public"
  1396. deprecated="not deprecated">
  1397. <param name="file" type="org.apache.hadoop.fs.Path"/>
  1398. <param name="fileSize" type="long"/>
  1399. <doc>
  1400. <![CDATA[Return the length of the checksum file given the size of the
  1401. actual file.]]>
  1402. </doc>
  1403. </method>
  1404. <method name="getBytesPerSum" return="int"
  1405. abstract="false" native="false" synchronized="false"
  1406. static="false" final="false" visibility="public"
  1407. deprecated="not deprecated">
  1408. <doc>
  1409. <![CDATA[Return the bytes Per Checksum]]>
  1410. </doc>
  1411. </method>
  1412. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  1413. abstract="false" native="false" synchronized="false"
  1414. static="false" final="false" visibility="public"
  1415. deprecated="not deprecated">
  1416. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1417. <param name="bufferSize" type="int"/>
  1418. <exception name="IOException" type="java.io.IOException"/>
  1419. <doc>
  1420. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  1421. @param f the file name to open
  1422. @param bufferSize the size of the buffer to be used.]]>
  1423. </doc>
  1424. </method>
  1425. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  1426. abstract="false" native="false" synchronized="false"
  1427. static="false" final="false" visibility="public"
  1428. deprecated="not deprecated">
  1429. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1430. <param name="bufferSize" type="int"/>
  1431. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  1432. <exception name="IOException" type="java.io.IOException"/>
  1433. <doc>
  1434. <![CDATA[{@inheritDoc}]]>
  1435. </doc>
  1436. </method>
  1437. <method name="getChecksumLength" return="long"
  1438. abstract="false" native="false" synchronized="false"
  1439. static="true" final="false" visibility="public"
  1440. deprecated="not deprecated">
  1441. <param name="size" type="long"/>
  1442. <param name="bytesPerSum" type="int"/>
  1443. <doc>
  1444. <![CDATA[Calculated the length of the checksum file in bytes.
  1445. @param size the length of the data file in bytes
  1446. @param bytesPerSum the number of bytes in a checksum block
  1447. @return the number of bytes in the checksum file]]>
  1448. </doc>
  1449. </method>
  1450. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  1451. abstract="false" native="false" synchronized="false"
  1452. static="false" final="false" visibility="public"
  1453. deprecated="not deprecated">
  1454. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1455. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  1456. <param name="overwrite" type="boolean"/>
  1457. <param name="bufferSize" type="int"/>
  1458. <param name="replication" type="short"/>
  1459. <param name="blockSize" type="long"/>
  1460. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  1461. <exception name="IOException" type="java.io.IOException"/>
  1462. <doc>
  1463. <![CDATA[{@inheritDoc}]]>
  1464. </doc>
  1465. </method>
  1466. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  1467. abstract="false" native="false" synchronized="false"
  1468. static="false" final="false" visibility="public"
  1469. deprecated="not deprecated">
  1470. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1471. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  1472. <param name="overwrite" type="boolean"/>
  1473. <param name="bufferSize" type="int"/>
  1474. <param name="replication" type="short"/>
  1475. <param name="blockSize" type="long"/>
  1476. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  1477. <exception name="IOException" type="java.io.IOException"/>
  1478. <doc>
  1479. <![CDATA[{@inheritDoc}]]>
  1480. </doc>
  1481. </method>
  1482. <method name="setReplication" return="boolean"
  1483. abstract="false" native="false" synchronized="false"
  1484. static="false" final="false" visibility="public"
  1485. deprecated="not deprecated">
  1486. <param name="src" type="org.apache.hadoop.fs.Path"/>
  1487. <param name="replication" type="short"/>
  1488. <exception name="IOException" type="java.io.IOException"/>
  1489. <doc>
  1490. <![CDATA[Set replication for an existing file.
  1491. Implement the abstract <tt>setReplication</tt> of <tt>FileSystem</tt>
  1492. @param src file name
  1493. @param replication new replication
  1494. @throws IOException
  1495. @return true if successful;
  1496. false if file does not exist or is a directory]]>
  1497. </doc>
  1498. </method>
  1499. <method name="rename" return="boolean"
  1500. abstract="false" native="false" synchronized="false"
  1501. static="false" final="false" visibility="public"
  1502. deprecated="not deprecated">
  1503. <param name="src" type="org.apache.hadoop.fs.Path"/>
  1504. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  1505. <exception name="IOException" type="java.io.IOException"/>
  1506. <doc>
  1507. <![CDATA[Rename files/dirs]]>
  1508. </doc>
  1509. </method>
  1510. <method name="delete" return="boolean"
  1511. abstract="false" native="false" synchronized="false"
  1512. static="false" final="false" visibility="public"
  1513. deprecated="not deprecated">
  1514. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1515. <param name="recursive" type="boolean"/>
  1516. <exception name="IOException" type="java.io.IOException"/>
  1517. <doc>
  1518. <![CDATA[Implement the delete(Path, boolean) in checksum
  1519. file system.]]>
  1520. </doc>
  1521. </method>
  1522. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  1523. abstract="false" native="false" synchronized="false"
  1524. static="false" final="false" visibility="public"
  1525. deprecated="not deprecated">
  1526. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1527. <exception name="IOException" type="java.io.IOException"/>
  1528. <doc>
  1529. <![CDATA[List the statuses of the files/directories in the given path if the path is
  1530. a directory.
  1531. @param f
  1532. given path
  1533. @return the statuses of the files/directories in the given patch
  1534. @throws IOException]]>
  1535. </doc>
  1536. </method>
  1537. <method name="mkdirs" return="boolean"
  1538. abstract="false" native="false" synchronized="false"
  1539. static="false" final="false" visibility="public"
  1540. deprecated="not deprecated">
  1541. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1542. <exception name="IOException" type="java.io.IOException"/>
  1543. </method>
  1544. <method name="copyFromLocalFile"
  1545. abstract="false" native="false" synchronized="false"
  1546. static="false" final="false" visibility="public"
  1547. deprecated="not deprecated">
  1548. <param name="delSrc" type="boolean"/>
  1549. <param name="src" type="org.apache.hadoop.fs.Path"/>
  1550. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  1551. <exception name="IOException" type="java.io.IOException"/>
  1552. </method>
  1553. <method name="copyToLocalFile"
  1554. abstract="false" native="false" synchronized="false"
  1555. static="false" final="false" visibility="public"
  1556. deprecated="not deprecated">
  1557. <param name="delSrc" type="boolean"/>
  1558. <param name="src" type="org.apache.hadoop.fs.Path"/>
  1559. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  1560. <exception name="IOException" type="java.io.IOException"/>
  1561. <doc>
  1562. <![CDATA[The src file is under FS, and the dst is on the local disk.
  1563. Copy it from FS control to the local dst name.]]>
  1564. </doc>
  1565. </method>
  1566. <method name="copyToLocalFile"
  1567. abstract="false" native="false" synchronized="false"
  1568. static="false" final="false" visibility="public"
  1569. deprecated="not deprecated">
  1570. <param name="src" type="org.apache.hadoop.fs.Path"/>
  1571. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  1572. <param name="copyCrc" type="boolean"/>
  1573. <exception name="IOException" type="java.io.IOException"/>
  1574. <doc>
  1575. <![CDATA[The src file is under FS, and the dst is on the local disk.
  1576. Copy it from FS control to the local dst name.
  1577. If src and dst are directories, the copyCrc parameter
  1578. determines whether to copy CRC files.]]>
  1579. </doc>
  1580. </method>
  1581. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  1582. abstract="false" native="false" synchronized="false"
  1583. static="false" final="false" visibility="public"
  1584. deprecated="not deprecated">
  1585. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  1586. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  1587. <exception name="IOException" type="java.io.IOException"/>
  1588. </method>
  1589. <method name="completeLocalOutput"
  1590. abstract="false" native="false" synchronized="false"
  1591. static="false" final="false" visibility="public"
  1592. deprecated="not deprecated">
  1593. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  1594. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  1595. <exception name="IOException" type="java.io.IOException"/>
  1596. </method>
  1597. <method name="reportChecksumFailure" return="boolean"
  1598. abstract="false" native="false" synchronized="false"
  1599. static="false" final="false" visibility="public"
  1600. deprecated="not deprecated">
  1601. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1602. <param name="in" type="org.apache.hadoop.fs.FSDataInputStream"/>
  1603. <param name="inPos" type="long"/>
  1604. <param name="sums" type="org.apache.hadoop.fs.FSDataInputStream"/>
  1605. <param name="sumsPos" type="long"/>
  1606. <doc>
  1607. <![CDATA[Report a checksum error to the file system.
  1608. @param f the file name containing the error
  1609. @param in the stream open on the file
  1610. @param inPos the position of the beginning of the bad data in the file
  1611. @param sums the stream open on the checksum file
  1612. @param sumsPos the position of the beginning of the bad data in the checksum file
  1613. @return if retry is neccessary]]>
  1614. </doc>
  1615. </method>
  1616. <doc>
  1617. <![CDATA[Abstract Checksumed FileSystem.
  1618. It provide a basice implementation of a Checksumed FileSystem,
  1619. which creates a checksum file for each raw file.
  1620. It generates & verifies checksums at the client side.]]>
  1621. </doc>
  1622. </class>
  1623. <!-- end class org.apache.hadoop.fs.ChecksumFileSystem -->
  1624. <!-- start class org.apache.hadoop.fs.CommonConfigurationKeys -->
  1625. <class name="CommonConfigurationKeys" extends="java.lang.Object"
  1626. abstract="false"
  1627. static="false" final="false" visibility="public"
  1628. deprecated="not deprecated">
  1629. <constructor name="CommonConfigurationKeys"
  1630. static="false" final="false" visibility="public"
  1631. deprecated="not deprecated">
  1632. </constructor>
  1633. <field name="FS_DEFAULT_NAME_KEY" type="java.lang.String"
  1634. transient="false" volatile="false"
  1635. static="true" final="true" visibility="public"
  1636. deprecated="not deprecated">
  1637. <doc>
  1638. <![CDATA[See src/core/core-default.xml]]>
  1639. </doc>
  1640. </field>
  1641. <field name="FS_DEFAULT_NAME_DEFAULT" type="java.lang.String"
  1642. transient="false" volatile="false"
  1643. static="true" final="true" visibility="public"
  1644. deprecated="not deprecated">
  1645. </field>
  1646. <field name="HADOOP_SECURITY_GROUP_MAPPING" type="java.lang.String"
  1647. transient="false" volatile="false"
  1648. static="true" final="true" visibility="public"
  1649. deprecated="not deprecated">
  1650. <doc>
  1651. <![CDATA[See src/core/core-default.xml]]>
  1652. </doc>
  1653. </field>
  1654. <field name="HADOOP_SECURITY_AUTHENTICATION" type="java.lang.String"
  1655. transient="false" volatile="false"
  1656. static="true" final="true" visibility="public"
  1657. deprecated="not deprecated">
  1658. <doc>
  1659. <![CDATA[See src/core/core-default.xml]]>
  1660. </doc>
  1661. </field>
  1662. <field name="HADOOP_SECURITY_AUTHORIZATION" type="java.lang.String"
  1663. transient="false" volatile="false"
  1664. static="true" final="true" visibility="public"
  1665. deprecated="not deprecated">
  1666. <doc>
  1667. <![CDATA[See src/core/core-default.xml]]>
  1668. </doc>
  1669. </field>
  1670. <field name="HADOOP_SECURITY_INSTRUMENTATION_REQUIRES_ADMIN" type="java.lang.String"
  1671. transient="false" volatile="false"
  1672. static="true" final="true" visibility="public"
  1673. deprecated="not deprecated">
  1674. <doc>
  1675. <![CDATA[See src/core/core-default.xml]]>
  1676. </doc>
  1677. </field>
  1678. <field name="HADOOP_SECURITY_SERVICE_USER_NAME_KEY" type="java.lang.String"
  1679. transient="false" volatile="false"
  1680. static="true" final="true" visibility="public"
  1681. deprecated="not deprecated">
  1682. <doc>
  1683. <![CDATA[See src/core/core-default.xml]]>
  1684. </doc>
  1685. </field>
  1686. <field name="HADOOP_SECURITY_TOKEN_SERVICE_USE_IP" type="java.lang.String"
  1687. transient="false" volatile="false"
  1688. static="true" final="true" visibility="public"
  1689. deprecated="not deprecated">
  1690. <doc>
  1691. <![CDATA[See src/core/core-default.xml]]>
  1692. </doc>
  1693. </field>
  1694. <field name="HADOOP_SECURITY_TOKEN_SERVICE_USE_IP_DEFAULT" type="boolean"
  1695. transient="false" volatile="false"
  1696. static="true" final="true" visibility="public"
  1697. deprecated="not deprecated">
  1698. </field>
  1699. <field name="HADOOP_SECURITY_USE_WEAK_HTTP_CRYPTO_KEY" type="java.lang.String"
  1700. transient="false" volatile="false"
  1701. static="true" final="true" visibility="public"
  1702. deprecated="not deprecated">
  1703. </field>
  1704. <field name="HADOOP_SECURITY_USE_WEAK_HTTP_CRYPTO_DEFAULT" type="boolean"
  1705. transient="false" volatile="false"
  1706. static="true" final="true" visibility="public"
  1707. deprecated="not deprecated">
  1708. </field>
  1709. <field name="IPC_SERVER_RPC_READ_THREADS_KEY" type="java.lang.String"
  1710. transient="false" volatile="false"
  1711. static="true" final="true" visibility="public"
  1712. deprecated="not deprecated">
  1713. </field>
  1714. <field name="IPC_SERVER_RPC_READ_THREADS_DEFAULT" type="int"
  1715. transient="false" volatile="false"
  1716. static="true" final="true" visibility="public"
  1717. deprecated="not deprecated">
  1718. </field>
  1719. <field name="IO_NATIVE_LIB_AVAILABLE_KEY" type="java.lang.String"
  1720. transient="false" volatile="false"
  1721. static="true" final="true" visibility="public"
  1722. deprecated="not deprecated">
  1723. </field>
  1724. <field name="IO_NATIVE_LIB_AVAILABLE_DEFAULT" type="boolean"
  1725. transient="false" volatile="false"
  1726. static="true" final="true" visibility="public"
  1727. deprecated="not deprecated">
  1728. <doc>
  1729. <![CDATA[Default value for IO_NATIVE_LIB_AVAILABLE_KEY]]>
  1730. </doc>
  1731. </field>
  1732. <field name="IO_COMPRESSION_CODEC_SNAPPY_BUFFERSIZE_KEY" type="java.lang.String"
  1733. transient="false" volatile="false"
  1734. static="true" final="true" visibility="public"
  1735. deprecated="not deprecated">
  1736. <doc>
  1737. <![CDATA[Internal buffer size for Snappy compressor/decompressors]]>
  1738. </doc>
  1739. </field>
  1740. <field name="IO_COMPRESSION_CODEC_SNAPPY_BUFFERSIZE_DEFAULT" type="int"
  1741. transient="false" volatile="false"
  1742. static="true" final="true" visibility="public"
  1743. deprecated="not deprecated">
  1744. <doc>
  1745. <![CDATA[Default value for IO_COMPRESSION_CODEC_SNAPPY_BUFFERSIZE_KEY]]>
  1746. </doc>
  1747. </field>
  1748. <field name="HADOOP_RELAXED_VERSION_CHECK_KEY" type="java.lang.String"
  1749. transient="false" volatile="false"
  1750. static="true" final="true" visibility="public"
  1751. deprecated="not deprecated">
  1752. <doc>
  1753. <![CDATA[See src/core/core-default.xml]]>
  1754. </doc>
  1755. </field>
  1756. <field name="HADOOP_RELAXED_VERSION_CHECK_DEFAULT" type="boolean"
  1757. transient="false" volatile="false"
  1758. static="true" final="true" visibility="public"
  1759. deprecated="not deprecated">
  1760. </field>
  1761. <field name="HADOOP_SKIP_VERSION_CHECK_KEY" type="java.lang.String"
  1762. transient="false" volatile="false"
  1763. static="true" final="true" visibility="public"
  1764. deprecated="not deprecated">
  1765. <doc>
  1766. <![CDATA[See src/core/core-default.xml]]>
  1767. </doc>
  1768. </field>
  1769. <field name="HADOOP_SKIP_VERSION_CHECK_DEFAULT" type="boolean"
  1770. transient="false" volatile="false"
  1771. static="true" final="true" visibility="public"
  1772. deprecated="not deprecated">
  1773. </field>
  1774. <field name="HADOOP_JETTY_LOGS_SERVE_ALIASES" type="java.lang.String"
  1775. transient="false" volatile="false"
  1776. static="true" final="true" visibility="public"
  1777. deprecated="not deprecated">
  1778. <doc>
  1779. <![CDATA[Enable/Disable aliases serving from jetty]]>
  1780. </doc>
  1781. </field>
  1782. <field name="DEFAULT_HADOOP_JETTY_LOGS_SERVE_ALIASES" type="boolean"
  1783. transient="false" volatile="false"
  1784. static="true" final="true" visibility="public"
  1785. deprecated="not deprecated">
  1786. </field>
  1787. <field name="IPC_CLIENT_FALLBACK_TO_SIMPLE_AUTH_ALLOWED_KEY" type="java.lang.String"
  1788. transient="false" volatile="false"
  1789. static="true" final="true" visibility="public"
  1790. deprecated="not deprecated">
  1791. </field>
  1792. <field name="IPC_CLIENT_FALLBACK_TO_SIMPLE_AUTH_ALLOWED_DEFAULT" type="boolean"
  1793. transient="false" volatile="false"
  1794. static="true" final="true" visibility="public"
  1795. deprecated="not deprecated">
  1796. </field>
  1797. <doc>
  1798. <![CDATA[This class contains constants for configuration keys used
  1799. in the common code.]]>
  1800. </doc>
  1801. </class>
  1802. <!-- end class org.apache.hadoop.fs.CommonConfigurationKeys -->
  1803. <!-- start class org.apache.hadoop.fs.ContentSummary -->
  1804. <class name="ContentSummary" extends="java.lang.Object"
  1805. abstract="false"
  1806. static="false" final="false" visibility="public"
  1807. deprecated="not deprecated">
  1808. <implements name="org.apache.hadoop.io.Writable"/>
  1809. <constructor name="ContentSummary"
  1810. static="false" final="false" visibility="public"
  1811. deprecated="not deprecated">
  1812. <doc>
  1813. <![CDATA[Constructor]]>
  1814. </doc>
  1815. </constructor>
  1816. <constructor name="ContentSummary" type="long, long, long"
  1817. static="false" final="false" visibility="public"
  1818. deprecated="not deprecated">
  1819. <doc>
  1820. <![CDATA[Constructor]]>
  1821. </doc>
  1822. </constructor>
  1823. <constructor name="ContentSummary" type="long, long, long, long, long, long"
  1824. static="false" final="false" visibility="public"
  1825. deprecated="not deprecated">
  1826. <doc>
  1827. <![CDATA[Constructor]]>
  1828. </doc>
  1829. </constructor>
  1830. <method name="getLength" return="long"
  1831. abstract="false" native="false" synchronized="false"
  1832. static="false" final="false" visibility="public"
  1833. deprecated="not deprecated">
  1834. <doc>
  1835. <![CDATA[@return the length]]>
  1836. </doc>
  1837. </method>
  1838. <method name="getDirectoryCount" return="long"
  1839. abstract="false" native="false" synchronized="false"
  1840. static="false" final="false" visibility="public"
  1841. deprecated="not deprecated">
  1842. <doc>
  1843. <![CDATA[@return the directory count]]>
  1844. </doc>
  1845. </method>
  1846. <method name="getFileCount" return="long"
  1847. abstract="false" native="false" synchronized="false"
  1848. static="false" final="false" visibility="public"
  1849. deprecated="not deprecated">
  1850. <doc>
  1851. <![CDATA[@return the file count]]>
  1852. </doc>
  1853. </method>
  1854. <method name="getQuota" return="long"
  1855. abstract="false" native="false" synchronized="false"
  1856. static="false" final="false" visibility="public"
  1857. deprecated="not deprecated">
  1858. <doc>
  1859. <![CDATA[Return the directory quota]]>
  1860. </doc>
  1861. </method>
  1862. <method name="getSpaceConsumed" return="long"
  1863. abstract="false" native="false" synchronized="false"
  1864. static="false" final="false" visibility="public"
  1865. deprecated="not deprecated">
  1866. <doc>
  1867. <![CDATA[Retuns (disk) space consumed]]>
  1868. </doc>
  1869. </method>
  1870. <method name="getSpaceQuota" return="long"
  1871. abstract="false" native="false" synchronized="false"
  1872. static="false" final="false" visibility="public"
  1873. deprecated="not deprecated">
  1874. <doc>
  1875. <![CDATA[Returns (disk) space quota]]>
  1876. </doc>
  1877. </method>
  1878. <method name="write"
  1879. abstract="false" native="false" synchronized="false"
  1880. static="false" final="false" visibility="public"
  1881. deprecated="not deprecated">
  1882. <param name="out" type="java.io.DataOutput"/>
  1883. <exception name="IOException" type="java.io.IOException"/>
  1884. <doc>
  1885. <![CDATA[{@inheritDoc}]]>
  1886. </doc>
  1887. </method>
  1888. <method name="readFields"
  1889. abstract="false" native="false" synchronized="false"
  1890. static="false" final="false" visibility="public"
  1891. deprecated="not deprecated">
  1892. <param name="in" type="java.io.DataInput"/>
  1893. <exception name="IOException" type="java.io.IOException"/>
  1894. <doc>
  1895. <![CDATA[{@inheritDoc}]]>
  1896. </doc>
  1897. </method>
  1898. <method name="getHeader" return="java.lang.String"
  1899. abstract="false" native="false" synchronized="false"
  1900. static="true" final="false" visibility="public"
  1901. deprecated="not deprecated">
  1902. <param name="qOption" type="boolean"/>
  1903. <doc>
  1904. <![CDATA[Return the header of the output.
  1905. if qOption is false, output directory count, file count, and content size;
  1906. if qOption is true, output quota and remaining quota as well.
  1907. @param qOption a flag indicating if quota needs to be printed or not
  1908. @return the header of the output]]>
  1909. </doc>
  1910. </method>
  1911. <method name="toString" return="java.lang.String"
  1912. abstract="false" native="false" synchronized="false"
  1913. static="false" final="false" visibility="public"
  1914. deprecated="not deprecated">
  1915. <doc>
  1916. <![CDATA[{@inheritDoc}]]>
  1917. </doc>
  1918. </method>
  1919. <method name="toString" return="java.lang.String"
  1920. abstract="false" native="false" synchronized="false"
  1921. static="false" final="false" visibility="public"
  1922. deprecated="not deprecated">
  1923. <param name="qOption" type="boolean"/>
  1924. <doc>
  1925. <![CDATA[Return the string representation of the object in the output format.
  1926. if qOption is false, output directory count, file count, and content size;
  1927. if qOption is true, output quota and remaining quota as well.
  1928. @param qOption a flag indicating if quota needs to be printed or not
  1929. @return the string representation of the object]]>
  1930. </doc>
  1931. </method>
  1932. <doc>
  1933. <![CDATA[Store the summary of a content (a directory or a file).]]>
  1934. </doc>
  1935. </class>
  1936. <!-- end class org.apache.hadoop.fs.ContentSummary -->
  1937. <!-- start class org.apache.hadoop.fs.DF -->
  1938. <class name="DF" extends="org.apache.hadoop.util.Shell"
  1939. abstract="false"
  1940. static="false" final="false" visibility="public"
  1941. deprecated="not deprecated">
  1942. <constructor name="DF" type="java.io.File, org.apache.hadoop.conf.Configuration"
  1943. static="false" final="false" visibility="public"
  1944. deprecated="not deprecated">
  1945. <exception name="IOException" type="java.io.IOException"/>
  1946. </constructor>
  1947. <constructor name="DF" type="java.io.File, long"
  1948. static="false" final="false" visibility="public"
  1949. deprecated="not deprecated">
  1950. <exception name="IOException" type="java.io.IOException"/>
  1951. </constructor>
  1952. <method name="getDirPath" return="java.lang.String"
  1953. abstract="false" native="false" synchronized="false"
  1954. static="false" final="false" visibility="public"
  1955. deprecated="not deprecated">
  1956. <doc>
  1957. <![CDATA[@return the canonical path to the volume we're checking.]]>
  1958. </doc>
  1959. </method>
  1960. <method name="getFilesystem" return="java.lang.String"
  1961. abstract="false" native="false" synchronized="false"
  1962. static="false" final="false" visibility="public"
  1963. deprecated="not deprecated">
  1964. <exception name="IOException" type="java.io.IOException"/>
  1965. <doc>
  1966. <![CDATA[@return a string indicating which filesystem volume we're checking.]]>
  1967. </doc>
  1968. </method>
  1969. <method name="getCapacity" return="long"
  1970. abstract="false" native="false" synchronized="false"
  1971. static="false" final="false" visibility="public"
  1972. deprecated="not deprecated">
  1973. <doc>
  1974. <![CDATA[@return the capacity of the measured filesystem in bytes.]]>
  1975. </doc>
  1976. </method>
  1977. <method name="getUsed" return="long"
  1978. abstract="false" native="false" synchronized="false"
  1979. static="false" final="false" visibility="public"
  1980. deprecated="not deprecated">
  1981. <doc>
  1982. <![CDATA[@return the total used space on the filesystem in bytes.]]>
  1983. </doc>
  1984. </method>
  1985. <method name="getAvailable" return="long"
  1986. abstract="false" native="false" synchronized="false"
  1987. static="false" final="false" visibility="public"
  1988. deprecated="not deprecated">
  1989. <doc>
  1990. <![CDATA[@return the usable space remaining on the filesystem in bytes.]]>
  1991. </doc>
  1992. </method>
  1993. <method name="getPercentUsed" return="int"
  1994. abstract="false" native="false" synchronized="false"
  1995. static="false" final="false" visibility="public"
  1996. deprecated="not deprecated">
  1997. <doc>
  1998. <![CDATA[@return the amount of the volume full, as a percent.]]>
  1999. </doc>
  2000. </method>
  2001. <method name="getMount" return="java.lang.String"
  2002. abstract="false" native="false" synchronized="false"
  2003. static="false" final="false" visibility="public"
  2004. deprecated="not deprecated">
  2005. <exception name="IOException" type="java.io.IOException"/>
  2006. <doc>
  2007. <![CDATA[@return the filesystem mount point for the indicated volume]]>
  2008. </doc>
  2009. </method>
  2010. <method name="toString" return="java.lang.String"
  2011. abstract="false" native="false" synchronized="false"
  2012. static="false" final="false" visibility="public"
  2013. deprecated="not deprecated">
  2014. </method>
  2015. <method name="getExecString" return="java.lang.String[]"
  2016. abstract="false" native="false" synchronized="false"
  2017. static="false" final="false" visibility="protected"
  2018. deprecated="not deprecated">
  2019. </method>
  2020. <method name="parseExecResult"
  2021. abstract="false" native="false" synchronized="false"
  2022. static="false" final="false" visibility="protected"
  2023. deprecated="not deprecated">
  2024. <param name="lines" type="java.io.BufferedReader"/>
  2025. <exception name="IOException" type="java.io.IOException"/>
  2026. </method>
  2027. <method name="main"
  2028. abstract="false" native="false" synchronized="false"
  2029. static="true" final="false" visibility="public"
  2030. deprecated="not deprecated">
  2031. <param name="args" type="java.lang.String[]"/>
  2032. <exception name="Exception" type="java.lang.Exception"/>
  2033. </method>
  2034. <field name="DF_INTERVAL_DEFAULT" type="long"
  2035. transient="false" volatile="false"
  2036. static="true" final="true" visibility="public"
  2037. deprecated="not deprecated">
  2038. <doc>
  2039. <![CDATA[Default DF refresh interval.]]>
  2040. </doc>
  2041. </field>
  2042. <doc>
  2043. <![CDATA[Filesystem disk space usage statistics. Uses the unix 'df' program to get
  2044. mount points, and java.io.File for space utilization. Tested on Linux,
  2045. FreeBSD, Cygwin.]]>
  2046. </doc>
  2047. </class>
  2048. <!-- end class org.apache.hadoop.fs.DF -->
  2049. <!-- start class org.apache.hadoop.fs.DU -->
  2050. <class name="DU" extends="org.apache.hadoop.util.Shell"
  2051. abstract="false"
  2052. static="false" final="false" visibility="public"
  2053. deprecated="not deprecated">
  2054. <constructor name="DU" type="java.io.File, long"
  2055. static="false" final="false" visibility="public"
  2056. deprecated="not deprecated">
  2057. <exception name="IOException" type="java.io.IOException"/>
  2058. <doc>
  2059. <![CDATA[Keeps track of disk usage.
  2060. @param path the path to check disk usage in
  2061. @param interval refresh the disk usage at this interval
  2062. @throws IOException if we fail to refresh the disk usage]]>
  2063. </doc>
  2064. </constructor>
  2065. <constructor name="DU" type="java.io.File, org.apache.hadoop.conf.Configuration"
  2066. static="false" final="false" visibility="public"
  2067. deprecated="not deprecated">
  2068. <exception name="IOException" type="java.io.IOException"/>
  2069. <doc>
  2070. <![CDATA[Keeps track of disk usage.
  2071. @param path the path to check disk usage in
  2072. @param conf configuration object
  2073. @throws IOException if we fail to refresh the disk usage]]>
  2074. </doc>
  2075. </constructor>
  2076. <method name="decDfsUsed"
  2077. abstract="false" native="false" synchronized="false"
  2078. static="false" final="false" visibility="public"
  2079. deprecated="not deprecated">
  2080. <param name="value" type="long"/>
  2081. <doc>
  2082. <![CDATA[Decrease how much disk space we use.
  2083. @param value decrease by this value]]>
  2084. </doc>
  2085. </method>
  2086. <method name="incDfsUsed"
  2087. abstract="false" native="false" synchronized="false"
  2088. static="false" final="false" visibility="public"
  2089. deprecated="not deprecated">
  2090. <param name="value" type="long"/>
  2091. <doc>
  2092. <![CDATA[Increase how much disk space we use.
  2093. @param value increase by this value]]>
  2094. </doc>
  2095. </method>
  2096. <method name="getUsed" return="long"
  2097. abstract="false" native="false" synchronized="false"
  2098. static="false" final="false" visibility="public"
  2099. deprecated="not deprecated">
  2100. <exception name="IOException" type="java.io.IOException"/>
  2101. <doc>
  2102. <![CDATA[@return disk space used
  2103. @throws IOException if the shell command fails]]>
  2104. </doc>
  2105. </method>
  2106. <method name="getDirPath" return="java.lang.String"
  2107. abstract="false" native="false" synchronized="false"
  2108. static="false" final="false" visibility="public"
  2109. deprecated="not deprecated">
  2110. <doc>
  2111. <![CDATA[@return the path of which we're keeping track of disk usage]]>
  2112. </doc>
  2113. </method>
  2114. <method name="start"
  2115. abstract="false" native="false" synchronized="false"
  2116. static="false" final="false" visibility="public"
  2117. deprecated="not deprecated">
  2118. <doc>
  2119. <![CDATA[Start the disk usage checking thread.]]>
  2120. </doc>
  2121. </method>
  2122. <method name="shutdown"
  2123. abstract="false" native="false" synchronized="false"
  2124. static="false" final="false" visibility="public"
  2125. deprecated="not deprecated">
  2126. <doc>
  2127. <![CDATA[Shut down the refreshing thread.]]>
  2128. </doc>
  2129. </method>
  2130. <method name="toString" return="java.lang.String"
  2131. abstract="false" native="false" synchronized="false"
  2132. static="false" final="false" visibility="public"
  2133. deprecated="not deprecated">
  2134. </method>
  2135. <method name="getExecString" return="java.lang.String[]"
  2136. abstract="false" native="false" synchronized="false"
  2137. static="false" final="false" visibility="protected"
  2138. deprecated="not deprecated">
  2139. </method>
  2140. <method name="parseExecResult"
  2141. abstract="false" native="false" synchronized="false"
  2142. static="false" final="false" visibility="protected"
  2143. deprecated="not deprecated">
  2144. <param name="lines" type="java.io.BufferedReader"/>
  2145. <exception name="IOException" type="java.io.IOException"/>
  2146. </method>
  2147. <method name="main"
  2148. abstract="false" native="false" synchronized="false"
  2149. static="true" final="false" visibility="public"
  2150. deprecated="not deprecated">
  2151. <param name="args" type="java.lang.String[]"/>
  2152. <exception name="Exception" type="java.lang.Exception"/>
  2153. </method>
  2154. <doc>
  2155. <![CDATA[Filesystem disk space usage statistics. Uses the unix 'du' program]]>
  2156. </doc>
  2157. </class>
  2158. <!-- end class org.apache.hadoop.fs.DU -->
  2159. <!-- start class org.apache.hadoop.fs.FileAlreadyExistsException -->
  2160. <class name="FileAlreadyExistsException" extends="java.io.IOException"
  2161. abstract="false"
  2162. static="false" final="false" visibility="public"
  2163. deprecated="not deprecated">
  2164. <constructor name="FileAlreadyExistsException"
  2165. static="false" final="false" visibility="public"
  2166. deprecated="not deprecated">
  2167. </constructor>
  2168. <constructor name="FileAlreadyExistsException" type="java.lang.String"
  2169. static="false" final="false" visibility="public"
  2170. deprecated="not deprecated">
  2171. </constructor>
  2172. <doc>
  2173. <![CDATA[Used when target file already exists for any operation and
  2174. is not configured to be overwritten.]]>
  2175. </doc>
  2176. </class>
  2177. <!-- end class org.apache.hadoop.fs.FileAlreadyExistsException -->
  2178. <!-- start class org.apache.hadoop.fs.FileChecksum -->
  2179. <class name="FileChecksum" extends="java.lang.Object"
  2180. abstract="true"
  2181. static="false" final="false" visibility="public"
  2182. deprecated="not deprecated">
  2183. <implements name="org.apache.hadoop.io.Writable"/>
  2184. <constructor name="FileChecksum"
  2185. static="false" final="false" visibility="public"
  2186. deprecated="not deprecated">
  2187. </constructor>
  2188. <method name="getAlgorithmName" return="java.lang.String"
  2189. abstract="true" native="false" synchronized="false"
  2190. static="false" final="false" visibility="public"
  2191. deprecated="not deprecated">
  2192. <doc>
  2193. <![CDATA[The checksum algorithm name]]>
  2194. </doc>
  2195. </method>
  2196. <method name="getLength" return="int"
  2197. abstract="true" native="false" synchronized="false"
  2198. static="false" final="false" visibility="public"
  2199. deprecated="not deprecated">
  2200. <doc>
  2201. <![CDATA[The length of the checksum in bytes]]>
  2202. </doc>
  2203. </method>
  2204. <method name="getBytes" return="byte[]"
  2205. abstract="true" native="false" synchronized="false"
  2206. static="false" final="false" visibility="public"
  2207. deprecated="not deprecated">
  2208. <doc>
  2209. <![CDATA[The value of the checksum in bytes]]>
  2210. </doc>
  2211. </method>
  2212. <method name="equals" return="boolean"
  2213. abstract="false" native="false" synchronized="false"
  2214. static="false" final="false" visibility="public"
  2215. deprecated="not deprecated">
  2216. <param name="other" type="java.lang.Object"/>
  2217. <doc>
  2218. <![CDATA[Return true if both the algorithms and the values are the same.]]>
  2219. </doc>
  2220. </method>
  2221. <method name="hashCode" return="int"
  2222. abstract="false" native="false" synchronized="false"
  2223. static="false" final="false" visibility="public"
  2224. deprecated="not deprecated">
  2225. <doc>
  2226. <![CDATA[{@inheritDoc}]]>
  2227. </doc>
  2228. </method>
  2229. <doc>
  2230. <![CDATA[An abstract class representing file checksums for files.]]>
  2231. </doc>
  2232. </class>
  2233. <!-- end class org.apache.hadoop.fs.FileChecksum -->
  2234. <!-- start class org.apache.hadoop.fs.FileStatus -->
  2235. <class name="FileStatus" extends="java.lang.Object"
  2236. abstract="false"
  2237. static="false" final="false" visibility="public"
  2238. deprecated="not deprecated">
  2239. <implements name="org.apache.hadoop.io.Writable"/>
  2240. <implements name="java.lang.Comparable"/>
  2241. <constructor name="FileStatus"
  2242. static="false" final="false" visibility="public"
  2243. deprecated="not deprecated">
  2244. </constructor>
  2245. <constructor name="FileStatus" type="long, boolean, int, long, long, org.apache.hadoop.fs.Path"
  2246. static="false" final="false" visibility="public"
  2247. deprecated="not deprecated">
  2248. </constructor>
  2249. <constructor name="FileStatus" type="long, boolean, int, long, long, long, org.apache.hadoop.fs.permission.FsPermission, java.lang.String, java.lang.String, org.apache.hadoop.fs.Path"
  2250. static="false" final="false" visibility="public"
  2251. deprecated="not deprecated">
  2252. </constructor>
  2253. <method name="getLen" return="long"
  2254. abstract="false" native="false" synchronized="false"
  2255. static="false" final="false" visibility="public"
  2256. deprecated="not deprecated">
  2257. </method>
  2258. <method name="isDir" return="boolean"
  2259. abstract="false" native="false" synchronized="false"
  2260. static="false" final="false" visibility="public"
  2261. deprecated="not deprecated">
  2262. <doc>
  2263. <![CDATA[Is this a directory?
  2264. @return true if this is a directory]]>
  2265. </doc>
  2266. </method>
  2267. <method name="getBlockSize" return="long"
  2268. abstract="false" native="false" synchronized="false"
  2269. static="false" final="false" visibility="public"
  2270. deprecated="not deprecated">
  2271. <doc>
  2272. <![CDATA[Get the block size of the file.
  2273. @return the number of bytes]]>
  2274. </doc>
  2275. </method>
  2276. <method name="getReplication" return="short"
  2277. abstract="false" native="false" synchronized="false"
  2278. static="false" final="false" visibility="public"
  2279. deprecated="not deprecated">
  2280. <doc>
  2281. <![CDATA[Get the replication factor of a file.
  2282. @return the replication factor of a file.]]>
  2283. </doc>
  2284. </method>
  2285. <method name="getModificationTime" return="long"
  2286. abstract="false" native="false" synchronized="false"
  2287. static="false" final="false" visibility="public"
  2288. deprecated="not deprecated">
  2289. <doc>
  2290. <![CDATA[Get the modification time of the file.
  2291. @return the modification time of file in milliseconds since January 1, 1970 UTC.]]>
  2292. </doc>
  2293. </method>
  2294. <method name="getAccessTime" return="long"
  2295. abstract="false" native="false" synchronized="false"
  2296. static="false" final="false" visibility="public"
  2297. deprecated="not deprecated">
  2298. <doc>
  2299. <![CDATA[Get the access time of the file.
  2300. @return the access time of file in milliseconds since January 1, 1970 UTC.]]>
  2301. </doc>
  2302. </method>
  2303. <method name="getPermission" return="org.apache.hadoop.fs.permission.FsPermission"
  2304. abstract="false" native="false" synchronized="false"
  2305. static="false" final="false" visibility="public"
  2306. deprecated="not deprecated">
  2307. <doc>
  2308. <![CDATA[Get FsPermission associated with the file.
  2309. @return permssion. If a filesystem does not have a notion of permissions
  2310. or if permissions could not be determined, then default
  2311. permissions equivalent of "rwxrwxrwx" is returned.]]>
  2312. </doc>
  2313. </method>
  2314. <method name="getOwner" return="java.lang.String"
  2315. abstract="false" native="false" synchronized="false"
  2316. static="false" final="false" visibility="public"
  2317. deprecated="not deprecated">
  2318. <doc>
  2319. <![CDATA[Get the owner of the file.
  2320. @return owner of the file. The string could be empty if there is no
  2321. notion of owner of a file in a filesystem or if it could not
  2322. be determined (rare).]]>
  2323. </doc>
  2324. </method>
  2325. <method name="getGroup" return="java.lang.String"
  2326. abstract="false" native="false" synchronized="false"
  2327. static="false" final="false" visibility="public"
  2328. deprecated="not deprecated">
  2329. <doc>
  2330. <![CDATA[Get the group associated with the file.
  2331. @return group for the file. The string could be empty if there is no
  2332. notion of group of a file in a filesystem or if it could not
  2333. be determined (rare).]]>
  2334. </doc>
  2335. </method>
  2336. <method name="getPath" return="org.apache.hadoop.fs.Path"
  2337. abstract="false" native="false" synchronized="false"
  2338. static="false" final="false" visibility="public"
  2339. deprecated="not deprecated">
  2340. </method>
  2341. <method name="setPermission"
  2342. abstract="false" native="false" synchronized="false"
  2343. static="false" final="false" visibility="protected"
  2344. deprecated="not deprecated">
  2345. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2346. <doc>
  2347. <![CDATA[Sets permission.
  2348. @param permission if permission is null, default value is set]]>
  2349. </doc>
  2350. </method>
  2351. <method name="setOwner"
  2352. abstract="false" native="false" synchronized="false"
  2353. static="false" final="false" visibility="protected"
  2354. deprecated="not deprecated">
  2355. <param name="owner" type="java.lang.String"/>
  2356. <doc>
  2357. <![CDATA[Sets owner.
  2358. @param owner if it is null, default value is set]]>
  2359. </doc>
  2360. </method>
  2361. <method name="setGroup"
  2362. abstract="false" native="false" synchronized="false"
  2363. static="false" final="false" visibility="protected"
  2364. deprecated="not deprecated">
  2365. <param name="group" type="java.lang.String"/>
  2366. <doc>
  2367. <![CDATA[Sets group.
  2368. @param group if it is null, default value is set]]>
  2369. </doc>
  2370. </method>
  2371. <method name="write"
  2372. abstract="false" native="false" synchronized="false"
  2373. static="false" final="false" visibility="public"
  2374. deprecated="not deprecated">
  2375. <param name="out" type="java.io.DataOutput"/>
  2376. <exception name="IOException" type="java.io.IOException"/>
  2377. </method>
  2378. <method name="readFields"
  2379. abstract="false" native="false" synchronized="false"
  2380. static="false" final="false" visibility="public"
  2381. deprecated="not deprecated">
  2382. <param name="in" type="java.io.DataInput"/>
  2383. <exception name="IOException" type="java.io.IOException"/>
  2384. </method>
  2385. <method name="compareTo" return="int"
  2386. abstract="false" native="false" synchronized="false"
  2387. static="false" final="false" visibility="public"
  2388. deprecated="not deprecated">
  2389. <param name="o" type="java.lang.Object"/>
  2390. <doc>
  2391. <![CDATA[Compare this object to another object
  2392. @param o the object to be compared.
  2393. @return a negative integer, zero, or a positive integer as this object
  2394. is less than, equal to, or greater than the specified object.
  2395. @throws ClassCastException if the specified object's is not of
  2396. type FileStatus]]>
  2397. </doc>
  2398. </method>
  2399. <method name="equals" return="boolean"
  2400. abstract="false" native="false" synchronized="false"
  2401. static="false" final="false" visibility="public"
  2402. deprecated="not deprecated">
  2403. <param name="o" type="java.lang.Object"/>
  2404. <doc>
  2405. <![CDATA[Compare if this object is equal to another object
  2406. @param o the object to be compared.
  2407. @return true if two file status has the same path name; false if not.]]>
  2408. </doc>
  2409. </method>
  2410. <method name="hashCode" return="int"
  2411. abstract="false" native="false" synchronized="false"
  2412. static="false" final="false" visibility="public"
  2413. deprecated="not deprecated">
  2414. <doc>
  2415. <![CDATA[Returns a hash code value for the object, which is defined as
  2416. the hash code of the path name.
  2417. @return a hash code value for the path name.]]>
  2418. </doc>
  2419. </method>
  2420. <doc>
  2421. <![CDATA[Interface that represents the client side information for a file.]]>
  2422. </doc>
  2423. </class>
  2424. <!-- end class org.apache.hadoop.fs.FileStatus -->
  2425. <!-- start class org.apache.hadoop.fs.FileSystem -->
  2426. <class name="FileSystem" extends="org.apache.hadoop.conf.Configured"
  2427. abstract="true"
  2428. static="false" final="false" visibility="public"
  2429. deprecated="not deprecated">
  2430. <implements name="java.io.Closeable"/>
  2431. <constructor name="FileSystem"
  2432. static="false" final="false" visibility="protected"
  2433. deprecated="not deprecated">
  2434. </constructor>
  2435. <method name="addFileSystemForTesting"
  2436. abstract="false" native="false" synchronized="false"
  2437. static="true" final="false" visibility="public"
  2438. deprecated="not deprecated">
  2439. <param name="uri" type="java.net.URI"/>
  2440. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2441. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  2442. <exception name="IOException" type="java.io.IOException"/>
  2443. <doc>
  2444. <![CDATA[This method adds a file system for testing so that we can find it later.
  2445. It is only for testing.
  2446. @param uri the uri to store it under
  2447. @param conf the configuration to store it under
  2448. @param fs the file system to store
  2449. @throws IOException]]>
  2450. </doc>
  2451. </method>
  2452. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  2453. abstract="false" native="false" synchronized="false"
  2454. static="true" final="false" visibility="public"
  2455. deprecated="not deprecated">
  2456. <param name="uri" type="java.net.URI"/>
  2457. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2458. <param name="user" type="java.lang.String"/>
  2459. <exception name="IOException" type="java.io.IOException"/>
  2460. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  2461. </method>
  2462. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  2463. abstract="false" native="false" synchronized="false"
  2464. static="true" final="false" visibility="public"
  2465. deprecated="not deprecated">
  2466. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2467. <exception name="IOException" type="java.io.IOException"/>
  2468. <doc>
  2469. <![CDATA[Returns the configured filesystem implementation.]]>
  2470. </doc>
  2471. </method>
  2472. <method name="getDefaultUri" return="java.net.URI"
  2473. abstract="false" native="false" synchronized="false"
  2474. static="true" final="false" visibility="public"
  2475. deprecated="not deprecated">
  2476. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2477. <doc>
  2478. <![CDATA[Get the default filesystem URI from a configuration.
  2479. @param conf the configuration to access
  2480. @return the uri of the default filesystem]]>
  2481. </doc>
  2482. </method>
  2483. <method name="setDefaultUri"
  2484. abstract="false" native="false" synchronized="false"
  2485. static="true" final="false" visibility="public"
  2486. deprecated="not deprecated">
  2487. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2488. <param name="uri" type="java.net.URI"/>
  2489. <doc>
  2490. <![CDATA[Set the default filesystem URI in a configuration.
  2491. @param conf the configuration to alter
  2492. @param uri the new default filesystem uri]]>
  2493. </doc>
  2494. </method>
  2495. <method name="setDefaultUri"
  2496. abstract="false" native="false" synchronized="false"
  2497. static="true" final="false" visibility="public"
  2498. deprecated="not deprecated">
  2499. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2500. <param name="uri" type="java.lang.String"/>
  2501. <doc>
  2502. <![CDATA[Set the default filesystem URI in a configuration.
  2503. @param conf the configuration to alter
  2504. @param uri the new default filesystem uri]]>
  2505. </doc>
  2506. </method>
  2507. <method name="getCacheSize" return="int"
  2508. abstract="false" native="false" synchronized="false"
  2509. static="true" final="false" visibility="public"
  2510. deprecated="not deprecated">
  2511. <doc>
  2512. <![CDATA[Get the number of entries in the filesystem cache
  2513. @return the number of entries in the filesystem cache]]>
  2514. </doc>
  2515. </method>
  2516. <method name="initialize"
  2517. abstract="false" native="false" synchronized="false"
  2518. static="false" final="false" visibility="public"
  2519. deprecated="not deprecated">
  2520. <param name="name" type="java.net.URI"/>
  2521. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2522. <exception name="IOException" type="java.io.IOException"/>
  2523. <doc>
  2524. <![CDATA[Called after a new FileSystem instance is constructed.
  2525. @param name a uri whose authority section names the host, port, etc.
  2526. for this FileSystem
  2527. @param conf the configuration]]>
  2528. </doc>
  2529. </method>
  2530. <method name="getUri" return="java.net.URI"
  2531. abstract="true" native="false" synchronized="false"
  2532. static="false" final="false" visibility="public"
  2533. deprecated="not deprecated">
  2534. <doc>
  2535. <![CDATA[Returns a URI whose scheme and authority identify this FileSystem.]]>
  2536. </doc>
  2537. </method>
  2538. <method name="getCanonicalUri" return="java.net.URI"
  2539. abstract="false" native="false" synchronized="false"
  2540. static="false" final="false" visibility="protected"
  2541. deprecated="not deprecated">
  2542. <doc>
  2543. <![CDATA[Resolve the uri's hostname and add the default port if not in the uri
  2544. @return URI
  2545. @see NetUtils#getCanonicalUri(URI, int)]]>
  2546. </doc>
  2547. </method>
  2548. <method name="getDefaultPort" return="int"
  2549. abstract="false" native="false" synchronized="false"
  2550. static="false" final="false" visibility="protected"
  2551. deprecated="not deprecated">
  2552. <doc>
  2553. <![CDATA[Get the default port for this file system.
  2554. @return the default port or 0 if there isn't one]]>
  2555. </doc>
  2556. </method>
  2557. <method name="getCanonicalServiceName" return="java.lang.String"
  2558. abstract="false" native="false" synchronized="false"
  2559. static="false" final="false" visibility="public"
  2560. deprecated="not deprecated">
  2561. <doc>
  2562. <![CDATA[Get a canonical service name for this file system. The token cache is
  2563. the only user of this value, and uses it to lookup this filesystem's
  2564. service tokens. The token cache will not attempt to acquire tokens if the
  2565. service is null.
  2566. @return a service string that uniquely identifies this file system, null
  2567. if the filesystem does not implement tokens
  2568. @see SecurityUtil#buildDTServiceName(URI, int)]]>
  2569. </doc>
  2570. </method>
  2571. <method name="getName" return="java.lang.String"
  2572. abstract="false" native="false" synchronized="false"
  2573. static="false" final="false" visibility="public"
  2574. deprecated="call #getUri() instead.">
  2575. <doc>
  2576. <![CDATA[@deprecated call #getUri() instead.]]>
  2577. </doc>
  2578. </method>
  2579. <method name="getNamed" return="org.apache.hadoop.fs.FileSystem"
  2580. abstract="false" native="false" synchronized="false"
  2581. static="true" final="false" visibility="public"
  2582. deprecated="call #get(URI,Configuration) instead.">
  2583. <param name="name" type="java.lang.String"/>
  2584. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2585. <exception name="IOException" type="java.io.IOException"/>
  2586. <doc>
  2587. <![CDATA[@deprecated call #get(URI,Configuration) instead.]]>
  2588. </doc>
  2589. </method>
  2590. <method name="getLocal" return="org.apache.hadoop.fs.LocalFileSystem"
  2591. abstract="false" native="false" synchronized="false"
  2592. static="true" final="false" visibility="public"
  2593. deprecated="not deprecated">
  2594. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2595. <exception name="IOException" type="java.io.IOException"/>
  2596. <doc>
  2597. <![CDATA[Get the local file syste
  2598. @param conf the configuration to configure the file system with
  2599. @return a LocalFileSystem]]>
  2600. </doc>
  2601. </method>
  2602. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  2603. abstract="false" native="false" synchronized="false"
  2604. static="true" final="false" visibility="public"
  2605. deprecated="not deprecated">
  2606. <param name="uri" type="java.net.URI"/>
  2607. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2608. <exception name="IOException" type="java.io.IOException"/>
  2609. <doc>
  2610. <![CDATA[Returns the FileSystem for this URI's scheme and authority. The scheme
  2611. of the URI determines a configuration property name,
  2612. <tt>fs.<i>scheme</i>.class</tt> whose value names the FileSystem class.
  2613. The entire URI is passed to the FileSystem instance's initialize method.]]>
  2614. </doc>
  2615. </method>
  2616. <method name="closeAll"
  2617. abstract="false" native="false" synchronized="false"
  2618. static="true" final="false" visibility="public"
  2619. deprecated="not deprecated">
  2620. <exception name="IOException" type="java.io.IOException"/>
  2621. <doc>
  2622. <![CDATA[Close all cached filesystems. Be sure those filesystems are not
  2623. used anymore.
  2624. @throws IOException]]>
  2625. </doc>
  2626. </method>
  2627. <method name="closeAllForUGI"
  2628. abstract="false" native="false" synchronized="false"
  2629. static="true" final="false" visibility="public"
  2630. deprecated="not deprecated">
  2631. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  2632. <exception name="IOException" type="java.io.IOException"/>
  2633. <doc>
  2634. <![CDATA[Close all cached filesystems for a given UGI. Be sure those filesystems
  2635. are not used anymore.
  2636. @param ugi
  2637. @throws IOException]]>
  2638. </doc>
  2639. </method>
  2640. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  2641. abstract="false" native="false" synchronized="false"
  2642. static="false" final="false" visibility="public"
  2643. deprecated="not deprecated">
  2644. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2645. <doc>
  2646. <![CDATA[Make sure that a path specifies a FileSystem.]]>
  2647. </doc>
  2648. </method>
  2649. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2650. abstract="false" native="false" synchronized="false"
  2651. static="true" final="false" visibility="public"
  2652. deprecated="not deprecated">
  2653. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  2654. <param name="file" type="org.apache.hadoop.fs.Path"/>
  2655. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2656. <exception name="IOException" type="java.io.IOException"/>
  2657. <doc>
  2658. <![CDATA[create a file with the provided permission
  2659. The permission of the file is set to be the provided permission as in
  2660. setPermission, not permission&~umask
  2661. It is implemented using two RPCs. It is understood that it is inefficient,
  2662. but the implementation is thread-safe. The other option is to change the
  2663. value of umask in configuration to be 0, but it is not thread-safe.
  2664. @param fs file system handle
  2665. @param file the name of the file to be created
  2666. @param permission the permission of the file
  2667. @return an output stream
  2668. @throws IOException]]>
  2669. </doc>
  2670. </method>
  2671. <method name="mkdirs" return="boolean"
  2672. abstract="false" native="false" synchronized="false"
  2673. static="true" final="false" visibility="public"
  2674. deprecated="not deprecated">
  2675. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  2676. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  2677. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2678. <exception name="IOException" type="java.io.IOException"/>
  2679. <doc>
  2680. <![CDATA[create a directory with the provided permission
  2681. The permission of the directory is set to be the provided permission as in
  2682. setPermission, not permission&~umask
  2683. @see #create(FileSystem, Path, FsPermission)
  2684. @param fs file system handle
  2685. @param dir the name of the directory to be created
  2686. @param permission the permission of the directory
  2687. @return true if the directory creation succeeds; false otherwise
  2688. @throws IOException]]>
  2689. </doc>
  2690. </method>
  2691. <method name="checkPath"
  2692. abstract="false" native="false" synchronized="false"
  2693. static="false" final="false" visibility="protected"
  2694. deprecated="not deprecated">
  2695. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2696. <doc>
  2697. <![CDATA[Check that a Path belongs to this FileSystem.]]>
  2698. </doc>
  2699. </method>
  2700. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  2701. abstract="false" native="false" synchronized="false"
  2702. static="false" final="false" visibility="public"
  2703. deprecated="not deprecated">
  2704. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  2705. <param name="start" type="long"/>
  2706. <param name="len" type="long"/>
  2707. <exception name="IOException" type="java.io.IOException"/>
  2708. <doc>
  2709. <![CDATA[Return an array containing hostnames, offset and size of
  2710. portions of the given file. For a nonexistent
  2711. file or regions, null will be returned.
  2712. This call is most helpful with DFS, where it returns
  2713. hostnames of machines that contain the given file.
  2714. The FileSystem will simply return an elt containing 'localhost'.]]>
  2715. </doc>
  2716. </method>
  2717. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  2718. abstract="true" native="false" synchronized="false"
  2719. static="false" final="false" visibility="public"
  2720. deprecated="not deprecated">
  2721. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2722. <param name="bufferSize" type="int"/>
  2723. <exception name="IOException" type="java.io.IOException"/>
  2724. <doc>
  2725. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  2726. @param f the file name to open
  2727. @param bufferSize the size of the buffer to be used.]]>
  2728. </doc>
  2729. </method>
  2730. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  2731. abstract="false" native="false" synchronized="false"
  2732. static="false" final="false" visibility="public"
  2733. deprecated="not deprecated">
  2734. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2735. <exception name="IOException" type="java.io.IOException"/>
  2736. <doc>
  2737. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  2738. @param f the file to open]]>
  2739. </doc>
  2740. </method>
  2741. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2742. abstract="false" native="false" synchronized="false"
  2743. static="false" final="false" visibility="public"
  2744. deprecated="not deprecated">
  2745. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2746. <exception name="IOException" type="java.io.IOException"/>
  2747. <doc>
  2748. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  2749. Files are overwritten by default.]]>
  2750. </doc>
  2751. </method>
  2752. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2753. abstract="false" native="false" synchronized="false"
  2754. static="false" final="false" visibility="public"
  2755. deprecated="not deprecated">
  2756. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2757. <param name="overwrite" type="boolean"/>
  2758. <exception name="IOException" type="java.io.IOException"/>
  2759. <doc>
  2760. <![CDATA[Opens an FSDataOutputStream at the indicated Path.]]>
  2761. </doc>
  2762. </method>
  2763. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2764. abstract="false" native="false" synchronized="false"
  2765. static="false" final="false" visibility="public"
  2766. deprecated="not deprecated">
  2767. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2768. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2769. <exception name="IOException" type="java.io.IOException"/>
  2770. <doc>
  2771. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  2772. reporting.
  2773. Files are overwritten by default.]]>
  2774. </doc>
  2775. </method>
  2776. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2777. abstract="false" native="false" synchronized="false"
  2778. static="false" final="false" visibility="public"
  2779. deprecated="not deprecated">
  2780. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2781. <param name="replication" type="short"/>
  2782. <exception name="IOException" type="java.io.IOException"/>
  2783. <doc>
  2784. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  2785. Files are overwritten by default.]]>
  2786. </doc>
  2787. </method>
  2788. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2789. abstract="false" native="false" synchronized="false"
  2790. static="false" final="false" visibility="public"
  2791. deprecated="not deprecated">
  2792. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2793. <param name="replication" type="short"/>
  2794. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2795. <exception name="IOException" type="java.io.IOException"/>
  2796. <doc>
  2797. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2798. reporting.
  2799. Files are overwritten by default.]]>
  2800. </doc>
  2801. </method>
  2802. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2803. abstract="false" native="false" synchronized="false"
  2804. static="false" final="false" visibility="public"
  2805. deprecated="not deprecated">
  2806. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2807. <param name="overwrite" type="boolean"/>
  2808. <param name="bufferSize" type="int"/>
  2809. <exception name="IOException" type="java.io.IOException"/>
  2810. <doc>
  2811. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  2812. @param f the file name to open
  2813. @param overwrite if a file with this name already exists, then if true,
  2814. the file will be overwritten, and if false an error will be thrown.
  2815. @param bufferSize the size of the buffer to be used.]]>
  2816. </doc>
  2817. </method>
  2818. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2819. abstract="false" native="false" synchronized="false"
  2820. static="false" final="false" visibility="public"
  2821. deprecated="not deprecated">
  2822. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2823. <param name="overwrite" type="boolean"/>
  2824. <param name="bufferSize" type="int"/>
  2825. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2826. <exception name="IOException" type="java.io.IOException"/>
  2827. <doc>
  2828. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2829. reporting.
  2830. @param f the file name to open
  2831. @param overwrite if a file with this name already exists, then if true,
  2832. the file will be overwritten, and if false an error will be thrown.
  2833. @param bufferSize the size of the buffer to be used.]]>
  2834. </doc>
  2835. </method>
  2836. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2837. abstract="false" native="false" synchronized="false"
  2838. static="false" final="false" visibility="public"
  2839. deprecated="not deprecated">
  2840. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2841. <param name="overwrite" type="boolean"/>
  2842. <param name="bufferSize" type="int"/>
  2843. <param name="replication" type="short"/>
  2844. <param name="blockSize" type="long"/>
  2845. <exception name="IOException" type="java.io.IOException"/>
  2846. <doc>
  2847. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  2848. @param f the file name to open
  2849. @param overwrite if a file with this name already exists, then if true,
  2850. the file will be overwritten, and if false an error will be thrown.
  2851. @param bufferSize the size of the buffer to be used.
  2852. @param replication required block replication for the file.]]>
  2853. </doc>
  2854. </method>
  2855. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2856. abstract="false" native="false" synchronized="false"
  2857. static="false" final="false" visibility="public"
  2858. deprecated="not deprecated">
  2859. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2860. <param name="overwrite" type="boolean"/>
  2861. <param name="bufferSize" type="int"/>
  2862. <param name="replication" type="short"/>
  2863. <param name="blockSize" type="long"/>
  2864. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2865. <exception name="IOException" type="java.io.IOException"/>
  2866. <doc>
  2867. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2868. reporting.
  2869. @param f the file name to open
  2870. @param overwrite if a file with this name already exists, then if true,
  2871. the file will be overwritten, and if false an error will be thrown.
  2872. @param bufferSize the size of the buffer to be used.
  2873. @param replication required block replication for the file.]]>
  2874. </doc>
  2875. </method>
  2876. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2877. abstract="true" native="false" synchronized="false"
  2878. static="false" final="false" visibility="public"
  2879. deprecated="not deprecated">
  2880. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2881. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2882. <param name="overwrite" type="boolean"/>
  2883. <param name="bufferSize" type="int"/>
  2884. <param name="replication" type="short"/>
  2885. <param name="blockSize" type="long"/>
  2886. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2887. <exception name="IOException" type="java.io.IOException"/>
  2888. <doc>
  2889. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2890. reporting.
  2891. @param f the file name to open
  2892. @param permission
  2893. @param overwrite if a file with this name already exists, then if true,
  2894. the file will be overwritten, and if false an error will be thrown.
  2895. @param bufferSize the size of the buffer to be used.
  2896. @param replication required block replication for the file.
  2897. @param blockSize
  2898. @param progress
  2899. @throws IOException
  2900. @see #setPermission(Path, FsPermission)]]>
  2901. </doc>
  2902. </method>
  2903. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  2904. abstract="false" native="false" synchronized="false"
  2905. static="false" final="false" visibility="public"
  2906. deprecated="API only for 0.20-append">
  2907. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2908. <param name="overwrite" type="boolean"/>
  2909. <param name="bufferSize" type="int"/>
  2910. <param name="replication" type="short"/>
  2911. <param name="blockSize" type="long"/>
  2912. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2913. <exception name="IOException" type="java.io.IOException"/>
  2914. <doc>
  2915. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2916. reporting. Same as create(), except fails if parent directory doesn't
  2917. already exist.
  2918. @param f the file name to open
  2919. @param overwrite if a file with this name already exists, then if true,
  2920. the file will be overwritten, and if false an error will be thrown.
  2921. @param bufferSize the size of the buffer to be used.
  2922. @param replication required block replication for the file.
  2923. @param blockSize
  2924. @param progress
  2925. @throws IOException
  2926. @see #setPermission(Path, FsPermission)
  2927. @deprecated API only for 0.20-append]]>
  2928. </doc>
  2929. </method>
  2930. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  2931. abstract="false" native="false" synchronized="false"
  2932. static="false" final="false" visibility="public"
  2933. deprecated="API only for 0.20-append">
  2934. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2935. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2936. <param name="overwrite" type="boolean"/>
  2937. <param name="bufferSize" type="int"/>
  2938. <param name="replication" type="short"/>
  2939. <param name="blockSize" type="long"/>
  2940. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2941. <exception name="IOException" type="java.io.IOException"/>
  2942. <doc>
  2943. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2944. reporting. Same as create(), except fails if parent directory doesn't
  2945. already exist.
  2946. @param f the file name to open
  2947. @param permission
  2948. @param overwrite if a file with this name already exists, then if true,
  2949. the file will be overwritten, and if false an error will be thrown.
  2950. @param bufferSize the size of the buffer to be used.
  2951. @param replication required block replication for the file.
  2952. @param blockSize
  2953. @param progress
  2954. @throws IOException
  2955. @see #setPermission(Path, FsPermission)
  2956. @deprecated API only for 0.20-append]]>
  2957. </doc>
  2958. </method>
  2959. <method name="createNewFile" return="boolean"
  2960. abstract="false" native="false" synchronized="false"
  2961. static="false" final="false" visibility="public"
  2962. deprecated="not deprecated">
  2963. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2964. <exception name="IOException" type="java.io.IOException"/>
  2965. <doc>
  2966. <![CDATA[Creates the given Path as a brand-new zero-length file. If
  2967. create fails, or if it already existed, return false.]]>
  2968. </doc>
  2969. </method>
  2970. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  2971. abstract="false" native="false" synchronized="false"
  2972. static="false" final="false" visibility="public"
  2973. deprecated="not deprecated">
  2974. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2975. <exception name="IOException" type="java.io.IOException"/>
  2976. <doc>
  2977. <![CDATA[Append to an existing file (optional operation).
  2978. Same as append(f, getConf().getInt("io.file.buffer.size", 4096), null)
  2979. @param f the existing file to be appended.
  2980. @throws IOException]]>
  2981. </doc>
  2982. </method>
  2983. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  2984. abstract="false" native="false" synchronized="false"
  2985. static="false" final="false" visibility="public"
  2986. deprecated="not deprecated">
  2987. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2988. <param name="bufferSize" type="int"/>
  2989. <exception name="IOException" type="java.io.IOException"/>
  2990. <doc>
  2991. <![CDATA[Append to an existing file (optional operation).
  2992. Same as append(f, bufferSize, null).
  2993. @param f the existing file to be appended.
  2994. @param bufferSize the size of the buffer to be used.
  2995. @throws IOException]]>
  2996. </doc>
  2997. </method>
  2998. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  2999. abstract="true" native="false" synchronized="false"
  3000. static="false" final="false" visibility="public"
  3001. deprecated="not deprecated">
  3002. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3003. <param name="bufferSize" type="int"/>
  3004. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  3005. <exception name="IOException" type="java.io.IOException"/>
  3006. <doc>
  3007. <![CDATA[Append to an existing file (optional operation).
  3008. @param f the existing file to be appended.
  3009. @param bufferSize the size of the buffer to be used.
  3010. @param progress for reporting progress if it is not null.
  3011. @throws IOException]]>
  3012. </doc>
  3013. </method>
  3014. <method name="concat"
  3015. abstract="false" native="false" synchronized="false"
  3016. static="false" final="false" visibility="public"
  3017. deprecated="not deprecated">
  3018. <param name="trg" type="org.apache.hadoop.fs.Path"/>
  3019. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  3020. <exception name="IOException" type="java.io.IOException"/>
  3021. <doc>
  3022. <![CDATA[Concat existing files together.
  3023. @param trg the path to the target destination.
  3024. @param psrcs the paths to the sources to use for the concatenation.
  3025. @throws IOException]]>
  3026. </doc>
  3027. </method>
  3028. <method name="getReplication" return="short"
  3029. abstract="false" native="false" synchronized="false"
  3030. static="false" final="false" visibility="public"
  3031. deprecated="Use getFileStatus() instead">
  3032. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3033. <exception name="IOException" type="java.io.IOException"/>
  3034. <doc>
  3035. <![CDATA[Get replication.
  3036. @deprecated Use getFileStatus() instead
  3037. @param src file name
  3038. @return file replication
  3039. @throws IOException]]>
  3040. </doc>
  3041. </method>
  3042. <method name="setReplication" return="boolean"
  3043. abstract="false" native="false" synchronized="false"
  3044. static="false" final="false" visibility="public"
  3045. deprecated="not deprecated">
  3046. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3047. <param name="replication" type="short"/>
  3048. <exception name="IOException" type="java.io.IOException"/>
  3049. <doc>
  3050. <![CDATA[Set replication for an existing file.
  3051. @param src file name
  3052. @param replication new replication
  3053. @throws IOException
  3054. @return true if successful;
  3055. false if file does not exist or is a directory]]>
  3056. </doc>
  3057. </method>
  3058. <method name="rename" return="boolean"
  3059. abstract="true" native="false" synchronized="false"
  3060. static="false" final="false" visibility="public"
  3061. deprecated="not deprecated">
  3062. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3063. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3064. <exception name="IOException" type="java.io.IOException"/>
  3065. <doc>
  3066. <![CDATA[Renames Path src to Path dst. Can take place on local fs
  3067. or remote DFS.]]>
  3068. </doc>
  3069. </method>
  3070. <method name="delete" return="boolean"
  3071. abstract="true" native="false" synchronized="false"
  3072. static="false" final="false" visibility="public"
  3073. deprecated="Use delete(Path, boolean) instead">
  3074. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3075. <exception name="IOException" type="java.io.IOException"/>
  3076. <doc>
  3077. <![CDATA[@deprecated Use delete(Path, boolean) instead]]>
  3078. </doc>
  3079. </method>
  3080. <method name="delete" return="boolean"
  3081. abstract="true" native="false" synchronized="false"
  3082. static="false" final="false" visibility="public"
  3083. deprecated="not deprecated">
  3084. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3085. <param name="recursive" type="boolean"/>
  3086. <exception name="IOException" type="java.io.IOException"/>
  3087. <doc>
  3088. <![CDATA[Delete a file.
  3089. @param f the path to delete.
  3090. @param recursive if path is a directory and set to
  3091. true, the directory is deleted else throws an exception. In
  3092. case of a file the recursive can be set to either true or false.
  3093. @return true if delete is successful else false.
  3094. @throws IOException]]>
  3095. </doc>
  3096. </method>
  3097. <method name="deleteOnExit" return="boolean"
  3098. abstract="false" native="false" synchronized="false"
  3099. static="false" final="false" visibility="public"
  3100. deprecated="not deprecated">
  3101. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3102. <exception name="IOException" type="java.io.IOException"/>
  3103. <doc>
  3104. <![CDATA[Mark a path to be deleted when FileSystem is closed.
  3105. When the JVM shuts down,
  3106. all FileSystem objects will be closed automatically.
  3107. Then,
  3108. the marked path will be deleted as a result of closing the FileSystem.
  3109. The path has to exist in the file system.
  3110. @param f the path to delete.
  3111. @return true if deleteOnExit is successful, otherwise false.
  3112. @throws IOException]]>
  3113. </doc>
  3114. </method>
  3115. <method name="processDeleteOnExit"
  3116. abstract="false" native="false" synchronized="false"
  3117. static="false" final="false" visibility="protected"
  3118. deprecated="not deprecated">
  3119. <doc>
  3120. <![CDATA[Delete all files that were marked as delete-on-exit. This recursively
  3121. deletes all files in the specified paths.]]>
  3122. </doc>
  3123. </method>
  3124. <method name="exists" return="boolean"
  3125. abstract="false" native="false" synchronized="false"
  3126. static="false" final="false" visibility="public"
  3127. deprecated="not deprecated">
  3128. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3129. <exception name="IOException" type="java.io.IOException"/>
  3130. <doc>
  3131. <![CDATA[Check if exists.
  3132. @param f source file]]>
  3133. </doc>
  3134. </method>
  3135. <method name="isDirectory" return="boolean"
  3136. abstract="false" native="false" synchronized="false"
  3137. static="false" final="false" visibility="public"
  3138. deprecated="Use getFileStatus() instead">
  3139. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3140. <exception name="IOException" type="java.io.IOException"/>
  3141. <doc>
  3142. <![CDATA[@deprecated Use getFileStatus() instead]]>
  3143. </doc>
  3144. </method>
  3145. <method name="isFile" return="boolean"
  3146. abstract="false" native="false" synchronized="false"
  3147. static="false" final="false" visibility="public"
  3148. deprecated="not deprecated">
  3149. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3150. <exception name="IOException" type="java.io.IOException"/>
  3151. <doc>
  3152. <![CDATA[True iff the named path is a regular file.]]>
  3153. </doc>
  3154. </method>
  3155. <method name="getLength" return="long"
  3156. abstract="false" native="false" synchronized="false"
  3157. static="false" final="false" visibility="public"
  3158. deprecated="Use getFileStatus() instead">
  3159. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3160. <exception name="IOException" type="java.io.IOException"/>
  3161. <doc>
  3162. <![CDATA[@deprecated Use getFileStatus() instead]]>
  3163. </doc>
  3164. </method>
  3165. <method name="getContentSummary" return="org.apache.hadoop.fs.ContentSummary"
  3166. abstract="false" native="false" synchronized="false"
  3167. static="false" final="false" visibility="public"
  3168. deprecated="not deprecated">
  3169. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3170. <exception name="IOException" type="java.io.IOException"/>
  3171. <doc>
  3172. <![CDATA[Return the {@link ContentSummary} of a given {@link Path}.]]>
  3173. </doc>
  3174. </method>
  3175. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3176. abstract="true" native="false" synchronized="false"
  3177. static="false" final="false" visibility="public"
  3178. deprecated="not deprecated">
  3179. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3180. <exception name="IOException" type="java.io.IOException"/>
  3181. <doc>
  3182. <![CDATA[List the statuses of the files/directories in the given path if the path is
  3183. a directory.
  3184. @param f
  3185. given path
  3186. @return the statuses of the files/directories in the given patch
  3187. returns null, if Path f does not exist in the FileSystem
  3188. @throws IOException]]>
  3189. </doc>
  3190. </method>
  3191. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3192. abstract="false" native="false" synchronized="false"
  3193. static="false" final="false" visibility="public"
  3194. deprecated="not deprecated">
  3195. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3196. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  3197. <exception name="IOException" type="java.io.IOException"/>
  3198. <doc>
  3199. <![CDATA[Filter files/directories in the given path using the user-supplied path
  3200. filter.
  3201. @param f
  3202. a path name
  3203. @param filter
  3204. the user-supplied path filter
  3205. @return an array of FileStatus objects for the files under the given path
  3206. after applying the filter
  3207. @throws IOException
  3208. if encounter any problem while fetching the status]]>
  3209. </doc>
  3210. </method>
  3211. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3212. abstract="false" native="false" synchronized="false"
  3213. static="false" final="false" visibility="public"
  3214. deprecated="not deprecated">
  3215. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  3216. <exception name="IOException" type="java.io.IOException"/>
  3217. <doc>
  3218. <![CDATA[Filter files/directories in the given list of paths using default
  3219. path filter.
  3220. @param files
  3221. a list of paths
  3222. @return a list of statuses for the files under the given paths after
  3223. applying the filter default Path filter
  3224. @exception IOException]]>
  3225. </doc>
  3226. </method>
  3227. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3228. abstract="false" native="false" synchronized="false"
  3229. static="false" final="false" visibility="public"
  3230. deprecated="not deprecated">
  3231. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  3232. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  3233. <exception name="IOException" type="java.io.IOException"/>
  3234. <doc>
  3235. <![CDATA[Filter files/directories in the given list of paths using user-supplied
  3236. path filter.
  3237. @param files
  3238. a list of paths
  3239. @param filter
  3240. the user-supplied path filter
  3241. @return a list of statuses for the files under the given paths after
  3242. applying the filter
  3243. @exception IOException]]>
  3244. </doc>
  3245. </method>
  3246. <method name="globStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3247. abstract="false" native="false" synchronized="false"
  3248. static="false" final="false" visibility="public"
  3249. deprecated="not deprecated">
  3250. <param name="pathPattern" type="org.apache.hadoop.fs.Path"/>
  3251. <exception name="IOException" type="java.io.IOException"/>
  3252. <doc>
  3253. <![CDATA[<p>Return all the files that match filePattern and are not checksum
  3254. files. Results are sorted by their names.
  3255. <p>
  3256. A filename pattern is composed of <i>regular</i> characters and
  3257. <i>special pattern matching</i> characters, which are:
  3258. <dl>
  3259. <dd>
  3260. <dl>
  3261. <p>
  3262. <dt> <tt> ? </tt>
  3263. <dd> Matches any single character.
  3264. <p>
  3265. <dt> <tt> * </tt>
  3266. <dd> Matches zero or more characters.
  3267. <p>
  3268. <dt> <tt> [<i>abc</i>] </tt>
  3269. <dd> Matches a single character from character set
  3270. <tt>{<i>a,b,c</i>}</tt>.
  3271. <p>
  3272. <dt> <tt> [<i>a</i>-<i>b</i>] </tt>
  3273. <dd> Matches a single character from the character range
  3274. <tt>{<i>a...b</i>}</tt>. Note that character <tt><i>a</i></tt> must be
  3275. lexicographically less than or equal to character <tt><i>b</i></tt>.
  3276. <p>
  3277. <dt> <tt> [^<i>a</i>] </tt>
  3278. <dd> Matches a single character that is not from character set or range
  3279. <tt>{<i>a</i>}</tt>. Note that the <tt>^</tt> character must occur
  3280. immediately to the right of the opening bracket.
  3281. <p>
  3282. <dt> <tt> \<i>c</i> </tt>
  3283. <dd> Removes (escapes) any special meaning of character <i>c</i>.
  3284. <p>
  3285. <dt> <tt> {ab,cd} </tt>
  3286. <dd> Matches a string from the string set <tt>{<i>ab, cd</i>} </tt>
  3287. <p>
  3288. <dt> <tt> {ab,c{de,fh}} </tt>
  3289. <dd> Matches a string from the string set <tt>{<i>ab, cde, cfh</i>}</tt>
  3290. </dl>
  3291. </dd>
  3292. </dl>
  3293. @param pathPattern a regular expression specifying a pth pattern
  3294. @return an array of paths that match the path pattern
  3295. @throws IOException]]>
  3296. </doc>
  3297. </method>
  3298. <method name="globStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3299. abstract="false" native="false" synchronized="false"
  3300. static="false" final="false" visibility="public"
  3301. deprecated="not deprecated">
  3302. <param name="pathPattern" type="org.apache.hadoop.fs.Path"/>
  3303. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  3304. <exception name="IOException" type="java.io.IOException"/>
  3305. <doc>
  3306. <![CDATA[Return an array of FileStatus objects whose path names match pathPattern
  3307. and is accepted by the user-supplied path filter. Results are sorted by
  3308. their path names.
  3309. Return null if pathPattern has no glob and the path does not exist.
  3310. Return an empty array if pathPattern has a glob and no path matches it.
  3311. @param pathPattern
  3312. a regular expression specifying the path pattern
  3313. @param filter
  3314. a user-supplied path filter
  3315. @return an array of FileStatus objects
  3316. @throws IOException if any I/O error occurs when fetching file status]]>
  3317. </doc>
  3318. </method>
  3319. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  3320. abstract="false" native="false" synchronized="false"
  3321. static="false" final="false" visibility="public"
  3322. deprecated="not deprecated">
  3323. <doc>
  3324. <![CDATA[Return the current user's home directory in this filesystem.
  3325. The default implementation returns "/user/$USER/".]]>
  3326. </doc>
  3327. </method>
  3328. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  3329. abstract="false" native="false" synchronized="false"
  3330. static="false" final="false" visibility="public"
  3331. deprecated="not deprecated">
  3332. <param name="renewer" type="java.lang.String"/>
  3333. <exception name="IOException" type="java.io.IOException"/>
  3334. <doc>
  3335. <![CDATA[Get a new delegation token for this file system.
  3336. @param renewer the account name that is allowed to renew the token.
  3337. @return a new delegation token
  3338. @throws IOException]]>
  3339. </doc>
  3340. </method>
  3341. <method name="setWorkingDirectory"
  3342. abstract="true" native="false" synchronized="false"
  3343. static="false" final="false" visibility="public"
  3344. deprecated="not deprecated">
  3345. <param name="new_dir" type="org.apache.hadoop.fs.Path"/>
  3346. <doc>
  3347. <![CDATA[Set the current working directory for the given file system. All relative
  3348. paths will be resolved relative to it.
  3349. @param new_dir]]>
  3350. </doc>
  3351. </method>
  3352. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  3353. abstract="true" native="false" synchronized="false"
  3354. static="false" final="false" visibility="public"
  3355. deprecated="not deprecated">
  3356. <doc>
  3357. <![CDATA[Get the current working directory for the given file system
  3358. @return the directory pathname]]>
  3359. </doc>
  3360. </method>
  3361. <method name="mkdirs" return="boolean"
  3362. abstract="false" native="false" synchronized="false"
  3363. static="false" final="false" visibility="public"
  3364. deprecated="not deprecated">
  3365. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3366. <exception name="IOException" type="java.io.IOException"/>
  3367. <doc>
  3368. <![CDATA[Call {@link #mkdirs(Path, FsPermission)} with default permission.]]>
  3369. </doc>
  3370. </method>
  3371. <method name="mkdirs" return="boolean"
  3372. abstract="true" native="false" synchronized="false"
  3373. static="false" final="false" visibility="public"
  3374. deprecated="not deprecated">
  3375. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3376. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3377. <exception name="IOException" type="java.io.IOException"/>
  3378. <doc>
  3379. <![CDATA[Make the given file and all non-existent parents into
  3380. directories. Has the semantics of Unix 'mkdir -p'.
  3381. Existence of the directory hierarchy is not an error.]]>
  3382. </doc>
  3383. </method>
  3384. <method name="copyFromLocalFile"
  3385. abstract="false" native="false" synchronized="false"
  3386. static="false" final="false" visibility="public"
  3387. deprecated="not deprecated">
  3388. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3389. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3390. <exception name="IOException" type="java.io.IOException"/>
  3391. <doc>
  3392. <![CDATA[The src file is on the local disk. Add it to FS at
  3393. the given dst name and the source is kept intact afterwards]]>
  3394. </doc>
  3395. </method>
  3396. <method name="moveFromLocalFile"
  3397. abstract="false" native="false" synchronized="false"
  3398. static="false" final="false" visibility="public"
  3399. deprecated="not deprecated">
  3400. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  3401. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3402. <exception name="IOException" type="java.io.IOException"/>
  3403. <doc>
  3404. <![CDATA[The src files is on the local disk. Add it to FS at
  3405. the given dst name, removing the source afterwards.]]>
  3406. </doc>
  3407. </method>
  3408. <method name="moveFromLocalFile"
  3409. abstract="false" native="false" synchronized="false"
  3410. static="false" final="false" visibility="public"
  3411. deprecated="not deprecated">
  3412. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3413. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3414. <exception name="IOException" type="java.io.IOException"/>
  3415. <doc>
  3416. <![CDATA[The src file is on the local disk. Add it to FS at
  3417. the given dst name, removing the source afterwards.]]>
  3418. </doc>
  3419. </method>
  3420. <method name="copyFromLocalFile"
  3421. abstract="false" native="false" synchronized="false"
  3422. static="false" final="false" visibility="public"
  3423. deprecated="not deprecated">
  3424. <param name="delSrc" type="boolean"/>
  3425. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3426. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3427. <exception name="IOException" type="java.io.IOException"/>
  3428. <doc>
  3429. <![CDATA[The src file is on the local disk. Add it to FS at
  3430. the given dst name.
  3431. delSrc indicates if the source should be removed]]>
  3432. </doc>
  3433. </method>
  3434. <method name="copyFromLocalFile"
  3435. abstract="false" native="false" synchronized="false"
  3436. static="false" final="false" visibility="public"
  3437. deprecated="not deprecated">
  3438. <param name="delSrc" type="boolean"/>
  3439. <param name="overwrite" type="boolean"/>
  3440. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  3441. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3442. <exception name="IOException" type="java.io.IOException"/>
  3443. <doc>
  3444. <![CDATA[The src files are on the local disk. Add it to FS at
  3445. the given dst name.
  3446. delSrc indicates if the source should be removed]]>
  3447. </doc>
  3448. </method>
  3449. <method name="copyFromLocalFile"
  3450. abstract="false" native="false" synchronized="false"
  3451. static="false" final="false" visibility="public"
  3452. deprecated="not deprecated">
  3453. <param name="delSrc" type="boolean"/>
  3454. <param name="overwrite" type="boolean"/>
  3455. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3456. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3457. <exception name="IOException" type="java.io.IOException"/>
  3458. <doc>
  3459. <![CDATA[The src file is on the local disk. Add it to FS at
  3460. the given dst name.
  3461. delSrc indicates if the source should be removed]]>
  3462. </doc>
  3463. </method>
  3464. <method name="copyToLocalFile"
  3465. abstract="false" native="false" synchronized="false"
  3466. static="false" final="false" visibility="public"
  3467. deprecated="not deprecated">
  3468. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3469. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3470. <exception name="IOException" type="java.io.IOException"/>
  3471. <doc>
  3472. <![CDATA[The src file is under FS, and the dst is on the local disk.
  3473. Copy it from FS control to the local dst name.]]>
  3474. </doc>
  3475. </method>
  3476. <method name="moveToLocalFile"
  3477. abstract="false" native="false" synchronized="false"
  3478. static="false" final="false" visibility="public"
  3479. deprecated="not deprecated">
  3480. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3481. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3482. <exception name="IOException" type="java.io.IOException"/>
  3483. <doc>
  3484. <![CDATA[The src file is under FS, and the dst is on the local disk.
  3485. Copy it from FS control to the local dst name.
  3486. Remove the source afterwards]]>
  3487. </doc>
  3488. </method>
  3489. <method name="copyToLocalFile"
  3490. abstract="false" native="false" synchronized="false"
  3491. static="false" final="false" visibility="public"
  3492. deprecated="not deprecated">
  3493. <param name="delSrc" type="boolean"/>
  3494. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3495. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3496. <exception name="IOException" type="java.io.IOException"/>
  3497. <doc>
  3498. <![CDATA[The src file is under FS, and the dst is on the local disk.
  3499. Copy it from FS control to the local dst name.
  3500. delSrc indicates if the src will be removed or not.]]>
  3501. </doc>
  3502. </method>
  3503. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  3504. abstract="false" native="false" synchronized="false"
  3505. static="false" final="false" visibility="public"
  3506. deprecated="not deprecated">
  3507. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  3508. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  3509. <exception name="IOException" type="java.io.IOException"/>
  3510. <doc>
  3511. <![CDATA[Returns a local File that the user can write output to. The caller
  3512. provides both the eventual FS target name and the local working
  3513. file. If the FS is local, we write directly into the target. If
  3514. the FS is remote, we write into the tmp local area.]]>
  3515. </doc>
  3516. </method>
  3517. <method name="completeLocalOutput"
  3518. abstract="false" native="false" synchronized="false"
  3519. static="false" final="false" visibility="public"
  3520. deprecated="not deprecated">
  3521. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  3522. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  3523. <exception name="IOException" type="java.io.IOException"/>
  3524. <doc>
  3525. <![CDATA[Called when we're all done writing to the target. A local FS will
  3526. do nothing, because we've written to exactly the right place. A remote
  3527. FS will copy the contents of tmpLocalFile to the correct target at
  3528. fsOutputFile.]]>
  3529. </doc>
  3530. </method>
  3531. <method name="close"
  3532. abstract="false" native="false" synchronized="false"
  3533. static="false" final="false" visibility="public"
  3534. deprecated="not deprecated">
  3535. <exception name="IOException" type="java.io.IOException"/>
  3536. <doc>
  3537. <![CDATA[No more filesystem operations are needed. Will
  3538. release any held locks.]]>
  3539. </doc>
  3540. </method>
  3541. <method name="getUsed" return="long"
  3542. abstract="false" native="false" synchronized="false"
  3543. static="false" final="false" visibility="public"
  3544. deprecated="not deprecated">
  3545. <exception name="IOException" type="java.io.IOException"/>
  3546. <doc>
  3547. <![CDATA[Return the total size of all files in the filesystem.]]>
  3548. </doc>
  3549. </method>
  3550. <method name="getBlockSize" return="long"
  3551. abstract="false" native="false" synchronized="false"
  3552. static="false" final="false" visibility="public"
  3553. deprecated="Use getFileStatus() instead">
  3554. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3555. <exception name="IOException" type="java.io.IOException"/>
  3556. <doc>
  3557. <![CDATA[@deprecated Use getFileStatus() instead]]>
  3558. </doc>
  3559. </method>
  3560. <method name="getDefaultBlockSize" return="long"
  3561. abstract="false" native="false" synchronized="false"
  3562. static="false" final="false" visibility="public"
  3563. deprecated="use {@link #getDefaultBlockSize(Path)} instead">
  3564. <doc>
  3565. <![CDATA[Return the number of bytes that large input files should be optimally
  3566. be split into to minimize i/o time.
  3567. @deprecated use {@link #getDefaultBlockSize(Path)} instead]]>
  3568. </doc>
  3569. </method>
  3570. <method name="getDefaultBlockSize" return="long"
  3571. abstract="false" native="false" synchronized="false"
  3572. static="false" final="false" visibility="public"
  3573. deprecated="not deprecated">
  3574. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3575. <doc>
  3576. <![CDATA[Return the number of bytes that large input files should be optimally
  3577. be split into to minimize i/o time.
  3578. @param f path of file
  3579. @return the default block size for the path's filesystem]]>
  3580. </doc>
  3581. </method>
  3582. <method name="getDefaultReplication" return="short"
  3583. abstract="false" native="false" synchronized="false"
  3584. static="false" final="false" visibility="public"
  3585. deprecated="use {@link #getDefaultReplication(Path)} instead">
  3586. <doc>
  3587. <![CDATA[Get the default replication.
  3588. @deprecated use {@link #getDefaultReplication(Path)} instead]]>
  3589. </doc>
  3590. </method>
  3591. <method name="getDefaultReplication" return="short"
  3592. abstract="false" native="false" synchronized="false"
  3593. static="false" final="false" visibility="public"
  3594. deprecated="not deprecated">
  3595. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3596. <doc>
  3597. <![CDATA[Get the default replication.
  3598. @param path of the file
  3599. @return default replication for the path's filesystem]]>
  3600. </doc>
  3601. </method>
  3602. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  3603. abstract="true" native="false" synchronized="false"
  3604. static="false" final="false" visibility="public"
  3605. deprecated="not deprecated">
  3606. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3607. <exception name="IOException" type="java.io.IOException"/>
  3608. <doc>
  3609. <![CDATA[Return a file status object that represents the path.
  3610. @param f The path we want information from
  3611. @return a FileStatus object
  3612. @throws FileNotFoundException when the path does not exist;
  3613. IOException see specific implementation]]>
  3614. </doc>
  3615. </method>
  3616. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  3617. abstract="false" native="false" synchronized="false"
  3618. static="false" final="false" visibility="public"
  3619. deprecated="not deprecated">
  3620. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3621. <exception name="IOException" type="java.io.IOException"/>
  3622. <doc>
  3623. <![CDATA[Get the checksum of a file.
  3624. @param f The file path
  3625. @return The file checksum. The default return value is null,
  3626. which indicates that no checksum algorithm is implemented
  3627. in the corresponding FileSystem.]]>
  3628. </doc>
  3629. </method>
  3630. <method name="setVerifyChecksum"
  3631. abstract="false" native="false" synchronized="false"
  3632. static="false" final="false" visibility="public"
  3633. deprecated="not deprecated">
  3634. <param name="verifyChecksum" type="boolean"/>
  3635. <doc>
  3636. <![CDATA[Set the verify checksum flag. This is only applicable if the
  3637. corresponding FileSystem supports checksum. By default doesn't do anything.
  3638. @param verifyChecksum]]>
  3639. </doc>
  3640. </method>
  3641. <method name="setPermission"
  3642. abstract="false" native="false" synchronized="false"
  3643. static="false" final="false" visibility="public"
  3644. deprecated="not deprecated">
  3645. <param name="p" type="org.apache.hadoop.fs.Path"/>
  3646. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3647. <exception name="IOException" type="java.io.IOException"/>
  3648. <doc>
  3649. <![CDATA[Set permission of a path.
  3650. @param p
  3651. @param permission]]>
  3652. </doc>
  3653. </method>
  3654. <method name="setOwner"
  3655. abstract="false" native="false" synchronized="false"
  3656. static="false" final="false" visibility="public"
  3657. deprecated="not deprecated">
  3658. <param name="p" type="org.apache.hadoop.fs.Path"/>
  3659. <param name="username" type="java.lang.String"/>
  3660. <param name="groupname" type="java.lang.String"/>
  3661. <exception name="IOException" type="java.io.IOException"/>
  3662. <doc>
  3663. <![CDATA[Set owner of a path (i.e. a file or a directory).
  3664. The parameters username and groupname cannot both be null.
  3665. @param p The path
  3666. @param username If it is null, the original username remains unchanged.
  3667. @param groupname If it is null, the original groupname remains unchanged.]]>
  3668. </doc>
  3669. </method>
  3670. <method name="setTimes"
  3671. abstract="false" native="false" synchronized="false"
  3672. static="false" final="false" visibility="public"
  3673. deprecated="not deprecated">
  3674. <param name="p" type="org.apache.hadoop.fs.Path"/>
  3675. <param name="mtime" type="long"/>
  3676. <param name="atime" type="long"/>
  3677. <exception name="IOException" type="java.io.IOException"/>
  3678. <doc>
  3679. <![CDATA[Set access time of a file
  3680. @param p The path
  3681. @param mtime Set the modification time of this file.
  3682. The number of milliseconds since Jan 1, 1970.
  3683. A value of -1 means that this call should not set modification time.
  3684. @param atime Set the access time of this file.
  3685. The number of milliseconds since Jan 1, 1970.
  3686. A value of -1 means that this call should not set access time.]]>
  3687. </doc>
  3688. </method>
  3689. <method name="getStatistics" return="java.util.Map"
  3690. abstract="false" native="false" synchronized="true"
  3691. static="true" final="false" visibility="public"
  3692. deprecated="use {@link #getAllStatistics} instead">
  3693. <doc>
  3694. <![CDATA[Get the Map of Statistics object indexed by URI Scheme.
  3695. @return a Map having a key as URI scheme and value as Statistics object
  3696. @deprecated use {@link #getAllStatistics} instead]]>
  3697. </doc>
  3698. </method>
  3699. <method name="getAllStatistics" return="java.util.List"
  3700. abstract="false" native="false" synchronized="true"
  3701. static="true" final="false" visibility="public"
  3702. deprecated="not deprecated">
  3703. <doc>
  3704. <![CDATA[Return the FileSystem classes that have Statistics]]>
  3705. </doc>
  3706. </method>
  3707. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  3708. abstract="false" native="false" synchronized="true"
  3709. static="true" final="false" visibility="public"
  3710. deprecated="not deprecated">
  3711. <param name="scheme" type="java.lang.String"/>
  3712. <param name="cls" type="java.lang.Class"/>
  3713. <doc>
  3714. <![CDATA[Get the statistics for a particular file system
  3715. @param cls the class to lookup
  3716. @return a statistics object]]>
  3717. </doc>
  3718. </method>
  3719. <method name="clearStatistics"
  3720. abstract="false" native="false" synchronized="true"
  3721. static="true" final="false" visibility="public"
  3722. deprecated="not deprecated">
  3723. </method>
  3724. <method name="printStatistics"
  3725. abstract="false" native="false" synchronized="true"
  3726. static="true" final="false" visibility="public"
  3727. deprecated="not deprecated">
  3728. <exception name="IOException" type="java.io.IOException"/>
  3729. </method>
  3730. <field name="FS_DEFAULT_NAME_KEY" type="java.lang.String"
  3731. transient="false" volatile="false"
  3732. static="true" final="true" visibility="public"
  3733. deprecated="not deprecated">
  3734. </field>
  3735. <field name="LOG" type="org.apache.commons.logging.Log"
  3736. transient="false" volatile="false"
  3737. static="true" final="true" visibility="public"
  3738. deprecated="not deprecated">
  3739. </field>
  3740. <field name="statistics" type="org.apache.hadoop.fs.FileSystem.Statistics"
  3741. transient="false" volatile="false"
  3742. static="false" final="false" visibility="protected"
  3743. deprecated="not deprecated">
  3744. <doc>
  3745. <![CDATA[The statistics for this file system.]]>
  3746. </doc>
  3747. </field>
  3748. <doc>
  3749. <![CDATA[An abstract base class for a fairly generic filesystem. It
  3750. may be implemented as a distributed filesystem, or as a "local"
  3751. one that reflects the locally-connected disk. The local version
  3752. exists for small Hadoop instances and for testing.
  3753. <p>
  3754. All user code that may potentially use the Hadoop Distributed
  3755. File System should be written to use a FileSystem object. The
  3756. Hadoop DFS is a multi-machine system that appears as a single
  3757. disk. It's useful because of its fault tolerance and potentially
  3758. very large capacity.
  3759. <p>
  3760. The local implementation is {@link LocalFileSystem} and distributed
  3761. implementation is DistributedFileSystem.]]>
  3762. </doc>
  3763. </class>
  3764. <!-- end class org.apache.hadoop.fs.FileSystem -->
  3765. <!-- start class org.apache.hadoop.fs.FileSystem.Statistics -->
  3766. <class name="FileSystem.Statistics" extends="java.lang.Object"
  3767. abstract="false"
  3768. static="true" final="true" visibility="public"
  3769. deprecated="not deprecated">
  3770. <constructor name="FileSystem.Statistics" type="java.lang.String"
  3771. static="false" final="false" visibility="public"
  3772. deprecated="not deprecated">
  3773. </constructor>
  3774. <method name="incrementBytesRead"
  3775. abstract="false" native="false" synchronized="false"
  3776. static="false" final="false" visibility="public"
  3777. deprecated="not deprecated">
  3778. <param name="newBytes" type="long"/>
  3779. <doc>
  3780. <![CDATA[Increment the bytes read in the statistics
  3781. @param newBytes the additional bytes read]]>
  3782. </doc>
  3783. </method>
  3784. <method name="incrementBytesWritten"
  3785. abstract="false" native="false" synchronized="false"
  3786. static="false" final="false" visibility="public"
  3787. deprecated="not deprecated">
  3788. <param name="newBytes" type="long"/>
  3789. <doc>
  3790. <![CDATA[Increment the bytes written in the statistics
  3791. @param newBytes the additional bytes written]]>
  3792. </doc>
  3793. </method>
  3794. <method name="incrementReadOps"
  3795. abstract="false" native="false" synchronized="false"
  3796. static="false" final="false" visibility="public"
  3797. deprecated="not deprecated">
  3798. <param name="count" type="int"/>
  3799. <doc>
  3800. <![CDATA[Increment the number of read operations
  3801. @param count number of read operations]]>
  3802. </doc>
  3803. </method>
  3804. <method name="incrementLargeReadOps"
  3805. abstract="false" native="false" synchronized="false"
  3806. static="false" final="false" visibility="public"
  3807. deprecated="not deprecated">
  3808. <param name="count" type="int"/>
  3809. <doc>
  3810. <![CDATA[Increment the number of large read operations
  3811. @param count number of large read operations]]>
  3812. </doc>
  3813. </method>
  3814. <method name="incrementWriteOps"
  3815. abstract="false" native="false" synchronized="false"
  3816. static="false" final="false" visibility="public"
  3817. deprecated="not deprecated">
  3818. <param name="count" type="int"/>
  3819. <doc>
  3820. <![CDATA[Increment the number of write operations
  3821. @param count number of write operations]]>
  3822. </doc>
  3823. </method>
  3824. <method name="getBytesRead" return="long"
  3825. abstract="false" native="false" synchronized="false"
  3826. static="false" final="false" visibility="public"
  3827. deprecated="not deprecated">
  3828. <doc>
  3829. <![CDATA[Get the total number of bytes read
  3830. @return the number of bytes]]>
  3831. </doc>
  3832. </method>
  3833. <method name="getBytesWritten" return="long"
  3834. abstract="false" native="false" synchronized="false"
  3835. static="false" final="false" visibility="public"
  3836. deprecated="not deprecated">
  3837. <doc>
  3838. <![CDATA[Get the total number of bytes written
  3839. @return the number of bytes]]>
  3840. </doc>
  3841. </method>
  3842. <method name="getReadOps" return="int"
  3843. abstract="false" native="false" synchronized="false"
  3844. static="false" final="false" visibility="public"
  3845. deprecated="not deprecated">
  3846. <doc>
  3847. <![CDATA[Get the number of file system read operations such as list files
  3848. @return number of read operations]]>
  3849. </doc>
  3850. </method>
  3851. <method name="getLargeReadOps" return="int"
  3852. abstract="false" native="false" synchronized="false"
  3853. static="false" final="false" visibility="public"
  3854. deprecated="not deprecated">
  3855. <doc>
  3856. <![CDATA[Get the number of large file system read operations such as list files
  3857. under a large directory
  3858. @return number of large read operations]]>
  3859. </doc>
  3860. </method>
  3861. <method name="getWriteOps" return="int"
  3862. abstract="false" native="false" synchronized="false"
  3863. static="false" final="false" visibility="public"
  3864. deprecated="not deprecated">
  3865. <doc>
  3866. <![CDATA[Get the number of file system write operations such as create, append
  3867. rename etc.
  3868. @return number of write operations]]>
  3869. </doc>
  3870. </method>
  3871. <method name="toString" return="java.lang.String"
  3872. abstract="false" native="false" synchronized="false"
  3873. static="false" final="false" visibility="public"
  3874. deprecated="not deprecated">
  3875. </method>
  3876. <method name="reset"
  3877. abstract="false" native="false" synchronized="false"
  3878. static="false" final="false" visibility="public"
  3879. deprecated="not deprecated">
  3880. <doc>
  3881. <![CDATA[Reset the counts of bytes to 0.]]>
  3882. </doc>
  3883. </method>
  3884. <method name="getScheme" return="java.lang.String"
  3885. abstract="false" native="false" synchronized="false"
  3886. static="false" final="false" visibility="public"
  3887. deprecated="not deprecated">
  3888. <doc>
  3889. <![CDATA[Get the uri scheme associated with this statistics object.
  3890. @return the schema associated with this set of statistics]]>
  3891. </doc>
  3892. </method>
  3893. </class>
  3894. <!-- end class org.apache.hadoop.fs.FileSystem.Statistics -->
  3895. <!-- start class org.apache.hadoop.fs.FileUtil -->
  3896. <class name="FileUtil" extends="java.lang.Object"
  3897. abstract="false"
  3898. static="false" final="false" visibility="public"
  3899. deprecated="not deprecated">
  3900. <constructor name="FileUtil"
  3901. static="false" final="false" visibility="public"
  3902. deprecated="not deprecated">
  3903. </constructor>
  3904. <method name="stat2Paths" return="org.apache.hadoop.fs.Path[]"
  3905. abstract="false" native="false" synchronized="false"
  3906. static="true" final="false" visibility="public"
  3907. deprecated="not deprecated">
  3908. <param name="stats" type="org.apache.hadoop.fs.FileStatus[]"/>
  3909. <doc>
  3910. <![CDATA[convert an array of FileStatus to an array of Path
  3911. @param stats
  3912. an array of FileStatus objects
  3913. @return an array of paths corresponding to the input]]>
  3914. </doc>
  3915. </method>
  3916. <method name="stat2Paths" return="org.apache.hadoop.fs.Path[]"
  3917. abstract="false" native="false" synchronized="false"
  3918. static="true" final="false" visibility="public"
  3919. deprecated="not deprecated">
  3920. <param name="stats" type="org.apache.hadoop.fs.FileStatus[]"/>
  3921. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3922. <doc>
  3923. <![CDATA[convert an array of FileStatus to an array of Path.
  3924. If stats if null, return path
  3925. @param stats
  3926. an array of FileStatus objects
  3927. @param path
  3928. default path to return in stats is null
  3929. @return an array of paths corresponding to the input]]>
  3930. </doc>
  3931. </method>
  3932. <method name="fullyDelete" return="boolean"
  3933. abstract="false" native="false" synchronized="false"
  3934. static="true" final="false" visibility="public"
  3935. deprecated="not deprecated">
  3936. <param name="dir" type="java.io.File"/>
  3937. <exception name="IOException" type="java.io.IOException"/>
  3938. <doc>
  3939. <![CDATA[Delete a directory and all its contents. If
  3940. we return false, the directory may be partially-deleted.]]>
  3941. </doc>
  3942. </method>
  3943. <method name="fullyDeleteContents" return="boolean"
  3944. abstract="false" native="false" synchronized="false"
  3945. static="true" final="false" visibility="public"
  3946. deprecated="not deprecated">
  3947. <param name="dir" type="java.io.File"/>
  3948. <exception name="IOException" type="java.io.IOException"/>
  3949. <doc>
  3950. <![CDATA[Delete the contents of a directory, not the directory itself. If
  3951. we return false, the directory may be partially-deleted.]]>
  3952. </doc>
  3953. </method>
  3954. <method name="fullyDelete"
  3955. abstract="false" native="false" synchronized="false"
  3956. static="true" final="false" visibility="public"
  3957. deprecated="Use {@link FileSystem#delete(Path, boolean)}">
  3958. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  3959. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  3960. <exception name="IOException" type="java.io.IOException"/>
  3961. <doc>
  3962. <![CDATA[Recursively delete a directory.
  3963. @param fs {@link FileSystem} on which the path is present
  3964. @param dir directory to recursively delete
  3965. @throws IOException
  3966. @deprecated Use {@link FileSystem#delete(Path, boolean)}]]>
  3967. </doc>
  3968. </method>
  3969. <method name="copy" return="boolean"
  3970. abstract="false" native="false" synchronized="false"
  3971. static="true" final="false" visibility="public"
  3972. deprecated="not deprecated">
  3973. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  3974. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3975. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  3976. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3977. <param name="deleteSource" type="boolean"/>
  3978. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3979. <exception name="IOException" type="java.io.IOException"/>
  3980. <doc>
  3981. <![CDATA[Copy files between FileSystems.]]>
  3982. </doc>
  3983. </method>
  3984. <method name="copy" return="boolean"
  3985. abstract="false" native="false" synchronized="false"
  3986. static="true" final="false" visibility="public"
  3987. deprecated="not deprecated">
  3988. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  3989. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  3990. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  3991. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3992. <param name="deleteSource" type="boolean"/>
  3993. <param name="overwrite" type="boolean"/>
  3994. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3995. <exception name="IOException" type="java.io.IOException"/>
  3996. </method>
  3997. <method name="copy" return="boolean"
  3998. abstract="false" native="false" synchronized="false"
  3999. static="true" final="false" visibility="public"
  4000. deprecated="not deprecated">
  4001. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  4002. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4003. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  4004. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  4005. <param name="deleteSource" type="boolean"/>
  4006. <param name="overwrite" type="boolean"/>
  4007. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  4008. <exception name="IOException" type="java.io.IOException"/>
  4009. <doc>
  4010. <![CDATA[Copy files between FileSystems.]]>
  4011. </doc>
  4012. </method>
  4013. <method name="copyMerge" return="boolean"
  4014. abstract="false" native="false" synchronized="false"
  4015. static="true" final="false" visibility="public"
  4016. deprecated="not deprecated">
  4017. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  4018. <param name="srcDir" type="org.apache.hadoop.fs.Path"/>
  4019. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  4020. <param name="dstFile" type="org.apache.hadoop.fs.Path"/>
  4021. <param name="deleteSource" type="boolean"/>
  4022. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  4023. <param name="addString" type="java.lang.String"/>
  4024. <exception name="IOException" type="java.io.IOException"/>
  4025. <doc>
  4026. <![CDATA[Copy all files in a directory to one output file (merge).]]>
  4027. </doc>
  4028. </method>
  4029. <method name="copy" return="boolean"
  4030. abstract="false" native="false" synchronized="false"
  4031. static="true" final="false" visibility="public"
  4032. deprecated="not deprecated">
  4033. <param name="src" type="java.io.File"/>
  4034. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  4035. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  4036. <param name="deleteSource" type="boolean"/>
  4037. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  4038. <exception name="IOException" type="java.io.IOException"/>
  4039. <doc>
  4040. <![CDATA[Copy local files to a FileSystem.]]>
  4041. </doc>
  4042. </method>
  4043. <method name="copy" return="boolean"
  4044. abstract="false" native="false" synchronized="false"
  4045. static="true" final="false" visibility="public"
  4046. deprecated="not deprecated">
  4047. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  4048. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4049. <param name="dst" type="java.io.File"/>
  4050. <param name="deleteSource" type="boolean"/>
  4051. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  4052. <exception name="IOException" type="java.io.IOException"/>
  4053. <doc>
  4054. <![CDATA[Copy FileSystem files to local files.]]>
  4055. </doc>
  4056. </method>
  4057. <method name="makeShellPath" return="java.lang.String"
  4058. abstract="false" native="false" synchronized="false"
  4059. static="true" final="false" visibility="public"
  4060. deprecated="not deprecated">
  4061. <param name="filename" type="java.lang.String"/>
  4062. <exception name="IOException" type="java.io.IOException"/>
  4063. <doc>
  4064. <![CDATA[Convert a os-native filename to a path that works for the shell.
  4065. @param filename The filename to convert
  4066. @return The unix pathname
  4067. @throws IOException on windows, there can be problems with the subprocess]]>
  4068. </doc>
  4069. </method>
  4070. <method name="makeShellPath" return="java.lang.String"
  4071. abstract="false" native="false" synchronized="false"
  4072. static="true" final="false" visibility="public"
  4073. deprecated="not deprecated">
  4074. <param name="file" type="java.io.File"/>
  4075. <exception name="IOException" type="java.io.IOException"/>
  4076. <doc>
  4077. <![CDATA[Convert a os-native filename to a path that works for the shell.
  4078. @param file The filename to convert
  4079. @return The unix pathname
  4080. @throws IOException on windows, there can be problems with the subprocess]]>
  4081. </doc>
  4082. </method>
  4083. <method name="makeShellPath" return="java.lang.String"
  4084. abstract="false" native="false" synchronized="false"
  4085. static="true" final="false" visibility="public"
  4086. deprecated="not deprecated">
  4087. <param name="file" type="java.io.File"/>
  4088. <param name="makeCanonicalPath" type="boolean"/>
  4089. <exception name="IOException" type="java.io.IOException"/>
  4090. <doc>
  4091. <![CDATA[Convert a os-native filename to a path that works for the shell.
  4092. @param file The filename to convert
  4093. @param makeCanonicalPath
  4094. Whether to make canonical path for the file passed
  4095. @return The unix pathname
  4096. @throws IOException on windows, there can be problems with the subprocess]]>
  4097. </doc>
  4098. </method>
  4099. <method name="getDU" return="long"
  4100. abstract="false" native="false" synchronized="false"
  4101. static="true" final="false" visibility="public"
  4102. deprecated="not deprecated">
  4103. <param name="dir" type="java.io.File"/>
  4104. <doc>
  4105. <![CDATA[Takes an input dir and returns the du on that local directory. Very basic
  4106. implementation.
  4107. @param dir
  4108. The input dir to get the disk space of this local dir
  4109. @return The total disk space of the input local directory]]>
  4110. </doc>
  4111. </method>
  4112. <method name="unZip"
  4113. abstract="false" native="false" synchronized="false"
  4114. static="true" final="false" visibility="public"
  4115. deprecated="not deprecated">
  4116. <param name="inFile" type="java.io.File"/>
  4117. <param name="unzipDir" type="java.io.File"/>
  4118. <exception name="IOException" type="java.io.IOException"/>
  4119. <doc>
  4120. <![CDATA[Given a File input it will unzip the file in a the unzip directory
  4121. passed as the second parameter
  4122. @param inFile The zip file as input
  4123. @param unzipDir The unzip directory where to unzip the zip file.
  4124. @throws IOException]]>
  4125. </doc>
  4126. </method>
  4127. <method name="unTar"
  4128. abstract="false" native="false" synchronized="false"
  4129. static="true" final="false" visibility="public"
  4130. deprecated="not deprecated">
  4131. <param name="inFile" type="java.io.File"/>
  4132. <param name="untarDir" type="java.io.File"/>
  4133. <exception name="IOException" type="java.io.IOException"/>
  4134. <doc>
  4135. <![CDATA[Given a Tar File as input it will untar the file in a the untar directory
  4136. passed as the second parameter
  4137. This utility will untar ".tar" files and ".tar.gz","tgz" files.
  4138. @param inFile The tar file as input.
  4139. @param untarDir The untar directory where to untar the tar file.
  4140. @throws IOException]]>
  4141. </doc>
  4142. </method>
  4143. <method name="symLink" return="int"
  4144. abstract="false" native="false" synchronized="false"
  4145. static="true" final="false" visibility="public"
  4146. deprecated="not deprecated">
  4147. <param name="target" type="java.lang.String"/>
  4148. <param name="linkname" type="java.lang.String"/>
  4149. <exception name="IOException" type="java.io.IOException"/>
  4150. <doc>
  4151. <![CDATA[Create a soft link between a src and destination
  4152. only on a local disk. HDFS does not support this
  4153. @param target the target for symlink
  4154. @param linkname the symlink
  4155. @return value returned by the command]]>
  4156. </doc>
  4157. </method>
  4158. <method name="chmod" return="int"
  4159. abstract="false" native="false" synchronized="false"
  4160. static="true" final="false" visibility="public"
  4161. deprecated="not deprecated">
  4162. <param name="filename" type="java.lang.String"/>
  4163. <param name="perm" type="java.lang.String"/>
  4164. <exception name="IOException" type="java.io.IOException"/>
  4165. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  4166. <doc>
  4167. <![CDATA[Change the permissions on a filename.
  4168. @param filename the name of the file to change
  4169. @param perm the permission string
  4170. @return the exit code from the command
  4171. @throws IOException
  4172. @throws InterruptedException]]>
  4173. </doc>
  4174. </method>
  4175. <method name="chmod" return="int"
  4176. abstract="false" native="false" synchronized="false"
  4177. static="true" final="false" visibility="public"
  4178. deprecated="not deprecated">
  4179. <param name="filename" type="java.lang.String"/>
  4180. <param name="perm" type="java.lang.String"/>
  4181. <param name="recursive" type="boolean"/>
  4182. <exception name="IOException" type="java.io.IOException"/>
  4183. <doc>
  4184. <![CDATA[Change the permissions on a file / directory, recursively, if
  4185. needed.
  4186. @param filename name of the file whose permissions are to change
  4187. @param perm permission string
  4188. @param recursive true, if permissions should be changed recursively
  4189. @return the exit code from the command.
  4190. @throws IOException
  4191. @throws InterruptedException]]>
  4192. </doc>
  4193. </method>
  4194. <method name="setPermission"
  4195. abstract="false" native="false" synchronized="false"
  4196. static="true" final="false" visibility="public"
  4197. deprecated="not deprecated">
  4198. <param name="f" type="java.io.File"/>
  4199. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4200. <exception name="IOException" type="java.io.IOException"/>
  4201. <doc>
  4202. <![CDATA[Set permissions to the required value. Uses the java primitives instead
  4203. of forking if group == other.
  4204. @param f the file to change
  4205. @param permission the new permissions
  4206. @throws IOException]]>
  4207. </doc>
  4208. </method>
  4209. <method name="createLocalTempFile" return="java.io.File"
  4210. abstract="false" native="false" synchronized="false"
  4211. static="true" final="true" visibility="public"
  4212. deprecated="not deprecated">
  4213. <param name="basefile" type="java.io.File"/>
  4214. <param name="prefix" type="java.lang.String"/>
  4215. <param name="isDeleteOnExit" type="boolean"/>
  4216. <exception name="IOException" type="java.io.IOException"/>
  4217. <doc>
  4218. <![CDATA[Create a tmp file for a base file.
  4219. @param basefile the base file of the tmp
  4220. @param prefix file name prefix of tmp
  4221. @param isDeleteOnExit if true, the tmp will be deleted when the VM exits
  4222. @return a newly created tmp file
  4223. @exception IOException If a tmp file cannot created
  4224. @see java.io.File#createTempFile(String, String, File)
  4225. @see java.io.File#deleteOnExit()]]>
  4226. </doc>
  4227. </method>
  4228. <method name="replaceFile"
  4229. abstract="false" native="false" synchronized="false"
  4230. static="true" final="false" visibility="public"
  4231. deprecated="not deprecated">
  4232. <param name="src" type="java.io.File"/>
  4233. <param name="target" type="java.io.File"/>
  4234. <exception name="IOException" type="java.io.IOException"/>
  4235. <doc>
  4236. <![CDATA[Move the src file to the name specified by target.
  4237. @param src the source file
  4238. @param target the target file
  4239. @exception IOException If this operation fails]]>
  4240. </doc>
  4241. </method>
  4242. <method name="listFiles" return="java.io.File[]"
  4243. abstract="false" native="false" synchronized="false"
  4244. static="true" final="false" visibility="public"
  4245. deprecated="not deprecated">
  4246. <param name="dir" type="java.io.File"/>
  4247. <exception name="IOException" type="java.io.IOException"/>
  4248. <doc>
  4249. <![CDATA[A wrapper for {@link File#listFiles()}. This java.io API returns null
  4250. when a dir is not a directory or for any I/O error. Instead of having
  4251. null check everywhere File#listFiles() is used, we will add utility API
  4252. to get around this problem. For the majority of cases where we prefer
  4253. an IOException to be thrown.
  4254. @param dir directory for which listing should be performed
  4255. @return list of files or empty list
  4256. @exception IOException for invalid directory or for a bad disk.]]>
  4257. </doc>
  4258. </method>
  4259. <method name="list" return="java.lang.String[]"
  4260. abstract="false" native="false" synchronized="false"
  4261. static="true" final="false" visibility="public"
  4262. deprecated="not deprecated">
  4263. <param name="dir" type="java.io.File"/>
  4264. <exception name="IOException" type="java.io.IOException"/>
  4265. <doc>
  4266. <![CDATA[A wrapper for {@link File#list()}. This java.io API returns null
  4267. when a dir is not a directory or for any I/O error. Instead of having
  4268. null check everywhere File#list() is used, we will add utility API
  4269. to get around this problem. For the majority of cases where we prefer
  4270. an IOException to be thrown.
  4271. @param dir directory for which listing should be performed
  4272. @return list of file names or empty string list
  4273. @exception IOException for invalid directory or for a bad disk.]]>
  4274. </doc>
  4275. </method>
  4276. <doc>
  4277. <![CDATA[A collection of file-processing util methods]]>
  4278. </doc>
  4279. </class>
  4280. <!-- end class org.apache.hadoop.fs.FileUtil -->
  4281. <!-- start class org.apache.hadoop.fs.FilterFileSystem -->
  4282. <class name="FilterFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  4283. abstract="false"
  4284. static="false" final="false" visibility="public"
  4285. deprecated="not deprecated">
  4286. <constructor name="FilterFileSystem"
  4287. static="false" final="false" visibility="public"
  4288. deprecated="not deprecated">
  4289. </constructor>
  4290. <constructor name="FilterFileSystem" type="org.apache.hadoop.fs.FileSystem"
  4291. static="false" final="false" visibility="public"
  4292. deprecated="not deprecated">
  4293. </constructor>
  4294. <method name="initialize"
  4295. abstract="false" native="false" synchronized="false"
  4296. static="false" final="false" visibility="public"
  4297. deprecated="not deprecated">
  4298. <param name="name" type="java.net.URI"/>
  4299. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  4300. <exception name="IOException" type="java.io.IOException"/>
  4301. <doc>
  4302. <![CDATA[Called after a new FileSystem instance is constructed.
  4303. @param name a uri whose authority section names the host, port, etc.
  4304. for this FileSystem
  4305. @param conf the configuration]]>
  4306. </doc>
  4307. </method>
  4308. <method name="getUri" return="java.net.URI"
  4309. abstract="false" native="false" synchronized="false"
  4310. static="false" final="false" visibility="public"
  4311. deprecated="not deprecated">
  4312. <doc>
  4313. <![CDATA[Returns a URI whose scheme and authority identify this FileSystem.]]>
  4314. </doc>
  4315. </method>
  4316. <method name="getCanonicalServiceName" return="java.lang.String"
  4317. abstract="false" native="false" synchronized="false"
  4318. static="false" final="false" visibility="public"
  4319. deprecated="not deprecated">
  4320. </method>
  4321. <method name="getName" return="java.lang.String"
  4322. abstract="false" native="false" synchronized="false"
  4323. static="false" final="false" visibility="public"
  4324. deprecated="call #getUri() instead.">
  4325. <doc>
  4326. <![CDATA[@deprecated call #getUri() instead.]]>
  4327. </doc>
  4328. </method>
  4329. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  4330. abstract="false" native="false" synchronized="false"
  4331. static="false" final="false" visibility="public"
  4332. deprecated="not deprecated">
  4333. <param name="path" type="org.apache.hadoop.fs.Path"/>
  4334. <doc>
  4335. <![CDATA[Make sure that a path specifies a FileSystem.]]>
  4336. </doc>
  4337. </method>
  4338. <method name="checkPath"
  4339. abstract="false" native="false" synchronized="false"
  4340. static="false" final="false" visibility="protected"
  4341. deprecated="not deprecated">
  4342. <param name="path" type="org.apache.hadoop.fs.Path"/>
  4343. <doc>
  4344. <![CDATA[Check that a Path belongs to this FileSystem.]]>
  4345. </doc>
  4346. </method>
  4347. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  4348. abstract="false" native="false" synchronized="false"
  4349. static="false" final="false" visibility="public"
  4350. deprecated="not deprecated">
  4351. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  4352. <param name="start" type="long"/>
  4353. <param name="len" type="long"/>
  4354. <exception name="IOException" type="java.io.IOException"/>
  4355. </method>
  4356. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  4357. abstract="false" native="false" synchronized="false"
  4358. static="false" final="false" visibility="public"
  4359. deprecated="not deprecated">
  4360. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4361. <param name="bufferSize" type="int"/>
  4362. <exception name="IOException" type="java.io.IOException"/>
  4363. <doc>
  4364. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  4365. @param f the file name to open
  4366. @param bufferSize the size of the buffer to be used.]]>
  4367. </doc>
  4368. </method>
  4369. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  4370. abstract="false" native="false" synchronized="false"
  4371. static="false" final="false" visibility="public"
  4372. deprecated="not deprecated">
  4373. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4374. <param name="bufferSize" type="int"/>
  4375. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  4376. <exception name="IOException" type="java.io.IOException"/>
  4377. <doc>
  4378. <![CDATA[{@inheritDoc}]]>
  4379. </doc>
  4380. </method>
  4381. <method name="concat"
  4382. abstract="false" native="false" synchronized="false"
  4383. static="false" final="false" visibility="public"
  4384. deprecated="not deprecated">
  4385. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4386. <param name="psrcs" type="org.apache.hadoop.fs.Path[]"/>
  4387. <exception name="IOException" type="java.io.IOException"/>
  4388. </method>
  4389. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  4390. abstract="false" native="false" synchronized="false"
  4391. static="false" final="false" visibility="public"
  4392. deprecated="not deprecated">
  4393. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4394. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4395. <param name="overwrite" type="boolean"/>
  4396. <param name="bufferSize" type="int"/>
  4397. <param name="replication" type="short"/>
  4398. <param name="blockSize" type="long"/>
  4399. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  4400. <exception name="IOException" type="java.io.IOException"/>
  4401. </method>
  4402. <method name="setReplication" return="boolean"
  4403. abstract="false" native="false" synchronized="false"
  4404. static="false" final="false" visibility="public"
  4405. deprecated="not deprecated">
  4406. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4407. <param name="replication" type="short"/>
  4408. <exception name="IOException" type="java.io.IOException"/>
  4409. <doc>
  4410. <![CDATA[Set replication for an existing file.
  4411. @param src file name
  4412. @param replication new replication
  4413. @throws IOException
  4414. @return true if successful;
  4415. false if file does not exist or is a directory]]>
  4416. </doc>
  4417. </method>
  4418. <method name="rename" return="boolean"
  4419. abstract="false" native="false" synchronized="false"
  4420. static="false" final="false" visibility="public"
  4421. deprecated="not deprecated">
  4422. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4423. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  4424. <exception name="IOException" type="java.io.IOException"/>
  4425. <doc>
  4426. <![CDATA[Renames Path src to Path dst. Can take place on local fs
  4427. or remote DFS.]]>
  4428. </doc>
  4429. </method>
  4430. <method name="delete" return="boolean"
  4431. abstract="false" native="false" synchronized="false"
  4432. static="false" final="false" visibility="public"
  4433. deprecated="not deprecated">
  4434. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4435. <exception name="IOException" type="java.io.IOException"/>
  4436. <doc>
  4437. <![CDATA[Delete a file]]>
  4438. </doc>
  4439. </method>
  4440. <method name="delete" return="boolean"
  4441. abstract="false" native="false" synchronized="false"
  4442. static="false" final="false" visibility="public"
  4443. deprecated="not deprecated">
  4444. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4445. <param name="recursive" type="boolean"/>
  4446. <exception name="IOException" type="java.io.IOException"/>
  4447. <doc>
  4448. <![CDATA[Delete a file]]>
  4449. </doc>
  4450. </method>
  4451. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  4452. abstract="false" native="false" synchronized="false"
  4453. static="false" final="false" visibility="public"
  4454. deprecated="not deprecated">
  4455. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4456. <exception name="IOException" type="java.io.IOException"/>
  4457. <doc>
  4458. <![CDATA[List files in a directory.]]>
  4459. </doc>
  4460. </method>
  4461. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  4462. abstract="false" native="false" synchronized="false"
  4463. static="false" final="false" visibility="public"
  4464. deprecated="not deprecated">
  4465. </method>
  4466. <method name="setWorkingDirectory"
  4467. abstract="false" native="false" synchronized="false"
  4468. static="false" final="false" visibility="public"
  4469. deprecated="not deprecated">
  4470. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  4471. <doc>
  4472. <![CDATA[Set the current working directory for the given file system. All relative
  4473. paths will be resolved relative to it.
  4474. @param newDir]]>
  4475. </doc>
  4476. </method>
  4477. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  4478. abstract="false" native="false" synchronized="false"
  4479. static="false" final="false" visibility="public"
  4480. deprecated="not deprecated">
  4481. <doc>
  4482. <![CDATA[Get the current working directory for the given file system
  4483. @return the directory pathname]]>
  4484. </doc>
  4485. </method>
  4486. <method name="mkdirs" return="boolean"
  4487. abstract="false" native="false" synchronized="false"
  4488. static="false" final="false" visibility="public"
  4489. deprecated="not deprecated">
  4490. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4491. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4492. <exception name="IOException" type="java.io.IOException"/>
  4493. <doc>
  4494. <![CDATA[{@inheritDoc}]]>
  4495. </doc>
  4496. </method>
  4497. <method name="copyFromLocalFile"
  4498. abstract="false" native="false" synchronized="false"
  4499. static="false" final="false" visibility="public"
  4500. deprecated="not deprecated">
  4501. <param name="delSrc" type="boolean"/>
  4502. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4503. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  4504. <exception name="IOException" type="java.io.IOException"/>
  4505. <doc>
  4506. <![CDATA[The src file is on the local disk. Add it to FS at
  4507. the given dst name.
  4508. delSrc indicates if the source should be removed]]>
  4509. </doc>
  4510. </method>
  4511. <method name="copyToLocalFile"
  4512. abstract="false" native="false" synchronized="false"
  4513. static="false" final="false" visibility="public"
  4514. deprecated="not deprecated">
  4515. <param name="delSrc" type="boolean"/>
  4516. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4517. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  4518. <exception name="IOException" type="java.io.IOException"/>
  4519. <doc>
  4520. <![CDATA[The src file is under FS, and the dst is on the local disk.
  4521. Copy it from FS control to the local dst name.
  4522. delSrc indicates if the src will be removed or not.]]>
  4523. </doc>
  4524. </method>
  4525. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  4526. abstract="false" native="false" synchronized="false"
  4527. static="false" final="false" visibility="public"
  4528. deprecated="not deprecated">
  4529. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  4530. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  4531. <exception name="IOException" type="java.io.IOException"/>
  4532. <doc>
  4533. <![CDATA[Returns a local File that the user can write output to. The caller
  4534. provides both the eventual FS target name and the local working
  4535. file. If the FS is local, we write directly into the target. If
  4536. the FS is remote, we write into the tmp local area.]]>
  4537. </doc>
  4538. </method>
  4539. <method name="completeLocalOutput"
  4540. abstract="false" native="false" synchronized="false"
  4541. static="false" final="false" visibility="public"
  4542. deprecated="not deprecated">
  4543. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  4544. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  4545. <exception name="IOException" type="java.io.IOException"/>
  4546. <doc>
  4547. <![CDATA[Called when we're all done writing to the target. A local FS will
  4548. do nothing, because we've written to exactly the right place. A remote
  4549. FS will copy the contents of tmpLocalFile to the correct target at
  4550. fsOutputFile.]]>
  4551. </doc>
  4552. </method>
  4553. <method name="getDefaultBlockSize" return="long"
  4554. abstract="false" native="false" synchronized="false"
  4555. static="false" final="false" visibility="public"
  4556. deprecated="not deprecated">
  4557. <doc>
  4558. <![CDATA[Return the number of bytes that large input files should be optimally
  4559. be split into to minimize i/o time.]]>
  4560. </doc>
  4561. </method>
  4562. <method name="getDefaultReplication" return="short"
  4563. abstract="false" native="false" synchronized="false"
  4564. static="false" final="false" visibility="public"
  4565. deprecated="not deprecated">
  4566. <doc>
  4567. <![CDATA[Get the default replication.]]>
  4568. </doc>
  4569. </method>
  4570. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  4571. abstract="false" native="false" synchronized="false"
  4572. static="false" final="false" visibility="public"
  4573. deprecated="not deprecated">
  4574. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4575. <exception name="IOException" type="java.io.IOException"/>
  4576. <doc>
  4577. <![CDATA[Get file status.]]>
  4578. </doc>
  4579. </method>
  4580. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  4581. abstract="false" native="false" synchronized="false"
  4582. static="false" final="false" visibility="public"
  4583. deprecated="not deprecated">
  4584. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4585. <exception name="IOException" type="java.io.IOException"/>
  4586. <doc>
  4587. <![CDATA[{@inheritDoc}]]>
  4588. </doc>
  4589. </method>
  4590. <method name="setVerifyChecksum"
  4591. abstract="false" native="false" synchronized="false"
  4592. static="false" final="false" visibility="public"
  4593. deprecated="not deprecated">
  4594. <param name="verifyChecksum" type="boolean"/>
  4595. <doc>
  4596. <![CDATA[{@inheritDoc}]]>
  4597. </doc>
  4598. </method>
  4599. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  4600. abstract="false" native="false" synchronized="false"
  4601. static="false" final="false" visibility="public"
  4602. deprecated="not deprecated">
  4603. </method>
  4604. <method name="close"
  4605. abstract="false" native="false" synchronized="false"
  4606. static="false" final="false" visibility="public"
  4607. deprecated="not deprecated">
  4608. <exception name="IOException" type="java.io.IOException"/>
  4609. </method>
  4610. <method name="setOwner"
  4611. abstract="false" native="false" synchronized="false"
  4612. static="false" final="false" visibility="public"
  4613. deprecated="not deprecated">
  4614. <param name="p" type="org.apache.hadoop.fs.Path"/>
  4615. <param name="username" type="java.lang.String"/>
  4616. <param name="groupname" type="java.lang.String"/>
  4617. <exception name="IOException" type="java.io.IOException"/>
  4618. <doc>
  4619. <![CDATA[{@inheritDoc}]]>
  4620. </doc>
  4621. </method>
  4622. <method name="setPermission"
  4623. abstract="false" native="false" synchronized="false"
  4624. static="false" final="false" visibility="public"
  4625. deprecated="not deprecated">
  4626. <param name="p" type="org.apache.hadoop.fs.Path"/>
  4627. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4628. <exception name="IOException" type="java.io.IOException"/>
  4629. <doc>
  4630. <![CDATA[{@inheritDoc}]]>
  4631. </doc>
  4632. </method>
  4633. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  4634. transient="false" volatile="false"
  4635. static="false" final="false" visibility="protected"
  4636. deprecated="not deprecated">
  4637. </field>
  4638. <doc>
  4639. <![CDATA[A <code>FilterFileSystem</code> contains
  4640. some other file system, which it uses as
  4641. its basic file system, possibly transforming
  4642. the data along the way or providing additional
  4643. functionality. The class <code>FilterFileSystem</code>
  4644. itself simply overrides all methods of
  4645. <code>FileSystem</code> with versions that
  4646. pass all requests to the contained file
  4647. system. Subclasses of <code>FilterFileSystem</code>
  4648. may further override some of these methods
  4649. and may also provide additional methods
  4650. and fields.]]>
  4651. </doc>
  4652. </class>
  4653. <!-- end class org.apache.hadoop.fs.FilterFileSystem -->
  4654. <!-- start class org.apache.hadoop.fs.FSDataInputStream -->
  4655. <class name="FSDataInputStream" extends="java.io.DataInputStream"
  4656. abstract="false"
  4657. static="false" final="false" visibility="public"
  4658. deprecated="not deprecated">
  4659. <implements name="org.apache.hadoop.fs.Seekable"/>
  4660. <implements name="org.apache.hadoop.fs.PositionedReadable"/>
  4661. <implements name="java.io.Closeable"/>
  4662. <implements name="org.apache.hadoop.fs.HasFileDescriptor"/>
  4663. <constructor name="FSDataInputStream" type="java.io.InputStream"
  4664. static="false" final="false" visibility="public"
  4665. deprecated="not deprecated">
  4666. <exception name="IOException" type="java.io.IOException"/>
  4667. </constructor>
  4668. <method name="seek"
  4669. abstract="false" native="false" synchronized="true"
  4670. static="false" final="false" visibility="public"
  4671. deprecated="not deprecated">
  4672. <param name="desired" type="long"/>
  4673. <exception name="IOException" type="java.io.IOException"/>
  4674. </method>
  4675. <method name="getPos" return="long"
  4676. abstract="false" native="false" synchronized="false"
  4677. static="false" final="false" visibility="public"
  4678. deprecated="not deprecated">
  4679. <exception name="IOException" type="java.io.IOException"/>
  4680. </method>
  4681. <method name="read" return="int"
  4682. abstract="false" native="false" synchronized="false"
  4683. static="false" final="false" visibility="public"
  4684. deprecated="not deprecated">
  4685. <param name="position" type="long"/>
  4686. <param name="buffer" type="byte[]"/>
  4687. <param name="offset" type="int"/>
  4688. <param name="length" type="int"/>
  4689. <exception name="IOException" type="java.io.IOException"/>
  4690. </method>
  4691. <method name="readFully"
  4692. abstract="false" native="false" synchronized="false"
  4693. static="false" final="false" visibility="public"
  4694. deprecated="not deprecated">
  4695. <param name="position" type="long"/>
  4696. <param name="buffer" type="byte[]"/>
  4697. <param name="offset" type="int"/>
  4698. <param name="length" type="int"/>
  4699. <exception name="IOException" type="java.io.IOException"/>
  4700. </method>
  4701. <method name="readFully"
  4702. abstract="false" native="false" synchronized="false"
  4703. static="false" final="false" visibility="public"
  4704. deprecated="not deprecated">
  4705. <param name="position" type="long"/>
  4706. <param name="buffer" type="byte[]"/>
  4707. <exception name="IOException" type="java.io.IOException"/>
  4708. </method>
  4709. <method name="seekToNewSource" return="boolean"
  4710. abstract="false" native="false" synchronized="false"
  4711. static="false" final="false" visibility="public"
  4712. deprecated="not deprecated">
  4713. <param name="targetPos" type="long"/>
  4714. <exception name="IOException" type="java.io.IOException"/>
  4715. </method>
  4716. <method name="getFileDescriptor" return="java.io.FileDescriptor"
  4717. abstract="false" native="false" synchronized="false"
  4718. static="false" final="false" visibility="public"
  4719. deprecated="not deprecated">
  4720. <exception name="IOException" type="java.io.IOException"/>
  4721. </method>
  4722. <doc>
  4723. <![CDATA[Utility that wraps a {@link FSInputStream} in a {@link DataInputStream}
  4724. and buffers input through a {@link BufferedInputStream}.]]>
  4725. </doc>
  4726. </class>
  4727. <!-- end class org.apache.hadoop.fs.FSDataInputStream -->
  4728. <!-- start class org.apache.hadoop.fs.FSDataOutputStream -->
  4729. <class name="FSDataOutputStream" extends="java.io.DataOutputStream"
  4730. abstract="false"
  4731. static="false" final="false" visibility="public"
  4732. deprecated="not deprecated">
  4733. <implements name="org.apache.hadoop.fs.Syncable"/>
  4734. <constructor name="FSDataOutputStream" type="java.io.OutputStream"
  4735. static="false" final="false" visibility="public"
  4736. deprecated="not deprecated">
  4737. <exception name="IOException" type="java.io.IOException"/>
  4738. </constructor>
  4739. <constructor name="FSDataOutputStream" type="java.io.OutputStream, org.apache.hadoop.fs.FileSystem.Statistics"
  4740. static="false" final="false" visibility="public"
  4741. deprecated="not deprecated">
  4742. <exception name="IOException" type="java.io.IOException"/>
  4743. </constructor>
  4744. <constructor name="FSDataOutputStream" type="java.io.OutputStream, org.apache.hadoop.fs.FileSystem.Statistics, long"
  4745. static="false" final="false" visibility="public"
  4746. deprecated="not deprecated">
  4747. <exception name="IOException" type="java.io.IOException"/>
  4748. </constructor>
  4749. <method name="getPos" return="long"
  4750. abstract="false" native="false" synchronized="false"
  4751. static="false" final="false" visibility="public"
  4752. deprecated="not deprecated">
  4753. <exception name="IOException" type="java.io.IOException"/>
  4754. </method>
  4755. <method name="close"
  4756. abstract="false" native="false" synchronized="false"
  4757. static="false" final="false" visibility="public"
  4758. deprecated="not deprecated">
  4759. <exception name="IOException" type="java.io.IOException"/>
  4760. </method>
  4761. <method name="getWrappedStream" return="java.io.OutputStream"
  4762. abstract="false" native="false" synchronized="false"
  4763. static="false" final="false" visibility="public"
  4764. deprecated="not deprecated">
  4765. </method>
  4766. <method name="sync"
  4767. abstract="false" native="false" synchronized="false"
  4768. static="false" final="false" visibility="public"
  4769. deprecated="not deprecated">
  4770. <exception name="IOException" type="java.io.IOException"/>
  4771. <doc>
  4772. <![CDATA[{@inheritDoc}]]>
  4773. </doc>
  4774. </method>
  4775. <doc>
  4776. <![CDATA[Utility that wraps a {@link OutputStream} in a {@link DataOutputStream},
  4777. buffers output through a {@link BufferedOutputStream} and creates a checksum
  4778. file.]]>
  4779. </doc>
  4780. </class>
  4781. <!-- end class org.apache.hadoop.fs.FSDataOutputStream -->
  4782. <!-- start class org.apache.hadoop.fs.FSError -->
  4783. <class name="FSError" extends="java.lang.Error"
  4784. abstract="false"
  4785. static="false" final="false" visibility="public"
  4786. deprecated="not deprecated">
  4787. <doc>
  4788. <![CDATA[Thrown for unexpected filesystem errors, presumed to reflect disk errors
  4789. in the native filesystem.]]>
  4790. </doc>
  4791. </class>
  4792. <!-- end class org.apache.hadoop.fs.FSError -->
  4793. <!-- start class org.apache.hadoop.fs.FSInputChecker -->
  4794. <class name="FSInputChecker" extends="org.apache.hadoop.fs.FSInputStream"
  4795. abstract="true"
  4796. static="false" final="false" visibility="public"
  4797. deprecated="not deprecated">
  4798. <constructor name="FSInputChecker" type="org.apache.hadoop.fs.Path, int"
  4799. static="false" final="false" visibility="protected"
  4800. deprecated="not deprecated">
  4801. <doc>
  4802. <![CDATA[Constructor
  4803. @param file The name of the file to be read
  4804. @param numOfRetries Number of read retries when ChecksumError occurs]]>
  4805. </doc>
  4806. </constructor>
  4807. <constructor name="FSInputChecker" type="org.apache.hadoop.fs.Path, int, boolean, java.util.zip.Checksum, int, int"
  4808. static="false" final="false" visibility="protected"
  4809. deprecated="not deprecated">
  4810. <doc>
  4811. <![CDATA[Constructor
  4812. @param file The name of the file to be read
  4813. @param numOfRetries Number of read retries when ChecksumError occurs
  4814. @param sum the type of Checksum engine
  4815. @param chunkSize maximun chunk size
  4816. @param checksumSize the number byte of each checksum]]>
  4817. </doc>
  4818. </constructor>
  4819. <method name="readChunk" return="int"
  4820. abstract="true" native="false" synchronized="false"
  4821. static="false" final="false" visibility="protected"
  4822. deprecated="not deprecated">
  4823. <param name="pos" type="long"/>
  4824. <param name="buf" type="byte[]"/>
  4825. <param name="offset" type="int"/>
  4826. <param name="len" type="int"/>
  4827. <param name="checksum" type="byte[]"/>
  4828. <exception name="IOException" type="java.io.IOException"/>
  4829. <doc>
  4830. <![CDATA[Reads in next checksum chunk data into <code>buf</code> at <code>offset</code>
  4831. and checksum into <code>checksum</code>.
  4832. The method is used for implementing read, therefore, it should be optimized
  4833. for sequential reading
  4834. @param pos chunkPos
  4835. @param buf desitination buffer
  4836. @param offset offset in buf at which to store data
  4837. @param len maximun number of bytes to read
  4838. @return number of bytes read]]>
  4839. </doc>
  4840. </method>
  4841. <method name="getChunkPosition" return="long"
  4842. abstract="true" native="false" synchronized="false"
  4843. static="false" final="false" visibility="protected"
  4844. deprecated="not deprecated">
  4845. <param name="pos" type="long"/>
  4846. <doc>
  4847. <![CDATA[Return position of beginning of chunk containing pos.
  4848. @param pos a postion in the file
  4849. @return the starting position of the chunk which contains the byte]]>
  4850. </doc>
  4851. </method>
  4852. <method name="needChecksum" return="boolean"
  4853. abstract="false" native="false" synchronized="true"
  4854. static="false" final="false" visibility="protected"
  4855. deprecated="not deprecated">
  4856. <doc>
  4857. <![CDATA[Return true if there is a need for checksum verification]]>
  4858. </doc>
  4859. </method>
  4860. <method name="read" return="int"
  4861. abstract="false" native="false" synchronized="true"
  4862. static="false" final="false" visibility="public"
  4863. deprecated="not deprecated">
  4864. <exception name="IOException" type="java.io.IOException"/>
  4865. <doc>
  4866. <![CDATA[Read one checksum-verified byte
  4867. @return the next byte of data, or <code>-1</code> if the end of the
  4868. stream is reached.
  4869. @exception IOException if an I/O error occurs.]]>
  4870. </doc>
  4871. </method>
  4872. <method name="read" return="int"
  4873. abstract="false" native="false" synchronized="true"
  4874. static="false" final="false" visibility="public"
  4875. deprecated="not deprecated">
  4876. <param name="b" type="byte[]"/>
  4877. <param name="off" type="int"/>
  4878. <param name="len" type="int"/>
  4879. <exception name="IOException" type="java.io.IOException"/>
  4880. <doc>
  4881. <![CDATA[Read checksum verified bytes from this byte-input stream into
  4882. the specified byte array, starting at the given offset.
  4883. <p> This method implements the general contract of the corresponding
  4884. <code>{@link InputStream#read(byte[], int, int) read}</code> method of
  4885. the <code>{@link InputStream}</code> class. As an additional
  4886. convenience, it attempts to read as many bytes as possible by repeatedly
  4887. invoking the <code>read</code> method of the underlying stream. This
  4888. iterated <code>read</code> continues until one of the following
  4889. conditions becomes true: <ul>
  4890. <li> The specified number of bytes have been read,
  4891. <li> The <code>read</code> method of the underlying stream returns
  4892. <code>-1</code>, indicating end-of-file.
  4893. </ul> If the first <code>read</code> on the underlying stream returns
  4894. <code>-1</code> to indicate end-of-file then this method returns
  4895. <code>-1</code>. Otherwise this method returns the number of bytes
  4896. actually read.
  4897. @param b destination buffer.
  4898. @param off offset at which to start storing bytes.
  4899. @param len maximum number of bytes to read.
  4900. @return the number of bytes read, or <code>-1</code> if the end of
  4901. the stream has been reached.
  4902. @exception IOException if an I/O error occurs.
  4903. ChecksumException if any checksum error occurs]]>
  4904. </doc>
  4905. </method>
  4906. <method name="checksum2long" return="long"
  4907. abstract="false" native="false" synchronized="false"
  4908. static="true" final="false" visibility="public"
  4909. deprecated="not deprecated">
  4910. <param name="checksum" type="byte[]"/>
  4911. <doc>
  4912. <![CDATA[Convert a checksum byte array to a long]]>
  4913. </doc>
  4914. </method>
  4915. <method name="getPos" return="long"
  4916. abstract="false" native="false" synchronized="true"
  4917. static="false" final="false" visibility="public"
  4918. deprecated="not deprecated">
  4919. <exception name="IOException" type="java.io.IOException"/>
  4920. </method>
  4921. <method name="available" return="int"
  4922. abstract="false" native="false" synchronized="true"
  4923. static="false" final="false" visibility="public"
  4924. deprecated="not deprecated">
  4925. <exception name="IOException" type="java.io.IOException"/>
  4926. </method>
  4927. <method name="skip" return="long"
  4928. abstract="false" native="false" synchronized="true"
  4929. static="false" final="false" visibility="public"
  4930. deprecated="not deprecated">
  4931. <param name="n" type="long"/>
  4932. <exception name="IOException" type="java.io.IOException"/>
  4933. <doc>
  4934. <![CDATA[Skips over and discards <code>n</code> bytes of data from the
  4935. input stream.
  4936. <p>This method may skip more bytes than are remaining in the backing
  4937. file. This produces no exception and the number of bytes skipped
  4938. may include some number of bytes that were beyond the EOF of the
  4939. backing file. Attempting to read from the stream after skipping past
  4940. the end will result in -1 indicating the end of the file.
  4941. <p>If <code>n</code> is negative, no bytes are skipped.
  4942. @param n the number of bytes to be skipped.
  4943. @return the actual number of bytes skipped.
  4944. @exception IOException if an I/O error occurs.
  4945. ChecksumException if the chunk to skip to is corrupted]]>
  4946. </doc>
  4947. </method>
  4948. <method name="seek"
  4949. abstract="false" native="false" synchronized="true"
  4950. static="false" final="false" visibility="public"
  4951. deprecated="not deprecated">
  4952. <param name="pos" type="long"/>
  4953. <exception name="IOException" type="java.io.IOException"/>
  4954. <doc>
  4955. <![CDATA[Seek to the given position in the stream.
  4956. The next read() will be from that position.
  4957. <p>This method may seek past the end of the file.
  4958. This produces no exception and an attempt to read from
  4959. the stream will result in -1 indicating the end of the file.
  4960. @param pos the postion to seek to.
  4961. @exception IOException if an I/O error occurs.
  4962. ChecksumException if the chunk to seek to is corrupted]]>
  4963. </doc>
  4964. </method>
  4965. <method name="readFully" return="int"
  4966. abstract="false" native="false" synchronized="false"
  4967. static="true" final="false" visibility="protected"
  4968. deprecated="not deprecated">
  4969. <param name="stm" type="java.io.InputStream"/>
  4970. <param name="buf" type="byte[]"/>
  4971. <param name="offset" type="int"/>
  4972. <param name="len" type="int"/>
  4973. <exception name="IOException" type="java.io.IOException"/>
  4974. <doc>
  4975. <![CDATA[A utility function that tries to read up to <code>len</code> bytes from
  4976. <code>stm</code>
  4977. @param stm an input stream
  4978. @param buf destiniation buffer
  4979. @param offset offset at which to store data
  4980. @param len number of bytes to read
  4981. @return actual number of bytes read
  4982. @throws IOException if there is any IO error]]>
  4983. </doc>
  4984. </method>
  4985. <method name="set"
  4986. abstract="false" native="false" synchronized="true"
  4987. static="false" final="true" visibility="protected"
  4988. deprecated="not deprecated">
  4989. <param name="verifyChecksum" type="boolean"/>
  4990. <param name="sum" type="java.util.zip.Checksum"/>
  4991. <param name="maxChunkSize" type="int"/>
  4992. <param name="checksumSize" type="int"/>
  4993. <doc>
  4994. <![CDATA[Set the checksum related parameters
  4995. @param verifyChecksum whether to verify checksum
  4996. @param sum which type of checksum to use
  4997. @param maxChunkSize maximun chunk size
  4998. @param checksumSize checksum size]]>
  4999. </doc>
  5000. </method>
  5001. <method name="markSupported" return="boolean"
  5002. abstract="false" native="false" synchronized="false"
  5003. static="false" final="true" visibility="public"
  5004. deprecated="not deprecated">
  5005. </method>
  5006. <method name="mark"
  5007. abstract="false" native="false" synchronized="false"
  5008. static="false" final="true" visibility="public"
  5009. deprecated="not deprecated">
  5010. <param name="readlimit" type="int"/>
  5011. </method>
  5012. <method name="reset"
  5013. abstract="false" native="false" synchronized="false"
  5014. static="false" final="true" visibility="public"
  5015. deprecated="not deprecated">
  5016. <exception name="IOException" type="java.io.IOException"/>
  5017. </method>
  5018. <field name="LOG" type="org.apache.commons.logging.Log"
  5019. transient="false" volatile="false"
  5020. static="true" final="true" visibility="public"
  5021. deprecated="not deprecated">
  5022. </field>
  5023. <field name="file" type="org.apache.hadoop.fs.Path"
  5024. transient="false" volatile="false"
  5025. static="false" final="false" visibility="protected"
  5026. deprecated="not deprecated">
  5027. <doc>
  5028. <![CDATA[The file name from which data is read from]]>
  5029. </doc>
  5030. </field>
  5031. <doc>
  5032. <![CDATA[This is a generic input stream for verifying checksums for
  5033. data before it is read by a user.]]>
  5034. </doc>
  5035. </class>
  5036. <!-- end class org.apache.hadoop.fs.FSInputChecker -->
  5037. <!-- start class org.apache.hadoop.fs.FSInputStream -->
  5038. <class name="FSInputStream" extends="java.io.InputStream"
  5039. abstract="true"
  5040. static="false" final="false" visibility="public"
  5041. deprecated="not deprecated">
  5042. <implements name="org.apache.hadoop.fs.Seekable"/>
  5043. <implements name="org.apache.hadoop.fs.PositionedReadable"/>
  5044. <constructor name="FSInputStream"
  5045. static="false" final="false" visibility="public"
  5046. deprecated="not deprecated">
  5047. </constructor>
  5048. <method name="seek"
  5049. abstract="true" native="false" synchronized="false"
  5050. static="false" final="false" visibility="public"
  5051. deprecated="not deprecated">
  5052. <param name="pos" type="long"/>
  5053. <exception name="IOException" type="java.io.IOException"/>
  5054. <doc>
  5055. <![CDATA[Seek to the given offset from the start of the file.
  5056. The next read() will be from that location. Can't
  5057. seek past the end of the file.]]>
  5058. </doc>
  5059. </method>
  5060. <method name="getPos" return="long"
  5061. abstract="true" native="false" synchronized="false"
  5062. static="false" final="false" visibility="public"
  5063. deprecated="not deprecated">
  5064. <exception name="IOException" type="java.io.IOException"/>
  5065. <doc>
  5066. <![CDATA[Return the current offset from the start of the file]]>
  5067. </doc>
  5068. </method>
  5069. <method name="seekToNewSource" return="boolean"
  5070. abstract="true" native="false" synchronized="false"
  5071. static="false" final="false" visibility="public"
  5072. deprecated="not deprecated">
  5073. <param name="targetPos" type="long"/>
  5074. <exception name="IOException" type="java.io.IOException"/>
  5075. <doc>
  5076. <![CDATA[Seeks a different copy of the data. Returns true if
  5077. found a new source, false otherwise.]]>
  5078. </doc>
  5079. </method>
  5080. <method name="read" return="int"
  5081. abstract="false" native="false" synchronized="false"
  5082. static="false" final="false" visibility="public"
  5083. deprecated="not deprecated">
  5084. <param name="position" type="long"/>
  5085. <param name="buffer" type="byte[]"/>
  5086. <param name="offset" type="int"/>
  5087. <param name="length" type="int"/>
  5088. <exception name="IOException" type="java.io.IOException"/>
  5089. </method>
  5090. <method name="readFully"
  5091. abstract="false" native="false" synchronized="false"
  5092. static="false" final="false" visibility="public"
  5093. deprecated="not deprecated">
  5094. <param name="position" type="long"/>
  5095. <param name="buffer" type="byte[]"/>
  5096. <param name="offset" type="int"/>
  5097. <param name="length" type="int"/>
  5098. <exception name="IOException" type="java.io.IOException"/>
  5099. </method>
  5100. <method name="readFully"
  5101. abstract="false" native="false" synchronized="false"
  5102. static="false" final="false" visibility="public"
  5103. deprecated="not deprecated">
  5104. <param name="position" type="long"/>
  5105. <param name="buffer" type="byte[]"/>
  5106. <exception name="IOException" type="java.io.IOException"/>
  5107. </method>
  5108. <doc>
  5109. <![CDATA[FSInputStream is a generic old InputStream with a little bit
  5110. of RAF-style seek ability.]]>
  5111. </doc>
  5112. </class>
  5113. <!-- end class org.apache.hadoop.fs.FSInputStream -->
  5114. <!-- start class org.apache.hadoop.fs.FSOutputSummer -->
  5115. <class name="FSOutputSummer" extends="java.io.OutputStream"
  5116. abstract="true"
  5117. static="false" final="false" visibility="public"
  5118. deprecated="not deprecated">
  5119. <constructor name="FSOutputSummer" type="java.util.zip.Checksum, int, int"
  5120. static="false" final="false" visibility="protected"
  5121. deprecated="not deprecated">
  5122. </constructor>
  5123. <method name="writeChunk"
  5124. abstract="true" native="false" synchronized="false"
  5125. static="false" final="false" visibility="protected"
  5126. deprecated="not deprecated">
  5127. <param name="b" type="byte[]"/>
  5128. <param name="offset" type="int"/>
  5129. <param name="len" type="int"/>
  5130. <param name="checksum" type="byte[]"/>
  5131. <exception name="IOException" type="java.io.IOException"/>
  5132. </method>
  5133. <method name="write"
  5134. abstract="false" native="false" synchronized="true"
  5135. static="false" final="false" visibility="public"
  5136. deprecated="not deprecated">
  5137. <param name="b" type="int"/>
  5138. <exception name="IOException" type="java.io.IOException"/>
  5139. <doc>
  5140. <![CDATA[Write one byte]]>
  5141. </doc>
  5142. </method>
  5143. <method name="write"
  5144. abstract="false" native="false" synchronized="true"
  5145. static="false" final="false" visibility="public"
  5146. deprecated="not deprecated">
  5147. <param name="b" type="byte[]"/>
  5148. <param name="off" type="int"/>
  5149. <param name="len" type="int"/>
  5150. <exception name="IOException" type="java.io.IOException"/>
  5151. <doc>
  5152. <![CDATA[Writes <code>len</code> bytes from the specified byte array
  5153. starting at offset <code>off</code> and generate a checksum for
  5154. each data chunk.
  5155. <p> This method stores bytes from the given array into this
  5156. stream's buffer before it gets checksumed. The buffer gets checksumed
  5157. and flushed to the underlying output stream when all data
  5158. in a checksum chunk are in the buffer. If the buffer is empty and
  5159. requested length is at least as large as the size of next checksum chunk
  5160. size, this method will checksum and write the chunk directly
  5161. to the underlying output stream. Thus it avoids uneccessary data copy.
  5162. @param b the data.
  5163. @param off the start offset in the data.
  5164. @param len the number of bytes to write.
  5165. @exception IOException if an I/O error occurs.]]>
  5166. </doc>
  5167. </method>
  5168. <method name="flushBuffer"
  5169. abstract="false" native="false" synchronized="true"
  5170. static="false" final="false" visibility="protected"
  5171. deprecated="not deprecated">
  5172. <exception name="IOException" type="java.io.IOException"/>
  5173. </method>
  5174. <method name="flushBuffer"
  5175. abstract="false" native="false" synchronized="true"
  5176. static="false" final="false" visibility="protected"
  5177. deprecated="not deprecated">
  5178. <param name="keep" type="boolean"/>
  5179. <exception name="IOException" type="java.io.IOException"/>
  5180. </method>
  5181. <method name="convertToByteStream" return="byte[]"
  5182. abstract="false" native="false" synchronized="false"
  5183. static="true" final="false" visibility="public"
  5184. deprecated="not deprecated">
  5185. <param name="sum" type="java.util.zip.Checksum"/>
  5186. <param name="checksumSize" type="int"/>
  5187. <doc>
  5188. <![CDATA[Converts a checksum integer value to a byte stream]]>
  5189. </doc>
  5190. </method>
  5191. <method name="resetChecksumChunk"
  5192. abstract="false" native="false" synchronized="true"
  5193. static="false" final="false" visibility="protected"
  5194. deprecated="not deprecated">
  5195. <param name="size" type="int"/>
  5196. <doc>
  5197. <![CDATA[Resets existing buffer with a new one of the specified size.]]>
  5198. </doc>
  5199. </method>
  5200. <doc>
  5201. <![CDATA[This is a generic output stream for generating checksums for
  5202. data before it is written to the underlying stream]]>
  5203. </doc>
  5204. </class>
  5205. <!-- end class org.apache.hadoop.fs.FSOutputSummer -->
  5206. <!-- start class org.apache.hadoop.fs.FsShell -->
  5207. <class name="FsShell" extends="org.apache.hadoop.conf.Configured"
  5208. abstract="false"
  5209. static="false" final="false" visibility="public"
  5210. deprecated="not deprecated">
  5211. <implements name="org.apache.hadoop.util.Tool"/>
  5212. <constructor name="FsShell"
  5213. static="false" final="false" visibility="public"
  5214. deprecated="not deprecated">
  5215. </constructor>
  5216. <constructor name="FsShell" type="org.apache.hadoop.conf.Configuration"
  5217. static="false" final="false" visibility="public"
  5218. deprecated="not deprecated">
  5219. </constructor>
  5220. <method name="init"
  5221. abstract="false" native="false" synchronized="false"
  5222. static="false" final="false" visibility="protected"
  5223. deprecated="not deprecated">
  5224. <exception name="IOException" type="java.io.IOException"/>
  5225. </method>
  5226. <method name="getFS" return="org.apache.hadoop.fs.FileSystem"
  5227. abstract="false" native="false" synchronized="false"
  5228. static="false" final="false" visibility="protected"
  5229. deprecated="not deprecated">
  5230. <exception name="IOException" type="java.io.IOException"/>
  5231. </method>
  5232. <method name="getTrash" return="org.apache.hadoop.fs.Trash"
  5233. abstract="false" native="false" synchronized="false"
  5234. static="false" final="false" visibility="protected"
  5235. deprecated="not deprecated">
  5236. <exception name="IOException" type="java.io.IOException"/>
  5237. </method>
  5238. <method name="getCurrentTrashDir" return="org.apache.hadoop.fs.Path"
  5239. abstract="false" native="false" synchronized="false"
  5240. static="false" final="false" visibility="public"
  5241. deprecated="not deprecated">
  5242. <exception name="IOException" type="java.io.IOException"/>
  5243. <doc>
  5244. <![CDATA[Returns the Trash object associated with this shell.]]>
  5245. </doc>
  5246. </method>
  5247. <method name="byteDesc" return="java.lang.String"
  5248. abstract="false" native="false" synchronized="false"
  5249. static="true" final="false" visibility="public"
  5250. deprecated="Consider using {@link org.apache.hadoop.util.StringUtils#byteDesc} instead.">
  5251. <param name="len" type="long"/>
  5252. <doc>
  5253. <![CDATA[Return an abbreviated English-language desc of the byte length
  5254. @deprecated Consider using {@link org.apache.hadoop.util.StringUtils#byteDesc} instead.]]>
  5255. </doc>
  5256. </method>
  5257. <method name="limitDecimalTo2" return="java.lang.String"
  5258. abstract="false" native="false" synchronized="true"
  5259. static="true" final="false" visibility="public"
  5260. deprecated="Consider using {@link org.apache.hadoop.util.StringUtils#limitDecimalTo2} instead.">
  5261. <param name="d" type="double"/>
  5262. <doc>
  5263. <![CDATA[@deprecated Consider using {@link org.apache.hadoop.util.StringUtils#limitDecimalTo2} instead.]]>
  5264. </doc>
  5265. </method>
  5266. <method name="run" return="int"
  5267. abstract="false" native="false" synchronized="false"
  5268. static="false" final="false" visibility="public"
  5269. deprecated="not deprecated">
  5270. <param name="argv" type="java.lang.String[]"/>
  5271. <exception name="Exception" type="java.lang.Exception"/>
  5272. <doc>
  5273. <![CDATA[run]]>
  5274. </doc>
  5275. </method>
  5276. <method name="close"
  5277. abstract="false" native="false" synchronized="false"
  5278. static="false" final="false" visibility="public"
  5279. deprecated="not deprecated">
  5280. <exception name="IOException" type="java.io.IOException"/>
  5281. </method>
  5282. <method name="main"
  5283. abstract="false" native="false" synchronized="false"
  5284. static="true" final="false" visibility="public"
  5285. deprecated="not deprecated">
  5286. <param name="argv" type="java.lang.String[]"/>
  5287. <exception name="Exception" type="java.lang.Exception"/>
  5288. <doc>
  5289. <![CDATA[main() has some simple utility methods]]>
  5290. </doc>
  5291. </method>
  5292. <field name="dateForm" type="java.text.SimpleDateFormat"
  5293. transient="false" volatile="false"
  5294. static="true" final="true" visibility="public"
  5295. deprecated="not deprecated">
  5296. </field>
  5297. <field name="modifFmt" type="java.text.SimpleDateFormat"
  5298. transient="false" volatile="false"
  5299. static="true" final="true" visibility="protected"
  5300. deprecated="not deprecated">
  5301. </field>
  5302. <doc>
  5303. <![CDATA[Provide command line access to a FileSystem.]]>
  5304. </doc>
  5305. </class>
  5306. <!-- end class org.apache.hadoop.fs.FsShell -->
  5307. <!-- start class org.apache.hadoop.fs.FsUrlStreamHandlerFactory -->
  5308. <class name="FsUrlStreamHandlerFactory" extends="java.lang.Object"
  5309. abstract="false"
  5310. static="false" final="false" visibility="public"
  5311. deprecated="not deprecated">
  5312. <implements name="java.net.URLStreamHandlerFactory"/>
  5313. <constructor name="FsUrlStreamHandlerFactory"
  5314. static="false" final="false" visibility="public"
  5315. deprecated="not deprecated">
  5316. </constructor>
  5317. <constructor name="FsUrlStreamHandlerFactory" type="org.apache.hadoop.conf.Configuration"
  5318. static="false" final="false" visibility="public"
  5319. deprecated="not deprecated">
  5320. </constructor>
  5321. <method name="createURLStreamHandler" return="java.net.URLStreamHandler"
  5322. abstract="false" native="false" synchronized="false"
  5323. static="false" final="false" visibility="public"
  5324. deprecated="not deprecated">
  5325. <param name="protocol" type="java.lang.String"/>
  5326. </method>
  5327. <doc>
  5328. <![CDATA[Factory for URL stream handlers.
  5329. There is only one handler whose job is to create UrlConnections. A
  5330. FsUrlConnection relies on FileSystem to choose the appropriate FS
  5331. implementation.
  5332. Before returning our handler, we make sure that FileSystem knows an
  5333. implementation for the requested scheme/protocol.]]>
  5334. </doc>
  5335. </class>
  5336. <!-- end class org.apache.hadoop.fs.FsUrlStreamHandlerFactory -->
  5337. <!-- start class org.apache.hadoop.fs.GlobPattern -->
  5338. <class name="GlobPattern" extends="java.lang.Object"
  5339. abstract="false"
  5340. static="false" final="false" visibility="public"
  5341. deprecated="not deprecated">
  5342. <constructor name="GlobPattern" type="java.lang.String"
  5343. static="false" final="false" visibility="public"
  5344. deprecated="not deprecated">
  5345. <doc>
  5346. <![CDATA[Construct the glob pattern object with a glob pattern string
  5347. @param globPattern the glob pattern string]]>
  5348. </doc>
  5349. </constructor>
  5350. <method name="compiled" return="java.util.regex.Pattern"
  5351. abstract="false" native="false" synchronized="false"
  5352. static="false" final="false" visibility="public"
  5353. deprecated="not deprecated">
  5354. <doc>
  5355. <![CDATA[@return the compiled pattern]]>
  5356. </doc>
  5357. </method>
  5358. <method name="compile" return="java.util.regex.Pattern"
  5359. abstract="false" native="false" synchronized="false"
  5360. static="true" final="false" visibility="public"
  5361. deprecated="not deprecated">
  5362. <param name="globPattern" type="java.lang.String"/>
  5363. <doc>
  5364. <![CDATA[Compile glob pattern string
  5365. @param globPattern the glob pattern
  5366. @return the pattern object]]>
  5367. </doc>
  5368. </method>
  5369. <method name="matches" return="boolean"
  5370. abstract="false" native="false" synchronized="false"
  5371. static="false" final="false" visibility="public"
  5372. deprecated="not deprecated">
  5373. <param name="s" type="java.lang.CharSequence"/>
  5374. <doc>
  5375. <![CDATA[Match input against the compiled glob pattern
  5376. @param s input chars
  5377. @return true for successful matches]]>
  5378. </doc>
  5379. </method>
  5380. <method name="set"
  5381. abstract="false" native="false" synchronized="false"
  5382. static="false" final="false" visibility="public"
  5383. deprecated="not deprecated">
  5384. <param name="glob" type="java.lang.String"/>
  5385. <doc>
  5386. <![CDATA[Set and compile a glob pattern
  5387. @param glob the glob pattern string]]>
  5388. </doc>
  5389. </method>
  5390. <method name="hasWildcard" return="boolean"
  5391. abstract="false" native="false" synchronized="false"
  5392. static="false" final="false" visibility="public"
  5393. deprecated="not deprecated">
  5394. <doc>
  5395. <![CDATA[@return true if this is a wildcard pattern (with special chars)]]>
  5396. </doc>
  5397. </method>
  5398. <doc>
  5399. <![CDATA[A class for POSIX glob pattern with brace expansions.]]>
  5400. </doc>
  5401. </class>
  5402. <!-- end class org.apache.hadoop.fs.GlobPattern -->
  5403. <!-- start class org.apache.hadoop.fs.HardLink -->
  5404. <class name="HardLink" extends="java.lang.Object"
  5405. abstract="false"
  5406. static="false" final="false" visibility="public"
  5407. deprecated="not deprecated">
  5408. <constructor name="HardLink"
  5409. static="false" final="false" visibility="public"
  5410. deprecated="not deprecated">
  5411. </constructor>
  5412. <method name="getLinkMultArgLength" return="int"
  5413. abstract="false" native="false" synchronized="false"
  5414. static="true" final="false" visibility="protected"
  5415. deprecated="not deprecated">
  5416. <param name="fileDir" type="java.io.File"/>
  5417. <param name="fileBaseNames" type="java.lang.String[]"/>
  5418. <param name="linkDir" type="java.io.File"/>
  5419. <exception name="IOException" type="java.io.IOException"/>
  5420. <doc>
  5421. <![CDATA[Calculate the nominal length of all contributors to the total
  5422. commandstring length, including fixed overhead of the OS-dependent
  5423. command. It's protected rather than private, to assist unit testing,
  5424. but real clients are not expected to need it -- see the way
  5425. createHardLinkMult() uses it internally so the user doesn't need to worry
  5426. about it.
  5427. @param fileDir - source directory, parent of fileBaseNames
  5428. @param fileBaseNames - array of path-less file names, relative
  5429. to the source directory
  5430. @param linkDir - target directory where the hardlinks will be put
  5431. @return - total data length (must not exceed maxAllowedCmdArgLength)
  5432. @throws IOException]]>
  5433. </doc>
  5434. </method>
  5435. <method name="getMaxAllowedCmdArgLength" return="int"
  5436. abstract="false" native="false" synchronized="false"
  5437. static="true" final="false" visibility="protected"
  5438. deprecated="not deprecated">
  5439. <doc>
  5440. <![CDATA[Return this private value for use by unit tests.
  5441. Shell commands are not allowed to have a total string length
  5442. exceeding this size.]]>
  5443. </doc>
  5444. </method>
  5445. <method name="createHardLink"
  5446. abstract="false" native="false" synchronized="false"
  5447. static="true" final="false" visibility="public"
  5448. deprecated="not deprecated">
  5449. <param name="file" type="java.io.File"/>
  5450. <param name="linkName" type="java.io.File"/>
  5451. <exception name="IOException" type="java.io.IOException"/>
  5452. <doc>
  5453. <![CDATA[Creates a hardlink
  5454. @param file - existing source file
  5455. @param linkName - desired target link file]]>
  5456. </doc>
  5457. </method>
  5458. <method name="createHardLinkMult"
  5459. abstract="false" native="false" synchronized="false"
  5460. static="true" final="false" visibility="public"
  5461. deprecated="not deprecated">
  5462. <param name="parentDir" type="java.io.File"/>
  5463. <param name="fileBaseNames" type="java.lang.String[]"/>
  5464. <param name="linkDir" type="java.io.File"/>
  5465. <exception name="IOException" type="java.io.IOException"/>
  5466. <doc>
  5467. <![CDATA[Creates hardlinks from multiple existing files within one parent
  5468. directory, into one target directory.
  5469. @param parentDir - directory containing source files
  5470. @param fileBaseNames - list of path-less file names, as returned by
  5471. parentDir.list()
  5472. @param linkDir - where the hardlinks should be put. It must already exist.
  5473. If the list of files is too long (overflows maxAllowedCmdArgLength),
  5474. we will automatically split it into multiple invocations of the
  5475. underlying method.]]>
  5476. </doc>
  5477. </method>
  5478. <method name="createHardLinkMult" return="int"
  5479. abstract="false" native="false" synchronized="false"
  5480. static="true" final="false" visibility="protected"
  5481. deprecated="not deprecated">
  5482. <param name="parentDir" type="java.io.File"/>
  5483. <param name="fileBaseNames" type="java.lang.String[]"/>
  5484. <param name="linkDir" type="java.io.File"/>
  5485. <param name="maxLength" type="int"/>
  5486. <exception name="IOException" type="java.io.IOException"/>
  5487. </method>
  5488. <method name="getLinkCount" return="int"
  5489. abstract="false" native="false" synchronized="false"
  5490. static="true" final="false" visibility="public"
  5491. deprecated="not deprecated">
  5492. <param name="fileName" type="java.io.File"/>
  5493. <exception name="IOException" type="java.io.IOException"/>
  5494. <doc>
  5495. <![CDATA[Retrieves the number of links to the specified file.]]>
  5496. </doc>
  5497. </method>
  5498. <field name="osType" type="org.apache.hadoop.fs.HardLink.OSType"
  5499. transient="false" volatile="false"
  5500. static="true" final="false" visibility="public"
  5501. deprecated="not deprecated">
  5502. </field>
  5503. <field name="linkStats" type="org.apache.hadoop.fs.HardLink.LinkStats"
  5504. transient="false" volatile="false"
  5505. static="false" final="true" visibility="public"
  5506. deprecated="not deprecated">
  5507. </field>
  5508. <doc>
  5509. <![CDATA[Class for creating hardlinks.
  5510. Supports Unix/Linux, WinXP/2003/Vista via Cygwin, and Mac OS X.
  5511. The HardLink class was formerly a static inner class of FSUtil,
  5512. and the methods provided were blatantly non-thread-safe.
  5513. To enable volume-parallel Update snapshots, we now provide static
  5514. threadsafe methods that allocate new buffer string arrays
  5515. upon each call. We also provide an API to hardlink all files in a
  5516. directory with a single command, which is up to 128 times more
  5517. efficient - and minimizes the impact of the extra buffer creations.]]>
  5518. </doc>
  5519. </class>
  5520. <!-- end class org.apache.hadoop.fs.HardLink -->
  5521. <!-- start class org.apache.hadoop.fs.HardLink.LinkStats -->
  5522. <class name="HardLink.LinkStats" extends="java.lang.Object"
  5523. abstract="false"
  5524. static="true" final="false" visibility="public"
  5525. deprecated="not deprecated">
  5526. <constructor name="HardLink.LinkStats"
  5527. static="false" final="false" visibility="public"
  5528. deprecated="not deprecated">
  5529. </constructor>
  5530. <method name="clear"
  5531. abstract="false" native="false" synchronized="false"
  5532. static="false" final="false" visibility="public"
  5533. deprecated="not deprecated">
  5534. </method>
  5535. <method name="report" return="java.lang.String"
  5536. abstract="false" native="false" synchronized="false"
  5537. static="false" final="false" visibility="public"
  5538. deprecated="not deprecated">
  5539. </method>
  5540. <field name="countDirs" type="int"
  5541. transient="false" volatile="false"
  5542. static="false" final="false" visibility="public"
  5543. deprecated="not deprecated">
  5544. </field>
  5545. <field name="countSingleLinks" type="int"
  5546. transient="false" volatile="false"
  5547. static="false" final="false" visibility="public"
  5548. deprecated="not deprecated">
  5549. </field>
  5550. <field name="countMultLinks" type="int"
  5551. transient="false" volatile="false"
  5552. static="false" final="false" visibility="public"
  5553. deprecated="not deprecated">
  5554. </field>
  5555. <field name="countFilesMultLinks" type="int"
  5556. transient="false" volatile="false"
  5557. static="false" final="false" visibility="public"
  5558. deprecated="not deprecated">
  5559. </field>
  5560. <field name="countEmptyDirs" type="int"
  5561. transient="false" volatile="false"
  5562. static="false" final="false" visibility="public"
  5563. deprecated="not deprecated">
  5564. </field>
  5565. <field name="countPhysicalFileCopies" type="int"
  5566. transient="false" volatile="false"
  5567. static="false" final="false" visibility="public"
  5568. deprecated="not deprecated">
  5569. </field>
  5570. <doc>
  5571. <![CDATA[HardLink statistics counters and methods.
  5572. Not multi-thread safe, obviously.
  5573. Init is called during HardLink instantiation, above.
  5574. These are intended for use by knowledgeable clients, not internally,
  5575. because many of the internal methods are static and can't update these
  5576. per-instance counters.]]>
  5577. </doc>
  5578. </class>
  5579. <!-- end class org.apache.hadoop.fs.HardLink.LinkStats -->
  5580. <!-- start class org.apache.hadoop.fs.HardLink.OSType -->
  5581. <class name="HardLink.OSType" extends="java.lang.Enum"
  5582. abstract="false"
  5583. static="true" final="true" visibility="public"
  5584. deprecated="not deprecated">
  5585. <method name="values" return="org.apache.hadoop.fs.HardLink.OSType[]"
  5586. abstract="false" native="false" synchronized="false"
  5587. static="true" final="false" visibility="public"
  5588. deprecated="not deprecated">
  5589. </method>
  5590. <method name="valueOf" return="org.apache.hadoop.fs.HardLink.OSType"
  5591. abstract="false" native="false" synchronized="false"
  5592. static="true" final="false" visibility="public"
  5593. deprecated="not deprecated">
  5594. <param name="name" type="java.lang.String"/>
  5595. </method>
  5596. <field name="OS_TYPE_UNIX" type="org.apache.hadoop.fs.HardLink.OSType"
  5597. transient="false" volatile="false"
  5598. static="true" final="true" visibility="public"
  5599. deprecated="not deprecated">
  5600. </field>
  5601. <field name="OS_TYPE_WINXP" type="org.apache.hadoop.fs.HardLink.OSType"
  5602. transient="false" volatile="false"
  5603. static="true" final="true" visibility="public"
  5604. deprecated="not deprecated">
  5605. </field>
  5606. <field name="OS_TYPE_SOLARIS" type="org.apache.hadoop.fs.HardLink.OSType"
  5607. transient="false" volatile="false"
  5608. static="true" final="true" visibility="public"
  5609. deprecated="not deprecated">
  5610. </field>
  5611. <field name="OS_TYPE_MAC" type="org.apache.hadoop.fs.HardLink.OSType"
  5612. transient="false" volatile="false"
  5613. static="true" final="true" visibility="public"
  5614. deprecated="not deprecated">
  5615. </field>
  5616. </class>
  5617. <!-- end class org.apache.hadoop.fs.HardLink.OSType -->
  5618. <!-- start class org.apache.hadoop.fs.HarFileSystem -->
  5619. <class name="HarFileSystem" extends="org.apache.hadoop.fs.FilterFileSystem"
  5620. abstract="false"
  5621. static="false" final="false" visibility="public"
  5622. deprecated="not deprecated">
  5623. <constructor name="HarFileSystem"
  5624. static="false" final="false" visibility="public"
  5625. deprecated="not deprecated">
  5626. <doc>
  5627. <![CDATA[public construction of harfilesystem]]>
  5628. </doc>
  5629. </constructor>
  5630. <constructor name="HarFileSystem" type="org.apache.hadoop.fs.FileSystem"
  5631. static="false" final="false" visibility="public"
  5632. deprecated="not deprecated">
  5633. <doc>
  5634. <![CDATA[Constructor to create a HarFileSystem with an
  5635. underlying filesystem.
  5636. @param fs]]>
  5637. </doc>
  5638. </constructor>
  5639. <method name="initialize"
  5640. abstract="false" native="false" synchronized="false"
  5641. static="false" final="false" visibility="public"
  5642. deprecated="not deprecated">
  5643. <param name="name" type="java.net.URI"/>
  5644. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5645. <exception name="IOException" type="java.io.IOException"/>
  5646. <doc>
  5647. <![CDATA[Initialize a Har filesystem per har archive. The
  5648. archive home directory is the top level directory
  5649. in the filesystem that contains the HAR archive.
  5650. Be careful with this method, you do not want to go
  5651. on creating new Filesystem instances per call to
  5652. path.getFileSystem().
  5653. the uri of Har is
  5654. har://underlyingfsscheme-host:port/archivepath.
  5655. or
  5656. har:///archivepath. This assumes the underlying filesystem
  5657. to be used in case not specified.]]>
  5658. </doc>
  5659. </method>
  5660. <method name="getHarVersion" return="int"
  5661. abstract="false" native="false" synchronized="false"
  5662. static="false" final="false" visibility="public"
  5663. deprecated="not deprecated">
  5664. <exception name="IOException" type="java.io.IOException"/>
  5665. </method>
  5666. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  5667. abstract="false" native="false" synchronized="false"
  5668. static="false" final="false" visibility="public"
  5669. deprecated="not deprecated">
  5670. <doc>
  5671. <![CDATA[return the top level archive.]]>
  5672. </doc>
  5673. </method>
  5674. <method name="getUri" return="java.net.URI"
  5675. abstract="false" native="false" synchronized="false"
  5676. static="false" final="false" visibility="public"
  5677. deprecated="not deprecated">
  5678. <doc>
  5679. <![CDATA[Returns the uri of this filesystem.
  5680. The uri is of the form
  5681. har://underlyingfsschema-host:port/pathintheunderlyingfs]]>
  5682. </doc>
  5683. </method>
  5684. <method name="getCanonicalServiceName" return="java.lang.String"
  5685. abstract="false" native="false" synchronized="false"
  5686. static="false" final="false" visibility="public"
  5687. deprecated="not deprecated">
  5688. </method>
  5689. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  5690. abstract="false" native="false" synchronized="false"
  5691. static="false" final="false" visibility="public"
  5692. deprecated="not deprecated">
  5693. <param name="path" type="org.apache.hadoop.fs.Path"/>
  5694. </method>
  5695. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  5696. abstract="false" native="false" synchronized="false"
  5697. static="false" final="false" visibility="public"
  5698. deprecated="not deprecated">
  5699. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  5700. <param name="start" type="long"/>
  5701. <param name="len" type="long"/>
  5702. <exception name="IOException" type="java.io.IOException"/>
  5703. <doc>
  5704. <![CDATA[Get block locations from the underlying fs and fix their
  5705. offsets and lengths.
  5706. @param file the input filestatus to get block locations
  5707. @param start the start of the desired range in the contained file
  5708. @param len the length of the desired range
  5709. @return block locations for this segment of file
  5710. @throws IOException]]>
  5711. </doc>
  5712. </method>
  5713. <method name="getHarHash" return="int"
  5714. abstract="false" native="false" synchronized="false"
  5715. static="true" final="false" visibility="public"
  5716. deprecated="not deprecated">
  5717. <param name="p" type="org.apache.hadoop.fs.Path"/>
  5718. <doc>
  5719. <![CDATA[the hash of the path p inside iniside
  5720. the filesystem
  5721. @param p the path in the harfilesystem
  5722. @return the hash code of the path.]]>
  5723. </doc>
  5724. </method>
  5725. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  5726. abstract="false" native="false" synchronized="false"
  5727. static="false" final="false" visibility="public"
  5728. deprecated="not deprecated">
  5729. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5730. <exception name="IOException" type="java.io.IOException"/>
  5731. <doc>
  5732. <![CDATA[return the filestatus of files in har archive.
  5733. The permission returned are that of the archive
  5734. index files. The permissions are not persisted
  5735. while creating a hadoop archive.
  5736. @param f the path in har filesystem
  5737. @return filestatus.
  5738. @throws IOException]]>
  5739. </doc>
  5740. </method>
  5741. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  5742. abstract="false" native="false" synchronized="false"
  5743. static="false" final="false" visibility="public"
  5744. deprecated="not deprecated">
  5745. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5746. <doc>
  5747. <![CDATA[@return null since no checksum algorithm is implemented.]]>
  5748. </doc>
  5749. </method>
  5750. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  5751. abstract="false" native="false" synchronized="false"
  5752. static="false" final="false" visibility="public"
  5753. deprecated="not deprecated">
  5754. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5755. <param name="bufferSize" type="int"/>
  5756. <exception name="IOException" type="java.io.IOException"/>
  5757. <doc>
  5758. <![CDATA[Returns a har input stream which fakes end of
  5759. file. It reads the index files to get the part
  5760. file name and the size and start of the file.]]>
  5761. </doc>
  5762. </method>
  5763. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  5764. abstract="false" native="false" synchronized="false"
  5765. static="false" final="false" visibility="public"
  5766. deprecated="not deprecated">
  5767. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5768. <param name="bufferSize" type="int"/>
  5769. <exception name="IOException" type="java.io.IOException"/>
  5770. </method>
  5771. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  5772. abstract="false" native="false" synchronized="false"
  5773. static="false" final="false" visibility="public"
  5774. deprecated="not deprecated">
  5775. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5776. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  5777. <param name="overwrite" type="boolean"/>
  5778. <param name="bufferSize" type="int"/>
  5779. <param name="replication" type="short"/>
  5780. <param name="blockSize" type="long"/>
  5781. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  5782. <exception name="IOException" type="java.io.IOException"/>
  5783. </method>
  5784. <method name="close"
  5785. abstract="false" native="false" synchronized="false"
  5786. static="false" final="false" visibility="public"
  5787. deprecated="not deprecated">
  5788. <exception name="IOException" type="java.io.IOException"/>
  5789. </method>
  5790. <method name="setReplication" return="boolean"
  5791. abstract="false" native="false" synchronized="false"
  5792. static="false" final="false" visibility="public"
  5793. deprecated="not deprecated">
  5794. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5795. <param name="replication" type="short"/>
  5796. <exception name="IOException" type="java.io.IOException"/>
  5797. <doc>
  5798. <![CDATA[Not implemented.]]>
  5799. </doc>
  5800. </method>
  5801. <method name="delete" return="boolean"
  5802. abstract="false" native="false" synchronized="false"
  5803. static="false" final="false" visibility="public"
  5804. deprecated="not deprecated">
  5805. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5806. <param name="recursive" type="boolean"/>
  5807. <exception name="IOException" type="java.io.IOException"/>
  5808. <doc>
  5809. <![CDATA[Not implemented.]]>
  5810. </doc>
  5811. </method>
  5812. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  5813. abstract="false" native="false" synchronized="false"
  5814. static="false" final="false" visibility="public"
  5815. deprecated="not deprecated">
  5816. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5817. <exception name="IOException" type="java.io.IOException"/>
  5818. <doc>
  5819. <![CDATA[liststatus returns the children of a directory
  5820. after looking up the index files.]]>
  5821. </doc>
  5822. </method>
  5823. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  5824. abstract="false" native="false" synchronized="false"
  5825. static="false" final="false" visibility="public"
  5826. deprecated="not deprecated">
  5827. <doc>
  5828. <![CDATA[return the top level archive path.]]>
  5829. </doc>
  5830. </method>
  5831. <method name="setWorkingDirectory"
  5832. abstract="false" native="false" synchronized="false"
  5833. static="false" final="false" visibility="public"
  5834. deprecated="not deprecated">
  5835. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  5836. </method>
  5837. <method name="mkdirs" return="boolean"
  5838. abstract="false" native="false" synchronized="false"
  5839. static="false" final="false" visibility="public"
  5840. deprecated="not deprecated">
  5841. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5842. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  5843. <exception name="IOException" type="java.io.IOException"/>
  5844. <doc>
  5845. <![CDATA[not implemented.]]>
  5846. </doc>
  5847. </method>
  5848. <method name="copyFromLocalFile"
  5849. abstract="false" native="false" synchronized="false"
  5850. static="false" final="false" visibility="public"
  5851. deprecated="not deprecated">
  5852. <param name="delSrc" type="boolean"/>
  5853. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5854. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5855. <exception name="IOException" type="java.io.IOException"/>
  5856. <doc>
  5857. <![CDATA[not implemented.]]>
  5858. </doc>
  5859. </method>
  5860. <method name="copyToLocalFile"
  5861. abstract="false" native="false" synchronized="false"
  5862. static="false" final="false" visibility="public"
  5863. deprecated="not deprecated">
  5864. <param name="delSrc" type="boolean"/>
  5865. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5866. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5867. <exception name="IOException" type="java.io.IOException"/>
  5868. <doc>
  5869. <![CDATA[copies the file in the har filesystem to a local file.]]>
  5870. </doc>
  5871. </method>
  5872. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  5873. abstract="false" native="false" synchronized="false"
  5874. static="false" final="false" visibility="public"
  5875. deprecated="not deprecated">
  5876. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  5877. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  5878. <exception name="IOException" type="java.io.IOException"/>
  5879. <doc>
  5880. <![CDATA[not implemented.]]>
  5881. </doc>
  5882. </method>
  5883. <method name="completeLocalOutput"
  5884. abstract="false" native="false" synchronized="false"
  5885. static="false" final="false" visibility="public"
  5886. deprecated="not deprecated">
  5887. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  5888. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  5889. <exception name="IOException" type="java.io.IOException"/>
  5890. <doc>
  5891. <![CDATA[not implemented.]]>
  5892. </doc>
  5893. </method>
  5894. <method name="setOwner"
  5895. abstract="false" native="false" synchronized="false"
  5896. static="false" final="false" visibility="public"
  5897. deprecated="not deprecated">
  5898. <param name="p" type="org.apache.hadoop.fs.Path"/>
  5899. <param name="username" type="java.lang.String"/>
  5900. <param name="groupname" type="java.lang.String"/>
  5901. <exception name="IOException" type="java.io.IOException"/>
  5902. <doc>
  5903. <![CDATA[not implemented.]]>
  5904. </doc>
  5905. </method>
  5906. <method name="setPermission"
  5907. abstract="false" native="false" synchronized="false"
  5908. static="false" final="false" visibility="public"
  5909. deprecated="not deprecated">
  5910. <param name="p" type="org.apache.hadoop.fs.Path"/>
  5911. <param name="permisssion" type="org.apache.hadoop.fs.permission.FsPermission"/>
  5912. <exception name="IOException" type="java.io.IOException"/>
  5913. <doc>
  5914. <![CDATA[Not implemented.]]>
  5915. </doc>
  5916. </method>
  5917. <field name="VERSION" type="int"
  5918. transient="false" volatile="false"
  5919. static="true" final="true" visibility="public"
  5920. deprecated="not deprecated">
  5921. </field>
  5922. <doc>
  5923. <![CDATA[This is an implementation of the Hadoop Archive
  5924. Filesystem. This archive Filesystem has index files
  5925. of the form _index* and has contents of the form
  5926. part-*. The index files store the indexes of the
  5927. real files. The index files are of the form _masterindex
  5928. and _index. The master index is a level of indirection
  5929. in to the index file to make the look ups faster. the index
  5930. file is sorted with hash code of the paths that it contains
  5931. and the master index contains pointers to the positions in
  5932. index for ranges of hashcodes.]]>
  5933. </doc>
  5934. </class>
  5935. <!-- end class org.apache.hadoop.fs.HarFileSystem -->
  5936. <!-- start interface org.apache.hadoop.fs.HasFileDescriptor -->
  5937. <interface name="HasFileDescriptor" abstract="true"
  5938. static="false" final="false" visibility="public"
  5939. deprecated="not deprecated">
  5940. <method name="getFileDescriptor" return="java.io.FileDescriptor"
  5941. abstract="false" native="false" synchronized="false"
  5942. static="false" final="false" visibility="public"
  5943. deprecated="not deprecated">
  5944. <exception name="IOException" type="java.io.IOException"/>
  5945. <doc>
  5946. <![CDATA[@return the FileDescriptor
  5947. @throws IOException]]>
  5948. </doc>
  5949. </method>
  5950. <doc>
  5951. <![CDATA[Having a FileDescriptor]]>
  5952. </doc>
  5953. </interface>
  5954. <!-- end interface org.apache.hadoop.fs.HasFileDescriptor -->
  5955. <!-- start class org.apache.hadoop.fs.InMemoryFileSystem -->
  5956. <class name="InMemoryFileSystem" extends="org.apache.hadoop.fs.ChecksumFileSystem"
  5957. abstract="false"
  5958. static="false" final="false" visibility="public"
  5959. deprecated="not deprecated">
  5960. <constructor name="InMemoryFileSystem"
  5961. static="false" final="false" visibility="public"
  5962. deprecated="not deprecated">
  5963. </constructor>
  5964. <constructor name="InMemoryFileSystem" type="java.net.URI, org.apache.hadoop.conf.Configuration"
  5965. static="false" final="false" visibility="public"
  5966. deprecated="not deprecated">
  5967. </constructor>
  5968. <method name="reserveSpaceWithCheckSum" return="boolean"
  5969. abstract="false" native="false" synchronized="false"
  5970. static="false" final="false" visibility="public"
  5971. deprecated="not deprecated">
  5972. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5973. <param name="size" type="long"/>
  5974. <doc>
  5975. <![CDATA[Register a file with its size. This will also register a checksum for the
  5976. file that the user is trying to create. This is required since none of
  5977. the FileSystem APIs accept the size of the file as argument. But since it
  5978. is required for us to apriori know the size of the file we are going to
  5979. create, the user must call this method for each file he wants to create
  5980. and reserve memory for that file. We either succeed in reserving memory
  5981. for both the main file and the checksum file and return true, or return
  5982. false.]]>
  5983. </doc>
  5984. </method>
  5985. <method name="getFiles" return="org.apache.hadoop.fs.Path[]"
  5986. abstract="false" native="false" synchronized="false"
  5987. static="false" final="false" visibility="public"
  5988. deprecated="not deprecated">
  5989. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  5990. </method>
  5991. <method name="getNumFiles" return="int"
  5992. abstract="false" native="false" synchronized="false"
  5993. static="false" final="false" visibility="public"
  5994. deprecated="not deprecated">
  5995. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  5996. </method>
  5997. <method name="getFSSize" return="long"
  5998. abstract="false" native="false" synchronized="false"
  5999. static="false" final="false" visibility="public"
  6000. deprecated="not deprecated">
  6001. </method>
  6002. <method name="getPercentUsed" return="float"
  6003. abstract="false" native="false" synchronized="false"
  6004. static="false" final="false" visibility="public"
  6005. deprecated="not deprecated">
  6006. </method>
  6007. <doc>
  6008. <![CDATA[An implementation of the in-memory filesystem. This implementation assumes
  6009. that the file lengths are known ahead of time and the total lengths of all
  6010. the files is below a certain number (like 100 MB, configurable). Use the API
  6011. reserveSpaceWithCheckSum(Path f, int size) (see below for a description of
  6012. the API for reserving space in the FS. The uri of this filesystem starts with
  6013. ramfs:// .]]>
  6014. </doc>
  6015. </class>
  6016. <!-- end class org.apache.hadoop.fs.InMemoryFileSystem -->
  6017. <!-- start class org.apache.hadoop.fs.LocalDirAllocator -->
  6018. <class name="LocalDirAllocator" extends="java.lang.Object"
  6019. abstract="false"
  6020. static="false" final="false" visibility="public"
  6021. deprecated="not deprecated">
  6022. <constructor name="LocalDirAllocator" type="java.lang.String"
  6023. static="false" final="false" visibility="public"
  6024. deprecated="not deprecated">
  6025. <doc>
  6026. <![CDATA[Create an allocator object
  6027. @param contextCfgItemName]]>
  6028. </doc>
  6029. </constructor>
  6030. <method name="getLocalPathForWrite" return="org.apache.hadoop.fs.Path"
  6031. abstract="false" native="false" synchronized="false"
  6032. static="false" final="false" visibility="public"
  6033. deprecated="not deprecated">
  6034. <param name="pathStr" type="java.lang.String"/>
  6035. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6036. <exception name="IOException" type="java.io.IOException"/>
  6037. <doc>
  6038. <![CDATA[Get a path from the local FS. This method should be used if the size of
  6039. the file is not known apriori. We go round-robin over the set of disks
  6040. (via the configured dirs) and return the first complete path where
  6041. we could create the parent directory of the passed path.
  6042. @param pathStr the requested path (this will be created on the first
  6043. available disk)
  6044. @param conf the Configuration object
  6045. @return the complete path to the file on a local disk
  6046. @throws IOException]]>
  6047. </doc>
  6048. </method>
  6049. <method name="getLocalPathForWrite" return="org.apache.hadoop.fs.Path"
  6050. abstract="false" native="false" synchronized="false"
  6051. static="false" final="false" visibility="public"
  6052. deprecated="not deprecated">
  6053. <param name="pathStr" type="java.lang.String"/>
  6054. <param name="size" type="long"/>
  6055. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6056. <exception name="IOException" type="java.io.IOException"/>
  6057. <doc>
  6058. <![CDATA[Get a path from the local FS. Pass size as
  6059. SIZE_UNKNOWN if not known apriori. We
  6060. round-robin over the set of disks (via the configured dirs) and return
  6061. the first complete path which has enough space
  6062. @param pathStr the requested path (this will be created on the first
  6063. available disk)
  6064. @param size the size of the file that is going to be written
  6065. @param conf the Configuration object
  6066. @return the complete path to the file on a local disk
  6067. @throws IOException]]>
  6068. </doc>
  6069. </method>
  6070. <method name="getLocalPathForWrite" return="org.apache.hadoop.fs.Path"
  6071. abstract="false" native="false" synchronized="false"
  6072. static="false" final="false" visibility="public"
  6073. deprecated="not deprecated">
  6074. <param name="pathStr" type="java.lang.String"/>
  6075. <param name="size" type="long"/>
  6076. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6077. <param name="checkWrite" type="boolean"/>
  6078. <exception name="IOException" type="java.io.IOException"/>
  6079. <doc>
  6080. <![CDATA[Get a path from the local FS. Pass size as
  6081. SIZE_UNKNOWN if not known apriori. We
  6082. round-robin over the set of disks (via the configured dirs) and return
  6083. the first complete path which has enough space
  6084. @param pathStr the requested path (this will be created on the first
  6085. available disk)
  6086. @param size the size of the file that is going to be written
  6087. @param conf the Configuration object
  6088. @param checkWrite ensure that the path is writable
  6089. @return the complete path to the file on a local disk
  6090. @throws IOException]]>
  6091. </doc>
  6092. </method>
  6093. <method name="getLocalPathToRead" return="org.apache.hadoop.fs.Path"
  6094. abstract="false" native="false" synchronized="false"
  6095. static="false" final="false" visibility="public"
  6096. deprecated="not deprecated">
  6097. <param name="pathStr" type="java.lang.String"/>
  6098. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6099. <exception name="IOException" type="java.io.IOException"/>
  6100. <doc>
  6101. <![CDATA[Get a path from the local FS for reading. We search through all the
  6102. configured dirs for the file's existence and return the complete
  6103. path to the file when we find one
  6104. @param pathStr the requested file (this will be searched)
  6105. @param conf the Configuration object
  6106. @return the complete path to the file on a local disk
  6107. @throws IOException]]>
  6108. </doc>
  6109. </method>
  6110. <method name="getAllLocalPathsToRead" return="java.lang.Iterable"
  6111. abstract="false" native="false" synchronized="false"
  6112. static="false" final="false" visibility="public"
  6113. deprecated="not deprecated">
  6114. <param name="pathStr" type="java.lang.String"/>
  6115. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6116. <exception name="IOException" type="java.io.IOException"/>
  6117. <doc>
  6118. <![CDATA[Get all of the paths that currently exist in the working directories.
  6119. @param pathStr the path underneath the roots
  6120. @param conf the configuration to look up the roots in
  6121. @return all of the paths that exist under any of the roots
  6122. @throws IOException]]>
  6123. </doc>
  6124. </method>
  6125. <method name="createTmpFileForWrite" return="java.io.File"
  6126. abstract="false" native="false" synchronized="false"
  6127. static="false" final="false" visibility="public"
  6128. deprecated="not deprecated">
  6129. <param name="pathStr" type="java.lang.String"/>
  6130. <param name="size" type="long"/>
  6131. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6132. <exception name="IOException" type="java.io.IOException"/>
  6133. <doc>
  6134. <![CDATA[Creates a temporary file in the local FS. Pass size as -1 if not known
  6135. apriori. We round-robin over the set of disks (via the configured dirs)
  6136. and select the first complete path which has enough space. A file is
  6137. created on this directory. The file is guaranteed to go away when the
  6138. JVM exits.
  6139. @param pathStr prefix for the temporary file
  6140. @param size the size of the file that is going to be written
  6141. @param conf the Configuration object
  6142. @return a unique temporary file
  6143. @throws IOException]]>
  6144. </doc>
  6145. </method>
  6146. <method name="isContextValid" return="boolean"
  6147. abstract="false" native="false" synchronized="false"
  6148. static="true" final="false" visibility="public"
  6149. deprecated="not deprecated">
  6150. <param name="contextCfgItemName" type="java.lang.String"/>
  6151. <doc>
  6152. <![CDATA[Method to check whether a context is valid
  6153. @param contextCfgItemName
  6154. @return true/false]]>
  6155. </doc>
  6156. </method>
  6157. <method name="ifExists" return="boolean"
  6158. abstract="false" native="false" synchronized="false"
  6159. static="false" final="false" visibility="public"
  6160. deprecated="not deprecated">
  6161. <param name="pathStr" type="java.lang.String"/>
  6162. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6163. <doc>
  6164. <![CDATA[We search through all the configured dirs for the file's existence
  6165. and return true when we find
  6166. @param pathStr the requested file (this will be searched)
  6167. @param conf the Configuration object
  6168. @return true if files exist. false otherwise
  6169. @throws IOException]]>
  6170. </doc>
  6171. </method>
  6172. <field name="SIZE_UNKNOWN" type="int"
  6173. transient="false" volatile="false"
  6174. static="true" final="true" visibility="public"
  6175. deprecated="not deprecated">
  6176. <doc>
  6177. <![CDATA[Used when size of file to be allocated is unknown.]]>
  6178. </doc>
  6179. </field>
  6180. <doc>
  6181. <![CDATA[An implementation of a round-robin scheme for disk allocation for creating
  6182. files. The way it works is that it is kept track what disk was last
  6183. allocated for a file write. For the current request, the next disk from
  6184. the set of disks would be allocated if the free space on the disk is
  6185. sufficient enough to accommodate the file that is being considered for
  6186. creation. If the space requirements cannot be met, the next disk in order
  6187. would be tried and so on till a disk is found with sufficient capacity.
  6188. Once a disk with sufficient space is identified, a check is done to make
  6189. sure that the disk is writable. Also, there is an API provided that doesn't
  6190. take the space requirements into consideration but just checks whether the
  6191. disk under consideration is writable (this should be used for cases where
  6192. the file size is not known apriori). An API is provided to read a path that
  6193. was created earlier. That API works by doing a scan of all the disks for the
  6194. input pathname.
  6195. This implementation also provides the functionality of having multiple
  6196. allocators per JVM (one for each unique functionality or context, like
  6197. mapred, dfs-client, etc.). It ensures that there is only one instance of
  6198. an allocator per context per JVM.
  6199. Note:
  6200. 1. The contexts referred above are actually the configuration items defined
  6201. in the Configuration class like "mapred.local.dir" (for which we want to
  6202. control the dir allocations). The context-strings are exactly those
  6203. configuration items.
  6204. 2. This implementation does not take into consideration cases where
  6205. a disk becomes read-only or goes out of space while a file is being written
  6206. to (disks are shared between multiple processes, and so the latter situation
  6207. is probable).
  6208. 3. In the class implementation, "Disk" is referred to as "Dir", which
  6209. actually points to the configured directory on the Disk which will be the
  6210. parent for all file write/read allocations.]]>
  6211. </doc>
  6212. </class>
  6213. <!-- end class org.apache.hadoop.fs.LocalDirAllocator -->
  6214. <!-- start class org.apache.hadoop.fs.LocalFileSystem -->
  6215. <class name="LocalFileSystem" extends="org.apache.hadoop.fs.ChecksumFileSystem"
  6216. abstract="false"
  6217. static="false" final="false" visibility="public"
  6218. deprecated="not deprecated">
  6219. <constructor name="LocalFileSystem"
  6220. static="false" final="false" visibility="public"
  6221. deprecated="not deprecated">
  6222. </constructor>
  6223. <constructor name="LocalFileSystem" type="org.apache.hadoop.fs.FileSystem"
  6224. static="false" final="false" visibility="public"
  6225. deprecated="not deprecated">
  6226. </constructor>
  6227. <method name="getRaw" return="org.apache.hadoop.fs.FileSystem"
  6228. abstract="false" native="false" synchronized="false"
  6229. static="false" final="false" visibility="public"
  6230. deprecated="not deprecated">
  6231. </method>
  6232. <method name="exists" return="boolean"
  6233. abstract="false" native="false" synchronized="false"
  6234. static="false" final="false" visibility="public"
  6235. deprecated="not deprecated">
  6236. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6237. <exception name="IOException" type="java.io.IOException"/>
  6238. <doc>
  6239. <![CDATA[Get file status.]]>
  6240. </doc>
  6241. </method>
  6242. <method name="pathToFile" return="java.io.File"
  6243. abstract="false" native="false" synchronized="false"
  6244. static="false" final="false" visibility="public"
  6245. deprecated="not deprecated">
  6246. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6247. <doc>
  6248. <![CDATA[Convert a path to a File.]]>
  6249. </doc>
  6250. </method>
  6251. <method name="copyFromLocalFile"
  6252. abstract="false" native="false" synchronized="false"
  6253. static="false" final="false" visibility="public"
  6254. deprecated="not deprecated">
  6255. <param name="delSrc" type="boolean"/>
  6256. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6257. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6258. <exception name="IOException" type="java.io.IOException"/>
  6259. </method>
  6260. <method name="copyToLocalFile"
  6261. abstract="false" native="false" synchronized="false"
  6262. static="false" final="false" visibility="public"
  6263. deprecated="not deprecated">
  6264. <param name="delSrc" type="boolean"/>
  6265. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6266. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6267. <exception name="IOException" type="java.io.IOException"/>
  6268. </method>
  6269. <method name="reportChecksumFailure" return="boolean"
  6270. abstract="false" native="false" synchronized="false"
  6271. static="false" final="false" visibility="public"
  6272. deprecated="not deprecated">
  6273. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6274. <param name="in" type="org.apache.hadoop.fs.FSDataInputStream"/>
  6275. <param name="inPos" type="long"/>
  6276. <param name="sums" type="org.apache.hadoop.fs.FSDataInputStream"/>
  6277. <param name="sumsPos" type="long"/>
  6278. <doc>
  6279. <![CDATA[Moves files to a bad file directory on the same device, so that their
  6280. storage will not be reused.]]>
  6281. </doc>
  6282. </method>
  6283. <doc>
  6284. <![CDATA[Implement the FileSystem API for the checksumed local filesystem.]]>
  6285. </doc>
  6286. </class>
  6287. <!-- end class org.apache.hadoop.fs.LocalFileSystem -->
  6288. <!-- start class org.apache.hadoop.fs.MD5MD5CRC32FileChecksum -->
  6289. <class name="MD5MD5CRC32FileChecksum" extends="org.apache.hadoop.fs.FileChecksum"
  6290. abstract="false"
  6291. static="false" final="false" visibility="public"
  6292. deprecated="not deprecated">
  6293. <constructor name="MD5MD5CRC32FileChecksum"
  6294. static="false" final="false" visibility="public"
  6295. deprecated="not deprecated">
  6296. <doc>
  6297. <![CDATA[Same as this(0, 0, null)]]>
  6298. </doc>
  6299. </constructor>
  6300. <constructor name="MD5MD5CRC32FileChecksum" type="int, long, org.apache.hadoop.io.MD5Hash"
  6301. static="false" final="false" visibility="public"
  6302. deprecated="not deprecated">
  6303. <doc>
  6304. <![CDATA[Create a MD5FileChecksum]]>
  6305. </doc>
  6306. </constructor>
  6307. <method name="getAlgorithmName" return="java.lang.String"
  6308. abstract="false" native="false" synchronized="false"
  6309. static="false" final="false" visibility="public"
  6310. deprecated="not deprecated">
  6311. <doc>
  6312. <![CDATA[{@inheritDoc}]]>
  6313. </doc>
  6314. </method>
  6315. <method name="getLength" return="int"
  6316. abstract="false" native="false" synchronized="false"
  6317. static="false" final="false" visibility="public"
  6318. deprecated="not deprecated">
  6319. <doc>
  6320. <![CDATA[{@inheritDoc}]]>
  6321. </doc>
  6322. </method>
  6323. <method name="getBytes" return="byte[]"
  6324. abstract="false" native="false" synchronized="false"
  6325. static="false" final="false" visibility="public"
  6326. deprecated="not deprecated">
  6327. <doc>
  6328. <![CDATA[{@inheritDoc}]]>
  6329. </doc>
  6330. </method>
  6331. <method name="readFields"
  6332. abstract="false" native="false" synchronized="false"
  6333. static="false" final="false" visibility="public"
  6334. deprecated="not deprecated">
  6335. <param name="in" type="java.io.DataInput"/>
  6336. <exception name="IOException" type="java.io.IOException"/>
  6337. <doc>
  6338. <![CDATA[{@inheritDoc}]]>
  6339. </doc>
  6340. </method>
  6341. <method name="write"
  6342. abstract="false" native="false" synchronized="false"
  6343. static="false" final="false" visibility="public"
  6344. deprecated="not deprecated">
  6345. <param name="out" type="java.io.DataOutput"/>
  6346. <exception name="IOException" type="java.io.IOException"/>
  6347. <doc>
  6348. <![CDATA[{@inheritDoc}]]>
  6349. </doc>
  6350. </method>
  6351. <method name="write"
  6352. abstract="false" native="false" synchronized="false"
  6353. static="true" final="false" visibility="public"
  6354. deprecated="not deprecated">
  6355. <param name="xml" type="org.znerd.xmlenc.XMLOutputter"/>
  6356. <param name="that" type="org.apache.hadoop.fs.MD5MD5CRC32FileChecksum"/>
  6357. <exception name="IOException" type="java.io.IOException"/>
  6358. <doc>
  6359. <![CDATA[Write that object to xml output.]]>
  6360. </doc>
  6361. </method>
  6362. <method name="valueOf" return="org.apache.hadoop.fs.MD5MD5CRC32FileChecksum"
  6363. abstract="false" native="false" synchronized="false"
  6364. static="true" final="false" visibility="public"
  6365. deprecated="not deprecated">
  6366. <param name="attrs" type="org.xml.sax.Attributes"/>
  6367. <exception name="SAXException" type="org.xml.sax.SAXException"/>
  6368. <doc>
  6369. <![CDATA[Return the object represented in the attributes.]]>
  6370. </doc>
  6371. </method>
  6372. <method name="toString" return="java.lang.String"
  6373. abstract="false" native="false" synchronized="false"
  6374. static="false" final="false" visibility="public"
  6375. deprecated="not deprecated">
  6376. <doc>
  6377. <![CDATA[{@inheritDoc}]]>
  6378. </doc>
  6379. </method>
  6380. <field name="LENGTH" type="int"
  6381. transient="false" volatile="false"
  6382. static="true" final="true" visibility="public"
  6383. deprecated="not deprecated">
  6384. </field>
  6385. <doc>
  6386. <![CDATA[MD5 of MD5 of CRC32.]]>
  6387. </doc>
  6388. </class>
  6389. <!-- end class org.apache.hadoop.fs.MD5MD5CRC32FileChecksum -->
  6390. <!-- start class org.apache.hadoop.fs.Path -->
  6391. <class name="Path" extends="java.lang.Object"
  6392. abstract="false"
  6393. static="false" final="false" visibility="public"
  6394. deprecated="not deprecated">
  6395. <implements name="java.lang.Comparable"/>
  6396. <constructor name="Path" type="java.lang.String, java.lang.String"
  6397. static="false" final="false" visibility="public"
  6398. deprecated="not deprecated">
  6399. <doc>
  6400. <![CDATA[Resolve a child path against a parent path.]]>
  6401. </doc>
  6402. </constructor>
  6403. <constructor name="Path" type="org.apache.hadoop.fs.Path, java.lang.String"
  6404. static="false" final="false" visibility="public"
  6405. deprecated="not deprecated">
  6406. <doc>
  6407. <![CDATA[Resolve a child path against a parent path.]]>
  6408. </doc>
  6409. </constructor>
  6410. <constructor name="Path" type="java.lang.String, org.apache.hadoop.fs.Path"
  6411. static="false" final="false" visibility="public"
  6412. deprecated="not deprecated">
  6413. <doc>
  6414. <![CDATA[Resolve a child path against a parent path.]]>
  6415. </doc>
  6416. </constructor>
  6417. <constructor name="Path" type="org.apache.hadoop.fs.Path, org.apache.hadoop.fs.Path"
  6418. static="false" final="false" visibility="public"
  6419. deprecated="not deprecated">
  6420. <doc>
  6421. <![CDATA[Resolve a child path against a parent path.]]>
  6422. </doc>
  6423. </constructor>
  6424. <constructor name="Path" type="java.lang.String"
  6425. static="false" final="false" visibility="public"
  6426. deprecated="not deprecated">
  6427. <doc>
  6428. <![CDATA[Construct a path from a String. Path strings are URIs, but with
  6429. unescaped elements and some additional normalization.]]>
  6430. </doc>
  6431. </constructor>
  6432. <constructor name="Path" type="java.lang.String, java.lang.String, java.lang.String"
  6433. static="false" final="false" visibility="public"
  6434. deprecated="not deprecated">
  6435. <doc>
  6436. <![CDATA[Construct a Path from components.]]>
  6437. </doc>
  6438. </constructor>
  6439. <constructor name="Path" type="java.net.URI"
  6440. static="false" final="false" visibility="public"
  6441. deprecated="not deprecated">
  6442. <doc>
  6443. <![CDATA[Construct a path from a URI]]>
  6444. </doc>
  6445. </constructor>
  6446. <method name="toUri" return="java.net.URI"
  6447. abstract="false" native="false" synchronized="false"
  6448. static="false" final="false" visibility="public"
  6449. deprecated="not deprecated">
  6450. <doc>
  6451. <![CDATA[Convert this to a URI.]]>
  6452. </doc>
  6453. </method>
  6454. <method name="getFileSystem" return="org.apache.hadoop.fs.FileSystem"
  6455. abstract="false" native="false" synchronized="false"
  6456. static="false" final="false" visibility="public"
  6457. deprecated="not deprecated">
  6458. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6459. <exception name="IOException" type="java.io.IOException"/>
  6460. <doc>
  6461. <![CDATA[Return the FileSystem that owns this Path.]]>
  6462. </doc>
  6463. </method>
  6464. <method name="isAbsolute" return="boolean"
  6465. abstract="false" native="false" synchronized="false"
  6466. static="false" final="false" visibility="public"
  6467. deprecated="not deprecated">
  6468. <doc>
  6469. <![CDATA[True if the directory of this path is absolute.]]>
  6470. </doc>
  6471. </method>
  6472. <method name="getName" return="java.lang.String"
  6473. abstract="false" native="false" synchronized="false"
  6474. static="false" final="false" visibility="public"
  6475. deprecated="not deprecated">
  6476. <doc>
  6477. <![CDATA[Returns the final component of this path.]]>
  6478. </doc>
  6479. </method>
  6480. <method name="getParent" return="org.apache.hadoop.fs.Path"
  6481. abstract="false" native="false" synchronized="false"
  6482. static="false" final="false" visibility="public"
  6483. deprecated="not deprecated">
  6484. <doc>
  6485. <![CDATA[Returns the parent of a path or null if at root.]]>
  6486. </doc>
  6487. </method>
  6488. <method name="suffix" return="org.apache.hadoop.fs.Path"
  6489. abstract="false" native="false" synchronized="false"
  6490. static="false" final="false" visibility="public"
  6491. deprecated="not deprecated">
  6492. <param name="suffix" type="java.lang.String"/>
  6493. <doc>
  6494. <![CDATA[Adds a suffix to the final name in the path.]]>
  6495. </doc>
  6496. </method>
  6497. <method name="toString" return="java.lang.String"
  6498. abstract="false" native="false" synchronized="false"
  6499. static="false" final="false" visibility="public"
  6500. deprecated="not deprecated">
  6501. </method>
  6502. <method name="equals" return="boolean"
  6503. abstract="false" native="false" synchronized="false"
  6504. static="false" final="false" visibility="public"
  6505. deprecated="not deprecated">
  6506. <param name="o" type="java.lang.Object"/>
  6507. </method>
  6508. <method name="hashCode" return="int"
  6509. abstract="false" native="false" synchronized="false"
  6510. static="false" final="false" visibility="public"
  6511. deprecated="not deprecated">
  6512. </method>
  6513. <method name="compareTo" return="int"
  6514. abstract="false" native="false" synchronized="false"
  6515. static="false" final="false" visibility="public"
  6516. deprecated="not deprecated">
  6517. <param name="o" type="java.lang.Object"/>
  6518. </method>
  6519. <method name="depth" return="int"
  6520. abstract="false" native="false" synchronized="false"
  6521. static="false" final="false" visibility="public"
  6522. deprecated="not deprecated">
  6523. <doc>
  6524. <![CDATA[Return the number of elements in this path.]]>
  6525. </doc>
  6526. </method>
  6527. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  6528. abstract="false" native="false" synchronized="false"
  6529. static="false" final="false" visibility="public"
  6530. deprecated="not deprecated">
  6531. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  6532. <doc>
  6533. <![CDATA[Returns a qualified path object.]]>
  6534. </doc>
  6535. </method>
  6536. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  6537. abstract="false" native="false" synchronized="false"
  6538. static="false" final="false" visibility="public"
  6539. deprecated="not deprecated">
  6540. <param name="defaultUri" type="java.net.URI"/>
  6541. <param name="workingDir" type="org.apache.hadoop.fs.Path"/>
  6542. <doc>
  6543. <![CDATA[Returns a qualified path object.]]>
  6544. </doc>
  6545. </method>
  6546. <field name="SEPARATOR" type="java.lang.String"
  6547. transient="false" volatile="false"
  6548. static="true" final="true" visibility="public"
  6549. deprecated="not deprecated">
  6550. <doc>
  6551. <![CDATA[The directory separator, a slash.]]>
  6552. </doc>
  6553. </field>
  6554. <field name="SEPARATOR_CHAR" type="char"
  6555. transient="false" volatile="false"
  6556. static="true" final="true" visibility="public"
  6557. deprecated="not deprecated">
  6558. </field>
  6559. <field name="CUR_DIR" type="java.lang.String"
  6560. transient="false" volatile="false"
  6561. static="true" final="true" visibility="public"
  6562. deprecated="not deprecated">
  6563. </field>
  6564. <doc>
  6565. <![CDATA[Names a file or directory in a {@link FileSystem}.
  6566. Path strings use slash as the directory separator. A path string is
  6567. absolute if it begins with a slash.]]>
  6568. </doc>
  6569. </class>
  6570. <!-- end class org.apache.hadoop.fs.Path -->
  6571. <!-- start interface org.apache.hadoop.fs.PathFilter -->
  6572. <interface name="PathFilter" abstract="true"
  6573. static="false" final="false" visibility="public"
  6574. deprecated="not deprecated">
  6575. <method name="accept" return="boolean"
  6576. abstract="false" native="false" synchronized="false"
  6577. static="false" final="false" visibility="public"
  6578. deprecated="not deprecated">
  6579. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6580. <doc>
  6581. <![CDATA[Tests whether or not the specified abstract pathname should be
  6582. included in a pathname list.
  6583. @param path The abstract pathname to be tested
  6584. @return <code>true</code> if and only if <code>pathname</code>
  6585. should be included]]>
  6586. </doc>
  6587. </method>
  6588. </interface>
  6589. <!-- end interface org.apache.hadoop.fs.PathFilter -->
  6590. <!-- start interface org.apache.hadoop.fs.PositionedReadable -->
  6591. <interface name="PositionedReadable" abstract="true"
  6592. static="false" final="false" visibility="public"
  6593. deprecated="not deprecated">
  6594. <method name="read" return="int"
  6595. abstract="false" native="false" synchronized="false"
  6596. static="false" final="false" visibility="public"
  6597. deprecated="not deprecated">
  6598. <param name="position" type="long"/>
  6599. <param name="buffer" type="byte[]"/>
  6600. <param name="offset" type="int"/>
  6601. <param name="length" type="int"/>
  6602. <exception name="IOException" type="java.io.IOException"/>
  6603. <doc>
  6604. <![CDATA[Read upto the specified number of bytes, from a given
  6605. position within a file, and return the number of bytes read. This does not
  6606. change the current offset of a file, and is thread-safe.]]>
  6607. </doc>
  6608. </method>
  6609. <method name="readFully"
  6610. abstract="false" native="false" synchronized="false"
  6611. static="false" final="false" visibility="public"
  6612. deprecated="not deprecated">
  6613. <param name="position" type="long"/>
  6614. <param name="buffer" type="byte[]"/>
  6615. <param name="offset" type="int"/>
  6616. <param name="length" type="int"/>
  6617. <exception name="IOException" type="java.io.IOException"/>
  6618. <doc>
  6619. <![CDATA[Read the specified number of bytes, from a given
  6620. position within a file. This does not
  6621. change the current offset of a file, and is thread-safe.]]>
  6622. </doc>
  6623. </method>
  6624. <method name="readFully"
  6625. abstract="false" native="false" synchronized="false"
  6626. static="false" final="false" visibility="public"
  6627. deprecated="not deprecated">
  6628. <param name="position" type="long"/>
  6629. <param name="buffer" type="byte[]"/>
  6630. <exception name="IOException" type="java.io.IOException"/>
  6631. <doc>
  6632. <![CDATA[Read number of bytes equalt to the length of the buffer, from a given
  6633. position within a file. This does not
  6634. change the current offset of a file, and is thread-safe.]]>
  6635. </doc>
  6636. </method>
  6637. <doc>
  6638. <![CDATA[Stream that permits positional reading.]]>
  6639. </doc>
  6640. </interface>
  6641. <!-- end interface org.apache.hadoop.fs.PositionedReadable -->
  6642. <!-- start class org.apache.hadoop.fs.RawLocalFileSystem -->
  6643. <class name="RawLocalFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  6644. abstract="false"
  6645. static="false" final="false" visibility="public"
  6646. deprecated="not deprecated">
  6647. <constructor name="RawLocalFileSystem"
  6648. static="false" final="false" visibility="public"
  6649. deprecated="not deprecated">
  6650. </constructor>
  6651. <method name="pathToFile" return="java.io.File"
  6652. abstract="false" native="false" synchronized="false"
  6653. static="false" final="false" visibility="public"
  6654. deprecated="not deprecated">
  6655. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6656. <doc>
  6657. <![CDATA[Convert a path to a File.]]>
  6658. </doc>
  6659. </method>
  6660. <method name="getUri" return="java.net.URI"
  6661. abstract="false" native="false" synchronized="false"
  6662. static="false" final="false" visibility="public"
  6663. deprecated="not deprecated">
  6664. </method>
  6665. <method name="initialize"
  6666. abstract="false" native="false" synchronized="false"
  6667. static="false" final="false" visibility="public"
  6668. deprecated="not deprecated">
  6669. <param name="uri" type="java.net.URI"/>
  6670. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6671. <exception name="IOException" type="java.io.IOException"/>
  6672. </method>
  6673. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  6674. abstract="false" native="false" synchronized="false"
  6675. static="false" final="false" visibility="public"
  6676. deprecated="not deprecated">
  6677. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6678. <param name="bufferSize" type="int"/>
  6679. <exception name="IOException" type="java.io.IOException"/>
  6680. </method>
  6681. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  6682. abstract="false" native="false" synchronized="false"
  6683. static="false" final="false" visibility="public"
  6684. deprecated="not deprecated">
  6685. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6686. <param name="bufferSize" type="int"/>
  6687. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6688. <exception name="IOException" type="java.io.IOException"/>
  6689. <doc>
  6690. <![CDATA[{@inheritDoc}]]>
  6691. </doc>
  6692. </method>
  6693. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  6694. abstract="false" native="false" synchronized="false"
  6695. static="false" final="false" visibility="public"
  6696. deprecated="not deprecated">
  6697. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6698. <param name="overwrite" type="boolean"/>
  6699. <param name="bufferSize" type="int"/>
  6700. <param name="replication" type="short"/>
  6701. <param name="blockSize" type="long"/>
  6702. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6703. <exception name="IOException" type="java.io.IOException"/>
  6704. <doc>
  6705. <![CDATA[{@inheritDoc}]]>
  6706. </doc>
  6707. </method>
  6708. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  6709. abstract="false" native="false" synchronized="false"
  6710. static="false" final="false" visibility="public"
  6711. deprecated="not deprecated">
  6712. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6713. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6714. <param name="overwrite" type="boolean"/>
  6715. <param name="bufferSize" type="int"/>
  6716. <param name="replication" type="short"/>
  6717. <param name="blockSize" type="long"/>
  6718. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6719. <exception name="IOException" type="java.io.IOException"/>
  6720. <doc>
  6721. <![CDATA[{@inheritDoc}]]>
  6722. </doc>
  6723. </method>
  6724. <method name="createNonRecursive" return="org.apache.hadoop.fs.FSDataOutputStream"
  6725. abstract="false" native="false" synchronized="false"
  6726. static="false" final="false" visibility="public"
  6727. deprecated="not deprecated">
  6728. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6729. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6730. <param name="overwrite" type="boolean"/>
  6731. <param name="bufferSize" type="int"/>
  6732. <param name="replication" type="short"/>
  6733. <param name="blockSize" type="long"/>
  6734. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6735. <exception name="IOException" type="java.io.IOException"/>
  6736. <doc>
  6737. <![CDATA[{@inheritDoc}]]>
  6738. </doc>
  6739. </method>
  6740. <method name="rename" return="boolean"
  6741. abstract="false" native="false" synchronized="false"
  6742. static="false" final="false" visibility="public"
  6743. deprecated="not deprecated">
  6744. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6745. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6746. <exception name="IOException" type="java.io.IOException"/>
  6747. </method>
  6748. <method name="delete" return="boolean"
  6749. abstract="false" native="false" synchronized="false"
  6750. static="false" final="false" visibility="public"
  6751. deprecated="not deprecated">
  6752. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6753. <exception name="IOException" type="java.io.IOException"/>
  6754. </method>
  6755. <method name="delete" return="boolean"
  6756. abstract="false" native="false" synchronized="false"
  6757. static="false" final="false" visibility="public"
  6758. deprecated="not deprecated">
  6759. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6760. <param name="recursive" type="boolean"/>
  6761. <exception name="IOException" type="java.io.IOException"/>
  6762. </method>
  6763. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  6764. abstract="false" native="false" synchronized="false"
  6765. static="false" final="false" visibility="public"
  6766. deprecated="not deprecated">
  6767. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6768. <exception name="IOException" type="java.io.IOException"/>
  6769. </method>
  6770. <method name="mkdirs" return="boolean"
  6771. abstract="false" native="false" synchronized="false"
  6772. static="false" final="false" visibility="public"
  6773. deprecated="not deprecated">
  6774. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6775. <exception name="IOException" type="java.io.IOException"/>
  6776. <doc>
  6777. <![CDATA[Creates the specified directory hierarchy. Does not
  6778. treat existence as an error.]]>
  6779. </doc>
  6780. </method>
  6781. <method name="mkdirs" return="boolean"
  6782. abstract="false" native="false" synchronized="false"
  6783. static="false" final="false" visibility="public"
  6784. deprecated="not deprecated">
  6785. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6786. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6787. <exception name="IOException" type="java.io.IOException"/>
  6788. <doc>
  6789. <![CDATA[{@inheritDoc}]]>
  6790. </doc>
  6791. </method>
  6792. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  6793. abstract="false" native="false" synchronized="false"
  6794. static="false" final="false" visibility="public"
  6795. deprecated="not deprecated">
  6796. </method>
  6797. <method name="setWorkingDirectory"
  6798. abstract="false" native="false" synchronized="false"
  6799. static="false" final="false" visibility="public"
  6800. deprecated="not deprecated">
  6801. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  6802. <doc>
  6803. <![CDATA[Set the working directory to the given directory.]]>
  6804. </doc>
  6805. </method>
  6806. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  6807. abstract="false" native="false" synchronized="false"
  6808. static="false" final="false" visibility="public"
  6809. deprecated="not deprecated">
  6810. </method>
  6811. <method name="moveFromLocalFile"
  6812. abstract="false" native="false" synchronized="false"
  6813. static="false" final="false" visibility="public"
  6814. deprecated="not deprecated">
  6815. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6816. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6817. <exception name="IOException" type="java.io.IOException"/>
  6818. </method>
  6819. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  6820. abstract="false" native="false" synchronized="false"
  6821. static="false" final="false" visibility="public"
  6822. deprecated="not deprecated">
  6823. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  6824. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  6825. <exception name="IOException" type="java.io.IOException"/>
  6826. </method>
  6827. <method name="completeLocalOutput"
  6828. abstract="false" native="false" synchronized="false"
  6829. static="false" final="false" visibility="public"
  6830. deprecated="not deprecated">
  6831. <param name="fsWorkingFile" type="org.apache.hadoop.fs.Path"/>
  6832. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  6833. <exception name="IOException" type="java.io.IOException"/>
  6834. </method>
  6835. <method name="close"
  6836. abstract="false" native="false" synchronized="false"
  6837. static="false" final="false" visibility="public"
  6838. deprecated="not deprecated">
  6839. <exception name="IOException" type="java.io.IOException"/>
  6840. </method>
  6841. <method name="toString" return="java.lang.String"
  6842. abstract="false" native="false" synchronized="false"
  6843. static="false" final="false" visibility="public"
  6844. deprecated="not deprecated">
  6845. </method>
  6846. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  6847. abstract="false" native="false" synchronized="false"
  6848. static="false" final="false" visibility="public"
  6849. deprecated="not deprecated">
  6850. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6851. <exception name="IOException" type="java.io.IOException"/>
  6852. </method>
  6853. <method name="setOwner"
  6854. abstract="false" native="false" synchronized="false"
  6855. static="false" final="false" visibility="public"
  6856. deprecated="not deprecated">
  6857. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6858. <param name="username" type="java.lang.String"/>
  6859. <param name="groupname" type="java.lang.String"/>
  6860. <exception name="IOException" type="java.io.IOException"/>
  6861. <doc>
  6862. <![CDATA[Use the command chown to set owner.]]>
  6863. </doc>
  6864. </method>
  6865. <method name="setPermission"
  6866. abstract="false" native="false" synchronized="false"
  6867. static="false" final="false" visibility="public"
  6868. deprecated="not deprecated">
  6869. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6870. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6871. <exception name="IOException" type="java.io.IOException"/>
  6872. <doc>
  6873. <![CDATA[Use the command chmod to set permission.]]>
  6874. </doc>
  6875. </method>
  6876. <doc>
  6877. <![CDATA[Implement the FileSystem API for the raw local filesystem.]]>
  6878. </doc>
  6879. </class>
  6880. <!-- end class org.apache.hadoop.fs.RawLocalFileSystem -->
  6881. <!-- start interface org.apache.hadoop.fs.Seekable -->
  6882. <interface name="Seekable" abstract="true"
  6883. static="false" final="false" visibility="public"
  6884. deprecated="not deprecated">
  6885. <method name="seek"
  6886. abstract="false" native="false" synchronized="false"
  6887. static="false" final="false" visibility="public"
  6888. deprecated="not deprecated">
  6889. <param name="pos" type="long"/>
  6890. <exception name="IOException" type="java.io.IOException"/>
  6891. <doc>
  6892. <![CDATA[Seek to the given offset from the start of the file.
  6893. The next read() will be from that location. Can't
  6894. seek past the end of the file.]]>
  6895. </doc>
  6896. </method>
  6897. <method name="getPos" return="long"
  6898. abstract="false" native="false" synchronized="false"
  6899. static="false" final="false" visibility="public"
  6900. deprecated="not deprecated">
  6901. <exception name="IOException" type="java.io.IOException"/>
  6902. <doc>
  6903. <![CDATA[Return the current offset from the start of the file]]>
  6904. </doc>
  6905. </method>
  6906. <method name="seekToNewSource" return="boolean"
  6907. abstract="false" native="false" synchronized="false"
  6908. static="false" final="false" visibility="public"
  6909. deprecated="not deprecated">
  6910. <param name="targetPos" type="long"/>
  6911. <exception name="IOException" type="java.io.IOException"/>
  6912. <doc>
  6913. <![CDATA[Seeks a different copy of the data. Returns true if
  6914. found a new source, false otherwise.]]>
  6915. </doc>
  6916. </method>
  6917. <doc>
  6918. <![CDATA[Stream that permits seeking.]]>
  6919. </doc>
  6920. </interface>
  6921. <!-- end interface org.apache.hadoop.fs.Seekable -->
  6922. <!-- start interface org.apache.hadoop.fs.Syncable -->
  6923. <interface name="Syncable" abstract="true"
  6924. static="false" final="false" visibility="public"
  6925. deprecated="not deprecated">
  6926. <method name="sync"
  6927. abstract="false" native="false" synchronized="false"
  6928. static="false" final="false" visibility="public"
  6929. deprecated="not deprecated">
  6930. <exception name="IOException" type="java.io.IOException"/>
  6931. <doc>
  6932. <![CDATA[Synchronize all buffer with the underlying devices.
  6933. @throws IOException]]>
  6934. </doc>
  6935. </method>
  6936. <doc>
  6937. <![CDATA[This interface declare the sync() operation.]]>
  6938. </doc>
  6939. </interface>
  6940. <!-- end interface org.apache.hadoop.fs.Syncable -->
  6941. <!-- start class org.apache.hadoop.fs.Trash -->
  6942. <class name="Trash" extends="org.apache.hadoop.conf.Configured"
  6943. abstract="false"
  6944. static="false" final="false" visibility="public"
  6945. deprecated="not deprecated">
  6946. <constructor name="Trash" type="org.apache.hadoop.conf.Configuration"
  6947. static="false" final="false" visibility="public"
  6948. deprecated="not deprecated">
  6949. <exception name="IOException" type="java.io.IOException"/>
  6950. <doc>
  6951. <![CDATA[Construct a trash can accessor.
  6952. @param conf a Configuration]]>
  6953. </doc>
  6954. </constructor>
  6955. <constructor name="Trash" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.conf.Configuration"
  6956. static="false" final="false" visibility="public"
  6957. deprecated="not deprecated">
  6958. <exception name="IOException" type="java.io.IOException"/>
  6959. <doc>
  6960. <![CDATA[Construct a trash can accessor for the FileSystem provided.]]>
  6961. </doc>
  6962. </constructor>
  6963. <method name="moveToTrash" return="boolean"
  6964. abstract="false" native="false" synchronized="false"
  6965. static="false" final="false" visibility="public"
  6966. deprecated="not deprecated">
  6967. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6968. <exception name="IOException" type="java.io.IOException"/>
  6969. <doc>
  6970. <![CDATA[Move a file or directory to the current trash directory.
  6971. @return false if the item is already in the trash or trash is disabled]]>
  6972. </doc>
  6973. </method>
  6974. <method name="checkpoint"
  6975. abstract="false" native="false" synchronized="false"
  6976. static="false" final="false" visibility="public"
  6977. deprecated="not deprecated">
  6978. <exception name="IOException" type="java.io.IOException"/>
  6979. <doc>
  6980. <![CDATA[Create a trash checkpoint.]]>
  6981. </doc>
  6982. </method>
  6983. <method name="expunge"
  6984. abstract="false" native="false" synchronized="false"
  6985. static="false" final="false" visibility="public"
  6986. deprecated="not deprecated">
  6987. <exception name="IOException" type="java.io.IOException"/>
  6988. <doc>
  6989. <![CDATA[Delete old checkpoints.]]>
  6990. </doc>
  6991. </method>
  6992. <method name="getEmptier" return="java.lang.Runnable"
  6993. abstract="false" native="false" synchronized="false"
  6994. static="false" final="false" visibility="public"
  6995. deprecated="not deprecated">
  6996. <exception name="IOException" type="java.io.IOException"/>
  6997. <doc>
  6998. <![CDATA[Return a {@link Runnable} that periodically empties the trash of all
  6999. users, intended to be run by the superuser. Only one checkpoint is kept
  7000. at a time.]]>
  7001. </doc>
  7002. </method>
  7003. <method name="main"
  7004. abstract="false" native="false" synchronized="false"
  7005. static="true" final="false" visibility="public"
  7006. deprecated="not deprecated">
  7007. <param name="args" type="java.lang.String[]"/>
  7008. <exception name="Exception" type="java.lang.Exception"/>
  7009. <doc>
  7010. <![CDATA[Run an emptier.]]>
  7011. </doc>
  7012. </method>
  7013. <doc>
  7014. <![CDATA[Provides a <i>trash</i> feature. Files are moved to a user's trash
  7015. directory, a subdirectory of their home directory named ".Trash". Files are
  7016. initially moved to a <i>current</i> sub-directory of the trash directory.
  7017. Within that sub-directory their original path is preserved. Periodically
  7018. one may checkpoint the current trash and remove older checkpoints. (This
  7019. design permits trash management without enumeration of the full trash
  7020. content, without date support in the filesystem, and without clock
  7021. synchronization.)]]>
  7022. </doc>
  7023. </class>
  7024. <!-- end class org.apache.hadoop.fs.Trash -->
  7025. </package>
  7026. <package name="org.apache.hadoop.fs.ftp">
  7027. <!-- start class org.apache.hadoop.fs.ftp.FTPException -->
  7028. <class name="FTPException" extends="java.lang.RuntimeException"
  7029. abstract="false"
  7030. static="false" final="false" visibility="public"
  7031. deprecated="not deprecated">
  7032. <constructor name="FTPException" type="java.lang.String"
  7033. static="false" final="false" visibility="public"
  7034. deprecated="not deprecated">
  7035. </constructor>
  7036. <constructor name="FTPException" type="java.lang.Throwable"
  7037. static="false" final="false" visibility="public"
  7038. deprecated="not deprecated">
  7039. </constructor>
  7040. <constructor name="FTPException" type="java.lang.String, java.lang.Throwable"
  7041. static="false" final="false" visibility="public"
  7042. deprecated="not deprecated">
  7043. </constructor>
  7044. <doc>
  7045. <![CDATA[A class to wrap a {@link Throwable} into a Runtime Exception.]]>
  7046. </doc>
  7047. </class>
  7048. <!-- end class org.apache.hadoop.fs.ftp.FTPException -->
  7049. <!-- start class org.apache.hadoop.fs.ftp.FTPFileSystem -->
  7050. <class name="FTPFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  7051. abstract="false"
  7052. static="false" final="false" visibility="public"
  7053. deprecated="not deprecated">
  7054. <constructor name="FTPFileSystem"
  7055. static="false" final="false" visibility="public"
  7056. deprecated="not deprecated">
  7057. </constructor>
  7058. <method name="initialize"
  7059. abstract="false" native="false" synchronized="false"
  7060. static="false" final="false" visibility="public"
  7061. deprecated="not deprecated">
  7062. <param name="uri" type="java.net.URI"/>
  7063. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7064. <exception name="IOException" type="java.io.IOException"/>
  7065. </method>
  7066. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  7067. abstract="false" native="false" synchronized="false"
  7068. static="false" final="false" visibility="public"
  7069. deprecated="not deprecated">
  7070. <param name="file" type="org.apache.hadoop.fs.Path"/>
  7071. <param name="bufferSize" type="int"/>
  7072. <exception name="IOException" type="java.io.IOException"/>
  7073. </method>
  7074. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  7075. abstract="false" native="false" synchronized="false"
  7076. static="false" final="false" visibility="public"
  7077. deprecated="not deprecated">
  7078. <param name="file" type="org.apache.hadoop.fs.Path"/>
  7079. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7080. <param name="overwrite" type="boolean"/>
  7081. <param name="bufferSize" type="int"/>
  7082. <param name="replication" type="short"/>
  7083. <param name="blockSize" type="long"/>
  7084. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7085. <exception name="IOException" type="java.io.IOException"/>
  7086. <doc>
  7087. <![CDATA[A stream obtained via this call must be closed before using other APIs of
  7088. this class or else the invocation will block.]]>
  7089. </doc>
  7090. </method>
  7091. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  7092. abstract="false" native="false" synchronized="false"
  7093. static="false" final="false" visibility="public"
  7094. deprecated="not deprecated">
  7095. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7096. <param name="bufferSize" type="int"/>
  7097. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7098. <exception name="IOException" type="java.io.IOException"/>
  7099. <doc>
  7100. <![CDATA[This optional operation is not yet supported.]]>
  7101. </doc>
  7102. </method>
  7103. <method name="delete" return="boolean"
  7104. abstract="false" native="false" synchronized="false"
  7105. static="false" final="false" visibility="public"
  7106. deprecated="Use delete(Path, boolean) instead">
  7107. <param name="file" type="org.apache.hadoop.fs.Path"/>
  7108. <exception name="IOException" type="java.io.IOException"/>
  7109. <doc>
  7110. <![CDATA[@deprecated Use delete(Path, boolean) instead]]>
  7111. </doc>
  7112. </method>
  7113. <method name="delete" return="boolean"
  7114. abstract="false" native="false" synchronized="false"
  7115. static="false" final="false" visibility="public"
  7116. deprecated="not deprecated">
  7117. <param name="file" type="org.apache.hadoop.fs.Path"/>
  7118. <param name="recursive" type="boolean"/>
  7119. <exception name="IOException" type="java.io.IOException"/>
  7120. </method>
  7121. <method name="getUri" return="java.net.URI"
  7122. abstract="false" native="false" synchronized="false"
  7123. static="false" final="false" visibility="public"
  7124. deprecated="not deprecated">
  7125. </method>
  7126. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  7127. abstract="false" native="false" synchronized="false"
  7128. static="false" final="false" visibility="public"
  7129. deprecated="not deprecated">
  7130. <param name="file" type="org.apache.hadoop.fs.Path"/>
  7131. <exception name="IOException" type="java.io.IOException"/>
  7132. </method>
  7133. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  7134. abstract="false" native="false" synchronized="false"
  7135. static="false" final="false" visibility="public"
  7136. deprecated="not deprecated">
  7137. <param name="file" type="org.apache.hadoop.fs.Path"/>
  7138. <exception name="IOException" type="java.io.IOException"/>
  7139. </method>
  7140. <method name="mkdirs" return="boolean"
  7141. abstract="false" native="false" synchronized="false"
  7142. static="false" final="false" visibility="public"
  7143. deprecated="not deprecated">
  7144. <param name="file" type="org.apache.hadoop.fs.Path"/>
  7145. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7146. <exception name="IOException" type="java.io.IOException"/>
  7147. </method>
  7148. <method name="rename" return="boolean"
  7149. abstract="false" native="false" synchronized="false"
  7150. static="false" final="false" visibility="public"
  7151. deprecated="not deprecated">
  7152. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7153. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7154. <exception name="IOException" type="java.io.IOException"/>
  7155. </method>
  7156. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  7157. abstract="false" native="false" synchronized="false"
  7158. static="false" final="false" visibility="public"
  7159. deprecated="not deprecated">
  7160. </method>
  7161. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  7162. abstract="false" native="false" synchronized="false"
  7163. static="false" final="false" visibility="public"
  7164. deprecated="not deprecated">
  7165. </method>
  7166. <method name="setWorkingDirectory"
  7167. abstract="false" native="false" synchronized="false"
  7168. static="false" final="false" visibility="public"
  7169. deprecated="not deprecated">
  7170. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  7171. </method>
  7172. <field name="LOG" type="org.apache.commons.logging.Log"
  7173. transient="false" volatile="false"
  7174. static="true" final="true" visibility="public"
  7175. deprecated="not deprecated">
  7176. </field>
  7177. <field name="DEFAULT_BUFFER_SIZE" type="int"
  7178. transient="false" volatile="false"
  7179. static="true" final="true" visibility="public"
  7180. deprecated="not deprecated">
  7181. </field>
  7182. <field name="DEFAULT_BLOCK_SIZE" type="int"
  7183. transient="false" volatile="false"
  7184. static="true" final="true" visibility="public"
  7185. deprecated="not deprecated">
  7186. </field>
  7187. <doc>
  7188. <![CDATA[<p>
  7189. A {@link FileSystem} backed by an FTP client provided by <a
  7190. href="http://commons.apache.org/net/">Apache Commons Net</a>.
  7191. </p>]]>
  7192. </doc>
  7193. </class>
  7194. <!-- end class org.apache.hadoop.fs.ftp.FTPFileSystem -->
  7195. <!-- start class org.apache.hadoop.fs.ftp.FTPInputStream -->
  7196. <class name="FTPInputStream" extends="org.apache.hadoop.fs.FSInputStream"
  7197. abstract="false"
  7198. static="false" final="false" visibility="public"
  7199. deprecated="not deprecated">
  7200. <constructor name="FTPInputStream" type="java.io.InputStream, org.apache.commons.net.ftp.FTPClient, org.apache.hadoop.fs.FileSystem.Statistics"
  7201. static="false" final="false" visibility="public"
  7202. deprecated="not deprecated">
  7203. </constructor>
  7204. <method name="getPos" return="long"
  7205. abstract="false" native="false" synchronized="false"
  7206. static="false" final="false" visibility="public"
  7207. deprecated="not deprecated">
  7208. <exception name="IOException" type="java.io.IOException"/>
  7209. </method>
  7210. <method name="seek"
  7211. abstract="false" native="false" synchronized="false"
  7212. static="false" final="false" visibility="public"
  7213. deprecated="not deprecated">
  7214. <param name="pos" type="long"/>
  7215. <exception name="IOException" type="java.io.IOException"/>
  7216. </method>
  7217. <method name="seekToNewSource" return="boolean"
  7218. abstract="false" native="false" synchronized="false"
  7219. static="false" final="false" visibility="public"
  7220. deprecated="not deprecated">
  7221. <param name="targetPos" type="long"/>
  7222. <exception name="IOException" type="java.io.IOException"/>
  7223. </method>
  7224. <method name="read" return="int"
  7225. abstract="false" native="false" synchronized="true"
  7226. static="false" final="false" visibility="public"
  7227. deprecated="not deprecated">
  7228. <exception name="IOException" type="java.io.IOException"/>
  7229. </method>
  7230. <method name="read" return="int"
  7231. abstract="false" native="false" synchronized="true"
  7232. static="false" final="false" visibility="public"
  7233. deprecated="not deprecated">
  7234. <param name="buf" type="byte[]"/>
  7235. <param name="off" type="int"/>
  7236. <param name="len" type="int"/>
  7237. <exception name="IOException" type="java.io.IOException"/>
  7238. </method>
  7239. <method name="close"
  7240. abstract="false" native="false" synchronized="true"
  7241. static="false" final="false" visibility="public"
  7242. deprecated="not deprecated">
  7243. <exception name="IOException" type="java.io.IOException"/>
  7244. </method>
  7245. <method name="markSupported" return="boolean"
  7246. abstract="false" native="false" synchronized="false"
  7247. static="false" final="false" visibility="public"
  7248. deprecated="not deprecated">
  7249. </method>
  7250. <method name="mark"
  7251. abstract="false" native="false" synchronized="false"
  7252. static="false" final="false" visibility="public"
  7253. deprecated="not deprecated">
  7254. <param name="readLimit" type="int"/>
  7255. </method>
  7256. <method name="reset"
  7257. abstract="false" native="false" synchronized="false"
  7258. static="false" final="false" visibility="public"
  7259. deprecated="not deprecated">
  7260. <exception name="IOException" type="java.io.IOException"/>
  7261. </method>
  7262. </class>
  7263. <!-- end class org.apache.hadoop.fs.ftp.FTPInputStream -->
  7264. </package>
  7265. <package name="org.apache.hadoop.fs.kfs">
  7266. <!-- start class org.apache.hadoop.fs.kfs.KosmosFileSystem -->
  7267. <class name="KosmosFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  7268. abstract="false"
  7269. static="false" final="false" visibility="public"
  7270. deprecated="not deprecated">
  7271. <constructor name="KosmosFileSystem"
  7272. static="false" final="false" visibility="public"
  7273. deprecated="not deprecated">
  7274. </constructor>
  7275. <method name="getUri" return="java.net.URI"
  7276. abstract="false" native="false" synchronized="false"
  7277. static="false" final="false" visibility="public"
  7278. deprecated="not deprecated">
  7279. </method>
  7280. <method name="initialize"
  7281. abstract="false" native="false" synchronized="false"
  7282. static="false" final="false" visibility="public"
  7283. deprecated="not deprecated">
  7284. <param name="uri" type="java.net.URI"/>
  7285. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7286. <exception name="IOException" type="java.io.IOException"/>
  7287. </method>
  7288. <method name="getName" return="java.lang.String"
  7289. abstract="false" native="false" synchronized="false"
  7290. static="false" final="false" visibility="public"
  7291. deprecated="not deprecated">
  7292. </method>
  7293. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  7294. abstract="false" native="false" synchronized="false"
  7295. static="false" final="false" visibility="public"
  7296. deprecated="not deprecated">
  7297. </method>
  7298. <method name="setWorkingDirectory"
  7299. abstract="false" native="false" synchronized="false"
  7300. static="false" final="false" visibility="public"
  7301. deprecated="not deprecated">
  7302. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  7303. </method>
  7304. <method name="mkdirs" return="boolean"
  7305. abstract="false" native="false" synchronized="false"
  7306. static="false" final="false" visibility="public"
  7307. deprecated="not deprecated">
  7308. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7309. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7310. <exception name="IOException" type="java.io.IOException"/>
  7311. </method>
  7312. <method name="isDirectory" return="boolean"
  7313. abstract="false" native="false" synchronized="false"
  7314. static="false" final="false" visibility="public"
  7315. deprecated="not deprecated">
  7316. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7317. <exception name="IOException" type="java.io.IOException"/>
  7318. </method>
  7319. <method name="isFile" return="boolean"
  7320. abstract="false" native="false" synchronized="false"
  7321. static="false" final="false" visibility="public"
  7322. deprecated="not deprecated">
  7323. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7324. <exception name="IOException" type="java.io.IOException"/>
  7325. </method>
  7326. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  7327. abstract="false" native="false" synchronized="false"
  7328. static="false" final="false" visibility="public"
  7329. deprecated="not deprecated">
  7330. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7331. <exception name="IOException" type="java.io.IOException"/>
  7332. </method>
  7333. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  7334. abstract="false" native="false" synchronized="false"
  7335. static="false" final="false" visibility="public"
  7336. deprecated="not deprecated">
  7337. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7338. <exception name="IOException" type="java.io.IOException"/>
  7339. </method>
  7340. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  7341. abstract="false" native="false" synchronized="false"
  7342. static="false" final="false" visibility="public"
  7343. deprecated="not deprecated">
  7344. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7345. <param name="bufferSize" type="int"/>
  7346. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7347. <exception name="IOException" type="java.io.IOException"/>
  7348. <doc>
  7349. <![CDATA[This optional operation is not yet supported.]]>
  7350. </doc>
  7351. </method>
  7352. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  7353. abstract="false" native="false" synchronized="false"
  7354. static="false" final="false" visibility="public"
  7355. deprecated="not deprecated">
  7356. <param name="file" type="org.apache.hadoop.fs.Path"/>
  7357. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7358. <param name="overwrite" type="boolean"/>
  7359. <param name="bufferSize" type="int"/>
  7360. <param name="replication" type="short"/>
  7361. <param name="blockSize" type="long"/>
  7362. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7363. <exception name="IOException" type="java.io.IOException"/>
  7364. </method>
  7365. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  7366. abstract="false" native="false" synchronized="false"
  7367. static="false" final="false" visibility="public"
  7368. deprecated="not deprecated">
  7369. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7370. <param name="bufferSize" type="int"/>
  7371. <exception name="IOException" type="java.io.IOException"/>
  7372. </method>
  7373. <method name="rename" return="boolean"
  7374. abstract="false" native="false" synchronized="false"
  7375. static="false" final="false" visibility="public"
  7376. deprecated="not deprecated">
  7377. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7378. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7379. <exception name="IOException" type="java.io.IOException"/>
  7380. </method>
  7381. <method name="delete" return="boolean"
  7382. abstract="false" native="false" synchronized="false"
  7383. static="false" final="false" visibility="public"
  7384. deprecated="not deprecated">
  7385. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7386. <param name="recursive" type="boolean"/>
  7387. <exception name="IOException" type="java.io.IOException"/>
  7388. </method>
  7389. <method name="delete" return="boolean"
  7390. abstract="false" native="false" synchronized="false"
  7391. static="false" final="false" visibility="public"
  7392. deprecated="not deprecated">
  7393. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7394. <exception name="IOException" type="java.io.IOException"/>
  7395. </method>
  7396. <method name="getLength" return="long"
  7397. abstract="false" native="false" synchronized="false"
  7398. static="false" final="false" visibility="public"
  7399. deprecated="not deprecated">
  7400. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7401. <exception name="IOException" type="java.io.IOException"/>
  7402. </method>
  7403. <method name="getReplication" return="short"
  7404. abstract="false" native="false" synchronized="false"
  7405. static="false" final="false" visibility="public"
  7406. deprecated="not deprecated">
  7407. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7408. <exception name="IOException" type="java.io.IOException"/>
  7409. </method>
  7410. <method name="getDefaultReplication" return="short"
  7411. abstract="false" native="false" synchronized="false"
  7412. static="false" final="false" visibility="public"
  7413. deprecated="not deprecated">
  7414. </method>
  7415. <method name="setReplication" return="boolean"
  7416. abstract="false" native="false" synchronized="false"
  7417. static="false" final="false" visibility="public"
  7418. deprecated="not deprecated">
  7419. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7420. <param name="replication" type="short"/>
  7421. <exception name="IOException" type="java.io.IOException"/>
  7422. </method>
  7423. <method name="getDefaultBlockSize" return="long"
  7424. abstract="false" native="false" synchronized="false"
  7425. static="false" final="false" visibility="public"
  7426. deprecated="not deprecated">
  7427. </method>
  7428. <method name="lock"
  7429. abstract="false" native="false" synchronized="false"
  7430. static="false" final="false" visibility="public"
  7431. deprecated="not deprecated">
  7432. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7433. <param name="shared" type="boolean"/>
  7434. <exception name="IOException" type="java.io.IOException"/>
  7435. </method>
  7436. <method name="release"
  7437. abstract="false" native="false" synchronized="false"
  7438. static="false" final="false" visibility="public"
  7439. deprecated="not deprecated">
  7440. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7441. <exception name="IOException" type="java.io.IOException"/>
  7442. </method>
  7443. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  7444. abstract="false" native="false" synchronized="false"
  7445. static="false" final="false" visibility="public"
  7446. deprecated="not deprecated">
  7447. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  7448. <param name="start" type="long"/>
  7449. <param name="len" type="long"/>
  7450. <exception name="IOException" type="java.io.IOException"/>
  7451. <doc>
  7452. <![CDATA[Return null if the file doesn't exist; otherwise, get the
  7453. locations of the various chunks of the file file from KFS.]]>
  7454. </doc>
  7455. </method>
  7456. <method name="copyFromLocalFile"
  7457. abstract="false" native="false" synchronized="false"
  7458. static="false" final="false" visibility="public"
  7459. deprecated="not deprecated">
  7460. <param name="delSrc" type="boolean"/>
  7461. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7462. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7463. <exception name="IOException" type="java.io.IOException"/>
  7464. </method>
  7465. <method name="copyToLocalFile"
  7466. abstract="false" native="false" synchronized="false"
  7467. static="false" final="false" visibility="public"
  7468. deprecated="not deprecated">
  7469. <param name="delSrc" type="boolean"/>
  7470. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7471. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7472. <exception name="IOException" type="java.io.IOException"/>
  7473. </method>
  7474. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  7475. abstract="false" native="false" synchronized="false"
  7476. static="false" final="false" visibility="public"
  7477. deprecated="not deprecated">
  7478. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  7479. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  7480. <exception name="IOException" type="java.io.IOException"/>
  7481. </method>
  7482. <method name="completeLocalOutput"
  7483. abstract="false" native="false" synchronized="false"
  7484. static="false" final="false" visibility="public"
  7485. deprecated="not deprecated">
  7486. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  7487. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  7488. <exception name="IOException" type="java.io.IOException"/>
  7489. </method>
  7490. <doc>
  7491. <![CDATA[A FileSystem backed by KFS.]]>
  7492. </doc>
  7493. </class>
  7494. <!-- end class org.apache.hadoop.fs.kfs.KosmosFileSystem -->
  7495. </package>
  7496. <package name="org.apache.hadoop.fs.permission">
  7497. <!-- start class org.apache.hadoop.fs.permission.AccessControlException -->
  7498. <class name="AccessControlException" extends="java.io.IOException"
  7499. abstract="false"
  7500. static="false" final="false" visibility="public"
  7501. deprecated="Use {@link org.apache.hadoop.security.AccessControlException}
  7502. instead.">
  7503. <constructor name="AccessControlException"
  7504. static="false" final="false" visibility="public"
  7505. deprecated="not deprecated">
  7506. <doc>
  7507. <![CDATA[Default constructor is needed for unwrapping from
  7508. {@link org.apache.hadoop.ipc.RemoteException}.]]>
  7509. </doc>
  7510. </constructor>
  7511. <constructor name="AccessControlException" type="java.lang.String"
  7512. static="false" final="false" visibility="public"
  7513. deprecated="not deprecated">
  7514. <doc>
  7515. <![CDATA[Constructs an {@link AccessControlException}
  7516. with the specified detail message.
  7517. @param s the detail message.]]>
  7518. </doc>
  7519. </constructor>
  7520. <constructor name="AccessControlException" type="java.lang.Throwable"
  7521. static="false" final="false" visibility="public"
  7522. deprecated="not deprecated">
  7523. <doc>
  7524. <![CDATA[Constructs a new exception with the specified cause and a detail
  7525. message of <tt>(cause==null ? null : cause.toString())</tt> (which
  7526. typically contains the class and detail message of <tt>cause</tt>).
  7527. @param cause the cause (which is saved for later retrieval by the
  7528. {@link #getCause()} method). (A <tt>null</tt> value is
  7529. permitted, and indicates that the cause is nonexistent or
  7530. unknown.)]]>
  7531. </doc>
  7532. </constructor>
  7533. <doc>
  7534. <![CDATA[An exception class for access control related issues.
  7535. @deprecated Use {@link org.apache.hadoop.security.AccessControlException}
  7536. instead.]]>
  7537. </doc>
  7538. </class>
  7539. <!-- end class org.apache.hadoop.fs.permission.AccessControlException -->
  7540. <!-- start class org.apache.hadoop.fs.permission.ChmodParser -->
  7541. <class name="ChmodParser" extends="org.apache.hadoop.fs.permission.PermissionParser"
  7542. abstract="false"
  7543. static="false" final="false" visibility="public"
  7544. deprecated="not deprecated">
  7545. <constructor name="ChmodParser" type="java.lang.String"
  7546. static="false" final="false" visibility="public"
  7547. deprecated="not deprecated">
  7548. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  7549. </constructor>
  7550. <method name="applyNewPermission" return="short"
  7551. abstract="false" native="false" synchronized="false"
  7552. static="false" final="false" visibility="public"
  7553. deprecated="not deprecated">
  7554. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  7555. <doc>
  7556. <![CDATA[Apply permission against specified file and determine what the
  7557. new mode would be
  7558. @param file File against which to apply mode
  7559. @return File's new mode if applied.]]>
  7560. </doc>
  7561. </method>
  7562. <doc>
  7563. <![CDATA[Parse a permission mode passed in from a chmod command and apply that
  7564. mode against an existing file.]]>
  7565. </doc>
  7566. </class>
  7567. <!-- end class org.apache.hadoop.fs.permission.ChmodParser -->
  7568. <!-- start class org.apache.hadoop.fs.permission.FsAction -->
  7569. <class name="FsAction" extends="java.lang.Enum"
  7570. abstract="false"
  7571. static="false" final="true" visibility="public"
  7572. deprecated="not deprecated">
  7573. <method name="values" return="org.apache.hadoop.fs.permission.FsAction[]"
  7574. abstract="false" native="false" synchronized="false"
  7575. static="true" final="false" visibility="public"
  7576. deprecated="not deprecated">
  7577. </method>
  7578. <method name="valueOf" return="org.apache.hadoop.fs.permission.FsAction"
  7579. abstract="false" native="false" synchronized="false"
  7580. static="true" final="false" visibility="public"
  7581. deprecated="not deprecated">
  7582. <param name="name" type="java.lang.String"/>
  7583. </method>
  7584. <method name="implies" return="boolean"
  7585. abstract="false" native="false" synchronized="false"
  7586. static="false" final="false" visibility="public"
  7587. deprecated="not deprecated">
  7588. <param name="that" type="org.apache.hadoop.fs.permission.FsAction"/>
  7589. <doc>
  7590. <![CDATA[Return true if this action implies that action.
  7591. @param that]]>
  7592. </doc>
  7593. </method>
  7594. <method name="and" return="org.apache.hadoop.fs.permission.FsAction"
  7595. abstract="false" native="false" synchronized="false"
  7596. static="false" final="false" visibility="public"
  7597. deprecated="not deprecated">
  7598. <param name="that" type="org.apache.hadoop.fs.permission.FsAction"/>
  7599. <doc>
  7600. <![CDATA[AND operation.]]>
  7601. </doc>
  7602. </method>
  7603. <method name="or" return="org.apache.hadoop.fs.permission.FsAction"
  7604. abstract="false" native="false" synchronized="false"
  7605. static="false" final="false" visibility="public"
  7606. deprecated="not deprecated">
  7607. <param name="that" type="org.apache.hadoop.fs.permission.FsAction"/>
  7608. <doc>
  7609. <![CDATA[OR operation.]]>
  7610. </doc>
  7611. </method>
  7612. <method name="not" return="org.apache.hadoop.fs.permission.FsAction"
  7613. abstract="false" native="false" synchronized="false"
  7614. static="false" final="false" visibility="public"
  7615. deprecated="not deprecated">
  7616. <doc>
  7617. <![CDATA[NOT operation.]]>
  7618. </doc>
  7619. </method>
  7620. <field name="NONE" type="org.apache.hadoop.fs.permission.FsAction"
  7621. transient="false" volatile="false"
  7622. static="true" final="true" visibility="public"
  7623. deprecated="not deprecated">
  7624. </field>
  7625. <field name="EXECUTE" type="org.apache.hadoop.fs.permission.FsAction"
  7626. transient="false" volatile="false"
  7627. static="true" final="true" visibility="public"
  7628. deprecated="not deprecated">
  7629. </field>
  7630. <field name="WRITE" type="org.apache.hadoop.fs.permission.FsAction"
  7631. transient="false" volatile="false"
  7632. static="true" final="true" visibility="public"
  7633. deprecated="not deprecated">
  7634. </field>
  7635. <field name="WRITE_EXECUTE" type="org.apache.hadoop.fs.permission.FsAction"
  7636. transient="false" volatile="false"
  7637. static="true" final="true" visibility="public"
  7638. deprecated="not deprecated">
  7639. </field>
  7640. <field name="READ" type="org.apache.hadoop.fs.permission.FsAction"
  7641. transient="false" volatile="false"
  7642. static="true" final="true" visibility="public"
  7643. deprecated="not deprecated">
  7644. </field>
  7645. <field name="READ_EXECUTE" type="org.apache.hadoop.fs.permission.FsAction"
  7646. transient="false" volatile="false"
  7647. static="true" final="true" visibility="public"
  7648. deprecated="not deprecated">
  7649. </field>
  7650. <field name="READ_WRITE" type="org.apache.hadoop.fs.permission.FsAction"
  7651. transient="false" volatile="false"
  7652. static="true" final="true" visibility="public"
  7653. deprecated="not deprecated">
  7654. </field>
  7655. <field name="ALL" type="org.apache.hadoop.fs.permission.FsAction"
  7656. transient="false" volatile="false"
  7657. static="true" final="true" visibility="public"
  7658. deprecated="not deprecated">
  7659. </field>
  7660. <field name="SYMBOL" type="java.lang.String"
  7661. transient="false" volatile="false"
  7662. static="false" final="true" visibility="public"
  7663. deprecated="not deprecated">
  7664. <doc>
  7665. <![CDATA[Symbolic representation]]>
  7666. </doc>
  7667. </field>
  7668. <doc>
  7669. <![CDATA[File system actions, e.g. read, write, etc.]]>
  7670. </doc>
  7671. </class>
  7672. <!-- end class org.apache.hadoop.fs.permission.FsAction -->
  7673. <!-- start class org.apache.hadoop.fs.permission.FsPermission -->
  7674. <class name="FsPermission" extends="java.lang.Object"
  7675. abstract="false"
  7676. static="false" final="false" visibility="public"
  7677. deprecated="not deprecated">
  7678. <implements name="org.apache.hadoop.io.Writable"/>
  7679. <constructor name="FsPermission" type="org.apache.hadoop.fs.permission.FsAction, org.apache.hadoop.fs.permission.FsAction, org.apache.hadoop.fs.permission.FsAction"
  7680. static="false" final="false" visibility="public"
  7681. deprecated="not deprecated">
  7682. <doc>
  7683. <![CDATA[Construct by the given {@link FsAction}.
  7684. @param u user action
  7685. @param g group action
  7686. @param o other action]]>
  7687. </doc>
  7688. </constructor>
  7689. <constructor name="FsPermission" type="short"
  7690. static="false" final="false" visibility="public"
  7691. deprecated="not deprecated">
  7692. <doc>
  7693. <![CDATA[Construct by the given mode.
  7694. @param mode
  7695. @see #toShort()]]>
  7696. </doc>
  7697. </constructor>
  7698. <constructor name="FsPermission" type="org.apache.hadoop.fs.permission.FsPermission"
  7699. static="false" final="false" visibility="public"
  7700. deprecated="not deprecated">
  7701. <doc>
  7702. <![CDATA[Copy constructor
  7703. @param other other permission]]>
  7704. </doc>
  7705. </constructor>
  7706. <constructor name="FsPermission" type="java.lang.String"
  7707. static="false" final="false" visibility="public"
  7708. deprecated="not deprecated">
  7709. <doc>
  7710. <![CDATA[Construct by given mode, either in octal or symbolic format.
  7711. @param mode mode as a string, either in octal or symbolic format
  7712. @throws IllegalArgumentException if <code>mode</code> is invalid]]>
  7713. </doc>
  7714. </constructor>
  7715. <method name="createImmutable" return="org.apache.hadoop.fs.permission.FsPermission"
  7716. abstract="false" native="false" synchronized="false"
  7717. static="true" final="false" visibility="public"
  7718. deprecated="not deprecated">
  7719. <param name="permission" type="short"/>
  7720. <doc>
  7721. <![CDATA[Create an immutable {@link FsPermission} object.]]>
  7722. </doc>
  7723. </method>
  7724. <method name="getUserAction" return="org.apache.hadoop.fs.permission.FsAction"
  7725. abstract="false" native="false" synchronized="false"
  7726. static="false" final="false" visibility="public"
  7727. deprecated="not deprecated">
  7728. <doc>
  7729. <![CDATA[Return user {@link FsAction}.]]>
  7730. </doc>
  7731. </method>
  7732. <method name="getGroupAction" return="org.apache.hadoop.fs.permission.FsAction"
  7733. abstract="false" native="false" synchronized="false"
  7734. static="false" final="false" visibility="public"
  7735. deprecated="not deprecated">
  7736. <doc>
  7737. <![CDATA[Return group {@link FsAction}.]]>
  7738. </doc>
  7739. </method>
  7740. <method name="getOtherAction" return="org.apache.hadoop.fs.permission.FsAction"
  7741. abstract="false" native="false" synchronized="false"
  7742. static="false" final="false" visibility="public"
  7743. deprecated="not deprecated">
  7744. <doc>
  7745. <![CDATA[Return other {@link FsAction}.]]>
  7746. </doc>
  7747. </method>
  7748. <method name="fromShort"
  7749. abstract="false" native="false" synchronized="false"
  7750. static="false" final="false" visibility="public"
  7751. deprecated="not deprecated">
  7752. <param name="n" type="short"/>
  7753. </method>
  7754. <method name="write"
  7755. abstract="false" native="false" synchronized="false"
  7756. static="false" final="false" visibility="public"
  7757. deprecated="not deprecated">
  7758. <param name="out" type="java.io.DataOutput"/>
  7759. <exception name="IOException" type="java.io.IOException"/>
  7760. <doc>
  7761. <![CDATA[{@inheritDoc}]]>
  7762. </doc>
  7763. </method>
  7764. <method name="readFields"
  7765. abstract="false" native="false" synchronized="false"
  7766. static="false" final="false" visibility="public"
  7767. deprecated="not deprecated">
  7768. <param name="in" type="java.io.DataInput"/>
  7769. <exception name="IOException" type="java.io.IOException"/>
  7770. <doc>
  7771. <![CDATA[{@inheritDoc}]]>
  7772. </doc>
  7773. </method>
  7774. <method name="read" return="org.apache.hadoop.fs.permission.FsPermission"
  7775. abstract="false" native="false" synchronized="false"
  7776. static="true" final="false" visibility="public"
  7777. deprecated="not deprecated">
  7778. <param name="in" type="java.io.DataInput"/>
  7779. <exception name="IOException" type="java.io.IOException"/>
  7780. <doc>
  7781. <![CDATA[Create and initialize a {@link FsPermission} from {@link DataInput}.]]>
  7782. </doc>
  7783. </method>
  7784. <method name="toShort" return="short"
  7785. abstract="false" native="false" synchronized="false"
  7786. static="false" final="false" visibility="public"
  7787. deprecated="not deprecated">
  7788. <doc>
  7789. <![CDATA[Encode the object to a short.]]>
  7790. </doc>
  7791. </method>
  7792. <method name="equals" return="boolean"
  7793. abstract="false" native="false" synchronized="false"
  7794. static="false" final="false" visibility="public"
  7795. deprecated="not deprecated">
  7796. <param name="obj" type="java.lang.Object"/>
  7797. <doc>
  7798. <![CDATA[{@inheritDoc}]]>
  7799. </doc>
  7800. </method>
  7801. <method name="hashCode" return="int"
  7802. abstract="false" native="false" synchronized="false"
  7803. static="false" final="false" visibility="public"
  7804. deprecated="not deprecated">
  7805. <doc>
  7806. <![CDATA[{@inheritDoc}]]>
  7807. </doc>
  7808. </method>
  7809. <method name="toString" return="java.lang.String"
  7810. abstract="false" native="false" synchronized="false"
  7811. static="false" final="false" visibility="public"
  7812. deprecated="not deprecated">
  7813. <doc>
  7814. <![CDATA[{@inheritDoc}]]>
  7815. </doc>
  7816. </method>
  7817. <method name="applyUMask" return="org.apache.hadoop.fs.permission.FsPermission"
  7818. abstract="false" native="false" synchronized="false"
  7819. static="false" final="false" visibility="public"
  7820. deprecated="not deprecated">
  7821. <param name="umask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7822. <doc>
  7823. <![CDATA[Apply a umask to this permission and return a new one]]>
  7824. </doc>
  7825. </method>
  7826. <method name="getUMask" return="org.apache.hadoop.fs.permission.FsPermission"
  7827. abstract="false" native="false" synchronized="false"
  7828. static="true" final="false" visibility="public"
  7829. deprecated="not deprecated">
  7830. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7831. <doc>
  7832. <![CDATA[Get the user file creation mask (umask)
  7833. {@code UMASK_LABEL} config param has umask value that is either symbolic
  7834. or octal.
  7835. Symbolic umask is applied relative to file mode creation mask;
  7836. the permission op characters '+' clears the corresponding bit in the mask,
  7837. '-' sets bits in the mask.
  7838. Octal umask, the specified bits are set in the file mode creation mask.
  7839. {@code DEPRECATED_UMASK_LABEL} config param has umask value set to decimal.]]>
  7840. </doc>
  7841. </method>
  7842. <method name="setUMask"
  7843. abstract="false" native="false" synchronized="false"
  7844. static="true" final="false" visibility="public"
  7845. deprecated="not deprecated">
  7846. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7847. <param name="umask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7848. <doc>
  7849. <![CDATA[Set the user file creation mask (umask)]]>
  7850. </doc>
  7851. </method>
  7852. <method name="getDefault" return="org.apache.hadoop.fs.permission.FsPermission"
  7853. abstract="false" native="false" synchronized="false"
  7854. static="true" final="false" visibility="public"
  7855. deprecated="not deprecated">
  7856. <doc>
  7857. <![CDATA[Get the default permission.]]>
  7858. </doc>
  7859. </method>
  7860. <method name="valueOf" return="org.apache.hadoop.fs.permission.FsPermission"
  7861. abstract="false" native="false" synchronized="false"
  7862. static="true" final="false" visibility="public"
  7863. deprecated="not deprecated">
  7864. <param name="unixSymbolicPermission" type="java.lang.String"/>
  7865. <doc>
  7866. <![CDATA[Create a FsPermission from a Unix symbolic permission string
  7867. @param unixSymbolicPermission e.g. "-rw-rw-rw-"]]>
  7868. </doc>
  7869. </method>
  7870. <field name="DEPRECATED_UMASK_LABEL" type="java.lang.String"
  7871. transient="false" volatile="false"
  7872. static="true" final="true" visibility="public"
  7873. deprecated="not deprecated">
  7874. <doc>
  7875. <![CDATA[umask property label]]>
  7876. </doc>
  7877. </field>
  7878. <field name="UMASK_LABEL" type="java.lang.String"
  7879. transient="false" volatile="false"
  7880. static="true" final="true" visibility="public"
  7881. deprecated="not deprecated">
  7882. </field>
  7883. <field name="DEFAULT_UMASK" type="int"
  7884. transient="false" volatile="false"
  7885. static="true" final="true" visibility="public"
  7886. deprecated="not deprecated">
  7887. </field>
  7888. <doc>
  7889. <![CDATA[A class for file/directory permissions.]]>
  7890. </doc>
  7891. </class>
  7892. <!-- end class org.apache.hadoop.fs.permission.FsPermission -->
  7893. <!-- start class org.apache.hadoop.fs.permission.PermissionStatus -->
  7894. <class name="PermissionStatus" extends="java.lang.Object"
  7895. abstract="false"
  7896. static="false" final="false" visibility="public"
  7897. deprecated="not deprecated">
  7898. <implements name="org.apache.hadoop.io.Writable"/>
  7899. <constructor name="PermissionStatus" type="java.lang.String, java.lang.String, org.apache.hadoop.fs.permission.FsPermission"
  7900. static="false" final="false" visibility="public"
  7901. deprecated="not deprecated">
  7902. <doc>
  7903. <![CDATA[Constructor]]>
  7904. </doc>
  7905. </constructor>
  7906. <method name="createImmutable" return="org.apache.hadoop.fs.permission.PermissionStatus"
  7907. abstract="false" native="false" synchronized="false"
  7908. static="true" final="false" visibility="public"
  7909. deprecated="not deprecated">
  7910. <param name="user" type="java.lang.String"/>
  7911. <param name="group" type="java.lang.String"/>
  7912. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7913. <doc>
  7914. <![CDATA[Create an immutable {@link PermissionStatus} object.]]>
  7915. </doc>
  7916. </method>
  7917. <method name="getUserName" return="java.lang.String"
  7918. abstract="false" native="false" synchronized="false"
  7919. static="false" final="false" visibility="public"
  7920. deprecated="not deprecated">
  7921. <doc>
  7922. <![CDATA[Return user name]]>
  7923. </doc>
  7924. </method>
  7925. <method name="getGroupName" return="java.lang.String"
  7926. abstract="false" native="false" synchronized="false"
  7927. static="false" final="false" visibility="public"
  7928. deprecated="not deprecated">
  7929. <doc>
  7930. <![CDATA[Return group name]]>
  7931. </doc>
  7932. </method>
  7933. <method name="getPermission" return="org.apache.hadoop.fs.permission.FsPermission"
  7934. abstract="false" native="false" synchronized="false"
  7935. static="false" final="false" visibility="public"
  7936. deprecated="not deprecated">
  7937. <doc>
  7938. <![CDATA[Return permission]]>
  7939. </doc>
  7940. </method>
  7941. <method name="applyUMask" return="org.apache.hadoop.fs.permission.PermissionStatus"
  7942. abstract="false" native="false" synchronized="false"
  7943. static="false" final="false" visibility="public"
  7944. deprecated="not deprecated">
  7945. <param name="umask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7946. <doc>
  7947. <![CDATA[Apply umask.
  7948. @see FsPermission#applyUMask(FsPermission)]]>
  7949. </doc>
  7950. </method>
  7951. <method name="readFields"
  7952. abstract="false" native="false" synchronized="false"
  7953. static="false" final="false" visibility="public"
  7954. deprecated="not deprecated">
  7955. <param name="in" type="java.io.DataInput"/>
  7956. <exception name="IOException" type="java.io.IOException"/>
  7957. <doc>
  7958. <![CDATA[{@inheritDoc}]]>
  7959. </doc>
  7960. </method>
  7961. <method name="write"
  7962. abstract="false" native="false" synchronized="false"
  7963. static="false" final="false" visibility="public"
  7964. deprecated="not deprecated">
  7965. <param name="out" type="java.io.DataOutput"/>
  7966. <exception name="IOException" type="java.io.IOException"/>
  7967. <doc>
  7968. <![CDATA[{@inheritDoc}]]>
  7969. </doc>
  7970. </method>
  7971. <method name="read" return="org.apache.hadoop.fs.permission.PermissionStatus"
  7972. abstract="false" native="false" synchronized="false"
  7973. static="true" final="false" visibility="public"
  7974. deprecated="not deprecated">
  7975. <param name="in" type="java.io.DataInput"/>
  7976. <exception name="IOException" type="java.io.IOException"/>
  7977. <doc>
  7978. <![CDATA[Create and initialize a {@link PermissionStatus} from {@link DataInput}.]]>
  7979. </doc>
  7980. </method>
  7981. <method name="write"
  7982. abstract="false" native="false" synchronized="false"
  7983. static="true" final="false" visibility="public"
  7984. deprecated="not deprecated">
  7985. <param name="out" type="java.io.DataOutput"/>
  7986. <param name="username" type="java.lang.String"/>
  7987. <param name="groupname" type="java.lang.String"/>
  7988. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7989. <exception name="IOException" type="java.io.IOException"/>
  7990. <doc>
  7991. <![CDATA[Serialize a {@link PermissionStatus} from its base components.]]>
  7992. </doc>
  7993. </method>
  7994. <method name="toString" return="java.lang.String"
  7995. abstract="false" native="false" synchronized="false"
  7996. static="false" final="false" visibility="public"
  7997. deprecated="not deprecated">
  7998. <doc>
  7999. <![CDATA[{@inheritDoc}]]>
  8000. </doc>
  8001. </method>
  8002. <doc>
  8003. <![CDATA[Store permission related information.]]>
  8004. </doc>
  8005. </class>
  8006. <!-- end class org.apache.hadoop.fs.permission.PermissionStatus -->
  8007. </package>
  8008. <package name="org.apache.hadoop.fs.s3">
  8009. <!-- start class org.apache.hadoop.fs.s3.Block -->
  8010. <class name="Block" extends="java.lang.Object"
  8011. abstract="false"
  8012. static="false" final="false" visibility="public"
  8013. deprecated="not deprecated">
  8014. <constructor name="Block" type="long, long"
  8015. static="false" final="false" visibility="public"
  8016. deprecated="not deprecated">
  8017. </constructor>
  8018. <method name="getId" return="long"
  8019. abstract="false" native="false" synchronized="false"
  8020. static="false" final="false" visibility="public"
  8021. deprecated="not deprecated">
  8022. </method>
  8023. <method name="getLength" return="long"
  8024. abstract="false" native="false" synchronized="false"
  8025. static="false" final="false" visibility="public"
  8026. deprecated="not deprecated">
  8027. </method>
  8028. <method name="toString" return="java.lang.String"
  8029. abstract="false" native="false" synchronized="false"
  8030. static="false" final="false" visibility="public"
  8031. deprecated="not deprecated">
  8032. </method>
  8033. <doc>
  8034. <![CDATA[Holds metadata about a block of data being stored in a {@link FileSystemStore}.]]>
  8035. </doc>
  8036. </class>
  8037. <!-- end class org.apache.hadoop.fs.s3.Block -->
  8038. <!-- start interface org.apache.hadoop.fs.s3.FileSystemStore -->
  8039. <interface name="FileSystemStore" abstract="true"
  8040. static="false" final="false" visibility="public"
  8041. deprecated="not deprecated">
  8042. <method name="initialize"
  8043. abstract="false" native="false" synchronized="false"
  8044. static="false" final="false" visibility="public"
  8045. deprecated="not deprecated">
  8046. <param name="uri" type="java.net.URI"/>
  8047. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8048. <exception name="IOException" type="java.io.IOException"/>
  8049. </method>
  8050. <method name="getVersion" return="java.lang.String"
  8051. abstract="false" native="false" synchronized="false"
  8052. static="false" final="false" visibility="public"
  8053. deprecated="not deprecated">
  8054. <exception name="IOException" type="java.io.IOException"/>
  8055. </method>
  8056. <method name="storeINode"
  8057. abstract="false" native="false" synchronized="false"
  8058. static="false" final="false" visibility="public"
  8059. deprecated="not deprecated">
  8060. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8061. <param name="inode" type="org.apache.hadoop.fs.s3.INode"/>
  8062. <exception name="IOException" type="java.io.IOException"/>
  8063. </method>
  8064. <method name="storeBlock"
  8065. abstract="false" native="false" synchronized="false"
  8066. static="false" final="false" visibility="public"
  8067. deprecated="not deprecated">
  8068. <param name="block" type="org.apache.hadoop.fs.s3.Block"/>
  8069. <param name="file" type="java.io.File"/>
  8070. <exception name="IOException" type="java.io.IOException"/>
  8071. </method>
  8072. <method name="inodeExists" return="boolean"
  8073. abstract="false" native="false" synchronized="false"
  8074. static="false" final="false" visibility="public"
  8075. deprecated="not deprecated">
  8076. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8077. <exception name="IOException" type="java.io.IOException"/>
  8078. </method>
  8079. <method name="blockExists" return="boolean"
  8080. abstract="false" native="false" synchronized="false"
  8081. static="false" final="false" visibility="public"
  8082. deprecated="not deprecated">
  8083. <param name="blockId" type="long"/>
  8084. <exception name="IOException" type="java.io.IOException"/>
  8085. </method>
  8086. <method name="retrieveINode" return="org.apache.hadoop.fs.s3.INode"
  8087. abstract="false" native="false" synchronized="false"
  8088. static="false" final="false" visibility="public"
  8089. deprecated="not deprecated">
  8090. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8091. <exception name="IOException" type="java.io.IOException"/>
  8092. </method>
  8093. <method name="retrieveBlock" return="java.io.File"
  8094. abstract="false" native="false" synchronized="false"
  8095. static="false" final="false" visibility="public"
  8096. deprecated="not deprecated">
  8097. <param name="block" type="org.apache.hadoop.fs.s3.Block"/>
  8098. <param name="byteRangeStart" type="long"/>
  8099. <exception name="IOException" type="java.io.IOException"/>
  8100. </method>
  8101. <method name="deleteINode"
  8102. abstract="false" native="false" synchronized="false"
  8103. static="false" final="false" visibility="public"
  8104. deprecated="not deprecated">
  8105. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8106. <exception name="IOException" type="java.io.IOException"/>
  8107. </method>
  8108. <method name="deleteBlock"
  8109. abstract="false" native="false" synchronized="false"
  8110. static="false" final="false" visibility="public"
  8111. deprecated="not deprecated">
  8112. <param name="block" type="org.apache.hadoop.fs.s3.Block"/>
  8113. <exception name="IOException" type="java.io.IOException"/>
  8114. </method>
  8115. <method name="listSubPaths" return="java.util.Set"
  8116. abstract="false" native="false" synchronized="false"
  8117. static="false" final="false" visibility="public"
  8118. deprecated="not deprecated">
  8119. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8120. <exception name="IOException" type="java.io.IOException"/>
  8121. </method>
  8122. <method name="listDeepSubPaths" return="java.util.Set"
  8123. abstract="false" native="false" synchronized="false"
  8124. static="false" final="false" visibility="public"
  8125. deprecated="not deprecated">
  8126. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8127. <exception name="IOException" type="java.io.IOException"/>
  8128. </method>
  8129. <method name="purge"
  8130. abstract="false" native="false" synchronized="false"
  8131. static="false" final="false" visibility="public"
  8132. deprecated="not deprecated">
  8133. <exception name="IOException" type="java.io.IOException"/>
  8134. <doc>
  8135. <![CDATA[Delete everything. Used for testing.
  8136. @throws IOException]]>
  8137. </doc>
  8138. </method>
  8139. <method name="dump"
  8140. abstract="false" native="false" synchronized="false"
  8141. static="false" final="false" visibility="public"
  8142. deprecated="not deprecated">
  8143. <exception name="IOException" type="java.io.IOException"/>
  8144. <doc>
  8145. <![CDATA[Diagnostic method to dump all INodes to the console.
  8146. @throws IOException]]>
  8147. </doc>
  8148. </method>
  8149. <doc>
  8150. <![CDATA[A facility for storing and retrieving {@link INode}s and {@link Block}s.]]>
  8151. </doc>
  8152. </interface>
  8153. <!-- end interface org.apache.hadoop.fs.s3.FileSystemStore -->
  8154. <!-- start class org.apache.hadoop.fs.s3.INode -->
  8155. <class name="INode" extends="java.lang.Object"
  8156. abstract="false"
  8157. static="false" final="false" visibility="public"
  8158. deprecated="not deprecated">
  8159. <constructor name="INode" type="org.apache.hadoop.fs.s3.INode.FileType, org.apache.hadoop.fs.s3.Block[]"
  8160. static="false" final="false" visibility="public"
  8161. deprecated="not deprecated">
  8162. </constructor>
  8163. <method name="getBlocks" return="org.apache.hadoop.fs.s3.Block[]"
  8164. abstract="false" native="false" synchronized="false"
  8165. static="false" final="false" visibility="public"
  8166. deprecated="not deprecated">
  8167. </method>
  8168. <method name="getFileType" return="org.apache.hadoop.fs.s3.INode.FileType"
  8169. abstract="false" native="false" synchronized="false"
  8170. static="false" final="false" visibility="public"
  8171. deprecated="not deprecated">
  8172. </method>
  8173. <method name="isDirectory" return="boolean"
  8174. abstract="false" native="false" synchronized="false"
  8175. static="false" final="false" visibility="public"
  8176. deprecated="not deprecated">
  8177. </method>
  8178. <method name="isFile" return="boolean"
  8179. abstract="false" native="false" synchronized="false"
  8180. static="false" final="false" visibility="public"
  8181. deprecated="not deprecated">
  8182. </method>
  8183. <method name="getSerializedLength" return="long"
  8184. abstract="false" native="false" synchronized="false"
  8185. static="false" final="false" visibility="public"
  8186. deprecated="not deprecated">
  8187. </method>
  8188. <method name="serialize" return="java.io.InputStream"
  8189. abstract="false" native="false" synchronized="false"
  8190. static="false" final="false" visibility="public"
  8191. deprecated="not deprecated">
  8192. <exception name="IOException" type="java.io.IOException"/>
  8193. </method>
  8194. <method name="deserialize" return="org.apache.hadoop.fs.s3.INode"
  8195. abstract="false" native="false" synchronized="false"
  8196. static="true" final="false" visibility="public"
  8197. deprecated="not deprecated">
  8198. <param name="in" type="java.io.InputStream"/>
  8199. <exception name="IOException" type="java.io.IOException"/>
  8200. </method>
  8201. <field name="FILE_TYPES" type="org.apache.hadoop.fs.s3.INode.FileType[]"
  8202. transient="false" volatile="false"
  8203. static="true" final="true" visibility="public"
  8204. deprecated="not deprecated">
  8205. </field>
  8206. <field name="DIRECTORY_INODE" type="org.apache.hadoop.fs.s3.INode"
  8207. transient="false" volatile="false"
  8208. static="true" final="true" visibility="public"
  8209. deprecated="not deprecated">
  8210. </field>
  8211. <doc>
  8212. <![CDATA[Holds file metadata including type (regular file, or directory),
  8213. and the list of blocks that are pointers to the data.]]>
  8214. </doc>
  8215. </class>
  8216. <!-- end class org.apache.hadoop.fs.s3.INode -->
  8217. <!-- start class org.apache.hadoop.fs.s3.MigrationTool -->
  8218. <class name="MigrationTool" extends="org.apache.hadoop.conf.Configured"
  8219. abstract="false"
  8220. static="false" final="false" visibility="public"
  8221. deprecated="not deprecated">
  8222. <implements name="org.apache.hadoop.util.Tool"/>
  8223. <constructor name="MigrationTool"
  8224. static="false" final="false" visibility="public"
  8225. deprecated="not deprecated">
  8226. </constructor>
  8227. <method name="main"
  8228. abstract="false" native="false" synchronized="false"
  8229. static="true" final="false" visibility="public"
  8230. deprecated="not deprecated">
  8231. <param name="args" type="java.lang.String[]"/>
  8232. <exception name="Exception" type="java.lang.Exception"/>
  8233. </method>
  8234. <method name="run" return="int"
  8235. abstract="false" native="false" synchronized="false"
  8236. static="false" final="false" visibility="public"
  8237. deprecated="not deprecated">
  8238. <param name="args" type="java.lang.String[]"/>
  8239. <exception name="Exception" type="java.lang.Exception"/>
  8240. </method>
  8241. <method name="initialize"
  8242. abstract="false" native="false" synchronized="false"
  8243. static="false" final="false" visibility="public"
  8244. deprecated="not deprecated">
  8245. <param name="uri" type="java.net.URI"/>
  8246. <exception name="IOException" type="java.io.IOException"/>
  8247. </method>
  8248. <doc>
  8249. <![CDATA[<p>
  8250. This class is a tool for migrating data from an older to a newer version
  8251. of an S3 filesystem.
  8252. </p>
  8253. <p>
  8254. All files in the filesystem are migrated by re-writing the block metadata
  8255. - no datafiles are touched.
  8256. </p>]]>
  8257. </doc>
  8258. </class>
  8259. <!-- end class org.apache.hadoop.fs.s3.MigrationTool -->
  8260. <!-- start class org.apache.hadoop.fs.s3.S3Credentials -->
  8261. <class name="S3Credentials" extends="java.lang.Object"
  8262. abstract="false"
  8263. static="false" final="false" visibility="public"
  8264. deprecated="not deprecated">
  8265. <constructor name="S3Credentials"
  8266. static="false" final="false" visibility="public"
  8267. deprecated="not deprecated">
  8268. </constructor>
  8269. <method name="initialize"
  8270. abstract="false" native="false" synchronized="false"
  8271. static="false" final="false" visibility="public"
  8272. deprecated="not deprecated">
  8273. <param name="uri" type="java.net.URI"/>
  8274. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8275. <doc>
  8276. <![CDATA[@throws IllegalArgumentException if credentials for S3 cannot be
  8277. determined.]]>
  8278. </doc>
  8279. </method>
  8280. <method name="getAccessKey" return="java.lang.String"
  8281. abstract="false" native="false" synchronized="false"
  8282. static="false" final="false" visibility="public"
  8283. deprecated="not deprecated">
  8284. </method>
  8285. <method name="getSecretAccessKey" return="java.lang.String"
  8286. abstract="false" native="false" synchronized="false"
  8287. static="false" final="false" visibility="public"
  8288. deprecated="not deprecated">
  8289. </method>
  8290. <doc>
  8291. <![CDATA[<p>
  8292. Extracts AWS credentials from the filesystem URI or configuration.
  8293. </p>]]>
  8294. </doc>
  8295. </class>
  8296. <!-- end class org.apache.hadoop.fs.s3.S3Credentials -->
  8297. <!-- start class org.apache.hadoop.fs.s3.S3Exception -->
  8298. <class name="S3Exception" extends="java.lang.RuntimeException"
  8299. abstract="false"
  8300. static="false" final="false" visibility="public"
  8301. deprecated="not deprecated">
  8302. <constructor name="S3Exception" type="java.lang.Throwable"
  8303. static="false" final="false" visibility="public"
  8304. deprecated="not deprecated">
  8305. </constructor>
  8306. <doc>
  8307. <![CDATA[Thrown if there is a problem communicating with Amazon S3.]]>
  8308. </doc>
  8309. </class>
  8310. <!-- end class org.apache.hadoop.fs.s3.S3Exception -->
  8311. <!-- start class org.apache.hadoop.fs.s3.S3FileSystem -->
  8312. <class name="S3FileSystem" extends="org.apache.hadoop.fs.FileSystem"
  8313. abstract="false"
  8314. static="false" final="false" visibility="public"
  8315. deprecated="not deprecated">
  8316. <constructor name="S3FileSystem"
  8317. static="false" final="false" visibility="public"
  8318. deprecated="not deprecated">
  8319. </constructor>
  8320. <constructor name="S3FileSystem" type="org.apache.hadoop.fs.s3.FileSystemStore"
  8321. static="false" final="false" visibility="public"
  8322. deprecated="not deprecated">
  8323. </constructor>
  8324. <method name="getUri" return="java.net.URI"
  8325. abstract="false" native="false" synchronized="false"
  8326. static="false" final="false" visibility="public"
  8327. deprecated="not deprecated">
  8328. </method>
  8329. <method name="initialize"
  8330. abstract="false" native="false" synchronized="false"
  8331. static="false" final="false" visibility="public"
  8332. deprecated="not deprecated">
  8333. <param name="uri" type="java.net.URI"/>
  8334. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8335. <exception name="IOException" type="java.io.IOException"/>
  8336. </method>
  8337. <method name="getName" return="java.lang.String"
  8338. abstract="false" native="false" synchronized="false"
  8339. static="false" final="false" visibility="public"
  8340. deprecated="not deprecated">
  8341. </method>
  8342. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  8343. abstract="false" native="false" synchronized="false"
  8344. static="false" final="false" visibility="public"
  8345. deprecated="not deprecated">
  8346. </method>
  8347. <method name="setWorkingDirectory"
  8348. abstract="false" native="false" synchronized="false"
  8349. static="false" final="false" visibility="public"
  8350. deprecated="not deprecated">
  8351. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  8352. </method>
  8353. <method name="mkdirs" return="boolean"
  8354. abstract="false" native="false" synchronized="false"
  8355. static="false" final="false" visibility="public"
  8356. deprecated="not deprecated">
  8357. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8358. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8359. <exception name="IOException" type="java.io.IOException"/>
  8360. <doc>
  8361. <![CDATA[@param permission Currently ignored.]]>
  8362. </doc>
  8363. </method>
  8364. <method name="isFile" return="boolean"
  8365. abstract="false" native="false" synchronized="false"
  8366. static="false" final="false" visibility="public"
  8367. deprecated="not deprecated">
  8368. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8369. <exception name="IOException" type="java.io.IOException"/>
  8370. </method>
  8371. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  8372. abstract="false" native="false" synchronized="false"
  8373. static="false" final="false" visibility="public"
  8374. deprecated="not deprecated">
  8375. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8376. <exception name="IOException" type="java.io.IOException"/>
  8377. </method>
  8378. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  8379. abstract="false" native="false" synchronized="false"
  8380. static="false" final="false" visibility="public"
  8381. deprecated="not deprecated">
  8382. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8383. <param name="bufferSize" type="int"/>
  8384. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8385. <exception name="IOException" type="java.io.IOException"/>
  8386. <doc>
  8387. <![CDATA[This optional operation is not yet supported.]]>
  8388. </doc>
  8389. </method>
  8390. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8391. abstract="false" native="false" synchronized="false"
  8392. static="false" final="false" visibility="public"
  8393. deprecated="not deprecated">
  8394. <param name="file" type="org.apache.hadoop.fs.Path"/>
  8395. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8396. <param name="overwrite" type="boolean"/>
  8397. <param name="bufferSize" type="int"/>
  8398. <param name="replication" type="short"/>
  8399. <param name="blockSize" type="long"/>
  8400. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8401. <exception name="IOException" type="java.io.IOException"/>
  8402. <doc>
  8403. <![CDATA[@param permission Currently ignored.]]>
  8404. </doc>
  8405. </method>
  8406. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  8407. abstract="false" native="false" synchronized="false"
  8408. static="false" final="false" visibility="public"
  8409. deprecated="not deprecated">
  8410. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8411. <param name="bufferSize" type="int"/>
  8412. <exception name="IOException" type="java.io.IOException"/>
  8413. </method>
  8414. <method name="rename" return="boolean"
  8415. abstract="false" native="false" synchronized="false"
  8416. static="false" final="false" visibility="public"
  8417. deprecated="not deprecated">
  8418. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8419. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8420. <exception name="IOException" type="java.io.IOException"/>
  8421. </method>
  8422. <method name="delete" return="boolean"
  8423. abstract="false" native="false" synchronized="false"
  8424. static="false" final="false" visibility="public"
  8425. deprecated="not deprecated">
  8426. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8427. <param name="recursive" type="boolean"/>
  8428. <exception name="IOException" type="java.io.IOException"/>
  8429. </method>
  8430. <method name="delete" return="boolean"
  8431. abstract="false" native="false" synchronized="false"
  8432. static="false" final="false" visibility="public"
  8433. deprecated="not deprecated">
  8434. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8435. <exception name="IOException" type="java.io.IOException"/>
  8436. </method>
  8437. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  8438. abstract="false" native="false" synchronized="false"
  8439. static="false" final="false" visibility="public"
  8440. deprecated="not deprecated">
  8441. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8442. <exception name="IOException" type="java.io.IOException"/>
  8443. <doc>
  8444. <![CDATA[FileStatus for S3 file systems.]]>
  8445. </doc>
  8446. </method>
  8447. <doc>
  8448. <![CDATA[<p>
  8449. A block-based {@link FileSystem} backed by
  8450. <a href="http://aws.amazon.com/s3">Amazon S3</a>.
  8451. </p>
  8452. @see NativeS3FileSystem]]>
  8453. </doc>
  8454. </class>
  8455. <!-- end class org.apache.hadoop.fs.s3.S3FileSystem -->
  8456. <!-- start class org.apache.hadoop.fs.s3.S3FileSystemException -->
  8457. <class name="S3FileSystemException" extends="java.io.IOException"
  8458. abstract="false"
  8459. static="false" final="false" visibility="public"
  8460. deprecated="not deprecated">
  8461. <constructor name="S3FileSystemException" type="java.lang.String"
  8462. static="false" final="false" visibility="public"
  8463. deprecated="not deprecated">
  8464. </constructor>
  8465. <doc>
  8466. <![CDATA[Thrown when there is a fatal exception while using {@link S3FileSystem}.]]>
  8467. </doc>
  8468. </class>
  8469. <!-- end class org.apache.hadoop.fs.s3.S3FileSystemException -->
  8470. <!-- start class org.apache.hadoop.fs.s3.VersionMismatchException -->
  8471. <class name="VersionMismatchException" extends="org.apache.hadoop.fs.s3.S3FileSystemException"
  8472. abstract="false"
  8473. static="false" final="false" visibility="public"
  8474. deprecated="not deprecated">
  8475. <constructor name="VersionMismatchException" type="java.lang.String, java.lang.String"
  8476. static="false" final="false" visibility="public"
  8477. deprecated="not deprecated">
  8478. </constructor>
  8479. <doc>
  8480. <![CDATA[Thrown when Hadoop cannot read the version of the data stored
  8481. in {@link S3FileSystem}.]]>
  8482. </doc>
  8483. </class>
  8484. <!-- end class org.apache.hadoop.fs.s3.VersionMismatchException -->
  8485. </package>
  8486. <package name="org.apache.hadoop.fs.s3native">
  8487. <!-- start class org.apache.hadoop.fs.s3native.NativeS3FileSystem -->
  8488. <class name="NativeS3FileSystem" extends="org.apache.hadoop.fs.FileSystem"
  8489. abstract="false"
  8490. static="false" final="false" visibility="public"
  8491. deprecated="not deprecated">
  8492. <constructor name="NativeS3FileSystem"
  8493. static="false" final="false" visibility="public"
  8494. deprecated="not deprecated">
  8495. </constructor>
  8496. <constructor name="NativeS3FileSystem" type="org.apache.hadoop.fs.s3native.NativeFileSystemStore"
  8497. static="false" final="false" visibility="public"
  8498. deprecated="not deprecated">
  8499. </constructor>
  8500. <method name="initialize"
  8501. abstract="false" native="false" synchronized="false"
  8502. static="false" final="false" visibility="public"
  8503. deprecated="not deprecated">
  8504. <param name="uri" type="java.net.URI"/>
  8505. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8506. <exception name="IOException" type="java.io.IOException"/>
  8507. </method>
  8508. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  8509. abstract="false" native="false" synchronized="false"
  8510. static="false" final="false" visibility="public"
  8511. deprecated="not deprecated">
  8512. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8513. <param name="bufferSize" type="int"/>
  8514. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8515. <exception name="IOException" type="java.io.IOException"/>
  8516. <doc>
  8517. <![CDATA[This optional operation is not yet supported.]]>
  8518. </doc>
  8519. </method>
  8520. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8521. abstract="false" native="false" synchronized="false"
  8522. static="false" final="false" visibility="public"
  8523. deprecated="not deprecated">
  8524. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8525. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8526. <param name="overwrite" type="boolean"/>
  8527. <param name="bufferSize" type="int"/>
  8528. <param name="replication" type="short"/>
  8529. <param name="blockSize" type="long"/>
  8530. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8531. <exception name="IOException" type="java.io.IOException"/>
  8532. </method>
  8533. <method name="delete" return="boolean"
  8534. abstract="false" native="false" synchronized="false"
  8535. static="false" final="false" visibility="public"
  8536. deprecated="not deprecated">
  8537. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8538. <exception name="IOException" type="java.io.IOException"/>
  8539. </method>
  8540. <method name="delete" return="boolean"
  8541. abstract="false" native="false" synchronized="false"
  8542. static="false" final="false" visibility="public"
  8543. deprecated="not deprecated">
  8544. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8545. <param name="recurse" type="boolean"/>
  8546. <exception name="IOException" type="java.io.IOException"/>
  8547. </method>
  8548. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  8549. abstract="false" native="false" synchronized="false"
  8550. static="false" final="false" visibility="public"
  8551. deprecated="not deprecated">
  8552. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8553. <exception name="IOException" type="java.io.IOException"/>
  8554. </method>
  8555. <method name="getUri" return="java.net.URI"
  8556. abstract="false" native="false" synchronized="false"
  8557. static="false" final="false" visibility="public"
  8558. deprecated="not deprecated">
  8559. </method>
  8560. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  8561. abstract="false" native="false" synchronized="false"
  8562. static="false" final="false" visibility="public"
  8563. deprecated="not deprecated">
  8564. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8565. <exception name="IOException" type="java.io.IOException"/>
  8566. <doc>
  8567. <![CDATA[<p>
  8568. If <code>f</code> is a file, this method will make a single call to S3.
  8569. If <code>f</code> is a directory, this method will make a maximum of
  8570. (<i>n</i> / 1000) + 2 calls to S3, where <i>n</i> is the total number of
  8571. files and directories contained directly in <code>f</code>.
  8572. </p>]]>
  8573. </doc>
  8574. </method>
  8575. <method name="mkdirs" return="boolean"
  8576. abstract="false" native="false" synchronized="false"
  8577. static="false" final="false" visibility="public"
  8578. deprecated="not deprecated">
  8579. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8580. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8581. <exception name="IOException" type="java.io.IOException"/>
  8582. </method>
  8583. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  8584. abstract="false" native="false" synchronized="false"
  8585. static="false" final="false" visibility="public"
  8586. deprecated="not deprecated">
  8587. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8588. <param name="bufferSize" type="int"/>
  8589. <exception name="IOException" type="java.io.IOException"/>
  8590. </method>
  8591. <method name="rename" return="boolean"
  8592. abstract="false" native="false" synchronized="false"
  8593. static="false" final="false" visibility="public"
  8594. deprecated="not deprecated">
  8595. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8596. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8597. <exception name="IOException" type="java.io.IOException"/>
  8598. </method>
  8599. <method name="setWorkingDirectory"
  8600. abstract="false" native="false" synchronized="false"
  8601. static="false" final="false" visibility="public"
  8602. deprecated="not deprecated">
  8603. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  8604. <doc>
  8605. <![CDATA[Set the working directory to the given directory.]]>
  8606. </doc>
  8607. </method>
  8608. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  8609. abstract="false" native="false" synchronized="false"
  8610. static="false" final="false" visibility="public"
  8611. deprecated="not deprecated">
  8612. </method>
  8613. <field name="LOG" type="org.apache.commons.logging.Log"
  8614. transient="false" volatile="false"
  8615. static="true" final="true" visibility="public"
  8616. deprecated="not deprecated">
  8617. </field>
  8618. <doc>
  8619. <![CDATA[<p>
  8620. A {@link FileSystem} for reading and writing files stored on
  8621. <a href="http://aws.amazon.com/s3">Amazon S3</a>.
  8622. Unlike {@link org.apache.hadoop.fs.s3.S3FileSystem} this implementation
  8623. stores files on S3 in their
  8624. native form so they can be read by other S3 tools.
  8625. A note about directories. S3 of course has no "native" support for them.
  8626. The idiom we choose then is: for any directory created by this class,
  8627. we use an empty object "#{dirpath}_$folder$" as a marker.
  8628. Further, to interoperate with other S3 tools, we also accept the following:
  8629. - an object "#{dirpath}/' denoting a directory marker
  8630. - if there exists any objects with the prefix "#{dirpath}/", then the
  8631. directory is said to exist
  8632. - if both a file with the name of a directory and a marker for that
  8633. directory exists, then the *file masks the directory*, and the directory
  8634. is never returned.
  8635. </p>
  8636. @see org.apache.hadoop.fs.s3.S3FileSystem]]>
  8637. </doc>
  8638. </class>
  8639. <!-- end class org.apache.hadoop.fs.s3native.NativeS3FileSystem -->
  8640. </package>
  8641. <package name="org.apache.hadoop.fs.shell">
  8642. <!-- start class org.apache.hadoop.fs.shell.Command -->
  8643. <class name="Command" extends="org.apache.hadoop.conf.Configured"
  8644. abstract="true"
  8645. static="false" final="false" visibility="public"
  8646. deprecated="not deprecated">
  8647. <constructor name="Command" type="org.apache.hadoop.conf.Configuration"
  8648. static="false" final="false" visibility="protected"
  8649. deprecated="not deprecated">
  8650. <doc>
  8651. <![CDATA[Constructor]]>
  8652. </doc>
  8653. </constructor>
  8654. <method name="getCommandName" return="java.lang.String"
  8655. abstract="true" native="false" synchronized="false"
  8656. static="false" final="false" visibility="public"
  8657. deprecated="not deprecated">
  8658. <doc>
  8659. <![CDATA[Return the command's name excluding the leading character -]]>
  8660. </doc>
  8661. </method>
  8662. <method name="run"
  8663. abstract="true" native="false" synchronized="false"
  8664. static="false" final="false" visibility="protected"
  8665. deprecated="not deprecated">
  8666. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8667. <exception name="IOException" type="java.io.IOException"/>
  8668. <doc>
  8669. <![CDATA[Execute the command on the input path
  8670. @param path the input path
  8671. @throws IOException if any error occurs]]>
  8672. </doc>
  8673. </method>
  8674. <method name="runAll" return="int"
  8675. abstract="false" native="false" synchronized="false"
  8676. static="false" final="false" visibility="public"
  8677. deprecated="not deprecated">
  8678. <doc>
  8679. <![CDATA[For each source path, execute the command
  8680. @return 0 if it runs successfully; -1 if it fails]]>
  8681. </doc>
  8682. </method>
  8683. <field name="args" type="java.lang.String[]"
  8684. transient="false" volatile="false"
  8685. static="false" final="false" visibility="protected"
  8686. deprecated="not deprecated">
  8687. </field>
  8688. <doc>
  8689. <![CDATA[An abstract class for the execution of a file system command]]>
  8690. </doc>
  8691. </class>
  8692. <!-- end class org.apache.hadoop.fs.shell.Command -->
  8693. <!-- start class org.apache.hadoop.fs.shell.CommandFormat -->
  8694. <class name="CommandFormat" extends="java.lang.Object"
  8695. abstract="false"
  8696. static="false" final="false" visibility="public"
  8697. deprecated="not deprecated">
  8698. <constructor name="CommandFormat" type="java.lang.String, int, int, java.lang.String[]"
  8699. static="false" final="false" visibility="public"
  8700. deprecated="not deprecated">
  8701. <doc>
  8702. <![CDATA[constructor]]>
  8703. </doc>
  8704. </constructor>
  8705. <method name="parse" return="java.util.List"
  8706. abstract="false" native="false" synchronized="false"
  8707. static="false" final="false" visibility="public"
  8708. deprecated="not deprecated">
  8709. <param name="args" type="java.lang.String[]"/>
  8710. <param name="pos" type="int"/>
  8711. <doc>
  8712. <![CDATA[Parse parameters starting from the given position
  8713. @param args an array of input arguments
  8714. @param pos the position at which starts to parse
  8715. @return a list of parameters]]>
  8716. </doc>
  8717. </method>
  8718. <method name="getOpt" return="boolean"
  8719. abstract="false" native="false" synchronized="false"
  8720. static="false" final="false" visibility="public"
  8721. deprecated="not deprecated">
  8722. <param name="option" type="java.lang.String"/>
  8723. <doc>
  8724. <![CDATA[Return if the option is set or not
  8725. @param option String representation of an option
  8726. @return true is the option is set; false otherwise]]>
  8727. </doc>
  8728. </method>
  8729. <doc>
  8730. <![CDATA[Parse the args of a command and check the format of args.]]>
  8731. </doc>
  8732. </class>
  8733. <!-- end class org.apache.hadoop.fs.shell.CommandFormat -->
  8734. <!-- start class org.apache.hadoop.fs.shell.Count -->
  8735. <class name="Count" extends="org.apache.hadoop.fs.shell.Command"
  8736. abstract="false"
  8737. static="false" final="false" visibility="public"
  8738. deprecated="not deprecated">
  8739. <constructor name="Count" type="java.lang.String[], int, org.apache.hadoop.conf.Configuration"
  8740. static="false" final="false" visibility="public"
  8741. deprecated="not deprecated">
  8742. <doc>
  8743. <![CDATA[Constructor
  8744. @param cmd the count command
  8745. @param pos the starting index of the arguments]]>
  8746. </doc>
  8747. </constructor>
  8748. <method name="matches" return="boolean"
  8749. abstract="false" native="false" synchronized="false"
  8750. static="true" final="false" visibility="public"
  8751. deprecated="not deprecated">
  8752. <param name="cmd" type="java.lang.String"/>
  8753. <doc>
  8754. <![CDATA[Check if a command is the count command
  8755. @param cmd A string representation of a command starting with "-"
  8756. @return true if this is a count command; false otherwise]]>
  8757. </doc>
  8758. </method>
  8759. <method name="getCommandName" return="java.lang.String"
  8760. abstract="false" native="false" synchronized="false"
  8761. static="false" final="false" visibility="public"
  8762. deprecated="not deprecated">
  8763. </method>
  8764. <method name="run"
  8765. abstract="false" native="false" synchronized="false"
  8766. static="false" final="false" visibility="protected"
  8767. deprecated="not deprecated">
  8768. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8769. <exception name="IOException" type="java.io.IOException"/>
  8770. </method>
  8771. <field name="NAME" type="java.lang.String"
  8772. transient="false" volatile="false"
  8773. static="true" final="true" visibility="public"
  8774. deprecated="not deprecated">
  8775. </field>
  8776. <field name="USAGE" type="java.lang.String"
  8777. transient="false" volatile="false"
  8778. static="true" final="true" visibility="public"
  8779. deprecated="not deprecated">
  8780. </field>
  8781. <field name="DESCRIPTION" type="java.lang.String"
  8782. transient="false" volatile="false"
  8783. static="true" final="true" visibility="public"
  8784. deprecated="not deprecated">
  8785. </field>
  8786. <doc>
  8787. <![CDATA[Count the number of directories, files, bytes, quota, and remaining quota.]]>
  8788. </doc>
  8789. </class>
  8790. <!-- end class org.apache.hadoop.fs.shell.Count -->
  8791. </package>
  8792. <package name="org.apache.hadoop.http">
  8793. <!-- start class org.apache.hadoop.http.AdminAuthorizedServlet -->
  8794. <class name="AdminAuthorizedServlet" extends="org.mortbay.jetty.servlet.DefaultServlet"
  8795. abstract="false"
  8796. static="false" final="false" visibility="public"
  8797. deprecated="not deprecated">
  8798. <constructor name="AdminAuthorizedServlet"
  8799. static="false" final="false" visibility="public"
  8800. deprecated="not deprecated">
  8801. </constructor>
  8802. <method name="doGet"
  8803. abstract="false" native="false" synchronized="false"
  8804. static="false" final="false" visibility="protected"
  8805. deprecated="not deprecated">
  8806. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  8807. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  8808. <exception name="ServletException" type="javax.servlet.ServletException"/>
  8809. <exception name="IOException" type="java.io.IOException"/>
  8810. </method>
  8811. <doc>
  8812. <![CDATA[General servlet which is admin-authorized.]]>
  8813. </doc>
  8814. </class>
  8815. <!-- end class org.apache.hadoop.http.AdminAuthorizedServlet -->
  8816. <!-- start interface org.apache.hadoop.http.FilterContainer -->
  8817. <interface name="FilterContainer" abstract="true"
  8818. static="false" final="false" visibility="public"
  8819. deprecated="not deprecated">
  8820. <method name="addFilter"
  8821. abstract="false" native="false" synchronized="false"
  8822. static="false" final="false" visibility="public"
  8823. deprecated="not deprecated">
  8824. <param name="name" type="java.lang.String"/>
  8825. <param name="classname" type="java.lang.String"/>
  8826. <param name="parameters" type="java.util.Map"/>
  8827. <doc>
  8828. <![CDATA[Add a filter to the container.
  8829. @param name Filter name
  8830. @param classname Filter class name
  8831. @param parameters a map from parameter names to initial values]]>
  8832. </doc>
  8833. </method>
  8834. <method name="addGlobalFilter"
  8835. abstract="false" native="false" synchronized="false"
  8836. static="false" final="false" visibility="public"
  8837. deprecated="not deprecated">
  8838. <param name="name" type="java.lang.String"/>
  8839. <param name="classname" type="java.lang.String"/>
  8840. <param name="parameters" type="java.util.Map"/>
  8841. <doc>
  8842. <![CDATA[Add a global filter to the container.
  8843. @param name filter name
  8844. @param classname filter class name
  8845. @param parameters a map from parameter names to initial values]]>
  8846. </doc>
  8847. </method>
  8848. <doc>
  8849. <![CDATA[A container class for javax.servlet.Filter.]]>
  8850. </doc>
  8851. </interface>
  8852. <!-- end interface org.apache.hadoop.http.FilterContainer -->
  8853. <!-- start class org.apache.hadoop.http.FilterInitializer -->
  8854. <class name="FilterInitializer" extends="java.lang.Object"
  8855. abstract="true"
  8856. static="false" final="false" visibility="public"
  8857. deprecated="not deprecated">
  8858. <constructor name="FilterInitializer"
  8859. static="false" final="false" visibility="public"
  8860. deprecated="not deprecated">
  8861. </constructor>
  8862. <method name="initFilter"
  8863. abstract="true" native="false" synchronized="false"
  8864. static="false" final="false" visibility="public"
  8865. deprecated="not deprecated">
  8866. <param name="container" type="org.apache.hadoop.http.FilterContainer"/>
  8867. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8868. <doc>
  8869. <![CDATA[Initialize a Filter to a FilterContainer.
  8870. @param container The filter container
  8871. @param conf Configuration for run-time parameters]]>
  8872. </doc>
  8873. </method>
  8874. <doc>
  8875. <![CDATA[Initialize a javax.servlet.Filter.]]>
  8876. </doc>
  8877. </class>
  8878. <!-- end class org.apache.hadoop.http.FilterInitializer -->
  8879. <!-- start class org.apache.hadoop.http.HtmlQuoting -->
  8880. <class name="HtmlQuoting" extends="java.lang.Object"
  8881. abstract="false"
  8882. static="false" final="false" visibility="public"
  8883. deprecated="not deprecated">
  8884. <constructor name="HtmlQuoting"
  8885. static="false" final="false" visibility="public"
  8886. deprecated="not deprecated">
  8887. </constructor>
  8888. <method name="needsQuoting" return="boolean"
  8889. abstract="false" native="false" synchronized="false"
  8890. static="true" final="false" visibility="public"
  8891. deprecated="not deprecated">
  8892. <param name="data" type="byte[]"/>
  8893. <param name="off" type="int"/>
  8894. <param name="len" type="int"/>
  8895. <doc>
  8896. <![CDATA[Does the given string need to be quoted?
  8897. @param data the string to check
  8898. @param off the starting position
  8899. @param len the number of bytes to check
  8900. @return does the string contain any of the active html characters?]]>
  8901. </doc>
  8902. </method>
  8903. <method name="needsQuoting" return="boolean"
  8904. abstract="false" native="false" synchronized="false"
  8905. static="true" final="false" visibility="public"
  8906. deprecated="not deprecated">
  8907. <param name="str" type="java.lang.String"/>
  8908. <doc>
  8909. <![CDATA[Does the given string need to be quoted?
  8910. @param str the string to check
  8911. @return does the string contain any of the active html characters?]]>
  8912. </doc>
  8913. </method>
  8914. <method name="quoteHtmlChars"
  8915. abstract="false" native="false" synchronized="false"
  8916. static="true" final="false" visibility="public"
  8917. deprecated="not deprecated">
  8918. <param name="output" type="java.io.OutputStream"/>
  8919. <param name="buffer" type="byte[]"/>
  8920. <param name="off" type="int"/>
  8921. <param name="len" type="int"/>
  8922. <exception name="IOException" type="java.io.IOException"/>
  8923. <doc>
  8924. <![CDATA[Quote all of the active HTML characters in the given string as they
  8925. are added to the buffer.
  8926. @param output the stream to write the output to
  8927. @param buffer the byte array to take the characters from
  8928. @param off the index of the first byte to quote
  8929. @param len the number of bytes to quote]]>
  8930. </doc>
  8931. </method>
  8932. <method name="quoteHtmlChars" return="java.lang.String"
  8933. abstract="false" native="false" synchronized="false"
  8934. static="true" final="false" visibility="public"
  8935. deprecated="not deprecated">
  8936. <param name="item" type="java.lang.String"/>
  8937. <doc>
  8938. <![CDATA[Quote the given item to make it html-safe.
  8939. @param item the string to quote
  8940. @return the quoted string]]>
  8941. </doc>
  8942. </method>
  8943. <method name="quoteOutputStream" return="java.io.OutputStream"
  8944. abstract="false" native="false" synchronized="false"
  8945. static="true" final="false" visibility="public"
  8946. deprecated="not deprecated">
  8947. <param name="out" type="java.io.OutputStream"/>
  8948. <exception name="IOException" type="java.io.IOException"/>
  8949. <doc>
  8950. <![CDATA[Return an output stream that quotes all of the output.
  8951. @param out the stream to write the quoted output to
  8952. @return a new stream that the application show write to
  8953. @throws IOException if the underlying output fails]]>
  8954. </doc>
  8955. </method>
  8956. <method name="unquoteHtmlChars" return="java.lang.String"
  8957. abstract="false" native="false" synchronized="false"
  8958. static="true" final="false" visibility="public"
  8959. deprecated="not deprecated">
  8960. <param name="item" type="java.lang.String"/>
  8961. <doc>
  8962. <![CDATA[Remove HTML quoting from a string.
  8963. @param item the string to unquote
  8964. @return the unquoted string]]>
  8965. </doc>
  8966. </method>
  8967. <method name="main"
  8968. abstract="false" native="false" synchronized="false"
  8969. static="true" final="false" visibility="public"
  8970. deprecated="not deprecated">
  8971. <param name="args" type="java.lang.String[]"/>
  8972. <exception name="Exception" type="java.lang.Exception"/>
  8973. </method>
  8974. <doc>
  8975. <![CDATA[This class is responsible for quoting HTML characters.]]>
  8976. </doc>
  8977. </class>
  8978. <!-- end class org.apache.hadoop.http.HtmlQuoting -->
  8979. <!-- start class org.apache.hadoop.http.HttpServer -->
  8980. <class name="HttpServer" extends="java.lang.Object"
  8981. abstract="false"
  8982. static="false" final="false" visibility="public"
  8983. deprecated="not deprecated">
  8984. <implements name="org.apache.hadoop.http.FilterContainer"/>
  8985. <constructor name="HttpServer" type="java.lang.String, java.lang.String, int, boolean"
  8986. static="false" final="false" visibility="public"
  8987. deprecated="not deprecated">
  8988. <exception name="IOException" type="java.io.IOException"/>
  8989. <doc>
  8990. <![CDATA[Same as this(name, bindAddress, port, findPort, null);]]>
  8991. </doc>
  8992. </constructor>
  8993. <constructor name="HttpServer" type="java.lang.String, java.lang.String, int, boolean, org.apache.hadoop.conf.Configuration"
  8994. static="false" final="false" visibility="public"
  8995. deprecated="not deprecated">
  8996. <exception name="IOException" type="java.io.IOException"/>
  8997. </constructor>
  8998. <constructor name="HttpServer" type="java.lang.String, java.lang.String, int, boolean, org.apache.hadoop.conf.Configuration, org.mortbay.jetty.Connector"
  8999. static="false" final="false" visibility="public"
  9000. deprecated="not deprecated">
  9001. <exception name="IOException" type="java.io.IOException"/>
  9002. </constructor>
  9003. <constructor name="HttpServer" type="java.lang.String, java.lang.String, int, boolean, org.apache.hadoop.conf.Configuration, org.apache.hadoop.security.authorize.AccessControlList"
  9004. static="false" final="false" visibility="public"
  9005. deprecated="not deprecated">
  9006. <exception name="IOException" type="java.io.IOException"/>
  9007. <doc>
  9008. <![CDATA[Create a status server on the given port.
  9009. The jsp scripts are taken from src/webapps/<name>.
  9010. @param name The name of the server
  9011. @param port The port to use on the server
  9012. @param findPort whether the server should start at the given port and
  9013. increment by 1 until it finds a free port.
  9014. @param conf Configuration
  9015. @param adminsAcl {@link AccessControlList} of the admins]]>
  9016. </doc>
  9017. </constructor>
  9018. <constructor name="HttpServer" type="java.lang.String, java.lang.String, int, boolean, org.apache.hadoop.conf.Configuration, org.apache.hadoop.security.authorize.AccessControlList, org.mortbay.jetty.Connector"
  9019. static="false" final="false" visibility="public"
  9020. deprecated="not deprecated">
  9021. <exception name="IOException" type="java.io.IOException"/>
  9022. </constructor>
  9023. <method name="createBaseListener" return="org.mortbay.jetty.Connector"
  9024. abstract="false" native="false" synchronized="false"
  9025. static="false" final="false" visibility="public"
  9026. deprecated="not deprecated">
  9027. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9028. <exception name="IOException" type="java.io.IOException"/>
  9029. <doc>
  9030. <![CDATA[Create a required listener for the Jetty instance listening on the port
  9031. provided. This wrapper and all subclasses must create at least one
  9032. listener.]]>
  9033. </doc>
  9034. </method>
  9035. <method name="createDefaultChannelConnector" return="org.mortbay.jetty.Connector"
  9036. abstract="false" native="false" synchronized="false"
  9037. static="true" final="false" visibility="public"
  9038. deprecated="not deprecated">
  9039. </method>
  9040. <method name="addDefaultApps"
  9041. abstract="false" native="false" synchronized="false"
  9042. static="false" final="false" visibility="protected"
  9043. deprecated="not deprecated">
  9044. <param name="parent" type="org.mortbay.jetty.handler.ContextHandlerCollection"/>
  9045. <param name="appDir" type="java.lang.String"/>
  9046. <exception name="IOException" type="java.io.IOException"/>
  9047. <doc>
  9048. <![CDATA[Add default apps.
  9049. @param appDir The application directory
  9050. @throws IOException]]>
  9051. </doc>
  9052. </method>
  9053. <method name="addDefaultServlets"
  9054. abstract="false" native="false" synchronized="false"
  9055. static="false" final="false" visibility="protected"
  9056. deprecated="not deprecated">
  9057. <doc>
  9058. <![CDATA[Add default servlets.]]>
  9059. </doc>
  9060. </method>
  9061. <method name="addContext"
  9062. abstract="false" native="false" synchronized="false"
  9063. static="false" final="false" visibility="public"
  9064. deprecated="not deprecated">
  9065. <param name="ctxt" type="org.mortbay.jetty.servlet.Context"/>
  9066. <param name="isFiltered" type="boolean"/>
  9067. <exception name="IOException" type="java.io.IOException"/>
  9068. </method>
  9069. <method name="addContext"
  9070. abstract="false" native="false" synchronized="false"
  9071. static="false" final="false" visibility="protected"
  9072. deprecated="not deprecated">
  9073. <param name="pathSpec" type="java.lang.String"/>
  9074. <param name="dir" type="java.lang.String"/>
  9075. <param name="isFiltered" type="boolean"/>
  9076. <exception name="IOException" type="java.io.IOException"/>
  9077. <doc>
  9078. <![CDATA[Add a context
  9079. @param pathSpec The path spec for the context
  9080. @param dir The directory containing the context
  9081. @param isFiltered if true, the servlet is added to the filter path mapping
  9082. @throws IOException]]>
  9083. </doc>
  9084. </method>
  9085. <method name="setAttribute"
  9086. abstract="false" native="false" synchronized="false"
  9087. static="false" final="false" visibility="public"
  9088. deprecated="not deprecated">
  9089. <param name="name" type="java.lang.String"/>
  9090. <param name="value" type="java.lang.Object"/>
  9091. <doc>
  9092. <![CDATA[Set a value in the webapp context. These values are available to the jsp
  9093. pages as "application.getAttribute(name)".
  9094. @param name The name of the attribute
  9095. @param value The value of the attribute]]>
  9096. </doc>
  9097. </method>
  9098. <method name="setAttribute"
  9099. abstract="false" native="false" synchronized="false"
  9100. static="false" final="false" visibility="public"
  9101. deprecated="not deprecated">
  9102. <param name="context" type="org.mortbay.jetty.servlet.Context"/>
  9103. <param name="name" type="java.lang.String"/>
  9104. <param name="value" type="java.lang.Object"/>
  9105. <doc>
  9106. <![CDATA[Set a value in the webapp context. These values are available to the jsp
  9107. pages as "application.getAttribute(name)".
  9108. @param context Context to add attribute
  9109. @param name The name of the attribute
  9110. @param value The value of the attribute]]>
  9111. </doc>
  9112. </method>
  9113. <method name="addJerseyResourcePackage"
  9114. abstract="false" native="false" synchronized="false"
  9115. static="false" final="false" visibility="public"
  9116. deprecated="not deprecated">
  9117. <param name="packageName" type="java.lang.String"/>
  9118. <param name="pathSpec" type="java.lang.String"/>
  9119. <doc>
  9120. <![CDATA[Add a Jersey resource package.
  9121. @param packageName The Java package name containing the Jersey resource.
  9122. @param pathSpec The path spec for the servlet]]>
  9123. </doc>
  9124. </method>
  9125. <method name="addServlet"
  9126. abstract="false" native="false" synchronized="false"
  9127. static="false" final="false" visibility="public"
  9128. deprecated="not deprecated">
  9129. <param name="name" type="java.lang.String"/>
  9130. <param name="pathSpec" type="java.lang.String"/>
  9131. <param name="clazz" type="java.lang.Class"/>
  9132. <doc>
  9133. <![CDATA[Add a servlet in the server.
  9134. @param name The name of the servlet (can be passed as null)
  9135. @param pathSpec The path spec for the servlet
  9136. @param clazz The servlet class]]>
  9137. </doc>
  9138. </method>
  9139. <method name="addInternalServlet"
  9140. abstract="false" native="false" synchronized="false"
  9141. static="false" final="false" visibility="public"
  9142. deprecated="this is a temporary method">
  9143. <param name="name" type="java.lang.String"/>
  9144. <param name="pathSpec" type="java.lang.String"/>
  9145. <param name="clazz" type="java.lang.Class"/>
  9146. <doc>
  9147. <![CDATA[Add an internal servlet in the server.
  9148. @param name The name of the servlet (can be passed as null)
  9149. @param pathSpec The path spec for the servlet
  9150. @param clazz The servlet class
  9151. @deprecated this is a temporary method]]>
  9152. </doc>
  9153. </method>
  9154. <method name="addInternalServlet"
  9155. abstract="false" native="false" synchronized="false"
  9156. static="false" final="false" visibility="public"
  9157. deprecated="not deprecated">
  9158. <param name="name" type="java.lang.String"/>
  9159. <param name="pathSpec" type="java.lang.String"/>
  9160. <param name="clazz" type="java.lang.Class"/>
  9161. <param name="requireAuth" type="boolean"/>
  9162. <param name="useKsslForAuth" type="boolean"/>
  9163. <doc>
  9164. <![CDATA[Add an internal servlet in the server, specifying whether or not to
  9165. protect with Kerberos authentication.
  9166. Note: This method is to be used for adding servlets that facilitate
  9167. internal communication and not for user facing functionality. For
  9168. servlets added using this method, filters (except internal Kerberos
  9169. filters) are not enabled.
  9170. @param name The name of the servlet (can be passed as null)
  9171. @param pathSpec The path spec for the servlet
  9172. @param clazz The servlet class
  9173. @param requireAuth Require Kerberos authenticate to access servlet
  9174. @param useKsslForAuth true to use KSSL for auth, false to use SPNEGO]]>
  9175. </doc>
  9176. </method>
  9177. <method name="addFilter"
  9178. abstract="false" native="false" synchronized="false"
  9179. static="false" final="false" visibility="public"
  9180. deprecated="not deprecated">
  9181. <param name="name" type="java.lang.String"/>
  9182. <param name="classname" type="java.lang.String"/>
  9183. <param name="parameters" type="java.util.Map"/>
  9184. <doc>
  9185. <![CDATA[{@inheritDoc}]]>
  9186. </doc>
  9187. </method>
  9188. <method name="addGlobalFilter"
  9189. abstract="false" native="false" synchronized="false"
  9190. static="false" final="false" visibility="public"
  9191. deprecated="not deprecated">
  9192. <param name="name" type="java.lang.String"/>
  9193. <param name="classname" type="java.lang.String"/>
  9194. <param name="parameters" type="java.util.Map"/>
  9195. <doc>
  9196. <![CDATA[{@inheritDoc}]]>
  9197. </doc>
  9198. </method>
  9199. <method name="defineFilter"
  9200. abstract="false" native="false" synchronized="false"
  9201. static="false" final="false" visibility="protected"
  9202. deprecated="not deprecated">
  9203. <param name="ctx" type="org.mortbay.jetty.servlet.Context"/>
  9204. <param name="name" type="java.lang.String"/>
  9205. <param name="classname" type="java.lang.String"/>
  9206. <param name="parameters" type="java.util.Map"/>
  9207. <param name="urls" type="java.lang.String[]"/>
  9208. <doc>
  9209. <![CDATA[Define a filter for a context and set up default url mappings.]]>
  9210. </doc>
  9211. </method>
  9212. <method name="addFilterPathMapping"
  9213. abstract="false" native="false" synchronized="false"
  9214. static="false" final="false" visibility="protected"
  9215. deprecated="not deprecated">
  9216. <param name="pathSpec" type="java.lang.String"/>
  9217. <param name="webAppCtx" type="org.mortbay.jetty.servlet.Context"/>
  9218. <doc>
  9219. <![CDATA[Add the path spec to the filter path mapping.
  9220. @param pathSpec The path spec
  9221. @param webAppCtx The WebApplicationContext to add to]]>
  9222. </doc>
  9223. </method>
  9224. <method name="getAttribute" return="java.lang.Object"
  9225. abstract="false" native="false" synchronized="false"
  9226. static="false" final="false" visibility="public"
  9227. deprecated="not deprecated">
  9228. <param name="name" type="java.lang.String"/>
  9229. <doc>
  9230. <![CDATA[Get the value in the webapp context.
  9231. @param name The name of the attribute
  9232. @return The value of the attribute]]>
  9233. </doc>
  9234. </method>
  9235. <method name="getWebAppsPath" return="java.lang.String"
  9236. abstract="false" native="false" synchronized="false"
  9237. static="false" final="false" visibility="protected"
  9238. deprecated="not deprecated">
  9239. <exception name="IOException" type="java.io.IOException"/>
  9240. <doc>
  9241. <![CDATA[Get the pathname to the webapps files.
  9242. @return the pathname as a URL
  9243. @throws IOException if 'webapps' directory cannot be found on CLASSPATH.]]>
  9244. </doc>
  9245. </method>
  9246. <method name="getPort" return="int"
  9247. abstract="false" native="false" synchronized="false"
  9248. static="false" final="false" visibility="public"
  9249. deprecated="not deprecated">
  9250. <doc>
  9251. <![CDATA[Get the port that the server is on
  9252. @return the port]]>
  9253. </doc>
  9254. </method>
  9255. <method name="setThreads"
  9256. abstract="false" native="false" synchronized="false"
  9257. static="false" final="false" visibility="public"
  9258. deprecated="not deprecated">
  9259. <param name="min" type="int"/>
  9260. <param name="max" type="int"/>
  9261. <doc>
  9262. <![CDATA[Set the min, max number of worker threads (simultaneous connections).]]>
  9263. </doc>
  9264. </method>
  9265. <method name="addSslListener"
  9266. abstract="false" native="false" synchronized="false"
  9267. static="false" final="false" visibility="public"
  9268. deprecated="Use {@link #addSslListener(InetSocketAddress, Configuration, boolean)}">
  9269. <param name="addr" type="java.net.InetSocketAddress"/>
  9270. <param name="keystore" type="java.lang.String"/>
  9271. <param name="storPass" type="java.lang.String"/>
  9272. <param name="keyPass" type="java.lang.String"/>
  9273. <exception name="IOException" type="java.io.IOException"/>
  9274. <doc>
  9275. <![CDATA[Configure an ssl listener on the server.
  9276. @param addr address to listen on
  9277. @param keystore location of the keystore
  9278. @param storPass password for the keystore
  9279. @param keyPass password for the key
  9280. @deprecated Use {@link #addSslListener(InetSocketAddress, Configuration, boolean)}]]>
  9281. </doc>
  9282. </method>
  9283. <method name="addSslListener"
  9284. abstract="false" native="false" synchronized="false"
  9285. static="false" final="false" visibility="public"
  9286. deprecated="not deprecated">
  9287. <param name="addr" type="java.net.InetSocketAddress"/>
  9288. <param name="sslConf" type="org.apache.hadoop.conf.Configuration"/>
  9289. <param name="needClientAuth" type="boolean"/>
  9290. <exception name="IOException" type="java.io.IOException"/>
  9291. <doc>
  9292. <![CDATA[Configure an ssl listener on the server.
  9293. @param addr address to listen on
  9294. @param sslConf conf to retrieve ssl options
  9295. @param needClientAuth whether client authentication is required]]>
  9296. </doc>
  9297. </method>
  9298. <method name="addSslListener"
  9299. abstract="false" native="false" synchronized="false"
  9300. static="false" final="false" visibility="public"
  9301. deprecated="not deprecated">
  9302. <param name="addr" type="java.net.InetSocketAddress"/>
  9303. <param name="sslConf" type="org.apache.hadoop.conf.Configuration"/>
  9304. <param name="needCertsAuth" type="boolean"/>
  9305. <param name="needKrbAuth" type="boolean"/>
  9306. <exception name="IOException" type="java.io.IOException"/>
  9307. <doc>
  9308. <![CDATA[Configure an ssl listener on the server.
  9309. @param addr address to listen on
  9310. @param sslConf conf to retrieve ssl options
  9311. @param needCertsAuth whether x509 certificate authentication is required
  9312. @param needKrbAuth whether to allow kerberos auth]]>
  9313. </doc>
  9314. </method>
  9315. <method name="start"
  9316. abstract="false" native="false" synchronized="false"
  9317. static="false" final="false" visibility="public"
  9318. deprecated="not deprecated">
  9319. <exception name="IOException" type="java.io.IOException"/>
  9320. <doc>
  9321. <![CDATA[Start the server. Does not wait for the server to start.]]>
  9322. </doc>
  9323. </method>
  9324. <method name="stop"
  9325. abstract="false" native="false" synchronized="false"
  9326. static="false" final="false" visibility="public"
  9327. deprecated="not deprecated">
  9328. <exception name="Exception" type="java.lang.Exception"/>
  9329. <doc>
  9330. <![CDATA[stop the server]]>
  9331. </doc>
  9332. </method>
  9333. <method name="join"
  9334. abstract="false" native="false" synchronized="false"
  9335. static="false" final="false" visibility="public"
  9336. deprecated="not deprecated">
  9337. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  9338. </method>
  9339. <method name="isInstrumentationAccessAllowed" return="boolean"
  9340. abstract="false" native="false" synchronized="false"
  9341. static="true" final="false" visibility="public"
  9342. deprecated="not deprecated">
  9343. <param name="servletContext" type="javax.servlet.ServletContext"/>
  9344. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  9345. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  9346. <exception name="IOException" type="java.io.IOException"/>
  9347. <doc>
  9348. <![CDATA[Checks the user has privileges to access to instrumentation servlets.
  9349. <p/>
  9350. If <code>hadoop.security.instrumentation.requires.admin</code> is set to
  9351. FALSE (default value) it returns always returns TRUE.
  9352. <p/>
  9353. If <code>hadoop.security.instrumentation.requires.admin</code> is set to
  9354. TRUE it will check that if the current user is in the admin ACLS. If the
  9355. user is in the admin ACLs it returns TRUE, otherwise it returns FALSE.
  9356. @param servletContext the servlet context.
  9357. @param request the servlet request.
  9358. @param response the servlet response.
  9359. @return TRUE/FALSE based on the logic decribed above.]]>
  9360. </doc>
  9361. </method>
  9362. <method name="hasAdministratorAccess" return="boolean"
  9363. abstract="false" native="false" synchronized="false"
  9364. static="true" final="false" visibility="public"
  9365. deprecated="not deprecated">
  9366. <param name="servletContext" type="javax.servlet.ServletContext"/>
  9367. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  9368. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  9369. <exception name="IOException" type="java.io.IOException"/>
  9370. <doc>
  9371. <![CDATA[Does the user sending the HttpServletRequest has the administrator ACLs? If
  9372. it isn't the case, response will be modified to send an error to the user.
  9373. @param servletContext
  9374. @param request
  9375. @param response
  9376. @return true if admin-authorized, false otherwise
  9377. @throws IOException]]>
  9378. </doc>
  9379. </method>
  9380. <field name="LOG" type="org.apache.commons.logging.Log"
  9381. transient="false" volatile="false"
  9382. static="true" final="true" visibility="public"
  9383. deprecated="not deprecated">
  9384. </field>
  9385. <field name="CONF_CONTEXT_ATTRIBUTE" type="java.lang.String"
  9386. transient="false" volatile="false"
  9387. static="true" final="true" visibility="public"
  9388. deprecated="not deprecated">
  9389. </field>
  9390. <field name="SPNEGO_FILTER" type="java.lang.String"
  9391. transient="false" volatile="false"
  9392. static="true" final="true" visibility="public"
  9393. deprecated="not deprecated">
  9394. </field>
  9395. <field name="KRB5_FILTER" type="java.lang.String"
  9396. transient="false" volatile="false"
  9397. static="true" final="true" visibility="public"
  9398. deprecated="not deprecated">
  9399. </field>
  9400. <field name="webServer" type="org.mortbay.jetty.Server"
  9401. transient="false" volatile="false"
  9402. static="false" final="true" visibility="protected"
  9403. deprecated="not deprecated">
  9404. </field>
  9405. <field name="listener" type="org.mortbay.jetty.Connector"
  9406. transient="false" volatile="false"
  9407. static="false" final="true" visibility="protected"
  9408. deprecated="not deprecated">
  9409. </field>
  9410. <field name="webAppContext" type="org.mortbay.jetty.webapp.WebAppContext"
  9411. transient="false" volatile="false"
  9412. static="false" final="true" visibility="protected"
  9413. deprecated="not deprecated">
  9414. </field>
  9415. <field name="findPort" type="boolean"
  9416. transient="false" volatile="false"
  9417. static="false" final="true" visibility="protected"
  9418. deprecated="not deprecated">
  9419. </field>
  9420. <field name="defaultContexts" type="java.util.Map"
  9421. transient="false" volatile="false"
  9422. static="false" final="true" visibility="protected"
  9423. deprecated="not deprecated">
  9424. </field>
  9425. <field name="filterNames" type="java.util.List"
  9426. transient="false" volatile="false"
  9427. static="false" final="true" visibility="protected"
  9428. deprecated="not deprecated">
  9429. </field>
  9430. <doc>
  9431. <![CDATA[Create a Jetty embedded server to answer http requests. The primary goal
  9432. is to serve up status information for the server.
  9433. There are three contexts:
  9434. "/logs/" -> points to the log directory
  9435. "/static/" -> points to common static files (src/webapps/static)
  9436. "/" -> the jsp server code from (src/webapps/<name>)]]>
  9437. </doc>
  9438. </class>
  9439. <!-- end class org.apache.hadoop.http.HttpServer -->
  9440. <!-- start class org.apache.hadoop.http.HttpServer.QuotingInputFilter -->
  9441. <class name="HttpServer.QuotingInputFilter" extends="java.lang.Object"
  9442. abstract="false"
  9443. static="true" final="false" visibility="public"
  9444. deprecated="not deprecated">
  9445. <implements name="javax.servlet.Filter"/>
  9446. <constructor name="HttpServer.QuotingInputFilter"
  9447. static="false" final="false" visibility="public"
  9448. deprecated="not deprecated">
  9449. </constructor>
  9450. <method name="init"
  9451. abstract="false" native="false" synchronized="false"
  9452. static="false" final="false" visibility="public"
  9453. deprecated="not deprecated">
  9454. <param name="config" type="javax.servlet.FilterConfig"/>
  9455. <exception name="ServletException" type="javax.servlet.ServletException"/>
  9456. </method>
  9457. <method name="destroy"
  9458. abstract="false" native="false" synchronized="false"
  9459. static="false" final="false" visibility="public"
  9460. deprecated="not deprecated">
  9461. </method>
  9462. <method name="doFilter"
  9463. abstract="false" native="false" synchronized="false"
  9464. static="false" final="false" visibility="public"
  9465. deprecated="not deprecated">
  9466. <param name="request" type="javax.servlet.ServletRequest"/>
  9467. <param name="response" type="javax.servlet.ServletResponse"/>
  9468. <param name="chain" type="javax.servlet.FilterChain"/>
  9469. <exception name="IOException" type="java.io.IOException"/>
  9470. <exception name="ServletException" type="javax.servlet.ServletException"/>
  9471. </method>
  9472. <doc>
  9473. <![CDATA[A Servlet input filter that quotes all HTML active characters in the
  9474. parameter names and values. The goal is to quote the characters to make
  9475. all of the servlets resistant to cross-site scripting attacks.]]>
  9476. </doc>
  9477. </class>
  9478. <!-- end class org.apache.hadoop.http.HttpServer.QuotingInputFilter -->
  9479. <!-- start class org.apache.hadoop.http.HttpServer.QuotingInputFilter.RequestQuoter -->
  9480. <class name="HttpServer.QuotingInputFilter.RequestQuoter" extends="javax.servlet.http.HttpServletRequestWrapper"
  9481. abstract="false"
  9482. static="true" final="false" visibility="public"
  9483. deprecated="not deprecated">
  9484. <constructor name="HttpServer.QuotingInputFilter.RequestQuoter" type="javax.servlet.http.HttpServletRequest"
  9485. static="false" final="false" visibility="public"
  9486. deprecated="not deprecated">
  9487. </constructor>
  9488. <method name="getParameterNames" return="java.util.Enumeration"
  9489. abstract="false" native="false" synchronized="false"
  9490. static="false" final="false" visibility="public"
  9491. deprecated="not deprecated">
  9492. <doc>
  9493. <![CDATA[Return the set of parameter names, quoting each name.]]>
  9494. </doc>
  9495. </method>
  9496. <method name="getParameter" return="java.lang.String"
  9497. abstract="false" native="false" synchronized="false"
  9498. static="false" final="false" visibility="public"
  9499. deprecated="not deprecated">
  9500. <param name="name" type="java.lang.String"/>
  9501. <doc>
  9502. <![CDATA[Unquote the name and quote the value.]]>
  9503. </doc>
  9504. </method>
  9505. <method name="getParameterValues" return="java.lang.String[]"
  9506. abstract="false" native="false" synchronized="false"
  9507. static="false" final="false" visibility="public"
  9508. deprecated="not deprecated">
  9509. <param name="name" type="java.lang.String"/>
  9510. </method>
  9511. <method name="getParameterMap" return="java.util.Map"
  9512. abstract="false" native="false" synchronized="false"
  9513. static="false" final="false" visibility="public"
  9514. deprecated="not deprecated">
  9515. </method>
  9516. <method name="getRequestURL" return="java.lang.StringBuffer"
  9517. abstract="false" native="false" synchronized="false"
  9518. static="false" final="false" visibility="public"
  9519. deprecated="not deprecated">
  9520. <doc>
  9521. <![CDATA[Quote the url so that users specifying the HOST HTTP header
  9522. can't inject attacks.]]>
  9523. </doc>
  9524. </method>
  9525. <method name="getServerName" return="java.lang.String"
  9526. abstract="false" native="false" synchronized="false"
  9527. static="false" final="false" visibility="public"
  9528. deprecated="not deprecated">
  9529. <doc>
  9530. <![CDATA[Quote the server name so that users specifying the HOST HTTP header
  9531. can't inject attacks.]]>
  9532. </doc>
  9533. </method>
  9534. </class>
  9535. <!-- end class org.apache.hadoop.http.HttpServer.QuotingInputFilter.RequestQuoter -->
  9536. <!-- start class org.apache.hadoop.http.HttpServer.StackServlet -->
  9537. <class name="HttpServer.StackServlet" extends="javax.servlet.http.HttpServlet"
  9538. abstract="false"
  9539. static="true" final="false" visibility="public"
  9540. deprecated="not deprecated">
  9541. <constructor name="HttpServer.StackServlet"
  9542. static="false" final="false" visibility="public"
  9543. deprecated="not deprecated">
  9544. </constructor>
  9545. <method name="doGet"
  9546. abstract="false" native="false" synchronized="false"
  9547. static="false" final="false" visibility="public"
  9548. deprecated="not deprecated">
  9549. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  9550. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  9551. <exception name="ServletException" type="javax.servlet.ServletException"/>
  9552. <exception name="IOException" type="java.io.IOException"/>
  9553. </method>
  9554. <doc>
  9555. <![CDATA[A very simple servlet to serve up a text representation of the current
  9556. stack traces. It both returns the stacks to the caller and logs them.
  9557. Currently the stack traces are done sequentially rather than exactly the
  9558. same data.]]>
  9559. </doc>
  9560. </class>
  9561. <!-- end class org.apache.hadoop.http.HttpServer.StackServlet -->
  9562. </package>
  9563. <package name="org.apache.hadoop.http.lib">
  9564. <!-- start class org.apache.hadoop.http.lib.StaticUserWebFilter -->
  9565. <class name="StaticUserWebFilter" extends="org.apache.hadoop.http.FilterInitializer"
  9566. abstract="false"
  9567. static="false" final="false" visibility="public"
  9568. deprecated="not deprecated">
  9569. <constructor name="StaticUserWebFilter"
  9570. static="false" final="false" visibility="public"
  9571. deprecated="not deprecated">
  9572. </constructor>
  9573. <method name="initFilter"
  9574. abstract="false" native="false" synchronized="false"
  9575. static="false" final="false" visibility="public"
  9576. deprecated="not deprecated">
  9577. <param name="container" type="org.apache.hadoop.http.FilterContainer"/>
  9578. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9579. </method>
  9580. <doc>
  9581. <![CDATA[Provides a servlet filter that pretends to authenticate a fake user (Dr.Who)
  9582. so that the web UI is usable for a secure cluster without authentication.]]>
  9583. </doc>
  9584. </class>
  9585. <!-- end class org.apache.hadoop.http.lib.StaticUserWebFilter -->
  9586. <!-- start class org.apache.hadoop.http.lib.StaticUserWebFilter.StaticUserFilter -->
  9587. <class name="StaticUserWebFilter.StaticUserFilter" extends="java.lang.Object"
  9588. abstract="false"
  9589. static="true" final="false" visibility="public"
  9590. deprecated="not deprecated">
  9591. <implements name="javax.servlet.Filter"/>
  9592. <constructor name="StaticUserWebFilter.StaticUserFilter"
  9593. static="false" final="false" visibility="public"
  9594. deprecated="not deprecated">
  9595. </constructor>
  9596. <method name="destroy"
  9597. abstract="false" native="false" synchronized="false"
  9598. static="false" final="false" visibility="public"
  9599. deprecated="not deprecated">
  9600. </method>
  9601. <method name="doFilter"
  9602. abstract="false" native="false" synchronized="false"
  9603. static="false" final="false" visibility="public"
  9604. deprecated="not deprecated">
  9605. <param name="request" type="javax.servlet.ServletRequest"/>
  9606. <param name="response" type="javax.servlet.ServletResponse"/>
  9607. <param name="chain" type="javax.servlet.FilterChain"/>
  9608. <exception name="IOException" type="java.io.IOException"/>
  9609. <exception name="ServletException" type="javax.servlet.ServletException"/>
  9610. </method>
  9611. <method name="init"
  9612. abstract="false" native="false" synchronized="false"
  9613. static="false" final="false" visibility="public"
  9614. deprecated="not deprecated">
  9615. <param name="conf" type="javax.servlet.FilterConfig"/>
  9616. <exception name="ServletException" type="javax.servlet.ServletException"/>
  9617. </method>
  9618. </class>
  9619. <!-- end class org.apache.hadoop.http.lib.StaticUserWebFilter.StaticUserFilter -->
  9620. </package>
  9621. <package name="org.apache.hadoop.io">
  9622. <!-- start class org.apache.hadoop.io.AbstractMapWritable -->
  9623. <class name="AbstractMapWritable" extends="java.lang.Object"
  9624. abstract="true"
  9625. static="false" final="false" visibility="public"
  9626. deprecated="not deprecated">
  9627. <implements name="org.apache.hadoop.io.Writable"/>
  9628. <implements name="org.apache.hadoop.conf.Configurable"/>
  9629. <constructor name="AbstractMapWritable"
  9630. static="false" final="false" visibility="protected"
  9631. deprecated="not deprecated">
  9632. <doc>
  9633. <![CDATA[constructor.]]>
  9634. </doc>
  9635. </constructor>
  9636. <method name="addToMap"
  9637. abstract="false" native="false" synchronized="true"
  9638. static="false" final="false" visibility="protected"
  9639. deprecated="not deprecated">
  9640. <param name="clazz" type="java.lang.Class"/>
  9641. <doc>
  9642. <![CDATA[Add a Class to the maps if it is not already present.]]>
  9643. </doc>
  9644. </method>
  9645. <method name="getClass" return="java.lang.Class"
  9646. abstract="false" native="false" synchronized="false"
  9647. static="false" final="false" visibility="protected"
  9648. deprecated="not deprecated">
  9649. <param name="id" type="byte"/>
  9650. <doc>
  9651. <![CDATA[@return the Class class for the specified id]]>
  9652. </doc>
  9653. </method>
  9654. <method name="getId" return="byte"
  9655. abstract="false" native="false" synchronized="false"
  9656. static="false" final="false" visibility="protected"
  9657. deprecated="not deprecated">
  9658. <param name="clazz" type="java.lang.Class"/>
  9659. <doc>
  9660. <![CDATA[@return the id for the specified Class]]>
  9661. </doc>
  9662. </method>
  9663. <method name="copy"
  9664. abstract="false" native="false" synchronized="true"
  9665. static="false" final="false" visibility="protected"
  9666. deprecated="not deprecated">
  9667. <param name="other" type="org.apache.hadoop.io.Writable"/>
  9668. <doc>
  9669. <![CDATA[Used by child copy constructors.]]>
  9670. </doc>
  9671. </method>
  9672. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  9673. abstract="false" native="false" synchronized="false"
  9674. static="false" final="false" visibility="public"
  9675. deprecated="not deprecated">
  9676. <doc>
  9677. <![CDATA[@return the conf]]>
  9678. </doc>
  9679. </method>
  9680. <method name="setConf"
  9681. abstract="false" native="false" synchronized="false"
  9682. static="false" final="false" visibility="public"
  9683. deprecated="not deprecated">
  9684. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9685. <doc>
  9686. <![CDATA[@param conf the conf to set]]>
  9687. </doc>
  9688. </method>
  9689. <method name="write"
  9690. abstract="false" native="false" synchronized="false"
  9691. static="false" final="false" visibility="public"
  9692. deprecated="not deprecated">
  9693. <param name="out" type="java.io.DataOutput"/>
  9694. <exception name="IOException" type="java.io.IOException"/>
  9695. <doc>
  9696. <![CDATA[{@inheritDoc}]]>
  9697. </doc>
  9698. </method>
  9699. <method name="readFields"
  9700. abstract="false" native="false" synchronized="false"
  9701. static="false" final="false" visibility="public"
  9702. deprecated="not deprecated">
  9703. <param name="in" type="java.io.DataInput"/>
  9704. <exception name="IOException" type="java.io.IOException"/>
  9705. <doc>
  9706. <![CDATA[{@inheritDoc}]]>
  9707. </doc>
  9708. </method>
  9709. <doc>
  9710. <![CDATA[Abstract base class for MapWritable and SortedMapWritable
  9711. Unlike org.apache.nutch.crawl.MapWritable, this class allows creation of
  9712. MapWritable&lt;Writable, MapWritable&gt; so the CLASS_TO_ID and ID_TO_CLASS
  9713. maps travel with the class instead of being static.
  9714. Class ids range from 1 to 127 so there can be at most 127 distinct classes
  9715. in any specific map instance.]]>
  9716. </doc>
  9717. </class>
  9718. <!-- end class org.apache.hadoop.io.AbstractMapWritable -->
  9719. <!-- start class org.apache.hadoop.io.ArrayFile -->
  9720. <class name="ArrayFile" extends="org.apache.hadoop.io.MapFile"
  9721. abstract="false"
  9722. static="false" final="false" visibility="public"
  9723. deprecated="not deprecated">
  9724. <constructor name="ArrayFile"
  9725. static="false" final="false" visibility="protected"
  9726. deprecated="not deprecated">
  9727. </constructor>
  9728. <doc>
  9729. <![CDATA[A dense file-based mapping from integers to values.]]>
  9730. </doc>
  9731. </class>
  9732. <!-- end class org.apache.hadoop.io.ArrayFile -->
  9733. <!-- start class org.apache.hadoop.io.ArrayFile.Reader -->
  9734. <class name="ArrayFile.Reader" extends="org.apache.hadoop.io.MapFile.Reader"
  9735. abstract="false"
  9736. static="true" final="false" visibility="public"
  9737. deprecated="not deprecated">
  9738. <constructor name="ArrayFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  9739. static="false" final="false" visibility="public"
  9740. deprecated="not deprecated">
  9741. <exception name="IOException" type="java.io.IOException"/>
  9742. <doc>
  9743. <![CDATA[Construct an array reader for the named file.]]>
  9744. </doc>
  9745. </constructor>
  9746. <method name="seek"
  9747. abstract="false" native="false" synchronized="true"
  9748. static="false" final="false" visibility="public"
  9749. deprecated="not deprecated">
  9750. <param name="n" type="long"/>
  9751. <exception name="IOException" type="java.io.IOException"/>
  9752. <doc>
  9753. <![CDATA[Positions the reader before its <code>n</code>th value.]]>
  9754. </doc>
  9755. </method>
  9756. <method name="next" return="org.apache.hadoop.io.Writable"
  9757. abstract="false" native="false" synchronized="true"
  9758. static="false" final="false" visibility="public"
  9759. deprecated="not deprecated">
  9760. <param name="value" type="org.apache.hadoop.io.Writable"/>
  9761. <exception name="IOException" type="java.io.IOException"/>
  9762. <doc>
  9763. <![CDATA[Read and return the next value in the file.]]>
  9764. </doc>
  9765. </method>
  9766. <method name="key" return="long"
  9767. abstract="false" native="false" synchronized="true"
  9768. static="false" final="false" visibility="public"
  9769. deprecated="not deprecated">
  9770. <exception name="IOException" type="java.io.IOException"/>
  9771. <doc>
  9772. <![CDATA[Returns the key associated with the most recent call to {@link
  9773. #seek(long)}, {@link #next(Writable)}, or {@link
  9774. #get(long,Writable)}.]]>
  9775. </doc>
  9776. </method>
  9777. <method name="get" return="org.apache.hadoop.io.Writable"
  9778. abstract="false" native="false" synchronized="true"
  9779. static="false" final="false" visibility="public"
  9780. deprecated="not deprecated">
  9781. <param name="n" type="long"/>
  9782. <param name="value" type="org.apache.hadoop.io.Writable"/>
  9783. <exception name="IOException" type="java.io.IOException"/>
  9784. <doc>
  9785. <![CDATA[Return the <code>n</code>th value in the file.]]>
  9786. </doc>
  9787. </method>
  9788. <doc>
  9789. <![CDATA[Provide access to an existing array file.]]>
  9790. </doc>
  9791. </class>
  9792. <!-- end class org.apache.hadoop.io.ArrayFile.Reader -->
  9793. <!-- start class org.apache.hadoop.io.ArrayFile.Writer -->
  9794. <class name="ArrayFile.Writer" extends="org.apache.hadoop.io.MapFile.Writer"
  9795. abstract="false"
  9796. static="true" final="false" visibility="public"
  9797. deprecated="not deprecated">
  9798. <constructor name="ArrayFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class"
  9799. static="false" final="false" visibility="public"
  9800. deprecated="not deprecated">
  9801. <exception name="IOException" type="java.io.IOException"/>
  9802. <doc>
  9803. <![CDATA[Create the named file for values of the named class.]]>
  9804. </doc>
  9805. </constructor>
  9806. <constructor name="ArrayFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType, org.apache.hadoop.util.Progressable"
  9807. static="false" final="false" visibility="public"
  9808. deprecated="not deprecated">
  9809. <exception name="IOException" type="java.io.IOException"/>
  9810. <doc>
  9811. <![CDATA[Create the named file for values of the named class.]]>
  9812. </doc>
  9813. </constructor>
  9814. <method name="append"
  9815. abstract="false" native="false" synchronized="true"
  9816. static="false" final="false" visibility="public"
  9817. deprecated="not deprecated">
  9818. <param name="value" type="org.apache.hadoop.io.Writable"/>
  9819. <exception name="IOException" type="java.io.IOException"/>
  9820. <doc>
  9821. <![CDATA[Append a value to the file.]]>
  9822. </doc>
  9823. </method>
  9824. <doc>
  9825. <![CDATA[Write a new array file.]]>
  9826. </doc>
  9827. </class>
  9828. <!-- end class org.apache.hadoop.io.ArrayFile.Writer -->
  9829. <!-- start class org.apache.hadoop.io.ArrayWritable -->
  9830. <class name="ArrayWritable" extends="java.lang.Object"
  9831. abstract="false"
  9832. static="false" final="false" visibility="public"
  9833. deprecated="not deprecated">
  9834. <implements name="org.apache.hadoop.io.Writable"/>
  9835. <constructor name="ArrayWritable" type="java.lang.Class"
  9836. static="false" final="false" visibility="public"
  9837. deprecated="not deprecated">
  9838. </constructor>
  9839. <constructor name="ArrayWritable" type="java.lang.Class, org.apache.hadoop.io.Writable[]"
  9840. static="false" final="false" visibility="public"
  9841. deprecated="not deprecated">
  9842. </constructor>
  9843. <constructor name="ArrayWritable" type="java.lang.String[]"
  9844. static="false" final="false" visibility="public"
  9845. deprecated="not deprecated">
  9846. </constructor>
  9847. <method name="getValueClass" return="java.lang.Class"
  9848. abstract="false" native="false" synchronized="false"
  9849. static="false" final="false" visibility="public"
  9850. deprecated="not deprecated">
  9851. </method>
  9852. <method name="toStrings" return="java.lang.String[]"
  9853. abstract="false" native="false" synchronized="false"
  9854. static="false" final="false" visibility="public"
  9855. deprecated="not deprecated">
  9856. </method>
  9857. <method name="toArray" return="java.lang.Object"
  9858. abstract="false" native="false" synchronized="false"
  9859. static="false" final="false" visibility="public"
  9860. deprecated="not deprecated">
  9861. </method>
  9862. <method name="set"
  9863. abstract="false" native="false" synchronized="false"
  9864. static="false" final="false" visibility="public"
  9865. deprecated="not deprecated">
  9866. <param name="values" type="org.apache.hadoop.io.Writable[]"/>
  9867. </method>
  9868. <method name="get" return="org.apache.hadoop.io.Writable[]"
  9869. abstract="false" native="false" synchronized="false"
  9870. static="false" final="false" visibility="public"
  9871. deprecated="not deprecated">
  9872. </method>
  9873. <method name="readFields"
  9874. abstract="false" native="false" synchronized="false"
  9875. static="false" final="false" visibility="public"
  9876. deprecated="not deprecated">
  9877. <param name="in" type="java.io.DataInput"/>
  9878. <exception name="IOException" type="java.io.IOException"/>
  9879. </method>
  9880. <method name="write"
  9881. abstract="false" native="false" synchronized="false"
  9882. static="false" final="false" visibility="public"
  9883. deprecated="not deprecated">
  9884. <param name="out" type="java.io.DataOutput"/>
  9885. <exception name="IOException" type="java.io.IOException"/>
  9886. </method>
  9887. <doc>
  9888. <![CDATA[A Writable for arrays containing instances of a class. The elements of this
  9889. writable must all be instances of the same class. If this writable will be
  9890. the input for a Reducer, you will need to create a subclass that sets the
  9891. value to be of the proper type.
  9892. For example:
  9893. <code>
  9894. public class IntArrayWritable extends ArrayWritable {
  9895. public IntArrayWritable() {
  9896. super(IntWritable.class);
  9897. }
  9898. }
  9899. </code>]]>
  9900. </doc>
  9901. </class>
  9902. <!-- end class org.apache.hadoop.io.ArrayWritable -->
  9903. <!-- start class org.apache.hadoop.io.BinaryComparable -->
  9904. <class name="BinaryComparable" extends="java.lang.Object"
  9905. abstract="true"
  9906. static="false" final="false" visibility="public"
  9907. deprecated="not deprecated">
  9908. <implements name="java.lang.Comparable"/>
  9909. <constructor name="BinaryComparable"
  9910. static="false" final="false" visibility="public"
  9911. deprecated="not deprecated">
  9912. </constructor>
  9913. <method name="getLength" return="int"
  9914. abstract="true" native="false" synchronized="false"
  9915. static="false" final="false" visibility="public"
  9916. deprecated="not deprecated">
  9917. <doc>
  9918. <![CDATA[Return n st bytes 0..n-1 from {#getBytes()} are valid.]]>
  9919. </doc>
  9920. </method>
  9921. <method name="getBytes" return="byte[]"
  9922. abstract="true" native="false" synchronized="false"
  9923. static="false" final="false" visibility="public"
  9924. deprecated="not deprecated">
  9925. <doc>
  9926. <![CDATA[Return representative byte array for this instance.]]>
  9927. </doc>
  9928. </method>
  9929. <method name="compareTo" return="int"
  9930. abstract="false" native="false" synchronized="false"
  9931. static="false" final="false" visibility="public"
  9932. deprecated="not deprecated">
  9933. <param name="other" type="org.apache.hadoop.io.BinaryComparable"/>
  9934. <doc>
  9935. <![CDATA[Compare bytes from {#getBytes()}.
  9936. @see org.apache.hadoop.io.WritableComparator#compareBytes(byte[],int,int,byte[],int,int)]]>
  9937. </doc>
  9938. </method>
  9939. <method name="compareTo" return="int"
  9940. abstract="false" native="false" synchronized="false"
  9941. static="false" final="false" visibility="public"
  9942. deprecated="not deprecated">
  9943. <param name="other" type="byte[]"/>
  9944. <param name="off" type="int"/>
  9945. <param name="len" type="int"/>
  9946. <doc>
  9947. <![CDATA[Compare bytes from {#getBytes()} to those provided.]]>
  9948. </doc>
  9949. </method>
  9950. <method name="equals" return="boolean"
  9951. abstract="false" native="false" synchronized="false"
  9952. static="false" final="false" visibility="public"
  9953. deprecated="not deprecated">
  9954. <param name="other" type="java.lang.Object"/>
  9955. <doc>
  9956. <![CDATA[Return true if bytes from {#getBytes()} match.]]>
  9957. </doc>
  9958. </method>
  9959. <method name="hashCode" return="int"
  9960. abstract="false" native="false" synchronized="false"
  9961. static="false" final="false" visibility="public"
  9962. deprecated="not deprecated">
  9963. <doc>
  9964. <![CDATA[Return a hash of the bytes returned from {#getBytes()}.
  9965. @see org.apache.hadoop.io.WritableComparator#hashBytes(byte[],int)]]>
  9966. </doc>
  9967. </method>
  9968. <doc>
  9969. <![CDATA[Interface supported by {@link org.apache.hadoop.io.WritableComparable}
  9970. types supporting ordering/permutation by a representative set of bytes.]]>
  9971. </doc>
  9972. </class>
  9973. <!-- end class org.apache.hadoop.io.BinaryComparable -->
  9974. <!-- start class org.apache.hadoop.io.BloomMapFile -->
  9975. <class name="BloomMapFile" extends="java.lang.Object"
  9976. abstract="false"
  9977. static="false" final="false" visibility="public"
  9978. deprecated="not deprecated">
  9979. <constructor name="BloomMapFile"
  9980. static="false" final="false" visibility="public"
  9981. deprecated="not deprecated">
  9982. </constructor>
  9983. <method name="delete"
  9984. abstract="false" native="false" synchronized="false"
  9985. static="true" final="false" visibility="public"
  9986. deprecated="not deprecated">
  9987. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  9988. <param name="name" type="java.lang.String"/>
  9989. <exception name="IOException" type="java.io.IOException"/>
  9990. </method>
  9991. <field name="BLOOM_FILE_NAME" type="java.lang.String"
  9992. transient="false" volatile="false"
  9993. static="true" final="true" visibility="public"
  9994. deprecated="not deprecated">
  9995. </field>
  9996. <field name="HASH_COUNT" type="int"
  9997. transient="false" volatile="false"
  9998. static="true" final="true" visibility="public"
  9999. deprecated="not deprecated">
  10000. </field>
  10001. <doc>
  10002. <![CDATA[This class extends {@link MapFile} and provides very much the same
  10003. functionality. However, it uses dynamic Bloom filters to provide
  10004. quick membership test for keys, and it offers a fast version of
  10005. {@link Reader#get(WritableComparable, Writable)} operation, especially in
  10006. case of sparsely populated MapFile-s.]]>
  10007. </doc>
  10008. </class>
  10009. <!-- end class org.apache.hadoop.io.BloomMapFile -->
  10010. <!-- start class org.apache.hadoop.io.BloomMapFile.Reader -->
  10011. <class name="BloomMapFile.Reader" extends="org.apache.hadoop.io.MapFile.Reader"
  10012. abstract="false"
  10013. static="true" final="false" visibility="public"
  10014. deprecated="not deprecated">
  10015. <constructor name="BloomMapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  10016. static="false" final="false" visibility="public"
  10017. deprecated="not deprecated">
  10018. <exception name="IOException" type="java.io.IOException"/>
  10019. </constructor>
  10020. <constructor name="BloomMapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration, boolean"
  10021. static="false" final="false" visibility="public"
  10022. deprecated="not deprecated">
  10023. <exception name="IOException" type="java.io.IOException"/>
  10024. </constructor>
  10025. <constructor name="BloomMapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration"
  10026. static="false" final="false" visibility="public"
  10027. deprecated="not deprecated">
  10028. <exception name="IOException" type="java.io.IOException"/>
  10029. </constructor>
  10030. <method name="probablyHasKey" return="boolean"
  10031. abstract="false" native="false" synchronized="false"
  10032. static="false" final="false" visibility="public"
  10033. deprecated="not deprecated">
  10034. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  10035. <exception name="IOException" type="java.io.IOException"/>
  10036. <doc>
  10037. <![CDATA[Checks if this MapFile has the indicated key. The membership test is
  10038. performed using a Bloom filter, so the result has always non-zero
  10039. probability of false positives.
  10040. @param key key to check
  10041. @return false iff key doesn't exist, true if key probably exists.
  10042. @throws IOException]]>
  10043. </doc>
  10044. </method>
  10045. <method name="get" return="org.apache.hadoop.io.Writable"
  10046. abstract="false" native="false" synchronized="true"
  10047. static="false" final="false" visibility="public"
  10048. deprecated="not deprecated">
  10049. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  10050. <param name="val" type="org.apache.hadoop.io.Writable"/>
  10051. <exception name="IOException" type="java.io.IOException"/>
  10052. <doc>
  10053. <![CDATA[Fast version of the
  10054. {@link MapFile.Reader#get(WritableComparable, Writable)} method. First
  10055. it checks the Bloom filter for the existence of the key, and only if
  10056. present it performs the real get operation. This yields significant
  10057. performance improvements for get operations on sparsely populated files.]]>
  10058. </doc>
  10059. </method>
  10060. <method name="getBloomFilter" return="org.apache.hadoop.util.bloom.Filter"
  10061. abstract="false" native="false" synchronized="false"
  10062. static="false" final="false" visibility="public"
  10063. deprecated="not deprecated">
  10064. <doc>
  10065. <![CDATA[Retrieve the Bloom filter used by this instance of the Reader.
  10066. @return a Bloom filter (see {@link Filter})]]>
  10067. </doc>
  10068. </method>
  10069. </class>
  10070. <!-- end class org.apache.hadoop.io.BloomMapFile.Reader -->
  10071. <!-- start class org.apache.hadoop.io.BloomMapFile.Writer -->
  10072. <class name="BloomMapFile.Writer" extends="org.apache.hadoop.io.MapFile.Writer"
  10073. abstract="false"
  10074. static="true" final="false" visibility="public"
  10075. deprecated="not deprecated">
  10076. <constructor name="BloomMapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType, org.apache.hadoop.io.compress.CompressionCodec, org.apache.hadoop.util.Progressable"
  10077. static="false" final="false" visibility="public"
  10078. deprecated="not deprecated">
  10079. <exception name="IOException" type="java.io.IOException"/>
  10080. </constructor>
  10081. <constructor name="BloomMapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType, org.apache.hadoop.util.Progressable"
  10082. static="false" final="false" visibility="public"
  10083. deprecated="not deprecated">
  10084. <exception name="IOException" type="java.io.IOException"/>
  10085. </constructor>
  10086. <constructor name="BloomMapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType"
  10087. static="false" final="false" visibility="public"
  10088. deprecated="not deprecated">
  10089. <exception name="IOException" type="java.io.IOException"/>
  10090. </constructor>
  10091. <constructor name="BloomMapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType, org.apache.hadoop.io.compress.CompressionCodec, org.apache.hadoop.util.Progressable"
  10092. static="false" final="false" visibility="public"
  10093. deprecated="not deprecated">
  10094. <exception name="IOException" type="java.io.IOException"/>
  10095. </constructor>
  10096. <constructor name="BloomMapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType, org.apache.hadoop.util.Progressable"
  10097. static="false" final="false" visibility="public"
  10098. deprecated="not deprecated">
  10099. <exception name="IOException" type="java.io.IOException"/>
  10100. </constructor>
  10101. <constructor name="BloomMapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType"
  10102. static="false" final="false" visibility="public"
  10103. deprecated="not deprecated">
  10104. <exception name="IOException" type="java.io.IOException"/>
  10105. </constructor>
  10106. <constructor name="BloomMapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, java.lang.Class"
  10107. static="false" final="false" visibility="public"
  10108. deprecated="not deprecated">
  10109. <exception name="IOException" type="java.io.IOException"/>
  10110. </constructor>
  10111. <constructor name="BloomMapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, java.lang.Class"
  10112. static="false" final="false" visibility="public"
  10113. deprecated="not deprecated">
  10114. <exception name="IOException" type="java.io.IOException"/>
  10115. </constructor>
  10116. <method name="append"
  10117. abstract="false" native="false" synchronized="true"
  10118. static="false" final="false" visibility="public"
  10119. deprecated="not deprecated">
  10120. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  10121. <param name="val" type="org.apache.hadoop.io.Writable"/>
  10122. <exception name="IOException" type="java.io.IOException"/>
  10123. </method>
  10124. <method name="close"
  10125. abstract="false" native="false" synchronized="true"
  10126. static="false" final="false" visibility="public"
  10127. deprecated="not deprecated">
  10128. <exception name="IOException" type="java.io.IOException"/>
  10129. </method>
  10130. </class>
  10131. <!-- end class org.apache.hadoop.io.BloomMapFile.Writer -->
  10132. <!-- start class org.apache.hadoop.io.BooleanWritable -->
  10133. <class name="BooleanWritable" extends="java.lang.Object"
  10134. abstract="false"
  10135. static="false" final="false" visibility="public"
  10136. deprecated="not deprecated">
  10137. <implements name="org.apache.hadoop.io.WritableComparable"/>
  10138. <constructor name="BooleanWritable"
  10139. static="false" final="false" visibility="public"
  10140. deprecated="not deprecated">
  10141. </constructor>
  10142. <constructor name="BooleanWritable" type="boolean"
  10143. static="false" final="false" visibility="public"
  10144. deprecated="not deprecated">
  10145. </constructor>
  10146. <method name="set"
  10147. abstract="false" native="false" synchronized="false"
  10148. static="false" final="false" visibility="public"
  10149. deprecated="not deprecated">
  10150. <param name="value" type="boolean"/>
  10151. <doc>
  10152. <![CDATA[Set the value of the BooleanWritable]]>
  10153. </doc>
  10154. </method>
  10155. <method name="get" return="boolean"
  10156. abstract="false" native="false" synchronized="false"
  10157. static="false" final="false" visibility="public"
  10158. deprecated="not deprecated">
  10159. <doc>
  10160. <![CDATA[Returns the value of the BooleanWritable]]>
  10161. </doc>
  10162. </method>
  10163. <method name="readFields"
  10164. abstract="false" native="false" synchronized="false"
  10165. static="false" final="false" visibility="public"
  10166. deprecated="not deprecated">
  10167. <param name="in" type="java.io.DataInput"/>
  10168. <exception name="IOException" type="java.io.IOException"/>
  10169. </method>
  10170. <method name="write"
  10171. abstract="false" native="false" synchronized="false"
  10172. static="false" final="false" visibility="public"
  10173. deprecated="not deprecated">
  10174. <param name="out" type="java.io.DataOutput"/>
  10175. <exception name="IOException" type="java.io.IOException"/>
  10176. </method>
  10177. <method name="equals" return="boolean"
  10178. abstract="false" native="false" synchronized="false"
  10179. static="false" final="false" visibility="public"
  10180. deprecated="not deprecated">
  10181. <param name="o" type="java.lang.Object"/>
  10182. </method>
  10183. <method name="hashCode" return="int"
  10184. abstract="false" native="false" synchronized="false"
  10185. static="false" final="false" visibility="public"
  10186. deprecated="not deprecated">
  10187. </method>
  10188. <method name="compareTo" return="int"
  10189. abstract="false" native="false" synchronized="false"
  10190. static="false" final="false" visibility="public"
  10191. deprecated="not deprecated">
  10192. <param name="o" type="java.lang.Object"/>
  10193. </method>
  10194. <method name="toString" return="java.lang.String"
  10195. abstract="false" native="false" synchronized="false"
  10196. static="false" final="false" visibility="public"
  10197. deprecated="not deprecated">
  10198. </method>
  10199. <doc>
  10200. <![CDATA[A WritableComparable for booleans.]]>
  10201. </doc>
  10202. </class>
  10203. <!-- end class org.apache.hadoop.io.BooleanWritable -->
  10204. <!-- start class org.apache.hadoop.io.BooleanWritable.Comparator -->
  10205. <class name="BooleanWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  10206. abstract="false"
  10207. static="true" final="false" visibility="public"
  10208. deprecated="not deprecated">
  10209. <constructor name="BooleanWritable.Comparator"
  10210. static="false" final="false" visibility="public"
  10211. deprecated="not deprecated">
  10212. </constructor>
  10213. <method name="compare" return="int"
  10214. abstract="false" native="false" synchronized="false"
  10215. static="false" final="false" visibility="public"
  10216. deprecated="not deprecated">
  10217. <param name="b1" type="byte[]"/>
  10218. <param name="s1" type="int"/>
  10219. <param name="l1" type="int"/>
  10220. <param name="b2" type="byte[]"/>
  10221. <param name="s2" type="int"/>
  10222. <param name="l2" type="int"/>
  10223. </method>
  10224. <doc>
  10225. <![CDATA[A Comparator optimized for BooleanWritable.]]>
  10226. </doc>
  10227. </class>
  10228. <!-- end class org.apache.hadoop.io.BooleanWritable.Comparator -->
  10229. <!-- start class org.apache.hadoop.io.BytesWritable -->
  10230. <class name="BytesWritable" extends="org.apache.hadoop.io.BinaryComparable"
  10231. abstract="false"
  10232. static="false" final="false" visibility="public"
  10233. deprecated="not deprecated">
  10234. <implements name="org.apache.hadoop.io.WritableComparable"/>
  10235. <constructor name="BytesWritable"
  10236. static="false" final="false" visibility="public"
  10237. deprecated="not deprecated">
  10238. <doc>
  10239. <![CDATA[Create a zero-size sequence.]]>
  10240. </doc>
  10241. </constructor>
  10242. <constructor name="BytesWritable" type="byte[]"
  10243. static="false" final="false" visibility="public"
  10244. deprecated="not deprecated">
  10245. <doc>
  10246. <![CDATA[Create a BytesWritable using the byte array as the initial value.
  10247. @param bytes This array becomes the backing storage for the object.]]>
  10248. </doc>
  10249. </constructor>
  10250. <method name="getBytes" return="byte[]"
  10251. abstract="false" native="false" synchronized="false"
  10252. static="false" final="false" visibility="public"
  10253. deprecated="not deprecated">
  10254. <doc>
  10255. <![CDATA[Get the data from the BytesWritable.
  10256. @return The data is only valid between 0 and getLength() - 1.]]>
  10257. </doc>
  10258. </method>
  10259. <method name="get" return="byte[]"
  10260. abstract="false" native="false" synchronized="false"
  10261. static="false" final="false" visibility="public"
  10262. deprecated="Use {@link #getBytes()} instead.">
  10263. <doc>
  10264. <![CDATA[Get the data from the BytesWritable.
  10265. @deprecated Use {@link #getBytes()} instead.]]>
  10266. </doc>
  10267. </method>
  10268. <method name="getLength" return="int"
  10269. abstract="false" native="false" synchronized="false"
  10270. static="false" final="false" visibility="public"
  10271. deprecated="not deprecated">
  10272. <doc>
  10273. <![CDATA[Get the current size of the buffer.]]>
  10274. </doc>
  10275. </method>
  10276. <method name="getSize" return="int"
  10277. abstract="false" native="false" synchronized="false"
  10278. static="false" final="false" visibility="public"
  10279. deprecated="Use {@link #getLength()} instead.">
  10280. <doc>
  10281. <![CDATA[Get the current size of the buffer.
  10282. @deprecated Use {@link #getLength()} instead.]]>
  10283. </doc>
  10284. </method>
  10285. <method name="setSize"
  10286. abstract="false" native="false" synchronized="false"
  10287. static="false" final="false" visibility="public"
  10288. deprecated="not deprecated">
  10289. <param name="size" type="int"/>
  10290. <doc>
  10291. <![CDATA[Change the size of the buffer. The values in the old range are preserved
  10292. and any new values are undefined. The capacity is changed if it is
  10293. necessary.
  10294. @param size The new number of bytes]]>
  10295. </doc>
  10296. </method>
  10297. <method name="getCapacity" return="int"
  10298. abstract="false" native="false" synchronized="false"
  10299. static="false" final="false" visibility="public"
  10300. deprecated="not deprecated">
  10301. <doc>
  10302. <![CDATA[Get the capacity, which is the maximum size that could handled without
  10303. resizing the backing storage.
  10304. @return The number of bytes]]>
  10305. </doc>
  10306. </method>
  10307. <method name="setCapacity"
  10308. abstract="false" native="false" synchronized="false"
  10309. static="false" final="false" visibility="public"
  10310. deprecated="not deprecated">
  10311. <param name="new_cap" type="int"/>
  10312. <doc>
  10313. <![CDATA[Change the capacity of the backing storage.
  10314. The data is preserved.
  10315. @param new_cap The new capacity in bytes.]]>
  10316. </doc>
  10317. </method>
  10318. <method name="set"
  10319. abstract="false" native="false" synchronized="false"
  10320. static="false" final="false" visibility="public"
  10321. deprecated="not deprecated">
  10322. <param name="newData" type="org.apache.hadoop.io.BytesWritable"/>
  10323. <doc>
  10324. <![CDATA[Set the BytesWritable to the contents of the given newData.
  10325. @param newData the value to set this BytesWritable to.]]>
  10326. </doc>
  10327. </method>
  10328. <method name="set"
  10329. abstract="false" native="false" synchronized="false"
  10330. static="false" final="false" visibility="public"
  10331. deprecated="not deprecated">
  10332. <param name="newData" type="byte[]"/>
  10333. <param name="offset" type="int"/>
  10334. <param name="length" type="int"/>
  10335. <doc>
  10336. <![CDATA[Set the value to a copy of the given byte range
  10337. @param newData the new values to copy in
  10338. @param offset the offset in newData to start at
  10339. @param length the number of bytes to copy]]>
  10340. </doc>
  10341. </method>
  10342. <method name="readFields"
  10343. abstract="false" native="false" synchronized="false"
  10344. static="false" final="false" visibility="public"
  10345. deprecated="not deprecated">
  10346. <param name="in" type="java.io.DataInput"/>
  10347. <exception name="IOException" type="java.io.IOException"/>
  10348. </method>
  10349. <method name="write"
  10350. abstract="false" native="false" synchronized="false"
  10351. static="false" final="false" visibility="public"
  10352. deprecated="not deprecated">
  10353. <param name="out" type="java.io.DataOutput"/>
  10354. <exception name="IOException" type="java.io.IOException"/>
  10355. </method>
  10356. <method name="hashCode" return="int"
  10357. abstract="false" native="false" synchronized="false"
  10358. static="false" final="false" visibility="public"
  10359. deprecated="not deprecated">
  10360. </method>
  10361. <method name="equals" return="boolean"
  10362. abstract="false" native="false" synchronized="false"
  10363. static="false" final="false" visibility="public"
  10364. deprecated="not deprecated">
  10365. <param name="right_obj" type="java.lang.Object"/>
  10366. <doc>
  10367. <![CDATA[Are the two byte sequences equal?]]>
  10368. </doc>
  10369. </method>
  10370. <method name="toString" return="java.lang.String"
  10371. abstract="false" native="false" synchronized="false"
  10372. static="false" final="false" visibility="public"
  10373. deprecated="not deprecated">
  10374. <doc>
  10375. <![CDATA[Generate the stream of bytes as hex pairs separated by ' '.]]>
  10376. </doc>
  10377. </method>
  10378. <doc>
  10379. <![CDATA[A byte sequence that is usable as a key or value.
  10380. It is resizable and distinguishes between the size of the seqeunce and
  10381. the current capacity. The hash function is the front of the md5 of the
  10382. buffer. The sort order is the same as memcmp.]]>
  10383. </doc>
  10384. </class>
  10385. <!-- end class org.apache.hadoop.io.BytesWritable -->
  10386. <!-- start class org.apache.hadoop.io.BytesWritable.Comparator -->
  10387. <class name="BytesWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  10388. abstract="false"
  10389. static="true" final="false" visibility="public"
  10390. deprecated="not deprecated">
  10391. <constructor name="BytesWritable.Comparator"
  10392. static="false" final="false" visibility="public"
  10393. deprecated="not deprecated">
  10394. </constructor>
  10395. <method name="compare" return="int"
  10396. abstract="false" native="false" synchronized="false"
  10397. static="false" final="false" visibility="public"
  10398. deprecated="not deprecated">
  10399. <param name="b1" type="byte[]"/>
  10400. <param name="s1" type="int"/>
  10401. <param name="l1" type="int"/>
  10402. <param name="b2" type="byte[]"/>
  10403. <param name="s2" type="int"/>
  10404. <param name="l2" type="int"/>
  10405. <doc>
  10406. <![CDATA[Compare the buffers in serialized form.]]>
  10407. </doc>
  10408. </method>
  10409. <doc>
  10410. <![CDATA[A Comparator optimized for BytesWritable.]]>
  10411. </doc>
  10412. </class>
  10413. <!-- end class org.apache.hadoop.io.BytesWritable.Comparator -->
  10414. <!-- start class org.apache.hadoop.io.ByteWritable -->
  10415. <class name="ByteWritable" extends="java.lang.Object"
  10416. abstract="false"
  10417. static="false" final="false" visibility="public"
  10418. deprecated="not deprecated">
  10419. <implements name="org.apache.hadoop.io.WritableComparable"/>
  10420. <constructor name="ByteWritable"
  10421. static="false" final="false" visibility="public"
  10422. deprecated="not deprecated">
  10423. </constructor>
  10424. <constructor name="ByteWritable" type="byte"
  10425. static="false" final="false" visibility="public"
  10426. deprecated="not deprecated">
  10427. </constructor>
  10428. <method name="set"
  10429. abstract="false" native="false" synchronized="false"
  10430. static="false" final="false" visibility="public"
  10431. deprecated="not deprecated">
  10432. <param name="value" type="byte"/>
  10433. <doc>
  10434. <![CDATA[Set the value of this ByteWritable.]]>
  10435. </doc>
  10436. </method>
  10437. <method name="get" return="byte"
  10438. abstract="false" native="false" synchronized="false"
  10439. static="false" final="false" visibility="public"
  10440. deprecated="not deprecated">
  10441. <doc>
  10442. <![CDATA[Return the value of this ByteWritable.]]>
  10443. </doc>
  10444. </method>
  10445. <method name="readFields"
  10446. abstract="false" native="false" synchronized="false"
  10447. static="false" final="false" visibility="public"
  10448. deprecated="not deprecated">
  10449. <param name="in" type="java.io.DataInput"/>
  10450. <exception name="IOException" type="java.io.IOException"/>
  10451. </method>
  10452. <method name="write"
  10453. abstract="false" native="false" synchronized="false"
  10454. static="false" final="false" visibility="public"
  10455. deprecated="not deprecated">
  10456. <param name="out" type="java.io.DataOutput"/>
  10457. <exception name="IOException" type="java.io.IOException"/>
  10458. </method>
  10459. <method name="equals" return="boolean"
  10460. abstract="false" native="false" synchronized="false"
  10461. static="false" final="false" visibility="public"
  10462. deprecated="not deprecated">
  10463. <param name="o" type="java.lang.Object"/>
  10464. <doc>
  10465. <![CDATA[Returns true iff <code>o</code> is a ByteWritable with the same value.]]>
  10466. </doc>
  10467. </method>
  10468. <method name="hashCode" return="int"
  10469. abstract="false" native="false" synchronized="false"
  10470. static="false" final="false" visibility="public"
  10471. deprecated="not deprecated">
  10472. </method>
  10473. <method name="compareTo" return="int"
  10474. abstract="false" native="false" synchronized="false"
  10475. static="false" final="false" visibility="public"
  10476. deprecated="not deprecated">
  10477. <param name="o" type="java.lang.Object"/>
  10478. <doc>
  10479. <![CDATA[Compares two ByteWritables.]]>
  10480. </doc>
  10481. </method>
  10482. <method name="toString" return="java.lang.String"
  10483. abstract="false" native="false" synchronized="false"
  10484. static="false" final="false" visibility="public"
  10485. deprecated="not deprecated">
  10486. </method>
  10487. <doc>
  10488. <![CDATA[A WritableComparable for a single byte.]]>
  10489. </doc>
  10490. </class>
  10491. <!-- end class org.apache.hadoop.io.ByteWritable -->
  10492. <!-- start class org.apache.hadoop.io.ByteWritable.Comparator -->
  10493. <class name="ByteWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  10494. abstract="false"
  10495. static="true" final="false" visibility="public"
  10496. deprecated="not deprecated">
  10497. <constructor name="ByteWritable.Comparator"
  10498. static="false" final="false" visibility="public"
  10499. deprecated="not deprecated">
  10500. </constructor>
  10501. <method name="compare" return="int"
  10502. abstract="false" native="false" synchronized="false"
  10503. static="false" final="false" visibility="public"
  10504. deprecated="not deprecated">
  10505. <param name="b1" type="byte[]"/>
  10506. <param name="s1" type="int"/>
  10507. <param name="l1" type="int"/>
  10508. <param name="b2" type="byte[]"/>
  10509. <param name="s2" type="int"/>
  10510. <param name="l2" type="int"/>
  10511. </method>
  10512. <doc>
  10513. <![CDATA[A Comparator optimized for ByteWritable.]]>
  10514. </doc>
  10515. </class>
  10516. <!-- end class org.apache.hadoop.io.ByteWritable.Comparator -->
  10517. <!-- start interface org.apache.hadoop.io.Closeable -->
  10518. <interface name="Closeable" abstract="true"
  10519. static="false" final="false" visibility="public"
  10520. deprecated="use java.io.Closeable">
  10521. <implements name="java.io.Closeable"/>
  10522. <doc>
  10523. <![CDATA[@deprecated use java.io.Closeable]]>
  10524. </doc>
  10525. </interface>
  10526. <!-- end interface org.apache.hadoop.io.Closeable -->
  10527. <!-- start class org.apache.hadoop.io.CompressedWritable -->
  10528. <class name="CompressedWritable" extends="java.lang.Object"
  10529. abstract="true"
  10530. static="false" final="false" visibility="public"
  10531. deprecated="not deprecated">
  10532. <implements name="org.apache.hadoop.io.Writable"/>
  10533. <constructor name="CompressedWritable"
  10534. static="false" final="false" visibility="public"
  10535. deprecated="not deprecated">
  10536. </constructor>
  10537. <method name="readFields"
  10538. abstract="false" native="false" synchronized="false"
  10539. static="false" final="true" visibility="public"
  10540. deprecated="not deprecated">
  10541. <param name="in" type="java.io.DataInput"/>
  10542. <exception name="IOException" type="java.io.IOException"/>
  10543. </method>
  10544. <method name="ensureInflated"
  10545. abstract="false" native="false" synchronized="false"
  10546. static="false" final="false" visibility="protected"
  10547. deprecated="not deprecated">
  10548. <doc>
  10549. <![CDATA[Must be called by all methods which access fields to ensure that the data
  10550. has been uncompressed.]]>
  10551. </doc>
  10552. </method>
  10553. <method name="readFieldsCompressed"
  10554. abstract="true" native="false" synchronized="false"
  10555. static="false" final="false" visibility="protected"
  10556. deprecated="not deprecated">
  10557. <param name="in" type="java.io.DataInput"/>
  10558. <exception name="IOException" type="java.io.IOException"/>
  10559. <doc>
  10560. <![CDATA[Subclasses implement this instead of {@link #readFields(DataInput)}.]]>
  10561. </doc>
  10562. </method>
  10563. <method name="write"
  10564. abstract="false" native="false" synchronized="false"
  10565. static="false" final="true" visibility="public"
  10566. deprecated="not deprecated">
  10567. <param name="out" type="java.io.DataOutput"/>
  10568. <exception name="IOException" type="java.io.IOException"/>
  10569. </method>
  10570. <method name="writeCompressed"
  10571. abstract="true" native="false" synchronized="false"
  10572. static="false" final="false" visibility="protected"
  10573. deprecated="not deprecated">
  10574. <param name="out" type="java.io.DataOutput"/>
  10575. <exception name="IOException" type="java.io.IOException"/>
  10576. <doc>
  10577. <![CDATA[Subclasses implement this instead of {@link #write(DataOutput)}.]]>
  10578. </doc>
  10579. </method>
  10580. <doc>
  10581. <![CDATA[A base-class for Writables which store themselves compressed and lazily
  10582. inflate on field access. This is useful for large objects whose fields are
  10583. not be altered during a map or reduce operation: leaving the field data
  10584. compressed makes copying the instance from one file to another much
  10585. faster.]]>
  10586. </doc>
  10587. </class>
  10588. <!-- end class org.apache.hadoop.io.CompressedWritable -->
  10589. <!-- start class org.apache.hadoop.io.DataInputBuffer -->
  10590. <class name="DataInputBuffer" extends="java.io.DataInputStream"
  10591. abstract="false"
  10592. static="false" final="false" visibility="public"
  10593. deprecated="not deprecated">
  10594. <constructor name="DataInputBuffer"
  10595. static="false" final="false" visibility="public"
  10596. deprecated="not deprecated">
  10597. <doc>
  10598. <![CDATA[Constructs a new empty buffer.]]>
  10599. </doc>
  10600. </constructor>
  10601. <method name="reset"
  10602. abstract="false" native="false" synchronized="false"
  10603. static="false" final="false" visibility="public"
  10604. deprecated="not deprecated">
  10605. <param name="input" type="byte[]"/>
  10606. <param name="length" type="int"/>
  10607. <doc>
  10608. <![CDATA[Resets the data that the buffer reads.]]>
  10609. </doc>
  10610. </method>
  10611. <method name="reset"
  10612. abstract="false" native="false" synchronized="false"
  10613. static="false" final="false" visibility="public"
  10614. deprecated="not deprecated">
  10615. <param name="input" type="byte[]"/>
  10616. <param name="start" type="int"/>
  10617. <param name="length" type="int"/>
  10618. <doc>
  10619. <![CDATA[Resets the data that the buffer reads.]]>
  10620. </doc>
  10621. </method>
  10622. <method name="getData" return="byte[]"
  10623. abstract="false" native="false" synchronized="false"
  10624. static="false" final="false" visibility="public"
  10625. deprecated="not deprecated">
  10626. </method>
  10627. <method name="getPosition" return="int"
  10628. abstract="false" native="false" synchronized="false"
  10629. static="false" final="false" visibility="public"
  10630. deprecated="not deprecated">
  10631. <doc>
  10632. <![CDATA[Returns the current position in the input.]]>
  10633. </doc>
  10634. </method>
  10635. <method name="getLength" return="int"
  10636. abstract="false" native="false" synchronized="false"
  10637. static="false" final="false" visibility="public"
  10638. deprecated="not deprecated">
  10639. <doc>
  10640. <![CDATA[Returns the length of the input.]]>
  10641. </doc>
  10642. </method>
  10643. <doc>
  10644. <![CDATA[A reusable {@link DataInput} implementation that reads from an in-memory
  10645. buffer.
  10646. <p>This saves memory over creating a new DataInputStream and
  10647. ByteArrayInputStream each time data is read.
  10648. <p>Typical usage is something like the following:<pre>
  10649. DataInputBuffer buffer = new DataInputBuffer();
  10650. while (... loop condition ...) {
  10651. byte[] data = ... get data ...;
  10652. int dataLength = ... get data length ...;
  10653. buffer.reset(data, dataLength);
  10654. ... read buffer using DataInput methods ...
  10655. }
  10656. </pre>]]>
  10657. </doc>
  10658. </class>
  10659. <!-- end class org.apache.hadoop.io.DataInputBuffer -->
  10660. <!-- start class org.apache.hadoop.io.DataOutputBuffer -->
  10661. <class name="DataOutputBuffer" extends="java.io.DataOutputStream"
  10662. abstract="false"
  10663. static="false" final="false" visibility="public"
  10664. deprecated="not deprecated">
  10665. <constructor name="DataOutputBuffer"
  10666. static="false" final="false" visibility="public"
  10667. deprecated="not deprecated">
  10668. <doc>
  10669. <![CDATA[Constructs a new empty buffer.]]>
  10670. </doc>
  10671. </constructor>
  10672. <constructor name="DataOutputBuffer" type="int"
  10673. static="false" final="false" visibility="public"
  10674. deprecated="not deprecated">
  10675. </constructor>
  10676. <method name="getData" return="byte[]"
  10677. abstract="false" native="false" synchronized="false"
  10678. static="false" final="false" visibility="public"
  10679. deprecated="not deprecated">
  10680. <doc>
  10681. <![CDATA[Returns the current contents of the buffer.
  10682. Data is only valid to {@link #getLength()}.]]>
  10683. </doc>
  10684. </method>
  10685. <method name="getLength" return="int"
  10686. abstract="false" native="false" synchronized="false"
  10687. static="false" final="false" visibility="public"
  10688. deprecated="not deprecated">
  10689. <doc>
  10690. <![CDATA[Returns the length of the valid data currently in the buffer.]]>
  10691. </doc>
  10692. </method>
  10693. <method name="reset" return="org.apache.hadoop.io.DataOutputBuffer"
  10694. abstract="false" native="false" synchronized="false"
  10695. static="false" final="false" visibility="public"
  10696. deprecated="not deprecated">
  10697. <doc>
  10698. <![CDATA[Resets the buffer to empty.]]>
  10699. </doc>
  10700. </method>
  10701. <method name="write"
  10702. abstract="false" native="false" synchronized="false"
  10703. static="false" final="false" visibility="public"
  10704. deprecated="not deprecated">
  10705. <param name="in" type="java.io.DataInput"/>
  10706. <param name="length" type="int"/>
  10707. <exception name="IOException" type="java.io.IOException"/>
  10708. <doc>
  10709. <![CDATA[Writes bytes from a DataInput directly into the buffer.]]>
  10710. </doc>
  10711. </method>
  10712. <method name="writeTo"
  10713. abstract="false" native="false" synchronized="false"
  10714. static="false" final="false" visibility="public"
  10715. deprecated="not deprecated">
  10716. <param name="out" type="java.io.OutputStream"/>
  10717. <exception name="IOException" type="java.io.IOException"/>
  10718. <doc>
  10719. <![CDATA[Write to a file stream]]>
  10720. </doc>
  10721. </method>
  10722. <doc>
  10723. <![CDATA[A reusable {@link DataOutput} implementation that writes to an in-memory
  10724. buffer.
  10725. <p>This saves memory over creating a new DataOutputStream and
  10726. ByteArrayOutputStream each time data is written.
  10727. <p>Typical usage is something like the following:<pre>
  10728. DataOutputBuffer buffer = new DataOutputBuffer();
  10729. while (... loop condition ...) {
  10730. buffer.reset();
  10731. ... write buffer using DataOutput methods ...
  10732. byte[] data = buffer.getData();
  10733. int dataLength = buffer.getLength();
  10734. ... write data to its ultimate destination ...
  10735. }
  10736. </pre>]]>
  10737. </doc>
  10738. </class>
  10739. <!-- end class org.apache.hadoop.io.DataOutputBuffer -->
  10740. <!-- start class org.apache.hadoop.io.DefaultStringifier -->
  10741. <class name="DefaultStringifier" extends="java.lang.Object"
  10742. abstract="false"
  10743. static="false" final="false" visibility="public"
  10744. deprecated="not deprecated">
  10745. <implements name="org.apache.hadoop.io.Stringifier"/>
  10746. <constructor name="DefaultStringifier" type="org.apache.hadoop.conf.Configuration, java.lang.Class"
  10747. static="false" final="false" visibility="public"
  10748. deprecated="not deprecated">
  10749. </constructor>
  10750. <method name="fromString" return="java.lang.Object"
  10751. abstract="false" native="false" synchronized="false"
  10752. static="false" final="false" visibility="public"
  10753. deprecated="not deprecated">
  10754. <param name="str" type="java.lang.String"/>
  10755. <exception name="IOException" type="java.io.IOException"/>
  10756. </method>
  10757. <method name="toString" return="java.lang.String"
  10758. abstract="false" native="false" synchronized="false"
  10759. static="false" final="false" visibility="public"
  10760. deprecated="not deprecated">
  10761. <param name="obj" type="java.lang.Object"/>
  10762. <exception name="IOException" type="java.io.IOException"/>
  10763. </method>
  10764. <method name="close"
  10765. abstract="false" native="false" synchronized="false"
  10766. static="false" final="false" visibility="public"
  10767. deprecated="not deprecated">
  10768. <exception name="IOException" type="java.io.IOException"/>
  10769. </method>
  10770. <method name="store"
  10771. abstract="false" native="false" synchronized="false"
  10772. static="true" final="false" visibility="public"
  10773. deprecated="not deprecated">
  10774. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10775. <param name="item" type="java.lang.Object"/>
  10776. <param name="keyName" type="java.lang.String"/>
  10777. <exception name="IOException" type="java.io.IOException"/>
  10778. <doc>
  10779. <![CDATA[Stores the item in the configuration with the given keyName.
  10780. @param <K> the class of the item
  10781. @param conf the configuration to store
  10782. @param item the object to be stored
  10783. @param keyName the name of the key to use
  10784. @throws IOException : forwards Exceptions from the underlying
  10785. {@link Serialization} classes.]]>
  10786. </doc>
  10787. </method>
  10788. <method name="load" return="java.lang.Object"
  10789. abstract="false" native="false" synchronized="false"
  10790. static="true" final="false" visibility="public"
  10791. deprecated="not deprecated">
  10792. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10793. <param name="keyName" type="java.lang.String"/>
  10794. <param name="itemClass" type="java.lang.Class"/>
  10795. <exception name="IOException" type="java.io.IOException"/>
  10796. <doc>
  10797. <![CDATA[Restores the object from the configuration.
  10798. @param <K> the class of the item
  10799. @param conf the configuration to use
  10800. @param keyName the name of the key to use
  10801. @param itemClass the class of the item
  10802. @return restored object
  10803. @throws IOException : forwards Exceptions from the underlying
  10804. {@link Serialization} classes.]]>
  10805. </doc>
  10806. </method>
  10807. <method name="storeArray"
  10808. abstract="false" native="false" synchronized="false"
  10809. static="true" final="false" visibility="public"
  10810. deprecated="not deprecated">
  10811. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10812. <param name="items" type="java.lang.Object[]"/>
  10813. <param name="keyName" type="java.lang.String"/>
  10814. <exception name="IOException" type="java.io.IOException"/>
  10815. <doc>
  10816. <![CDATA[Stores the array of items in the configuration with the given keyName.
  10817. @param <K> the class of the item
  10818. @param conf the configuration to use
  10819. @param items the objects to be stored
  10820. @param keyName the name of the key to use
  10821. @throws IndexOutOfBoundsException if the items array is empty
  10822. @throws IOException : forwards Exceptions from the underlying
  10823. {@link Serialization} classes.]]>
  10824. </doc>
  10825. </method>
  10826. <method name="loadArray" return="java.lang.Object[]"
  10827. abstract="false" native="false" synchronized="false"
  10828. static="true" final="false" visibility="public"
  10829. deprecated="not deprecated">
  10830. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10831. <param name="keyName" type="java.lang.String"/>
  10832. <param name="itemClass" type="java.lang.Class"/>
  10833. <exception name="IOException" type="java.io.IOException"/>
  10834. <doc>
  10835. <![CDATA[Restores the array of objects from the configuration.
  10836. @param <K> the class of the item
  10837. @param conf the configuration to use
  10838. @param keyName the name of the key to use
  10839. @param itemClass the class of the item
  10840. @return restored object
  10841. @throws IOException : forwards Exceptions from the underlying
  10842. {@link Serialization} classes.]]>
  10843. </doc>
  10844. </method>
  10845. <doc>
  10846. <![CDATA[DefaultStringifier is the default implementation of the {@link Stringifier}
  10847. interface which stringifies the objects using base64 encoding of the
  10848. serialized version of the objects. The {@link Serializer} and
  10849. {@link Deserializer} are obtained from the {@link SerializationFactory}.
  10850. <br>
  10851. DefaultStringifier offers convenience methods to store/load objects to/from
  10852. the configuration.
  10853. @param <T> the class of the objects to stringify]]>
  10854. </doc>
  10855. </class>
  10856. <!-- end class org.apache.hadoop.io.DefaultStringifier -->
  10857. <!-- start class org.apache.hadoop.io.DoubleWritable -->
  10858. <class name="DoubleWritable" extends="java.lang.Object"
  10859. abstract="false"
  10860. static="false" final="false" visibility="public"
  10861. deprecated="not deprecated">
  10862. <implements name="org.apache.hadoop.io.WritableComparable"/>
  10863. <constructor name="DoubleWritable"
  10864. static="false" final="false" visibility="public"
  10865. deprecated="not deprecated">
  10866. </constructor>
  10867. <constructor name="DoubleWritable" type="double"
  10868. static="false" final="false" visibility="public"
  10869. deprecated="not deprecated">
  10870. </constructor>
  10871. <method name="readFields"
  10872. abstract="false" native="false" synchronized="false"
  10873. static="false" final="false" visibility="public"
  10874. deprecated="not deprecated">
  10875. <param name="in" type="java.io.DataInput"/>
  10876. <exception name="IOException" type="java.io.IOException"/>
  10877. </method>
  10878. <method name="write"
  10879. abstract="false" native="false" synchronized="false"
  10880. static="false" final="false" visibility="public"
  10881. deprecated="not deprecated">
  10882. <param name="out" type="java.io.DataOutput"/>
  10883. <exception name="IOException" type="java.io.IOException"/>
  10884. </method>
  10885. <method name="set"
  10886. abstract="false" native="false" synchronized="false"
  10887. static="false" final="false" visibility="public"
  10888. deprecated="not deprecated">
  10889. <param name="value" type="double"/>
  10890. </method>
  10891. <method name="get" return="double"
  10892. abstract="false" native="false" synchronized="false"
  10893. static="false" final="false" visibility="public"
  10894. deprecated="not deprecated">
  10895. </method>
  10896. <method name="equals" return="boolean"
  10897. abstract="false" native="false" synchronized="false"
  10898. static="false" final="false" visibility="public"
  10899. deprecated="not deprecated">
  10900. <param name="o" type="java.lang.Object"/>
  10901. <doc>
  10902. <![CDATA[Returns true iff <code>o</code> is a DoubleWritable with the same value.]]>
  10903. </doc>
  10904. </method>
  10905. <method name="hashCode" return="int"
  10906. abstract="false" native="false" synchronized="false"
  10907. static="false" final="false" visibility="public"
  10908. deprecated="not deprecated">
  10909. </method>
  10910. <method name="compareTo" return="int"
  10911. abstract="false" native="false" synchronized="false"
  10912. static="false" final="false" visibility="public"
  10913. deprecated="not deprecated">
  10914. <param name="o" type="java.lang.Object"/>
  10915. </method>
  10916. <method name="toString" return="java.lang.String"
  10917. abstract="false" native="false" synchronized="false"
  10918. static="false" final="false" visibility="public"
  10919. deprecated="not deprecated">
  10920. </method>
  10921. <doc>
  10922. <![CDATA[Writable for Double values.]]>
  10923. </doc>
  10924. </class>
  10925. <!-- end class org.apache.hadoop.io.DoubleWritable -->
  10926. <!-- start class org.apache.hadoop.io.DoubleWritable.Comparator -->
  10927. <class name="DoubleWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  10928. abstract="false"
  10929. static="true" final="false" visibility="public"
  10930. deprecated="not deprecated">
  10931. <constructor name="DoubleWritable.Comparator"
  10932. static="false" final="false" visibility="public"
  10933. deprecated="not deprecated">
  10934. </constructor>
  10935. <method name="compare" return="int"
  10936. abstract="false" native="false" synchronized="false"
  10937. static="false" final="false" visibility="public"
  10938. deprecated="not deprecated">
  10939. <param name="b1" type="byte[]"/>
  10940. <param name="s1" type="int"/>
  10941. <param name="l1" type="int"/>
  10942. <param name="b2" type="byte[]"/>
  10943. <param name="s2" type="int"/>
  10944. <param name="l2" type="int"/>
  10945. </method>
  10946. <doc>
  10947. <![CDATA[A Comparator optimized for DoubleWritable.]]>
  10948. </doc>
  10949. </class>
  10950. <!-- end class org.apache.hadoop.io.DoubleWritable.Comparator -->
  10951. <!-- start class org.apache.hadoop.io.FloatWritable -->
  10952. <class name="FloatWritable" extends="java.lang.Object"
  10953. abstract="false"
  10954. static="false" final="false" visibility="public"
  10955. deprecated="not deprecated">
  10956. <implements name="org.apache.hadoop.io.WritableComparable"/>
  10957. <constructor name="FloatWritable"
  10958. static="false" final="false" visibility="public"
  10959. deprecated="not deprecated">
  10960. </constructor>
  10961. <constructor name="FloatWritable" type="float"
  10962. static="false" final="false" visibility="public"
  10963. deprecated="not deprecated">
  10964. </constructor>
  10965. <method name="set"
  10966. abstract="false" native="false" synchronized="false"
  10967. static="false" final="false" visibility="public"
  10968. deprecated="not deprecated">
  10969. <param name="value" type="float"/>
  10970. <doc>
  10971. <![CDATA[Set the value of this FloatWritable.]]>
  10972. </doc>
  10973. </method>
  10974. <method name="get" return="float"
  10975. abstract="false" native="false" synchronized="false"
  10976. static="false" final="false" visibility="public"
  10977. deprecated="not deprecated">
  10978. <doc>
  10979. <![CDATA[Return the value of this FloatWritable.]]>
  10980. </doc>
  10981. </method>
  10982. <method name="readFields"
  10983. abstract="false" native="false" synchronized="false"
  10984. static="false" final="false" visibility="public"
  10985. deprecated="not deprecated">
  10986. <param name="in" type="java.io.DataInput"/>
  10987. <exception name="IOException" type="java.io.IOException"/>
  10988. </method>
  10989. <method name="write"
  10990. abstract="false" native="false" synchronized="false"
  10991. static="false" final="false" visibility="public"
  10992. deprecated="not deprecated">
  10993. <param name="out" type="java.io.DataOutput"/>
  10994. <exception name="IOException" type="java.io.IOException"/>
  10995. </method>
  10996. <method name="equals" return="boolean"
  10997. abstract="false" native="false" synchronized="false"
  10998. static="false" final="false" visibility="public"
  10999. deprecated="not deprecated">
  11000. <param name="o" type="java.lang.Object"/>
  11001. <doc>
  11002. <![CDATA[Returns true iff <code>o</code> is a FloatWritable with the same value.]]>
  11003. </doc>
  11004. </method>
  11005. <method name="hashCode" return="int"
  11006. abstract="false" native="false" synchronized="false"
  11007. static="false" final="false" visibility="public"
  11008. deprecated="not deprecated">
  11009. </method>
  11010. <method name="compareTo" return="int"
  11011. abstract="false" native="false" synchronized="false"
  11012. static="false" final="false" visibility="public"
  11013. deprecated="not deprecated">
  11014. <param name="o" type="java.lang.Object"/>
  11015. <doc>
  11016. <![CDATA[Compares two FloatWritables.]]>
  11017. </doc>
  11018. </method>
  11019. <method name="toString" return="java.lang.String"
  11020. abstract="false" native="false" synchronized="false"
  11021. static="false" final="false" visibility="public"
  11022. deprecated="not deprecated">
  11023. </method>
  11024. <doc>
  11025. <![CDATA[A WritableComparable for floats.]]>
  11026. </doc>
  11027. </class>
  11028. <!-- end class org.apache.hadoop.io.FloatWritable -->
  11029. <!-- start class org.apache.hadoop.io.FloatWritable.Comparator -->
  11030. <class name="FloatWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  11031. abstract="false"
  11032. static="true" final="false" visibility="public"
  11033. deprecated="not deprecated">
  11034. <constructor name="FloatWritable.Comparator"
  11035. static="false" final="false" visibility="public"
  11036. deprecated="not deprecated">
  11037. </constructor>
  11038. <method name="compare" return="int"
  11039. abstract="false" native="false" synchronized="false"
  11040. static="false" final="false" visibility="public"
  11041. deprecated="not deprecated">
  11042. <param name="b1" type="byte[]"/>
  11043. <param name="s1" type="int"/>
  11044. <param name="l1" type="int"/>
  11045. <param name="b2" type="byte[]"/>
  11046. <param name="s2" type="int"/>
  11047. <param name="l2" type="int"/>
  11048. </method>
  11049. <doc>
  11050. <![CDATA[A Comparator optimized for FloatWritable.]]>
  11051. </doc>
  11052. </class>
  11053. <!-- end class org.apache.hadoop.io.FloatWritable.Comparator -->
  11054. <!-- start class org.apache.hadoop.io.GenericWritable -->
  11055. <class name="GenericWritable" extends="java.lang.Object"
  11056. abstract="true"
  11057. static="false" final="false" visibility="public"
  11058. deprecated="not deprecated">
  11059. <implements name="org.apache.hadoop.io.Writable"/>
  11060. <implements name="org.apache.hadoop.conf.Configurable"/>
  11061. <constructor name="GenericWritable"
  11062. static="false" final="false" visibility="public"
  11063. deprecated="not deprecated">
  11064. </constructor>
  11065. <method name="set"
  11066. abstract="false" native="false" synchronized="false"
  11067. static="false" final="false" visibility="public"
  11068. deprecated="not deprecated">
  11069. <param name="obj" type="org.apache.hadoop.io.Writable"/>
  11070. <doc>
  11071. <![CDATA[Set the instance that is wrapped.
  11072. @param obj]]>
  11073. </doc>
  11074. </method>
  11075. <method name="get" return="org.apache.hadoop.io.Writable"
  11076. abstract="false" native="false" synchronized="false"
  11077. static="false" final="false" visibility="public"
  11078. deprecated="not deprecated">
  11079. <doc>
  11080. <![CDATA[Return the wrapped instance.]]>
  11081. </doc>
  11082. </method>
  11083. <method name="toString" return="java.lang.String"
  11084. abstract="false" native="false" synchronized="false"
  11085. static="false" final="false" visibility="public"
  11086. deprecated="not deprecated">
  11087. </method>
  11088. <method name="readFields"
  11089. abstract="false" native="false" synchronized="false"
  11090. static="false" final="false" visibility="public"
  11091. deprecated="not deprecated">
  11092. <param name="in" type="java.io.DataInput"/>
  11093. <exception name="IOException" type="java.io.IOException"/>
  11094. </method>
  11095. <method name="write"
  11096. abstract="false" native="false" synchronized="false"
  11097. static="false" final="false" visibility="public"
  11098. deprecated="not deprecated">
  11099. <param name="out" type="java.io.DataOutput"/>
  11100. <exception name="IOException" type="java.io.IOException"/>
  11101. </method>
  11102. <method name="getTypes" return="java.lang.Class[]"
  11103. abstract="true" native="false" synchronized="false"
  11104. static="false" final="false" visibility="protected"
  11105. deprecated="not deprecated">
  11106. <doc>
  11107. <![CDATA[Return all classes that may be wrapped. Subclasses should implement this
  11108. to return a constant array of classes.]]>
  11109. </doc>
  11110. </method>
  11111. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  11112. abstract="false" native="false" synchronized="false"
  11113. static="false" final="false" visibility="public"
  11114. deprecated="not deprecated">
  11115. </method>
  11116. <method name="setConf"
  11117. abstract="false" native="false" synchronized="false"
  11118. static="false" final="false" visibility="public"
  11119. deprecated="not deprecated">
  11120. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11121. </method>
  11122. <doc>
  11123. <![CDATA[A wrapper for Writable instances.
  11124. <p>
  11125. When two sequence files, which have same Key type but different Value
  11126. types, are mapped out to reduce, multiple Value types is not allowed.
  11127. In this case, this class can help you wrap instances with different types.
  11128. </p>
  11129. <p>
  11130. Compared with <code>ObjectWritable</code>, this class is much more effective,
  11131. because <code>ObjectWritable</code> will append the class declaration as a String
  11132. into the output file in every Key-Value pair.
  11133. </p>
  11134. <p>
  11135. Generic Writable implements {@link Configurable} interface, so that it will be
  11136. configured by the framework. The configuration is passed to the wrapped objects
  11137. implementing {@link Configurable} interface <i>before deserialization</i>.
  11138. </p>
  11139. how to use it: <br>
  11140. 1. Write your own class, such as GenericObject, which extends GenericWritable.<br>
  11141. 2. Implements the abstract method <code>getTypes()</code>, defines
  11142. the classes which will be wrapped in GenericObject in application.
  11143. Attention: this classes defined in <code>getTypes()</code> method, must
  11144. implement <code>Writable</code> interface.
  11145. <br><br>
  11146. The code looks like this:
  11147. <blockquote><pre>
  11148. public class GenericObject extends GenericWritable {
  11149. private static Class[] CLASSES = {
  11150. ClassType1.class,
  11151. ClassType2.class,
  11152. ClassType3.class,
  11153. };
  11154. protected Class[] getTypes() {
  11155. return CLASSES;
  11156. }
  11157. }
  11158. </pre></blockquote>
  11159. @since Nov 8, 2006]]>
  11160. </doc>
  11161. </class>
  11162. <!-- end class org.apache.hadoop.io.GenericWritable -->
  11163. <!-- start class org.apache.hadoop.io.InputBuffer -->
  11164. <class name="InputBuffer" extends="java.io.FilterInputStream"
  11165. abstract="false"
  11166. static="false" final="false" visibility="public"
  11167. deprecated="not deprecated">
  11168. <constructor name="InputBuffer"
  11169. static="false" final="false" visibility="public"
  11170. deprecated="not deprecated">
  11171. <doc>
  11172. <![CDATA[Constructs a new empty buffer.]]>
  11173. </doc>
  11174. </constructor>
  11175. <method name="reset"
  11176. abstract="false" native="false" synchronized="false"
  11177. static="false" final="false" visibility="public"
  11178. deprecated="not deprecated">
  11179. <param name="input" type="byte[]"/>
  11180. <param name="length" type="int"/>
  11181. <doc>
  11182. <![CDATA[Resets the data that the buffer reads.]]>
  11183. </doc>
  11184. </method>
  11185. <method name="reset"
  11186. abstract="false" native="false" synchronized="false"
  11187. static="false" final="false" visibility="public"
  11188. deprecated="not deprecated">
  11189. <param name="input" type="byte[]"/>
  11190. <param name="start" type="int"/>
  11191. <param name="length" type="int"/>
  11192. <doc>
  11193. <![CDATA[Resets the data that the buffer reads.]]>
  11194. </doc>
  11195. </method>
  11196. <method name="getPosition" return="int"
  11197. abstract="false" native="false" synchronized="false"
  11198. static="false" final="false" visibility="public"
  11199. deprecated="not deprecated">
  11200. <doc>
  11201. <![CDATA[Returns the current position in the input.]]>
  11202. </doc>
  11203. </method>
  11204. <method name="getLength" return="int"
  11205. abstract="false" native="false" synchronized="false"
  11206. static="false" final="false" visibility="public"
  11207. deprecated="not deprecated">
  11208. <doc>
  11209. <![CDATA[Returns the length of the input.]]>
  11210. </doc>
  11211. </method>
  11212. <doc>
  11213. <![CDATA[A reusable {@link InputStream} implementation that reads from an in-memory
  11214. buffer.
  11215. <p>This saves memory over creating a new InputStream and
  11216. ByteArrayInputStream each time data is read.
  11217. <p>Typical usage is something like the following:<pre>
  11218. InputBuffer buffer = new InputBuffer();
  11219. while (... loop condition ...) {
  11220. byte[] data = ... get data ...;
  11221. int dataLength = ... get data length ...;
  11222. buffer.reset(data, dataLength);
  11223. ... read buffer using InputStream methods ...
  11224. }
  11225. </pre>
  11226. @see DataInputBuffer
  11227. @see DataOutput]]>
  11228. </doc>
  11229. </class>
  11230. <!-- end class org.apache.hadoop.io.InputBuffer -->
  11231. <!-- start class org.apache.hadoop.io.IntWritable -->
  11232. <class name="IntWritable" extends="java.lang.Object"
  11233. abstract="false"
  11234. static="false" final="false" visibility="public"
  11235. deprecated="not deprecated">
  11236. <implements name="org.apache.hadoop.io.WritableComparable"/>
  11237. <constructor name="IntWritable"
  11238. static="false" final="false" visibility="public"
  11239. deprecated="not deprecated">
  11240. </constructor>
  11241. <constructor name="IntWritable" type="int"
  11242. static="false" final="false" visibility="public"
  11243. deprecated="not deprecated">
  11244. </constructor>
  11245. <method name="set"
  11246. abstract="false" native="false" synchronized="false"
  11247. static="false" final="false" visibility="public"
  11248. deprecated="not deprecated">
  11249. <param name="value" type="int"/>
  11250. <doc>
  11251. <![CDATA[Set the value of this IntWritable.]]>
  11252. </doc>
  11253. </method>
  11254. <method name="get" return="int"
  11255. abstract="false" native="false" synchronized="false"
  11256. static="false" final="false" visibility="public"
  11257. deprecated="not deprecated">
  11258. <doc>
  11259. <![CDATA[Return the value of this IntWritable.]]>
  11260. </doc>
  11261. </method>
  11262. <method name="readFields"
  11263. abstract="false" native="false" synchronized="false"
  11264. static="false" final="false" visibility="public"
  11265. deprecated="not deprecated">
  11266. <param name="in" type="java.io.DataInput"/>
  11267. <exception name="IOException" type="java.io.IOException"/>
  11268. </method>
  11269. <method name="write"
  11270. abstract="false" native="false" synchronized="false"
  11271. static="false" final="false" visibility="public"
  11272. deprecated="not deprecated">
  11273. <param name="out" type="java.io.DataOutput"/>
  11274. <exception name="IOException" type="java.io.IOException"/>
  11275. </method>
  11276. <method name="equals" return="boolean"
  11277. abstract="false" native="false" synchronized="false"
  11278. static="false" final="false" visibility="public"
  11279. deprecated="not deprecated">
  11280. <param name="o" type="java.lang.Object"/>
  11281. <doc>
  11282. <![CDATA[Returns true iff <code>o</code> is a IntWritable with the same value.]]>
  11283. </doc>
  11284. </method>
  11285. <method name="hashCode" return="int"
  11286. abstract="false" native="false" synchronized="false"
  11287. static="false" final="false" visibility="public"
  11288. deprecated="not deprecated">
  11289. </method>
  11290. <method name="compareTo" return="int"
  11291. abstract="false" native="false" synchronized="false"
  11292. static="false" final="false" visibility="public"
  11293. deprecated="not deprecated">
  11294. <param name="o" type="java.lang.Object"/>
  11295. <doc>
  11296. <![CDATA[Compares two IntWritables.]]>
  11297. </doc>
  11298. </method>
  11299. <method name="toString" return="java.lang.String"
  11300. abstract="false" native="false" synchronized="false"
  11301. static="false" final="false" visibility="public"
  11302. deprecated="not deprecated">
  11303. </method>
  11304. <doc>
  11305. <![CDATA[A WritableComparable for ints.]]>
  11306. </doc>
  11307. </class>
  11308. <!-- end class org.apache.hadoop.io.IntWritable -->
  11309. <!-- start class org.apache.hadoop.io.IntWritable.Comparator -->
  11310. <class name="IntWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  11311. abstract="false"
  11312. static="true" final="false" visibility="public"
  11313. deprecated="not deprecated">
  11314. <constructor name="IntWritable.Comparator"
  11315. static="false" final="false" visibility="public"
  11316. deprecated="not deprecated">
  11317. </constructor>
  11318. <method name="compare" return="int"
  11319. abstract="false" native="false" synchronized="false"
  11320. static="false" final="false" visibility="public"
  11321. deprecated="not deprecated">
  11322. <param name="b1" type="byte[]"/>
  11323. <param name="s1" type="int"/>
  11324. <param name="l1" type="int"/>
  11325. <param name="b2" type="byte[]"/>
  11326. <param name="s2" type="int"/>
  11327. <param name="l2" type="int"/>
  11328. </method>
  11329. <doc>
  11330. <![CDATA[A Comparator optimized for IntWritable.]]>
  11331. </doc>
  11332. </class>
  11333. <!-- end class org.apache.hadoop.io.IntWritable.Comparator -->
  11334. <!-- start class org.apache.hadoop.io.IOUtils -->
  11335. <class name="IOUtils" extends="java.lang.Object"
  11336. abstract="false"
  11337. static="false" final="false" visibility="public"
  11338. deprecated="not deprecated">
  11339. <constructor name="IOUtils"
  11340. static="false" final="false" visibility="public"
  11341. deprecated="not deprecated">
  11342. </constructor>
  11343. <method name="copyBytes"
  11344. abstract="false" native="false" synchronized="false"
  11345. static="true" final="false" visibility="public"
  11346. deprecated="not deprecated">
  11347. <param name="in" type="java.io.InputStream"/>
  11348. <param name="out" type="java.io.OutputStream"/>
  11349. <param name="buffSize" type="int"/>
  11350. <param name="close" type="boolean"/>
  11351. <exception name="IOException" type="java.io.IOException"/>
  11352. <doc>
  11353. <![CDATA[Copies from one stream to another.
  11354. @param in InputStrem to read from
  11355. @param out OutputStream to write to
  11356. @param buffSize the size of the buffer
  11357. @param close whether or not close the InputStream and
  11358. OutputStream at the end. The streams are closed in the finally clause.]]>
  11359. </doc>
  11360. </method>
  11361. <method name="copyBytes"
  11362. abstract="false" native="false" synchronized="false"
  11363. static="true" final="false" visibility="public"
  11364. deprecated="not deprecated">
  11365. <param name="in" type="java.io.InputStream"/>
  11366. <param name="out" type="java.io.OutputStream"/>
  11367. <param name="buffSize" type="int"/>
  11368. <exception name="IOException" type="java.io.IOException"/>
  11369. <doc>
  11370. <![CDATA[Copies from one stream to another.
  11371. @param in InputStrem to read from
  11372. @param out OutputStream to write to
  11373. @param buffSize the size of the buffer]]>
  11374. </doc>
  11375. </method>
  11376. <method name="copyBytes"
  11377. abstract="false" native="false" synchronized="false"
  11378. static="true" final="false" visibility="public"
  11379. deprecated="not deprecated">
  11380. <param name="in" type="java.io.InputStream"/>
  11381. <param name="out" type="java.io.OutputStream"/>
  11382. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11383. <exception name="IOException" type="java.io.IOException"/>
  11384. <doc>
  11385. <![CDATA[Copies from one stream to another. <strong>closes the input and output streams
  11386. at the end</strong>.
  11387. @param in InputStrem to read from
  11388. @param out OutputStream to write to
  11389. @param conf the Configuration object]]>
  11390. </doc>
  11391. </method>
  11392. <method name="copyBytes"
  11393. abstract="false" native="false" synchronized="false"
  11394. static="true" final="false" visibility="public"
  11395. deprecated="not deprecated">
  11396. <param name="in" type="java.io.InputStream"/>
  11397. <param name="out" type="java.io.OutputStream"/>
  11398. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11399. <param name="close" type="boolean"/>
  11400. <exception name="IOException" type="java.io.IOException"/>
  11401. <doc>
  11402. <![CDATA[Copies from one stream to another.
  11403. @param in InputStrem to read from
  11404. @param out OutputStream to write to
  11405. @param conf the Configuration object
  11406. @param close whether or not close the InputStream and
  11407. OutputStream at the end. The streams are closed in the finally clause.]]>
  11408. </doc>
  11409. </method>
  11410. <method name="copyBytes"
  11411. abstract="false" native="false" synchronized="false"
  11412. static="true" final="false" visibility="public"
  11413. deprecated="not deprecated">
  11414. <param name="in" type="java.io.InputStream"/>
  11415. <param name="out" type="java.io.OutputStream"/>
  11416. <param name="length" type="long"/>
  11417. <param name="bufferSize" type="int"/>
  11418. <param name="close" type="boolean"/>
  11419. <exception name="IOException" type="java.io.IOException"/>
  11420. <doc>
  11421. <![CDATA[Copies the specified length of bytes from in to out.
  11422. @param in InputStream to read from
  11423. @param out OutputStream to write to
  11424. @param length number of bytes to copy
  11425. @param bufferSize the size of the buffer
  11426. @param close whether to close the streams
  11427. @throws IOException if bytes can not be read or written]]>
  11428. </doc>
  11429. </method>
  11430. <method name="wrappedReadForCompressedData" return="int"
  11431. abstract="false" native="false" synchronized="false"
  11432. static="true" final="false" visibility="public"
  11433. deprecated="not deprecated">
  11434. <param name="is" type="java.io.InputStream"/>
  11435. <param name="buf" type="byte[]"/>
  11436. <param name="off" type="int"/>
  11437. <param name="len" type="int"/>
  11438. <exception name="IOException" type="java.io.IOException"/>
  11439. <doc>
  11440. <![CDATA[Utility wrapper for reading from {@link InputStream}. It catches any errors
  11441. thrown by the underlying stream (either IO or decompression-related), and
  11442. re-throws as an IOException.
  11443. @param is - InputStream to be read from
  11444. @param buf - buffer the data is read into
  11445. @param off - offset within buf
  11446. @param len - amount of data to be read
  11447. @return number of bytes read]]>
  11448. </doc>
  11449. </method>
  11450. <method name="readFully"
  11451. abstract="false" native="false" synchronized="false"
  11452. static="true" final="false" visibility="public"
  11453. deprecated="not deprecated">
  11454. <param name="in" type="java.io.InputStream"/>
  11455. <param name="buf" type="byte[]"/>
  11456. <param name="off" type="int"/>
  11457. <param name="len" type="int"/>
  11458. <exception name="IOException" type="java.io.IOException"/>
  11459. <doc>
  11460. <![CDATA[Reads len bytes in a loop.
  11461. @param in The InputStream to read from
  11462. @param buf The buffer to fill
  11463. @param off offset from the buffer
  11464. @param len the length of bytes to read
  11465. @throws IOException if it could not read requested number of bytes
  11466. for any reason (including EOF)]]>
  11467. </doc>
  11468. </method>
  11469. <method name="readFileChannelFully"
  11470. abstract="false" native="false" synchronized="false"
  11471. static="true" final="false" visibility="public"
  11472. deprecated="not deprecated">
  11473. <param name="fileChannel" type="java.nio.channels.FileChannel"/>
  11474. <param name="buf" type="byte[]"/>
  11475. <param name="off" type="int"/>
  11476. <param name="len" type="int"/>
  11477. <exception name="IOException" type="java.io.IOException"/>
  11478. <doc>
  11479. <![CDATA[Reads len bytes in a loop using the channel of the stream
  11480. @param fileChannel a FileChannel to read len bytes into buf
  11481. @param buf The buffer to fill
  11482. @param off offset from the buffer
  11483. @param len the length of bytes to read
  11484. @throws IOException if it could not read requested number of bytes
  11485. for any reason (including EOF)]]>
  11486. </doc>
  11487. </method>
  11488. <method name="skipFully"
  11489. abstract="false" native="false" synchronized="false"
  11490. static="true" final="false" visibility="public"
  11491. deprecated="not deprecated">
  11492. <param name="in" type="java.io.InputStream"/>
  11493. <param name="len" type="long"/>
  11494. <exception name="IOException" type="java.io.IOException"/>
  11495. <doc>
  11496. <![CDATA[Similar to readFully(). Skips bytes in a loop.
  11497. @param in The InputStream to skip bytes from
  11498. @param len number of bytes to skip.
  11499. @throws IOException if it could not skip requested number of bytes
  11500. for any reason (including EOF)]]>
  11501. </doc>
  11502. </method>
  11503. <method name="cleanup"
  11504. abstract="false" native="false" synchronized="false"
  11505. static="true" final="false" visibility="public"
  11506. deprecated="not deprecated">
  11507. <param name="log" type="org.apache.commons.logging.Log"/>
  11508. <param name="closeables" type="java.io.Closeable[]"/>
  11509. <doc>
  11510. <![CDATA[Close the Closeable objects and <b>ignore</b> any {@link IOException} or
  11511. null pointers. Must only be used for cleanup in exception handlers.
  11512. @param log the log to record problems to at debug level. Can be null.
  11513. @param closeables the objects to close]]>
  11514. </doc>
  11515. </method>
  11516. <method name="closeStream"
  11517. abstract="false" native="false" synchronized="false"
  11518. static="true" final="false" visibility="public"
  11519. deprecated="not deprecated">
  11520. <param name="stream" type="java.io.Closeable"/>
  11521. <doc>
  11522. <![CDATA[Closes the stream ignoring {@link IOException}.
  11523. Must only be called in cleaning up from exception handlers.
  11524. @param stream the Stream to close]]>
  11525. </doc>
  11526. </method>
  11527. <method name="closeSocket"
  11528. abstract="false" native="false" synchronized="false"
  11529. static="true" final="false" visibility="public"
  11530. deprecated="not deprecated">
  11531. <param name="sock" type="java.net.Socket"/>
  11532. <doc>
  11533. <![CDATA[Closes the socket ignoring {@link IOException}
  11534. @param sock the Socket to close]]>
  11535. </doc>
  11536. </method>
  11537. <doc>
  11538. <![CDATA[An utility class for I/O related functionality.]]>
  11539. </doc>
  11540. </class>
  11541. <!-- end class org.apache.hadoop.io.IOUtils -->
  11542. <!-- start class org.apache.hadoop.io.IOUtils.NullOutputStream -->
  11543. <class name="IOUtils.NullOutputStream" extends="java.io.OutputStream"
  11544. abstract="false"
  11545. static="true" final="false" visibility="public"
  11546. deprecated="not deprecated">
  11547. <constructor name="IOUtils.NullOutputStream"
  11548. static="false" final="false" visibility="public"
  11549. deprecated="not deprecated">
  11550. </constructor>
  11551. <method name="write"
  11552. abstract="false" native="false" synchronized="false"
  11553. static="false" final="false" visibility="public"
  11554. deprecated="not deprecated">
  11555. <param name="b" type="byte[]"/>
  11556. <param name="off" type="int"/>
  11557. <param name="len" type="int"/>
  11558. <exception name="IOException" type="java.io.IOException"/>
  11559. </method>
  11560. <method name="write"
  11561. abstract="false" native="false" synchronized="false"
  11562. static="false" final="false" visibility="public"
  11563. deprecated="not deprecated">
  11564. <param name="b" type="int"/>
  11565. <exception name="IOException" type="java.io.IOException"/>
  11566. </method>
  11567. <doc>
  11568. <![CDATA[/dev/null of OutputStreams.]]>
  11569. </doc>
  11570. </class>
  11571. <!-- end class org.apache.hadoop.io.IOUtils.NullOutputStream -->
  11572. <!-- start class org.apache.hadoop.io.LongWritable -->
  11573. <class name="LongWritable" extends="java.lang.Object"
  11574. abstract="false"
  11575. static="false" final="false" visibility="public"
  11576. deprecated="not deprecated">
  11577. <implements name="org.apache.hadoop.io.WritableComparable"/>
  11578. <constructor name="LongWritable"
  11579. static="false" final="false" visibility="public"
  11580. deprecated="not deprecated">
  11581. </constructor>
  11582. <constructor name="LongWritable" type="long"
  11583. static="false" final="false" visibility="public"
  11584. deprecated="not deprecated">
  11585. </constructor>
  11586. <method name="set"
  11587. abstract="false" native="false" synchronized="false"
  11588. static="false" final="false" visibility="public"
  11589. deprecated="not deprecated">
  11590. <param name="value" type="long"/>
  11591. <doc>
  11592. <![CDATA[Set the value of this LongWritable.]]>
  11593. </doc>
  11594. </method>
  11595. <method name="get" return="long"
  11596. abstract="false" native="false" synchronized="false"
  11597. static="false" final="false" visibility="public"
  11598. deprecated="not deprecated">
  11599. <doc>
  11600. <![CDATA[Return the value of this LongWritable.]]>
  11601. </doc>
  11602. </method>
  11603. <method name="readFields"
  11604. abstract="false" native="false" synchronized="false"
  11605. static="false" final="false" visibility="public"
  11606. deprecated="not deprecated">
  11607. <param name="in" type="java.io.DataInput"/>
  11608. <exception name="IOException" type="java.io.IOException"/>
  11609. </method>
  11610. <method name="write"
  11611. abstract="false" native="false" synchronized="false"
  11612. static="false" final="false" visibility="public"
  11613. deprecated="not deprecated">
  11614. <param name="out" type="java.io.DataOutput"/>
  11615. <exception name="IOException" type="java.io.IOException"/>
  11616. </method>
  11617. <method name="equals" return="boolean"
  11618. abstract="false" native="false" synchronized="false"
  11619. static="false" final="false" visibility="public"
  11620. deprecated="not deprecated">
  11621. <param name="o" type="java.lang.Object"/>
  11622. <doc>
  11623. <![CDATA[Returns true iff <code>o</code> is a LongWritable with the same value.]]>
  11624. </doc>
  11625. </method>
  11626. <method name="hashCode" return="int"
  11627. abstract="false" native="false" synchronized="false"
  11628. static="false" final="false" visibility="public"
  11629. deprecated="not deprecated">
  11630. </method>
  11631. <method name="compareTo" return="int"
  11632. abstract="false" native="false" synchronized="false"
  11633. static="false" final="false" visibility="public"
  11634. deprecated="not deprecated">
  11635. <param name="o" type="java.lang.Object"/>
  11636. <doc>
  11637. <![CDATA[Compares two LongWritables.]]>
  11638. </doc>
  11639. </method>
  11640. <method name="toString" return="java.lang.String"
  11641. abstract="false" native="false" synchronized="false"
  11642. static="false" final="false" visibility="public"
  11643. deprecated="not deprecated">
  11644. </method>
  11645. <doc>
  11646. <![CDATA[A WritableComparable for longs.]]>
  11647. </doc>
  11648. </class>
  11649. <!-- end class org.apache.hadoop.io.LongWritable -->
  11650. <!-- start class org.apache.hadoop.io.LongWritable.Comparator -->
  11651. <class name="LongWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  11652. abstract="false"
  11653. static="true" final="false" visibility="public"
  11654. deprecated="not deprecated">
  11655. <constructor name="LongWritable.Comparator"
  11656. static="false" final="false" visibility="public"
  11657. deprecated="not deprecated">
  11658. </constructor>
  11659. <method name="compare" return="int"
  11660. abstract="false" native="false" synchronized="false"
  11661. static="false" final="false" visibility="public"
  11662. deprecated="not deprecated">
  11663. <param name="b1" type="byte[]"/>
  11664. <param name="s1" type="int"/>
  11665. <param name="l1" type="int"/>
  11666. <param name="b2" type="byte[]"/>
  11667. <param name="s2" type="int"/>
  11668. <param name="l2" type="int"/>
  11669. </method>
  11670. <doc>
  11671. <![CDATA[A Comparator optimized for LongWritable.]]>
  11672. </doc>
  11673. </class>
  11674. <!-- end class org.apache.hadoop.io.LongWritable.Comparator -->
  11675. <!-- start class org.apache.hadoop.io.LongWritable.DecreasingComparator -->
  11676. <class name="LongWritable.DecreasingComparator" extends="org.apache.hadoop.io.LongWritable.Comparator"
  11677. abstract="false"
  11678. static="true" final="false" visibility="public"
  11679. deprecated="not deprecated">
  11680. <constructor name="LongWritable.DecreasingComparator"
  11681. static="false" final="false" visibility="public"
  11682. deprecated="not deprecated">
  11683. </constructor>
  11684. <method name="compare" return="int"
  11685. abstract="false" native="false" synchronized="false"
  11686. static="false" final="false" visibility="public"
  11687. deprecated="not deprecated">
  11688. <param name="a" type="org.apache.hadoop.io.WritableComparable"/>
  11689. <param name="b" type="org.apache.hadoop.io.WritableComparable"/>
  11690. </method>
  11691. <method name="compare" return="int"
  11692. abstract="false" native="false" synchronized="false"
  11693. static="false" final="false" visibility="public"
  11694. deprecated="not deprecated">
  11695. <param name="b1" type="byte[]"/>
  11696. <param name="s1" type="int"/>
  11697. <param name="l1" type="int"/>
  11698. <param name="b2" type="byte[]"/>
  11699. <param name="s2" type="int"/>
  11700. <param name="l2" type="int"/>
  11701. </method>
  11702. <doc>
  11703. <![CDATA[A decreasing Comparator optimized for LongWritable.]]>
  11704. </doc>
  11705. </class>
  11706. <!-- end class org.apache.hadoop.io.LongWritable.DecreasingComparator -->
  11707. <!-- start class org.apache.hadoop.io.MapFile -->
  11708. <class name="MapFile" extends="java.lang.Object"
  11709. abstract="false"
  11710. static="false" final="false" visibility="public"
  11711. deprecated="not deprecated">
  11712. <constructor name="MapFile"
  11713. static="false" final="false" visibility="protected"
  11714. deprecated="not deprecated">
  11715. </constructor>
  11716. <method name="rename"
  11717. abstract="false" native="false" synchronized="false"
  11718. static="true" final="false" visibility="public"
  11719. deprecated="not deprecated">
  11720. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11721. <param name="oldName" type="java.lang.String"/>
  11722. <param name="newName" type="java.lang.String"/>
  11723. <exception name="IOException" type="java.io.IOException"/>
  11724. <doc>
  11725. <![CDATA[Renames an existing map directory.]]>
  11726. </doc>
  11727. </method>
  11728. <method name="delete"
  11729. abstract="false" native="false" synchronized="false"
  11730. static="true" final="false" visibility="public"
  11731. deprecated="not deprecated">
  11732. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11733. <param name="name" type="java.lang.String"/>
  11734. <exception name="IOException" type="java.io.IOException"/>
  11735. <doc>
  11736. <![CDATA[Deletes the named map file.]]>
  11737. </doc>
  11738. </method>
  11739. <method name="fix" return="long"
  11740. abstract="false" native="false" synchronized="false"
  11741. static="true" final="false" visibility="public"
  11742. deprecated="not deprecated">
  11743. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11744. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  11745. <param name="keyClass" type="java.lang.Class"/>
  11746. <param name="valueClass" type="java.lang.Class"/>
  11747. <param name="dryrun" type="boolean"/>
  11748. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11749. <exception name="Exception" type="java.lang.Exception"/>
  11750. <doc>
  11751. <![CDATA[This method attempts to fix a corrupt MapFile by re-creating its index.
  11752. @param fs filesystem
  11753. @param dir directory containing the MapFile data and index
  11754. @param keyClass key class (has to be a subclass of Writable)
  11755. @param valueClass value class (has to be a subclass of Writable)
  11756. @param dryrun do not perform any changes, just report what needs to be done
  11757. @return number of valid entries in this MapFile, or -1 if no fixing was needed
  11758. @throws Exception]]>
  11759. </doc>
  11760. </method>
  11761. <method name="main"
  11762. abstract="false" native="false" synchronized="false"
  11763. static="true" final="false" visibility="public"
  11764. deprecated="not deprecated">
  11765. <param name="args" type="java.lang.String[]"/>
  11766. <exception name="Exception" type="java.lang.Exception"/>
  11767. </method>
  11768. <field name="INDEX_FILE_NAME" type="java.lang.String"
  11769. transient="false" volatile="false"
  11770. static="true" final="true" visibility="public"
  11771. deprecated="not deprecated">
  11772. <doc>
  11773. <![CDATA[The name of the index file.]]>
  11774. </doc>
  11775. </field>
  11776. <field name="DATA_FILE_NAME" type="java.lang.String"
  11777. transient="false" volatile="false"
  11778. static="true" final="true" visibility="public"
  11779. deprecated="not deprecated">
  11780. <doc>
  11781. <![CDATA[The name of the data file.]]>
  11782. </doc>
  11783. </field>
  11784. <doc>
  11785. <![CDATA[A file-based map from keys to values.
  11786. <p>A map is a directory containing two files, the <code>data</code> file,
  11787. containing all keys and values in the map, and a smaller <code>index</code>
  11788. file, containing a fraction of the keys. The fraction is determined by
  11789. {@link Writer#getIndexInterval()}.
  11790. <p>The index file is read entirely into memory. Thus key implementations
  11791. should try to keep themselves small.
  11792. <p>Map files are created by adding entries in-order. To maintain a large
  11793. database, perform updates by copying the previous version of a database and
  11794. merging in a sorted change list, to create a new version of the database in
  11795. a new file. Sorting large change lists can be done with {@link
  11796. SequenceFile.Sorter}.]]>
  11797. </doc>
  11798. </class>
  11799. <!-- end class org.apache.hadoop.io.MapFile -->
  11800. <!-- start class org.apache.hadoop.io.MapFile.Reader -->
  11801. <class name="MapFile.Reader" extends="java.lang.Object"
  11802. abstract="false"
  11803. static="true" final="false" visibility="public"
  11804. deprecated="not deprecated">
  11805. <implements name="java.io.Closeable"/>
  11806. <constructor name="MapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  11807. static="false" final="false" visibility="public"
  11808. deprecated="not deprecated">
  11809. <exception name="IOException" type="java.io.IOException"/>
  11810. <doc>
  11811. <![CDATA[Construct a map reader for the named map.]]>
  11812. </doc>
  11813. </constructor>
  11814. <constructor name="MapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration"
  11815. static="false" final="false" visibility="public"
  11816. deprecated="not deprecated">
  11817. <exception name="IOException" type="java.io.IOException"/>
  11818. <doc>
  11819. <![CDATA[Construct a map reader for the named map using the named comparator.]]>
  11820. </doc>
  11821. </constructor>
  11822. <constructor name="MapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration, boolean"
  11823. static="false" final="false" visibility="protected"
  11824. deprecated="not deprecated">
  11825. <exception name="IOException" type="java.io.IOException"/>
  11826. <doc>
  11827. <![CDATA[Hook to allow subclasses to defer opening streams until further
  11828. initialization is complete.
  11829. @see #createDataFileReader(FileSystem, Path, Configuration)]]>
  11830. </doc>
  11831. </constructor>
  11832. <method name="getKeyClass" return="java.lang.Class"
  11833. abstract="false" native="false" synchronized="false"
  11834. static="false" final="false" visibility="public"
  11835. deprecated="not deprecated">
  11836. <doc>
  11837. <![CDATA[Returns the class of keys in this file.]]>
  11838. </doc>
  11839. </method>
  11840. <method name="getValueClass" return="java.lang.Class"
  11841. abstract="false" native="false" synchronized="false"
  11842. static="false" final="false" visibility="public"
  11843. deprecated="not deprecated">
  11844. <doc>
  11845. <![CDATA[Returns the class of values in this file.]]>
  11846. </doc>
  11847. </method>
  11848. <method name="open"
  11849. abstract="false" native="false" synchronized="true"
  11850. static="false" final="false" visibility="protected"
  11851. deprecated="not deprecated">
  11852. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11853. <param name="dirName" type="java.lang.String"/>
  11854. <param name="comparator" type="org.apache.hadoop.io.WritableComparator"/>
  11855. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11856. <exception name="IOException" type="java.io.IOException"/>
  11857. </method>
  11858. <method name="createDataFileReader" return="org.apache.hadoop.io.SequenceFile.Reader"
  11859. abstract="false" native="false" synchronized="false"
  11860. static="false" final="false" visibility="protected"
  11861. deprecated="not deprecated">
  11862. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11863. <param name="dataFile" type="org.apache.hadoop.fs.Path"/>
  11864. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11865. <exception name="IOException" type="java.io.IOException"/>
  11866. <doc>
  11867. <![CDATA[Override this method to specialize the type of
  11868. {@link SequenceFile.Reader} returned.]]>
  11869. </doc>
  11870. </method>
  11871. <method name="reset"
  11872. abstract="false" native="false" synchronized="true"
  11873. static="false" final="false" visibility="public"
  11874. deprecated="not deprecated">
  11875. <exception name="IOException" type="java.io.IOException"/>
  11876. <doc>
  11877. <![CDATA[Re-positions the reader before its first key.]]>
  11878. </doc>
  11879. </method>
  11880. <method name="midKey" return="org.apache.hadoop.io.WritableComparable"
  11881. abstract="false" native="false" synchronized="true"
  11882. static="false" final="false" visibility="public"
  11883. deprecated="not deprecated">
  11884. <exception name="IOException" type="java.io.IOException"/>
  11885. <doc>
  11886. <![CDATA[Get the key at approximately the middle of the file.
  11887. @throws IOException]]>
  11888. </doc>
  11889. </method>
  11890. <method name="finalKey"
  11891. abstract="false" native="false" synchronized="true"
  11892. static="false" final="false" visibility="public"
  11893. deprecated="not deprecated">
  11894. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  11895. <exception name="IOException" type="java.io.IOException"/>
  11896. <doc>
  11897. <![CDATA[Reads the final key from the file.
  11898. @param key key to read into]]>
  11899. </doc>
  11900. </method>
  11901. <method name="seek" return="boolean"
  11902. abstract="false" native="false" synchronized="true"
  11903. static="false" final="false" visibility="public"
  11904. deprecated="not deprecated">
  11905. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  11906. <exception name="IOException" type="java.io.IOException"/>
  11907. <doc>
  11908. <![CDATA[Positions the reader at the named key, or if none such exists, at the
  11909. first entry after the named key. Returns true iff the named key exists
  11910. in this map.]]>
  11911. </doc>
  11912. </method>
  11913. <method name="next" return="boolean"
  11914. abstract="false" native="false" synchronized="true"
  11915. static="false" final="false" visibility="public"
  11916. deprecated="not deprecated">
  11917. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  11918. <param name="val" type="org.apache.hadoop.io.Writable"/>
  11919. <exception name="IOException" type="java.io.IOException"/>
  11920. <doc>
  11921. <![CDATA[Read the next key/value pair in the map into <code>key</code> and
  11922. <code>val</code>. Returns true if such a pair exists and false when at
  11923. the end of the map]]>
  11924. </doc>
  11925. </method>
  11926. <method name="get" return="org.apache.hadoop.io.Writable"
  11927. abstract="false" native="false" synchronized="true"
  11928. static="false" final="false" visibility="public"
  11929. deprecated="not deprecated">
  11930. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  11931. <param name="val" type="org.apache.hadoop.io.Writable"/>
  11932. <exception name="IOException" type="java.io.IOException"/>
  11933. <doc>
  11934. <![CDATA[Return the value for the named key, or null if none exists.]]>
  11935. </doc>
  11936. </method>
  11937. <method name="getClosest" return="org.apache.hadoop.io.WritableComparable"
  11938. abstract="false" native="false" synchronized="true"
  11939. static="false" final="false" visibility="public"
  11940. deprecated="not deprecated">
  11941. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  11942. <param name="val" type="org.apache.hadoop.io.Writable"/>
  11943. <exception name="IOException" type="java.io.IOException"/>
  11944. <doc>
  11945. <![CDATA[Finds the record that is the closest match to the specified key.
  11946. Returns <code>key</code> or if it does not exist, at the first entry
  11947. after the named key.
  11948. - * @param key - key that we're trying to find
  11949. - * @param val - data value if key is found
  11950. - * @return - the key that was the closest match or null if eof.]]>
  11951. </doc>
  11952. </method>
  11953. <method name="getClosest" return="org.apache.hadoop.io.WritableComparable"
  11954. abstract="false" native="false" synchronized="true"
  11955. static="false" final="false" visibility="public"
  11956. deprecated="not deprecated">
  11957. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  11958. <param name="val" type="org.apache.hadoop.io.Writable"/>
  11959. <param name="before" type="boolean"/>
  11960. <exception name="IOException" type="java.io.IOException"/>
  11961. <doc>
  11962. <![CDATA[Finds the record that is the closest match to the specified key.
  11963. @param key - key that we're trying to find
  11964. @param val - data value if key is found
  11965. @param before - IF true, and <code>key</code> does not exist, return
  11966. the first entry that falls just before the <code>key</code>. Otherwise,
  11967. return the record that sorts just after.
  11968. @return - the key that was the closest match or null if eof.]]>
  11969. </doc>
  11970. </method>
  11971. <method name="close"
  11972. abstract="false" native="false" synchronized="true"
  11973. static="false" final="false" visibility="public"
  11974. deprecated="not deprecated">
  11975. <exception name="IOException" type="java.io.IOException"/>
  11976. <doc>
  11977. <![CDATA[Close the map.]]>
  11978. </doc>
  11979. </method>
  11980. <doc>
  11981. <![CDATA[Provide access to an existing map.]]>
  11982. </doc>
  11983. </class>
  11984. <!-- end class org.apache.hadoop.io.MapFile.Reader -->
  11985. <!-- start class org.apache.hadoop.io.MapFile.Writer -->
  11986. <class name="MapFile.Writer" extends="java.lang.Object"
  11987. abstract="false"
  11988. static="true" final="false" visibility="public"
  11989. deprecated="not deprecated">
  11990. <implements name="java.io.Closeable"/>
  11991. <constructor name="MapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, java.lang.Class"
  11992. static="false" final="false" visibility="public"
  11993. deprecated="not deprecated">
  11994. <exception name="IOException" type="java.io.IOException"/>
  11995. <doc>
  11996. <![CDATA[Create the named map for keys of the named class.]]>
  11997. </doc>
  11998. </constructor>
  11999. <constructor name="MapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType, org.apache.hadoop.util.Progressable"
  12000. static="false" final="false" visibility="public"
  12001. deprecated="not deprecated">
  12002. <exception name="IOException" type="java.io.IOException"/>
  12003. <doc>
  12004. <![CDATA[Create the named map for keys of the named class.]]>
  12005. </doc>
  12006. </constructor>
  12007. <constructor name="MapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType, org.apache.hadoop.io.compress.CompressionCodec, org.apache.hadoop.util.Progressable"
  12008. static="false" final="false" visibility="public"
  12009. deprecated="not deprecated">
  12010. <exception name="IOException" type="java.io.IOException"/>
  12011. <doc>
  12012. <![CDATA[Create the named map for keys of the named class.]]>
  12013. </doc>
  12014. </constructor>
  12015. <constructor name="MapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType"
  12016. static="false" final="false" visibility="public"
  12017. deprecated="not deprecated">
  12018. <exception name="IOException" type="java.io.IOException"/>
  12019. <doc>
  12020. <![CDATA[Create the named map for keys of the named class.]]>
  12021. </doc>
  12022. </constructor>
  12023. <constructor name="MapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, java.lang.Class"
  12024. static="false" final="false" visibility="public"
  12025. deprecated="not deprecated">
  12026. <exception name="IOException" type="java.io.IOException"/>
  12027. <doc>
  12028. <![CDATA[Create the named map using the named key comparator.]]>
  12029. </doc>
  12030. </constructor>
  12031. <constructor name="MapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType"
  12032. static="false" final="false" visibility="public"
  12033. deprecated="not deprecated">
  12034. <exception name="IOException" type="java.io.IOException"/>
  12035. <doc>
  12036. <![CDATA[Create the named map using the named key comparator.]]>
  12037. </doc>
  12038. </constructor>
  12039. <constructor name="MapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType, org.apache.hadoop.util.Progressable"
  12040. static="false" final="false" visibility="public"
  12041. deprecated="not deprecated">
  12042. <exception name="IOException" type="java.io.IOException"/>
  12043. <doc>
  12044. <![CDATA[Create the named map using the named key comparator.]]>
  12045. </doc>
  12046. </constructor>
  12047. <constructor name="MapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType, org.apache.hadoop.io.compress.CompressionCodec, org.apache.hadoop.util.Progressable"
  12048. static="false" final="false" visibility="public"
  12049. deprecated="not deprecated">
  12050. <exception name="IOException" type="java.io.IOException"/>
  12051. <doc>
  12052. <![CDATA[Create the named map using the named key comparator.]]>
  12053. </doc>
  12054. </constructor>
  12055. <method name="getIndexInterval" return="int"
  12056. abstract="false" native="false" synchronized="false"
  12057. static="false" final="false" visibility="public"
  12058. deprecated="not deprecated">
  12059. <doc>
  12060. <![CDATA[The number of entries that are added before an index entry is added.]]>
  12061. </doc>
  12062. </method>
  12063. <method name="setIndexInterval"
  12064. abstract="false" native="false" synchronized="false"
  12065. static="false" final="false" visibility="public"
  12066. deprecated="not deprecated">
  12067. <param name="interval" type="int"/>
  12068. <doc>
  12069. <![CDATA[Sets the index interval.
  12070. @see #getIndexInterval()]]>
  12071. </doc>
  12072. </method>
  12073. <method name="setIndexInterval"
  12074. abstract="false" native="false" synchronized="false"
  12075. static="true" final="false" visibility="public"
  12076. deprecated="not deprecated">
  12077. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12078. <param name="interval" type="int"/>
  12079. <doc>
  12080. <![CDATA[Sets the index interval and stores it in conf
  12081. @see #getIndexInterval()]]>
  12082. </doc>
  12083. </method>
  12084. <method name="close"
  12085. abstract="false" native="false" synchronized="true"
  12086. static="false" final="false" visibility="public"
  12087. deprecated="not deprecated">
  12088. <exception name="IOException" type="java.io.IOException"/>
  12089. <doc>
  12090. <![CDATA[Close the map.]]>
  12091. </doc>
  12092. </method>
  12093. <method name="append"
  12094. abstract="false" native="false" synchronized="true"
  12095. static="false" final="false" visibility="public"
  12096. deprecated="not deprecated">
  12097. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  12098. <param name="val" type="org.apache.hadoop.io.Writable"/>
  12099. <exception name="IOException" type="java.io.IOException"/>
  12100. <doc>
  12101. <![CDATA[Append a key/value pair to the map. The key must be greater or equal
  12102. to the previous key added to the map.]]>
  12103. </doc>
  12104. </method>
  12105. <doc>
  12106. <![CDATA[Writes a new map.]]>
  12107. </doc>
  12108. </class>
  12109. <!-- end class org.apache.hadoop.io.MapFile.Writer -->
  12110. <!-- start class org.apache.hadoop.io.MapWritable -->
  12111. <class name="MapWritable" extends="org.apache.hadoop.io.AbstractMapWritable"
  12112. abstract="false"
  12113. static="false" final="false" visibility="public"
  12114. deprecated="not deprecated">
  12115. <implements name="java.util.Map"/>
  12116. <constructor name="MapWritable"
  12117. static="false" final="false" visibility="public"
  12118. deprecated="not deprecated">
  12119. <doc>
  12120. <![CDATA[Default constructor.]]>
  12121. </doc>
  12122. </constructor>
  12123. <constructor name="MapWritable" type="org.apache.hadoop.io.MapWritable"
  12124. static="false" final="false" visibility="public"
  12125. deprecated="not deprecated">
  12126. <doc>
  12127. <![CDATA[Copy constructor.
  12128. @param other the map to copy from]]>
  12129. </doc>
  12130. </constructor>
  12131. <method name="clear"
  12132. abstract="false" native="false" synchronized="false"
  12133. static="false" final="false" visibility="public"
  12134. deprecated="not deprecated">
  12135. <doc>
  12136. <![CDATA[{@inheritDoc}]]>
  12137. </doc>
  12138. </method>
  12139. <method name="containsKey" return="boolean"
  12140. abstract="false" native="false" synchronized="false"
  12141. static="false" final="false" visibility="public"
  12142. deprecated="not deprecated">
  12143. <param name="key" type="java.lang.Object"/>
  12144. <doc>
  12145. <![CDATA[{@inheritDoc}]]>
  12146. </doc>
  12147. </method>
  12148. <method name="containsValue" return="boolean"
  12149. abstract="false" native="false" synchronized="false"
  12150. static="false" final="false" visibility="public"
  12151. deprecated="not deprecated">
  12152. <param name="value" type="java.lang.Object"/>
  12153. <doc>
  12154. <![CDATA[{@inheritDoc}]]>
  12155. </doc>
  12156. </method>
  12157. <method name="entrySet" return="java.util.Set"
  12158. abstract="false" native="false" synchronized="false"
  12159. static="false" final="false" visibility="public"
  12160. deprecated="not deprecated">
  12161. <doc>
  12162. <![CDATA[{@inheritDoc}]]>
  12163. </doc>
  12164. </method>
  12165. <method name="get" return="org.apache.hadoop.io.Writable"
  12166. abstract="false" native="false" synchronized="false"
  12167. static="false" final="false" visibility="public"
  12168. deprecated="not deprecated">
  12169. <param name="key" type="java.lang.Object"/>
  12170. <doc>
  12171. <![CDATA[{@inheritDoc}]]>
  12172. </doc>
  12173. </method>
  12174. <method name="isEmpty" return="boolean"
  12175. abstract="false" native="false" synchronized="false"
  12176. static="false" final="false" visibility="public"
  12177. deprecated="not deprecated">
  12178. <doc>
  12179. <![CDATA[{@inheritDoc}]]>
  12180. </doc>
  12181. </method>
  12182. <method name="keySet" return="java.util.Set"
  12183. abstract="false" native="false" synchronized="false"
  12184. static="false" final="false" visibility="public"
  12185. deprecated="not deprecated">
  12186. <doc>
  12187. <![CDATA[{@inheritDoc}]]>
  12188. </doc>
  12189. </method>
  12190. <method name="put" return="org.apache.hadoop.io.Writable"
  12191. abstract="false" native="false" synchronized="false"
  12192. static="false" final="false" visibility="public"
  12193. deprecated="not deprecated">
  12194. <param name="key" type="org.apache.hadoop.io.Writable"/>
  12195. <param name="value" type="org.apache.hadoop.io.Writable"/>
  12196. <doc>
  12197. <![CDATA[{@inheritDoc}]]>
  12198. </doc>
  12199. </method>
  12200. <method name="putAll"
  12201. abstract="false" native="false" synchronized="false"
  12202. static="false" final="false" visibility="public"
  12203. deprecated="not deprecated">
  12204. <param name="t" type="java.util.Map"/>
  12205. <doc>
  12206. <![CDATA[{@inheritDoc}]]>
  12207. </doc>
  12208. </method>
  12209. <method name="remove" return="org.apache.hadoop.io.Writable"
  12210. abstract="false" native="false" synchronized="false"
  12211. static="false" final="false" visibility="public"
  12212. deprecated="not deprecated">
  12213. <param name="key" type="java.lang.Object"/>
  12214. <doc>
  12215. <![CDATA[{@inheritDoc}]]>
  12216. </doc>
  12217. </method>
  12218. <method name="size" return="int"
  12219. abstract="false" native="false" synchronized="false"
  12220. static="false" final="false" visibility="public"
  12221. deprecated="not deprecated">
  12222. <doc>
  12223. <![CDATA[{@inheritDoc}]]>
  12224. </doc>
  12225. </method>
  12226. <method name="values" return="java.util.Collection"
  12227. abstract="false" native="false" synchronized="false"
  12228. static="false" final="false" visibility="public"
  12229. deprecated="not deprecated">
  12230. <doc>
  12231. <![CDATA[{@inheritDoc}]]>
  12232. </doc>
  12233. </method>
  12234. <method name="write"
  12235. abstract="false" native="false" synchronized="false"
  12236. static="false" final="false" visibility="public"
  12237. deprecated="not deprecated">
  12238. <param name="out" type="java.io.DataOutput"/>
  12239. <exception name="IOException" type="java.io.IOException"/>
  12240. <doc>
  12241. <![CDATA[{@inheritDoc}]]>
  12242. </doc>
  12243. </method>
  12244. <method name="readFields"
  12245. abstract="false" native="false" synchronized="false"
  12246. static="false" final="false" visibility="public"
  12247. deprecated="not deprecated">
  12248. <param name="in" type="java.io.DataInput"/>
  12249. <exception name="IOException" type="java.io.IOException"/>
  12250. <doc>
  12251. <![CDATA[{@inheritDoc}]]>
  12252. </doc>
  12253. </method>
  12254. <doc>
  12255. <![CDATA[A Writable Map.]]>
  12256. </doc>
  12257. </class>
  12258. <!-- end class org.apache.hadoop.io.MapWritable -->
  12259. <!-- start class org.apache.hadoop.io.MD5Hash -->
  12260. <class name="MD5Hash" extends="java.lang.Object"
  12261. abstract="false"
  12262. static="false" final="false" visibility="public"
  12263. deprecated="not deprecated">
  12264. <implements name="org.apache.hadoop.io.WritableComparable"/>
  12265. <constructor name="MD5Hash"
  12266. static="false" final="false" visibility="public"
  12267. deprecated="not deprecated">
  12268. <doc>
  12269. <![CDATA[Constructs an MD5Hash.]]>
  12270. </doc>
  12271. </constructor>
  12272. <constructor name="MD5Hash" type="java.lang.String"
  12273. static="false" final="false" visibility="public"
  12274. deprecated="not deprecated">
  12275. <doc>
  12276. <![CDATA[Constructs an MD5Hash from a hex string.]]>
  12277. </doc>
  12278. </constructor>
  12279. <constructor name="MD5Hash" type="byte[]"
  12280. static="false" final="false" visibility="public"
  12281. deprecated="not deprecated">
  12282. <doc>
  12283. <![CDATA[Constructs an MD5Hash with a specified value.]]>
  12284. </doc>
  12285. </constructor>
  12286. <method name="readFields"
  12287. abstract="false" native="false" synchronized="false"
  12288. static="false" final="false" visibility="public"
  12289. deprecated="not deprecated">
  12290. <param name="in" type="java.io.DataInput"/>
  12291. <exception name="IOException" type="java.io.IOException"/>
  12292. </method>
  12293. <method name="read" return="org.apache.hadoop.io.MD5Hash"
  12294. abstract="false" native="false" synchronized="false"
  12295. static="true" final="false" visibility="public"
  12296. deprecated="not deprecated">
  12297. <param name="in" type="java.io.DataInput"/>
  12298. <exception name="IOException" type="java.io.IOException"/>
  12299. <doc>
  12300. <![CDATA[Constructs, reads and returns an instance.]]>
  12301. </doc>
  12302. </method>
  12303. <method name="write"
  12304. abstract="false" native="false" synchronized="false"
  12305. static="false" final="false" visibility="public"
  12306. deprecated="not deprecated">
  12307. <param name="out" type="java.io.DataOutput"/>
  12308. <exception name="IOException" type="java.io.IOException"/>
  12309. </method>
  12310. <method name="set"
  12311. abstract="false" native="false" synchronized="false"
  12312. static="false" final="false" visibility="public"
  12313. deprecated="not deprecated">
  12314. <param name="that" type="org.apache.hadoop.io.MD5Hash"/>
  12315. <doc>
  12316. <![CDATA[Copy the contents of another instance into this instance.]]>
  12317. </doc>
  12318. </method>
  12319. <method name="getDigest" return="byte[]"
  12320. abstract="false" native="false" synchronized="false"
  12321. static="false" final="false" visibility="public"
  12322. deprecated="not deprecated">
  12323. <doc>
  12324. <![CDATA[Returns the digest bytes.]]>
  12325. </doc>
  12326. </method>
  12327. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  12328. abstract="false" native="false" synchronized="false"
  12329. static="true" final="false" visibility="public"
  12330. deprecated="not deprecated">
  12331. <param name="data" type="byte[]"/>
  12332. <doc>
  12333. <![CDATA[Construct a hash value for a byte array.]]>
  12334. </doc>
  12335. </method>
  12336. <method name="getDigester" return="java.security.MessageDigest"
  12337. abstract="false" native="false" synchronized="false"
  12338. static="true" final="false" visibility="public"
  12339. deprecated="not deprecated">
  12340. <doc>
  12341. <![CDATA[Create a thread local MD5 digester]]>
  12342. </doc>
  12343. </method>
  12344. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  12345. abstract="false" native="false" synchronized="false"
  12346. static="true" final="false" visibility="public"
  12347. deprecated="not deprecated">
  12348. <param name="in" type="java.io.InputStream"/>
  12349. <exception name="IOException" type="java.io.IOException"/>
  12350. <doc>
  12351. <![CDATA[Construct a hash value for the content from the InputStream.]]>
  12352. </doc>
  12353. </method>
  12354. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  12355. abstract="false" native="false" synchronized="false"
  12356. static="true" final="false" visibility="public"
  12357. deprecated="not deprecated">
  12358. <param name="data" type="byte[]"/>
  12359. <param name="start" type="int"/>
  12360. <param name="len" type="int"/>
  12361. <doc>
  12362. <![CDATA[Construct a hash value for a byte array.]]>
  12363. </doc>
  12364. </method>
  12365. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  12366. abstract="false" native="false" synchronized="false"
  12367. static="true" final="false" visibility="public"
  12368. deprecated="not deprecated">
  12369. <param name="string" type="java.lang.String"/>
  12370. <doc>
  12371. <![CDATA[Construct a hash value for a String.]]>
  12372. </doc>
  12373. </method>
  12374. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  12375. abstract="false" native="false" synchronized="false"
  12376. static="true" final="false" visibility="public"
  12377. deprecated="not deprecated">
  12378. <param name="utf8" type="org.apache.hadoop.io.UTF8"/>
  12379. <doc>
  12380. <![CDATA[Construct a hash value for a String.]]>
  12381. </doc>
  12382. </method>
  12383. <method name="halfDigest" return="long"
  12384. abstract="false" native="false" synchronized="false"
  12385. static="false" final="false" visibility="public"
  12386. deprecated="not deprecated">
  12387. <doc>
  12388. <![CDATA[Construct a half-sized version of this MD5. Fits in a long]]>
  12389. </doc>
  12390. </method>
  12391. <method name="quarterDigest" return="int"
  12392. abstract="false" native="false" synchronized="false"
  12393. static="false" final="false" visibility="public"
  12394. deprecated="not deprecated">
  12395. <doc>
  12396. <![CDATA[Return a 32-bit digest of the MD5.
  12397. @return the first 4 bytes of the md5]]>
  12398. </doc>
  12399. </method>
  12400. <method name="equals" return="boolean"
  12401. abstract="false" native="false" synchronized="false"
  12402. static="false" final="false" visibility="public"
  12403. deprecated="not deprecated">
  12404. <param name="o" type="java.lang.Object"/>
  12405. <doc>
  12406. <![CDATA[Returns true iff <code>o</code> is an MD5Hash whose digest contains the
  12407. same values.]]>
  12408. </doc>
  12409. </method>
  12410. <method name="hashCode" return="int"
  12411. abstract="false" native="false" synchronized="false"
  12412. static="false" final="false" visibility="public"
  12413. deprecated="not deprecated">
  12414. <doc>
  12415. <![CDATA[Returns a hash code value for this object.
  12416. Only uses the first 4 bytes, since md5s are evenly distributed.]]>
  12417. </doc>
  12418. </method>
  12419. <method name="compareTo" return="int"
  12420. abstract="false" native="false" synchronized="false"
  12421. static="false" final="false" visibility="public"
  12422. deprecated="not deprecated">
  12423. <param name="that" type="org.apache.hadoop.io.MD5Hash"/>
  12424. <doc>
  12425. <![CDATA[Compares this object with the specified object for order.]]>
  12426. </doc>
  12427. </method>
  12428. <method name="toString" return="java.lang.String"
  12429. abstract="false" native="false" synchronized="false"
  12430. static="false" final="false" visibility="public"
  12431. deprecated="not deprecated">
  12432. <doc>
  12433. <![CDATA[Returns a string representation of this object.]]>
  12434. </doc>
  12435. </method>
  12436. <method name="setDigest"
  12437. abstract="false" native="false" synchronized="false"
  12438. static="false" final="false" visibility="public"
  12439. deprecated="not deprecated">
  12440. <param name="hex" type="java.lang.String"/>
  12441. <doc>
  12442. <![CDATA[Sets the digest value from a hex string.]]>
  12443. </doc>
  12444. </method>
  12445. <field name="MD5_LEN" type="int"
  12446. transient="false" volatile="false"
  12447. static="true" final="true" visibility="public"
  12448. deprecated="not deprecated">
  12449. </field>
  12450. <doc>
  12451. <![CDATA[A Writable for MD5 hash values.]]>
  12452. </doc>
  12453. </class>
  12454. <!-- end class org.apache.hadoop.io.MD5Hash -->
  12455. <!-- start class org.apache.hadoop.io.MD5Hash.Comparator -->
  12456. <class name="MD5Hash.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  12457. abstract="false"
  12458. static="true" final="false" visibility="public"
  12459. deprecated="not deprecated">
  12460. <constructor name="MD5Hash.Comparator"
  12461. static="false" final="false" visibility="public"
  12462. deprecated="not deprecated">
  12463. </constructor>
  12464. <method name="compare" return="int"
  12465. abstract="false" native="false" synchronized="false"
  12466. static="false" final="false" visibility="public"
  12467. deprecated="not deprecated">
  12468. <param name="b1" type="byte[]"/>
  12469. <param name="s1" type="int"/>
  12470. <param name="l1" type="int"/>
  12471. <param name="b2" type="byte[]"/>
  12472. <param name="s2" type="int"/>
  12473. <param name="l2" type="int"/>
  12474. </method>
  12475. <doc>
  12476. <![CDATA[A WritableComparator optimized for MD5Hash keys.]]>
  12477. </doc>
  12478. </class>
  12479. <!-- end class org.apache.hadoop.io.MD5Hash.Comparator -->
  12480. <!-- start class org.apache.hadoop.io.MultipleIOException -->
  12481. <class name="MultipleIOException" extends="java.io.IOException"
  12482. abstract="false"
  12483. static="false" final="false" visibility="public"
  12484. deprecated="not deprecated">
  12485. <method name="getExceptions" return="java.util.List"
  12486. abstract="false" native="false" synchronized="false"
  12487. static="false" final="false" visibility="public"
  12488. deprecated="not deprecated">
  12489. <doc>
  12490. <![CDATA[@return the underlying exceptions]]>
  12491. </doc>
  12492. </method>
  12493. <method name="createIOException" return="java.io.IOException"
  12494. abstract="false" native="false" synchronized="false"
  12495. static="true" final="false" visibility="public"
  12496. deprecated="not deprecated">
  12497. <param name="exceptions" type="java.util.List"/>
  12498. <doc>
  12499. <![CDATA[A convenient method to create an {@link IOException}.]]>
  12500. </doc>
  12501. </method>
  12502. <doc>
  12503. <![CDATA[Encapsulate a list of {@link IOException} into an {@link IOException}]]>
  12504. </doc>
  12505. </class>
  12506. <!-- end class org.apache.hadoop.io.MultipleIOException -->
  12507. <!-- start class org.apache.hadoop.io.NullWritable -->
  12508. <class name="NullWritable" extends="java.lang.Object"
  12509. abstract="false"
  12510. static="false" final="false" visibility="public"
  12511. deprecated="not deprecated">
  12512. <implements name="org.apache.hadoop.io.WritableComparable"/>
  12513. <method name="get" return="org.apache.hadoop.io.NullWritable"
  12514. abstract="false" native="false" synchronized="false"
  12515. static="true" final="false" visibility="public"
  12516. deprecated="not deprecated">
  12517. <doc>
  12518. <![CDATA[Returns the single instance of this class.]]>
  12519. </doc>
  12520. </method>
  12521. <method name="toString" return="java.lang.String"
  12522. abstract="false" native="false" synchronized="false"
  12523. static="false" final="false" visibility="public"
  12524. deprecated="not deprecated">
  12525. </method>
  12526. <method name="hashCode" return="int"
  12527. abstract="false" native="false" synchronized="false"
  12528. static="false" final="false" visibility="public"
  12529. deprecated="not deprecated">
  12530. </method>
  12531. <method name="compareTo" return="int"
  12532. abstract="false" native="false" synchronized="false"
  12533. static="false" final="false" visibility="public"
  12534. deprecated="not deprecated">
  12535. <param name="other" type="java.lang.Object"/>
  12536. </method>
  12537. <method name="equals" return="boolean"
  12538. abstract="false" native="false" synchronized="false"
  12539. static="false" final="false" visibility="public"
  12540. deprecated="not deprecated">
  12541. <param name="other" type="java.lang.Object"/>
  12542. </method>
  12543. <method name="readFields"
  12544. abstract="false" native="false" synchronized="false"
  12545. static="false" final="false" visibility="public"
  12546. deprecated="not deprecated">
  12547. <param name="in" type="java.io.DataInput"/>
  12548. <exception name="IOException" type="java.io.IOException"/>
  12549. </method>
  12550. <method name="write"
  12551. abstract="false" native="false" synchronized="false"
  12552. static="false" final="false" visibility="public"
  12553. deprecated="not deprecated">
  12554. <param name="out" type="java.io.DataOutput"/>
  12555. <exception name="IOException" type="java.io.IOException"/>
  12556. </method>
  12557. <doc>
  12558. <![CDATA[Singleton Writable with no data.]]>
  12559. </doc>
  12560. </class>
  12561. <!-- end class org.apache.hadoop.io.NullWritable -->
  12562. <!-- start class org.apache.hadoop.io.NullWritable.Comparator -->
  12563. <class name="NullWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  12564. abstract="false"
  12565. static="true" final="false" visibility="public"
  12566. deprecated="not deprecated">
  12567. <constructor name="NullWritable.Comparator"
  12568. static="false" final="false" visibility="public"
  12569. deprecated="not deprecated">
  12570. </constructor>
  12571. <method name="compare" return="int"
  12572. abstract="false" native="false" synchronized="false"
  12573. static="false" final="false" visibility="public"
  12574. deprecated="not deprecated">
  12575. <param name="b1" type="byte[]"/>
  12576. <param name="s1" type="int"/>
  12577. <param name="l1" type="int"/>
  12578. <param name="b2" type="byte[]"/>
  12579. <param name="s2" type="int"/>
  12580. <param name="l2" type="int"/>
  12581. <doc>
  12582. <![CDATA[Compare the buffers in serialized form.]]>
  12583. </doc>
  12584. </method>
  12585. <doc>
  12586. <![CDATA[A Comparator &quot;optimized&quot; for NullWritable.]]>
  12587. </doc>
  12588. </class>
  12589. <!-- end class org.apache.hadoop.io.NullWritable.Comparator -->
  12590. <!-- start class org.apache.hadoop.io.ObjectWritable -->
  12591. <class name="ObjectWritable" extends="java.lang.Object"
  12592. abstract="false"
  12593. static="false" final="false" visibility="public"
  12594. deprecated="not deprecated">
  12595. <implements name="org.apache.hadoop.io.Writable"/>
  12596. <implements name="org.apache.hadoop.conf.Configurable"/>
  12597. <constructor name="ObjectWritable"
  12598. static="false" final="false" visibility="public"
  12599. deprecated="not deprecated">
  12600. </constructor>
  12601. <constructor name="ObjectWritable" type="java.lang.Object"
  12602. static="false" final="false" visibility="public"
  12603. deprecated="not deprecated">
  12604. </constructor>
  12605. <constructor name="ObjectWritable" type="java.lang.Class, java.lang.Object"
  12606. static="false" final="false" visibility="public"
  12607. deprecated="not deprecated">
  12608. </constructor>
  12609. <method name="get" return="java.lang.Object"
  12610. abstract="false" native="false" synchronized="false"
  12611. static="false" final="false" visibility="public"
  12612. deprecated="not deprecated">
  12613. <doc>
  12614. <![CDATA[Return the instance, or null if none.]]>
  12615. </doc>
  12616. </method>
  12617. <method name="getDeclaredClass" return="java.lang.Class"
  12618. abstract="false" native="false" synchronized="false"
  12619. static="false" final="false" visibility="public"
  12620. deprecated="not deprecated">
  12621. <doc>
  12622. <![CDATA[Return the class this is meant to be.]]>
  12623. </doc>
  12624. </method>
  12625. <method name="set"
  12626. abstract="false" native="false" synchronized="false"
  12627. static="false" final="false" visibility="public"
  12628. deprecated="not deprecated">
  12629. <param name="instance" type="java.lang.Object"/>
  12630. <doc>
  12631. <![CDATA[Reset the instance.]]>
  12632. </doc>
  12633. </method>
  12634. <method name="toString" return="java.lang.String"
  12635. abstract="false" native="false" synchronized="false"
  12636. static="false" final="false" visibility="public"
  12637. deprecated="not deprecated">
  12638. </method>
  12639. <method name="readFields"
  12640. abstract="false" native="false" synchronized="false"
  12641. static="false" final="false" visibility="public"
  12642. deprecated="not deprecated">
  12643. <param name="in" type="java.io.DataInput"/>
  12644. <exception name="IOException" type="java.io.IOException"/>
  12645. </method>
  12646. <method name="write"
  12647. abstract="false" native="false" synchronized="false"
  12648. static="false" final="false" visibility="public"
  12649. deprecated="not deprecated">
  12650. <param name="out" type="java.io.DataOutput"/>
  12651. <exception name="IOException" type="java.io.IOException"/>
  12652. </method>
  12653. <method name="writeObject"
  12654. abstract="false" native="false" synchronized="false"
  12655. static="true" final="false" visibility="public"
  12656. deprecated="not deprecated">
  12657. <param name="out" type="java.io.DataOutput"/>
  12658. <param name="instance" type="java.lang.Object"/>
  12659. <param name="declaredClass" type="java.lang.Class"/>
  12660. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12661. <exception name="IOException" type="java.io.IOException"/>
  12662. <doc>
  12663. <![CDATA[Write a {@link Writable}, {@link String}, primitive type, or an array of
  12664. the preceding.]]>
  12665. </doc>
  12666. </method>
  12667. <method name="readObject" return="java.lang.Object"
  12668. abstract="false" native="false" synchronized="false"
  12669. static="true" final="false" visibility="public"
  12670. deprecated="not deprecated">
  12671. <param name="in" type="java.io.DataInput"/>
  12672. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12673. <exception name="IOException" type="java.io.IOException"/>
  12674. <doc>
  12675. <![CDATA[Read a {@link Writable}, {@link String}, primitive type, or an array of
  12676. the preceding.]]>
  12677. </doc>
  12678. </method>
  12679. <method name="readObject" return="java.lang.Object"
  12680. abstract="false" native="false" synchronized="false"
  12681. static="true" final="false" visibility="public"
  12682. deprecated="not deprecated">
  12683. <param name="in" type="java.io.DataInput"/>
  12684. <param name="objectWritable" type="org.apache.hadoop.io.ObjectWritable"/>
  12685. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12686. <exception name="IOException" type="java.io.IOException"/>
  12687. <doc>
  12688. <![CDATA[Read a {@link Writable}, {@link String}, primitive type, or an array of
  12689. the preceding.]]>
  12690. </doc>
  12691. </method>
  12692. <method name="setConf"
  12693. abstract="false" native="false" synchronized="false"
  12694. static="false" final="false" visibility="public"
  12695. deprecated="not deprecated">
  12696. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12697. </method>
  12698. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  12699. abstract="false" native="false" synchronized="false"
  12700. static="false" final="false" visibility="public"
  12701. deprecated="not deprecated">
  12702. </method>
  12703. <doc>
  12704. <![CDATA[A polymorphic Writable that writes an instance with it's class name.
  12705. Handles arrays, strings and primitive types without a Writable wrapper.]]>
  12706. </doc>
  12707. </class>
  12708. <!-- end class org.apache.hadoop.io.ObjectWritable -->
  12709. <!-- start class org.apache.hadoop.io.OutputBuffer -->
  12710. <class name="OutputBuffer" extends="java.io.FilterOutputStream"
  12711. abstract="false"
  12712. static="false" final="false" visibility="public"
  12713. deprecated="not deprecated">
  12714. <constructor name="OutputBuffer"
  12715. static="false" final="false" visibility="public"
  12716. deprecated="not deprecated">
  12717. <doc>
  12718. <![CDATA[Constructs a new empty buffer.]]>
  12719. </doc>
  12720. </constructor>
  12721. <method name="getData" return="byte[]"
  12722. abstract="false" native="false" synchronized="false"
  12723. static="false" final="false" visibility="public"
  12724. deprecated="not deprecated">
  12725. <doc>
  12726. <![CDATA[Returns the current contents of the buffer.
  12727. Data is only valid to {@link #getLength()}.]]>
  12728. </doc>
  12729. </method>
  12730. <method name="getLength" return="int"
  12731. abstract="false" native="false" synchronized="false"
  12732. static="false" final="false" visibility="public"
  12733. deprecated="not deprecated">
  12734. <doc>
  12735. <![CDATA[Returns the length of the valid data currently in the buffer.]]>
  12736. </doc>
  12737. </method>
  12738. <method name="reset" return="org.apache.hadoop.io.OutputBuffer"
  12739. abstract="false" native="false" synchronized="false"
  12740. static="false" final="false" visibility="public"
  12741. deprecated="not deprecated">
  12742. <doc>
  12743. <![CDATA[Resets the buffer to empty.]]>
  12744. </doc>
  12745. </method>
  12746. <method name="write"
  12747. abstract="false" native="false" synchronized="false"
  12748. static="false" final="false" visibility="public"
  12749. deprecated="not deprecated">
  12750. <param name="in" type="java.io.InputStream"/>
  12751. <param name="length" type="int"/>
  12752. <exception name="IOException" type="java.io.IOException"/>
  12753. <doc>
  12754. <![CDATA[Writes bytes from a InputStream directly into the buffer.]]>
  12755. </doc>
  12756. </method>
  12757. <doc>
  12758. <![CDATA[A reusable {@link OutputStream} implementation that writes to an in-memory
  12759. buffer.
  12760. <p>This saves memory over creating a new OutputStream and
  12761. ByteArrayOutputStream each time data is written.
  12762. <p>Typical usage is something like the following:<pre>
  12763. OutputBuffer buffer = new OutputBuffer();
  12764. while (... loop condition ...) {
  12765. buffer.reset();
  12766. ... write buffer using OutputStream methods ...
  12767. byte[] data = buffer.getData();
  12768. int dataLength = buffer.getLength();
  12769. ... write data to its ultimate destination ...
  12770. }
  12771. </pre>
  12772. @see DataOutputBuffer
  12773. @see InputBuffer]]>
  12774. </doc>
  12775. </class>
  12776. <!-- end class org.apache.hadoop.io.OutputBuffer -->
  12777. <!-- start interface org.apache.hadoop.io.RawComparator -->
  12778. <interface name="RawComparator" abstract="true"
  12779. static="false" final="false" visibility="public"
  12780. deprecated="not deprecated">
  12781. <implements name="java.util.Comparator"/>
  12782. <method name="compare" return="int"
  12783. abstract="false" native="false" synchronized="false"
  12784. static="false" final="false" visibility="public"
  12785. deprecated="not deprecated">
  12786. <param name="b1" type="byte[]"/>
  12787. <param name="s1" type="int"/>
  12788. <param name="l1" type="int"/>
  12789. <param name="b2" type="byte[]"/>
  12790. <param name="s2" type="int"/>
  12791. <param name="l2" type="int"/>
  12792. </method>
  12793. <doc>
  12794. <![CDATA[<p>
  12795. A {@link Comparator} that operates directly on byte representations of
  12796. objects.
  12797. </p>
  12798. @param <T>
  12799. @see DeserializerComparator]]>
  12800. </doc>
  12801. </interface>
  12802. <!-- end interface org.apache.hadoop.io.RawComparator -->
  12803. <!-- start class org.apache.hadoop.io.ReadaheadPool -->
  12804. <class name="ReadaheadPool" extends="java.lang.Object"
  12805. abstract="false"
  12806. static="false" final="false" visibility="public"
  12807. deprecated="not deprecated">
  12808. <method name="getInstance" return="org.apache.hadoop.io.ReadaheadPool"
  12809. abstract="false" native="false" synchronized="false"
  12810. static="true" final="false" visibility="public"
  12811. deprecated="not deprecated">
  12812. <doc>
  12813. <![CDATA[Return the singleton instance for the current process.]]>
  12814. </doc>
  12815. </method>
  12816. <method name="readaheadStream" return="org.apache.hadoop.io.ReadaheadPool.ReadaheadRequest"
  12817. abstract="false" native="false" synchronized="false"
  12818. static="false" final="false" visibility="public"
  12819. deprecated="not deprecated">
  12820. <param name="identifier" type="java.lang.String"/>
  12821. <param name="fd" type="java.io.FileDescriptor"/>
  12822. <param name="curPos" type="long"/>
  12823. <param name="readaheadLength" type="long"/>
  12824. <param name="maxOffsetToRead" type="long"/>
  12825. <param name="lastReadahead" type="org.apache.hadoop.io.ReadaheadPool.ReadaheadRequest"/>
  12826. <doc>
  12827. <![CDATA[Issue a request to readahead on the given file descriptor.
  12828. @param identifier a textual identifier that will be used in error
  12829. messages (e.g. the file name)
  12830. @param fd the file descriptor to read ahead
  12831. @param curPos the current offset at which reads are being issued
  12832. @param readaheadLength the configured length to read ahead
  12833. @param maxOffsetToRead the maximum offset that will be readahead
  12834. (useful if, for example, only some segment of the file is
  12835. requested by the user). Pass {@link Long.MAX_VALUE} to allow
  12836. readahead to the end of the file.
  12837. @param lastReadahead the result returned by the previous invocation
  12838. of this function on this file descriptor, or null if this is
  12839. the first call
  12840. @return an object representing this outstanding request, or null
  12841. if no readahead was performed]]>
  12842. </doc>
  12843. </method>
  12844. <method name="submitReadahead" return="org.apache.hadoop.io.ReadaheadPool.ReadaheadRequest"
  12845. abstract="false" native="false" synchronized="false"
  12846. static="false" final="false" visibility="public"
  12847. deprecated="not deprecated">
  12848. <param name="identifier" type="java.lang.String"/>
  12849. <param name="fd" type="java.io.FileDescriptor"/>
  12850. <param name="off" type="long"/>
  12851. <param name="len" type="long"/>
  12852. <doc>
  12853. <![CDATA[Submit a request to readahead on the given file descriptor.
  12854. @param identifier a textual identifier used in error messages, etc.
  12855. @param fd the file descriptor to readahead
  12856. @param off the offset at which to start the readahead
  12857. @param len the number of bytes to read
  12858. @return an object representing this pending request]]>
  12859. </doc>
  12860. </method>
  12861. <doc>
  12862. <![CDATA[Manages a pool of threads which can issue readahead requests on file descriptors.]]>
  12863. </doc>
  12864. </class>
  12865. <!-- end class org.apache.hadoop.io.ReadaheadPool -->
  12866. <!-- start interface org.apache.hadoop.io.ReadaheadPool.ReadaheadRequest -->
  12867. <interface name="ReadaheadPool.ReadaheadRequest" abstract="true"
  12868. static="true" final="false" visibility="public"
  12869. deprecated="not deprecated">
  12870. <method name="cancel"
  12871. abstract="false" native="false" synchronized="false"
  12872. static="false" final="false" visibility="public"
  12873. deprecated="not deprecated">
  12874. <doc>
  12875. <![CDATA[Cancels the request for readahead. This should be used
  12876. if the reader no longer needs the requested data, <em>before</em>
  12877. closing the related file descriptor.
  12878. It is safe to use even if the readahead request has already
  12879. been fulfilled.]]>
  12880. </doc>
  12881. </method>
  12882. <method name="getOffset" return="long"
  12883. abstract="false" native="false" synchronized="false"
  12884. static="false" final="false" visibility="public"
  12885. deprecated="not deprecated">
  12886. <doc>
  12887. <![CDATA[@return the requested offset]]>
  12888. </doc>
  12889. </method>
  12890. <method name="getLength" return="long"
  12891. abstract="false" native="false" synchronized="false"
  12892. static="false" final="false" visibility="public"
  12893. deprecated="not deprecated">
  12894. <doc>
  12895. <![CDATA[@return the requested length]]>
  12896. </doc>
  12897. </method>
  12898. <doc>
  12899. <![CDATA[An outstanding readahead request that has been submitted to
  12900. the pool. This request may be pending or may have been
  12901. completed.]]>
  12902. </doc>
  12903. </interface>
  12904. <!-- end interface org.apache.hadoop.io.ReadaheadPool.ReadaheadRequest -->
  12905. <!-- start class org.apache.hadoop.io.SecureIOUtils -->
  12906. <class name="SecureIOUtils" extends="java.lang.Object"
  12907. abstract="false"
  12908. static="false" final="false" visibility="public"
  12909. deprecated="not deprecated">
  12910. <constructor name="SecureIOUtils"
  12911. static="false" final="false" visibility="public"
  12912. deprecated="not deprecated">
  12913. </constructor>
  12914. <method name="openForRead" return="java.io.FileInputStream"
  12915. abstract="false" native="false" synchronized="false"
  12916. static="true" final="false" visibility="public"
  12917. deprecated="not deprecated">
  12918. <param name="f" type="java.io.File"/>
  12919. <param name="expectedOwner" type="java.lang.String"/>
  12920. <exception name="IOException" type="java.io.IOException"/>
  12921. <doc>
  12922. <![CDATA[Open the given File for read access, verifying the expected user
  12923. constraints.
  12924. @param f the file that we are trying to open
  12925. @param expectedOwner the expected user owner for the file
  12926. @throws IOException if an IO Error occurred, or the user does not
  12927. match]]>
  12928. </doc>
  12929. </method>
  12930. <method name="createForWrite" return="java.io.FileOutputStream"
  12931. abstract="false" native="false" synchronized="false"
  12932. static="true" final="false" visibility="public"
  12933. deprecated="not deprecated">
  12934. <param name="f" type="java.io.File"/>
  12935. <param name="permissions" type="int"/>
  12936. <exception name="IOException" type="java.io.IOException"/>
  12937. <doc>
  12938. <![CDATA[Open the specified File for write access, ensuring that it does not exist.
  12939. @param f the file that we want to create
  12940. @param permissions we want to have on the file (if security is enabled)
  12941. @throws AlreadyExistsException if the file already exists
  12942. @throws IOException if any other error occurred]]>
  12943. </doc>
  12944. </method>
  12945. <doc>
  12946. <![CDATA[This class provides secure APIs for opening and creating files on the local
  12947. disk. The main issue this class tries to handle is that of symlink traversal.
  12948. <br/>
  12949. An example of such an attack is:
  12950. <ol>
  12951. <li> Malicious user removes his task's syslog file, and puts a link to the
  12952. jobToken file of a target user.</li>
  12953. <li> Malicious user tries to open the syslog file via the servlet on the
  12954. tasktracker.</li>
  12955. <li> The tasktracker is unaware of the symlink, and simply streams the contents
  12956. of the jobToken file. The malicious user can now access potentially sensitive
  12957. map outputs, etc. of the target user's job.</li>
  12958. </ol>
  12959. A similar attack is possible involving the
  12960. {@link org.apache.hadoop.mapred.TaskLogsTruncater}, but here it is to do
  12961. with unsecure write to a file.
  12962. <br/>]]>
  12963. </doc>
  12964. </class>
  12965. <!-- end class org.apache.hadoop.io.SecureIOUtils -->
  12966. <!-- start class org.apache.hadoop.io.SecureIOUtils.AlreadyExistsException -->
  12967. <class name="SecureIOUtils.AlreadyExistsException" extends="java.io.IOException"
  12968. abstract="false"
  12969. static="true" final="false" visibility="public"
  12970. deprecated="not deprecated">
  12971. <constructor name="SecureIOUtils.AlreadyExistsException" type="java.lang.String"
  12972. static="false" final="false" visibility="public"
  12973. deprecated="not deprecated">
  12974. </constructor>
  12975. <constructor name="SecureIOUtils.AlreadyExistsException" type="java.lang.Throwable"
  12976. static="false" final="false" visibility="public"
  12977. deprecated="not deprecated">
  12978. </constructor>
  12979. <doc>
  12980. <![CDATA[Signals that an attempt to create a file at a given pathname has failed
  12981. because another file already existed at that path.]]>
  12982. </doc>
  12983. </class>
  12984. <!-- end class org.apache.hadoop.io.SecureIOUtils.AlreadyExistsException -->
  12985. <!-- start class org.apache.hadoop.io.SequenceFile -->
  12986. <class name="SequenceFile" extends="java.lang.Object"
  12987. abstract="false"
  12988. static="false" final="false" visibility="public"
  12989. deprecated="not deprecated">
  12990. <method name="getCompressionType" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  12991. abstract="false" native="false" synchronized="false"
  12992. static="true" final="false" visibility="public"
  12993. deprecated="Use
  12994. {@link org.apache.hadoop.mapred.SequenceFileOutputFormat#getOutputCompressionType(org.apache.hadoop.mapred.JobConf)}
  12995. to get {@link CompressionType} for job-outputs.">
  12996. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  12997. <doc>
  12998. <![CDATA[Get the compression type for the reduce outputs
  12999. @param job the job config to look in
  13000. @return the kind of compression to use
  13001. @deprecated Use
  13002. {@link org.apache.hadoop.mapred.SequenceFileOutputFormat#getOutputCompressionType(org.apache.hadoop.mapred.JobConf)}
  13003. to get {@link CompressionType} for job-outputs.]]>
  13004. </doc>
  13005. </method>
  13006. <method name="setCompressionType"
  13007. abstract="false" native="false" synchronized="false"
  13008. static="true" final="false" visibility="public"
  13009. deprecated="Use the one of the many SequenceFile.createWriter methods to specify
  13010. the {@link CompressionType} while creating the {@link SequenceFile} or
  13011. {@link org.apache.hadoop.mapred.SequenceFileOutputFormat#setOutputCompressionType(org.apache.hadoop.mapred.JobConf, org.apache.hadoop.io.SequenceFile.CompressionType)}
  13012. to specify the {@link CompressionType} for job-outputs.
  13013. or">
  13014. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  13015. <param name="val" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  13016. <doc>
  13017. <![CDATA[Set the compression type for sequence files.
  13018. @param job the configuration to modify
  13019. @param val the new compression type (none, block, record)
  13020. @deprecated Use the one of the many SequenceFile.createWriter methods to specify
  13021. the {@link CompressionType} while creating the {@link SequenceFile} or
  13022. {@link org.apache.hadoop.mapred.SequenceFileOutputFormat#setOutputCompressionType(org.apache.hadoop.mapred.JobConf, org.apache.hadoop.io.SequenceFile.CompressionType)}
  13023. to specify the {@link CompressionType} for job-outputs.
  13024. or]]>
  13025. </doc>
  13026. </method>
  13027. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  13028. abstract="false" native="false" synchronized="false"
  13029. static="true" final="false" visibility="public"
  13030. deprecated="not deprecated">
  13031. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  13032. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13033. <param name="name" type="org.apache.hadoop.fs.Path"/>
  13034. <param name="keyClass" type="java.lang.Class"/>
  13035. <param name="valClass" type="java.lang.Class"/>
  13036. <exception name="IOException" type="java.io.IOException"/>
  13037. <doc>
  13038. <![CDATA[Construct the preferred type of SequenceFile Writer.
  13039. @param fs The configured filesystem.
  13040. @param conf The configuration.
  13041. @param name The name of the file.
  13042. @param keyClass The 'key' type.
  13043. @param valClass The 'value' type.
  13044. @return Returns the handle to the constructed SequenceFile Writer.
  13045. @throws IOException]]>
  13046. </doc>
  13047. </method>
  13048. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  13049. abstract="false" native="false" synchronized="false"
  13050. static="true" final="false" visibility="public"
  13051. deprecated="not deprecated">
  13052. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  13053. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13054. <param name="name" type="org.apache.hadoop.fs.Path"/>
  13055. <param name="keyClass" type="java.lang.Class"/>
  13056. <param name="valClass" type="java.lang.Class"/>
  13057. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  13058. <exception name="IOException" type="java.io.IOException"/>
  13059. <doc>
  13060. <![CDATA[Construct the preferred type of SequenceFile Writer.
  13061. @param fs The configured filesystem.
  13062. @param conf The configuration.
  13063. @param name The name of the file.
  13064. @param keyClass The 'key' type.
  13065. @param valClass The 'value' type.
  13066. @param compressionType The compression type.
  13067. @return Returns the handle to the constructed SequenceFile Writer.
  13068. @throws IOException]]>
  13069. </doc>
  13070. </method>
  13071. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  13072. abstract="false" native="false" synchronized="false"
  13073. static="true" final="false" visibility="public"
  13074. deprecated="not deprecated">
  13075. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  13076. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13077. <param name="name" type="org.apache.hadoop.fs.Path"/>
  13078. <param name="keyClass" type="java.lang.Class"/>
  13079. <param name="valClass" type="java.lang.Class"/>
  13080. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  13081. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  13082. <exception name="IOException" type="java.io.IOException"/>
  13083. <doc>
  13084. <![CDATA[Construct the preferred type of SequenceFile Writer.
  13085. @param fs The configured filesystem.
  13086. @param conf The configuration.
  13087. @param name The name of the file.
  13088. @param keyClass The 'key' type.
  13089. @param valClass The 'value' type.
  13090. @param compressionType The compression type.
  13091. @param progress The Progressable object to track progress.
  13092. @return Returns the handle to the constructed SequenceFile Writer.
  13093. @throws IOException]]>
  13094. </doc>
  13095. </method>
  13096. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  13097. abstract="false" native="false" synchronized="false"
  13098. static="true" final="false" visibility="public"
  13099. deprecated="not deprecated">
  13100. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  13101. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13102. <param name="name" type="org.apache.hadoop.fs.Path"/>
  13103. <param name="keyClass" type="java.lang.Class"/>
  13104. <param name="valClass" type="java.lang.Class"/>
  13105. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  13106. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  13107. <exception name="IOException" type="java.io.IOException"/>
  13108. <doc>
  13109. <![CDATA[Construct the preferred type of SequenceFile Writer.
  13110. @param fs The configured filesystem.
  13111. @param conf The configuration.
  13112. @param name The name of the file.
  13113. @param keyClass The 'key' type.
  13114. @param valClass The 'value' type.
  13115. @param compressionType The compression type.
  13116. @param codec The compression codec.
  13117. @return Returns the handle to the constructed SequenceFile Writer.
  13118. @throws IOException]]>
  13119. </doc>
  13120. </method>
  13121. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  13122. abstract="false" native="false" synchronized="false"
  13123. static="true" final="false" visibility="public"
  13124. deprecated="not deprecated">
  13125. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  13126. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13127. <param name="name" type="org.apache.hadoop.fs.Path"/>
  13128. <param name="keyClass" type="java.lang.Class"/>
  13129. <param name="valClass" type="java.lang.Class"/>
  13130. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  13131. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  13132. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  13133. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  13134. <exception name="IOException" type="java.io.IOException"/>
  13135. <doc>
  13136. <![CDATA[Construct the preferred type of SequenceFile Writer.
  13137. @param fs The configured filesystem.
  13138. @param conf The configuration.
  13139. @param name The name of the file.
  13140. @param keyClass The 'key' type.
  13141. @param valClass The 'value' type.
  13142. @param compressionType The compression type.
  13143. @param codec The compression codec.
  13144. @param progress The Progressable object to track progress.
  13145. @param metadata The metadata of the file.
  13146. @return Returns the handle to the constructed SequenceFile Writer.
  13147. @throws IOException]]>
  13148. </doc>
  13149. </method>
  13150. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  13151. abstract="false" native="false" synchronized="false"
  13152. static="true" final="false" visibility="public"
  13153. deprecated="not deprecated">
  13154. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  13155. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13156. <param name="name" type="org.apache.hadoop.fs.Path"/>
  13157. <param name="keyClass" type="java.lang.Class"/>
  13158. <param name="valClass" type="java.lang.Class"/>
  13159. <param name="bufferSize" type="int"/>
  13160. <param name="replication" type="short"/>
  13161. <param name="blockSize" type="long"/>
  13162. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  13163. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  13164. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  13165. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  13166. <exception name="IOException" type="java.io.IOException"/>
  13167. <doc>
  13168. <![CDATA[Construct the preferred type of SequenceFile Writer.
  13169. @param fs The configured filesystem.
  13170. @param conf The configuration.
  13171. @param name The name of the file.
  13172. @param keyClass The 'key' type.
  13173. @param valClass The 'value' type.
  13174. @param bufferSize buffer size for the underlaying outputstream.
  13175. @param replication replication factor for the file.
  13176. @param blockSize block size for the file.
  13177. @param compressionType The compression type.
  13178. @param codec The compression codec.
  13179. @param progress The Progressable object to track progress.
  13180. @param metadata The metadata of the file.
  13181. @return Returns the handle to the constructed SequenceFile Writer.
  13182. @throws IOException]]>
  13183. </doc>
  13184. </method>
  13185. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  13186. abstract="false" native="false" synchronized="false"
  13187. static="true" final="false" visibility="public"
  13188. deprecated="not deprecated">
  13189. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  13190. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13191. <param name="name" type="org.apache.hadoop.fs.Path"/>
  13192. <param name="keyClass" type="java.lang.Class"/>
  13193. <param name="valClass" type="java.lang.Class"/>
  13194. <param name="bufferSize" type="int"/>
  13195. <param name="replication" type="short"/>
  13196. <param name="blockSize" type="long"/>
  13197. <param name="createParent" type="boolean"/>
  13198. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  13199. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  13200. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  13201. <exception name="IOException" type="java.io.IOException"/>
  13202. <doc>
  13203. <![CDATA[Construct the preferred type of SequenceFile Writer.
  13204. @param fs The configured filesystem.
  13205. @param conf The configuration.
  13206. @param name The name of the file.
  13207. @param keyClass The 'key' type.
  13208. @param valClass The 'value' type.
  13209. @param bufferSize buffer size for the underlaying outputstream.
  13210. @param replication replication factor for the file.
  13211. @param blockSize block size for the file.
  13212. @param createParent create parent directory if non-existent
  13213. @param compressionType The compression type.
  13214. @param codec The compression codec.
  13215. @param metadata The metadata of the file.
  13216. @return Returns the handle to the constructed SequenceFile Writer.
  13217. @throws IOException]]>
  13218. </doc>
  13219. </method>
  13220. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  13221. abstract="false" native="false" synchronized="false"
  13222. static="true" final="false" visibility="public"
  13223. deprecated="not deprecated">
  13224. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  13225. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13226. <param name="name" type="org.apache.hadoop.fs.Path"/>
  13227. <param name="keyClass" type="java.lang.Class"/>
  13228. <param name="valClass" type="java.lang.Class"/>
  13229. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  13230. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  13231. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  13232. <exception name="IOException" type="java.io.IOException"/>
  13233. <doc>
  13234. <![CDATA[Construct the preferred type of SequenceFile Writer.
  13235. @param fs The configured filesystem.
  13236. @param conf The configuration.
  13237. @param name The name of the file.
  13238. @param keyClass The 'key' type.
  13239. @param valClass The 'value' type.
  13240. @param compressionType The compression type.
  13241. @param codec The compression codec.
  13242. @param progress The Progressable object to track progress.
  13243. @return Returns the handle to the constructed SequenceFile Writer.
  13244. @throws IOException]]>
  13245. </doc>
  13246. </method>
  13247. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  13248. abstract="false" native="false" synchronized="false"
  13249. static="true" final="false" visibility="public"
  13250. deprecated="not deprecated">
  13251. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13252. <param name="out" type="org.apache.hadoop.fs.FSDataOutputStream"/>
  13253. <param name="keyClass" type="java.lang.Class"/>
  13254. <param name="valClass" type="java.lang.Class"/>
  13255. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  13256. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  13257. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  13258. <exception name="IOException" type="java.io.IOException"/>
  13259. <doc>
  13260. <![CDATA[Construct the preferred type of 'raw' SequenceFile Writer.
  13261. @param conf The configuration.
  13262. @param out The stream on top which the writer is to be constructed.
  13263. @param keyClass The 'key' type.
  13264. @param valClass The 'value' type.
  13265. @param compressionType The compression type.
  13266. @param codec The compression codec.
  13267. @param metadata The metadata of the file.
  13268. @return Returns the handle to the constructed SequenceFile Writer.
  13269. @throws IOException]]>
  13270. </doc>
  13271. </method>
  13272. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  13273. abstract="false" native="false" synchronized="false"
  13274. static="true" final="false" visibility="public"
  13275. deprecated="not deprecated">
  13276. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13277. <param name="out" type="org.apache.hadoop.fs.FSDataOutputStream"/>
  13278. <param name="keyClass" type="java.lang.Class"/>
  13279. <param name="valClass" type="java.lang.Class"/>
  13280. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  13281. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  13282. <exception name="IOException" type="java.io.IOException"/>
  13283. <doc>
  13284. <![CDATA[Construct the preferred type of 'raw' SequenceFile Writer.
  13285. @param conf The configuration.
  13286. @param out The stream on top which the writer is to be constructed.
  13287. @param keyClass The 'key' type.
  13288. @param valClass The 'value' type.
  13289. @param compressionType The compression type.
  13290. @param codec The compression codec.
  13291. @return Returns the handle to the constructed SequenceFile Writer.
  13292. @throws IOException]]>
  13293. </doc>
  13294. </method>
  13295. <field name="SYNC_INTERVAL" type="int"
  13296. transient="false" volatile="false"
  13297. static="true" final="true" visibility="public"
  13298. deprecated="not deprecated">
  13299. <doc>
  13300. <![CDATA[The number of bytes between sync points.]]>
  13301. </doc>
  13302. </field>
  13303. <doc>
  13304. <![CDATA[<code>SequenceFile</code>s are flat files consisting of binary key/value
  13305. pairs.
  13306. <p><code>SequenceFile</code> provides {@link Writer}, {@link Reader} and
  13307. {@link Sorter} classes for writing, reading and sorting respectively.</p>
  13308. There are three <code>SequenceFile</code> <code>Writer</code>s based on the
  13309. {@link CompressionType} used to compress key/value pairs:
  13310. <ol>
  13311. <li>
  13312. <code>Writer</code> : Uncompressed records.
  13313. </li>
  13314. <li>
  13315. <code>RecordCompressWriter</code> : Record-compressed files, only compress
  13316. values.
  13317. </li>
  13318. <li>
  13319. <code>BlockCompressWriter</code> : Block-compressed files, both keys &
  13320. values are collected in 'blocks'
  13321. separately and compressed. The size of
  13322. the 'block' is configurable.
  13323. </ol>
  13324. <p>The actual compression algorithm used to compress key and/or values can be
  13325. specified by using the appropriate {@link CompressionCodec}.</p>
  13326. <p>The recommended way is to use the static <tt>createWriter</tt> methods
  13327. provided by the <code>SequenceFile</code> to chose the preferred format.</p>
  13328. <p>The {@link Reader} acts as the bridge and can read any of the above
  13329. <code>SequenceFile</code> formats.</p>
  13330. <h4 id="Formats">SequenceFile Formats</h4>
  13331. <p>Essentially there are 3 different formats for <code>SequenceFile</code>s
  13332. depending on the <code>CompressionType</code> specified. All of them share a
  13333. <a href="#Header">common header</a> described below.
  13334. <h5 id="Header">SequenceFile Header</h5>
  13335. <ul>
  13336. <li>
  13337. version - 3 bytes of magic header <b>SEQ</b>, followed by 1 byte of actual
  13338. version number (e.g. SEQ4 or SEQ6)
  13339. </li>
  13340. <li>
  13341. keyClassName -key class
  13342. </li>
  13343. <li>
  13344. valueClassName - value class
  13345. </li>
  13346. <li>
  13347. compression - A boolean which specifies if compression is turned on for
  13348. keys/values in this file.
  13349. </li>
  13350. <li>
  13351. blockCompression - A boolean which specifies if block-compression is
  13352. turned on for keys/values in this file.
  13353. </li>
  13354. <li>
  13355. compression codec - <code>CompressionCodec</code> class which is used for
  13356. compression of keys and/or values (if compression is
  13357. enabled).
  13358. </li>
  13359. <li>
  13360. metadata - {@link Metadata} for this file.
  13361. </li>
  13362. <li>
  13363. sync - A sync marker to denote end of the header.
  13364. </li>
  13365. </ul>
  13366. <h5 id="#UncompressedFormat">Uncompressed SequenceFile Format</h5>
  13367. <ul>
  13368. <li>
  13369. <a href="#Header">Header</a>
  13370. </li>
  13371. <li>
  13372. Record
  13373. <ul>
  13374. <li>Record length</li>
  13375. <li>Key length</li>
  13376. <li>Key</li>
  13377. <li>Value</li>
  13378. </ul>
  13379. </li>
  13380. <li>
  13381. A sync-marker every few <code>100</code> bytes or so.
  13382. </li>
  13383. </ul>
  13384. <h5 id="#RecordCompressedFormat">Record-Compressed SequenceFile Format</h5>
  13385. <ul>
  13386. <li>
  13387. <a href="#Header">Header</a>
  13388. </li>
  13389. <li>
  13390. Record
  13391. <ul>
  13392. <li>Record length</li>
  13393. <li>Key length</li>
  13394. <li>Key</li>
  13395. <li><i>Compressed</i> Value</li>
  13396. </ul>
  13397. </li>
  13398. <li>
  13399. A sync-marker every few <code>100</code> bytes or so.
  13400. </li>
  13401. </ul>
  13402. <h5 id="#BlockCompressedFormat">Block-Compressed SequenceFile Format</h5>
  13403. <ul>
  13404. <li>
  13405. <a href="#Header">Header</a>
  13406. </li>
  13407. <li>
  13408. Record <i>Block</i>
  13409. <ul>
  13410. <li>Compressed key-lengths block-size</li>
  13411. <li>Compressed key-lengths block</li>
  13412. <li>Compressed keys block-size</li>
  13413. <li>Compressed keys block</li>
  13414. <li>Compressed value-lengths block-size</li>
  13415. <li>Compressed value-lengths block</li>
  13416. <li>Compressed values block-size</li>
  13417. <li>Compressed values block</li>
  13418. </ul>
  13419. </li>
  13420. <li>
  13421. A sync-marker every few <code>100</code> bytes or so.
  13422. </li>
  13423. </ul>
  13424. <p>The compressed blocks of key lengths and value lengths consist of the
  13425. actual lengths of individual keys/values encoded in ZeroCompressedInteger
  13426. format.</p>
  13427. @see CompressionCodec]]>
  13428. </doc>
  13429. </class>
  13430. <!-- end class org.apache.hadoop.io.SequenceFile -->
  13431. <!-- start class org.apache.hadoop.io.SequenceFile.CompressionType -->
  13432. <class name="SequenceFile.CompressionType" extends="java.lang.Enum"
  13433. abstract="false"
  13434. static="true" final="true" visibility="public"
  13435. deprecated="not deprecated">
  13436. <method name="values" return="org.apache.hadoop.io.SequenceFile.CompressionType[]"
  13437. abstract="false" native="false" synchronized="false"
  13438. static="true" final="false" visibility="public"
  13439. deprecated="not deprecated">
  13440. </method>
  13441. <method name="valueOf" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  13442. abstract="false" native="false" synchronized="false"
  13443. static="true" final="false" visibility="public"
  13444. deprecated="not deprecated">
  13445. <param name="name" type="java.lang.String"/>
  13446. </method>
  13447. <field name="NONE" type="org.apache.hadoop.io.SequenceFile.CompressionType"
  13448. transient="false" volatile="false"
  13449. static="true" final="true" visibility="public"
  13450. deprecated="not deprecated">
  13451. <doc>
  13452. <![CDATA[Do not compress records.]]>
  13453. </doc>
  13454. </field>
  13455. <field name="RECORD" type="org.apache.hadoop.io.SequenceFile.CompressionType"
  13456. transient="false" volatile="false"
  13457. static="true" final="true" visibility="public"
  13458. deprecated="not deprecated">
  13459. <doc>
  13460. <![CDATA[Compress values only, each separately.]]>
  13461. </doc>
  13462. </field>
  13463. <field name="BLOCK" type="org.apache.hadoop.io.SequenceFile.CompressionType"
  13464. transient="false" volatile="false"
  13465. static="true" final="true" visibility="public"
  13466. deprecated="not deprecated">
  13467. <doc>
  13468. <![CDATA[Compress sequences of records together in blocks.]]>
  13469. </doc>
  13470. </field>
  13471. <doc>
  13472. <![CDATA[The compression type used to compress key/value pairs in the
  13473. {@link SequenceFile}.
  13474. @see SequenceFile.Writer]]>
  13475. </doc>
  13476. </class>
  13477. <!-- end class org.apache.hadoop.io.SequenceFile.CompressionType -->
  13478. <!-- start class org.apache.hadoop.io.SequenceFile.Metadata -->
  13479. <class name="SequenceFile.Metadata" extends="java.lang.Object"
  13480. abstract="false"
  13481. static="true" final="false" visibility="public"
  13482. deprecated="not deprecated">
  13483. <implements name="org.apache.hadoop.io.Writable"/>
  13484. <constructor name="SequenceFile.Metadata"
  13485. static="false" final="false" visibility="public"
  13486. deprecated="not deprecated">
  13487. </constructor>
  13488. <constructor name="SequenceFile.Metadata" type="java.util.TreeMap"
  13489. static="false" final="false" visibility="public"
  13490. deprecated="not deprecated">
  13491. </constructor>
  13492. <method name="get" return="org.apache.hadoop.io.Text"
  13493. abstract="false" native="false" synchronized="false"
  13494. static="false" final="false" visibility="public"
  13495. deprecated="not deprecated">
  13496. <param name="name" type="org.apache.hadoop.io.Text"/>
  13497. </method>
  13498. <method name="set"
  13499. abstract="false" native="false" synchronized="false"
  13500. static="false" final="false" visibility="public"
  13501. deprecated="not deprecated">
  13502. <param name="name" type="org.apache.hadoop.io.Text"/>
  13503. <param name="value" type="org.apache.hadoop.io.Text"/>
  13504. </method>
  13505. <method name="getMetadata" return="java.util.TreeMap"
  13506. abstract="false" native="false" synchronized="false"
  13507. static="false" final="false" visibility="public"
  13508. deprecated="not deprecated">
  13509. </method>
  13510. <method name="write"
  13511. abstract="false" native="false" synchronized="false"
  13512. static="false" final="false" visibility="public"
  13513. deprecated="not deprecated">
  13514. <param name="out" type="java.io.DataOutput"/>
  13515. <exception name="IOException" type="java.io.IOException"/>
  13516. </method>
  13517. <method name="readFields"
  13518. abstract="false" native="false" synchronized="false"
  13519. static="false" final="false" visibility="public"
  13520. deprecated="not deprecated">
  13521. <param name="in" type="java.io.DataInput"/>
  13522. <exception name="IOException" type="java.io.IOException"/>
  13523. </method>
  13524. <method name="equals" return="boolean"
  13525. abstract="false" native="false" synchronized="false"
  13526. static="false" final="false" visibility="public"
  13527. deprecated="not deprecated">
  13528. <param name="other" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  13529. </method>
  13530. <method name="hashCode" return="int"
  13531. abstract="false" native="false" synchronized="false"
  13532. static="false" final="false" visibility="public"
  13533. deprecated="not deprecated">
  13534. </method>
  13535. <method name="toString" return="java.lang.String"
  13536. abstract="false" native="false" synchronized="false"
  13537. static="false" final="false" visibility="public"
  13538. deprecated="not deprecated">
  13539. </method>
  13540. <doc>
  13541. <![CDATA[The class encapsulating with the metadata of a file.
  13542. The metadata of a file is a list of attribute name/value
  13543. pairs of Text type.]]>
  13544. </doc>
  13545. </class>
  13546. <!-- end class org.apache.hadoop.io.SequenceFile.Metadata -->
  13547. <!-- start class org.apache.hadoop.io.SequenceFile.Reader -->
  13548. <class name="SequenceFile.Reader" extends="java.lang.Object"
  13549. abstract="false"
  13550. static="true" final="false" visibility="public"
  13551. deprecated="not deprecated">
  13552. <implements name="java.io.Closeable"/>
  13553. <constructor name="SequenceFile.Reader" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.fs.Path, org.apache.hadoop.conf.Configuration"
  13554. static="false" final="false" visibility="public"
  13555. deprecated="not deprecated">
  13556. <exception name="IOException" type="java.io.IOException"/>
  13557. <doc>
  13558. <![CDATA[Open the named file.]]>
  13559. </doc>
  13560. </constructor>
  13561. <method name="openFile" return="org.apache.hadoop.fs.FSDataInputStream"
  13562. abstract="false" native="false" synchronized="false"
  13563. static="false" final="false" visibility="protected"
  13564. deprecated="not deprecated">
  13565. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  13566. <param name="file" type="org.apache.hadoop.fs.Path"/>
  13567. <param name="bufferSize" type="int"/>
  13568. <param name="length" type="long"/>
  13569. <exception name="IOException" type="java.io.IOException"/>
  13570. <doc>
  13571. <![CDATA[Override this method to specialize the type of
  13572. {@link FSDataInputStream} returned.]]>
  13573. </doc>
  13574. </method>
  13575. <method name="close"
  13576. abstract="false" native="false" synchronized="true"
  13577. static="false" final="false" visibility="public"
  13578. deprecated="not deprecated">
  13579. <exception name="IOException" type="java.io.IOException"/>
  13580. <doc>
  13581. <![CDATA[Close the file.]]>
  13582. </doc>
  13583. </method>
  13584. <method name="getKeyClassName" return="java.lang.String"
  13585. abstract="false" native="false" synchronized="false"
  13586. static="false" final="false" visibility="public"
  13587. deprecated="not deprecated">
  13588. <doc>
  13589. <![CDATA[Returns the name of the key class.]]>
  13590. </doc>
  13591. </method>
  13592. <method name="getKeyClass" return="java.lang.Class"
  13593. abstract="false" native="false" synchronized="true"
  13594. static="false" final="false" visibility="public"
  13595. deprecated="not deprecated">
  13596. <doc>
  13597. <![CDATA[Returns the class of keys in this file.]]>
  13598. </doc>
  13599. </method>
  13600. <method name="getValueClassName" return="java.lang.String"
  13601. abstract="false" native="false" synchronized="false"
  13602. static="false" final="false" visibility="public"
  13603. deprecated="not deprecated">
  13604. <doc>
  13605. <![CDATA[Returns the name of the value class.]]>
  13606. </doc>
  13607. </method>
  13608. <method name="getValueClass" return="java.lang.Class"
  13609. abstract="false" native="false" synchronized="true"
  13610. static="false" final="false" visibility="public"
  13611. deprecated="not deprecated">
  13612. <doc>
  13613. <![CDATA[Returns the class of values in this file.]]>
  13614. </doc>
  13615. </method>
  13616. <method name="isCompressed" return="boolean"
  13617. abstract="false" native="false" synchronized="false"
  13618. static="false" final="false" visibility="public"
  13619. deprecated="not deprecated">
  13620. <doc>
  13621. <![CDATA[Returns true if values are compressed.]]>
  13622. </doc>
  13623. </method>
  13624. <method name="isBlockCompressed" return="boolean"
  13625. abstract="false" native="false" synchronized="false"
  13626. static="false" final="false" visibility="public"
  13627. deprecated="not deprecated">
  13628. <doc>
  13629. <![CDATA[Returns true if records are block-compressed.]]>
  13630. </doc>
  13631. </method>
  13632. <method name="getCompressionCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  13633. abstract="false" native="false" synchronized="false"
  13634. static="false" final="false" visibility="public"
  13635. deprecated="not deprecated">
  13636. <doc>
  13637. <![CDATA[Returns the compression codec of data in this file.]]>
  13638. </doc>
  13639. </method>
  13640. <method name="getMetadata" return="org.apache.hadoop.io.SequenceFile.Metadata"
  13641. abstract="false" native="false" synchronized="false"
  13642. static="false" final="false" visibility="public"
  13643. deprecated="not deprecated">
  13644. <doc>
  13645. <![CDATA[Returns the metadata object of the file]]>
  13646. </doc>
  13647. </method>
  13648. <method name="getCurrentValue"
  13649. abstract="false" native="false" synchronized="true"
  13650. static="false" final="false" visibility="public"
  13651. deprecated="not deprecated">
  13652. <param name="val" type="org.apache.hadoop.io.Writable"/>
  13653. <exception name="IOException" type="java.io.IOException"/>
  13654. <doc>
  13655. <![CDATA[Get the 'value' corresponding to the last read 'key'.
  13656. @param val : The 'value' to be read.
  13657. @throws IOException]]>
  13658. </doc>
  13659. </method>
  13660. <method name="getCurrentValue" return="java.lang.Object"
  13661. abstract="false" native="false" synchronized="true"
  13662. static="false" final="false" visibility="public"
  13663. deprecated="not deprecated">
  13664. <param name="val" type="java.lang.Object"/>
  13665. <exception name="IOException" type="java.io.IOException"/>
  13666. <doc>
  13667. <![CDATA[Get the 'value' corresponding to the last read 'key'.
  13668. @param val : The 'value' to be read.
  13669. @throws IOException]]>
  13670. </doc>
  13671. </method>
  13672. <method name="next" return="boolean"
  13673. abstract="false" native="false" synchronized="true"
  13674. static="false" final="false" visibility="public"
  13675. deprecated="not deprecated">
  13676. <param name="key" type="org.apache.hadoop.io.Writable"/>
  13677. <exception name="IOException" type="java.io.IOException"/>
  13678. <doc>
  13679. <![CDATA[Read the next key in the file into <code>key</code>, skipping its
  13680. value. True if another entry exists, and false at end of file.]]>
  13681. </doc>
  13682. </method>
  13683. <method name="next" return="boolean"
  13684. abstract="false" native="false" synchronized="true"
  13685. static="false" final="false" visibility="public"
  13686. deprecated="not deprecated">
  13687. <param name="key" type="org.apache.hadoop.io.Writable"/>
  13688. <param name="val" type="org.apache.hadoop.io.Writable"/>
  13689. <exception name="IOException" type="java.io.IOException"/>
  13690. <doc>
  13691. <![CDATA[Read the next key/value pair in the file into <code>key</code> and
  13692. <code>val</code>. Returns true if such a pair exists and false when at
  13693. end of file]]>
  13694. </doc>
  13695. </method>
  13696. <method name="next" return="int"
  13697. abstract="false" native="false" synchronized="true"
  13698. static="false" final="false" visibility="public"
  13699. deprecated="Call {@link #nextRaw(DataOutputBuffer,SequenceFile.ValueBytes)}.">
  13700. <param name="buffer" type="org.apache.hadoop.io.DataOutputBuffer"/>
  13701. <exception name="IOException" type="java.io.IOException"/>
  13702. <doc>
  13703. <![CDATA[@deprecated Call {@link #nextRaw(DataOutputBuffer,SequenceFile.ValueBytes)}.]]>
  13704. </doc>
  13705. </method>
  13706. <method name="createValueBytes" return="org.apache.hadoop.io.SequenceFile.ValueBytes"
  13707. abstract="false" native="false" synchronized="false"
  13708. static="false" final="false" visibility="public"
  13709. deprecated="not deprecated">
  13710. </method>
  13711. <method name="nextRaw" return="int"
  13712. abstract="false" native="false" synchronized="true"
  13713. static="false" final="false" visibility="public"
  13714. deprecated="not deprecated">
  13715. <param name="key" type="org.apache.hadoop.io.DataOutputBuffer"/>
  13716. <param name="val" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  13717. <exception name="IOException" type="java.io.IOException"/>
  13718. <doc>
  13719. <![CDATA[Read 'raw' records.
  13720. @param key - The buffer into which the key is read
  13721. @param val - The 'raw' value
  13722. @return Returns the total record length or -1 for end of file
  13723. @throws IOException]]>
  13724. </doc>
  13725. </method>
  13726. <method name="nextRawKey" return="int"
  13727. abstract="false" native="false" synchronized="false"
  13728. static="false" final="false" visibility="public"
  13729. deprecated="not deprecated">
  13730. <param name="key" type="org.apache.hadoop.io.DataOutputBuffer"/>
  13731. <exception name="IOException" type="java.io.IOException"/>
  13732. <doc>
  13733. <![CDATA[Read 'raw' keys.
  13734. @param key - The buffer into which the key is read
  13735. @return Returns the key length or -1 for end of file
  13736. @throws IOException]]>
  13737. </doc>
  13738. </method>
  13739. <method name="next" return="java.lang.Object"
  13740. abstract="false" native="false" synchronized="true"
  13741. static="false" final="false" visibility="public"
  13742. deprecated="not deprecated">
  13743. <param name="key" type="java.lang.Object"/>
  13744. <exception name="IOException" type="java.io.IOException"/>
  13745. <doc>
  13746. <![CDATA[Read the next key in the file, skipping its
  13747. value. Return null at end of file.]]>
  13748. </doc>
  13749. </method>
  13750. <method name="nextRawValue" return="int"
  13751. abstract="false" native="false" synchronized="true"
  13752. static="false" final="false" visibility="public"
  13753. deprecated="not deprecated">
  13754. <param name="val" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  13755. <exception name="IOException" type="java.io.IOException"/>
  13756. <doc>
  13757. <![CDATA[Read 'raw' values.
  13758. @param val - The 'raw' value
  13759. @return Returns the value length
  13760. @throws IOException]]>
  13761. </doc>
  13762. </method>
  13763. <method name="seek"
  13764. abstract="false" native="false" synchronized="true"
  13765. static="false" final="false" visibility="public"
  13766. deprecated="not deprecated">
  13767. <param name="position" type="long"/>
  13768. <exception name="IOException" type="java.io.IOException"/>
  13769. <doc>
  13770. <![CDATA[Set the current byte position in the input file.
  13771. <p>The position passed must be a position returned by {@link
  13772. SequenceFile.Writer#getLength()} when writing this file. To seek to an arbitrary
  13773. position, use {@link SequenceFile.Reader#sync(long)}.]]>
  13774. </doc>
  13775. </method>
  13776. <method name="sync"
  13777. abstract="false" native="false" synchronized="true"
  13778. static="false" final="false" visibility="public"
  13779. deprecated="not deprecated">
  13780. <param name="position" type="long"/>
  13781. <exception name="IOException" type="java.io.IOException"/>
  13782. <doc>
  13783. <![CDATA[Seek to the next sync mark past a given position.]]>
  13784. </doc>
  13785. </method>
  13786. <method name="syncSeen" return="boolean"
  13787. abstract="false" native="false" synchronized="false"
  13788. static="false" final="false" visibility="public"
  13789. deprecated="not deprecated">
  13790. <doc>
  13791. <![CDATA[Returns true iff the previous call to next passed a sync mark.]]>
  13792. </doc>
  13793. </method>
  13794. <method name="getPosition" return="long"
  13795. abstract="false" native="false" synchronized="true"
  13796. static="false" final="false" visibility="public"
  13797. deprecated="not deprecated">
  13798. <exception name="IOException" type="java.io.IOException"/>
  13799. <doc>
  13800. <![CDATA[Return the current byte position in the input file.]]>
  13801. </doc>
  13802. </method>
  13803. <method name="toString" return="java.lang.String"
  13804. abstract="false" native="false" synchronized="false"
  13805. static="false" final="false" visibility="public"
  13806. deprecated="not deprecated">
  13807. <doc>
  13808. <![CDATA[Returns the name of the file.]]>
  13809. </doc>
  13810. </method>
  13811. <doc>
  13812. <![CDATA[Reads key/value pairs from a sequence-format file.]]>
  13813. </doc>
  13814. </class>
  13815. <!-- end class org.apache.hadoop.io.SequenceFile.Reader -->
  13816. <!-- start class org.apache.hadoop.io.SequenceFile.Sorter -->
  13817. <class name="SequenceFile.Sorter" extends="java.lang.Object"
  13818. abstract="false"
  13819. static="true" final="false" visibility="public"
  13820. deprecated="not deprecated">
  13821. <constructor name="SequenceFile.Sorter" type="org.apache.hadoop.fs.FileSystem, java.lang.Class, java.lang.Class, org.apache.hadoop.conf.Configuration"
  13822. static="false" final="false" visibility="public"
  13823. deprecated="not deprecated">
  13824. <doc>
  13825. <![CDATA[Sort and merge files containing the named classes.]]>
  13826. </doc>
  13827. </constructor>
  13828. <constructor name="SequenceFile.Sorter" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.io.RawComparator, java.lang.Class, java.lang.Class, org.apache.hadoop.conf.Configuration"
  13829. static="false" final="false" visibility="public"
  13830. deprecated="not deprecated">
  13831. <doc>
  13832. <![CDATA[Sort and merge using an arbitrary {@link RawComparator}.]]>
  13833. </doc>
  13834. </constructor>
  13835. <method name="setFactor"
  13836. abstract="false" native="false" synchronized="false"
  13837. static="false" final="false" visibility="public"
  13838. deprecated="not deprecated">
  13839. <param name="factor" type="int"/>
  13840. <doc>
  13841. <![CDATA[Set the number of streams to merge at once.]]>
  13842. </doc>
  13843. </method>
  13844. <method name="getFactor" return="int"
  13845. abstract="false" native="false" synchronized="false"
  13846. static="false" final="false" visibility="public"
  13847. deprecated="not deprecated">
  13848. <doc>
  13849. <![CDATA[Get the number of streams to merge at once.]]>
  13850. </doc>
  13851. </method>
  13852. <method name="setMemory"
  13853. abstract="false" native="false" synchronized="false"
  13854. static="false" final="false" visibility="public"
  13855. deprecated="not deprecated">
  13856. <param name="memory" type="int"/>
  13857. <doc>
  13858. <![CDATA[Set the total amount of buffer memory, in bytes.]]>
  13859. </doc>
  13860. </method>
  13861. <method name="getMemory" return="int"
  13862. abstract="false" native="false" synchronized="false"
  13863. static="false" final="false" visibility="public"
  13864. deprecated="not deprecated">
  13865. <doc>
  13866. <![CDATA[Get the total amount of buffer memory, in bytes.]]>
  13867. </doc>
  13868. </method>
  13869. <method name="setProgressable"
  13870. abstract="false" native="false" synchronized="false"
  13871. static="false" final="false" visibility="public"
  13872. deprecated="not deprecated">
  13873. <param name="progressable" type="org.apache.hadoop.util.Progressable"/>
  13874. <doc>
  13875. <![CDATA[Set the progressable object in order to report progress.]]>
  13876. </doc>
  13877. </method>
  13878. <method name="sort"
  13879. abstract="false" native="false" synchronized="false"
  13880. static="false" final="false" visibility="public"
  13881. deprecated="not deprecated">
  13882. <param name="inFiles" type="org.apache.hadoop.fs.Path[]"/>
  13883. <param name="outFile" type="org.apache.hadoop.fs.Path"/>
  13884. <param name="deleteInput" type="boolean"/>
  13885. <exception name="IOException" type="java.io.IOException"/>
  13886. <doc>
  13887. <![CDATA[Perform a file sort from a set of input files into an output file.
  13888. @param inFiles the files to be sorted
  13889. @param outFile the sorted output file
  13890. @param deleteInput should the input files be deleted as they are read?]]>
  13891. </doc>
  13892. </method>
  13893. <method name="sortAndIterate" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  13894. abstract="false" native="false" synchronized="false"
  13895. static="false" final="false" visibility="public"
  13896. deprecated="not deprecated">
  13897. <param name="inFiles" type="org.apache.hadoop.fs.Path[]"/>
  13898. <param name="tempDir" type="org.apache.hadoop.fs.Path"/>
  13899. <param name="deleteInput" type="boolean"/>
  13900. <exception name="IOException" type="java.io.IOException"/>
  13901. <doc>
  13902. <![CDATA[Perform a file sort from a set of input files and return an iterator.
  13903. @param inFiles the files to be sorted
  13904. @param tempDir the directory where temp files are created during sort
  13905. @param deleteInput should the input files be deleted as they are read?
  13906. @return iterator the RawKeyValueIterator]]>
  13907. </doc>
  13908. </method>
  13909. <method name="sort"
  13910. abstract="false" native="false" synchronized="false"
  13911. static="false" final="false" visibility="public"
  13912. deprecated="not deprecated">
  13913. <param name="inFile" type="org.apache.hadoop.fs.Path"/>
  13914. <param name="outFile" type="org.apache.hadoop.fs.Path"/>
  13915. <exception name="IOException" type="java.io.IOException"/>
  13916. <doc>
  13917. <![CDATA[The backwards compatible interface to sort.
  13918. @param inFile the input file to sort
  13919. @param outFile the sorted output file]]>
  13920. </doc>
  13921. </method>
  13922. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  13923. abstract="false" native="false" synchronized="false"
  13924. static="false" final="false" visibility="public"
  13925. deprecated="not deprecated">
  13926. <param name="segments" type="java.util.List"/>
  13927. <param name="tmpDir" type="org.apache.hadoop.fs.Path"/>
  13928. <exception name="IOException" type="java.io.IOException"/>
  13929. <doc>
  13930. <![CDATA[Merges the list of segments of type <code>SegmentDescriptor</code>
  13931. @param segments the list of SegmentDescriptors
  13932. @param tmpDir the directory to write temporary files into
  13933. @return RawKeyValueIterator
  13934. @throws IOException]]>
  13935. </doc>
  13936. </method>
  13937. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  13938. abstract="false" native="false" synchronized="false"
  13939. static="false" final="false" visibility="public"
  13940. deprecated="not deprecated">
  13941. <param name="inNames" type="org.apache.hadoop.fs.Path[]"/>
  13942. <param name="deleteInputs" type="boolean"/>
  13943. <param name="tmpDir" type="org.apache.hadoop.fs.Path"/>
  13944. <exception name="IOException" type="java.io.IOException"/>
  13945. <doc>
  13946. <![CDATA[Merges the contents of files passed in Path[] using a max factor value
  13947. that is already set
  13948. @param inNames the array of path names
  13949. @param deleteInputs true if the input files should be deleted when
  13950. unnecessary
  13951. @param tmpDir the directory to write temporary files into
  13952. @return RawKeyValueIteratorMergeQueue
  13953. @throws IOException]]>
  13954. </doc>
  13955. </method>
  13956. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  13957. abstract="false" native="false" synchronized="false"
  13958. static="false" final="false" visibility="public"
  13959. deprecated="not deprecated">
  13960. <param name="inNames" type="org.apache.hadoop.fs.Path[]"/>
  13961. <param name="deleteInputs" type="boolean"/>
  13962. <param name="factor" type="int"/>
  13963. <param name="tmpDir" type="org.apache.hadoop.fs.Path"/>
  13964. <exception name="IOException" type="java.io.IOException"/>
  13965. <doc>
  13966. <![CDATA[Merges the contents of files passed in Path[]
  13967. @param inNames the array of path names
  13968. @param deleteInputs true if the input files should be deleted when
  13969. unnecessary
  13970. @param factor the factor that will be used as the maximum merge fan-in
  13971. @param tmpDir the directory to write temporary files into
  13972. @return RawKeyValueIteratorMergeQueue
  13973. @throws IOException]]>
  13974. </doc>
  13975. </method>
  13976. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  13977. abstract="false" native="false" synchronized="false"
  13978. static="false" final="false" visibility="public"
  13979. deprecated="not deprecated">
  13980. <param name="inNames" type="org.apache.hadoop.fs.Path[]"/>
  13981. <param name="tempDir" type="org.apache.hadoop.fs.Path"/>
  13982. <param name="deleteInputs" type="boolean"/>
  13983. <exception name="IOException" type="java.io.IOException"/>
  13984. <doc>
  13985. <![CDATA[Merges the contents of files passed in Path[]
  13986. @param inNames the array of path names
  13987. @param tempDir the directory for creating temp files during merge
  13988. @param deleteInputs true if the input files should be deleted when
  13989. unnecessary
  13990. @return RawKeyValueIteratorMergeQueue
  13991. @throws IOException]]>
  13992. </doc>
  13993. </method>
  13994. <method name="cloneFileAttributes" return="org.apache.hadoop.io.SequenceFile.Writer"
  13995. abstract="false" native="false" synchronized="false"
  13996. static="false" final="false" visibility="public"
  13997. deprecated="not deprecated">
  13998. <param name="inputFile" type="org.apache.hadoop.fs.Path"/>
  13999. <param name="outputFile" type="org.apache.hadoop.fs.Path"/>
  14000. <param name="prog" type="org.apache.hadoop.util.Progressable"/>
  14001. <exception name="IOException" type="java.io.IOException"/>
  14002. <doc>
  14003. <![CDATA[Clones the attributes (like compression of the input file and creates a
  14004. corresponding Writer
  14005. @param inputFile the path of the input file whose attributes should be
  14006. cloned
  14007. @param outputFile the path of the output file
  14008. @param prog the Progressable to report status during the file write
  14009. @return Writer
  14010. @throws IOException]]>
  14011. </doc>
  14012. </method>
  14013. <method name="writeFile"
  14014. abstract="false" native="false" synchronized="false"
  14015. static="false" final="false" visibility="public"
  14016. deprecated="not deprecated">
  14017. <param name="records" type="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"/>
  14018. <param name="writer" type="org.apache.hadoop.io.SequenceFile.Writer"/>
  14019. <exception name="IOException" type="java.io.IOException"/>
  14020. <doc>
  14021. <![CDATA[Writes records from RawKeyValueIterator into a file represented by the
  14022. passed writer
  14023. @param records the RawKeyValueIterator
  14024. @param writer the Writer created earlier
  14025. @throws IOException]]>
  14026. </doc>
  14027. </method>
  14028. <method name="merge"
  14029. abstract="false" native="false" synchronized="false"
  14030. static="false" final="false" visibility="public"
  14031. deprecated="not deprecated">
  14032. <param name="inFiles" type="org.apache.hadoop.fs.Path[]"/>
  14033. <param name="outFile" type="org.apache.hadoop.fs.Path"/>
  14034. <exception name="IOException" type="java.io.IOException"/>
  14035. <doc>
  14036. <![CDATA[Merge the provided files.
  14037. @param inFiles the array of input path names
  14038. @param outFile the final output file
  14039. @throws IOException]]>
  14040. </doc>
  14041. </method>
  14042. <doc>
  14043. <![CDATA[Sorts key/value pairs in a sequence-format file.
  14044. <p>For best performance, applications should make sure that the {@link
  14045. Writable#readFields(DataInput)} implementation of their keys is
  14046. very efficient. In particular, it should avoid allocating memory.]]>
  14047. </doc>
  14048. </class>
  14049. <!-- end class org.apache.hadoop.io.SequenceFile.Sorter -->
  14050. <!-- start interface org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator -->
  14051. <interface name="SequenceFile.Sorter.RawKeyValueIterator" abstract="true"
  14052. static="true" final="false" visibility="public"
  14053. deprecated="not deprecated">
  14054. <method name="getKey" return="org.apache.hadoop.io.DataOutputBuffer"
  14055. abstract="false" native="false" synchronized="false"
  14056. static="false" final="false" visibility="public"
  14057. deprecated="not deprecated">
  14058. <exception name="IOException" type="java.io.IOException"/>
  14059. <doc>
  14060. <![CDATA[Gets the current raw key
  14061. @return DataOutputBuffer
  14062. @throws IOException]]>
  14063. </doc>
  14064. </method>
  14065. <method name="getValue" return="org.apache.hadoop.io.SequenceFile.ValueBytes"
  14066. abstract="false" native="false" synchronized="false"
  14067. static="false" final="false" visibility="public"
  14068. deprecated="not deprecated">
  14069. <exception name="IOException" type="java.io.IOException"/>
  14070. <doc>
  14071. <![CDATA[Gets the current raw value
  14072. @return ValueBytes
  14073. @throws IOException]]>
  14074. </doc>
  14075. </method>
  14076. <method name="next" return="boolean"
  14077. abstract="false" native="false" synchronized="false"
  14078. static="false" final="false" visibility="public"
  14079. deprecated="not deprecated">
  14080. <exception name="IOException" type="java.io.IOException"/>
  14081. <doc>
  14082. <![CDATA[Sets up the current key and value (for getKey and getValue)
  14083. @return true if there exists a key/value, false otherwise
  14084. @throws IOException]]>
  14085. </doc>
  14086. </method>
  14087. <method name="close"
  14088. abstract="false" native="false" synchronized="false"
  14089. static="false" final="false" visibility="public"
  14090. deprecated="not deprecated">
  14091. <exception name="IOException" type="java.io.IOException"/>
  14092. <doc>
  14093. <![CDATA[closes the iterator so that the underlying streams can be closed
  14094. @throws IOException]]>
  14095. </doc>
  14096. </method>
  14097. <method name="getProgress" return="org.apache.hadoop.util.Progress"
  14098. abstract="false" native="false" synchronized="false"
  14099. static="false" final="false" visibility="public"
  14100. deprecated="not deprecated">
  14101. <doc>
  14102. <![CDATA[Gets the Progress object; this has a float (0.0 - 1.0)
  14103. indicating the bytes processed by the iterator so far]]>
  14104. </doc>
  14105. </method>
  14106. <doc>
  14107. <![CDATA[The interface to iterate over raw keys/values of SequenceFiles.]]>
  14108. </doc>
  14109. </interface>
  14110. <!-- end interface org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator -->
  14111. <!-- start class org.apache.hadoop.io.SequenceFile.Sorter.SegmentDescriptor -->
  14112. <class name="SequenceFile.Sorter.SegmentDescriptor" extends="java.lang.Object"
  14113. abstract="false"
  14114. static="false" final="false" visibility="public"
  14115. deprecated="not deprecated">
  14116. <implements name="java.lang.Comparable"/>
  14117. <constructor name="SequenceFile.Sorter.SegmentDescriptor" type="long, long, org.apache.hadoop.fs.Path"
  14118. static="false" final="false" visibility="public"
  14119. deprecated="not deprecated">
  14120. <doc>
  14121. <![CDATA[Constructs a segment
  14122. @param segmentOffset the offset of the segment in the file
  14123. @param segmentLength the length of the segment
  14124. @param segmentPathName the path name of the file containing the segment]]>
  14125. </doc>
  14126. </constructor>
  14127. <method name="doSync"
  14128. abstract="false" native="false" synchronized="false"
  14129. static="false" final="false" visibility="public"
  14130. deprecated="not deprecated">
  14131. <doc>
  14132. <![CDATA[Do the sync checks]]>
  14133. </doc>
  14134. </method>
  14135. <method name="preserveInput"
  14136. abstract="false" native="false" synchronized="false"
  14137. static="false" final="false" visibility="public"
  14138. deprecated="not deprecated">
  14139. <param name="preserve" type="boolean"/>
  14140. <doc>
  14141. <![CDATA[Whether to delete the files when no longer needed]]>
  14142. </doc>
  14143. </method>
  14144. <method name="shouldPreserveInput" return="boolean"
  14145. abstract="false" native="false" synchronized="false"
  14146. static="false" final="false" visibility="public"
  14147. deprecated="not deprecated">
  14148. </method>
  14149. <method name="compareTo" return="int"
  14150. abstract="false" native="false" synchronized="false"
  14151. static="false" final="false" visibility="public"
  14152. deprecated="not deprecated">
  14153. <param name="o" type="java.lang.Object"/>
  14154. </method>
  14155. <method name="equals" return="boolean"
  14156. abstract="false" native="false" synchronized="false"
  14157. static="false" final="false" visibility="public"
  14158. deprecated="not deprecated">
  14159. <param name="o" type="java.lang.Object"/>
  14160. </method>
  14161. <method name="hashCode" return="int"
  14162. abstract="false" native="false" synchronized="false"
  14163. static="false" final="false" visibility="public"
  14164. deprecated="not deprecated">
  14165. </method>
  14166. <method name="nextRawKey" return="boolean"
  14167. abstract="false" native="false" synchronized="false"
  14168. static="false" final="false" visibility="public"
  14169. deprecated="not deprecated">
  14170. <exception name="IOException" type="java.io.IOException"/>
  14171. <doc>
  14172. <![CDATA[Fills up the rawKey object with the key returned by the Reader
  14173. @return true if there is a key returned; false, otherwise
  14174. @throws IOException]]>
  14175. </doc>
  14176. </method>
  14177. <method name="nextRawValue" return="int"
  14178. abstract="false" native="false" synchronized="false"
  14179. static="false" final="false" visibility="public"
  14180. deprecated="not deprecated">
  14181. <param name="rawValue" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  14182. <exception name="IOException" type="java.io.IOException"/>
  14183. <doc>
  14184. <![CDATA[Fills up the passed rawValue with the value corresponding to the key
  14185. read earlier
  14186. @param rawValue
  14187. @return the length of the value
  14188. @throws IOException]]>
  14189. </doc>
  14190. </method>
  14191. <method name="getKey" return="org.apache.hadoop.io.DataOutputBuffer"
  14192. abstract="false" native="false" synchronized="false"
  14193. static="false" final="false" visibility="public"
  14194. deprecated="not deprecated">
  14195. <doc>
  14196. <![CDATA[Returns the stored rawKey]]>
  14197. </doc>
  14198. </method>
  14199. <method name="cleanup"
  14200. abstract="false" native="false" synchronized="false"
  14201. static="false" final="false" visibility="public"
  14202. deprecated="not deprecated">
  14203. <exception name="IOException" type="java.io.IOException"/>
  14204. <doc>
  14205. <![CDATA[The default cleanup. Subclasses can override this with a custom
  14206. cleanup]]>
  14207. </doc>
  14208. </method>
  14209. <doc>
  14210. <![CDATA[This class defines a merge segment. This class can be subclassed to
  14211. provide a customized cleanup method implementation. In this
  14212. implementation, cleanup closes the file handle and deletes the file]]>
  14213. </doc>
  14214. </class>
  14215. <!-- end class org.apache.hadoop.io.SequenceFile.Sorter.SegmentDescriptor -->
  14216. <!-- start interface org.apache.hadoop.io.SequenceFile.ValueBytes -->
  14217. <interface name="SequenceFile.ValueBytes" abstract="true"
  14218. static="true" final="false" visibility="public"
  14219. deprecated="not deprecated">
  14220. <method name="writeUncompressedBytes"
  14221. abstract="false" native="false" synchronized="false"
  14222. static="false" final="false" visibility="public"
  14223. deprecated="not deprecated">
  14224. <param name="outStream" type="java.io.DataOutputStream"/>
  14225. <exception name="IOException" type="java.io.IOException"/>
  14226. <doc>
  14227. <![CDATA[Writes the uncompressed bytes to the outStream.
  14228. @param outStream : Stream to write uncompressed bytes into.
  14229. @throws IOException]]>
  14230. </doc>
  14231. </method>
  14232. <method name="writeCompressedBytes"
  14233. abstract="false" native="false" synchronized="false"
  14234. static="false" final="false" visibility="public"
  14235. deprecated="not deprecated">
  14236. <param name="outStream" type="java.io.DataOutputStream"/>
  14237. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  14238. <exception name="IOException" type="java.io.IOException"/>
  14239. <doc>
  14240. <![CDATA[Write compressed bytes to outStream.
  14241. Note: that it will NOT compress the bytes if they are not compressed.
  14242. @param outStream : Stream to write compressed bytes into.]]>
  14243. </doc>
  14244. </method>
  14245. <method name="getSize" return="int"
  14246. abstract="false" native="false" synchronized="false"
  14247. static="false" final="false" visibility="public"
  14248. deprecated="not deprecated">
  14249. <doc>
  14250. <![CDATA[Size of stored data.]]>
  14251. </doc>
  14252. </method>
  14253. <doc>
  14254. <![CDATA[The interface to 'raw' values of SequenceFiles.]]>
  14255. </doc>
  14256. </interface>
  14257. <!-- end interface org.apache.hadoop.io.SequenceFile.ValueBytes -->
  14258. <!-- start class org.apache.hadoop.io.SequenceFile.Writer -->
  14259. <class name="SequenceFile.Writer" extends="java.lang.Object"
  14260. abstract="false"
  14261. static="true" final="false" visibility="public"
  14262. deprecated="not deprecated">
  14263. <implements name="java.io.Closeable"/>
  14264. <constructor name="SequenceFile.Writer" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.Path, java.lang.Class, java.lang.Class"
  14265. static="false" final="false" visibility="public"
  14266. deprecated="not deprecated">
  14267. <exception name="IOException" type="java.io.IOException"/>
  14268. <doc>
  14269. <![CDATA[Create the named file.]]>
  14270. </doc>
  14271. </constructor>
  14272. <constructor name="SequenceFile.Writer" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.Path, java.lang.Class, java.lang.Class, org.apache.hadoop.util.Progressable, org.apache.hadoop.io.SequenceFile.Metadata"
  14273. static="false" final="false" visibility="public"
  14274. deprecated="not deprecated">
  14275. <exception name="IOException" type="java.io.IOException"/>
  14276. <doc>
  14277. <![CDATA[Create the named file with write-progress reporter.]]>
  14278. </doc>
  14279. </constructor>
  14280. <constructor name="SequenceFile.Writer" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.Path, java.lang.Class, java.lang.Class, int, short, long, org.apache.hadoop.util.Progressable, org.apache.hadoop.io.SequenceFile.Metadata"
  14281. static="false" final="false" visibility="public"
  14282. deprecated="not deprecated">
  14283. <exception name="IOException" type="java.io.IOException"/>
  14284. <doc>
  14285. <![CDATA[Create the named file with write-progress reporter.]]>
  14286. </doc>
  14287. </constructor>
  14288. <method name="getKeyClass" return="java.lang.Class"
  14289. abstract="false" native="false" synchronized="false"
  14290. static="false" final="false" visibility="public"
  14291. deprecated="not deprecated">
  14292. <doc>
  14293. <![CDATA[Returns the class of keys in this file.]]>
  14294. </doc>
  14295. </method>
  14296. <method name="getValueClass" return="java.lang.Class"
  14297. abstract="false" native="false" synchronized="false"
  14298. static="false" final="false" visibility="public"
  14299. deprecated="not deprecated">
  14300. <doc>
  14301. <![CDATA[Returns the class of values in this file.]]>
  14302. </doc>
  14303. </method>
  14304. <method name="getCompressionCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  14305. abstract="false" native="false" synchronized="false"
  14306. static="false" final="false" visibility="public"
  14307. deprecated="not deprecated">
  14308. <doc>
  14309. <![CDATA[Returns the compression codec of data in this file.]]>
  14310. </doc>
  14311. </method>
  14312. <method name="sync"
  14313. abstract="false" native="false" synchronized="false"
  14314. static="false" final="false" visibility="public"
  14315. deprecated="not deprecated">
  14316. <exception name="IOException" type="java.io.IOException"/>
  14317. <doc>
  14318. <![CDATA[create a sync point]]>
  14319. </doc>
  14320. </method>
  14321. <method name="syncFs"
  14322. abstract="false" native="false" synchronized="false"
  14323. static="false" final="false" visibility="public"
  14324. deprecated="not deprecated">
  14325. <exception name="IOException" type="java.io.IOException"/>
  14326. <doc>
  14327. <![CDATA[flush all currently written data to the file system]]>
  14328. </doc>
  14329. </method>
  14330. <method name="close"
  14331. abstract="false" native="false" synchronized="true"
  14332. static="false" final="false" visibility="public"
  14333. deprecated="not deprecated">
  14334. <exception name="IOException" type="java.io.IOException"/>
  14335. <doc>
  14336. <![CDATA[Close the file.]]>
  14337. </doc>
  14338. </method>
  14339. <method name="append"
  14340. abstract="false" native="false" synchronized="true"
  14341. static="false" final="false" visibility="public"
  14342. deprecated="not deprecated">
  14343. <param name="key" type="org.apache.hadoop.io.Writable"/>
  14344. <param name="val" type="org.apache.hadoop.io.Writable"/>
  14345. <exception name="IOException" type="java.io.IOException"/>
  14346. <doc>
  14347. <![CDATA[Append a key/value pair.]]>
  14348. </doc>
  14349. </method>
  14350. <method name="append"
  14351. abstract="false" native="false" synchronized="true"
  14352. static="false" final="false" visibility="public"
  14353. deprecated="not deprecated">
  14354. <param name="key" type="java.lang.Object"/>
  14355. <param name="val" type="java.lang.Object"/>
  14356. <exception name="IOException" type="java.io.IOException"/>
  14357. <doc>
  14358. <![CDATA[Append a key/value pair.]]>
  14359. </doc>
  14360. </method>
  14361. <method name="appendRaw"
  14362. abstract="false" native="false" synchronized="true"
  14363. static="false" final="false" visibility="public"
  14364. deprecated="not deprecated">
  14365. <param name="keyData" type="byte[]"/>
  14366. <param name="keyOffset" type="int"/>
  14367. <param name="keyLength" type="int"/>
  14368. <param name="val" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  14369. <exception name="IOException" type="java.io.IOException"/>
  14370. </method>
  14371. <method name="getLength" return="long"
  14372. abstract="false" native="false" synchronized="true"
  14373. static="false" final="false" visibility="public"
  14374. deprecated="not deprecated">
  14375. <exception name="IOException" type="java.io.IOException"/>
  14376. <doc>
  14377. <![CDATA[Returns the current length of the output file.
  14378. <p>This always returns a synchronized position. In other words,
  14379. immediately after calling {@link SequenceFile.Reader#seek(long)} with a position
  14380. returned by this method, {@link SequenceFile.Reader#next(Writable)} may be called. However
  14381. the key may be earlier in the file than key last written when this
  14382. method was called (e.g., with block-compression, it may be the first key
  14383. in the block that was being written when this method was called).]]>
  14384. </doc>
  14385. </method>
  14386. <field name="keySerializer" type="org.apache.hadoop.io.serializer.Serializer"
  14387. transient="false" volatile="false"
  14388. static="false" final="false" visibility="protected"
  14389. deprecated="not deprecated">
  14390. </field>
  14391. <field name="uncompressedValSerializer" type="org.apache.hadoop.io.serializer.Serializer"
  14392. transient="false" volatile="false"
  14393. static="false" final="false" visibility="protected"
  14394. deprecated="not deprecated">
  14395. </field>
  14396. <field name="compressedValSerializer" type="org.apache.hadoop.io.serializer.Serializer"
  14397. transient="false" volatile="false"
  14398. static="false" final="false" visibility="protected"
  14399. deprecated="not deprecated">
  14400. </field>
  14401. <doc>
  14402. <![CDATA[Write key/value pairs to a sequence-format file.]]>
  14403. </doc>
  14404. </class>
  14405. <!-- end class org.apache.hadoop.io.SequenceFile.Writer -->
  14406. <!-- start class org.apache.hadoop.io.SetFile -->
  14407. <class name="SetFile" extends="org.apache.hadoop.io.MapFile"
  14408. abstract="false"
  14409. static="false" final="false" visibility="public"
  14410. deprecated="not deprecated">
  14411. <constructor name="SetFile"
  14412. static="false" final="false" visibility="protected"
  14413. deprecated="not deprecated">
  14414. </constructor>
  14415. <doc>
  14416. <![CDATA[A file-based set of keys.]]>
  14417. </doc>
  14418. </class>
  14419. <!-- end class org.apache.hadoop.io.SetFile -->
  14420. <!-- start class org.apache.hadoop.io.SetFile.Reader -->
  14421. <class name="SetFile.Reader" extends="org.apache.hadoop.io.MapFile.Reader"
  14422. abstract="false"
  14423. static="true" final="false" visibility="public"
  14424. deprecated="not deprecated">
  14425. <constructor name="SetFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  14426. static="false" final="false" visibility="public"
  14427. deprecated="not deprecated">
  14428. <exception name="IOException" type="java.io.IOException"/>
  14429. <doc>
  14430. <![CDATA[Construct a set reader for the named set.]]>
  14431. </doc>
  14432. </constructor>
  14433. <constructor name="SetFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration"
  14434. static="false" final="false" visibility="public"
  14435. deprecated="not deprecated">
  14436. <exception name="IOException" type="java.io.IOException"/>
  14437. <doc>
  14438. <![CDATA[Construct a set reader for the named set using the named comparator.]]>
  14439. </doc>
  14440. </constructor>
  14441. <method name="seek" return="boolean"
  14442. abstract="false" native="false" synchronized="false"
  14443. static="false" final="false" visibility="public"
  14444. deprecated="not deprecated">
  14445. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  14446. <exception name="IOException" type="java.io.IOException"/>
  14447. </method>
  14448. <method name="next" return="boolean"
  14449. abstract="false" native="false" synchronized="false"
  14450. static="false" final="false" visibility="public"
  14451. deprecated="not deprecated">
  14452. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  14453. <exception name="IOException" type="java.io.IOException"/>
  14454. <doc>
  14455. <![CDATA[Read the next key in a set into <code>key</code>. Returns
  14456. true if such a key exists and false when at the end of the set.]]>
  14457. </doc>
  14458. </method>
  14459. <method name="get" return="org.apache.hadoop.io.WritableComparable"
  14460. abstract="false" native="false" synchronized="false"
  14461. static="false" final="false" visibility="public"
  14462. deprecated="not deprecated">
  14463. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  14464. <exception name="IOException" type="java.io.IOException"/>
  14465. <doc>
  14466. <![CDATA[Read the matching key from a set into <code>key</code>.
  14467. Returns <code>key</code>, or null if no match exists.]]>
  14468. </doc>
  14469. </method>
  14470. <doc>
  14471. <![CDATA[Provide access to an existing set file.]]>
  14472. </doc>
  14473. </class>
  14474. <!-- end class org.apache.hadoop.io.SetFile.Reader -->
  14475. <!-- start class org.apache.hadoop.io.SetFile.Writer -->
  14476. <class name="SetFile.Writer" extends="org.apache.hadoop.io.MapFile.Writer"
  14477. abstract="false"
  14478. static="true" final="false" visibility="public"
  14479. deprecated="not deprecated">
  14480. <constructor name="SetFile.Writer" type="org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class"
  14481. static="false" final="false" visibility="public"
  14482. deprecated="pass a Configuration too">
  14483. <exception name="IOException" type="java.io.IOException"/>
  14484. <doc>
  14485. <![CDATA[Create the named set for keys of the named class.
  14486. @deprecated pass a Configuration too]]>
  14487. </doc>
  14488. </constructor>
  14489. <constructor name="SetFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType"
  14490. static="false" final="false" visibility="public"
  14491. deprecated="not deprecated">
  14492. <exception name="IOException" type="java.io.IOException"/>
  14493. <doc>
  14494. <![CDATA[Create a set naming the element class and compression type.]]>
  14495. </doc>
  14496. </constructor>
  14497. <constructor name="SetFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.io.SequenceFile.CompressionType"
  14498. static="false" final="false" visibility="public"
  14499. deprecated="not deprecated">
  14500. <exception name="IOException" type="java.io.IOException"/>
  14501. <doc>
  14502. <![CDATA[Create a set naming the element comparator and compression type.]]>
  14503. </doc>
  14504. </constructor>
  14505. <method name="append"
  14506. abstract="false" native="false" synchronized="false"
  14507. static="false" final="false" visibility="public"
  14508. deprecated="not deprecated">
  14509. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  14510. <exception name="IOException" type="java.io.IOException"/>
  14511. <doc>
  14512. <![CDATA[Append a key to a set. The key must be strictly greater than the
  14513. previous key added to the set.]]>
  14514. </doc>
  14515. </method>
  14516. <doc>
  14517. <![CDATA[Write a new set file.]]>
  14518. </doc>
  14519. </class>
  14520. <!-- end class org.apache.hadoop.io.SetFile.Writer -->
  14521. <!-- start class org.apache.hadoop.io.SortedMapWritable -->
  14522. <class name="SortedMapWritable" extends="org.apache.hadoop.io.AbstractMapWritable"
  14523. abstract="false"
  14524. static="false" final="false" visibility="public"
  14525. deprecated="not deprecated">
  14526. <implements name="java.util.SortedMap"/>
  14527. <constructor name="SortedMapWritable"
  14528. static="false" final="false" visibility="public"
  14529. deprecated="not deprecated">
  14530. <doc>
  14531. <![CDATA[default constructor.]]>
  14532. </doc>
  14533. </constructor>
  14534. <constructor name="SortedMapWritable" type="org.apache.hadoop.io.SortedMapWritable"
  14535. static="false" final="false" visibility="public"
  14536. deprecated="not deprecated">
  14537. <doc>
  14538. <![CDATA[Copy constructor.
  14539. @param other the map to copy from]]>
  14540. </doc>
  14541. </constructor>
  14542. <method name="comparator" return="java.util.Comparator"
  14543. abstract="false" native="false" synchronized="false"
  14544. static="false" final="false" visibility="public"
  14545. deprecated="not deprecated">
  14546. <doc>
  14547. <![CDATA[{@inheritDoc}]]>
  14548. </doc>
  14549. </method>
  14550. <method name="firstKey" return="org.apache.hadoop.io.WritableComparable"
  14551. abstract="false" native="false" synchronized="false"
  14552. static="false" final="false" visibility="public"
  14553. deprecated="not deprecated">
  14554. <doc>
  14555. <![CDATA[{@inheritDoc}]]>
  14556. </doc>
  14557. </method>
  14558. <method name="headMap" return="java.util.SortedMap"
  14559. abstract="false" native="false" synchronized="false"
  14560. static="false" final="false" visibility="public"
  14561. deprecated="not deprecated">
  14562. <param name="toKey" type="org.apache.hadoop.io.WritableComparable"/>
  14563. <doc>
  14564. <![CDATA[{@inheritDoc}]]>
  14565. </doc>
  14566. </method>
  14567. <method name="lastKey" return="org.apache.hadoop.io.WritableComparable"
  14568. abstract="false" native="false" synchronized="false"
  14569. static="false" final="false" visibility="public"
  14570. deprecated="not deprecated">
  14571. <doc>
  14572. <![CDATA[{@inheritDoc}]]>
  14573. </doc>
  14574. </method>
  14575. <method name="subMap" return="java.util.SortedMap"
  14576. abstract="false" native="false" synchronized="false"
  14577. static="false" final="false" visibility="public"
  14578. deprecated="not deprecated">
  14579. <param name="fromKey" type="org.apache.hadoop.io.WritableComparable"/>
  14580. <param name="toKey" type="org.apache.hadoop.io.WritableComparable"/>
  14581. <doc>
  14582. <![CDATA[{@inheritDoc}]]>
  14583. </doc>
  14584. </method>
  14585. <method name="tailMap" return="java.util.SortedMap"
  14586. abstract="false" native="false" synchronized="false"
  14587. static="false" final="false" visibility="public"
  14588. deprecated="not deprecated">
  14589. <param name="fromKey" type="org.apache.hadoop.io.WritableComparable"/>
  14590. <doc>
  14591. <![CDATA[{@inheritDoc}]]>
  14592. </doc>
  14593. </method>
  14594. <method name="clear"
  14595. abstract="false" native="false" synchronized="false"
  14596. static="false" final="false" visibility="public"
  14597. deprecated="not deprecated">
  14598. <doc>
  14599. <![CDATA[{@inheritDoc}]]>
  14600. </doc>
  14601. </method>
  14602. <method name="containsKey" return="boolean"
  14603. abstract="false" native="false" synchronized="false"
  14604. static="false" final="false" visibility="public"
  14605. deprecated="not deprecated">
  14606. <param name="key" type="java.lang.Object"/>
  14607. <doc>
  14608. <![CDATA[{@inheritDoc}]]>
  14609. </doc>
  14610. </method>
  14611. <method name="containsValue" return="boolean"
  14612. abstract="false" native="false" synchronized="false"
  14613. static="false" final="false" visibility="public"
  14614. deprecated="not deprecated">
  14615. <param name="value" type="java.lang.Object"/>
  14616. <doc>
  14617. <![CDATA[{@inheritDoc}]]>
  14618. </doc>
  14619. </method>
  14620. <method name="entrySet" return="java.util.Set"
  14621. abstract="false" native="false" synchronized="false"
  14622. static="false" final="false" visibility="public"
  14623. deprecated="not deprecated">
  14624. <doc>
  14625. <![CDATA[{@inheritDoc}]]>
  14626. </doc>
  14627. </method>
  14628. <method name="get" return="org.apache.hadoop.io.Writable"
  14629. abstract="false" native="false" synchronized="false"
  14630. static="false" final="false" visibility="public"
  14631. deprecated="not deprecated">
  14632. <param name="key" type="java.lang.Object"/>
  14633. <doc>
  14634. <![CDATA[{@inheritDoc}]]>
  14635. </doc>
  14636. </method>
  14637. <method name="isEmpty" return="boolean"
  14638. abstract="false" native="false" synchronized="false"
  14639. static="false" final="false" visibility="public"
  14640. deprecated="not deprecated">
  14641. <doc>
  14642. <![CDATA[{@inheritDoc}]]>
  14643. </doc>
  14644. </method>
  14645. <method name="keySet" return="java.util.Set"
  14646. abstract="false" native="false" synchronized="false"
  14647. static="false" final="false" visibility="public"
  14648. deprecated="not deprecated">
  14649. <doc>
  14650. <![CDATA[{@inheritDoc}]]>
  14651. </doc>
  14652. </method>
  14653. <method name="put" return="org.apache.hadoop.io.Writable"
  14654. abstract="false" native="false" synchronized="false"
  14655. static="false" final="false" visibility="public"
  14656. deprecated="not deprecated">
  14657. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  14658. <param name="value" type="org.apache.hadoop.io.Writable"/>
  14659. <doc>
  14660. <![CDATA[{@inheritDoc}]]>
  14661. </doc>
  14662. </method>
  14663. <method name="putAll"
  14664. abstract="false" native="false" synchronized="false"
  14665. static="false" final="false" visibility="public"
  14666. deprecated="not deprecated">
  14667. <param name="t" type="java.util.Map"/>
  14668. <doc>
  14669. <![CDATA[{@inheritDoc}]]>
  14670. </doc>
  14671. </method>
  14672. <method name="remove" return="org.apache.hadoop.io.Writable"
  14673. abstract="false" native="false" synchronized="false"
  14674. static="false" final="false" visibility="public"
  14675. deprecated="not deprecated">
  14676. <param name="key" type="java.lang.Object"/>
  14677. <doc>
  14678. <![CDATA[{@inheritDoc}]]>
  14679. </doc>
  14680. </method>
  14681. <method name="size" return="int"
  14682. abstract="false" native="false" synchronized="false"
  14683. static="false" final="false" visibility="public"
  14684. deprecated="not deprecated">
  14685. <doc>
  14686. <![CDATA[{@inheritDoc}]]>
  14687. </doc>
  14688. </method>
  14689. <method name="values" return="java.util.Collection"
  14690. abstract="false" native="false" synchronized="false"
  14691. static="false" final="false" visibility="public"
  14692. deprecated="not deprecated">
  14693. <doc>
  14694. <![CDATA[{@inheritDoc}]]>
  14695. </doc>
  14696. </method>
  14697. <method name="readFields"
  14698. abstract="false" native="false" synchronized="false"
  14699. static="false" final="false" visibility="public"
  14700. deprecated="not deprecated">
  14701. <param name="in" type="java.io.DataInput"/>
  14702. <exception name="IOException" type="java.io.IOException"/>
  14703. <doc>
  14704. <![CDATA[{@inheritDoc}]]>
  14705. </doc>
  14706. </method>
  14707. <method name="write"
  14708. abstract="false" native="false" synchronized="false"
  14709. static="false" final="false" visibility="public"
  14710. deprecated="not deprecated">
  14711. <param name="out" type="java.io.DataOutput"/>
  14712. <exception name="IOException" type="java.io.IOException"/>
  14713. <doc>
  14714. <![CDATA[{@inheritDoc}]]>
  14715. </doc>
  14716. </method>
  14717. <method name="equals" return="boolean"
  14718. abstract="false" native="false" synchronized="false"
  14719. static="false" final="false" visibility="public"
  14720. deprecated="not deprecated">
  14721. <param name="obj" type="java.lang.Object"/>
  14722. </method>
  14723. <method name="hashCode" return="int"
  14724. abstract="false" native="false" synchronized="false"
  14725. static="false" final="false" visibility="public"
  14726. deprecated="not deprecated">
  14727. </method>
  14728. <doc>
  14729. <![CDATA[A Writable SortedMap.]]>
  14730. </doc>
  14731. </class>
  14732. <!-- end class org.apache.hadoop.io.SortedMapWritable -->
  14733. <!-- start interface org.apache.hadoop.io.Stringifier -->
  14734. <interface name="Stringifier" abstract="true"
  14735. static="false" final="false" visibility="public"
  14736. deprecated="not deprecated">
  14737. <implements name="java.io.Closeable"/>
  14738. <method name="toString" return="java.lang.String"
  14739. abstract="false" native="false" synchronized="false"
  14740. static="false" final="false" visibility="public"
  14741. deprecated="not deprecated">
  14742. <param name="obj" type="java.lang.Object"/>
  14743. <exception name="IOException" type="java.io.IOException"/>
  14744. <doc>
  14745. <![CDATA[Converts the object to a string representation
  14746. @param obj the object to convert
  14747. @return the string representation of the object
  14748. @throws IOException if the object cannot be converted]]>
  14749. </doc>
  14750. </method>
  14751. <method name="fromString" return="java.lang.Object"
  14752. abstract="false" native="false" synchronized="false"
  14753. static="false" final="false" visibility="public"
  14754. deprecated="not deprecated">
  14755. <param name="str" type="java.lang.String"/>
  14756. <exception name="IOException" type="java.io.IOException"/>
  14757. <doc>
  14758. <![CDATA[Restores the object from its string representation.
  14759. @param str the string representation of the object
  14760. @return restored object
  14761. @throws IOException if the object cannot be restored]]>
  14762. </doc>
  14763. </method>
  14764. <method name="close"
  14765. abstract="false" native="false" synchronized="false"
  14766. static="false" final="false" visibility="public"
  14767. deprecated="not deprecated">
  14768. <exception name="IOException" type="java.io.IOException"/>
  14769. <doc>
  14770. <![CDATA[Closes this object.
  14771. @throws IOException if an I/O error occurs]]>
  14772. </doc>
  14773. </method>
  14774. <doc>
  14775. <![CDATA[Stringifier interface offers two methods to convert an object
  14776. to a string representation and restore the object given its
  14777. string representation.
  14778. @param <T> the class of the objects to stringify]]>
  14779. </doc>
  14780. </interface>
  14781. <!-- end interface org.apache.hadoop.io.Stringifier -->
  14782. <!-- start class org.apache.hadoop.io.Text -->
  14783. <class name="Text" extends="org.apache.hadoop.io.BinaryComparable"
  14784. abstract="false"
  14785. static="false" final="false" visibility="public"
  14786. deprecated="not deprecated">
  14787. <implements name="org.apache.hadoop.io.WritableComparable"/>
  14788. <constructor name="Text"
  14789. static="false" final="false" visibility="public"
  14790. deprecated="not deprecated">
  14791. </constructor>
  14792. <constructor name="Text" type="java.lang.String"
  14793. static="false" final="false" visibility="public"
  14794. deprecated="not deprecated">
  14795. <doc>
  14796. <![CDATA[Construct from a string.]]>
  14797. </doc>
  14798. </constructor>
  14799. <constructor name="Text" type="org.apache.hadoop.io.Text"
  14800. static="false" final="false" visibility="public"
  14801. deprecated="not deprecated">
  14802. <doc>
  14803. <![CDATA[Construct from another text.]]>
  14804. </doc>
  14805. </constructor>
  14806. <constructor name="Text" type="byte[]"
  14807. static="false" final="false" visibility="public"
  14808. deprecated="not deprecated">
  14809. <doc>
  14810. <![CDATA[Construct from a byte array.]]>
  14811. </doc>
  14812. </constructor>
  14813. <method name="getBytes" return="byte[]"
  14814. abstract="false" native="false" synchronized="false"
  14815. static="false" final="false" visibility="public"
  14816. deprecated="not deprecated">
  14817. <doc>
  14818. <![CDATA[Returns the raw bytes; however, only data up to {@link #getLength()} is
  14819. valid.]]>
  14820. </doc>
  14821. </method>
  14822. <method name="getLength" return="int"
  14823. abstract="false" native="false" synchronized="false"
  14824. static="false" final="false" visibility="public"
  14825. deprecated="not deprecated">
  14826. <doc>
  14827. <![CDATA[Returns the number of bytes in the byte array]]>
  14828. </doc>
  14829. </method>
  14830. <method name="charAt" return="int"
  14831. abstract="false" native="false" synchronized="false"
  14832. static="false" final="false" visibility="public"
  14833. deprecated="not deprecated">
  14834. <param name="position" type="int"/>
  14835. <doc>
  14836. <![CDATA[Returns the Unicode Scalar Value (32-bit integer value)
  14837. for the character at <code>position</code>. Note that this
  14838. method avoids using the converter or doing String instatiation
  14839. @return the Unicode scalar value at position or -1
  14840. if the position is invalid or points to a
  14841. trailing byte]]>
  14842. </doc>
  14843. </method>
  14844. <method name="find" return="int"
  14845. abstract="false" native="false" synchronized="false"
  14846. static="false" final="false" visibility="public"
  14847. deprecated="not deprecated">
  14848. <param name="what" type="java.lang.String"/>
  14849. </method>
  14850. <method name="find" return="int"
  14851. abstract="false" native="false" synchronized="false"
  14852. static="false" final="false" visibility="public"
  14853. deprecated="not deprecated">
  14854. <param name="what" type="java.lang.String"/>
  14855. <param name="start" type="int"/>
  14856. <doc>
  14857. <![CDATA[Finds any occurence of <code>what</code> in the backing
  14858. buffer, starting as position <code>start</code>. The starting
  14859. position is measured in bytes and the return value is in
  14860. terms of byte position in the buffer. The backing buffer is
  14861. not converted to a string for this operation.
  14862. @return byte position of the first occurence of the search
  14863. string in the UTF-8 buffer or -1 if not found]]>
  14864. </doc>
  14865. </method>
  14866. <method name="set"
  14867. abstract="false" native="false" synchronized="false"
  14868. static="false" final="false" visibility="public"
  14869. deprecated="not deprecated">
  14870. <param name="string" type="java.lang.String"/>
  14871. <doc>
  14872. <![CDATA[Set to contain the contents of a string.]]>
  14873. </doc>
  14874. </method>
  14875. <method name="set"
  14876. abstract="false" native="false" synchronized="false"
  14877. static="false" final="false" visibility="public"
  14878. deprecated="not deprecated">
  14879. <param name="utf8" type="byte[]"/>
  14880. <doc>
  14881. <![CDATA[Set to a utf8 byte array]]>
  14882. </doc>
  14883. </method>
  14884. <method name="set"
  14885. abstract="false" native="false" synchronized="false"
  14886. static="false" final="false" visibility="public"
  14887. deprecated="not deprecated">
  14888. <param name="other" type="org.apache.hadoop.io.Text"/>
  14889. <doc>
  14890. <![CDATA[copy a text.]]>
  14891. </doc>
  14892. </method>
  14893. <method name="set"
  14894. abstract="false" native="false" synchronized="false"
  14895. static="false" final="false" visibility="public"
  14896. deprecated="not deprecated">
  14897. <param name="utf8" type="byte[]"/>
  14898. <param name="start" type="int"/>
  14899. <param name="len" type="int"/>
  14900. <doc>
  14901. <![CDATA[Set the Text to range of bytes
  14902. @param utf8 the data to copy from
  14903. @param start the first position of the new string
  14904. @param len the number of bytes of the new string]]>
  14905. </doc>
  14906. </method>
  14907. <method name="append"
  14908. abstract="false" native="false" synchronized="false"
  14909. static="false" final="false" visibility="public"
  14910. deprecated="not deprecated">
  14911. <param name="utf8" type="byte[]"/>
  14912. <param name="start" type="int"/>
  14913. <param name="len" type="int"/>
  14914. <doc>
  14915. <![CDATA[Append a range of bytes to the end of the given text
  14916. @param utf8 the data to copy from
  14917. @param start the first position to append from utf8
  14918. @param len the number of bytes to append]]>
  14919. </doc>
  14920. </method>
  14921. <method name="clear"
  14922. abstract="false" native="false" synchronized="false"
  14923. static="false" final="false" visibility="public"
  14924. deprecated="not deprecated">
  14925. <doc>
  14926. <![CDATA[Clear the string to empty.]]>
  14927. </doc>
  14928. </method>
  14929. <method name="toString" return="java.lang.String"
  14930. abstract="false" native="false" synchronized="false"
  14931. static="false" final="false" visibility="public"
  14932. deprecated="not deprecated">
  14933. <doc>
  14934. <![CDATA[Convert text back to string
  14935. @see java.lang.Object#toString()]]>
  14936. </doc>
  14937. </method>
  14938. <method name="readFields"
  14939. abstract="false" native="false" synchronized="false"
  14940. static="false" final="false" visibility="public"
  14941. deprecated="not deprecated">
  14942. <param name="in" type="java.io.DataInput"/>
  14943. <exception name="IOException" type="java.io.IOException"/>
  14944. <doc>
  14945. <![CDATA[deserialize]]>
  14946. </doc>
  14947. </method>
  14948. <method name="skip"
  14949. abstract="false" native="false" synchronized="false"
  14950. static="true" final="false" visibility="public"
  14951. deprecated="not deprecated">
  14952. <param name="in" type="java.io.DataInput"/>
  14953. <exception name="IOException" type="java.io.IOException"/>
  14954. <doc>
  14955. <![CDATA[Skips over one Text in the input.]]>
  14956. </doc>
  14957. </method>
  14958. <method name="write"
  14959. abstract="false" native="false" synchronized="false"
  14960. static="false" final="false" visibility="public"
  14961. deprecated="not deprecated">
  14962. <param name="out" type="java.io.DataOutput"/>
  14963. <exception name="IOException" type="java.io.IOException"/>
  14964. <doc>
  14965. <![CDATA[serialize
  14966. write this object to out
  14967. length uses zero-compressed encoding
  14968. @see Writable#write(DataOutput)]]>
  14969. </doc>
  14970. </method>
  14971. <method name="equals" return="boolean"
  14972. abstract="false" native="false" synchronized="false"
  14973. static="false" final="false" visibility="public"
  14974. deprecated="not deprecated">
  14975. <param name="o" type="java.lang.Object"/>
  14976. <doc>
  14977. <![CDATA[Returns true iff <code>o</code> is a Text with the same contents.]]>
  14978. </doc>
  14979. </method>
  14980. <method name="hashCode" return="int"
  14981. abstract="false" native="false" synchronized="false"
  14982. static="false" final="false" visibility="public"
  14983. deprecated="not deprecated">
  14984. </method>
  14985. <method name="decode" return="java.lang.String"
  14986. abstract="false" native="false" synchronized="false"
  14987. static="true" final="false" visibility="public"
  14988. deprecated="not deprecated">
  14989. <param name="utf8" type="byte[]"/>
  14990. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  14991. <doc>
  14992. <![CDATA[Converts the provided byte array to a String using the
  14993. UTF-8 encoding. If the input is malformed,
  14994. replace by a default value.]]>
  14995. </doc>
  14996. </method>
  14997. <method name="decode" return="java.lang.String"
  14998. abstract="false" native="false" synchronized="false"
  14999. static="true" final="false" visibility="public"
  15000. deprecated="not deprecated">
  15001. <param name="utf8" type="byte[]"/>
  15002. <param name="start" type="int"/>
  15003. <param name="length" type="int"/>
  15004. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  15005. </method>
  15006. <method name="decode" return="java.lang.String"
  15007. abstract="false" native="false" synchronized="false"
  15008. static="true" final="false" visibility="public"
  15009. deprecated="not deprecated">
  15010. <param name="utf8" type="byte[]"/>
  15011. <param name="start" type="int"/>
  15012. <param name="length" type="int"/>
  15013. <param name="replace" type="boolean"/>
  15014. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  15015. <doc>
  15016. <![CDATA[Converts the provided byte array to a String using the
  15017. UTF-8 encoding. If <code>replace</code> is true, then
  15018. malformed input is replaced with the
  15019. substitution character, which is U+FFFD. Otherwise the
  15020. method throws a MalformedInputException.]]>
  15021. </doc>
  15022. </method>
  15023. <method name="encode" return="java.nio.ByteBuffer"
  15024. abstract="false" native="false" synchronized="false"
  15025. static="true" final="false" visibility="public"
  15026. deprecated="not deprecated">
  15027. <param name="string" type="java.lang.String"/>
  15028. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  15029. <doc>
  15030. <![CDATA[Converts the provided String to bytes using the
  15031. UTF-8 encoding. If the input is malformed,
  15032. invalid chars are replaced by a default value.
  15033. @return ByteBuffer: bytes stores at ByteBuffer.array()
  15034. and length is ByteBuffer.limit()]]>
  15035. </doc>
  15036. </method>
  15037. <method name="encode" return="java.nio.ByteBuffer"
  15038. abstract="false" native="false" synchronized="false"
  15039. static="true" final="false" visibility="public"
  15040. deprecated="not deprecated">
  15041. <param name="string" type="java.lang.String"/>
  15042. <param name="replace" type="boolean"/>
  15043. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  15044. <doc>
  15045. <![CDATA[Converts the provided String to bytes using the
  15046. UTF-8 encoding. If <code>replace</code> is true, then
  15047. malformed input is replaced with the
  15048. substitution character, which is U+FFFD. Otherwise the
  15049. method throws a MalformedInputException.
  15050. @return ByteBuffer: bytes stores at ByteBuffer.array()
  15051. and length is ByteBuffer.limit()]]>
  15052. </doc>
  15053. </method>
  15054. <method name="readString" return="java.lang.String"
  15055. abstract="false" native="false" synchronized="false"
  15056. static="true" final="false" visibility="public"
  15057. deprecated="not deprecated">
  15058. <param name="in" type="java.io.DataInput"/>
  15059. <exception name="IOException" type="java.io.IOException"/>
  15060. <doc>
  15061. <![CDATA[Read a UTF8 encoded string from in]]>
  15062. </doc>
  15063. </method>
  15064. <method name="writeString" return="int"
  15065. abstract="false" native="false" synchronized="false"
  15066. static="true" final="false" visibility="public"
  15067. deprecated="not deprecated">
  15068. <param name="out" type="java.io.DataOutput"/>
  15069. <param name="s" type="java.lang.String"/>
  15070. <exception name="IOException" type="java.io.IOException"/>
  15071. <doc>
  15072. <![CDATA[Write a UTF8 encoded string to out]]>
  15073. </doc>
  15074. </method>
  15075. <method name="validateUTF8"
  15076. abstract="false" native="false" synchronized="false"
  15077. static="true" final="false" visibility="public"
  15078. deprecated="not deprecated">
  15079. <param name="utf8" type="byte[]"/>
  15080. <exception name="MalformedInputException" type="java.nio.charset.MalformedInputException"/>
  15081. <doc>
  15082. <![CDATA[Check if a byte array contains valid utf-8
  15083. @param utf8 byte array
  15084. @throws MalformedInputException if the byte array contains invalid utf-8]]>
  15085. </doc>
  15086. </method>
  15087. <method name="validateUTF8"
  15088. abstract="false" native="false" synchronized="false"
  15089. static="true" final="false" visibility="public"
  15090. deprecated="not deprecated">
  15091. <param name="utf8" type="byte[]"/>
  15092. <param name="start" type="int"/>
  15093. <param name="len" type="int"/>
  15094. <exception name="MalformedInputException" type="java.nio.charset.MalformedInputException"/>
  15095. <doc>
  15096. <![CDATA[Check to see if a byte array is valid utf-8
  15097. @param utf8 the array of bytes
  15098. @param start the offset of the first byte in the array
  15099. @param len the length of the byte sequence
  15100. @throws MalformedInputException if the byte array contains invalid bytes]]>
  15101. </doc>
  15102. </method>
  15103. <method name="bytesToCodePoint" return="int"
  15104. abstract="false" native="false" synchronized="false"
  15105. static="true" final="false" visibility="public"
  15106. deprecated="not deprecated">
  15107. <param name="bytes" type="java.nio.ByteBuffer"/>
  15108. <doc>
  15109. <![CDATA[Returns the next code point at the current position in
  15110. the buffer. The buffer's position will be incremented.
  15111. Any mark set on this buffer will be changed by this method!]]>
  15112. </doc>
  15113. </method>
  15114. <method name="utf8Length" return="int"
  15115. abstract="false" native="false" synchronized="false"
  15116. static="true" final="false" visibility="public"
  15117. deprecated="not deprecated">
  15118. <param name="string" type="java.lang.String"/>
  15119. <doc>
  15120. <![CDATA[For the given string, returns the number of UTF-8 bytes
  15121. required to encode the string.
  15122. @param string text to encode
  15123. @return number of UTF-8 bytes required to encode]]>
  15124. </doc>
  15125. </method>
  15126. <doc>
  15127. <![CDATA[This class stores text using standard UTF8 encoding. It provides methods
  15128. to serialize, deserialize, and compare texts at byte level. The type of
  15129. length is integer and is serialized using zero-compressed format. <p>In
  15130. addition, it provides methods for string traversal without converting the
  15131. byte array to a string. <p>Also includes utilities for
  15132. serializing/deserialing a string, coding/decoding a string, checking if a
  15133. byte array contains valid UTF8 code, calculating the length of an encoded
  15134. string.]]>
  15135. </doc>
  15136. </class>
  15137. <!-- end class org.apache.hadoop.io.Text -->
  15138. <!-- start class org.apache.hadoop.io.Text.Comparator -->
  15139. <class name="Text.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  15140. abstract="false"
  15141. static="true" final="false" visibility="public"
  15142. deprecated="not deprecated">
  15143. <constructor name="Text.Comparator"
  15144. static="false" final="false" visibility="public"
  15145. deprecated="not deprecated">
  15146. </constructor>
  15147. <method name="compare" return="int"
  15148. abstract="false" native="false" synchronized="false"
  15149. static="false" final="false" visibility="public"
  15150. deprecated="not deprecated">
  15151. <param name="b1" type="byte[]"/>
  15152. <param name="s1" type="int"/>
  15153. <param name="l1" type="int"/>
  15154. <param name="b2" type="byte[]"/>
  15155. <param name="s2" type="int"/>
  15156. <param name="l2" type="int"/>
  15157. </method>
  15158. <doc>
  15159. <![CDATA[A WritableComparator optimized for Text keys.]]>
  15160. </doc>
  15161. </class>
  15162. <!-- end class org.apache.hadoop.io.Text.Comparator -->
  15163. <!-- start class org.apache.hadoop.io.TwoDArrayWritable -->
  15164. <class name="TwoDArrayWritable" extends="java.lang.Object"
  15165. abstract="false"
  15166. static="false" final="false" visibility="public"
  15167. deprecated="not deprecated">
  15168. <implements name="org.apache.hadoop.io.Writable"/>
  15169. <constructor name="TwoDArrayWritable" type="java.lang.Class"
  15170. static="false" final="false" visibility="public"
  15171. deprecated="not deprecated">
  15172. </constructor>
  15173. <constructor name="TwoDArrayWritable" type="java.lang.Class, org.apache.hadoop.io.Writable[][]"
  15174. static="false" final="false" visibility="public"
  15175. deprecated="not deprecated">
  15176. </constructor>
  15177. <method name="toArray" return="java.lang.Object"
  15178. abstract="false" native="false" synchronized="false"
  15179. static="false" final="false" visibility="public"
  15180. deprecated="not deprecated">
  15181. </method>
  15182. <method name="set"
  15183. abstract="false" native="false" synchronized="false"
  15184. static="false" final="false" visibility="public"
  15185. deprecated="not deprecated">
  15186. <param name="values" type="org.apache.hadoop.io.Writable[][]"/>
  15187. </method>
  15188. <method name="get" return="org.apache.hadoop.io.Writable[][]"
  15189. abstract="false" native="false" synchronized="false"
  15190. static="false" final="false" visibility="public"
  15191. deprecated="not deprecated">
  15192. </method>
  15193. <method name="readFields"
  15194. abstract="false" native="false" synchronized="false"
  15195. static="false" final="false" visibility="public"
  15196. deprecated="not deprecated">
  15197. <param name="in" type="java.io.DataInput"/>
  15198. <exception name="IOException" type="java.io.IOException"/>
  15199. </method>
  15200. <method name="write"
  15201. abstract="false" native="false" synchronized="false"
  15202. static="false" final="false" visibility="public"
  15203. deprecated="not deprecated">
  15204. <param name="out" type="java.io.DataOutput"/>
  15205. <exception name="IOException" type="java.io.IOException"/>
  15206. </method>
  15207. <doc>
  15208. <![CDATA[A Writable for 2D arrays containing a matrix of instances of a class.]]>
  15209. </doc>
  15210. </class>
  15211. <!-- end class org.apache.hadoop.io.TwoDArrayWritable -->
  15212. <!-- start class org.apache.hadoop.io.UTF8 -->
  15213. <class name="UTF8" extends="java.lang.Object"
  15214. abstract="false"
  15215. static="false" final="false" visibility="public"
  15216. deprecated="replaced by Text">
  15217. <implements name="org.apache.hadoop.io.WritableComparable"/>
  15218. <constructor name="UTF8"
  15219. static="false" final="false" visibility="public"
  15220. deprecated="not deprecated">
  15221. </constructor>
  15222. <constructor name="UTF8" type="java.lang.String"
  15223. static="false" final="false" visibility="public"
  15224. deprecated="not deprecated">
  15225. <doc>
  15226. <![CDATA[Construct from a given string.]]>
  15227. </doc>
  15228. </constructor>
  15229. <constructor name="UTF8" type="org.apache.hadoop.io.UTF8"
  15230. static="false" final="false" visibility="public"
  15231. deprecated="not deprecated">
  15232. <doc>
  15233. <![CDATA[Construct from a given string.]]>
  15234. </doc>
  15235. </constructor>
  15236. <method name="getBytes" return="byte[]"
  15237. abstract="false" native="false" synchronized="false"
  15238. static="false" final="false" visibility="public"
  15239. deprecated="not deprecated">
  15240. <doc>
  15241. <![CDATA[The raw bytes.]]>
  15242. </doc>
  15243. </method>
  15244. <method name="getLength" return="int"
  15245. abstract="false" native="false" synchronized="false"
  15246. static="false" final="false" visibility="public"
  15247. deprecated="not deprecated">
  15248. <doc>
  15249. <![CDATA[The number of bytes in the encoded string.]]>
  15250. </doc>
  15251. </method>
  15252. <method name="set"
  15253. abstract="false" native="false" synchronized="false"
  15254. static="false" final="false" visibility="public"
  15255. deprecated="not deprecated">
  15256. <param name="string" type="java.lang.String"/>
  15257. <doc>
  15258. <![CDATA[Set to contain the contents of a string.]]>
  15259. </doc>
  15260. </method>
  15261. <method name="set"
  15262. abstract="false" native="false" synchronized="false"
  15263. static="false" final="false" visibility="public"
  15264. deprecated="not deprecated">
  15265. <param name="other" type="org.apache.hadoop.io.UTF8"/>
  15266. <doc>
  15267. <![CDATA[Set to contain the contents of a string.]]>
  15268. </doc>
  15269. </method>
  15270. <method name="readFields"
  15271. abstract="false" native="false" synchronized="false"
  15272. static="false" final="false" visibility="public"
  15273. deprecated="not deprecated">
  15274. <param name="in" type="java.io.DataInput"/>
  15275. <exception name="IOException" type="java.io.IOException"/>
  15276. </method>
  15277. <method name="skip"
  15278. abstract="false" native="false" synchronized="false"
  15279. static="true" final="false" visibility="public"
  15280. deprecated="not deprecated">
  15281. <param name="in" type="java.io.DataInput"/>
  15282. <exception name="IOException" type="java.io.IOException"/>
  15283. <doc>
  15284. <![CDATA[Skips over one UTF8 in the input.]]>
  15285. </doc>
  15286. </method>
  15287. <method name="write"
  15288. abstract="false" native="false" synchronized="false"
  15289. static="false" final="false" visibility="public"
  15290. deprecated="not deprecated">
  15291. <param name="out" type="java.io.DataOutput"/>
  15292. <exception name="IOException" type="java.io.IOException"/>
  15293. </method>
  15294. <method name="compareTo" return="int"
  15295. abstract="false" native="false" synchronized="false"
  15296. static="false" final="false" visibility="public"
  15297. deprecated="not deprecated">
  15298. <param name="o" type="org.apache.hadoop.io.UTF8"/>
  15299. <doc>
  15300. <![CDATA[Compare two UTF8s.]]>
  15301. </doc>
  15302. </method>
  15303. <method name="toString" return="java.lang.String"
  15304. abstract="false" native="false" synchronized="false"
  15305. static="false" final="false" visibility="public"
  15306. deprecated="not deprecated">
  15307. <doc>
  15308. <![CDATA[Convert to a String.]]>
  15309. </doc>
  15310. </method>
  15311. <method name="toStringChecked" return="java.lang.String"
  15312. abstract="false" native="false" synchronized="false"
  15313. static="false" final="false" visibility="public"
  15314. deprecated="not deprecated">
  15315. <exception name="IOException" type="java.io.IOException"/>
  15316. <doc>
  15317. <![CDATA[Convert to a string, checking for valid UTF8.
  15318. @return the converted string
  15319. @throws UTFDataFormatException if the underlying bytes contain invalid
  15320. UTF8 data.]]>
  15321. </doc>
  15322. </method>
  15323. <method name="equals" return="boolean"
  15324. abstract="false" native="false" synchronized="false"
  15325. static="false" final="false" visibility="public"
  15326. deprecated="not deprecated">
  15327. <param name="o" type="java.lang.Object"/>
  15328. <doc>
  15329. <![CDATA[Returns true iff <code>o</code> is a UTF8 with the same contents.]]>
  15330. </doc>
  15331. </method>
  15332. <method name="hashCode" return="int"
  15333. abstract="false" native="false" synchronized="false"
  15334. static="false" final="false" visibility="public"
  15335. deprecated="not deprecated">
  15336. </method>
  15337. <method name="getBytes" return="byte[]"
  15338. abstract="false" native="false" synchronized="false"
  15339. static="true" final="false" visibility="public"
  15340. deprecated="not deprecated">
  15341. <param name="string" type="java.lang.String"/>
  15342. <doc>
  15343. <![CDATA[Convert a string to a UTF-8 encoded byte array.
  15344. @see String#getBytes(String)]]>
  15345. </doc>
  15346. </method>
  15347. <method name="fromBytes" return="java.lang.String"
  15348. abstract="false" native="false" synchronized="false"
  15349. static="true" final="false" visibility="public"
  15350. deprecated="not deprecated">
  15351. <param name="bytes" type="byte[]"/>
  15352. <exception name="IOException" type="java.io.IOException"/>
  15353. <doc>
  15354. <![CDATA[Convert a UTF-8 encoded byte array back into a string.
  15355. @throws IOException if the byte array is invalid UTF8]]>
  15356. </doc>
  15357. </method>
  15358. <method name="readString" return="java.lang.String"
  15359. abstract="false" native="false" synchronized="false"
  15360. static="true" final="false" visibility="public"
  15361. deprecated="not deprecated">
  15362. <param name="in" type="java.io.DataInput"/>
  15363. <exception name="IOException" type="java.io.IOException"/>
  15364. <doc>
  15365. <![CDATA[Read a UTF-8 encoded string.
  15366. @see DataInput#readUTF()]]>
  15367. </doc>
  15368. </method>
  15369. <method name="writeString" return="int"
  15370. abstract="false" native="false" synchronized="false"
  15371. static="true" final="false" visibility="public"
  15372. deprecated="not deprecated">
  15373. <param name="out" type="java.io.DataOutput"/>
  15374. <param name="s" type="java.lang.String"/>
  15375. <exception name="IOException" type="java.io.IOException"/>
  15376. <doc>
  15377. <![CDATA[Write a UTF-8 encoded string.
  15378. @see DataOutput#writeUTF(String)]]>
  15379. </doc>
  15380. </method>
  15381. <doc>
  15382. <![CDATA[A WritableComparable for strings that uses the UTF8 encoding.
  15383. <p>Also includes utilities for efficiently reading and writing UTF-8.
  15384. Note that this decodes UTF-8 but actually encodes CESU-8, a variant of
  15385. UTF-8: see http://en.wikipedia.org/wiki/CESU-8
  15386. @deprecated replaced by Text]]>
  15387. </doc>
  15388. </class>
  15389. <!-- end class org.apache.hadoop.io.UTF8 -->
  15390. <!-- start class org.apache.hadoop.io.UTF8.Comparator -->
  15391. <class name="UTF8.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  15392. abstract="false"
  15393. static="true" final="false" visibility="public"
  15394. deprecated="not deprecated">
  15395. <constructor name="UTF8.Comparator"
  15396. static="false" final="false" visibility="public"
  15397. deprecated="not deprecated">
  15398. </constructor>
  15399. <method name="compare" return="int"
  15400. abstract="false" native="false" synchronized="false"
  15401. static="false" final="false" visibility="public"
  15402. deprecated="not deprecated">
  15403. <param name="b1" type="byte[]"/>
  15404. <param name="s1" type="int"/>
  15405. <param name="l1" type="int"/>
  15406. <param name="b2" type="byte[]"/>
  15407. <param name="s2" type="int"/>
  15408. <param name="l2" type="int"/>
  15409. </method>
  15410. <doc>
  15411. <![CDATA[A WritableComparator optimized for UTF8 keys.]]>
  15412. </doc>
  15413. </class>
  15414. <!-- end class org.apache.hadoop.io.UTF8.Comparator -->
  15415. <!-- start class org.apache.hadoop.io.VersionedWritable -->
  15416. <class name="VersionedWritable" extends="java.lang.Object"
  15417. abstract="true"
  15418. static="false" final="false" visibility="public"
  15419. deprecated="not deprecated">
  15420. <implements name="org.apache.hadoop.io.Writable"/>
  15421. <constructor name="VersionedWritable"
  15422. static="false" final="false" visibility="public"
  15423. deprecated="not deprecated">
  15424. </constructor>
  15425. <method name="getVersion" return="byte"
  15426. abstract="true" native="false" synchronized="false"
  15427. static="false" final="false" visibility="public"
  15428. deprecated="not deprecated">
  15429. <doc>
  15430. <![CDATA[Return the version number of the current implementation.]]>
  15431. </doc>
  15432. </method>
  15433. <method name="write"
  15434. abstract="false" native="false" synchronized="false"
  15435. static="false" final="false" visibility="public"
  15436. deprecated="not deprecated">
  15437. <param name="out" type="java.io.DataOutput"/>
  15438. <exception name="IOException" type="java.io.IOException"/>
  15439. </method>
  15440. <method name="readFields"
  15441. abstract="false" native="false" synchronized="false"
  15442. static="false" final="false" visibility="public"
  15443. deprecated="not deprecated">
  15444. <param name="in" type="java.io.DataInput"/>
  15445. <exception name="IOException" type="java.io.IOException"/>
  15446. </method>
  15447. <doc>
  15448. <![CDATA[A base class for Writables that provides version checking.
  15449. <p>This is useful when a class may evolve, so that instances written by the
  15450. old version of the class may still be processed by the new version. To
  15451. handle this situation, {@link #readFields(DataInput)}
  15452. implementations should catch {@link VersionMismatchException}.]]>
  15453. </doc>
  15454. </class>
  15455. <!-- end class org.apache.hadoop.io.VersionedWritable -->
  15456. <!-- start class org.apache.hadoop.io.VersionMismatchException -->
  15457. <class name="VersionMismatchException" extends="java.io.IOException"
  15458. abstract="false"
  15459. static="false" final="false" visibility="public"
  15460. deprecated="not deprecated">
  15461. <constructor name="VersionMismatchException" type="byte, byte"
  15462. static="false" final="false" visibility="public"
  15463. deprecated="not deprecated">
  15464. </constructor>
  15465. <method name="toString" return="java.lang.String"
  15466. abstract="false" native="false" synchronized="false"
  15467. static="false" final="false" visibility="public"
  15468. deprecated="not deprecated">
  15469. <doc>
  15470. <![CDATA[Returns a string representation of this object.]]>
  15471. </doc>
  15472. </method>
  15473. <doc>
  15474. <![CDATA[Thrown by {@link VersionedWritable#readFields(DataInput)} when the
  15475. version of an object being read does not match the current implementation
  15476. version as returned by {@link VersionedWritable#getVersion()}.]]>
  15477. </doc>
  15478. </class>
  15479. <!-- end class org.apache.hadoop.io.VersionMismatchException -->
  15480. <!-- start class org.apache.hadoop.io.VIntWritable -->
  15481. <class name="VIntWritable" extends="java.lang.Object"
  15482. abstract="false"
  15483. static="false" final="false" visibility="public"
  15484. deprecated="not deprecated">
  15485. <implements name="org.apache.hadoop.io.WritableComparable"/>
  15486. <constructor name="VIntWritable"
  15487. static="false" final="false" visibility="public"
  15488. deprecated="not deprecated">
  15489. </constructor>
  15490. <constructor name="VIntWritable" type="int"
  15491. static="false" final="false" visibility="public"
  15492. deprecated="not deprecated">
  15493. </constructor>
  15494. <method name="set"
  15495. abstract="false" native="false" synchronized="false"
  15496. static="false" final="false" visibility="public"
  15497. deprecated="not deprecated">
  15498. <param name="value" type="int"/>
  15499. <doc>
  15500. <![CDATA[Set the value of this VIntWritable.]]>
  15501. </doc>
  15502. </method>
  15503. <method name="get" return="int"
  15504. abstract="false" native="false" synchronized="false"
  15505. static="false" final="false" visibility="public"
  15506. deprecated="not deprecated">
  15507. <doc>
  15508. <![CDATA[Return the value of this VIntWritable.]]>
  15509. </doc>
  15510. </method>
  15511. <method name="readFields"
  15512. abstract="false" native="false" synchronized="false"
  15513. static="false" final="false" visibility="public"
  15514. deprecated="not deprecated">
  15515. <param name="in" type="java.io.DataInput"/>
  15516. <exception name="IOException" type="java.io.IOException"/>
  15517. </method>
  15518. <method name="write"
  15519. abstract="false" native="false" synchronized="false"
  15520. static="false" final="false" visibility="public"
  15521. deprecated="not deprecated">
  15522. <param name="out" type="java.io.DataOutput"/>
  15523. <exception name="IOException" type="java.io.IOException"/>
  15524. </method>
  15525. <method name="equals" return="boolean"
  15526. abstract="false" native="false" synchronized="false"
  15527. static="false" final="false" visibility="public"
  15528. deprecated="not deprecated">
  15529. <param name="o" type="java.lang.Object"/>
  15530. <doc>
  15531. <![CDATA[Returns true iff <code>o</code> is a VIntWritable with the same value.]]>
  15532. </doc>
  15533. </method>
  15534. <method name="hashCode" return="int"
  15535. abstract="false" native="false" synchronized="false"
  15536. static="false" final="false" visibility="public"
  15537. deprecated="not deprecated">
  15538. </method>
  15539. <method name="compareTo" return="int"
  15540. abstract="false" native="false" synchronized="false"
  15541. static="false" final="false" visibility="public"
  15542. deprecated="not deprecated">
  15543. <param name="o" type="java.lang.Object"/>
  15544. <doc>
  15545. <![CDATA[Compares two VIntWritables.]]>
  15546. </doc>
  15547. </method>
  15548. <method name="toString" return="java.lang.String"
  15549. abstract="false" native="false" synchronized="false"
  15550. static="false" final="false" visibility="public"
  15551. deprecated="not deprecated">
  15552. </method>
  15553. <doc>
  15554. <![CDATA[A WritableComparable for integer values stored in variable-length format.
  15555. Such values take between one and five bytes. Smaller values take fewer bytes.
  15556. @see org.apache.hadoop.io.WritableUtils#readVInt(DataInput)]]>
  15557. </doc>
  15558. </class>
  15559. <!-- end class org.apache.hadoop.io.VIntWritable -->
  15560. <!-- start class org.apache.hadoop.io.VLongWritable -->
  15561. <class name="VLongWritable" extends="java.lang.Object"
  15562. abstract="false"
  15563. static="false" final="false" visibility="public"
  15564. deprecated="not deprecated">
  15565. <implements name="org.apache.hadoop.io.WritableComparable"/>
  15566. <constructor name="VLongWritable"
  15567. static="false" final="false" visibility="public"
  15568. deprecated="not deprecated">
  15569. </constructor>
  15570. <constructor name="VLongWritable" type="long"
  15571. static="false" final="false" visibility="public"
  15572. deprecated="not deprecated">
  15573. </constructor>
  15574. <method name="set"
  15575. abstract="false" native="false" synchronized="false"
  15576. static="false" final="false" visibility="public"
  15577. deprecated="not deprecated">
  15578. <param name="value" type="long"/>
  15579. <doc>
  15580. <![CDATA[Set the value of this LongWritable.]]>
  15581. </doc>
  15582. </method>
  15583. <method name="get" return="long"
  15584. abstract="false" native="false" synchronized="false"
  15585. static="false" final="false" visibility="public"
  15586. deprecated="not deprecated">
  15587. <doc>
  15588. <![CDATA[Return the value of this LongWritable.]]>
  15589. </doc>
  15590. </method>
  15591. <method name="readFields"
  15592. abstract="false" native="false" synchronized="false"
  15593. static="false" final="false" visibility="public"
  15594. deprecated="not deprecated">
  15595. <param name="in" type="java.io.DataInput"/>
  15596. <exception name="IOException" type="java.io.IOException"/>
  15597. </method>
  15598. <method name="write"
  15599. abstract="false" native="false" synchronized="false"
  15600. static="false" final="false" visibility="public"
  15601. deprecated="not deprecated">
  15602. <param name="out" type="java.io.DataOutput"/>
  15603. <exception name="IOException" type="java.io.IOException"/>
  15604. </method>
  15605. <method name="equals" return="boolean"
  15606. abstract="false" native="false" synchronized="false"
  15607. static="false" final="false" visibility="public"
  15608. deprecated="not deprecated">
  15609. <param name="o" type="java.lang.Object"/>
  15610. <doc>
  15611. <![CDATA[Returns true iff <code>o</code> is a VLongWritable with the same value.]]>
  15612. </doc>
  15613. </method>
  15614. <method name="hashCode" return="int"
  15615. abstract="false" native="false" synchronized="false"
  15616. static="false" final="false" visibility="public"
  15617. deprecated="not deprecated">
  15618. </method>
  15619. <method name="compareTo" return="int"
  15620. abstract="false" native="false" synchronized="false"
  15621. static="false" final="false" visibility="public"
  15622. deprecated="not deprecated">
  15623. <param name="o" type="java.lang.Object"/>
  15624. <doc>
  15625. <![CDATA[Compares two VLongWritables.]]>
  15626. </doc>
  15627. </method>
  15628. <method name="toString" return="java.lang.String"
  15629. abstract="false" native="false" synchronized="false"
  15630. static="false" final="false" visibility="public"
  15631. deprecated="not deprecated">
  15632. </method>
  15633. <doc>
  15634. <![CDATA[A WritableComparable for longs in a variable-length format. Such values take
  15635. between one and five bytes. Smaller values take fewer bytes.
  15636. @see org.apache.hadoop.io.WritableUtils#readVLong(DataInput)]]>
  15637. </doc>
  15638. </class>
  15639. <!-- end class org.apache.hadoop.io.VLongWritable -->
  15640. <!-- start interface org.apache.hadoop.io.Writable -->
  15641. <interface name="Writable" abstract="true"
  15642. static="false" final="false" visibility="public"
  15643. deprecated="not deprecated">
  15644. <method name="write"
  15645. abstract="false" native="false" synchronized="false"
  15646. static="false" final="false" visibility="public"
  15647. deprecated="not deprecated">
  15648. <param name="out" type="java.io.DataOutput"/>
  15649. <exception name="IOException" type="java.io.IOException"/>
  15650. <doc>
  15651. <![CDATA[Serialize the fields of this object to <code>out</code>.
  15652. @param out <code>DataOuput</code> to serialize this object into.
  15653. @throws IOException]]>
  15654. </doc>
  15655. </method>
  15656. <method name="readFields"
  15657. abstract="false" native="false" synchronized="false"
  15658. static="false" final="false" visibility="public"
  15659. deprecated="not deprecated">
  15660. <param name="in" type="java.io.DataInput"/>
  15661. <exception name="IOException" type="java.io.IOException"/>
  15662. <doc>
  15663. <![CDATA[Deserialize the fields of this object from <code>in</code>.
  15664. <p>For efficiency, implementations should attempt to re-use storage in the
  15665. existing object where possible.</p>
  15666. @param in <code>DataInput</code> to deseriablize this object from.
  15667. @throws IOException]]>
  15668. </doc>
  15669. </method>
  15670. <doc>
  15671. <![CDATA[A serializable object which implements a simple, efficient, serialization
  15672. protocol, based on {@link DataInput} and {@link DataOutput}.
  15673. <p>Any <code>key</code> or <code>value</code> type in the Hadoop Map-Reduce
  15674. framework implements this interface.</p>
  15675. <p>Implementations typically implement a static <code>read(DataInput)</code>
  15676. method which constructs a new instance, calls {@link #readFields(DataInput)}
  15677. and returns the instance.</p>
  15678. <p>Example:</p>
  15679. <p><blockquote><pre>
  15680. public class MyWritable implements Writable {
  15681. // Some data
  15682. private int counter;
  15683. private long timestamp;
  15684. public void write(DataOutput out) throws IOException {
  15685. out.writeInt(counter);
  15686. out.writeLong(timestamp);
  15687. }
  15688. public void readFields(DataInput in) throws IOException {
  15689. counter = in.readInt();
  15690. timestamp = in.readLong();
  15691. }
  15692. public static MyWritable read(DataInput in) throws IOException {
  15693. MyWritable w = new MyWritable();
  15694. w.readFields(in);
  15695. return w;
  15696. }
  15697. }
  15698. </pre></blockquote></p>]]>
  15699. </doc>
  15700. </interface>
  15701. <!-- end interface org.apache.hadoop.io.Writable -->
  15702. <!-- start interface org.apache.hadoop.io.WritableComparable -->
  15703. <interface name="WritableComparable" abstract="true"
  15704. static="false" final="false" visibility="public"
  15705. deprecated="not deprecated">
  15706. <implements name="org.apache.hadoop.io.Writable"/>
  15707. <implements name="java.lang.Comparable"/>
  15708. <doc>
  15709. <![CDATA[A {@link Writable} which is also {@link Comparable}.
  15710. <p><code>WritableComparable</code>s can be compared to each other, typically
  15711. via <code>Comparator</code>s. Any type which is to be used as a
  15712. <code>key</code> in the Hadoop Map-Reduce framework should implement this
  15713. interface.</p>
  15714. <p>Example:</p>
  15715. <p><blockquote><pre>
  15716. public class MyWritableComparable implements WritableComparable {
  15717. // Some data
  15718. private int counter;
  15719. private long timestamp;
  15720. public void write(DataOutput out) throws IOException {
  15721. out.writeInt(counter);
  15722. out.writeLong(timestamp);
  15723. }
  15724. public void readFields(DataInput in) throws IOException {
  15725. counter = in.readInt();
  15726. timestamp = in.readLong();
  15727. }
  15728. public int compareTo(MyWritableComparable w) {
  15729. int thisValue = this.value;
  15730. int thatValue = ((IntWritable)o).value;
  15731. return (thisValue &lt; thatValue ? -1 : (thisValue==thatValue ? 0 : 1));
  15732. }
  15733. }
  15734. </pre></blockquote></p>]]>
  15735. </doc>
  15736. </interface>
  15737. <!-- end interface org.apache.hadoop.io.WritableComparable -->
  15738. <!-- start class org.apache.hadoop.io.WritableComparator -->
  15739. <class name="WritableComparator" extends="java.lang.Object"
  15740. abstract="false"
  15741. static="false" final="false" visibility="public"
  15742. deprecated="not deprecated">
  15743. <implements name="org.apache.hadoop.io.RawComparator"/>
  15744. <constructor name="WritableComparator" type="java.lang.Class"
  15745. static="false" final="false" visibility="protected"
  15746. deprecated="not deprecated">
  15747. <doc>
  15748. <![CDATA[Construct for a {@link WritableComparable} implementation.]]>
  15749. </doc>
  15750. </constructor>
  15751. <constructor name="WritableComparator" type="java.lang.Class, boolean"
  15752. static="false" final="false" visibility="protected"
  15753. deprecated="not deprecated">
  15754. </constructor>
  15755. <method name="get" return="org.apache.hadoop.io.WritableComparator"
  15756. abstract="false" native="false" synchronized="true"
  15757. static="true" final="false" visibility="public"
  15758. deprecated="not deprecated">
  15759. <param name="c" type="java.lang.Class"/>
  15760. <doc>
  15761. <![CDATA[Get a comparator for a {@link WritableComparable} implementation.]]>
  15762. </doc>
  15763. </method>
  15764. <method name="define"
  15765. abstract="false" native="false" synchronized="true"
  15766. static="true" final="false" visibility="public"
  15767. deprecated="not deprecated">
  15768. <param name="c" type="java.lang.Class"/>
  15769. <param name="comparator" type="org.apache.hadoop.io.WritableComparator"/>
  15770. <doc>
  15771. <![CDATA[Register an optimized comparator for a {@link WritableComparable}
  15772. implementation.]]>
  15773. </doc>
  15774. </method>
  15775. <method name="getKeyClass" return="java.lang.Class"
  15776. abstract="false" native="false" synchronized="false"
  15777. static="false" final="false" visibility="public"
  15778. deprecated="not deprecated">
  15779. <doc>
  15780. <![CDATA[Returns the WritableComparable implementation class.]]>
  15781. </doc>
  15782. </method>
  15783. <method name="newKey" return="org.apache.hadoop.io.WritableComparable"
  15784. abstract="false" native="false" synchronized="false"
  15785. static="false" final="false" visibility="public"
  15786. deprecated="not deprecated">
  15787. <doc>
  15788. <![CDATA[Construct a new {@link WritableComparable} instance.]]>
  15789. </doc>
  15790. </method>
  15791. <method name="compare" return="int"
  15792. abstract="false" native="false" synchronized="false"
  15793. static="false" final="false" visibility="public"
  15794. deprecated="not deprecated">
  15795. <param name="b1" type="byte[]"/>
  15796. <param name="s1" type="int"/>
  15797. <param name="l1" type="int"/>
  15798. <param name="b2" type="byte[]"/>
  15799. <param name="s2" type="int"/>
  15800. <param name="l2" type="int"/>
  15801. <doc>
  15802. <![CDATA[Optimization hook. Override this to make SequenceFile.Sorter's scream.
  15803. <p>The default implementation reads the data into two {@link
  15804. WritableComparable}s (using {@link
  15805. Writable#readFields(DataInput)}, then calls {@link
  15806. #compare(WritableComparable,WritableComparable)}.]]>
  15807. </doc>
  15808. </method>
  15809. <method name="compare" return="int"
  15810. abstract="false" native="false" synchronized="false"
  15811. static="false" final="false" visibility="public"
  15812. deprecated="not deprecated">
  15813. <param name="a" type="org.apache.hadoop.io.WritableComparable"/>
  15814. <param name="b" type="org.apache.hadoop.io.WritableComparable"/>
  15815. <doc>
  15816. <![CDATA[Compare two WritableComparables.
  15817. <p> The default implementation uses the natural ordering, calling {@link
  15818. Comparable#compareTo(Object)}.]]>
  15819. </doc>
  15820. </method>
  15821. <method name="compare" return="int"
  15822. abstract="false" native="false" synchronized="false"
  15823. static="false" final="false" visibility="public"
  15824. deprecated="not deprecated">
  15825. <param name="a" type="java.lang.Object"/>
  15826. <param name="b" type="java.lang.Object"/>
  15827. </method>
  15828. <method name="compareBytes" return="int"
  15829. abstract="false" native="false" synchronized="false"
  15830. static="true" final="false" visibility="public"
  15831. deprecated="not deprecated">
  15832. <param name="b1" type="byte[]"/>
  15833. <param name="s1" type="int"/>
  15834. <param name="l1" type="int"/>
  15835. <param name="b2" type="byte[]"/>
  15836. <param name="s2" type="int"/>
  15837. <param name="l2" type="int"/>
  15838. <doc>
  15839. <![CDATA[Lexicographic order of binary data.]]>
  15840. </doc>
  15841. </method>
  15842. <method name="hashBytes" return="int"
  15843. abstract="false" native="false" synchronized="false"
  15844. static="true" final="false" visibility="public"
  15845. deprecated="not deprecated">
  15846. <param name="bytes" type="byte[]"/>
  15847. <param name="offset" type="int"/>
  15848. <param name="length" type="int"/>
  15849. <doc>
  15850. <![CDATA[Compute hash for binary data.]]>
  15851. </doc>
  15852. </method>
  15853. <method name="hashBytes" return="int"
  15854. abstract="false" native="false" synchronized="false"
  15855. static="true" final="false" visibility="public"
  15856. deprecated="not deprecated">
  15857. <param name="bytes" type="byte[]"/>
  15858. <param name="length" type="int"/>
  15859. <doc>
  15860. <![CDATA[Compute hash for binary data.]]>
  15861. </doc>
  15862. </method>
  15863. <method name="readUnsignedShort" return="int"
  15864. abstract="false" native="false" synchronized="false"
  15865. static="true" final="false" visibility="public"
  15866. deprecated="not deprecated">
  15867. <param name="bytes" type="byte[]"/>
  15868. <param name="start" type="int"/>
  15869. <doc>
  15870. <![CDATA[Parse an unsigned short from a byte array.]]>
  15871. </doc>
  15872. </method>
  15873. <method name="readInt" return="int"
  15874. abstract="false" native="false" synchronized="false"
  15875. static="true" final="false" visibility="public"
  15876. deprecated="not deprecated">
  15877. <param name="bytes" type="byte[]"/>
  15878. <param name="start" type="int"/>
  15879. <doc>
  15880. <![CDATA[Parse an integer from a byte array.]]>
  15881. </doc>
  15882. </method>
  15883. <method name="readFloat" return="float"
  15884. abstract="false" native="false" synchronized="false"
  15885. static="true" final="false" visibility="public"
  15886. deprecated="not deprecated">
  15887. <param name="bytes" type="byte[]"/>
  15888. <param name="start" type="int"/>
  15889. <doc>
  15890. <![CDATA[Parse a float from a byte array.]]>
  15891. </doc>
  15892. </method>
  15893. <method name="readLong" return="long"
  15894. abstract="false" native="false" synchronized="false"
  15895. static="true" final="false" visibility="public"
  15896. deprecated="not deprecated">
  15897. <param name="bytes" type="byte[]"/>
  15898. <param name="start" type="int"/>
  15899. <doc>
  15900. <![CDATA[Parse a long from a byte array.]]>
  15901. </doc>
  15902. </method>
  15903. <method name="readDouble" return="double"
  15904. abstract="false" native="false" synchronized="false"
  15905. static="true" final="false" visibility="public"
  15906. deprecated="not deprecated">
  15907. <param name="bytes" type="byte[]"/>
  15908. <param name="start" type="int"/>
  15909. <doc>
  15910. <![CDATA[Parse a double from a byte array.]]>
  15911. </doc>
  15912. </method>
  15913. <method name="readVLong" return="long"
  15914. abstract="false" native="false" synchronized="false"
  15915. static="true" final="false" visibility="public"
  15916. deprecated="not deprecated">
  15917. <param name="bytes" type="byte[]"/>
  15918. <param name="start" type="int"/>
  15919. <exception name="IOException" type="java.io.IOException"/>
  15920. <doc>
  15921. <![CDATA[Reads a zero-compressed encoded long from a byte array and returns it.
  15922. @param bytes byte array with decode long
  15923. @param start starting index
  15924. @throws java.io.IOException
  15925. @return deserialized long]]>
  15926. </doc>
  15927. </method>
  15928. <method name="readVInt" return="int"
  15929. abstract="false" native="false" synchronized="false"
  15930. static="true" final="false" visibility="public"
  15931. deprecated="not deprecated">
  15932. <param name="bytes" type="byte[]"/>
  15933. <param name="start" type="int"/>
  15934. <exception name="IOException" type="java.io.IOException"/>
  15935. <doc>
  15936. <![CDATA[Reads a zero-compressed encoded integer from a byte array and returns it.
  15937. @param bytes byte array with the encoded integer
  15938. @param start start index
  15939. @throws java.io.IOException
  15940. @return deserialized integer]]>
  15941. </doc>
  15942. </method>
  15943. <doc>
  15944. <![CDATA[A Comparator for {@link WritableComparable}s.
  15945. <p>This base implemenation uses the natural ordering. To define alternate
  15946. orderings, override {@link #compare(WritableComparable,WritableComparable)}.
  15947. <p>One may optimize compare-intensive operations by overriding
  15948. {@link #compare(byte[],int,int,byte[],int,int)}. Static utility methods are
  15949. provided to assist in optimized implementations of this method.]]>
  15950. </doc>
  15951. </class>
  15952. <!-- end class org.apache.hadoop.io.WritableComparator -->
  15953. <!-- start class org.apache.hadoop.io.WritableFactories -->
  15954. <class name="WritableFactories" extends="java.lang.Object"
  15955. abstract="false"
  15956. static="false" final="false" visibility="public"
  15957. deprecated="not deprecated">
  15958. <method name="setFactory"
  15959. abstract="false" native="false" synchronized="true"
  15960. static="true" final="false" visibility="public"
  15961. deprecated="not deprecated">
  15962. <param name="c" type="java.lang.Class"/>
  15963. <param name="factory" type="org.apache.hadoop.io.WritableFactory"/>
  15964. <doc>
  15965. <![CDATA[Define a factory for a class.]]>
  15966. </doc>
  15967. </method>
  15968. <method name="getFactory" return="org.apache.hadoop.io.WritableFactory"
  15969. abstract="false" native="false" synchronized="true"
  15970. static="true" final="false" visibility="public"
  15971. deprecated="not deprecated">
  15972. <param name="c" type="java.lang.Class"/>
  15973. <doc>
  15974. <![CDATA[Define a factory for a class.]]>
  15975. </doc>
  15976. </method>
  15977. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  15978. abstract="false" native="false" synchronized="false"
  15979. static="true" final="false" visibility="public"
  15980. deprecated="not deprecated">
  15981. <param name="c" type="java.lang.Class"/>
  15982. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15983. <doc>
  15984. <![CDATA[Create a new instance of a class with a defined factory.]]>
  15985. </doc>
  15986. </method>
  15987. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  15988. abstract="false" native="false" synchronized="false"
  15989. static="true" final="false" visibility="public"
  15990. deprecated="not deprecated">
  15991. <param name="c" type="java.lang.Class"/>
  15992. <doc>
  15993. <![CDATA[Create a new instance of a class with a defined factory.]]>
  15994. </doc>
  15995. </method>
  15996. <doc>
  15997. <![CDATA[Factories for non-public writables. Defining a factory permits {@link
  15998. ObjectWritable} to be able to construct instances of non-public classes.]]>
  15999. </doc>
  16000. </class>
  16001. <!-- end class org.apache.hadoop.io.WritableFactories -->
  16002. <!-- start interface org.apache.hadoop.io.WritableFactory -->
  16003. <interface name="WritableFactory" abstract="true"
  16004. static="false" final="false" visibility="public"
  16005. deprecated="not deprecated">
  16006. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  16007. abstract="false" native="false" synchronized="false"
  16008. static="false" final="false" visibility="public"
  16009. deprecated="not deprecated">
  16010. <doc>
  16011. <![CDATA[Return a new instance.]]>
  16012. </doc>
  16013. </method>
  16014. <doc>
  16015. <![CDATA[A factory for a class of Writable.
  16016. @see WritableFactories]]>
  16017. </doc>
  16018. </interface>
  16019. <!-- end interface org.apache.hadoop.io.WritableFactory -->
  16020. <!-- start class org.apache.hadoop.io.WritableName -->
  16021. <class name="WritableName" extends="java.lang.Object"
  16022. abstract="false"
  16023. static="false" final="false" visibility="public"
  16024. deprecated="not deprecated">
  16025. <method name="setName"
  16026. abstract="false" native="false" synchronized="true"
  16027. static="true" final="false" visibility="public"
  16028. deprecated="not deprecated">
  16029. <param name="writableClass" type="java.lang.Class"/>
  16030. <param name="name" type="java.lang.String"/>
  16031. <doc>
  16032. <![CDATA[Set the name that a class should be known as to something other than the
  16033. class name.]]>
  16034. </doc>
  16035. </method>
  16036. <method name="addName"
  16037. abstract="false" native="false" synchronized="true"
  16038. static="true" final="false" visibility="public"
  16039. deprecated="not deprecated">
  16040. <param name="writableClass" type="java.lang.Class"/>
  16041. <param name="name" type="java.lang.String"/>
  16042. <doc>
  16043. <![CDATA[Add an alternate name for a class.]]>
  16044. </doc>
  16045. </method>
  16046. <method name="getName" return="java.lang.String"
  16047. abstract="false" native="false" synchronized="true"
  16048. static="true" final="false" visibility="public"
  16049. deprecated="not deprecated">
  16050. <param name="writableClass" type="java.lang.Class"/>
  16051. <doc>
  16052. <![CDATA[Return the name for a class. Default is {@link Class#getName()}.]]>
  16053. </doc>
  16054. </method>
  16055. <method name="getClass" return="java.lang.Class"
  16056. abstract="false" native="false" synchronized="true"
  16057. static="true" final="false" visibility="public"
  16058. deprecated="not deprecated">
  16059. <param name="name" type="java.lang.String"/>
  16060. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16061. <exception name="IOException" type="java.io.IOException"/>
  16062. <doc>
  16063. <![CDATA[Return the class for a name. Default is {@link Class#forName(String)}.]]>
  16064. </doc>
  16065. </method>
  16066. <doc>
  16067. <![CDATA[Utility to permit renaming of Writable implementation classes without
  16068. invalidiating files that contain their class name.]]>
  16069. </doc>
  16070. </class>
  16071. <!-- end class org.apache.hadoop.io.WritableName -->
  16072. <!-- start class org.apache.hadoop.io.WritableUtils -->
  16073. <class name="WritableUtils" extends="java.lang.Object"
  16074. abstract="false"
  16075. static="false" final="true" visibility="public"
  16076. deprecated="not deprecated">
  16077. <constructor name="WritableUtils"
  16078. static="false" final="false" visibility="public"
  16079. deprecated="not deprecated">
  16080. </constructor>
  16081. <method name="readCompressedByteArray" return="byte[]"
  16082. abstract="false" native="false" synchronized="false"
  16083. static="true" final="false" visibility="public"
  16084. deprecated="not deprecated">
  16085. <param name="in" type="java.io.DataInput"/>
  16086. <exception name="IOException" type="java.io.IOException"/>
  16087. </method>
  16088. <method name="skipCompressedByteArray"
  16089. abstract="false" native="false" synchronized="false"
  16090. static="true" final="false" visibility="public"
  16091. deprecated="not deprecated">
  16092. <param name="in" type="java.io.DataInput"/>
  16093. <exception name="IOException" type="java.io.IOException"/>
  16094. </method>
  16095. <method name="writeCompressedByteArray" return="int"
  16096. abstract="false" native="false" synchronized="false"
  16097. static="true" final="false" visibility="public"
  16098. deprecated="not deprecated">
  16099. <param name="out" type="java.io.DataOutput"/>
  16100. <param name="bytes" type="byte[]"/>
  16101. <exception name="IOException" type="java.io.IOException"/>
  16102. </method>
  16103. <method name="readCompressedString" return="java.lang.String"
  16104. abstract="false" native="false" synchronized="false"
  16105. static="true" final="false" visibility="public"
  16106. deprecated="not deprecated">
  16107. <param name="in" type="java.io.DataInput"/>
  16108. <exception name="IOException" type="java.io.IOException"/>
  16109. </method>
  16110. <method name="writeCompressedString" return="int"
  16111. abstract="false" native="false" synchronized="false"
  16112. static="true" final="false" visibility="public"
  16113. deprecated="not deprecated">
  16114. <param name="out" type="java.io.DataOutput"/>
  16115. <param name="s" type="java.lang.String"/>
  16116. <exception name="IOException" type="java.io.IOException"/>
  16117. </method>
  16118. <method name="writeString"
  16119. abstract="false" native="false" synchronized="false"
  16120. static="true" final="false" visibility="public"
  16121. deprecated="not deprecated">
  16122. <param name="out" type="java.io.DataOutput"/>
  16123. <param name="s" type="java.lang.String"/>
  16124. <exception name="IOException" type="java.io.IOException"/>
  16125. </method>
  16126. <method name="readString" return="java.lang.String"
  16127. abstract="false" native="false" synchronized="false"
  16128. static="true" final="false" visibility="public"
  16129. deprecated="not deprecated">
  16130. <param name="in" type="java.io.DataInput"/>
  16131. <exception name="IOException" type="java.io.IOException"/>
  16132. </method>
  16133. <method name="writeStringArray"
  16134. abstract="false" native="false" synchronized="false"
  16135. static="true" final="false" visibility="public"
  16136. deprecated="not deprecated">
  16137. <param name="out" type="java.io.DataOutput"/>
  16138. <param name="s" type="java.lang.String[]"/>
  16139. <exception name="IOException" type="java.io.IOException"/>
  16140. </method>
  16141. <method name="writeCompressedStringArray"
  16142. abstract="false" native="false" synchronized="false"
  16143. static="true" final="false" visibility="public"
  16144. deprecated="not deprecated">
  16145. <param name="out" type="java.io.DataOutput"/>
  16146. <param name="s" type="java.lang.String[]"/>
  16147. <exception name="IOException" type="java.io.IOException"/>
  16148. </method>
  16149. <method name="readStringArray" return="java.lang.String[]"
  16150. abstract="false" native="false" synchronized="false"
  16151. static="true" final="false" visibility="public"
  16152. deprecated="not deprecated">
  16153. <param name="in" type="java.io.DataInput"/>
  16154. <exception name="IOException" type="java.io.IOException"/>
  16155. </method>
  16156. <method name="readCompressedStringArray" return="java.lang.String[]"
  16157. abstract="false" native="false" synchronized="false"
  16158. static="true" final="false" visibility="public"
  16159. deprecated="not deprecated">
  16160. <param name="in" type="java.io.DataInput"/>
  16161. <exception name="IOException" type="java.io.IOException"/>
  16162. </method>
  16163. <method name="displayByteArray"
  16164. abstract="false" native="false" synchronized="false"
  16165. static="true" final="false" visibility="public"
  16166. deprecated="not deprecated">
  16167. <param name="record" type="byte[]"/>
  16168. </method>
  16169. <method name="clone" return="org.apache.hadoop.io.Writable"
  16170. abstract="false" native="false" synchronized="false"
  16171. static="true" final="false" visibility="public"
  16172. deprecated="not deprecated">
  16173. <param name="orig" type="org.apache.hadoop.io.Writable"/>
  16174. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16175. <doc>
  16176. <![CDATA[Make a copy of a writable object using serialization to a buffer.
  16177. @param orig The object to copy
  16178. @return The copied object]]>
  16179. </doc>
  16180. </method>
  16181. <method name="cloneInto"
  16182. abstract="false" native="false" synchronized="false"
  16183. static="true" final="false" visibility="public"
  16184. deprecated="use ReflectionUtils.cloneInto instead.">
  16185. <param name="dst" type="org.apache.hadoop.io.Writable"/>
  16186. <param name="src" type="org.apache.hadoop.io.Writable"/>
  16187. <exception name="IOException" type="java.io.IOException"/>
  16188. <doc>
  16189. <![CDATA[Make a copy of the writable object using serialiation to a buffer
  16190. @param dst the object to copy from
  16191. @param src the object to copy into, which is destroyed
  16192. @throws IOException
  16193. @deprecated use ReflectionUtils.cloneInto instead.]]>
  16194. </doc>
  16195. </method>
  16196. <method name="writeVInt"
  16197. abstract="false" native="false" synchronized="false"
  16198. static="true" final="false" visibility="public"
  16199. deprecated="not deprecated">
  16200. <param name="stream" type="java.io.DataOutput"/>
  16201. <param name="i" type="int"/>
  16202. <exception name="IOException" type="java.io.IOException"/>
  16203. <doc>
  16204. <![CDATA[Serializes an integer to a binary stream with zero-compressed encoding.
  16205. For -120 <= i <= 127, only one byte is used with the actual value.
  16206. For other values of i, the first byte value indicates whether the
  16207. integer is positive or negative, and the number of bytes that follow.
  16208. If the first byte value v is between -121 and -124, the following integer
  16209. is positive, with number of bytes that follow are -(v+120).
  16210. If the first byte value v is between -125 and -128, the following integer
  16211. is negative, with number of bytes that follow are -(v+124). Bytes are
  16212. stored in the high-non-zero-byte-first order.
  16213. @param stream Binary output stream
  16214. @param i Integer to be serialized
  16215. @throws java.io.IOException]]>
  16216. </doc>
  16217. </method>
  16218. <method name="writeVLong"
  16219. abstract="false" native="false" synchronized="false"
  16220. static="true" final="false" visibility="public"
  16221. deprecated="not deprecated">
  16222. <param name="stream" type="java.io.DataOutput"/>
  16223. <param name="i" type="long"/>
  16224. <exception name="IOException" type="java.io.IOException"/>
  16225. <doc>
  16226. <![CDATA[Serializes a long to a binary stream with zero-compressed encoding.
  16227. For -112 <= i <= 127, only one byte is used with the actual value.
  16228. For other values of i, the first byte value indicates whether the
  16229. long is positive or negative, and the number of bytes that follow.
  16230. If the first byte value v is between -113 and -120, the following long
  16231. is positive, with number of bytes that follow are -(v+112).
  16232. If the first byte value v is between -121 and -128, the following long
  16233. is negative, with number of bytes that follow are -(v+120). Bytes are
  16234. stored in the high-non-zero-byte-first order.
  16235. @param stream Binary output stream
  16236. @param i Long to be serialized
  16237. @throws java.io.IOException]]>
  16238. </doc>
  16239. </method>
  16240. <method name="readVLong" return="long"
  16241. abstract="false" native="false" synchronized="false"
  16242. static="true" final="false" visibility="public"
  16243. deprecated="not deprecated">
  16244. <param name="stream" type="java.io.DataInput"/>
  16245. <exception name="IOException" type="java.io.IOException"/>
  16246. <doc>
  16247. <![CDATA[Reads a zero-compressed encoded long from input stream and returns it.
  16248. @param stream Binary input stream
  16249. @throws java.io.IOException
  16250. @return deserialized long from stream.]]>
  16251. </doc>
  16252. </method>
  16253. <method name="readVInt" return="int"
  16254. abstract="false" native="false" synchronized="false"
  16255. static="true" final="false" visibility="public"
  16256. deprecated="not deprecated">
  16257. <param name="stream" type="java.io.DataInput"/>
  16258. <exception name="IOException" type="java.io.IOException"/>
  16259. <doc>
  16260. <![CDATA[Reads a zero-compressed encoded integer from input stream and returns it.
  16261. @param stream Binary input stream
  16262. @throws java.io.IOException
  16263. @return deserialized integer from stream.]]>
  16264. </doc>
  16265. </method>
  16266. <method name="isNegativeVInt" return="boolean"
  16267. abstract="false" native="false" synchronized="false"
  16268. static="true" final="false" visibility="public"
  16269. deprecated="not deprecated">
  16270. <param name="value" type="byte"/>
  16271. <doc>
  16272. <![CDATA[Given the first byte of a vint/vlong, determine the sign
  16273. @param value the first byte
  16274. @return is the value negative]]>
  16275. </doc>
  16276. </method>
  16277. <method name="decodeVIntSize" return="int"
  16278. abstract="false" native="false" synchronized="false"
  16279. static="true" final="false" visibility="public"
  16280. deprecated="not deprecated">
  16281. <param name="value" type="byte"/>
  16282. <doc>
  16283. <![CDATA[Parse the first byte of a vint/vlong to determine the number of bytes
  16284. @param value the first byte of the vint/vlong
  16285. @return the total number of bytes (1 to 9)]]>
  16286. </doc>
  16287. </method>
  16288. <method name="getVIntSize" return="int"
  16289. abstract="false" native="false" synchronized="false"
  16290. static="true" final="false" visibility="public"
  16291. deprecated="not deprecated">
  16292. <param name="i" type="long"/>
  16293. <doc>
  16294. <![CDATA[Get the encoded length if an integer is stored in a variable-length format
  16295. @return the encoded length]]>
  16296. </doc>
  16297. </method>
  16298. <method name="readEnum" return="java.lang.Enum"
  16299. abstract="false" native="false" synchronized="false"
  16300. static="true" final="false" visibility="public"
  16301. deprecated="not deprecated">
  16302. <param name="in" type="java.io.DataInput"/>
  16303. <param name="enumType" type="java.lang.Class"/>
  16304. <exception name="IOException" type="java.io.IOException"/>
  16305. <doc>
  16306. <![CDATA[Read an Enum value from DataInput, Enums are read and written
  16307. using String values.
  16308. @param <T> Enum type
  16309. @param in DataInput to read from
  16310. @param enumType Class type of Enum
  16311. @return Enum represented by String read from DataInput
  16312. @throws IOException]]>
  16313. </doc>
  16314. </method>
  16315. <method name="writeEnum"
  16316. abstract="false" native="false" synchronized="false"
  16317. static="true" final="false" visibility="public"
  16318. deprecated="not deprecated">
  16319. <param name="out" type="java.io.DataOutput"/>
  16320. <param name="enumVal" type="java.lang.Enum"/>
  16321. <exception name="IOException" type="java.io.IOException"/>
  16322. <doc>
  16323. <![CDATA[writes String value of enum to DataOutput.
  16324. @param out Dataoutput stream
  16325. @param enumVal enum value
  16326. @throws IOException]]>
  16327. </doc>
  16328. </method>
  16329. <method name="skipFully"
  16330. abstract="false" native="false" synchronized="false"
  16331. static="true" final="false" visibility="public"
  16332. deprecated="not deprecated">
  16333. <param name="in" type="java.io.DataInput"/>
  16334. <param name="len" type="int"/>
  16335. <exception name="IOException" type="java.io.IOException"/>
  16336. <doc>
  16337. <![CDATA[Skip <i>len</i> number of bytes in input stream<i>in</i>
  16338. @param in input stream
  16339. @param len number of bytes to skip
  16340. @throws IOException when skipped less number of bytes]]>
  16341. </doc>
  16342. </method>
  16343. <method name="toByteArray" return="byte[]"
  16344. abstract="false" native="false" synchronized="false"
  16345. static="true" final="false" visibility="public"
  16346. deprecated="not deprecated">
  16347. <param name="writables" type="org.apache.hadoop.io.Writable[]"/>
  16348. <doc>
  16349. <![CDATA[Convert writables to a byte array]]>
  16350. </doc>
  16351. </method>
  16352. </class>
  16353. <!-- end class org.apache.hadoop.io.WritableUtils -->
  16354. </package>
  16355. <package name="org.apache.hadoop.io.compress">
  16356. <!-- start class org.apache.hadoop.io.compress.BlockCompressorStream -->
  16357. <class name="BlockCompressorStream" extends="org.apache.hadoop.io.compress.CompressorStream"
  16358. abstract="false"
  16359. static="false" final="false" visibility="public"
  16360. deprecated="not deprecated">
  16361. <constructor name="BlockCompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor, int, int"
  16362. static="false" final="false" visibility="public"
  16363. deprecated="not deprecated">
  16364. <doc>
  16365. <![CDATA[Create a {@link BlockCompressorStream}.
  16366. @param out stream
  16367. @param compressor compressor to be used
  16368. @param bufferSize size of buffer
  16369. @param compressionOverhead maximum 'overhead' of the compression
  16370. algorithm with given bufferSize]]>
  16371. </doc>
  16372. </constructor>
  16373. <constructor name="BlockCompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor"
  16374. static="false" final="false" visibility="public"
  16375. deprecated="not deprecated">
  16376. <doc>
  16377. <![CDATA[Create a {@link BlockCompressorStream} with given output-stream and
  16378. compressor.
  16379. Use default of 512 as bufferSize and compressionOverhead of
  16380. (1% of bufferSize + 12 bytes) = 18 bytes (zlib algorithm).
  16381. @param out stream
  16382. @param compressor compressor to be used]]>
  16383. </doc>
  16384. </constructor>
  16385. <method name="write"
  16386. abstract="false" native="false" synchronized="false"
  16387. static="false" final="false" visibility="public"
  16388. deprecated="not deprecated">
  16389. <param name="b" type="byte[]"/>
  16390. <param name="off" type="int"/>
  16391. <param name="len" type="int"/>
  16392. <exception name="IOException" type="java.io.IOException"/>
  16393. <doc>
  16394. <![CDATA[Write the data provided to the compression codec, compressing no more
  16395. than the buffer size less the compression overhead as specified during
  16396. construction for each block.
  16397. Each block contains the uncompressed length for the block, followed by
  16398. one or more length-prefixed blocks of compressed data.]]>
  16399. </doc>
  16400. </method>
  16401. <method name="finish"
  16402. abstract="false" native="false" synchronized="false"
  16403. static="false" final="false" visibility="public"
  16404. deprecated="not deprecated">
  16405. <exception name="IOException" type="java.io.IOException"/>
  16406. </method>
  16407. <method name="compress"
  16408. abstract="false" native="false" synchronized="false"
  16409. static="false" final="false" visibility="protected"
  16410. deprecated="not deprecated">
  16411. <exception name="IOException" type="java.io.IOException"/>
  16412. </method>
  16413. <doc>
  16414. <![CDATA[A {@link org.apache.hadoop.io.compress.CompressorStream} which works
  16415. with 'block-based' based compression algorithms, as opposed to
  16416. 'stream-based' compression algorithms.
  16417. It should be noted that this wrapper does not guarantee that blocks will
  16418. be sized for the compressor. If the
  16419. {@link org.apache.hadoop.io.compress.Compressor} requires buffering to
  16420. effect meaningful compression, it is responsible for it.]]>
  16421. </doc>
  16422. </class>
  16423. <!-- end class org.apache.hadoop.io.compress.BlockCompressorStream -->
  16424. <!-- start class org.apache.hadoop.io.compress.BlockDecompressorStream -->
  16425. <class name="BlockDecompressorStream" extends="org.apache.hadoop.io.compress.DecompressorStream"
  16426. abstract="false"
  16427. static="false" final="false" visibility="public"
  16428. deprecated="not deprecated">
  16429. <constructor name="BlockDecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor, int"
  16430. static="false" final="false" visibility="public"
  16431. deprecated="not deprecated">
  16432. <exception name="IOException" type="java.io.IOException"/>
  16433. <doc>
  16434. <![CDATA[Create a {@link BlockDecompressorStream}.
  16435. @param in input stream
  16436. @param decompressor decompressor to use
  16437. @param bufferSize size of buffer
  16438. @throws IOException]]>
  16439. </doc>
  16440. </constructor>
  16441. <constructor name="BlockDecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor"
  16442. static="false" final="false" visibility="public"
  16443. deprecated="not deprecated">
  16444. <exception name="IOException" type="java.io.IOException"/>
  16445. <doc>
  16446. <![CDATA[Create a {@link BlockDecompressorStream}.
  16447. @param in input stream
  16448. @param decompressor decompressor to use
  16449. @throws IOException]]>
  16450. </doc>
  16451. </constructor>
  16452. <constructor name="BlockDecompressorStream" type="java.io.InputStream"
  16453. static="false" final="false" visibility="protected"
  16454. deprecated="not deprecated">
  16455. <exception name="IOException" type="java.io.IOException"/>
  16456. </constructor>
  16457. <method name="decompress" return="int"
  16458. abstract="false" native="false" synchronized="false"
  16459. static="false" final="false" visibility="protected"
  16460. deprecated="not deprecated">
  16461. <param name="b" type="byte[]"/>
  16462. <param name="off" type="int"/>
  16463. <param name="len" type="int"/>
  16464. <exception name="IOException" type="java.io.IOException"/>
  16465. </method>
  16466. <method name="getCompressedData" return="int"
  16467. abstract="false" native="false" synchronized="false"
  16468. static="false" final="false" visibility="protected"
  16469. deprecated="not deprecated">
  16470. <exception name="IOException" type="java.io.IOException"/>
  16471. </method>
  16472. <method name="resetState"
  16473. abstract="false" native="false" synchronized="false"
  16474. static="false" final="false" visibility="public"
  16475. deprecated="not deprecated">
  16476. <exception name="IOException" type="java.io.IOException"/>
  16477. </method>
  16478. <doc>
  16479. <![CDATA[A {@link org.apache.hadoop.io.compress.DecompressorStream} which works
  16480. with 'block-based' based compression algorithms, as opposed to
  16481. 'stream-based' compression algorithms.]]>
  16482. </doc>
  16483. </class>
  16484. <!-- end class org.apache.hadoop.io.compress.BlockDecompressorStream -->
  16485. <!-- start class org.apache.hadoop.io.compress.BZip2Codec -->
  16486. <class name="BZip2Codec" extends="java.lang.Object"
  16487. abstract="false"
  16488. static="false" final="false" visibility="public"
  16489. deprecated="not deprecated">
  16490. <implements name="org.apache.hadoop.io.compress.SplittableCompressionCodec"/>
  16491. <constructor name="BZip2Codec"
  16492. static="false" final="false" visibility="public"
  16493. deprecated="not deprecated">
  16494. <doc>
  16495. <![CDATA[Creates a new instance of BZip2Codec]]>
  16496. </doc>
  16497. </constructor>
  16498. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  16499. abstract="false" native="false" synchronized="false"
  16500. static="false" final="false" visibility="public"
  16501. deprecated="not deprecated">
  16502. <param name="out" type="java.io.OutputStream"/>
  16503. <exception name="IOException" type="java.io.IOException"/>
  16504. <doc>
  16505. <![CDATA[Creates CompressionOutputStream for BZip2
  16506. @param out
  16507. The output Stream
  16508. @return The BZip2 CompressionOutputStream
  16509. @throws java.io.IOException
  16510. Throws IO exception]]>
  16511. </doc>
  16512. </method>
  16513. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  16514. abstract="false" native="false" synchronized="false"
  16515. static="false" final="false" visibility="public"
  16516. deprecated="not deprecated">
  16517. <param name="out" type="java.io.OutputStream"/>
  16518. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  16519. <exception name="IOException" type="java.io.IOException"/>
  16520. <doc>
  16521. <![CDATA[Creates a compressor using given OutputStream.
  16522. @return CompressionOutputStream
  16523. @throws java.io.IOException]]>
  16524. </doc>
  16525. </method>
  16526. <method name="getCompressorType" return="java.lang.Class"
  16527. abstract="false" native="false" synchronized="false"
  16528. static="false" final="false" visibility="public"
  16529. deprecated="not deprecated">
  16530. <doc>
  16531. <![CDATA[This functionality is currently not supported.
  16532. @return BZip2DummyCompressor.class]]>
  16533. </doc>
  16534. </method>
  16535. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  16536. abstract="false" native="false" synchronized="false"
  16537. static="false" final="false" visibility="public"
  16538. deprecated="not deprecated">
  16539. <doc>
  16540. <![CDATA[This functionality is currently not supported.
  16541. @return Compressor]]>
  16542. </doc>
  16543. </method>
  16544. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  16545. abstract="false" native="false" synchronized="false"
  16546. static="false" final="false" visibility="public"
  16547. deprecated="not deprecated">
  16548. <param name="in" type="java.io.InputStream"/>
  16549. <exception name="IOException" type="java.io.IOException"/>
  16550. <doc>
  16551. <![CDATA[Creates CompressionInputStream to be used to read off uncompressed data.
  16552. @param in
  16553. The InputStream
  16554. @return Returns CompressionInputStream for BZip2
  16555. @throws java.io.IOException
  16556. Throws IOException]]>
  16557. </doc>
  16558. </method>
  16559. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  16560. abstract="false" native="false" synchronized="false"
  16561. static="false" final="false" visibility="public"
  16562. deprecated="not deprecated">
  16563. <param name="in" type="java.io.InputStream"/>
  16564. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  16565. <exception name="IOException" type="java.io.IOException"/>
  16566. <doc>
  16567. <![CDATA[This functionality is currently not supported.
  16568. @return CompressionInputStream]]>
  16569. </doc>
  16570. </method>
  16571. <method name="createInputStream" return="org.apache.hadoop.io.compress.SplitCompressionInputStream"
  16572. abstract="false" native="false" synchronized="false"
  16573. static="false" final="false" visibility="public"
  16574. deprecated="not deprecated">
  16575. <param name="seekableIn" type="java.io.InputStream"/>
  16576. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  16577. <param name="start" type="long"/>
  16578. <param name="end" type="long"/>
  16579. <param name="readMode" type="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE"/>
  16580. <exception name="IOException" type="java.io.IOException"/>
  16581. <doc>
  16582. <![CDATA[Creates CompressionInputStream to be used to read off uncompressed data
  16583. in one of the two reading modes. i.e. Continuous or Blocked reading modes
  16584. @param seekableIn The InputStream
  16585. @param start The start offset into the compressed stream
  16586. @param end The end offset into the compressed stream
  16587. @param readMode Controls whether progress is reported continuously or
  16588. only at block boundaries.
  16589. @return CompressionInputStream for BZip2 aligned at block boundaries]]>
  16590. </doc>
  16591. </method>
  16592. <method name="getDecompressorType" return="java.lang.Class"
  16593. abstract="false" native="false" synchronized="false"
  16594. static="false" final="false" visibility="public"
  16595. deprecated="not deprecated">
  16596. <doc>
  16597. <![CDATA[This functionality is currently not supported.
  16598. @return BZip2DummyDecompressor.class]]>
  16599. </doc>
  16600. </method>
  16601. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  16602. abstract="false" native="false" synchronized="false"
  16603. static="false" final="false" visibility="public"
  16604. deprecated="not deprecated">
  16605. <doc>
  16606. <![CDATA[This functionality is currently not supported.
  16607. @return Decompressor]]>
  16608. </doc>
  16609. </method>
  16610. <method name="getDefaultExtension" return="java.lang.String"
  16611. abstract="false" native="false" synchronized="false"
  16612. static="false" final="false" visibility="public"
  16613. deprecated="not deprecated">
  16614. <doc>
  16615. <![CDATA[.bz2 is recognized as the default extension for compressed BZip2 files
  16616. @return A String telling the default bzip2 file extension]]>
  16617. </doc>
  16618. </method>
  16619. <doc>
  16620. <![CDATA[This class provides CompressionOutputStream and CompressionInputStream for
  16621. compression and decompression. Currently we dont have an implementation of
  16622. the Compressor and Decompressor interfaces, so those methods of
  16623. CompressionCodec which have a Compressor or Decompressor type argument, throw
  16624. UnsupportedOperationException.]]>
  16625. </doc>
  16626. </class>
  16627. <!-- end class org.apache.hadoop.io.compress.BZip2Codec -->
  16628. <!-- start class org.apache.hadoop.io.compress.CodecPool -->
  16629. <class name="CodecPool" extends="java.lang.Object"
  16630. abstract="false"
  16631. static="false" final="false" visibility="public"
  16632. deprecated="not deprecated">
  16633. <constructor name="CodecPool"
  16634. static="false" final="false" visibility="public"
  16635. deprecated="not deprecated">
  16636. </constructor>
  16637. <method name="getCompressor" return="org.apache.hadoop.io.compress.Compressor"
  16638. abstract="false" native="false" synchronized="false"
  16639. static="true" final="false" visibility="public"
  16640. deprecated="not deprecated">
  16641. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  16642. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16643. <doc>
  16644. <![CDATA[Get a {@link Compressor} for the given {@link CompressionCodec} from the
  16645. pool or a new one.
  16646. @param codec the <code>CompressionCodec</code> for which to get the
  16647. <code>Compressor</code>
  16648. @param conf the <code>Configuration</code> object which contains confs for creating or reinit the compressor
  16649. @return <code>Compressor</code> for the given
  16650. <code>CompressionCodec</code> from the pool or a new one]]>
  16651. </doc>
  16652. </method>
  16653. <method name="getCompressor" return="org.apache.hadoop.io.compress.Compressor"
  16654. abstract="false" native="false" synchronized="false"
  16655. static="true" final="false" visibility="public"
  16656. deprecated="not deprecated">
  16657. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  16658. </method>
  16659. <method name="getDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  16660. abstract="false" native="false" synchronized="false"
  16661. static="true" final="false" visibility="public"
  16662. deprecated="not deprecated">
  16663. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  16664. <doc>
  16665. <![CDATA[Get a {@link Decompressor} for the given {@link CompressionCodec} from the
  16666. pool or a new one.
  16667. @param codec the <code>CompressionCodec</code> for which to get the
  16668. <code>Decompressor</code>
  16669. @return <code>Decompressor</code> for the given
  16670. <code>CompressionCodec</code> the pool or a new one]]>
  16671. </doc>
  16672. </method>
  16673. <method name="returnCompressor"
  16674. abstract="false" native="false" synchronized="false"
  16675. static="true" final="false" visibility="public"
  16676. deprecated="not deprecated">
  16677. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  16678. <doc>
  16679. <![CDATA[Return the {@link Compressor} to the pool.
  16680. @param compressor the <code>Compressor</code> to be returned to the pool]]>
  16681. </doc>
  16682. </method>
  16683. <method name="returnDecompressor"
  16684. abstract="false" native="false" synchronized="false"
  16685. static="true" final="false" visibility="public"
  16686. deprecated="not deprecated">
  16687. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  16688. <doc>
  16689. <![CDATA[Return the {@link Decompressor} to the pool.
  16690. @param decompressor the <code>Decompressor</code> to be returned to the
  16691. pool]]>
  16692. </doc>
  16693. </method>
  16694. <doc>
  16695. <![CDATA[A global compressor/decompressor pool used to save and reuse
  16696. (possibly native) compression/decompression codecs.]]>
  16697. </doc>
  16698. </class>
  16699. <!-- end class org.apache.hadoop.io.compress.CodecPool -->
  16700. <!-- start interface org.apache.hadoop.io.compress.CompressionCodec -->
  16701. <interface name="CompressionCodec" abstract="true"
  16702. static="false" final="false" visibility="public"
  16703. deprecated="not deprecated">
  16704. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  16705. abstract="false" native="false" synchronized="false"
  16706. static="false" final="false" visibility="public"
  16707. deprecated="not deprecated">
  16708. <param name="out" type="java.io.OutputStream"/>
  16709. <exception name="IOException" type="java.io.IOException"/>
  16710. <doc>
  16711. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  16712. {@link OutputStream}.
  16713. @param out the location for the final output stream
  16714. @return a stream the user can write uncompressed data to have it compressed
  16715. @throws IOException]]>
  16716. </doc>
  16717. </method>
  16718. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  16719. abstract="false" native="false" synchronized="false"
  16720. static="false" final="false" visibility="public"
  16721. deprecated="not deprecated">
  16722. <param name="out" type="java.io.OutputStream"/>
  16723. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  16724. <exception name="IOException" type="java.io.IOException"/>
  16725. <doc>
  16726. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  16727. {@link OutputStream} with the given {@link Compressor}.
  16728. @param out the location for the final output stream
  16729. @param compressor compressor to use
  16730. @return a stream the user can write uncompressed data to have it compressed
  16731. @throws IOException]]>
  16732. </doc>
  16733. </method>
  16734. <method name="getCompressorType" return="java.lang.Class"
  16735. abstract="false" native="false" synchronized="false"
  16736. static="false" final="false" visibility="public"
  16737. deprecated="not deprecated">
  16738. <doc>
  16739. <![CDATA[Get the type of {@link Compressor} needed by this {@link CompressionCodec}.
  16740. @return the type of compressor needed by this codec.]]>
  16741. </doc>
  16742. </method>
  16743. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  16744. abstract="false" native="false" synchronized="false"
  16745. static="false" final="false" visibility="public"
  16746. deprecated="not deprecated">
  16747. <doc>
  16748. <![CDATA[Create a new {@link Compressor} for use by this {@link CompressionCodec}.
  16749. @return a new compressor for use by this codec]]>
  16750. </doc>
  16751. </method>
  16752. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  16753. abstract="false" native="false" synchronized="false"
  16754. static="false" final="false" visibility="public"
  16755. deprecated="not deprecated">
  16756. <param name="in" type="java.io.InputStream"/>
  16757. <exception name="IOException" type="java.io.IOException"/>
  16758. <doc>
  16759. <![CDATA[Create a stream decompressor that will read from the given input stream.
  16760. @param in the stream to read compressed bytes from
  16761. @return a stream to read uncompressed bytes from
  16762. @throws IOException]]>
  16763. </doc>
  16764. </method>
  16765. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  16766. abstract="false" native="false" synchronized="false"
  16767. static="false" final="false" visibility="public"
  16768. deprecated="not deprecated">
  16769. <param name="in" type="java.io.InputStream"/>
  16770. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  16771. <exception name="IOException" type="java.io.IOException"/>
  16772. <doc>
  16773. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  16774. {@link InputStream} with the given {@link Decompressor}.
  16775. @param in the stream to read compressed bytes from
  16776. @param decompressor decompressor to use
  16777. @return a stream to read uncompressed bytes from
  16778. @throws IOException]]>
  16779. </doc>
  16780. </method>
  16781. <method name="getDecompressorType" return="java.lang.Class"
  16782. abstract="false" native="false" synchronized="false"
  16783. static="false" final="false" visibility="public"
  16784. deprecated="not deprecated">
  16785. <doc>
  16786. <![CDATA[Get the type of {@link Decompressor} needed by this {@link CompressionCodec}.
  16787. @return the type of decompressor needed by this codec.]]>
  16788. </doc>
  16789. </method>
  16790. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  16791. abstract="false" native="false" synchronized="false"
  16792. static="false" final="false" visibility="public"
  16793. deprecated="not deprecated">
  16794. <doc>
  16795. <![CDATA[Create a new {@link Decompressor} for use by this {@link CompressionCodec}.
  16796. @return a new decompressor for use by this codec]]>
  16797. </doc>
  16798. </method>
  16799. <method name="getDefaultExtension" return="java.lang.String"
  16800. abstract="false" native="false" synchronized="false"
  16801. static="false" final="false" visibility="public"
  16802. deprecated="not deprecated">
  16803. <doc>
  16804. <![CDATA[Get the default filename extension for this kind of compression.
  16805. @return the extension including the '.']]>
  16806. </doc>
  16807. </method>
  16808. <doc>
  16809. <![CDATA[This class encapsulates a streaming compression/decompression pair.]]>
  16810. </doc>
  16811. </interface>
  16812. <!-- end interface org.apache.hadoop.io.compress.CompressionCodec -->
  16813. <!-- start class org.apache.hadoop.io.compress.CompressionCodecFactory -->
  16814. <class name="CompressionCodecFactory" extends="java.lang.Object"
  16815. abstract="false"
  16816. static="false" final="false" visibility="public"
  16817. deprecated="not deprecated">
  16818. <constructor name="CompressionCodecFactory" type="org.apache.hadoop.conf.Configuration"
  16819. static="false" final="false" visibility="public"
  16820. deprecated="not deprecated">
  16821. <doc>
  16822. <![CDATA[Find the codecs specified in the config value io.compression.codecs
  16823. and register them. Defaults to gzip and zip.]]>
  16824. </doc>
  16825. </constructor>
  16826. <method name="toString" return="java.lang.String"
  16827. abstract="false" native="false" synchronized="false"
  16828. static="false" final="false" visibility="public"
  16829. deprecated="not deprecated">
  16830. <doc>
  16831. <![CDATA[Print the extension map out as a string.]]>
  16832. </doc>
  16833. </method>
  16834. <method name="getCodecClasses" return="java.util.List"
  16835. abstract="false" native="false" synchronized="false"
  16836. static="true" final="false" visibility="public"
  16837. deprecated="not deprecated">
  16838. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16839. <doc>
  16840. <![CDATA[Get the list of codecs listed in the configuration
  16841. @param conf the configuration to look in
  16842. @return a list of the Configuration classes or null if the attribute
  16843. was not set]]>
  16844. </doc>
  16845. </method>
  16846. <method name="setCodecClasses"
  16847. abstract="false" native="false" synchronized="false"
  16848. static="true" final="false" visibility="public"
  16849. deprecated="not deprecated">
  16850. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16851. <param name="classes" type="java.util.List"/>
  16852. <doc>
  16853. <![CDATA[Sets a list of codec classes in the configuration.
  16854. @param conf the configuration to modify
  16855. @param classes the list of classes to set]]>
  16856. </doc>
  16857. </method>
  16858. <method name="getCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  16859. abstract="false" native="false" synchronized="false"
  16860. static="false" final="false" visibility="public"
  16861. deprecated="not deprecated">
  16862. <param name="file" type="org.apache.hadoop.fs.Path"/>
  16863. <doc>
  16864. <![CDATA[Find the relevant compression codec for the given file based on its
  16865. filename suffix.
  16866. @param file the filename to check
  16867. @return the codec object]]>
  16868. </doc>
  16869. </method>
  16870. <method name="getCodecByClassName" return="org.apache.hadoop.io.compress.CompressionCodec"
  16871. abstract="false" native="false" synchronized="false"
  16872. static="false" final="false" visibility="public"
  16873. deprecated="not deprecated">
  16874. <param name="classname" type="java.lang.String"/>
  16875. <doc>
  16876. <![CDATA[Find the relevant compression codec for the codec's canonical class name.
  16877. @param classname the canonical class name of the codec
  16878. @return the codec object]]>
  16879. </doc>
  16880. </method>
  16881. <method name="getCodecByName" return="org.apache.hadoop.io.compress.CompressionCodec"
  16882. abstract="false" native="false" synchronized="false"
  16883. static="false" final="false" visibility="public"
  16884. deprecated="not deprecated">
  16885. <param name="codecName" type="java.lang.String"/>
  16886. <doc>
  16887. <![CDATA[Find the relevant compression codec for the codec's canonical class name
  16888. or by codec alias.
  16889. <p/>
  16890. Codec aliases are case insensitive.
  16891. <p/>
  16892. The code alias is the short class name (without the package name).
  16893. If the short class name ends with 'Codec', then there are two aliases for
  16894. the codec, the complete short class name and the short class name without
  16895. the 'Codec' ending. For example for the 'GzipCodec' codec class name the
  16896. alias are 'gzip' and 'gzipcodec'.
  16897. @param codecName the canonical class name of the codec
  16898. @return the codec object]]>
  16899. </doc>
  16900. </method>
  16901. <method name="getCodecClassByName" return="java.lang.Class"
  16902. abstract="false" native="false" synchronized="false"
  16903. static="false" final="false" visibility="public"
  16904. deprecated="not deprecated">
  16905. <param name="codecName" type="java.lang.String"/>
  16906. <doc>
  16907. <![CDATA[Find the relevant compression codec for the codec's canonical class name
  16908. or by codec alias and returns its implemetation class.
  16909. <p/>
  16910. Codec aliases are case insensitive.
  16911. <p/>
  16912. The code alias is the short class name (without the package name).
  16913. If the short class name ends with 'Codec', then there are two aliases for
  16914. the codec, the complete short class name and the short class name without
  16915. the 'Codec' ending. For example for the 'GzipCodec' codec class name the
  16916. alias are 'gzip' and 'gzipcodec'.
  16917. @param codecName the canonical class name of the codec
  16918. @return the codec class]]>
  16919. </doc>
  16920. </method>
  16921. <method name="removeSuffix" return="java.lang.String"
  16922. abstract="false" native="false" synchronized="false"
  16923. static="true" final="false" visibility="public"
  16924. deprecated="not deprecated">
  16925. <param name="filename" type="java.lang.String"/>
  16926. <param name="suffix" type="java.lang.String"/>
  16927. <doc>
  16928. <![CDATA[Removes a suffix from a filename, if it has it.
  16929. @param filename the filename to strip
  16930. @param suffix the suffix to remove
  16931. @return the shortened filename]]>
  16932. </doc>
  16933. </method>
  16934. <method name="main"
  16935. abstract="false" native="false" synchronized="false"
  16936. static="true" final="false" visibility="public"
  16937. deprecated="not deprecated">
  16938. <param name="args" type="java.lang.String[]"/>
  16939. <exception name="Exception" type="java.lang.Exception"/>
  16940. <doc>
  16941. <![CDATA[A little test program.
  16942. @param args]]>
  16943. </doc>
  16944. </method>
  16945. <field name="LOG" type="org.apache.commons.logging.Log"
  16946. transient="false" volatile="false"
  16947. static="true" final="true" visibility="public"
  16948. deprecated="not deprecated">
  16949. </field>
  16950. <doc>
  16951. <![CDATA[A factory that will find the correct codec for a given filename.]]>
  16952. </doc>
  16953. </class>
  16954. <!-- end class org.apache.hadoop.io.compress.CompressionCodecFactory -->
  16955. <!-- start class org.apache.hadoop.io.compress.CompressionInputStream -->
  16956. <class name="CompressionInputStream" extends="java.io.InputStream"
  16957. abstract="true"
  16958. static="false" final="false" visibility="public"
  16959. deprecated="not deprecated">
  16960. <implements name="org.apache.hadoop.fs.Seekable"/>
  16961. <constructor name="CompressionInputStream" type="java.io.InputStream"
  16962. static="false" final="false" visibility="protected"
  16963. deprecated="not deprecated">
  16964. <exception name="IOException" type="java.io.IOException"/>
  16965. <doc>
  16966. <![CDATA[Create a compression input stream that reads
  16967. the decompressed bytes from the given stream.
  16968. @param in The input stream to be compressed.
  16969. @throws IOException]]>
  16970. </doc>
  16971. </constructor>
  16972. <method name="close"
  16973. abstract="false" native="false" synchronized="false"
  16974. static="false" final="false" visibility="public"
  16975. deprecated="not deprecated">
  16976. <exception name="IOException" type="java.io.IOException"/>
  16977. </method>
  16978. <method name="read" return="int"
  16979. abstract="true" native="false" synchronized="false"
  16980. static="false" final="false" visibility="public"
  16981. deprecated="not deprecated">
  16982. <param name="b" type="byte[]"/>
  16983. <param name="off" type="int"/>
  16984. <param name="len" type="int"/>
  16985. <exception name="IOException" type="java.io.IOException"/>
  16986. <doc>
  16987. <![CDATA[Read bytes from the stream.
  16988. Made abstract to prevent leakage to underlying stream.]]>
  16989. </doc>
  16990. </method>
  16991. <method name="resetState"
  16992. abstract="true" native="false" synchronized="false"
  16993. static="false" final="false" visibility="public"
  16994. deprecated="not deprecated">
  16995. <exception name="IOException" type="java.io.IOException"/>
  16996. <doc>
  16997. <![CDATA[Reset the decompressor to its initial state and discard any buffered data,
  16998. as the underlying stream may have been repositioned.]]>
  16999. </doc>
  17000. </method>
  17001. <method name="getPos" return="long"
  17002. abstract="false" native="false" synchronized="false"
  17003. static="false" final="false" visibility="public"
  17004. deprecated="not deprecated">
  17005. <exception name="IOException" type="java.io.IOException"/>
  17006. <doc>
  17007. <![CDATA[This method returns the current position in the stream.
  17008. @return Current position in stream as a long]]>
  17009. </doc>
  17010. </method>
  17011. <method name="seek"
  17012. abstract="false" native="false" synchronized="false"
  17013. static="false" final="false" visibility="public"
  17014. deprecated="not deprecated">
  17015. <param name="pos" type="long"/>
  17016. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  17017. <doc>
  17018. <![CDATA[This method is current not supported.
  17019. @throws UnsupportedOperationException]]>
  17020. </doc>
  17021. </method>
  17022. <method name="seekToNewSource" return="boolean"
  17023. abstract="false" native="false" synchronized="false"
  17024. static="false" final="false" visibility="public"
  17025. deprecated="not deprecated">
  17026. <param name="targetPos" type="long"/>
  17027. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  17028. <doc>
  17029. <![CDATA[This method is current not supported.
  17030. @throws UnsupportedOperationException]]>
  17031. </doc>
  17032. </method>
  17033. <field name="in" type="java.io.InputStream"
  17034. transient="false" volatile="false"
  17035. static="false" final="true" visibility="protected"
  17036. deprecated="not deprecated">
  17037. <doc>
  17038. <![CDATA[The input stream to be compressed.]]>
  17039. </doc>
  17040. </field>
  17041. <field name="maxAvailableData" type="long"
  17042. transient="false" volatile="false"
  17043. static="false" final="false" visibility="protected"
  17044. deprecated="not deprecated">
  17045. </field>
  17046. <doc>
  17047. <![CDATA[A compression input stream.
  17048. <p>Implementations are assumed to be buffered. This permits clients to
  17049. reposition the underlying input stream then call {@link #resetState()},
  17050. without having to also synchronize client buffers.]]>
  17051. </doc>
  17052. </class>
  17053. <!-- end class org.apache.hadoop.io.compress.CompressionInputStream -->
  17054. <!-- start class org.apache.hadoop.io.compress.CompressionOutputStream -->
  17055. <class name="CompressionOutputStream" extends="java.io.OutputStream"
  17056. abstract="true"
  17057. static="false" final="false" visibility="public"
  17058. deprecated="not deprecated">
  17059. <constructor name="CompressionOutputStream" type="java.io.OutputStream"
  17060. static="false" final="false" visibility="protected"
  17061. deprecated="not deprecated">
  17062. <doc>
  17063. <![CDATA[Create a compression output stream that writes
  17064. the compressed bytes to the given stream.
  17065. @param out]]>
  17066. </doc>
  17067. </constructor>
  17068. <method name="close"
  17069. abstract="false" native="false" synchronized="false"
  17070. static="false" final="false" visibility="public"
  17071. deprecated="not deprecated">
  17072. <exception name="IOException" type="java.io.IOException"/>
  17073. </method>
  17074. <method name="flush"
  17075. abstract="false" native="false" synchronized="false"
  17076. static="false" final="false" visibility="public"
  17077. deprecated="not deprecated">
  17078. <exception name="IOException" type="java.io.IOException"/>
  17079. </method>
  17080. <method name="write"
  17081. abstract="true" native="false" synchronized="false"
  17082. static="false" final="false" visibility="public"
  17083. deprecated="not deprecated">
  17084. <param name="b" type="byte[]"/>
  17085. <param name="off" type="int"/>
  17086. <param name="len" type="int"/>
  17087. <exception name="IOException" type="java.io.IOException"/>
  17088. <doc>
  17089. <![CDATA[Write compressed bytes to the stream.
  17090. Made abstract to prevent leakage to underlying stream.]]>
  17091. </doc>
  17092. </method>
  17093. <method name="finish"
  17094. abstract="true" native="false" synchronized="false"
  17095. static="false" final="false" visibility="public"
  17096. deprecated="not deprecated">
  17097. <exception name="IOException" type="java.io.IOException"/>
  17098. <doc>
  17099. <![CDATA[Finishes writing compressed data to the output stream
  17100. without closing the underlying stream.]]>
  17101. </doc>
  17102. </method>
  17103. <method name="resetState"
  17104. abstract="true" native="false" synchronized="false"
  17105. static="false" final="false" visibility="public"
  17106. deprecated="not deprecated">
  17107. <exception name="IOException" type="java.io.IOException"/>
  17108. <doc>
  17109. <![CDATA[Reset the compression to the initial state.
  17110. Does not reset the underlying stream.]]>
  17111. </doc>
  17112. </method>
  17113. <field name="out" type="java.io.OutputStream"
  17114. transient="false" volatile="false"
  17115. static="false" final="true" visibility="protected"
  17116. deprecated="not deprecated">
  17117. <doc>
  17118. <![CDATA[The output stream to be compressed.]]>
  17119. </doc>
  17120. </field>
  17121. <doc>
  17122. <![CDATA[A compression output stream.]]>
  17123. </doc>
  17124. </class>
  17125. <!-- end class org.apache.hadoop.io.compress.CompressionOutputStream -->
  17126. <!-- start interface org.apache.hadoop.io.compress.Compressor -->
  17127. <interface name="Compressor" abstract="true"
  17128. static="false" final="false" visibility="public"
  17129. deprecated="not deprecated">
  17130. <method name="setInput"
  17131. abstract="false" native="false" synchronized="false"
  17132. static="false" final="false" visibility="public"
  17133. deprecated="not deprecated">
  17134. <param name="b" type="byte[]"/>
  17135. <param name="off" type="int"/>
  17136. <param name="len" type="int"/>
  17137. <doc>
  17138. <![CDATA[Sets input data for compression.
  17139. This should be called whenever #needsInput() returns
  17140. <code>true</code> indicating that more input data is required.
  17141. @param b Input data
  17142. @param off Start offset
  17143. @param len Length]]>
  17144. </doc>
  17145. </method>
  17146. <method name="needsInput" return="boolean"
  17147. abstract="false" native="false" synchronized="false"
  17148. static="false" final="false" visibility="public"
  17149. deprecated="not deprecated">
  17150. <doc>
  17151. <![CDATA[Returns true if the input data buffer is empty and
  17152. #setInput() should be called to provide more input.
  17153. @return <code>true</code> if the input data buffer is empty and
  17154. #setInput() should be called in order to provide more input.]]>
  17155. </doc>
  17156. </method>
  17157. <method name="setDictionary"
  17158. abstract="false" native="false" synchronized="false"
  17159. static="false" final="false" visibility="public"
  17160. deprecated="not deprecated">
  17161. <param name="b" type="byte[]"/>
  17162. <param name="off" type="int"/>
  17163. <param name="len" type="int"/>
  17164. <doc>
  17165. <![CDATA[Sets preset dictionary for compression. A preset dictionary
  17166. is used when the history buffer can be predetermined.
  17167. @param b Dictionary data bytes
  17168. @param off Start offset
  17169. @param len Length]]>
  17170. </doc>
  17171. </method>
  17172. <method name="getBytesRead" return="long"
  17173. abstract="false" native="false" synchronized="false"
  17174. static="false" final="false" visibility="public"
  17175. deprecated="not deprecated">
  17176. <doc>
  17177. <![CDATA[Return number of uncompressed bytes input so far.]]>
  17178. </doc>
  17179. </method>
  17180. <method name="getBytesWritten" return="long"
  17181. abstract="false" native="false" synchronized="false"
  17182. static="false" final="false" visibility="public"
  17183. deprecated="not deprecated">
  17184. <doc>
  17185. <![CDATA[Return number of compressed bytes output so far.]]>
  17186. </doc>
  17187. </method>
  17188. <method name="finish"
  17189. abstract="false" native="false" synchronized="false"
  17190. static="false" final="false" visibility="public"
  17191. deprecated="not deprecated">
  17192. <doc>
  17193. <![CDATA[When called, indicates that compression should end
  17194. with the current contents of the input buffer.]]>
  17195. </doc>
  17196. </method>
  17197. <method name="finished" return="boolean"
  17198. abstract="false" native="false" synchronized="false"
  17199. static="false" final="false" visibility="public"
  17200. deprecated="not deprecated">
  17201. <doc>
  17202. <![CDATA[Returns true if the end of the compressed
  17203. data output stream has been reached.
  17204. @return <code>true</code> if the end of the compressed
  17205. data output stream has been reached.]]>
  17206. </doc>
  17207. </method>
  17208. <method name="compress" return="int"
  17209. abstract="false" native="false" synchronized="false"
  17210. static="false" final="false" visibility="public"
  17211. deprecated="not deprecated">
  17212. <param name="b" type="byte[]"/>
  17213. <param name="off" type="int"/>
  17214. <param name="len" type="int"/>
  17215. <exception name="IOException" type="java.io.IOException"/>
  17216. <doc>
  17217. <![CDATA[Fills specified buffer with compressed data. Returns actual number
  17218. of bytes of compressed data. A return value of 0 indicates that
  17219. needsInput() should be called in order to determine if more input
  17220. data is required.
  17221. @param b Buffer for the compressed data
  17222. @param off Start offset of the data
  17223. @param len Size of the buffer
  17224. @return The actual number of bytes of compressed data.]]>
  17225. </doc>
  17226. </method>
  17227. <method name="reset"
  17228. abstract="false" native="false" synchronized="false"
  17229. static="false" final="false" visibility="public"
  17230. deprecated="not deprecated">
  17231. <doc>
  17232. <![CDATA[Resets compressor so that a new set of input data can be processed.]]>
  17233. </doc>
  17234. </method>
  17235. <method name="end"
  17236. abstract="false" native="false" synchronized="false"
  17237. static="false" final="false" visibility="public"
  17238. deprecated="not deprecated">
  17239. <doc>
  17240. <![CDATA[Closes the compressor and discards any unprocessed input.]]>
  17241. </doc>
  17242. </method>
  17243. <method name="reinit"
  17244. abstract="false" native="false" synchronized="false"
  17245. static="false" final="false" visibility="public"
  17246. deprecated="not deprecated">
  17247. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17248. <doc>
  17249. <![CDATA[Prepare the compressor to be used in a new stream with settings defined in
  17250. the given Configuration
  17251. @param conf Configuration from which new setting are fetched]]>
  17252. </doc>
  17253. </method>
  17254. <doc>
  17255. <![CDATA[Specification of a stream-based 'compressor' which can be
  17256. plugged into a {@link CompressionOutputStream} to compress data.
  17257. This is modelled after {@link java.util.zip.Deflater}]]>
  17258. </doc>
  17259. </interface>
  17260. <!-- end interface org.apache.hadoop.io.compress.Compressor -->
  17261. <!-- start class org.apache.hadoop.io.compress.CompressorStream -->
  17262. <class name="CompressorStream" extends="org.apache.hadoop.io.compress.CompressionOutputStream"
  17263. abstract="false"
  17264. static="false" final="false" visibility="public"
  17265. deprecated="not deprecated">
  17266. <constructor name="CompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor, int"
  17267. static="false" final="false" visibility="public"
  17268. deprecated="not deprecated">
  17269. </constructor>
  17270. <constructor name="CompressorStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor"
  17271. static="false" final="false" visibility="public"
  17272. deprecated="not deprecated">
  17273. </constructor>
  17274. <constructor name="CompressorStream" type="java.io.OutputStream"
  17275. static="false" final="false" visibility="protected"
  17276. deprecated="not deprecated">
  17277. <doc>
  17278. <![CDATA[Allow derived classes to directly set the underlying stream.
  17279. @param out Underlying output stream.]]>
  17280. </doc>
  17281. </constructor>
  17282. <method name="write"
  17283. abstract="false" native="false" synchronized="false"
  17284. static="false" final="false" visibility="public"
  17285. deprecated="not deprecated">
  17286. <param name="b" type="byte[]"/>
  17287. <param name="off" type="int"/>
  17288. <param name="len" type="int"/>
  17289. <exception name="IOException" type="java.io.IOException"/>
  17290. </method>
  17291. <method name="compress"
  17292. abstract="false" native="false" synchronized="false"
  17293. static="false" final="false" visibility="protected"
  17294. deprecated="not deprecated">
  17295. <exception name="IOException" type="java.io.IOException"/>
  17296. </method>
  17297. <method name="finish"
  17298. abstract="false" native="false" synchronized="false"
  17299. static="false" final="false" visibility="public"
  17300. deprecated="not deprecated">
  17301. <exception name="IOException" type="java.io.IOException"/>
  17302. </method>
  17303. <method name="resetState"
  17304. abstract="false" native="false" synchronized="false"
  17305. static="false" final="false" visibility="public"
  17306. deprecated="not deprecated">
  17307. <exception name="IOException" type="java.io.IOException"/>
  17308. </method>
  17309. <method name="close"
  17310. abstract="false" native="false" synchronized="false"
  17311. static="false" final="false" visibility="public"
  17312. deprecated="not deprecated">
  17313. <exception name="IOException" type="java.io.IOException"/>
  17314. </method>
  17315. <method name="write"
  17316. abstract="false" native="false" synchronized="false"
  17317. static="false" final="false" visibility="public"
  17318. deprecated="not deprecated">
  17319. <param name="b" type="int"/>
  17320. <exception name="IOException" type="java.io.IOException"/>
  17321. </method>
  17322. <field name="compressor" type="org.apache.hadoop.io.compress.Compressor"
  17323. transient="false" volatile="false"
  17324. static="false" final="false" visibility="protected"
  17325. deprecated="not deprecated">
  17326. </field>
  17327. <field name="buffer" type="byte[]"
  17328. transient="false" volatile="false"
  17329. static="false" final="false" visibility="protected"
  17330. deprecated="not deprecated">
  17331. </field>
  17332. <field name="closed" type="boolean"
  17333. transient="false" volatile="false"
  17334. static="false" final="false" visibility="protected"
  17335. deprecated="not deprecated">
  17336. </field>
  17337. </class>
  17338. <!-- end class org.apache.hadoop.io.compress.CompressorStream -->
  17339. <!-- start interface org.apache.hadoop.io.compress.Decompressor -->
  17340. <interface name="Decompressor" abstract="true"
  17341. static="false" final="false" visibility="public"
  17342. deprecated="not deprecated">
  17343. <method name="setInput"
  17344. abstract="false" native="false" synchronized="false"
  17345. static="false" final="false" visibility="public"
  17346. deprecated="not deprecated">
  17347. <param name="b" type="byte[]"/>
  17348. <param name="off" type="int"/>
  17349. <param name="len" type="int"/>
  17350. <doc>
  17351. <![CDATA[Sets input data for decompression.
  17352. This should be called if and only if {@link #needsInput()} returns
  17353. <code>true</code> indicating that more input data is required.
  17354. (Both native and non-native versions of various Decompressors require
  17355. that the data passed in via <code>b[]</code> remain unmodified until
  17356. the caller is explicitly notified--via {@link #needsInput()}--that the
  17357. buffer may be safely modified. With this requirement, an extra
  17358. buffer-copy can be avoided.)
  17359. @param b Input data
  17360. @param off Start offset
  17361. @param len Length]]>
  17362. </doc>
  17363. </method>
  17364. <method name="needsInput" return="boolean"
  17365. abstract="false" native="false" synchronized="false"
  17366. static="false" final="false" visibility="public"
  17367. deprecated="not deprecated">
  17368. <doc>
  17369. <![CDATA[Returns true if the input data buffer is empty and
  17370. {@link #setInput(byte[], int, int)} should be called to
  17371. provide more input.
  17372. @return <code>true</code> if the input data buffer is empty and
  17373. {@link #setInput(byte[], int, int)} should be called in
  17374. order to provide more input.]]>
  17375. </doc>
  17376. </method>
  17377. <method name="setDictionary"
  17378. abstract="false" native="false" synchronized="false"
  17379. static="false" final="false" visibility="public"
  17380. deprecated="not deprecated">
  17381. <param name="b" type="byte[]"/>
  17382. <param name="off" type="int"/>
  17383. <param name="len" type="int"/>
  17384. <doc>
  17385. <![CDATA[Sets preset dictionary for compression. A preset dictionary
  17386. is used when the history buffer can be predetermined.
  17387. @param b Dictionary data bytes
  17388. @param off Start offset
  17389. @param len Length]]>
  17390. </doc>
  17391. </method>
  17392. <method name="needsDictionary" return="boolean"
  17393. abstract="false" native="false" synchronized="false"
  17394. static="false" final="false" visibility="public"
  17395. deprecated="not deprecated">
  17396. <doc>
  17397. <![CDATA[Returns <code>true</code> if a preset dictionary is needed for decompression.
  17398. @return <code>true</code> if a preset dictionary is needed for decompression]]>
  17399. </doc>
  17400. </method>
  17401. <method name="finished" return="boolean"
  17402. abstract="false" native="false" synchronized="false"
  17403. static="false" final="false" visibility="public"
  17404. deprecated="not deprecated">
  17405. <doc>
  17406. <![CDATA[Returns true if the end of the decompressed
  17407. data output stream has been reached.
  17408. @return <code>true</code> if the end of the decompressed
  17409. data output stream has been reached.]]>
  17410. </doc>
  17411. </method>
  17412. <method name="decompress" return="int"
  17413. abstract="false" native="false" synchronized="false"
  17414. static="false" final="false" visibility="public"
  17415. deprecated="not deprecated">
  17416. <param name="b" type="byte[]"/>
  17417. <param name="off" type="int"/>
  17418. <param name="len" type="int"/>
  17419. <exception name="IOException" type="java.io.IOException"/>
  17420. <doc>
  17421. <![CDATA[Fills specified buffer with uncompressed data. Returns actual number
  17422. of bytes of uncompressed data. A return value of 0 indicates that
  17423. {@link #needsInput()} should be called in order to determine if more
  17424. input data is required.
  17425. @param b Buffer for the compressed data
  17426. @param off Start offset of the data
  17427. @param len Size of the buffer
  17428. @return The actual number of bytes of compressed data.
  17429. @throws IOException]]>
  17430. </doc>
  17431. </method>
  17432. <method name="getRemaining" return="int"
  17433. abstract="false" native="false" synchronized="false"
  17434. static="false" final="false" visibility="public"
  17435. deprecated="not deprecated">
  17436. <doc>
  17437. <![CDATA[Returns the number of bytes remaining in the compressed-data buffer;
  17438. typically called after the decompressor has finished decompressing
  17439. the current gzip stream (a.k.a. "member").]]>
  17440. </doc>
  17441. </method>
  17442. <method name="reset"
  17443. abstract="false" native="false" synchronized="false"
  17444. static="false" final="false" visibility="public"
  17445. deprecated="not deprecated">
  17446. <doc>
  17447. <![CDATA[Resets decompressor and input and output buffers so that a new set of
  17448. input data can be processed.]]>
  17449. </doc>
  17450. </method>
  17451. <method name="end"
  17452. abstract="false" native="false" synchronized="false"
  17453. static="false" final="false" visibility="public"
  17454. deprecated="not deprecated">
  17455. <doc>
  17456. <![CDATA[Closes the decompressor and discards any unprocessed input.]]>
  17457. </doc>
  17458. </method>
  17459. <doc>
  17460. <![CDATA[Specification of a stream-based 'de-compressor' which can be
  17461. plugged into a {@link CompressionInputStream} to compress data.
  17462. This is modelled after {@link java.util.zip.Inflater}]]>
  17463. </doc>
  17464. </interface>
  17465. <!-- end interface org.apache.hadoop.io.compress.Decompressor -->
  17466. <!-- start class org.apache.hadoop.io.compress.DecompressorStream -->
  17467. <class name="DecompressorStream" extends="org.apache.hadoop.io.compress.CompressionInputStream"
  17468. abstract="false"
  17469. static="false" final="false" visibility="public"
  17470. deprecated="not deprecated">
  17471. <constructor name="DecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor, int"
  17472. static="false" final="false" visibility="public"
  17473. deprecated="not deprecated">
  17474. <exception name="IOException" type="java.io.IOException"/>
  17475. </constructor>
  17476. <constructor name="DecompressorStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor"
  17477. static="false" final="false" visibility="public"
  17478. deprecated="not deprecated">
  17479. <exception name="IOException" type="java.io.IOException"/>
  17480. </constructor>
  17481. <constructor name="DecompressorStream" type="java.io.InputStream"
  17482. static="false" final="false" visibility="protected"
  17483. deprecated="not deprecated">
  17484. <exception name="IOException" type="java.io.IOException"/>
  17485. <doc>
  17486. <![CDATA[Allow derived classes to directly set the underlying stream.
  17487. @param in Underlying input stream.
  17488. @throws IOException]]>
  17489. </doc>
  17490. </constructor>
  17491. <method name="read" return="int"
  17492. abstract="false" native="false" synchronized="false"
  17493. static="false" final="false" visibility="public"
  17494. deprecated="not deprecated">
  17495. <exception name="IOException" type="java.io.IOException"/>
  17496. </method>
  17497. <method name="read" return="int"
  17498. abstract="false" native="false" synchronized="false"
  17499. static="false" final="false" visibility="public"
  17500. deprecated="not deprecated">
  17501. <param name="b" type="byte[]"/>
  17502. <param name="off" type="int"/>
  17503. <param name="len" type="int"/>
  17504. <exception name="IOException" type="java.io.IOException"/>
  17505. </method>
  17506. <method name="decompress" return="int"
  17507. abstract="false" native="false" synchronized="false"
  17508. static="false" final="false" visibility="protected"
  17509. deprecated="not deprecated">
  17510. <param name="b" type="byte[]"/>
  17511. <param name="off" type="int"/>
  17512. <param name="len" type="int"/>
  17513. <exception name="IOException" type="java.io.IOException"/>
  17514. </method>
  17515. <method name="getCompressedData" return="int"
  17516. abstract="false" native="false" synchronized="false"
  17517. static="false" final="false" visibility="protected"
  17518. deprecated="not deprecated">
  17519. <exception name="IOException" type="java.io.IOException"/>
  17520. </method>
  17521. <method name="checkStream"
  17522. abstract="false" native="false" synchronized="false"
  17523. static="false" final="false" visibility="protected"
  17524. deprecated="not deprecated">
  17525. <exception name="IOException" type="java.io.IOException"/>
  17526. </method>
  17527. <method name="resetState"
  17528. abstract="false" native="false" synchronized="false"
  17529. static="false" final="false" visibility="public"
  17530. deprecated="not deprecated">
  17531. <exception name="IOException" type="java.io.IOException"/>
  17532. </method>
  17533. <method name="skip" return="long"
  17534. abstract="false" native="false" synchronized="false"
  17535. static="false" final="false" visibility="public"
  17536. deprecated="not deprecated">
  17537. <param name="n" type="long"/>
  17538. <exception name="IOException" type="java.io.IOException"/>
  17539. </method>
  17540. <method name="available" return="int"
  17541. abstract="false" native="false" synchronized="false"
  17542. static="false" final="false" visibility="public"
  17543. deprecated="not deprecated">
  17544. <exception name="IOException" type="java.io.IOException"/>
  17545. </method>
  17546. <method name="close"
  17547. abstract="false" native="false" synchronized="false"
  17548. static="false" final="false" visibility="public"
  17549. deprecated="not deprecated">
  17550. <exception name="IOException" type="java.io.IOException"/>
  17551. </method>
  17552. <method name="markSupported" return="boolean"
  17553. abstract="false" native="false" synchronized="false"
  17554. static="false" final="false" visibility="public"
  17555. deprecated="not deprecated">
  17556. </method>
  17557. <method name="mark"
  17558. abstract="false" native="false" synchronized="true"
  17559. static="false" final="false" visibility="public"
  17560. deprecated="not deprecated">
  17561. <param name="readlimit" type="int"/>
  17562. </method>
  17563. <method name="reset"
  17564. abstract="false" native="false" synchronized="true"
  17565. static="false" final="false" visibility="public"
  17566. deprecated="not deprecated">
  17567. <exception name="IOException" type="java.io.IOException"/>
  17568. </method>
  17569. <field name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"
  17570. transient="false" volatile="false"
  17571. static="false" final="false" visibility="protected"
  17572. deprecated="not deprecated">
  17573. </field>
  17574. <field name="buffer" type="byte[]"
  17575. transient="false" volatile="false"
  17576. static="false" final="false" visibility="protected"
  17577. deprecated="not deprecated">
  17578. </field>
  17579. <field name="eof" type="boolean"
  17580. transient="false" volatile="false"
  17581. static="false" final="false" visibility="protected"
  17582. deprecated="not deprecated">
  17583. </field>
  17584. <field name="closed" type="boolean"
  17585. transient="false" volatile="false"
  17586. static="false" final="false" visibility="protected"
  17587. deprecated="not deprecated">
  17588. </field>
  17589. </class>
  17590. <!-- end class org.apache.hadoop.io.compress.DecompressorStream -->
  17591. <!-- start class org.apache.hadoop.io.compress.DefaultCodec -->
  17592. <class name="DefaultCodec" extends="java.lang.Object"
  17593. abstract="false"
  17594. static="false" final="false" visibility="public"
  17595. deprecated="not deprecated">
  17596. <implements name="org.apache.hadoop.conf.Configurable"/>
  17597. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  17598. <constructor name="DefaultCodec"
  17599. static="false" final="false" visibility="public"
  17600. deprecated="not deprecated">
  17601. </constructor>
  17602. <method name="setConf"
  17603. abstract="false" native="false" synchronized="false"
  17604. static="false" final="false" visibility="public"
  17605. deprecated="not deprecated">
  17606. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17607. </method>
  17608. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  17609. abstract="false" native="false" synchronized="false"
  17610. static="false" final="false" visibility="public"
  17611. deprecated="not deprecated">
  17612. </method>
  17613. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  17614. abstract="false" native="false" synchronized="false"
  17615. static="false" final="false" visibility="public"
  17616. deprecated="not deprecated">
  17617. <param name="out" type="java.io.OutputStream"/>
  17618. <exception name="IOException" type="java.io.IOException"/>
  17619. </method>
  17620. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  17621. abstract="false" native="false" synchronized="false"
  17622. static="false" final="false" visibility="public"
  17623. deprecated="not deprecated">
  17624. <param name="out" type="java.io.OutputStream"/>
  17625. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  17626. <exception name="IOException" type="java.io.IOException"/>
  17627. </method>
  17628. <method name="getCompressorType" return="java.lang.Class"
  17629. abstract="false" native="false" synchronized="false"
  17630. static="false" final="false" visibility="public"
  17631. deprecated="not deprecated">
  17632. </method>
  17633. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  17634. abstract="false" native="false" synchronized="false"
  17635. static="false" final="false" visibility="public"
  17636. deprecated="not deprecated">
  17637. </method>
  17638. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  17639. abstract="false" native="false" synchronized="false"
  17640. static="false" final="false" visibility="public"
  17641. deprecated="not deprecated">
  17642. <param name="in" type="java.io.InputStream"/>
  17643. <exception name="IOException" type="java.io.IOException"/>
  17644. </method>
  17645. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  17646. abstract="false" native="false" synchronized="false"
  17647. static="false" final="false" visibility="public"
  17648. deprecated="not deprecated">
  17649. <param name="in" type="java.io.InputStream"/>
  17650. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  17651. <exception name="IOException" type="java.io.IOException"/>
  17652. </method>
  17653. <method name="getDecompressorType" return="java.lang.Class"
  17654. abstract="false" native="false" synchronized="false"
  17655. static="false" final="false" visibility="public"
  17656. deprecated="not deprecated">
  17657. </method>
  17658. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  17659. abstract="false" native="false" synchronized="false"
  17660. static="false" final="false" visibility="public"
  17661. deprecated="not deprecated">
  17662. </method>
  17663. <method name="getDefaultExtension" return="java.lang.String"
  17664. abstract="false" native="false" synchronized="false"
  17665. static="false" final="false" visibility="public"
  17666. deprecated="not deprecated">
  17667. </method>
  17668. </class>
  17669. <!-- end class org.apache.hadoop.io.compress.DefaultCodec -->
  17670. <!-- start interface org.apache.hadoop.io.compress.DoNotPool -->
  17671. <interface name="DoNotPool" abstract="true"
  17672. static="false" final="false" visibility="public"
  17673. deprecated="not deprecated">
  17674. <implements name="java.lang.annotation.Annotation"/>
  17675. <doc>
  17676. <![CDATA[This is a marker annotation that marks a compressor or decompressor
  17677. type as not to be pooled.]]>
  17678. </doc>
  17679. </interface>
  17680. <!-- end interface org.apache.hadoop.io.compress.DoNotPool -->
  17681. <!-- start class org.apache.hadoop.io.compress.GzipCodec -->
  17682. <class name="GzipCodec" extends="org.apache.hadoop.io.compress.DefaultCodec"
  17683. abstract="false"
  17684. static="false" final="false" visibility="public"
  17685. deprecated="not deprecated">
  17686. <constructor name="GzipCodec"
  17687. static="false" final="false" visibility="public"
  17688. deprecated="not deprecated">
  17689. </constructor>
  17690. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  17691. abstract="false" native="false" synchronized="false"
  17692. static="false" final="false" visibility="public"
  17693. deprecated="not deprecated">
  17694. <param name="out" type="java.io.OutputStream"/>
  17695. <exception name="IOException" type="java.io.IOException"/>
  17696. </method>
  17697. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  17698. abstract="false" native="false" synchronized="false"
  17699. static="false" final="false" visibility="public"
  17700. deprecated="not deprecated">
  17701. <param name="out" type="java.io.OutputStream"/>
  17702. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  17703. <exception name="IOException" type="java.io.IOException"/>
  17704. </method>
  17705. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  17706. abstract="false" native="false" synchronized="false"
  17707. static="false" final="false" visibility="public"
  17708. deprecated="not deprecated">
  17709. </method>
  17710. <method name="getCompressorType" return="java.lang.Class"
  17711. abstract="false" native="false" synchronized="false"
  17712. static="false" final="false" visibility="public"
  17713. deprecated="not deprecated">
  17714. </method>
  17715. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  17716. abstract="false" native="false" synchronized="false"
  17717. static="false" final="false" visibility="public"
  17718. deprecated="not deprecated">
  17719. <param name="in" type="java.io.InputStream"/>
  17720. <exception name="IOException" type="java.io.IOException"/>
  17721. </method>
  17722. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  17723. abstract="false" native="false" synchronized="false"
  17724. static="false" final="false" visibility="public"
  17725. deprecated="not deprecated">
  17726. <param name="in" type="java.io.InputStream"/>
  17727. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  17728. <exception name="IOException" type="java.io.IOException"/>
  17729. </method>
  17730. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  17731. abstract="false" native="false" synchronized="false"
  17732. static="false" final="false" visibility="public"
  17733. deprecated="not deprecated">
  17734. </method>
  17735. <method name="getDecompressorType" return="java.lang.Class"
  17736. abstract="false" native="false" synchronized="false"
  17737. static="false" final="false" visibility="public"
  17738. deprecated="not deprecated">
  17739. </method>
  17740. <method name="getDefaultExtension" return="java.lang.String"
  17741. abstract="false" native="false" synchronized="false"
  17742. static="false" final="false" visibility="public"
  17743. deprecated="not deprecated">
  17744. </method>
  17745. <doc>
  17746. <![CDATA[This class creates gzip compressors/decompressors.]]>
  17747. </doc>
  17748. </class>
  17749. <!-- end class org.apache.hadoop.io.compress.GzipCodec -->
  17750. <!-- start class org.apache.hadoop.io.compress.GzipCodec.GzipOutputStream -->
  17751. <class name="GzipCodec.GzipOutputStream" extends="org.apache.hadoop.io.compress.CompressorStream"
  17752. abstract="false"
  17753. static="true" final="false" visibility="protected"
  17754. deprecated="not deprecated">
  17755. <constructor name="GzipCodec.GzipOutputStream" type="java.io.OutputStream"
  17756. static="false" final="false" visibility="public"
  17757. deprecated="not deprecated">
  17758. <exception name="IOException" type="java.io.IOException"/>
  17759. </constructor>
  17760. <constructor name="GzipCodec.GzipOutputStream" type="org.apache.hadoop.io.compress.CompressorStream"
  17761. static="false" final="false" visibility="protected"
  17762. deprecated="not deprecated">
  17763. <doc>
  17764. <![CDATA[Allow children types to put a different type in here.
  17765. @param out the Deflater stream to use]]>
  17766. </doc>
  17767. </constructor>
  17768. <method name="close"
  17769. abstract="false" native="false" synchronized="false"
  17770. static="false" final="false" visibility="public"
  17771. deprecated="not deprecated">
  17772. <exception name="IOException" type="java.io.IOException"/>
  17773. </method>
  17774. <method name="flush"
  17775. abstract="false" native="false" synchronized="false"
  17776. static="false" final="false" visibility="public"
  17777. deprecated="not deprecated">
  17778. <exception name="IOException" type="java.io.IOException"/>
  17779. </method>
  17780. <method name="write"
  17781. abstract="false" native="false" synchronized="false"
  17782. static="false" final="false" visibility="public"
  17783. deprecated="not deprecated">
  17784. <param name="b" type="int"/>
  17785. <exception name="IOException" type="java.io.IOException"/>
  17786. </method>
  17787. <method name="write"
  17788. abstract="false" native="false" synchronized="false"
  17789. static="false" final="false" visibility="public"
  17790. deprecated="not deprecated">
  17791. <param name="data" type="byte[]"/>
  17792. <param name="offset" type="int"/>
  17793. <param name="length" type="int"/>
  17794. <exception name="IOException" type="java.io.IOException"/>
  17795. </method>
  17796. <method name="finish"
  17797. abstract="false" native="false" synchronized="false"
  17798. static="false" final="false" visibility="public"
  17799. deprecated="not deprecated">
  17800. <exception name="IOException" type="java.io.IOException"/>
  17801. </method>
  17802. <method name="resetState"
  17803. abstract="false" native="false" synchronized="false"
  17804. static="false" final="false" visibility="public"
  17805. deprecated="not deprecated">
  17806. <exception name="IOException" type="java.io.IOException"/>
  17807. </method>
  17808. <doc>
  17809. <![CDATA[A bridge that wraps around a DeflaterOutputStream to make it
  17810. a CompressionOutputStream.]]>
  17811. </doc>
  17812. </class>
  17813. <!-- end class org.apache.hadoop.io.compress.GzipCodec.GzipOutputStream -->
  17814. <!-- start class org.apache.hadoop.io.compress.SnappyCodec -->
  17815. <class name="SnappyCodec" extends="java.lang.Object"
  17816. abstract="false"
  17817. static="false" final="false" visibility="public"
  17818. deprecated="not deprecated">
  17819. <implements name="org.apache.hadoop.conf.Configurable"/>
  17820. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  17821. <constructor name="SnappyCodec"
  17822. static="false" final="false" visibility="public"
  17823. deprecated="not deprecated">
  17824. </constructor>
  17825. <method name="setConf"
  17826. abstract="false" native="false" synchronized="false"
  17827. static="false" final="false" visibility="public"
  17828. deprecated="not deprecated">
  17829. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17830. <doc>
  17831. <![CDATA[Set the configuration to be used by this object.
  17832. @param conf the configuration object.]]>
  17833. </doc>
  17834. </method>
  17835. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  17836. abstract="false" native="false" synchronized="false"
  17837. static="false" final="false" visibility="public"
  17838. deprecated="not deprecated">
  17839. <doc>
  17840. <![CDATA[Return the configuration used by this object.
  17841. @return the configuration object used by this objec.]]>
  17842. </doc>
  17843. </method>
  17844. <method name="isNativeSnappyLoaded" return="boolean"
  17845. abstract="false" native="false" synchronized="false"
  17846. static="true" final="false" visibility="public"
  17847. deprecated="not deprecated">
  17848. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17849. <doc>
  17850. <![CDATA[Are the native snappy libraries loaded & initialized?
  17851. @param conf configuration
  17852. @return true if loaded & initialized, otherwise false]]>
  17853. </doc>
  17854. </method>
  17855. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  17856. abstract="false" native="false" synchronized="false"
  17857. static="false" final="false" visibility="public"
  17858. deprecated="not deprecated">
  17859. <param name="out" type="java.io.OutputStream"/>
  17860. <exception name="IOException" type="java.io.IOException"/>
  17861. <doc>
  17862. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  17863. {@link OutputStream}.
  17864. @param out the location for the final output stream
  17865. @return a stream the user can write uncompressed data to have it compressed
  17866. @throws IOException]]>
  17867. </doc>
  17868. </method>
  17869. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  17870. abstract="false" native="false" synchronized="false"
  17871. static="false" final="false" visibility="public"
  17872. deprecated="not deprecated">
  17873. <param name="out" type="java.io.OutputStream"/>
  17874. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  17875. <exception name="IOException" type="java.io.IOException"/>
  17876. <doc>
  17877. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  17878. {@link OutputStream} with the given {@link Compressor}.
  17879. @param out the location for the final output stream
  17880. @param compressor compressor to use
  17881. @return a stream the user can write uncompressed data to have it compressed
  17882. @throws IOException]]>
  17883. </doc>
  17884. </method>
  17885. <method name="getCompressorType" return="java.lang.Class"
  17886. abstract="false" native="false" synchronized="false"
  17887. static="false" final="false" visibility="public"
  17888. deprecated="not deprecated">
  17889. <doc>
  17890. <![CDATA[Get the type of {@link Compressor} needed by this {@link CompressionCodec}.
  17891. @return the type of compressor needed by this codec.]]>
  17892. </doc>
  17893. </method>
  17894. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  17895. abstract="false" native="false" synchronized="false"
  17896. static="false" final="false" visibility="public"
  17897. deprecated="not deprecated">
  17898. <doc>
  17899. <![CDATA[Create a new {@link Compressor} for use by this {@link CompressionCodec}.
  17900. @return a new compressor for use by this codec]]>
  17901. </doc>
  17902. </method>
  17903. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  17904. abstract="false" native="false" synchronized="false"
  17905. static="false" final="false" visibility="public"
  17906. deprecated="not deprecated">
  17907. <param name="in" type="java.io.InputStream"/>
  17908. <exception name="IOException" type="java.io.IOException"/>
  17909. <doc>
  17910. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  17911. input stream.
  17912. @param in the stream to read compressed bytes from
  17913. @return a stream to read uncompressed bytes from
  17914. @throws IOException]]>
  17915. </doc>
  17916. </method>
  17917. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  17918. abstract="false" native="false" synchronized="false"
  17919. static="false" final="false" visibility="public"
  17920. deprecated="not deprecated">
  17921. <param name="in" type="java.io.InputStream"/>
  17922. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  17923. <exception name="IOException" type="java.io.IOException"/>
  17924. <doc>
  17925. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  17926. {@link InputStream} with the given {@link Decompressor}.
  17927. @param in the stream to read compressed bytes from
  17928. @param decompressor decompressor to use
  17929. @return a stream to read uncompressed bytes from
  17930. @throws IOException]]>
  17931. </doc>
  17932. </method>
  17933. <method name="getDecompressorType" return="java.lang.Class"
  17934. abstract="false" native="false" synchronized="false"
  17935. static="false" final="false" visibility="public"
  17936. deprecated="not deprecated">
  17937. <doc>
  17938. <![CDATA[Get the type of {@link Decompressor} needed by this {@link CompressionCodec}.
  17939. @return the type of decompressor needed by this codec.]]>
  17940. </doc>
  17941. </method>
  17942. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  17943. abstract="false" native="false" synchronized="false"
  17944. static="false" final="false" visibility="public"
  17945. deprecated="not deprecated">
  17946. <doc>
  17947. <![CDATA[Create a new {@link Decompressor} for use by this {@link CompressionCodec}.
  17948. @return a new decompressor for use by this codec]]>
  17949. </doc>
  17950. </method>
  17951. <method name="getDefaultExtension" return="java.lang.String"
  17952. abstract="false" native="false" synchronized="false"
  17953. static="false" final="false" visibility="public"
  17954. deprecated="not deprecated">
  17955. <doc>
  17956. <![CDATA[Get the default filename extension for this kind of compression.
  17957. @return <code>.snappy</code>.]]>
  17958. </doc>
  17959. </method>
  17960. <doc>
  17961. <![CDATA[This class creates snappy compressors/decompressors.]]>
  17962. </doc>
  17963. </class>
  17964. <!-- end class org.apache.hadoop.io.compress.SnappyCodec -->
  17965. <!-- start class org.apache.hadoop.io.compress.SplitCompressionInputStream -->
  17966. <class name="SplitCompressionInputStream" extends="org.apache.hadoop.io.compress.CompressionInputStream"
  17967. abstract="true"
  17968. static="false" final="false" visibility="public"
  17969. deprecated="not deprecated">
  17970. <constructor name="SplitCompressionInputStream" type="java.io.InputStream, long, long"
  17971. static="false" final="false" visibility="public"
  17972. deprecated="not deprecated">
  17973. <exception name="IOException" type="java.io.IOException"/>
  17974. </constructor>
  17975. <method name="setStart"
  17976. abstract="false" native="false" synchronized="false"
  17977. static="false" final="false" visibility="protected"
  17978. deprecated="not deprecated">
  17979. <param name="start" type="long"/>
  17980. </method>
  17981. <method name="setEnd"
  17982. abstract="false" native="false" synchronized="false"
  17983. static="false" final="false" visibility="protected"
  17984. deprecated="not deprecated">
  17985. <param name="end" type="long"/>
  17986. </method>
  17987. <method name="getAdjustedStart" return="long"
  17988. abstract="false" native="false" synchronized="false"
  17989. static="false" final="false" visibility="public"
  17990. deprecated="not deprecated">
  17991. <doc>
  17992. <![CDATA[After calling createInputStream, the values of start or end
  17993. might change. So this method can be used to get the new value of start.
  17994. @return The changed value of start]]>
  17995. </doc>
  17996. </method>
  17997. <method name="getAdjustedEnd" return="long"
  17998. abstract="false" native="false" synchronized="false"
  17999. static="false" final="false" visibility="public"
  18000. deprecated="not deprecated">
  18001. <doc>
  18002. <![CDATA[After calling createInputStream, the values of start or end
  18003. might change. So this method can be used to get the new value of end.
  18004. @return The changed value of end]]>
  18005. </doc>
  18006. </method>
  18007. <doc>
  18008. <![CDATA[An InputStream covering a range of compressed data. The start and end
  18009. offsets requested by a client may be modified by the codec to fit block
  18010. boundaries or other algorithm-dependent requirements.]]>
  18011. </doc>
  18012. </class>
  18013. <!-- end class org.apache.hadoop.io.compress.SplitCompressionInputStream -->
  18014. <!-- start interface org.apache.hadoop.io.compress.SplittableCompressionCodec -->
  18015. <interface name="SplittableCompressionCodec" abstract="true"
  18016. static="false" final="false" visibility="public"
  18017. deprecated="not deprecated">
  18018. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  18019. <method name="createInputStream" return="org.apache.hadoop.io.compress.SplitCompressionInputStream"
  18020. abstract="false" native="false" synchronized="false"
  18021. static="false" final="false" visibility="public"
  18022. deprecated="not deprecated">
  18023. <param name="seekableIn" type="java.io.InputStream"/>
  18024. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  18025. <param name="start" type="long"/>
  18026. <param name="end" type="long"/>
  18027. <param name="readMode" type="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE"/>
  18028. <exception name="IOException" type="java.io.IOException"/>
  18029. <doc>
  18030. <![CDATA[Create a stream as dictated by the readMode. This method is used when
  18031. the codecs wants the ability to work with the underlying stream positions.
  18032. @param seekableIn The seekable input stream (seeks in compressed data)
  18033. @param start The start offset into the compressed stream. May be changed
  18034. by the underlying codec.
  18035. @param end The end offset into the compressed stream. May be changed by
  18036. the underlying codec.
  18037. @param readMode Controls whether stream position is reported continuously
  18038. from the compressed stream only only at block boundaries.
  18039. @return a stream to read uncompressed bytes from]]>
  18040. </doc>
  18041. </method>
  18042. <doc>
  18043. <![CDATA[This interface is meant to be implemented by those compression codecs
  18044. which are capable to compress / decompress a stream starting at any
  18045. arbitrary position.
  18046. Especially the process of decompressing a stream starting at some arbitrary
  18047. position is challenging. Most of the codecs are only able to successfully
  18048. decompress a stream, if they start from the very beginning till the end.
  18049. One of the reasons is the stored state at the beginning of the stream which
  18050. is crucial for decompression.
  18051. Yet there are few codecs which do not save the whole state at the beginning
  18052. of the stream and hence can be used to de-compress stream starting at any
  18053. arbitrary points. This interface is meant to be used by such codecs. Such
  18054. codecs are highly valuable, especially in the context of Hadoop, because
  18055. an input compressed file can be split and hence can be worked on by multiple
  18056. machines in parallel.]]>
  18057. </doc>
  18058. </interface>
  18059. <!-- end interface org.apache.hadoop.io.compress.SplittableCompressionCodec -->
  18060. <!-- start class org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE -->
  18061. <class name="SplittableCompressionCodec.READ_MODE" extends="java.lang.Enum"
  18062. abstract="false"
  18063. static="true" final="true" visibility="public"
  18064. deprecated="not deprecated">
  18065. <method name="values" return="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE[]"
  18066. abstract="false" native="false" synchronized="false"
  18067. static="true" final="false" visibility="public"
  18068. deprecated="not deprecated">
  18069. </method>
  18070. <method name="valueOf" return="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE"
  18071. abstract="false" native="false" synchronized="false"
  18072. static="true" final="false" visibility="public"
  18073. deprecated="not deprecated">
  18074. <param name="name" type="java.lang.String"/>
  18075. </method>
  18076. <field name="CONTINUOUS" type="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE"
  18077. transient="false" volatile="false"
  18078. static="true" final="true" visibility="public"
  18079. deprecated="not deprecated">
  18080. </field>
  18081. <field name="BYBLOCK" type="org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE"
  18082. transient="false" volatile="false"
  18083. static="true" final="true" visibility="public"
  18084. deprecated="not deprecated">
  18085. </field>
  18086. <doc>
  18087. <![CDATA[During decompression, data can be read off from the decompressor in two
  18088. modes, namely continuous and blocked. Few codecs (e.g. BZip2) are capable
  18089. of compressing data in blocks and then decompressing the blocks. In
  18090. Blocked reading mode codecs inform 'end of block' events to its caller.
  18091. While in continuous mode, the caller of codecs is unaware about the blocks
  18092. and uncompressed data is spilled out like a continuous stream.]]>
  18093. </doc>
  18094. </class>
  18095. <!-- end class org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE -->
  18096. </package>
  18097. <package name="org.apache.hadoop.io.compress.bzip2">
  18098. <!-- start interface org.apache.hadoop.io.compress.bzip2.BZip2Constants -->
  18099. <interface name="BZip2Constants" abstract="true"
  18100. static="false" final="false" visibility="public"
  18101. deprecated="not deprecated">
  18102. <field name="baseBlockSize" type="int"
  18103. transient="false" volatile="false"
  18104. static="true" final="true" visibility="public"
  18105. deprecated="not deprecated">
  18106. </field>
  18107. <field name="MAX_ALPHA_SIZE" type="int"
  18108. transient="false" volatile="false"
  18109. static="true" final="true" visibility="public"
  18110. deprecated="not deprecated">
  18111. </field>
  18112. <field name="MAX_CODE_LEN" type="int"
  18113. transient="false" volatile="false"
  18114. static="true" final="true" visibility="public"
  18115. deprecated="not deprecated">
  18116. </field>
  18117. <field name="RUNA" type="int"
  18118. transient="false" volatile="false"
  18119. static="true" final="true" visibility="public"
  18120. deprecated="not deprecated">
  18121. </field>
  18122. <field name="RUNB" type="int"
  18123. transient="false" volatile="false"
  18124. static="true" final="true" visibility="public"
  18125. deprecated="not deprecated">
  18126. </field>
  18127. <field name="N_GROUPS" type="int"
  18128. transient="false" volatile="false"
  18129. static="true" final="true" visibility="public"
  18130. deprecated="not deprecated">
  18131. </field>
  18132. <field name="G_SIZE" type="int"
  18133. transient="false" volatile="false"
  18134. static="true" final="true" visibility="public"
  18135. deprecated="not deprecated">
  18136. </field>
  18137. <field name="N_ITERS" type="int"
  18138. transient="false" volatile="false"
  18139. static="true" final="true" visibility="public"
  18140. deprecated="not deprecated">
  18141. </field>
  18142. <field name="MAX_SELECTORS" type="int"
  18143. transient="false" volatile="false"
  18144. static="true" final="true" visibility="public"
  18145. deprecated="not deprecated">
  18146. </field>
  18147. <field name="NUM_OVERSHOOT_BYTES" type="int"
  18148. transient="false" volatile="false"
  18149. static="true" final="true" visibility="public"
  18150. deprecated="not deprecated">
  18151. </field>
  18152. <field name="END_OF_BLOCK" type="int"
  18153. transient="false" volatile="false"
  18154. static="true" final="true" visibility="public"
  18155. deprecated="not deprecated">
  18156. <doc>
  18157. <![CDATA[End of a BZip2 block]]>
  18158. </doc>
  18159. </field>
  18160. <field name="END_OF_STREAM" type="int"
  18161. transient="false" volatile="false"
  18162. static="true" final="true" visibility="public"
  18163. deprecated="not deprecated">
  18164. <doc>
  18165. <![CDATA[End of BZip2 stream.]]>
  18166. </doc>
  18167. </field>
  18168. <field name="rNums" type="int[]"
  18169. transient="false" volatile="false"
  18170. static="true" final="true" visibility="public"
  18171. deprecated="not deprecated">
  18172. <doc>
  18173. <![CDATA[This array really shouldn't be here. Again, for historical purposes it
  18174. is.
  18175. <p>
  18176. FIXME: This array should be in a private or package private location,
  18177. since it could be modified by malicious code.
  18178. </p>]]>
  18179. </doc>
  18180. </field>
  18181. <doc>
  18182. <![CDATA[Base class for both the compress and decompress classes. Holds common arrays,
  18183. and static data.
  18184. <p>
  18185. This interface is public for historical purposes. You should have no need to
  18186. use it.
  18187. </p>]]>
  18188. </doc>
  18189. </interface>
  18190. <!-- end interface org.apache.hadoop.io.compress.bzip2.BZip2Constants -->
  18191. <!-- start class org.apache.hadoop.io.compress.bzip2.BZip2DummyCompressor -->
  18192. <class name="BZip2DummyCompressor" extends="java.lang.Object"
  18193. abstract="false"
  18194. static="false" final="false" visibility="public"
  18195. deprecated="not deprecated">
  18196. <implements name="org.apache.hadoop.io.compress.Compressor"/>
  18197. <constructor name="BZip2DummyCompressor"
  18198. static="false" final="false" visibility="public"
  18199. deprecated="not deprecated">
  18200. </constructor>
  18201. <method name="compress" return="int"
  18202. abstract="false" native="false" synchronized="false"
  18203. static="false" final="false" visibility="public"
  18204. deprecated="not deprecated">
  18205. <param name="b" type="byte[]"/>
  18206. <param name="off" type="int"/>
  18207. <param name="len" type="int"/>
  18208. <exception name="IOException" type="java.io.IOException"/>
  18209. </method>
  18210. <method name="end"
  18211. abstract="false" native="false" synchronized="false"
  18212. static="false" final="false" visibility="public"
  18213. deprecated="not deprecated">
  18214. </method>
  18215. <method name="finish"
  18216. abstract="false" native="false" synchronized="false"
  18217. static="false" final="false" visibility="public"
  18218. deprecated="not deprecated">
  18219. </method>
  18220. <method name="finished" return="boolean"
  18221. abstract="false" native="false" synchronized="false"
  18222. static="false" final="false" visibility="public"
  18223. deprecated="not deprecated">
  18224. </method>
  18225. <method name="getBytesRead" return="long"
  18226. abstract="false" native="false" synchronized="false"
  18227. static="false" final="false" visibility="public"
  18228. deprecated="not deprecated">
  18229. </method>
  18230. <method name="getBytesWritten" return="long"
  18231. abstract="false" native="false" synchronized="false"
  18232. static="false" final="false" visibility="public"
  18233. deprecated="not deprecated">
  18234. </method>
  18235. <method name="needsInput" return="boolean"
  18236. abstract="false" native="false" synchronized="false"
  18237. static="false" final="false" visibility="public"
  18238. deprecated="not deprecated">
  18239. </method>
  18240. <method name="reset"
  18241. abstract="false" native="false" synchronized="false"
  18242. static="false" final="false" visibility="public"
  18243. deprecated="not deprecated">
  18244. </method>
  18245. <method name="setDictionary"
  18246. abstract="false" native="false" synchronized="false"
  18247. static="false" final="false" visibility="public"
  18248. deprecated="not deprecated">
  18249. <param name="b" type="byte[]"/>
  18250. <param name="off" type="int"/>
  18251. <param name="len" type="int"/>
  18252. </method>
  18253. <method name="setInput"
  18254. abstract="false" native="false" synchronized="false"
  18255. static="false" final="false" visibility="public"
  18256. deprecated="not deprecated">
  18257. <param name="b" type="byte[]"/>
  18258. <param name="off" type="int"/>
  18259. <param name="len" type="int"/>
  18260. </method>
  18261. <method name="reinit"
  18262. abstract="false" native="false" synchronized="false"
  18263. static="false" final="false" visibility="public"
  18264. deprecated="not deprecated">
  18265. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18266. </method>
  18267. <doc>
  18268. <![CDATA[This is a dummy compressor for BZip2.]]>
  18269. </doc>
  18270. </class>
  18271. <!-- end class org.apache.hadoop.io.compress.bzip2.BZip2DummyCompressor -->
  18272. <!-- start class org.apache.hadoop.io.compress.bzip2.BZip2DummyDecompressor -->
  18273. <class name="BZip2DummyDecompressor" extends="java.lang.Object"
  18274. abstract="false"
  18275. static="false" final="false" visibility="public"
  18276. deprecated="not deprecated">
  18277. <implements name="org.apache.hadoop.io.compress.Decompressor"/>
  18278. <constructor name="BZip2DummyDecompressor"
  18279. static="false" final="false" visibility="public"
  18280. deprecated="not deprecated">
  18281. </constructor>
  18282. <method name="decompress" return="int"
  18283. abstract="false" native="false" synchronized="false"
  18284. static="false" final="false" visibility="public"
  18285. deprecated="not deprecated">
  18286. <param name="b" type="byte[]"/>
  18287. <param name="off" type="int"/>
  18288. <param name="len" type="int"/>
  18289. <exception name="IOException" type="java.io.IOException"/>
  18290. </method>
  18291. <method name="end"
  18292. abstract="false" native="false" synchronized="false"
  18293. static="false" final="false" visibility="public"
  18294. deprecated="not deprecated">
  18295. </method>
  18296. <method name="finished" return="boolean"
  18297. abstract="false" native="false" synchronized="false"
  18298. static="false" final="false" visibility="public"
  18299. deprecated="not deprecated">
  18300. </method>
  18301. <method name="needsDictionary" return="boolean"
  18302. abstract="false" native="false" synchronized="false"
  18303. static="false" final="false" visibility="public"
  18304. deprecated="not deprecated">
  18305. </method>
  18306. <method name="needsInput" return="boolean"
  18307. abstract="false" native="false" synchronized="false"
  18308. static="false" final="false" visibility="public"
  18309. deprecated="not deprecated">
  18310. </method>
  18311. <method name="getRemaining" return="int"
  18312. abstract="false" native="false" synchronized="false"
  18313. static="false" final="false" visibility="public"
  18314. deprecated="not deprecated">
  18315. </method>
  18316. <method name="reset"
  18317. abstract="false" native="false" synchronized="false"
  18318. static="false" final="false" visibility="public"
  18319. deprecated="not deprecated">
  18320. </method>
  18321. <method name="setDictionary"
  18322. abstract="false" native="false" synchronized="false"
  18323. static="false" final="false" visibility="public"
  18324. deprecated="not deprecated">
  18325. <param name="b" type="byte[]"/>
  18326. <param name="off" type="int"/>
  18327. <param name="len" type="int"/>
  18328. </method>
  18329. <method name="setInput"
  18330. abstract="false" native="false" synchronized="false"
  18331. static="false" final="false" visibility="public"
  18332. deprecated="not deprecated">
  18333. <param name="b" type="byte[]"/>
  18334. <param name="off" type="int"/>
  18335. <param name="len" type="int"/>
  18336. </method>
  18337. <doc>
  18338. <![CDATA[This is a dummy decompressor for BZip2.]]>
  18339. </doc>
  18340. </class>
  18341. <!-- end class org.apache.hadoop.io.compress.bzip2.BZip2DummyDecompressor -->
  18342. <!-- start class org.apache.hadoop.io.compress.bzip2.CBZip2InputStream -->
  18343. <class name="CBZip2InputStream" extends="java.io.InputStream"
  18344. abstract="false"
  18345. static="false" final="false" visibility="public"
  18346. deprecated="not deprecated">
  18347. <implements name="org.apache.hadoop.io.compress.bzip2.BZip2Constants"/>
  18348. <constructor name="CBZip2InputStream" type="java.io.InputStream, org.apache.hadoop.io.compress.SplittableCompressionCodec.READ_MODE"
  18349. static="false" final="false" visibility="public"
  18350. deprecated="not deprecated">
  18351. <exception name="IOException" type="java.io.IOException"/>
  18352. <doc>
  18353. <![CDATA[Constructs a new CBZip2InputStream which decompresses bytes read from the
  18354. specified stream.
  18355. <p>
  18356. Although BZip2 headers are marked with the magic <tt>"Bz"</tt> this
  18357. constructor expects the next byte in the stream to be the first one after
  18358. the magic. Thus callers have to skip the first two bytes. Otherwise this
  18359. constructor will throw an exception.
  18360. </p>
  18361. @throws IOException
  18362. if the stream content is malformed or an I/O error occurs.
  18363. @throws NullPointerException
  18364. if <tt>in == null</tt>]]>
  18365. </doc>
  18366. </constructor>
  18367. <constructor name="CBZip2InputStream" type="java.io.InputStream"
  18368. static="false" final="false" visibility="public"
  18369. deprecated="not deprecated">
  18370. <exception name="IOException" type="java.io.IOException"/>
  18371. </constructor>
  18372. <method name="getProcessedByteCount" return="long"
  18373. abstract="false" native="false" synchronized="false"
  18374. static="false" final="false" visibility="public"
  18375. deprecated="not deprecated">
  18376. <doc>
  18377. <![CDATA[This method reports the processed bytes so far. Please note that this
  18378. statistic is only updated on block boundaries and only when the stream is
  18379. initiated in BYBLOCK mode.]]>
  18380. </doc>
  18381. </method>
  18382. <method name="updateProcessedByteCount"
  18383. abstract="false" native="false" synchronized="false"
  18384. static="false" final="false" visibility="protected"
  18385. deprecated="not deprecated">
  18386. <param name="count" type="int"/>
  18387. <doc>
  18388. <![CDATA[This method keeps track of raw processed compressed
  18389. bytes.
  18390. @param count count is the number of bytes to be
  18391. added to raw processed bytes]]>
  18392. </doc>
  18393. </method>
  18394. <method name="updateReportedByteCount"
  18395. abstract="false" native="false" synchronized="false"
  18396. static="false" final="false" visibility="public"
  18397. deprecated="not deprecated">
  18398. <param name="count" type="int"/>
  18399. <doc>
  18400. <![CDATA[This method is called by the client of this
  18401. class in case there are any corrections in
  18402. the stream position. One common example is
  18403. when client of this code removes starting BZ
  18404. characters from the compressed stream.
  18405. @param count count bytes are added to the reported bytes]]>
  18406. </doc>
  18407. </method>
  18408. <method name="skipToNextMarker" return="boolean"
  18409. abstract="false" native="false" synchronized="false"
  18410. static="false" final="false" visibility="public"
  18411. deprecated="not deprecated">
  18412. <param name="marker" type="long"/>
  18413. <param name="markerBitLength" type="int"/>
  18414. <exception name="IOException" type="java.io.IOException"/>
  18415. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  18416. <doc>
  18417. <![CDATA[This method tries to find the marker (passed to it as the first parameter)
  18418. in the stream. It can find bit patterns of length <= 63 bits. Specifically
  18419. this method is used in CBZip2InputStream to find the end of block (EOB)
  18420. delimiter in the stream, starting from the current position of the stream.
  18421. If marker is found, the stream position will be right after marker at the
  18422. end of this call.
  18423. @param marker The bit pattern to be found in the stream
  18424. @param markerBitLength No of bits in the marker
  18425. @throws IOException
  18426. @throws IllegalArgumentException if marketBitLength is greater than 63]]>
  18427. </doc>
  18428. </method>
  18429. <method name="reportCRCError"
  18430. abstract="false" native="false" synchronized="false"
  18431. static="false" final="false" visibility="protected"
  18432. deprecated="not deprecated">
  18433. <exception name="IOException" type="java.io.IOException"/>
  18434. </method>
  18435. <method name="numberOfBytesTillNextMarker" return="long"
  18436. abstract="false" native="false" synchronized="false"
  18437. static="true" final="false" visibility="public"
  18438. deprecated="not deprecated">
  18439. <param name="in" type="java.io.InputStream"/>
  18440. <exception name="IOException" type="java.io.IOException"/>
  18441. <doc>
  18442. <![CDATA[Returns the number of bytes between the current stream position
  18443. and the immediate next BZip2 block marker.
  18444. @param in
  18445. The InputStream
  18446. @return long Number of bytes between current stream position and the
  18447. next BZip2 block start marker.
  18448. @throws IOException]]>
  18449. </doc>
  18450. </method>
  18451. <method name="read" return="int"
  18452. abstract="false" native="false" synchronized="false"
  18453. static="false" final="false" visibility="public"
  18454. deprecated="not deprecated">
  18455. <exception name="IOException" type="java.io.IOException"/>
  18456. </method>
  18457. <method name="read" return="int"
  18458. abstract="false" native="false" synchronized="false"
  18459. static="false" final="false" visibility="public"
  18460. deprecated="not deprecated">
  18461. <param name="dest" type="byte[]"/>
  18462. <param name="offs" type="int"/>
  18463. <param name="len" type="int"/>
  18464. <exception name="IOException" type="java.io.IOException"/>
  18465. <doc>
  18466. <![CDATA[In CONTINOUS reading mode, this read method starts from the
  18467. start of the compressed stream and end at the end of file by
  18468. emitting un-compressed data. In this mode stream positioning
  18469. is not announced and should be ignored.
  18470. In BYBLOCK reading mode, this read method informs about the end
  18471. of a BZip2 block by returning EOB. At this event, the compressed
  18472. stream position is also announced. This announcement tells that
  18473. how much of the compressed stream has been de-compressed and read
  18474. out of this class. In between EOB events, the stream position is
  18475. not updated.
  18476. @throws IOException
  18477. if the stream content is malformed or an I/O error occurs.
  18478. @return int The return value greater than 0 are the bytes read. A value
  18479. of -1 means end of stream while -2 represents end of block]]>
  18480. </doc>
  18481. </method>
  18482. <method name="close"
  18483. abstract="false" native="false" synchronized="false"
  18484. static="false" final="false" visibility="public"
  18485. deprecated="not deprecated">
  18486. <exception name="IOException" type="java.io.IOException"/>
  18487. </method>
  18488. <field name="BLOCK_DELIMITER" type="long"
  18489. transient="false" volatile="false"
  18490. static="true" final="true" visibility="public"
  18491. deprecated="not deprecated">
  18492. </field>
  18493. <field name="EOS_DELIMITER" type="long"
  18494. transient="false" volatile="false"
  18495. static="true" final="true" visibility="public"
  18496. deprecated="not deprecated">
  18497. </field>
  18498. <doc>
  18499. <![CDATA[An input stream that decompresses from the BZip2 format (without the file
  18500. header chars) to be read as any other stream.
  18501. <p>
  18502. The decompression requires large amounts of memory. Thus you should call the
  18503. {@link #close() close()} method as soon as possible, to force
  18504. <tt>CBZip2InputStream</tt> to release the allocated memory. See
  18505. {@link CBZip2OutputStream CBZip2OutputStream} for information about memory
  18506. usage.
  18507. </p>
  18508. <p>
  18509. <tt>CBZip2InputStream</tt> reads bytes from the compressed source stream via
  18510. the single byte {@link java.io.InputStream#read() read()} method exclusively.
  18511. Thus you should consider to use a buffered source stream.
  18512. </p>
  18513. <p>
  18514. Instances of this class are not threadsafe.
  18515. </p>]]>
  18516. </doc>
  18517. </class>
  18518. <!-- end class org.apache.hadoop.io.compress.bzip2.CBZip2InputStream -->
  18519. <!-- start class org.apache.hadoop.io.compress.bzip2.CBZip2InputStream.STATE -->
  18520. <class name="CBZip2InputStream.STATE" extends="java.lang.Enum"
  18521. abstract="false"
  18522. static="true" final="true" visibility="public"
  18523. deprecated="not deprecated">
  18524. <method name="values" return="org.apache.hadoop.io.compress.bzip2.CBZip2InputStream.STATE[]"
  18525. abstract="false" native="false" synchronized="false"
  18526. static="true" final="false" visibility="public"
  18527. deprecated="not deprecated">
  18528. </method>
  18529. <method name="valueOf" return="org.apache.hadoop.io.compress.bzip2.CBZip2InputStream.STATE"
  18530. abstract="false" native="false" synchronized="false"
  18531. static="true" final="false" visibility="public"
  18532. deprecated="not deprecated">
  18533. <param name="name" type="java.lang.String"/>
  18534. </method>
  18535. <field name="EOF" type="org.apache.hadoop.io.compress.bzip2.CBZip2InputStream.STATE"
  18536. transient="false" volatile="false"
  18537. static="true" final="true" visibility="public"
  18538. deprecated="not deprecated">
  18539. </field>
  18540. <field name="START_BLOCK_STATE" type="org.apache.hadoop.io.compress.bzip2.CBZip2InputStream.STATE"
  18541. transient="false" volatile="false"
  18542. static="true" final="true" visibility="public"
  18543. deprecated="not deprecated">
  18544. </field>
  18545. <field name="RAND_PART_A_STATE" type="org.apache.hadoop.io.compress.bzip2.CBZip2InputStream.STATE"
  18546. transient="false" volatile="false"
  18547. static="true" final="true" visibility="public"
  18548. deprecated="not deprecated">
  18549. </field>
  18550. <field name="RAND_PART_B_STATE" type="org.apache.hadoop.io.compress.bzip2.CBZip2InputStream.STATE"
  18551. transient="false" volatile="false"
  18552. static="true" final="true" visibility="public"
  18553. deprecated="not deprecated">
  18554. </field>
  18555. <field name="RAND_PART_C_STATE" type="org.apache.hadoop.io.compress.bzip2.CBZip2InputStream.STATE"
  18556. transient="false" volatile="false"
  18557. static="true" final="true" visibility="public"
  18558. deprecated="not deprecated">
  18559. </field>
  18560. <field name="NO_RAND_PART_A_STATE" type="org.apache.hadoop.io.compress.bzip2.CBZip2InputStream.STATE"
  18561. transient="false" volatile="false"
  18562. static="true" final="true" visibility="public"
  18563. deprecated="not deprecated">
  18564. </field>
  18565. <field name="NO_RAND_PART_B_STATE" type="org.apache.hadoop.io.compress.bzip2.CBZip2InputStream.STATE"
  18566. transient="false" volatile="false"
  18567. static="true" final="true" visibility="public"
  18568. deprecated="not deprecated">
  18569. </field>
  18570. <field name="NO_RAND_PART_C_STATE" type="org.apache.hadoop.io.compress.bzip2.CBZip2InputStream.STATE"
  18571. transient="false" volatile="false"
  18572. static="true" final="true" visibility="public"
  18573. deprecated="not deprecated">
  18574. </field>
  18575. <field name="NO_PROCESS_STATE" type="org.apache.hadoop.io.compress.bzip2.CBZip2InputStream.STATE"
  18576. transient="false" volatile="false"
  18577. static="true" final="true" visibility="public"
  18578. deprecated="not deprecated">
  18579. </field>
  18580. <doc>
  18581. <![CDATA[A state machine to keep track of current state of the de-coder]]>
  18582. </doc>
  18583. </class>
  18584. <!-- end class org.apache.hadoop.io.compress.bzip2.CBZip2InputStream.STATE -->
  18585. <!-- start class org.apache.hadoop.io.compress.bzip2.CBZip2OutputStream -->
  18586. <class name="CBZip2OutputStream" extends="java.io.OutputStream"
  18587. abstract="false"
  18588. static="false" final="false" visibility="public"
  18589. deprecated="not deprecated">
  18590. <implements name="org.apache.hadoop.io.compress.bzip2.BZip2Constants"/>
  18591. <constructor name="CBZip2OutputStream" type="java.io.OutputStream"
  18592. static="false" final="false" visibility="public"
  18593. deprecated="not deprecated">
  18594. <exception name="IOException" type="java.io.IOException"/>
  18595. <doc>
  18596. <![CDATA[Constructs a new <tt>CBZip2OutputStream</tt> with a blocksize of 900k.
  18597. <p>
  18598. <b>Attention: </b>The caller is resonsible to write the two BZip2 magic
  18599. bytes <tt>"BZ"</tt> to the specified stream prior to calling this
  18600. constructor.
  18601. </p>
  18602. @param out *
  18603. the destination stream.
  18604. @throws IOException
  18605. if an I/O error occurs in the specified stream.
  18606. @throws NullPointerException
  18607. if <code>out == null</code>.]]>
  18608. </doc>
  18609. </constructor>
  18610. <constructor name="CBZip2OutputStream" type="java.io.OutputStream, int"
  18611. static="false" final="false" visibility="public"
  18612. deprecated="not deprecated">
  18613. <exception name="IOException" type="java.io.IOException"/>
  18614. <doc>
  18615. <![CDATA[Constructs a new <tt>CBZip2OutputStream</tt> with specified blocksize.
  18616. <p>
  18617. <b>Attention: </b>The caller is resonsible to write the two BZip2 magic
  18618. bytes <tt>"BZ"</tt> to the specified stream prior to calling this
  18619. constructor.
  18620. </p>
  18621. @param out
  18622. the destination stream.
  18623. @param blockSize
  18624. the blockSize as 100k units.
  18625. @throws IOException
  18626. if an I/O error occurs in the specified stream.
  18627. @throws IllegalArgumentException
  18628. if <code>(blockSize < 1) || (blockSize > 9)</code>.
  18629. @throws NullPointerException
  18630. if <code>out == null</code>.
  18631. @see #MIN_BLOCKSIZE
  18632. @see #MAX_BLOCKSIZE]]>
  18633. </doc>
  18634. </constructor>
  18635. <method name="hbMakeCodeLengths"
  18636. abstract="false" native="false" synchronized="false"
  18637. static="true" final="false" visibility="protected"
  18638. deprecated="not deprecated">
  18639. <param name="len" type="char[]"/>
  18640. <param name="freq" type="int[]"/>
  18641. <param name="alphaSize" type="int"/>
  18642. <param name="maxLen" type="int"/>
  18643. <doc>
  18644. <![CDATA[This method is accessible by subclasses for historical purposes. If you
  18645. don't know what it does then you don't need it.]]>
  18646. </doc>
  18647. </method>
  18648. <method name="chooseBlockSize" return="int"
  18649. abstract="false" native="false" synchronized="false"
  18650. static="true" final="false" visibility="public"
  18651. deprecated="not deprecated">
  18652. <param name="inputLength" type="long"/>
  18653. <doc>
  18654. <![CDATA[Chooses a blocksize based on the given length of the data to compress.
  18655. @return The blocksize, between {@link #MIN_BLOCKSIZE} and
  18656. {@link #MAX_BLOCKSIZE} both inclusive. For a negative
  18657. <tt>inputLength</tt> this method returns <tt>MAX_BLOCKSIZE</tt>
  18658. always.
  18659. @param inputLength
  18660. The length of the data which will be compressed by
  18661. <tt>CBZip2OutputStream</tt>.]]>
  18662. </doc>
  18663. </method>
  18664. <method name="write"
  18665. abstract="false" native="false" synchronized="false"
  18666. static="false" final="false" visibility="public"
  18667. deprecated="not deprecated">
  18668. <param name="b" type="int"/>
  18669. <exception name="IOException" type="java.io.IOException"/>
  18670. </method>
  18671. <method name="finalize"
  18672. abstract="false" native="false" synchronized="false"
  18673. static="false" final="false" visibility="protected"
  18674. deprecated="not deprecated">
  18675. <exception name="Throwable" type="java.lang.Throwable"/>
  18676. <doc>
  18677. <![CDATA[Overriden to close the stream.]]>
  18678. </doc>
  18679. </method>
  18680. <method name="finish"
  18681. abstract="false" native="false" synchronized="false"
  18682. static="false" final="false" visibility="public"
  18683. deprecated="not deprecated">
  18684. <exception name="IOException" type="java.io.IOException"/>
  18685. </method>
  18686. <method name="close"
  18687. abstract="false" native="false" synchronized="false"
  18688. static="false" final="false" visibility="public"
  18689. deprecated="not deprecated">
  18690. <exception name="IOException" type="java.io.IOException"/>
  18691. </method>
  18692. <method name="flush"
  18693. abstract="false" native="false" synchronized="false"
  18694. static="false" final="false" visibility="public"
  18695. deprecated="not deprecated">
  18696. <exception name="IOException" type="java.io.IOException"/>
  18697. </method>
  18698. <method name="getBlockSize" return="int"
  18699. abstract="false" native="false" synchronized="false"
  18700. static="false" final="true" visibility="public"
  18701. deprecated="not deprecated">
  18702. <doc>
  18703. <![CDATA[Returns the blocksize parameter specified at construction time.]]>
  18704. </doc>
  18705. </method>
  18706. <method name="write"
  18707. abstract="false" native="false" synchronized="false"
  18708. static="false" final="false" visibility="public"
  18709. deprecated="not deprecated">
  18710. <param name="buf" type="byte[]"/>
  18711. <param name="offs" type="int"/>
  18712. <param name="len" type="int"/>
  18713. <exception name="IOException" type="java.io.IOException"/>
  18714. </method>
  18715. <field name="MIN_BLOCKSIZE" type="int"
  18716. transient="false" volatile="false"
  18717. static="true" final="true" visibility="public"
  18718. deprecated="not deprecated">
  18719. <doc>
  18720. <![CDATA[The minimum supported blocksize <tt> == 1</tt>.]]>
  18721. </doc>
  18722. </field>
  18723. <field name="MAX_BLOCKSIZE" type="int"
  18724. transient="false" volatile="false"
  18725. static="true" final="true" visibility="public"
  18726. deprecated="not deprecated">
  18727. <doc>
  18728. <![CDATA[The maximum supported blocksize <tt> == 9</tt>.]]>
  18729. </doc>
  18730. </field>
  18731. <field name="SETMASK" type="int"
  18732. transient="false" volatile="false"
  18733. static="true" final="true" visibility="protected"
  18734. deprecated="not deprecated">
  18735. <doc>
  18736. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  18737. don't know what it means then you don't need it.]]>
  18738. </doc>
  18739. </field>
  18740. <field name="CLEARMASK" type="int"
  18741. transient="false" volatile="false"
  18742. static="true" final="true" visibility="protected"
  18743. deprecated="not deprecated">
  18744. <doc>
  18745. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  18746. don't know what it means then you don't need it.]]>
  18747. </doc>
  18748. </field>
  18749. <field name="GREATER_ICOST" type="int"
  18750. transient="false" volatile="false"
  18751. static="true" final="true" visibility="protected"
  18752. deprecated="not deprecated">
  18753. <doc>
  18754. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  18755. don't know what it means then you don't need it.]]>
  18756. </doc>
  18757. </field>
  18758. <field name="LESSER_ICOST" type="int"
  18759. transient="false" volatile="false"
  18760. static="true" final="true" visibility="protected"
  18761. deprecated="not deprecated">
  18762. <doc>
  18763. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  18764. don't know what it means then you don't need it.]]>
  18765. </doc>
  18766. </field>
  18767. <field name="SMALL_THRESH" type="int"
  18768. transient="false" volatile="false"
  18769. static="true" final="true" visibility="protected"
  18770. deprecated="not deprecated">
  18771. <doc>
  18772. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  18773. don't know what it means then you don't need it.]]>
  18774. </doc>
  18775. </field>
  18776. <field name="DEPTH_THRESH" type="int"
  18777. transient="false" volatile="false"
  18778. static="true" final="true" visibility="protected"
  18779. deprecated="not deprecated">
  18780. <doc>
  18781. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  18782. don't know what it means then you don't need it.]]>
  18783. </doc>
  18784. </field>
  18785. <field name="WORK_FACTOR" type="int"
  18786. transient="false" volatile="false"
  18787. static="true" final="true" visibility="protected"
  18788. deprecated="not deprecated">
  18789. <doc>
  18790. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  18791. don't know what it means then you don't need it.]]>
  18792. </doc>
  18793. </field>
  18794. <field name="QSORT_STACK_SIZE" type="int"
  18795. transient="false" volatile="false"
  18796. static="true" final="true" visibility="protected"
  18797. deprecated="not deprecated">
  18798. <doc>
  18799. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  18800. don't know what it means then you don't need it.
  18801. <p>
  18802. If you are ever unlucky/improbable enough to get a stack overflow whilst
  18803. sorting, increase the following constant and try again. In practice I
  18804. have never seen the stack go above 27 elems, so the following limit seems
  18805. very generous.
  18806. </p>]]>
  18807. </doc>
  18808. </field>
  18809. <doc>
  18810. <![CDATA[An output stream that compresses into the BZip2 format (without the file
  18811. header chars) into another stream.
  18812. <p>
  18813. The compression requires large amounts of memory. Thus you should call the
  18814. {@link #close() close()} method as soon as possible, to force
  18815. <tt>CBZip2OutputStream</tt> to release the allocated memory.
  18816. </p>
  18817. <p>
  18818. You can shrink the amount of allocated memory and maybe raise the compression
  18819. speed by choosing a lower blocksize, which in turn may cause a lower
  18820. compression ratio. You can avoid unnecessary memory allocation by avoiding
  18821. using a blocksize which is bigger than the size of the input.
  18822. </p>
  18823. <p>
  18824. You can compute the memory usage for compressing by the following formula:
  18825. </p>
  18826. <pre>
  18827. &lt;code&gt;400k + (9 * blocksize)&lt;/code&gt;.
  18828. </pre>
  18829. <p>
  18830. To get the memory required for decompression by {@link CBZip2InputStream
  18831. CBZip2InputStream} use
  18832. </p>
  18833. <pre>
  18834. &lt;code&gt;65k + (5 * blocksize)&lt;/code&gt;.
  18835. </pre>
  18836. <table width="100%" border="1">
  18837. <colgroup> <col width="33%" /> <col width="33%" /> <col width="33%" />
  18838. </colgroup>
  18839. <tr>
  18840. <th colspan="3">Memory usage by blocksize</th>
  18841. </tr>
  18842. <tr>
  18843. <th align="right">Blocksize</th> <th align="right">Compression<br>
  18844. memory usage</th> <th align="right">Decompression<br>
  18845. memory usage</th>
  18846. </tr>
  18847. <tr>
  18848. <td align="right">100k</td>
  18849. <td align="right">1300k</td>
  18850. <td align="right">565k</td>
  18851. </tr>
  18852. <tr>
  18853. <td align="right">200k</td>
  18854. <td align="right">2200k</td>
  18855. <td align="right">1065k</td>
  18856. </tr>
  18857. <tr>
  18858. <td align="right">300k</td>
  18859. <td align="right">3100k</td>
  18860. <td align="right">1565k</td>
  18861. </tr>
  18862. <tr>
  18863. <td align="right">400k</td>
  18864. <td align="right">4000k</td>
  18865. <td align="right">2065k</td>
  18866. </tr>
  18867. <tr>
  18868. <td align="right">500k</td>
  18869. <td align="right">4900k</td>
  18870. <td align="right">2565k</td>
  18871. </tr>
  18872. <tr>
  18873. <td align="right">600k</td>
  18874. <td align="right">5800k</td>
  18875. <td align="right">3065k</td>
  18876. </tr>
  18877. <tr>
  18878. <td align="right">700k</td>
  18879. <td align="right">6700k</td>
  18880. <td align="right">3565k</td>
  18881. </tr>
  18882. <tr>
  18883. <td align="right">800k</td>
  18884. <td align="right">7600k</td>
  18885. <td align="right">4065k</td>
  18886. </tr>
  18887. <tr>
  18888. <td align="right">900k</td>
  18889. <td align="right">8500k</td>
  18890. <td align="right">4565k</td>
  18891. </tr>
  18892. </table>
  18893. <p>
  18894. For decompression <tt>CBZip2InputStream</tt> allocates less memory if the
  18895. bzipped input is smaller than one block.
  18896. </p>
  18897. <p>
  18898. Instances of this class are not threadsafe.
  18899. </p>
  18900. <p>
  18901. TODO: Update to BZip2 1.0.1
  18902. </p>]]>
  18903. </doc>
  18904. </class>
  18905. <!-- end class org.apache.hadoop.io.compress.bzip2.CBZip2OutputStream -->
  18906. </package>
  18907. <package name="org.apache.hadoop.io.compress.snappy">
  18908. <!-- start class org.apache.hadoop.io.compress.snappy.LoadSnappy -->
  18909. <class name="LoadSnappy" extends="java.lang.Object"
  18910. abstract="false"
  18911. static="false" final="false" visibility="public"
  18912. deprecated="not deprecated">
  18913. <constructor name="LoadSnappy"
  18914. static="false" final="false" visibility="public"
  18915. deprecated="not deprecated">
  18916. </constructor>
  18917. <method name="isAvailable" return="boolean"
  18918. abstract="false" native="false" synchronized="false"
  18919. static="true" final="false" visibility="public"
  18920. deprecated="not deprecated">
  18921. <doc>
  18922. <![CDATA[Returns if Snappy native library is loaded.
  18923. @return <code>true</code> if Snappy native library is loaded,
  18924. <code>false</code> if not.]]>
  18925. </doc>
  18926. </method>
  18927. <method name="isLoaded" return="boolean"
  18928. abstract="false" native="false" synchronized="false"
  18929. static="true" final="false" visibility="public"
  18930. deprecated="not deprecated">
  18931. <doc>
  18932. <![CDATA[Returns if Snappy native library is loaded.
  18933. @return <code>true</code> if Snappy native library is loaded,
  18934. <code>false</code> if not.]]>
  18935. </doc>
  18936. </method>
  18937. <doc>
  18938. <![CDATA[Determines if Snappy native library is available and loads it if available.]]>
  18939. </doc>
  18940. </class>
  18941. <!-- end class org.apache.hadoop.io.compress.snappy.LoadSnappy -->
  18942. <!-- start class org.apache.hadoop.io.compress.snappy.SnappyCompressor -->
  18943. <class name="SnappyCompressor" extends="java.lang.Object"
  18944. abstract="false"
  18945. static="false" final="false" visibility="public"
  18946. deprecated="not deprecated">
  18947. <implements name="org.apache.hadoop.io.compress.Compressor"/>
  18948. <constructor name="SnappyCompressor" type="int"
  18949. static="false" final="false" visibility="public"
  18950. deprecated="not deprecated">
  18951. <doc>
  18952. <![CDATA[Creates a new compressor.
  18953. @param directBufferSize size of the direct buffer to be used.]]>
  18954. </doc>
  18955. </constructor>
  18956. <constructor name="SnappyCompressor"
  18957. static="false" final="false" visibility="public"
  18958. deprecated="not deprecated">
  18959. <doc>
  18960. <![CDATA[Creates a new compressor with the default buffer size.]]>
  18961. </doc>
  18962. </constructor>
  18963. <method name="setInput"
  18964. abstract="false" native="false" synchronized="true"
  18965. static="false" final="false" visibility="public"
  18966. deprecated="not deprecated">
  18967. <param name="b" type="byte[]"/>
  18968. <param name="off" type="int"/>
  18969. <param name="len" type="int"/>
  18970. <doc>
  18971. <![CDATA[Sets input data for compression.
  18972. This should be called whenever #needsInput() returns
  18973. <code>true</code> indicating that more input data is required.
  18974. @param b Input data
  18975. @param off Start offset
  18976. @param len Length]]>
  18977. </doc>
  18978. </method>
  18979. <method name="setDictionary"
  18980. abstract="false" native="false" synchronized="true"
  18981. static="false" final="false" visibility="public"
  18982. deprecated="not deprecated">
  18983. <param name="b" type="byte[]"/>
  18984. <param name="off" type="int"/>
  18985. <param name="len" type="int"/>
  18986. <doc>
  18987. <![CDATA[Does nothing.]]>
  18988. </doc>
  18989. </method>
  18990. <method name="needsInput" return="boolean"
  18991. abstract="false" native="false" synchronized="true"
  18992. static="false" final="false" visibility="public"
  18993. deprecated="not deprecated">
  18994. <doc>
  18995. <![CDATA[Returns true if the input data buffer is empty and
  18996. #setInput() should be called to provide more input.
  18997. @return <code>true</code> if the input data buffer is empty and
  18998. #setInput() should be called in order to provide more input.]]>
  18999. </doc>
  19000. </method>
  19001. <method name="finish"
  19002. abstract="false" native="false" synchronized="true"
  19003. static="false" final="false" visibility="public"
  19004. deprecated="not deprecated">
  19005. <doc>
  19006. <![CDATA[When called, indicates that compression should end
  19007. with the current contents of the input buffer.]]>
  19008. </doc>
  19009. </method>
  19010. <method name="finished" return="boolean"
  19011. abstract="false" native="false" synchronized="true"
  19012. static="false" final="false" visibility="public"
  19013. deprecated="not deprecated">
  19014. <doc>
  19015. <![CDATA[Returns true if the end of the compressed
  19016. data output stream has been reached.
  19017. @return <code>true</code> if the end of the compressed
  19018. data output stream has been reached.]]>
  19019. </doc>
  19020. </method>
  19021. <method name="compress" return="int"
  19022. abstract="false" native="false" synchronized="true"
  19023. static="false" final="false" visibility="public"
  19024. deprecated="not deprecated">
  19025. <param name="b" type="byte[]"/>
  19026. <param name="off" type="int"/>
  19027. <param name="len" type="int"/>
  19028. <exception name="IOException" type="java.io.IOException"/>
  19029. <doc>
  19030. <![CDATA[Fills specified buffer with compressed data. Returns actual number
  19031. of bytes of compressed data. A return value of 0 indicates that
  19032. needsInput() should be called in order to determine if more input
  19033. data is required.
  19034. @param b Buffer for the compressed data
  19035. @param off Start offset of the data
  19036. @param len Size of the buffer
  19037. @return The actual number of bytes of compressed data.]]>
  19038. </doc>
  19039. </method>
  19040. <method name="reset"
  19041. abstract="false" native="false" synchronized="true"
  19042. static="false" final="false" visibility="public"
  19043. deprecated="not deprecated">
  19044. <doc>
  19045. <![CDATA[Resets compressor so that a new set of input data can be processed.]]>
  19046. </doc>
  19047. </method>
  19048. <method name="reinit"
  19049. abstract="false" native="false" synchronized="true"
  19050. static="false" final="false" visibility="public"
  19051. deprecated="not deprecated">
  19052. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19053. <doc>
  19054. <![CDATA[Prepare the compressor to be used in a new stream with settings defined in
  19055. the given Configuration
  19056. @param conf Configuration from which new setting are fetched]]>
  19057. </doc>
  19058. </method>
  19059. <method name="getBytesRead" return="long"
  19060. abstract="false" native="false" synchronized="true"
  19061. static="false" final="false" visibility="public"
  19062. deprecated="not deprecated">
  19063. <doc>
  19064. <![CDATA[Return number of bytes given to this compressor since last reset.]]>
  19065. </doc>
  19066. </method>
  19067. <method name="getBytesWritten" return="long"
  19068. abstract="false" native="false" synchronized="true"
  19069. static="false" final="false" visibility="public"
  19070. deprecated="not deprecated">
  19071. <doc>
  19072. <![CDATA[Return number of bytes consumed by callers of compress since last reset.]]>
  19073. </doc>
  19074. </method>
  19075. <method name="end"
  19076. abstract="false" native="false" synchronized="true"
  19077. static="false" final="false" visibility="public"
  19078. deprecated="not deprecated">
  19079. <doc>
  19080. <![CDATA[Closes the compressor and discards any unprocessed input.]]>
  19081. </doc>
  19082. </method>
  19083. <doc>
  19084. <![CDATA[A {@link Compressor} based on the snappy compression algorithm.
  19085. http://code.google.com/p/snappy/]]>
  19086. </doc>
  19087. </class>
  19088. <!-- end class org.apache.hadoop.io.compress.snappy.SnappyCompressor -->
  19089. <!-- start class org.apache.hadoop.io.compress.snappy.SnappyDecompressor -->
  19090. <class name="SnappyDecompressor" extends="java.lang.Object"
  19091. abstract="false"
  19092. static="false" final="false" visibility="public"
  19093. deprecated="not deprecated">
  19094. <implements name="org.apache.hadoop.io.compress.Decompressor"/>
  19095. <constructor name="SnappyDecompressor" type="int"
  19096. static="false" final="false" visibility="public"
  19097. deprecated="not deprecated">
  19098. <doc>
  19099. <![CDATA[Creates a new compressor.
  19100. @param directBufferSize size of the direct buffer to be used.]]>
  19101. </doc>
  19102. </constructor>
  19103. <constructor name="SnappyDecompressor"
  19104. static="false" final="false" visibility="public"
  19105. deprecated="not deprecated">
  19106. <doc>
  19107. <![CDATA[Creates a new decompressor with the default buffer size.]]>
  19108. </doc>
  19109. </constructor>
  19110. <method name="setInput"
  19111. abstract="false" native="false" synchronized="true"
  19112. static="false" final="false" visibility="public"
  19113. deprecated="not deprecated">
  19114. <param name="b" type="byte[]"/>
  19115. <param name="off" type="int"/>
  19116. <param name="len" type="int"/>
  19117. <doc>
  19118. <![CDATA[Sets input data for decompression.
  19119. This should be called if and only if {@link #needsInput()} returns
  19120. <code>true</code> indicating that more input data is required.
  19121. (Both native and non-native versions of various Decompressors require
  19122. that the data passed in via <code>b[]</code> remain unmodified until
  19123. the caller is explicitly notified--via {@link #needsInput()}--that the
  19124. buffer may be safely modified. With this requirement, an extra
  19125. buffer-copy can be avoided.)
  19126. @param b Input data
  19127. @param off Start offset
  19128. @param len Length]]>
  19129. </doc>
  19130. </method>
  19131. <method name="setDictionary"
  19132. abstract="false" native="false" synchronized="true"
  19133. static="false" final="false" visibility="public"
  19134. deprecated="not deprecated">
  19135. <param name="b" type="byte[]"/>
  19136. <param name="off" type="int"/>
  19137. <param name="len" type="int"/>
  19138. <doc>
  19139. <![CDATA[Does nothing.]]>
  19140. </doc>
  19141. </method>
  19142. <method name="needsInput" return="boolean"
  19143. abstract="false" native="false" synchronized="true"
  19144. static="false" final="false" visibility="public"
  19145. deprecated="not deprecated">
  19146. <doc>
  19147. <![CDATA[Returns true if the input data buffer is empty and
  19148. {@link #setInput(byte[], int, int)} should be called to
  19149. provide more input.
  19150. @return <code>true</code> if the input data buffer is empty and
  19151. {@link #setInput(byte[], int, int)} should be called in
  19152. order to provide more input.]]>
  19153. </doc>
  19154. </method>
  19155. <method name="needsDictionary" return="boolean"
  19156. abstract="false" native="false" synchronized="true"
  19157. static="false" final="false" visibility="public"
  19158. deprecated="not deprecated">
  19159. <doc>
  19160. <![CDATA[Returns <code>false</code>.
  19161. @return <code>false</code>.]]>
  19162. </doc>
  19163. </method>
  19164. <method name="finished" return="boolean"
  19165. abstract="false" native="false" synchronized="true"
  19166. static="false" final="false" visibility="public"
  19167. deprecated="not deprecated">
  19168. <doc>
  19169. <![CDATA[Returns true if the end of the decompressed
  19170. data output stream has been reached.
  19171. @return <code>true</code> if the end of the decompressed
  19172. data output stream has been reached.]]>
  19173. </doc>
  19174. </method>
  19175. <method name="decompress" return="int"
  19176. abstract="false" native="false" synchronized="true"
  19177. static="false" final="false" visibility="public"
  19178. deprecated="not deprecated">
  19179. <param name="b" type="byte[]"/>
  19180. <param name="off" type="int"/>
  19181. <param name="len" type="int"/>
  19182. <exception name="IOException" type="java.io.IOException"/>
  19183. <doc>
  19184. <![CDATA[Fills specified buffer with uncompressed data. Returns actual number
  19185. of bytes of uncompressed data. A return value of 0 indicates that
  19186. {@link #needsInput()} should be called in order to determine if more
  19187. input data is required.
  19188. @param b Buffer for the compressed data
  19189. @param off Start offset of the data
  19190. @param len Size of the buffer
  19191. @return The actual number of bytes of compressed data.
  19192. @throws IOException]]>
  19193. </doc>
  19194. </method>
  19195. <method name="getRemaining" return="int"
  19196. abstract="false" native="false" synchronized="true"
  19197. static="false" final="false" visibility="public"
  19198. deprecated="not deprecated">
  19199. <doc>
  19200. <![CDATA[Returns <code>0</code>.
  19201. @return <code>0</code>.]]>
  19202. </doc>
  19203. </method>
  19204. <method name="reset"
  19205. abstract="false" native="false" synchronized="true"
  19206. static="false" final="false" visibility="public"
  19207. deprecated="not deprecated">
  19208. </method>
  19209. <method name="end"
  19210. abstract="false" native="false" synchronized="true"
  19211. static="false" final="false" visibility="public"
  19212. deprecated="not deprecated">
  19213. <doc>
  19214. <![CDATA[Resets decompressor and input and output buffers so that a new set of
  19215. input data can be processed.]]>
  19216. </doc>
  19217. </method>
  19218. <doc>
  19219. <![CDATA[A {@link Decompressor} based on the snappy compression algorithm.
  19220. http://code.google.com/p/snappy/]]>
  19221. </doc>
  19222. </class>
  19223. <!-- end class org.apache.hadoop.io.compress.snappy.SnappyDecompressor -->
  19224. </package>
  19225. <package name="org.apache.hadoop.io.compress.zlib">
  19226. <!-- start class org.apache.hadoop.io.compress.zlib.BuiltInGzipDecompressor -->
  19227. <class name="BuiltInGzipDecompressor" extends="java.lang.Object"
  19228. abstract="false"
  19229. static="false" final="false" visibility="public"
  19230. deprecated="not deprecated">
  19231. <implements name="org.apache.hadoop.io.compress.Decompressor"/>
  19232. <constructor name="BuiltInGzipDecompressor"
  19233. static="false" final="false" visibility="public"
  19234. deprecated="not deprecated">
  19235. <doc>
  19236. <![CDATA[Creates a new (pure Java) gzip decompressor.]]>
  19237. </doc>
  19238. </constructor>
  19239. <method name="needsInput" return="boolean"
  19240. abstract="false" native="false" synchronized="true"
  19241. static="false" final="false" visibility="public"
  19242. deprecated="not deprecated">
  19243. <doc>
  19244. <![CDATA[{@inheritDoc}]]>
  19245. </doc>
  19246. </method>
  19247. <method name="setInput"
  19248. abstract="false" native="false" synchronized="true"
  19249. static="false" final="false" visibility="public"
  19250. deprecated="not deprecated">
  19251. <param name="b" type="byte[]"/>
  19252. <param name="off" type="int"/>
  19253. <param name="len" type="int"/>
  19254. <doc>
  19255. <![CDATA[{@inheritDoc}]]>
  19256. </doc>
  19257. </method>
  19258. <method name="decompress" return="int"
  19259. abstract="false" native="false" synchronized="true"
  19260. static="false" final="false" visibility="public"
  19261. deprecated="not deprecated">
  19262. <param name="b" type="byte[]"/>
  19263. <param name="off" type="int"/>
  19264. <param name="len" type="int"/>
  19265. <exception name="IOException" type="java.io.IOException"/>
  19266. <doc>
  19267. <![CDATA[Decompress the data (gzip header, deflate stream, gzip trailer) in the
  19268. provided buffer.
  19269. @return the number of decompressed bytes placed into b]]>
  19270. </doc>
  19271. </method>
  19272. <method name="getBytesRead" return="long"
  19273. abstract="false" native="false" synchronized="true"
  19274. static="false" final="false" visibility="public"
  19275. deprecated="not deprecated">
  19276. <doc>
  19277. <![CDATA[Returns the total number of compressed bytes input so far, including
  19278. gzip header/trailer bytes.</p>
  19279. @return the total (non-negative) number of compressed bytes read so far]]>
  19280. </doc>
  19281. </method>
  19282. <method name="getRemaining" return="int"
  19283. abstract="false" native="false" synchronized="true"
  19284. static="false" final="false" visibility="public"
  19285. deprecated="not deprecated">
  19286. <doc>
  19287. <![CDATA[Returns the number of bytes remaining in the input buffer; normally
  19288. called when finished() is true to determine amount of post-gzip-stream
  19289. data. Note that, other than the finished state with concatenated data
  19290. after the end of the current gzip stream, this will never return a
  19291. non-zero value unless called after {@link #setInput(byte[] b, int off,
  19292. int len)} and before {@link #decompress(byte[] b, int off, int len)}.
  19293. (That is, after {@link #decompress(byte[] b, int off, int len)} it
  19294. always returns zero, except in finished state with concatenated data.)</p>
  19295. @return the total (non-negative) number of unprocessed bytes in input]]>
  19296. </doc>
  19297. </method>
  19298. <method name="needsDictionary" return="boolean"
  19299. abstract="false" native="false" synchronized="true"
  19300. static="false" final="false" visibility="public"
  19301. deprecated="not deprecated">
  19302. <doc>
  19303. <![CDATA[{@inheritDoc}]]>
  19304. </doc>
  19305. </method>
  19306. <method name="setDictionary"
  19307. abstract="false" native="false" synchronized="true"
  19308. static="false" final="false" visibility="public"
  19309. deprecated="not deprecated">
  19310. <param name="b" type="byte[]"/>
  19311. <param name="off" type="int"/>
  19312. <param name="len" type="int"/>
  19313. <doc>
  19314. <![CDATA[{@inheritDoc}]]>
  19315. </doc>
  19316. </method>
  19317. <method name="finished" return="boolean"
  19318. abstract="false" native="false" synchronized="true"
  19319. static="false" final="false" visibility="public"
  19320. deprecated="not deprecated">
  19321. <doc>
  19322. <![CDATA[Returns true if the end of the gzip substream (single "member") has been
  19323. reached.</p>]]>
  19324. </doc>
  19325. </method>
  19326. <method name="reset"
  19327. abstract="false" native="false" synchronized="true"
  19328. static="false" final="false" visibility="public"
  19329. deprecated="not deprecated">
  19330. <doc>
  19331. <![CDATA[Resets everything, including the input buffer, regardless of whether the
  19332. current gzip substream is finished.</p>]]>
  19333. </doc>
  19334. </method>
  19335. <method name="end"
  19336. abstract="false" native="false" synchronized="true"
  19337. static="false" final="false" visibility="public"
  19338. deprecated="not deprecated">
  19339. <doc>
  19340. <![CDATA[{@inheritDoc}]]>
  19341. </doc>
  19342. </method>
  19343. <doc>
  19344. <![CDATA[A {@link Decompressor} based on the popular gzip compressed file format.
  19345. http://www.gzip.org/]]>
  19346. </doc>
  19347. </class>
  19348. <!-- end class org.apache.hadoop.io.compress.zlib.BuiltInGzipDecompressor -->
  19349. <!-- start class org.apache.hadoop.io.compress.zlib.BuiltInZlibDeflater -->
  19350. <class name="BuiltInZlibDeflater" extends="java.util.zip.Deflater"
  19351. abstract="false"
  19352. static="false" final="false" visibility="public"
  19353. deprecated="not deprecated">
  19354. <implements name="org.apache.hadoop.io.compress.Compressor"/>
  19355. <constructor name="BuiltInZlibDeflater" type="int, boolean"
  19356. static="false" final="false" visibility="public"
  19357. deprecated="not deprecated">
  19358. </constructor>
  19359. <constructor name="BuiltInZlibDeflater" type="int"
  19360. static="false" final="false" visibility="public"
  19361. deprecated="not deprecated">
  19362. </constructor>
  19363. <constructor name="BuiltInZlibDeflater"
  19364. static="false" final="false" visibility="public"
  19365. deprecated="not deprecated">
  19366. </constructor>
  19367. <method name="compress" return="int"
  19368. abstract="false" native="false" synchronized="true"
  19369. static="false" final="false" visibility="public"
  19370. deprecated="not deprecated">
  19371. <param name="b" type="byte[]"/>
  19372. <param name="off" type="int"/>
  19373. <param name="len" type="int"/>
  19374. <exception name="IOException" type="java.io.IOException"/>
  19375. </method>
  19376. <method name="reinit"
  19377. abstract="false" native="false" synchronized="false"
  19378. static="false" final="false" visibility="public"
  19379. deprecated="not deprecated">
  19380. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19381. <doc>
  19382. <![CDATA[reinit the compressor with the given configuration. It will reset the
  19383. compressor's compression level and compression strategy. Different from
  19384. <tt>ZlibCompressor</tt>, <tt>BuiltInZlibDeflater</tt> only support three
  19385. kind of compression strategy: FILTERED, HUFFMAN_ONLY and DEFAULT_STRATEGY.
  19386. It will use DEFAULT_STRATEGY as default if the configured compression
  19387. strategy is not supported.]]>
  19388. </doc>
  19389. </method>
  19390. <doc>
  19391. <![CDATA[A wrapper around java.util.zip.Deflater to make it conform
  19392. to org.apache.hadoop.io.compress.Compressor interface.]]>
  19393. </doc>
  19394. </class>
  19395. <!-- end class org.apache.hadoop.io.compress.zlib.BuiltInZlibDeflater -->
  19396. <!-- start class org.apache.hadoop.io.compress.zlib.BuiltInZlibInflater -->
  19397. <class name="BuiltInZlibInflater" extends="java.util.zip.Inflater"
  19398. abstract="false"
  19399. static="false" final="false" visibility="public"
  19400. deprecated="not deprecated">
  19401. <implements name="org.apache.hadoop.io.compress.Decompressor"/>
  19402. <constructor name="BuiltInZlibInflater" type="boolean"
  19403. static="false" final="false" visibility="public"
  19404. deprecated="not deprecated">
  19405. </constructor>
  19406. <constructor name="BuiltInZlibInflater"
  19407. static="false" final="false" visibility="public"
  19408. deprecated="not deprecated">
  19409. </constructor>
  19410. <method name="decompress" return="int"
  19411. abstract="false" native="false" synchronized="true"
  19412. static="false" final="false" visibility="public"
  19413. deprecated="not deprecated">
  19414. <param name="b" type="byte[]"/>
  19415. <param name="off" type="int"/>
  19416. <param name="len" type="int"/>
  19417. <exception name="IOException" type="java.io.IOException"/>
  19418. </method>
  19419. <doc>
  19420. <![CDATA[A wrapper around java.util.zip.Inflater to make it conform
  19421. to org.apache.hadoop.io.compress.Decompressor interface.]]>
  19422. </doc>
  19423. </class>
  19424. <!-- end class org.apache.hadoop.io.compress.zlib.BuiltInZlibInflater -->
  19425. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibCompressor -->
  19426. <class name="ZlibCompressor" extends="java.lang.Object"
  19427. abstract="false"
  19428. static="false" final="false" visibility="public"
  19429. deprecated="not deprecated">
  19430. <implements name="org.apache.hadoop.io.compress.Compressor"/>
  19431. <constructor name="ZlibCompressor"
  19432. static="false" final="false" visibility="public"
  19433. deprecated="not deprecated">
  19434. <doc>
  19435. <![CDATA[Creates a new compressor with the default compression level.
  19436. Compressed data will be generated in ZLIB format.]]>
  19437. </doc>
  19438. </constructor>
  19439. <constructor name="ZlibCompressor" type="org.apache.hadoop.conf.Configuration"
  19440. static="false" final="false" visibility="public"
  19441. deprecated="not deprecated">
  19442. <doc>
  19443. <![CDATA[Creates a new compressor, taking settings from the configuration.]]>
  19444. </doc>
  19445. </constructor>
  19446. <constructor name="ZlibCompressor" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel, org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy, org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader, int"
  19447. static="false" final="false" visibility="public"
  19448. deprecated="not deprecated">
  19449. <doc>
  19450. <![CDATA[Creates a new compressor using the specified compression level.
  19451. Compressed data will be generated in ZLIB format.
  19452. @param level Compression level #CompressionLevel
  19453. @param strategy Compression strategy #CompressionStrategy
  19454. @param header Compression header #CompressionHeader
  19455. @param directBufferSize Size of the direct buffer to be used.]]>
  19456. </doc>
  19457. </constructor>
  19458. <method name="construct"
  19459. abstract="false" native="false" synchronized="false"
  19460. static="false" final="true" visibility="protected"
  19461. deprecated="not deprecated">
  19462. <param name="level" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"/>
  19463. <param name="strategy" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"/>
  19464. <param name="header" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader"/>
  19465. <param name="directBufferSize" type="int"/>
  19466. </method>
  19467. <method name="reinit"
  19468. abstract="false" native="false" synchronized="true"
  19469. static="false" final="false" visibility="public"
  19470. deprecated="not deprecated">
  19471. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19472. <doc>
  19473. <![CDATA[Prepare the compressor to be used in a new stream with settings defined in
  19474. the given Configuration. It will reset the compressor's compression level
  19475. and compression strategy.
  19476. @param conf Configuration storing new settings]]>
  19477. </doc>
  19478. </method>
  19479. <method name="setInput"
  19480. abstract="false" native="false" synchronized="true"
  19481. static="false" final="false" visibility="public"
  19482. deprecated="not deprecated">
  19483. <param name="b" type="byte[]"/>
  19484. <param name="off" type="int"/>
  19485. <param name="len" type="int"/>
  19486. </method>
  19487. <method name="setDictionary"
  19488. abstract="false" native="false" synchronized="true"
  19489. static="false" final="false" visibility="public"
  19490. deprecated="not deprecated">
  19491. <param name="b" type="byte[]"/>
  19492. <param name="off" type="int"/>
  19493. <param name="len" type="int"/>
  19494. </method>
  19495. <method name="needsInput" return="boolean"
  19496. abstract="false" native="false" synchronized="false"
  19497. static="false" final="false" visibility="public"
  19498. deprecated="not deprecated">
  19499. </method>
  19500. <method name="finish"
  19501. abstract="false" native="false" synchronized="true"
  19502. static="false" final="false" visibility="public"
  19503. deprecated="not deprecated">
  19504. </method>
  19505. <method name="finished" return="boolean"
  19506. abstract="false" native="false" synchronized="true"
  19507. static="false" final="false" visibility="public"
  19508. deprecated="not deprecated">
  19509. </method>
  19510. <method name="compress" return="int"
  19511. abstract="false" native="false" synchronized="true"
  19512. static="false" final="false" visibility="public"
  19513. deprecated="not deprecated">
  19514. <param name="b" type="byte[]"/>
  19515. <param name="off" type="int"/>
  19516. <param name="len" type="int"/>
  19517. <exception name="IOException" type="java.io.IOException"/>
  19518. </method>
  19519. <method name="getBytesWritten" return="long"
  19520. abstract="false" native="false" synchronized="true"
  19521. static="false" final="false" visibility="public"
  19522. deprecated="not deprecated">
  19523. <doc>
  19524. <![CDATA[Returns the total number of compressed bytes output so far.
  19525. @return the total (non-negative) number of compressed bytes output so far]]>
  19526. </doc>
  19527. </method>
  19528. <method name="getBytesRead" return="long"
  19529. abstract="false" native="false" synchronized="true"
  19530. static="false" final="false" visibility="public"
  19531. deprecated="not deprecated">
  19532. <doc>
  19533. <![CDATA[Returns the total number of uncompressed bytes input so far.</p>
  19534. @return the total (non-negative) number of uncompressed bytes input so far]]>
  19535. </doc>
  19536. </method>
  19537. <method name="reset"
  19538. abstract="false" native="false" synchronized="true"
  19539. static="false" final="false" visibility="public"
  19540. deprecated="not deprecated">
  19541. </method>
  19542. <method name="end"
  19543. abstract="false" native="false" synchronized="true"
  19544. static="false" final="false" visibility="public"
  19545. deprecated="not deprecated">
  19546. </method>
  19547. <doc>
  19548. <![CDATA[A {@link Compressor} based on the popular
  19549. zlib compression algorithm.
  19550. http://www.zlib.net/]]>
  19551. </doc>
  19552. </class>
  19553. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibCompressor -->
  19554. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader -->
  19555. <class name="ZlibCompressor.CompressionHeader" extends="java.lang.Enum"
  19556. abstract="false"
  19557. static="true" final="true" visibility="public"
  19558. deprecated="not deprecated">
  19559. <method name="values" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader[]"
  19560. abstract="false" native="false" synchronized="false"
  19561. static="true" final="false" visibility="public"
  19562. deprecated="not deprecated">
  19563. </method>
  19564. <method name="valueOf" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader"
  19565. abstract="false" native="false" synchronized="false"
  19566. static="true" final="false" visibility="public"
  19567. deprecated="not deprecated">
  19568. <param name="name" type="java.lang.String"/>
  19569. </method>
  19570. <method name="windowBits" return="int"
  19571. abstract="false" native="false" synchronized="false"
  19572. static="false" final="false" visibility="public"
  19573. deprecated="not deprecated">
  19574. </method>
  19575. <field name="NO_HEADER" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader"
  19576. transient="false" volatile="false"
  19577. static="true" final="true" visibility="public"
  19578. deprecated="not deprecated">
  19579. <doc>
  19580. <![CDATA[No headers/trailers/checksums.]]>
  19581. </doc>
  19582. </field>
  19583. <field name="DEFAULT_HEADER" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader"
  19584. transient="false" volatile="false"
  19585. static="true" final="true" visibility="public"
  19586. deprecated="not deprecated">
  19587. <doc>
  19588. <![CDATA[Default headers/trailers/checksums.]]>
  19589. </doc>
  19590. </field>
  19591. <field name="GZIP_FORMAT" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader"
  19592. transient="false" volatile="false"
  19593. static="true" final="true" visibility="public"
  19594. deprecated="not deprecated">
  19595. <doc>
  19596. <![CDATA[Simple gzip headers/trailers.]]>
  19597. </doc>
  19598. </field>
  19599. <doc>
  19600. <![CDATA[The type of header for compressed data.]]>
  19601. </doc>
  19602. </class>
  19603. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader -->
  19604. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel -->
  19605. <class name="ZlibCompressor.CompressionLevel" extends="java.lang.Enum"
  19606. abstract="false"
  19607. static="true" final="true" visibility="public"
  19608. deprecated="not deprecated">
  19609. <method name="values" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel[]"
  19610. abstract="false" native="false" synchronized="false"
  19611. static="true" final="false" visibility="public"
  19612. deprecated="not deprecated">
  19613. </method>
  19614. <method name="valueOf" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  19615. abstract="false" native="false" synchronized="false"
  19616. static="true" final="false" visibility="public"
  19617. deprecated="not deprecated">
  19618. <param name="name" type="java.lang.String"/>
  19619. </method>
  19620. <field name="NO_COMPRESSION" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  19621. transient="false" volatile="false"
  19622. static="true" final="true" visibility="public"
  19623. deprecated="not deprecated">
  19624. <doc>
  19625. <![CDATA[Compression level for no compression.]]>
  19626. </doc>
  19627. </field>
  19628. <field name="BEST_SPEED" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  19629. transient="false" volatile="false"
  19630. static="true" final="true" visibility="public"
  19631. deprecated="not deprecated">
  19632. <doc>
  19633. <![CDATA[Compression level for fastest compression.]]>
  19634. </doc>
  19635. </field>
  19636. <field name="BEST_COMPRESSION" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  19637. transient="false" volatile="false"
  19638. static="true" final="true" visibility="public"
  19639. deprecated="not deprecated">
  19640. <doc>
  19641. <![CDATA[Compression level for best compression.]]>
  19642. </doc>
  19643. </field>
  19644. <field name="DEFAULT_COMPRESSION" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  19645. transient="false" volatile="false"
  19646. static="true" final="true" visibility="public"
  19647. deprecated="not deprecated">
  19648. <doc>
  19649. <![CDATA[Default compression level.]]>
  19650. </doc>
  19651. </field>
  19652. <doc>
  19653. <![CDATA[The compression level for zlib library.]]>
  19654. </doc>
  19655. </class>
  19656. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel -->
  19657. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy -->
  19658. <class name="ZlibCompressor.CompressionStrategy" extends="java.lang.Enum"
  19659. abstract="false"
  19660. static="true" final="true" visibility="public"
  19661. deprecated="not deprecated">
  19662. <method name="values" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy[]"
  19663. abstract="false" native="false" synchronized="false"
  19664. static="true" final="false" visibility="public"
  19665. deprecated="not deprecated">
  19666. </method>
  19667. <method name="valueOf" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  19668. abstract="false" native="false" synchronized="false"
  19669. static="true" final="false" visibility="public"
  19670. deprecated="not deprecated">
  19671. <param name="name" type="java.lang.String"/>
  19672. </method>
  19673. <field name="FILTERED" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  19674. transient="false" volatile="false"
  19675. static="true" final="true" visibility="public"
  19676. deprecated="not deprecated">
  19677. <doc>
  19678. <![CDATA[Compression strategy best used for data consisting mostly of small
  19679. values with a somewhat random distribution. Forces more Huffman coding
  19680. and less string matching.]]>
  19681. </doc>
  19682. </field>
  19683. <field name="HUFFMAN_ONLY" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  19684. transient="false" volatile="false"
  19685. static="true" final="true" visibility="public"
  19686. deprecated="not deprecated">
  19687. <doc>
  19688. <![CDATA[Compression strategy for Huffman coding only.]]>
  19689. </doc>
  19690. </field>
  19691. <field name="RLE" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  19692. transient="false" volatile="false"
  19693. static="true" final="true" visibility="public"
  19694. deprecated="not deprecated">
  19695. <doc>
  19696. <![CDATA[Compression strategy to limit match distances to one
  19697. (run-length encoding).]]>
  19698. </doc>
  19699. </field>
  19700. <field name="FIXED" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  19701. transient="false" volatile="false"
  19702. static="true" final="true" visibility="public"
  19703. deprecated="not deprecated">
  19704. <doc>
  19705. <![CDATA[Compression strategy to prevent the use of dynamic Huffman codes,
  19706. allowing for a simpler decoder for special applications.]]>
  19707. </doc>
  19708. </field>
  19709. <field name="DEFAULT_STRATEGY" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  19710. transient="false" volatile="false"
  19711. static="true" final="true" visibility="public"
  19712. deprecated="not deprecated">
  19713. <doc>
  19714. <![CDATA[Default compression strategy.]]>
  19715. </doc>
  19716. </field>
  19717. <doc>
  19718. <![CDATA[The compression level for zlib library.]]>
  19719. </doc>
  19720. </class>
  19721. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy -->
  19722. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibDecompressor -->
  19723. <class name="ZlibDecompressor" extends="java.lang.Object"
  19724. abstract="false"
  19725. static="false" final="false" visibility="public"
  19726. deprecated="not deprecated">
  19727. <implements name="org.apache.hadoop.io.compress.Decompressor"/>
  19728. <constructor name="ZlibDecompressor" type="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader, int"
  19729. static="false" final="false" visibility="public"
  19730. deprecated="not deprecated">
  19731. <doc>
  19732. <![CDATA[Creates a new decompressor.]]>
  19733. </doc>
  19734. </constructor>
  19735. <constructor name="ZlibDecompressor"
  19736. static="false" final="false" visibility="public"
  19737. deprecated="not deprecated">
  19738. </constructor>
  19739. <method name="setInput"
  19740. abstract="false" native="false" synchronized="true"
  19741. static="false" final="false" visibility="public"
  19742. deprecated="not deprecated">
  19743. <param name="b" type="byte[]"/>
  19744. <param name="off" type="int"/>
  19745. <param name="len" type="int"/>
  19746. </method>
  19747. <method name="setDictionary"
  19748. abstract="false" native="false" synchronized="true"
  19749. static="false" final="false" visibility="public"
  19750. deprecated="not deprecated">
  19751. <param name="b" type="byte[]"/>
  19752. <param name="off" type="int"/>
  19753. <param name="len" type="int"/>
  19754. </method>
  19755. <method name="needsInput" return="boolean"
  19756. abstract="false" native="false" synchronized="true"
  19757. static="false" final="false" visibility="public"
  19758. deprecated="not deprecated">
  19759. </method>
  19760. <method name="needsDictionary" return="boolean"
  19761. abstract="false" native="false" synchronized="true"
  19762. static="false" final="false" visibility="public"
  19763. deprecated="not deprecated">
  19764. </method>
  19765. <method name="finished" return="boolean"
  19766. abstract="false" native="false" synchronized="true"
  19767. static="false" final="false" visibility="public"
  19768. deprecated="not deprecated">
  19769. </method>
  19770. <method name="decompress" return="int"
  19771. abstract="false" native="false" synchronized="true"
  19772. static="false" final="false" visibility="public"
  19773. deprecated="not deprecated">
  19774. <param name="b" type="byte[]"/>
  19775. <param name="off" type="int"/>
  19776. <param name="len" type="int"/>
  19777. <exception name="IOException" type="java.io.IOException"/>
  19778. </method>
  19779. <method name="getBytesWritten" return="long"
  19780. abstract="false" native="false" synchronized="true"
  19781. static="false" final="false" visibility="public"
  19782. deprecated="not deprecated">
  19783. <doc>
  19784. <![CDATA[Returns the total number of uncompressed bytes output so far.
  19785. @return the total (non-negative) number of uncompressed bytes output so far]]>
  19786. </doc>
  19787. </method>
  19788. <method name="getBytesRead" return="long"
  19789. abstract="false" native="false" synchronized="true"
  19790. static="false" final="false" visibility="public"
  19791. deprecated="not deprecated">
  19792. <doc>
  19793. <![CDATA[Returns the total number of compressed bytes input so far.</p>
  19794. @return the total (non-negative) number of compressed bytes input so far]]>
  19795. </doc>
  19796. </method>
  19797. <method name="getRemaining" return="int"
  19798. abstract="false" native="false" synchronized="true"
  19799. static="false" final="false" visibility="public"
  19800. deprecated="not deprecated">
  19801. <doc>
  19802. <![CDATA[Returns the number of bytes remaining in the input buffers; normally
  19803. called when finished() is true to determine amount of post-gzip-stream
  19804. data.</p>
  19805. @return the total (non-negative) number of unprocessed bytes in input]]>
  19806. </doc>
  19807. </method>
  19808. <method name="reset"
  19809. abstract="false" native="false" synchronized="true"
  19810. static="false" final="false" visibility="public"
  19811. deprecated="not deprecated">
  19812. <doc>
  19813. <![CDATA[Resets everything including the input buffers (user and direct).</p>]]>
  19814. </doc>
  19815. </method>
  19816. <method name="end"
  19817. abstract="false" native="false" synchronized="true"
  19818. static="false" final="false" visibility="public"
  19819. deprecated="not deprecated">
  19820. </method>
  19821. <method name="finalize"
  19822. abstract="false" native="false" synchronized="false"
  19823. static="false" final="false" visibility="protected"
  19824. deprecated="not deprecated">
  19825. </method>
  19826. <doc>
  19827. <![CDATA[A {@link Decompressor} based on the popular
  19828. zlib compression algorithm.
  19829. http://www.zlib.net/]]>
  19830. </doc>
  19831. </class>
  19832. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibDecompressor -->
  19833. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader -->
  19834. <class name="ZlibDecompressor.CompressionHeader" extends="java.lang.Enum"
  19835. abstract="false"
  19836. static="true" final="true" visibility="public"
  19837. deprecated="not deprecated">
  19838. <method name="values" return="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader[]"
  19839. abstract="false" native="false" synchronized="false"
  19840. static="true" final="false" visibility="public"
  19841. deprecated="not deprecated">
  19842. </method>
  19843. <method name="valueOf" return="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader"
  19844. abstract="false" native="false" synchronized="false"
  19845. static="true" final="false" visibility="public"
  19846. deprecated="not deprecated">
  19847. <param name="name" type="java.lang.String"/>
  19848. </method>
  19849. <method name="windowBits" return="int"
  19850. abstract="false" native="false" synchronized="false"
  19851. static="false" final="false" visibility="public"
  19852. deprecated="not deprecated">
  19853. </method>
  19854. <field name="NO_HEADER" type="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader"
  19855. transient="false" volatile="false"
  19856. static="true" final="true" visibility="public"
  19857. deprecated="not deprecated">
  19858. <doc>
  19859. <![CDATA[No headers/trailers/checksums.]]>
  19860. </doc>
  19861. </field>
  19862. <field name="DEFAULT_HEADER" type="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader"
  19863. transient="false" volatile="false"
  19864. static="true" final="true" visibility="public"
  19865. deprecated="not deprecated">
  19866. <doc>
  19867. <![CDATA[Default headers/trailers/checksums.]]>
  19868. </doc>
  19869. </field>
  19870. <field name="GZIP_FORMAT" type="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader"
  19871. transient="false" volatile="false"
  19872. static="true" final="true" visibility="public"
  19873. deprecated="not deprecated">
  19874. <doc>
  19875. <![CDATA[Simple gzip headers/trailers.]]>
  19876. </doc>
  19877. </field>
  19878. <field name="AUTODETECT_GZIP_ZLIB" type="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader"
  19879. transient="false" volatile="false"
  19880. static="true" final="true" visibility="public"
  19881. deprecated="not deprecated">
  19882. <doc>
  19883. <![CDATA[Autodetect gzip/zlib headers/trailers.]]>
  19884. </doc>
  19885. </field>
  19886. <doc>
  19887. <![CDATA[The headers to detect from compressed data.]]>
  19888. </doc>
  19889. </class>
  19890. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader -->
  19891. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibFactory -->
  19892. <class name="ZlibFactory" extends="java.lang.Object"
  19893. abstract="false"
  19894. static="false" final="false" visibility="public"
  19895. deprecated="not deprecated">
  19896. <constructor name="ZlibFactory"
  19897. static="false" final="false" visibility="public"
  19898. deprecated="not deprecated">
  19899. </constructor>
  19900. <method name="isNativeZlibLoaded" return="boolean"
  19901. abstract="false" native="false" synchronized="false"
  19902. static="true" final="false" visibility="public"
  19903. deprecated="not deprecated">
  19904. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19905. <doc>
  19906. <![CDATA[Check if native-zlib code is loaded & initialized correctly and
  19907. can be loaded for this job.
  19908. @param conf configuration
  19909. @return <code>true</code> if native-zlib is loaded & initialized
  19910. and can be loaded for this job, else <code>false</code>]]>
  19911. </doc>
  19912. </method>
  19913. <method name="getZlibCompressorType" return="java.lang.Class"
  19914. abstract="false" native="false" synchronized="false"
  19915. static="true" final="false" visibility="public"
  19916. deprecated="not deprecated">
  19917. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19918. <doc>
  19919. <![CDATA[Return the appropriate type of the zlib compressor.
  19920. @param conf configuration
  19921. @return the appropriate type of the zlib compressor.]]>
  19922. </doc>
  19923. </method>
  19924. <method name="getZlibCompressor" return="org.apache.hadoop.io.compress.Compressor"
  19925. abstract="false" native="false" synchronized="false"
  19926. static="true" final="false" visibility="public"
  19927. deprecated="not deprecated">
  19928. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19929. <doc>
  19930. <![CDATA[Return the appropriate implementation of the zlib compressor.
  19931. @param conf configuration
  19932. @return the appropriate implementation of the zlib compressor.]]>
  19933. </doc>
  19934. </method>
  19935. <method name="getZlibDecompressorType" return="java.lang.Class"
  19936. abstract="false" native="false" synchronized="false"
  19937. static="true" final="false" visibility="public"
  19938. deprecated="not deprecated">
  19939. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19940. <doc>
  19941. <![CDATA[Return the appropriate type of the zlib decompressor.
  19942. @param conf configuration
  19943. @return the appropriate type of the zlib decompressor.]]>
  19944. </doc>
  19945. </method>
  19946. <method name="getZlibDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  19947. abstract="false" native="false" synchronized="false"
  19948. static="true" final="false" visibility="public"
  19949. deprecated="not deprecated">
  19950. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19951. <doc>
  19952. <![CDATA[Return the appropriate implementation of the zlib decompressor.
  19953. @param conf configuration
  19954. @return the appropriate implementation of the zlib decompressor.]]>
  19955. </doc>
  19956. </method>
  19957. <method name="setCompressionStrategy"
  19958. abstract="false" native="false" synchronized="false"
  19959. static="true" final="false" visibility="public"
  19960. deprecated="not deprecated">
  19961. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19962. <param name="strategy" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"/>
  19963. </method>
  19964. <method name="getCompressionStrategy" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  19965. abstract="false" native="false" synchronized="false"
  19966. static="true" final="false" visibility="public"
  19967. deprecated="not deprecated">
  19968. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19969. </method>
  19970. <method name="setCompressionLevel"
  19971. abstract="false" native="false" synchronized="false"
  19972. static="true" final="false" visibility="public"
  19973. deprecated="not deprecated">
  19974. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19975. <param name="level" type="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"/>
  19976. </method>
  19977. <method name="getCompressionLevel" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  19978. abstract="false" native="false" synchronized="false"
  19979. static="true" final="false" visibility="public"
  19980. deprecated="not deprecated">
  19981. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19982. </method>
  19983. <doc>
  19984. <![CDATA[A collection of factories to create the right
  19985. zlib/gzip compressor/decompressor instances.]]>
  19986. </doc>
  19987. </class>
  19988. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibFactory -->
  19989. </package>
  19990. <package name="org.apache.hadoop.io.file.tfile">
  19991. <!-- start class org.apache.hadoop.io.file.tfile.ByteArray -->
  19992. <class name="ByteArray" extends="java.lang.Object"
  19993. abstract="false"
  19994. static="false" final="true" visibility="public"
  19995. deprecated="not deprecated">
  19996. <implements name="org.apache.hadoop.io.file.tfile.RawComparable"/>
  19997. <constructor name="ByteArray" type="org.apache.hadoop.io.BytesWritable"
  19998. static="false" final="false" visibility="public"
  19999. deprecated="not deprecated">
  20000. <doc>
  20001. <![CDATA[Constructing a ByteArray from a {@link BytesWritable}.
  20002. @param other]]>
  20003. </doc>
  20004. </constructor>
  20005. <constructor name="ByteArray" type="byte[]"
  20006. static="false" final="false" visibility="public"
  20007. deprecated="not deprecated">
  20008. <doc>
  20009. <![CDATA[Wrap a whole byte array as a RawComparable.
  20010. @param buffer
  20011. the byte array buffer.]]>
  20012. </doc>
  20013. </constructor>
  20014. <constructor name="ByteArray" type="byte[], int, int"
  20015. static="false" final="false" visibility="public"
  20016. deprecated="not deprecated">
  20017. <doc>
  20018. <![CDATA[Wrap a partial byte array as a RawComparable.
  20019. @param buffer
  20020. the byte array buffer.
  20021. @param offset
  20022. the starting offset
  20023. @param len
  20024. the length of the consecutive bytes to be wrapped.]]>
  20025. </doc>
  20026. </constructor>
  20027. <method name="buffer" return="byte[]"
  20028. abstract="false" native="false" synchronized="false"
  20029. static="false" final="false" visibility="public"
  20030. deprecated="not deprecated">
  20031. <doc>
  20032. <![CDATA[@return the underlying buffer.]]>
  20033. </doc>
  20034. </method>
  20035. <method name="offset" return="int"
  20036. abstract="false" native="false" synchronized="false"
  20037. static="false" final="false" visibility="public"
  20038. deprecated="not deprecated">
  20039. <doc>
  20040. <![CDATA[@return the offset in the buffer.]]>
  20041. </doc>
  20042. </method>
  20043. <method name="size" return="int"
  20044. abstract="false" native="false" synchronized="false"
  20045. static="false" final="false" visibility="public"
  20046. deprecated="not deprecated">
  20047. <doc>
  20048. <![CDATA[@return the size of the byte array.]]>
  20049. </doc>
  20050. </method>
  20051. <doc>
  20052. <![CDATA[Adaptor class to wrap byte-array backed objects (including java byte array)
  20053. as RawComparable objects.]]>
  20054. </doc>
  20055. </class>
  20056. <!-- end class org.apache.hadoop.io.file.tfile.ByteArray -->
  20057. <!-- start class org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists -->
  20058. <class name="MetaBlockAlreadyExists" extends="java.io.IOException"
  20059. abstract="false"
  20060. static="false" final="false" visibility="public"
  20061. deprecated="not deprecated">
  20062. <doc>
  20063. <![CDATA[Exception - Meta Block with the same name already exists.]]>
  20064. </doc>
  20065. </class>
  20066. <!-- end class org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists -->
  20067. <!-- start class org.apache.hadoop.io.file.tfile.MetaBlockDoesNotExist -->
  20068. <class name="MetaBlockDoesNotExist" extends="java.io.IOException"
  20069. abstract="false"
  20070. static="false" final="false" visibility="public"
  20071. deprecated="not deprecated">
  20072. <doc>
  20073. <![CDATA[Exception - No such Meta Block with the given name.]]>
  20074. </doc>
  20075. </class>
  20076. <!-- end class org.apache.hadoop.io.file.tfile.MetaBlockDoesNotExist -->
  20077. <!-- start interface org.apache.hadoop.io.file.tfile.RawComparable -->
  20078. <interface name="RawComparable" abstract="true"
  20079. static="false" final="false" visibility="public"
  20080. deprecated="not deprecated">
  20081. <method name="buffer" return="byte[]"
  20082. abstract="false" native="false" synchronized="false"
  20083. static="false" final="false" visibility="public"
  20084. deprecated="not deprecated">
  20085. <doc>
  20086. <![CDATA[Get the underlying byte array.
  20087. @return The underlying byte array.]]>
  20088. </doc>
  20089. </method>
  20090. <method name="offset" return="int"
  20091. abstract="false" native="false" synchronized="false"
  20092. static="false" final="false" visibility="public"
  20093. deprecated="not deprecated">
  20094. <doc>
  20095. <![CDATA[Get the offset of the first byte in the byte array.
  20096. @return The offset of the first byte in the byte array.]]>
  20097. </doc>
  20098. </method>
  20099. <method name="size" return="int"
  20100. abstract="false" native="false" synchronized="false"
  20101. static="false" final="false" visibility="public"
  20102. deprecated="not deprecated">
  20103. <doc>
  20104. <![CDATA[Get the size of the byte range in the byte array.
  20105. @return The size of the byte range in the byte array.]]>
  20106. </doc>
  20107. </method>
  20108. <doc>
  20109. <![CDATA[Interface for objects that can be compared through {@link RawComparator}.
  20110. This is useful in places where we need a single object reference to specify a
  20111. range of bytes in a byte array, such as {@link Comparable} or
  20112. {@link Collections#binarySearch(java.util.List, Object, Comparator)}
  20113. The actual comparison among RawComparable's requires an external
  20114. RawComparator and it is applications' responsibility to ensure two
  20115. RawComparable are supposed to be semantically comparable with the same
  20116. RawComparator.]]>
  20117. </doc>
  20118. </interface>
  20119. <!-- end interface org.apache.hadoop.io.file.tfile.RawComparable -->
  20120. <!-- start class org.apache.hadoop.io.file.tfile.TFile -->
  20121. <class name="TFile" extends="java.lang.Object"
  20122. abstract="false"
  20123. static="false" final="false" visibility="public"
  20124. deprecated="not deprecated">
  20125. <method name="makeComparator" return="java.util.Comparator"
  20126. abstract="false" native="false" synchronized="false"
  20127. static="true" final="false" visibility="public"
  20128. deprecated="not deprecated">
  20129. <param name="name" type="java.lang.String"/>
  20130. <doc>
  20131. <![CDATA[Make a raw comparator from a string name.
  20132. @param name
  20133. Comparator name
  20134. @return A RawComparable comparator.]]>
  20135. </doc>
  20136. </method>
  20137. <method name="getSupportedCompressionAlgorithms" return="java.lang.String[]"
  20138. abstract="false" native="false" synchronized="false"
  20139. static="true" final="false" visibility="public"
  20140. deprecated="not deprecated">
  20141. <doc>
  20142. <![CDATA[Get names of supported compression algorithms. The names are acceptable by
  20143. TFile.Writer.
  20144. @return Array of strings, each represents a supported compression
  20145. algorithm. Currently, the following compression algorithms are
  20146. supported.
  20147. <ul>
  20148. <li>"none" - No compression.
  20149. <li>"lzo" - LZO compression.
  20150. <li>"gz" - GZIP compression.
  20151. </ul>]]>
  20152. </doc>
  20153. </method>
  20154. <method name="main"
  20155. abstract="false" native="false" synchronized="false"
  20156. static="true" final="false" visibility="public"
  20157. deprecated="not deprecated">
  20158. <param name="args" type="java.lang.String[]"/>
  20159. <doc>
  20160. <![CDATA[Dumping the TFile information.
  20161. @param args
  20162. A list of TFile paths.]]>
  20163. </doc>
  20164. </method>
  20165. <field name="COMPRESSION_GZ" type="java.lang.String"
  20166. transient="false" volatile="false"
  20167. static="true" final="true" visibility="public"
  20168. deprecated="not deprecated">
  20169. <doc>
  20170. <![CDATA[compression: gzip]]>
  20171. </doc>
  20172. </field>
  20173. <field name="COMPRESSION_LZO" type="java.lang.String"
  20174. transient="false" volatile="false"
  20175. static="true" final="true" visibility="public"
  20176. deprecated="not deprecated">
  20177. <doc>
  20178. <![CDATA[compression: lzo]]>
  20179. </doc>
  20180. </field>
  20181. <field name="COMPRESSION_NONE" type="java.lang.String"
  20182. transient="false" volatile="false"
  20183. static="true" final="true" visibility="public"
  20184. deprecated="not deprecated">
  20185. <doc>
  20186. <![CDATA[compression: none]]>
  20187. </doc>
  20188. </field>
  20189. <field name="COMPARATOR_MEMCMP" type="java.lang.String"
  20190. transient="false" volatile="false"
  20191. static="true" final="true" visibility="public"
  20192. deprecated="not deprecated">
  20193. <doc>
  20194. <![CDATA[comparator: memcmp]]>
  20195. </doc>
  20196. </field>
  20197. <field name="COMPARATOR_JCLASS" type="java.lang.String"
  20198. transient="false" volatile="false"
  20199. static="true" final="true" visibility="public"
  20200. deprecated="not deprecated">
  20201. <doc>
  20202. <![CDATA[comparator prefix: java class]]>
  20203. </doc>
  20204. </field>
  20205. <doc>
  20206. <![CDATA[A TFile is a container of key-value pairs. Both keys and values are type-less
  20207. bytes. Keys are restricted to 64KB, value length is not restricted
  20208. (practically limited to the available disk storage). TFile further provides
  20209. the following features:
  20210. <ul>
  20211. <li>Block Compression.
  20212. <li>Named meta data blocks.
  20213. <li>Sorted or unsorted keys.
  20214. <li>Seek by key or by file offset.
  20215. </ul>
  20216. The memory footprint of a TFile includes the following:
  20217. <ul>
  20218. <li>Some constant overhead of reading or writing a compressed block.
  20219. <ul>
  20220. <li>Each compressed block requires one compression/decompression codec for
  20221. I/O.
  20222. <li>Temporary space to buffer the key.
  20223. <li>Temporary space to buffer the value (for TFile.Writer only). Values are
  20224. chunk encoded, so that we buffer at most one chunk of user data. By default,
  20225. the chunk buffer is 1MB. Reading chunked value does not require additional
  20226. memory.
  20227. </ul>
  20228. <li>TFile index, which is proportional to the total number of Data Blocks.
  20229. The total amount of memory needed to hold the index can be estimated as
  20230. (56+AvgKeySize)*NumBlocks.
  20231. <li>MetaBlock index, which is proportional to the total number of Meta
  20232. Blocks.The total amount of memory needed to hold the index for Meta Blocks
  20233. can be estimated as (40+AvgMetaBlockName)*NumMetaBlock.
  20234. </ul>
  20235. <p>
  20236. The behavior of TFile can be customized by the following variables through
  20237. Configuration:
  20238. <ul>
  20239. <li><b>tfile.io.chunk.size</b>: Value chunk size. Integer (in bytes). Default
  20240. to 1MB. Values of the length less than the chunk size is guaranteed to have
  20241. known value length in read time (See
  20242. {@link TFile.Reader.Scanner.Entry#isValueLengthKnown()}).
  20243. <li><b>tfile.fs.output.buffer.size</b>: Buffer size used for
  20244. FSDataOutputStream. Integer (in bytes). Default to 256KB.
  20245. <li><b>tfile.fs.input.buffer.size</b>: Buffer size used for
  20246. FSDataInputStream. Integer (in bytes). Default to 256KB.
  20247. </ul>
  20248. <p>
  20249. Suggestions on performance optimization.
  20250. <ul>
  20251. <li>Minimum block size. We recommend a setting of minimum block size between
  20252. 256KB to 1MB for general usage. Larger block size is preferred if files are
  20253. primarily for sequential access. However, it would lead to inefficient random
  20254. access (because there are more data to decompress). Smaller blocks are good
  20255. for random access, but require more memory to hold the block index, and may
  20256. be slower to create (because we must flush the compressor stream at the
  20257. conclusion of each data block, which leads to an FS I/O flush). Further, due
  20258. to the internal caching in Compression codec, the smallest possible block
  20259. size would be around 20KB-30KB.
  20260. <li>The current implementation does not offer true multi-threading for
  20261. reading. The implementation uses FSDataInputStream seek()+read(), which is
  20262. shown to be much faster than positioned-read call in single thread mode.
  20263. However, it also means that if multiple threads attempt to access the same
  20264. TFile (using multiple scanners) simultaneously, the actual I/O is carried out
  20265. sequentially even if they access different DFS blocks.
  20266. <li>Compression codec. Use "none" if the data is not very compressable (by
  20267. compressable, I mean a compression ratio at least 2:1). Generally, use "lzo"
  20268. as the starting point for experimenting. "gz" overs slightly better
  20269. compression ratio over "lzo" but requires 4x CPU to compress and 2x CPU to
  20270. decompress, comparing to "lzo".
  20271. <li>File system buffering, if the underlying FSDataInputStream and
  20272. FSDataOutputStream is already adequately buffered; or if applications
  20273. reads/writes keys and values in large buffers, we can reduce the sizes of
  20274. input/output buffering in TFile layer by setting the configuration parameters
  20275. "tfile.fs.input.buffer.size" and "tfile.fs.output.buffer.size".
  20276. </ul>
  20277. Some design rationale behind TFile can be found at <a
  20278. href=https://issues.apache.org/jira/browse/HADOOP-3315>Hadoop-3315</a>.]]>
  20279. </doc>
  20280. </class>
  20281. <!-- end class org.apache.hadoop.io.file.tfile.TFile -->
  20282. <!-- start class org.apache.hadoop.io.file.tfile.TFile.Reader -->
  20283. <class name="TFile.Reader" extends="java.lang.Object"
  20284. abstract="false"
  20285. static="true" final="false" visibility="public"
  20286. deprecated="not deprecated">
  20287. <implements name="java.io.Closeable"/>
  20288. <constructor name="TFile.Reader" type="org.apache.hadoop.fs.FSDataInputStream, long, org.apache.hadoop.conf.Configuration"
  20289. static="false" final="false" visibility="public"
  20290. deprecated="not deprecated">
  20291. <exception name="IOException" type="java.io.IOException"/>
  20292. <doc>
  20293. <![CDATA[Constructor
  20294. @param fsdis
  20295. FS input stream of the TFile.
  20296. @param fileLength
  20297. The length of TFile. This is required because we have no easy
  20298. way of knowing the actual size of the input file through the
  20299. File input stream.
  20300. @param conf
  20301. @throws IOException]]>
  20302. </doc>
  20303. </constructor>
  20304. <method name="close"
  20305. abstract="false" native="false" synchronized="false"
  20306. static="false" final="false" visibility="public"
  20307. deprecated="not deprecated">
  20308. <exception name="IOException" type="java.io.IOException"/>
  20309. <doc>
  20310. <![CDATA[Close the reader. The state of the Reader object is undefined after
  20311. close. Calling close() for multiple times has no effect.]]>
  20312. </doc>
  20313. </method>
  20314. <method name="getComparatorName" return="java.lang.String"
  20315. abstract="false" native="false" synchronized="false"
  20316. static="false" final="false" visibility="public"
  20317. deprecated="not deprecated">
  20318. <doc>
  20319. <![CDATA[Get the string representation of the comparator.
  20320. @return If the TFile is not sorted by keys, an empty string will be
  20321. returned. Otherwise, the actual comparator string that is
  20322. provided during the TFile creation time will be returned.]]>
  20323. </doc>
  20324. </method>
  20325. <method name="isSorted" return="boolean"
  20326. abstract="false" native="false" synchronized="false"
  20327. static="false" final="false" visibility="public"
  20328. deprecated="not deprecated">
  20329. <doc>
  20330. <![CDATA[Is the TFile sorted?
  20331. @return true if TFile is sorted.]]>
  20332. </doc>
  20333. </method>
  20334. <method name="getEntryCount" return="long"
  20335. abstract="false" native="false" synchronized="false"
  20336. static="false" final="false" visibility="public"
  20337. deprecated="not deprecated">
  20338. <doc>
  20339. <![CDATA[Get the number of key-value pair entries in TFile.
  20340. @return the number of key-value pairs in TFile]]>
  20341. </doc>
  20342. </method>
  20343. <method name="getFirstKey" return="org.apache.hadoop.io.file.tfile.RawComparable"
  20344. abstract="false" native="false" synchronized="false"
  20345. static="false" final="false" visibility="public"
  20346. deprecated="not deprecated">
  20347. <exception name="IOException" type="java.io.IOException"/>
  20348. <doc>
  20349. <![CDATA[Get the first key in the TFile.
  20350. @return The first key in the TFile.
  20351. @throws IOException]]>
  20352. </doc>
  20353. </method>
  20354. <method name="getLastKey" return="org.apache.hadoop.io.file.tfile.RawComparable"
  20355. abstract="false" native="false" synchronized="false"
  20356. static="false" final="false" visibility="public"
  20357. deprecated="not deprecated">
  20358. <exception name="IOException" type="java.io.IOException"/>
  20359. <doc>
  20360. <![CDATA[Get the last key in the TFile.
  20361. @return The last key in the TFile.
  20362. @throws IOException]]>
  20363. </doc>
  20364. </method>
  20365. <method name="getEntryComparator" return="java.util.Comparator"
  20366. abstract="false" native="false" synchronized="false"
  20367. static="false" final="false" visibility="public"
  20368. deprecated="not deprecated">
  20369. <doc>
  20370. <![CDATA[Get a Comparator object to compare Entries. It is useful when you want
  20371. stores the entries in a collection (such as PriorityQueue) and perform
  20372. sorting or comparison among entries based on the keys without copying out
  20373. the key.
  20374. @return An Entry Comparator..]]>
  20375. </doc>
  20376. </method>
  20377. <method name="getComparator" return="java.util.Comparator"
  20378. abstract="false" native="false" synchronized="false"
  20379. static="false" final="false" visibility="public"
  20380. deprecated="not deprecated">
  20381. <doc>
  20382. <![CDATA[Get an instance of the RawComparator that is constructed based on the
  20383. string comparator representation.
  20384. @return a Comparator that can compare RawComparable's.]]>
  20385. </doc>
  20386. </method>
  20387. <method name="getMetaBlock" return="java.io.DataInputStream"
  20388. abstract="false" native="false" synchronized="false"
  20389. static="false" final="false" visibility="public"
  20390. deprecated="not deprecated">
  20391. <param name="name" type="java.lang.String"/>
  20392. <exception name="IOException" type="java.io.IOException"/>
  20393. <exception name="MetaBlockDoesNotExist" type="org.apache.hadoop.io.file.tfile.MetaBlockDoesNotExist"/>
  20394. <doc>
  20395. <![CDATA[Stream access to a meta block.``
  20396. @param name
  20397. The name of the meta block.
  20398. @return The input stream.
  20399. @throws IOException
  20400. on I/O error.
  20401. @throws MetaBlockDoesNotExist
  20402. If the meta block with the name does not exist.]]>
  20403. </doc>
  20404. </method>
  20405. <method name="getRecordNumNear" return="long"
  20406. abstract="false" native="false" synchronized="false"
  20407. static="false" final="false" visibility="public"
  20408. deprecated="not deprecated">
  20409. <param name="offset" type="long"/>
  20410. <exception name="IOException" type="java.io.IOException"/>
  20411. <doc>
  20412. <![CDATA[Get the RecordNum for the first key-value pair in a compressed block
  20413. whose byte offset in the TFile is greater than or equal to the specified
  20414. offset.
  20415. @param offset
  20416. the user supplied offset.
  20417. @return the RecordNum to the corresponding entry. If no such entry
  20418. exists, it returns the total entry count.
  20419. @throws IOException]]>
  20420. </doc>
  20421. </method>
  20422. <method name="getKeyNear" return="org.apache.hadoop.io.file.tfile.RawComparable"
  20423. abstract="false" native="false" synchronized="false"
  20424. static="false" final="false" visibility="public"
  20425. deprecated="not deprecated">
  20426. <param name="offset" type="long"/>
  20427. <exception name="IOException" type="java.io.IOException"/>
  20428. <doc>
  20429. <![CDATA[Get a sample key that is within a block whose starting offset is greater
  20430. than or equal to the specified offset.
  20431. @param offset
  20432. The file offset.
  20433. @return the key that fits the requirement; or null if no such key exists
  20434. (which could happen if the offset is close to the end of the
  20435. TFile).
  20436. @throws IOException]]>
  20437. </doc>
  20438. </method>
  20439. <method name="createScanner" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  20440. abstract="false" native="false" synchronized="false"
  20441. static="false" final="false" visibility="public"
  20442. deprecated="not deprecated">
  20443. <exception name="IOException" type="java.io.IOException"/>
  20444. <doc>
  20445. <![CDATA[Get a scanner than can scan the whole TFile.
  20446. @return The scanner object. A valid Scanner is always returned even if
  20447. the TFile is empty.
  20448. @throws IOException]]>
  20449. </doc>
  20450. </method>
  20451. <method name="createScannerByByteRange" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  20452. abstract="false" native="false" synchronized="false"
  20453. static="false" final="false" visibility="public"
  20454. deprecated="not deprecated">
  20455. <param name="offset" type="long"/>
  20456. <param name="length" type="long"/>
  20457. <exception name="IOException" type="java.io.IOException"/>
  20458. <doc>
  20459. <![CDATA[Get a scanner that covers a portion of TFile based on byte offsets.
  20460. @param offset
  20461. The beginning byte offset in the TFile.
  20462. @param length
  20463. The length of the region.
  20464. @return The actual coverage of the returned scanner tries to match the
  20465. specified byte-region but always round up to the compression
  20466. block boundaries. It is possible that the returned scanner
  20467. contains zero key-value pairs even if length is positive.
  20468. @throws IOException]]>
  20469. </doc>
  20470. </method>
  20471. <method name="createScanner" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  20472. abstract="false" native="false" synchronized="false"
  20473. static="false" final="false" visibility="public"
  20474. deprecated="Use {@link #createScannerByKey(byte[], byte[])} instead.">
  20475. <param name="beginKey" type="byte[]"/>
  20476. <param name="endKey" type="byte[]"/>
  20477. <exception name="IOException" type="java.io.IOException"/>
  20478. <doc>
  20479. <![CDATA[Get a scanner that covers a portion of TFile based on keys.
  20480. @param beginKey
  20481. Begin key of the scan (inclusive). If null, scan from the first
  20482. key-value entry of the TFile.
  20483. @param endKey
  20484. End key of the scan (exclusive). If null, scan up to the last
  20485. key-value entry of the TFile.
  20486. @return The actual coverage of the returned scanner will cover all keys
  20487. greater than or equal to the beginKey and less than the endKey.
  20488. @throws IOException
  20489. @deprecated Use {@link #createScannerByKey(byte[], byte[])} instead.]]>
  20490. </doc>
  20491. </method>
  20492. <method name="createScannerByKey" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  20493. abstract="false" native="false" synchronized="false"
  20494. static="false" final="false" visibility="public"
  20495. deprecated="not deprecated">
  20496. <param name="beginKey" type="byte[]"/>
  20497. <param name="endKey" type="byte[]"/>
  20498. <exception name="IOException" type="java.io.IOException"/>
  20499. <doc>
  20500. <![CDATA[Get a scanner that covers a portion of TFile based on keys.
  20501. @param beginKey
  20502. Begin key of the scan (inclusive). If null, scan from the first
  20503. key-value entry of the TFile.
  20504. @param endKey
  20505. End key of the scan (exclusive). If null, scan up to the last
  20506. key-value entry of the TFile.
  20507. @return The actual coverage of the returned scanner will cover all keys
  20508. greater than or equal to the beginKey and less than the endKey.
  20509. @throws IOException]]>
  20510. </doc>
  20511. </method>
  20512. <method name="createScanner" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  20513. abstract="false" native="false" synchronized="false"
  20514. static="false" final="false" visibility="public"
  20515. deprecated="Use {@link #createScannerByKey(RawComparable, RawComparable)}
  20516. instead.">
  20517. <param name="beginKey" type="org.apache.hadoop.io.file.tfile.RawComparable"/>
  20518. <param name="endKey" type="org.apache.hadoop.io.file.tfile.RawComparable"/>
  20519. <exception name="IOException" type="java.io.IOException"/>
  20520. <doc>
  20521. <![CDATA[Get a scanner that covers a specific key range.
  20522. @param beginKey
  20523. Begin key of the scan (inclusive). If null, scan from the first
  20524. key-value entry of the TFile.
  20525. @param endKey
  20526. End key of the scan (exclusive). If null, scan up to the last
  20527. key-value entry of the TFile.
  20528. @return The actual coverage of the returned scanner will cover all keys
  20529. greater than or equal to the beginKey and less than the endKey.
  20530. @throws IOException
  20531. @deprecated Use {@link #createScannerByKey(RawComparable, RawComparable)}
  20532. instead.]]>
  20533. </doc>
  20534. </method>
  20535. <method name="createScannerByKey" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  20536. abstract="false" native="false" synchronized="false"
  20537. static="false" final="false" visibility="public"
  20538. deprecated="not deprecated">
  20539. <param name="beginKey" type="org.apache.hadoop.io.file.tfile.RawComparable"/>
  20540. <param name="endKey" type="org.apache.hadoop.io.file.tfile.RawComparable"/>
  20541. <exception name="IOException" type="java.io.IOException"/>
  20542. <doc>
  20543. <![CDATA[Get a scanner that covers a specific key range.
  20544. @param beginKey
  20545. Begin key of the scan (inclusive). If null, scan from the first
  20546. key-value entry of the TFile.
  20547. @param endKey
  20548. End key of the scan (exclusive). If null, scan up to the last
  20549. key-value entry of the TFile.
  20550. @return The actual coverage of the returned scanner will cover all keys
  20551. greater than or equal to the beginKey and less than the endKey.
  20552. @throws IOException]]>
  20553. </doc>
  20554. </method>
  20555. <method name="createScannerByRecordNum" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner"
  20556. abstract="false" native="false" synchronized="false"
  20557. static="false" final="false" visibility="public"
  20558. deprecated="not deprecated">
  20559. <param name="beginRecNum" type="long"/>
  20560. <param name="endRecNum" type="long"/>
  20561. <exception name="IOException" type="java.io.IOException"/>
  20562. <doc>
  20563. <![CDATA[Create a scanner that covers a range of records.
  20564. @param beginRecNum
  20565. The RecordNum for the first record (inclusive).
  20566. @param endRecNum
  20567. The RecordNum for the last record (exclusive). To scan the whole
  20568. file, either specify endRecNum==-1 or endRecNum==getEntryCount().
  20569. @return The TFile scanner that covers the specified range of records.
  20570. @throws IOException]]>
  20571. </doc>
  20572. </method>
  20573. <doc>
  20574. <![CDATA[TFile Reader. Users may only read TFiles by creating TFile.Reader.Scanner.
  20575. objects. A scanner may scan the whole TFile ({@link Reader#createScanner()}
  20576. ) , a portion of TFile based on byte offsets (
  20577. {@link Reader#createScannerByByteRange(long, long)}), or a portion of TFile with keys
  20578. fall in a certain key range (for sorted TFile only,
  20579. {@link Reader#createScannerByKey(byte[], byte[])} or
  20580. {@link Reader#createScannerByKey(RawComparable, RawComparable)}).]]>
  20581. </doc>
  20582. </class>
  20583. <!-- end class org.apache.hadoop.io.file.tfile.TFile.Reader -->
  20584. <!-- start class org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner -->
  20585. <class name="TFile.Reader.Scanner" extends="java.lang.Object"
  20586. abstract="false"
  20587. static="true" final="false" visibility="public"
  20588. deprecated="not deprecated">
  20589. <implements name="java.io.Closeable"/>
  20590. <constructor name="TFile.Reader.Scanner" type="org.apache.hadoop.io.file.tfile.TFile.Reader, long, long"
  20591. static="false" final="false" visibility="protected"
  20592. deprecated="not deprecated">
  20593. <exception name="IOException" type="java.io.IOException"/>
  20594. <doc>
  20595. <![CDATA[Constructor
  20596. @param reader
  20597. The TFile reader object.
  20598. @param offBegin
  20599. Begin byte-offset of the scan.
  20600. @param offEnd
  20601. End byte-offset of the scan.
  20602. @throws IOException
  20603. The offsets will be rounded to the beginning of a compressed
  20604. block whose offset is greater than or equal to the specified
  20605. offset.]]>
  20606. </doc>
  20607. </constructor>
  20608. <constructor name="TFile.Reader.Scanner" type="org.apache.hadoop.io.file.tfile.TFile.Reader, org.apache.hadoop.io.file.tfile.RawComparable, org.apache.hadoop.io.file.tfile.RawComparable"
  20609. static="false" final="false" visibility="protected"
  20610. deprecated="not deprecated">
  20611. <exception name="IOException" type="java.io.IOException"/>
  20612. <doc>
  20613. <![CDATA[Constructor
  20614. @param reader
  20615. The TFile reader object.
  20616. @param beginKey
  20617. Begin key of the scan. If null, scan from the first <K,V>
  20618. entry of the TFile.
  20619. @param endKey
  20620. End key of the scan. If null, scan up to the last <K, V> entry
  20621. of the TFile.
  20622. @throws IOException]]>
  20623. </doc>
  20624. </constructor>
  20625. <method name="seekTo" return="boolean"
  20626. abstract="false" native="false" synchronized="false"
  20627. static="false" final="false" visibility="public"
  20628. deprecated="not deprecated">
  20629. <param name="key" type="byte[]"/>
  20630. <exception name="IOException" type="java.io.IOException"/>
  20631. <doc>
  20632. <![CDATA[Move the cursor to the first entry whose key is greater than or equal
  20633. to the input key. Synonymous to seekTo(key, 0, key.length). The entry
  20634. returned by the previous entry() call will be invalid.
  20635. @param key
  20636. The input key
  20637. @return true if we find an equal key.
  20638. @throws IOException]]>
  20639. </doc>
  20640. </method>
  20641. <method name="seekTo" return="boolean"
  20642. abstract="false" native="false" synchronized="false"
  20643. static="false" final="false" visibility="public"
  20644. deprecated="not deprecated">
  20645. <param name="key" type="byte[]"/>
  20646. <param name="keyOffset" type="int"/>
  20647. <param name="keyLen" type="int"/>
  20648. <exception name="IOException" type="java.io.IOException"/>
  20649. <doc>
  20650. <![CDATA[Move the cursor to the first entry whose key is greater than or equal
  20651. to the input key. The entry returned by the previous entry() call will
  20652. be invalid.
  20653. @param key
  20654. The input key
  20655. @param keyOffset
  20656. offset in the key buffer.
  20657. @param keyLen
  20658. key buffer length.
  20659. @return true if we find an equal key; false otherwise.
  20660. @throws IOException]]>
  20661. </doc>
  20662. </method>
  20663. <method name="rewind"
  20664. abstract="false" native="false" synchronized="false"
  20665. static="false" final="false" visibility="public"
  20666. deprecated="not deprecated">
  20667. <exception name="IOException" type="java.io.IOException"/>
  20668. <doc>
  20669. <![CDATA[Rewind to the first entry in the scanner. The entry returned by the
  20670. previous entry() call will be invalid.
  20671. @throws IOException]]>
  20672. </doc>
  20673. </method>
  20674. <method name="seekToEnd"
  20675. abstract="false" native="false" synchronized="false"
  20676. static="false" final="false" visibility="public"
  20677. deprecated="not deprecated">
  20678. <exception name="IOException" type="java.io.IOException"/>
  20679. <doc>
  20680. <![CDATA[Seek to the end of the scanner. The entry returned by the previous
  20681. entry() call will be invalid.
  20682. @throws IOException]]>
  20683. </doc>
  20684. </method>
  20685. <method name="lowerBound"
  20686. abstract="false" native="false" synchronized="false"
  20687. static="false" final="false" visibility="public"
  20688. deprecated="not deprecated">
  20689. <param name="key" type="byte[]"/>
  20690. <exception name="IOException" type="java.io.IOException"/>
  20691. <doc>
  20692. <![CDATA[Move the cursor to the first entry whose key is greater than or equal
  20693. to the input key. Synonymous to lowerBound(key, 0, key.length). The
  20694. entry returned by the previous entry() call will be invalid.
  20695. @param key
  20696. The input key
  20697. @throws IOException]]>
  20698. </doc>
  20699. </method>
  20700. <method name="lowerBound"
  20701. abstract="false" native="false" synchronized="false"
  20702. static="false" final="false" visibility="public"
  20703. deprecated="not deprecated">
  20704. <param name="key" type="byte[]"/>
  20705. <param name="keyOffset" type="int"/>
  20706. <param name="keyLen" type="int"/>
  20707. <exception name="IOException" type="java.io.IOException"/>
  20708. <doc>
  20709. <![CDATA[Move the cursor to the first entry whose key is greater than or equal
  20710. to the input key. The entry returned by the previous entry() call will
  20711. be invalid.
  20712. @param key
  20713. The input key
  20714. @param keyOffset
  20715. offset in the key buffer.
  20716. @param keyLen
  20717. key buffer length.
  20718. @throws IOException]]>
  20719. </doc>
  20720. </method>
  20721. <method name="upperBound"
  20722. abstract="false" native="false" synchronized="false"
  20723. static="false" final="false" visibility="public"
  20724. deprecated="not deprecated">
  20725. <param name="key" type="byte[]"/>
  20726. <exception name="IOException" type="java.io.IOException"/>
  20727. <doc>
  20728. <![CDATA[Move the cursor to the first entry whose key is strictly greater than
  20729. the input key. Synonymous to upperBound(key, 0, key.length). The entry
  20730. returned by the previous entry() call will be invalid.
  20731. @param key
  20732. The input key
  20733. @throws IOException]]>
  20734. </doc>
  20735. </method>
  20736. <method name="upperBound"
  20737. abstract="false" native="false" synchronized="false"
  20738. static="false" final="false" visibility="public"
  20739. deprecated="not deprecated">
  20740. <param name="key" type="byte[]"/>
  20741. <param name="keyOffset" type="int"/>
  20742. <param name="keyLen" type="int"/>
  20743. <exception name="IOException" type="java.io.IOException"/>
  20744. <doc>
  20745. <![CDATA[Move the cursor to the first entry whose key is strictly greater than
  20746. the input key. The entry returned by the previous entry() call will be
  20747. invalid.
  20748. @param key
  20749. The input key
  20750. @param keyOffset
  20751. offset in the key buffer.
  20752. @param keyLen
  20753. key buffer length.
  20754. @throws IOException]]>
  20755. </doc>
  20756. </method>
  20757. <method name="advance" return="boolean"
  20758. abstract="false" native="false" synchronized="false"
  20759. static="false" final="false" visibility="public"
  20760. deprecated="not deprecated">
  20761. <exception name="IOException" type="java.io.IOException"/>
  20762. <doc>
  20763. <![CDATA[Move the cursor to the next key-value pair. The entry returned by the
  20764. previous entry() call will be invalid.
  20765. @return true if the cursor successfully moves. False when cursor is
  20766. already at the end location and cannot be advanced.
  20767. @throws IOException]]>
  20768. </doc>
  20769. </method>
  20770. <method name="close"
  20771. abstract="false" native="false" synchronized="false"
  20772. static="false" final="false" visibility="public"
  20773. deprecated="not deprecated">
  20774. <exception name="IOException" type="java.io.IOException"/>
  20775. <doc>
  20776. <![CDATA[Close the scanner. Release all resources. The behavior of using the
  20777. scanner after calling close is not defined. The entry returned by the
  20778. previous entry() call will be invalid.]]>
  20779. </doc>
  20780. </method>
  20781. <method name="atEnd" return="boolean"
  20782. abstract="false" native="false" synchronized="false"
  20783. static="false" final="false" visibility="public"
  20784. deprecated="not deprecated">
  20785. <doc>
  20786. <![CDATA[Is cursor at the end location?
  20787. @return true if the cursor is at the end location.]]>
  20788. </doc>
  20789. </method>
  20790. <method name="entry" return="org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner.Entry"
  20791. abstract="false" native="false" synchronized="false"
  20792. static="false" final="false" visibility="public"
  20793. deprecated="not deprecated">
  20794. <exception name="IOException" type="java.io.IOException"/>
  20795. <doc>
  20796. <![CDATA[Get an entry to access the key and value.
  20797. @return The Entry object to access the key and value.
  20798. @throws IOException]]>
  20799. </doc>
  20800. </method>
  20801. <method name="getRecordNum" return="long"
  20802. abstract="false" native="false" synchronized="false"
  20803. static="false" final="false" visibility="public"
  20804. deprecated="not deprecated">
  20805. <exception name="IOException" type="java.io.IOException"/>
  20806. <doc>
  20807. <![CDATA[Get the RecordNum corresponding to the entry pointed by the cursor.
  20808. @return The RecordNum corresponding to the entry pointed by the cursor.
  20809. @throws IOException]]>
  20810. </doc>
  20811. </method>
  20812. <doc>
  20813. <![CDATA[The TFile Scanner. The Scanner has an implicit cursor, which, upon
  20814. creation, points to the first key-value pair in the scan range. If the
  20815. scan range is empty, the cursor will point to the end of the scan range.
  20816. <p>
  20817. Use {@link Scanner#atEnd()} to test whether the cursor is at the end
  20818. location of the scanner.
  20819. <p>
  20820. Use {@link Scanner#advance()} to move the cursor to the next key-value
  20821. pair (or end if none exists). Use seekTo methods (
  20822. {@link Scanner#seekTo(byte[])} or
  20823. {@link Scanner#seekTo(byte[], int, int)}) to seek to any arbitrary
  20824. location in the covered range (including backward seeking). Use
  20825. {@link Scanner#rewind()} to seek back to the beginning of the scanner.
  20826. Use {@link Scanner#seekToEnd()} to seek to the end of the scanner.
  20827. <p>
  20828. Actual keys and values may be obtained through {@link Scanner.Entry}
  20829. object, which is obtained through {@link Scanner#entry()}.]]>
  20830. </doc>
  20831. </class>
  20832. <!-- end class org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner -->
  20833. <!-- start class org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner.Entry -->
  20834. <class name="TFile.Reader.Scanner.Entry" extends="java.lang.Object"
  20835. abstract="false"
  20836. static="false" final="false" visibility="public"
  20837. deprecated="not deprecated">
  20838. <implements name="java.lang.Comparable"/>
  20839. <constructor name="TFile.Reader.Scanner.Entry"
  20840. static="false" final="false" visibility="public"
  20841. deprecated="not deprecated">
  20842. </constructor>
  20843. <method name="getKeyLength" return="int"
  20844. abstract="false" native="false" synchronized="false"
  20845. static="false" final="false" visibility="public"
  20846. deprecated="not deprecated">
  20847. <doc>
  20848. <![CDATA[Get the length of the key.
  20849. @return the length of the key.]]>
  20850. </doc>
  20851. </method>
  20852. <method name="get"
  20853. abstract="false" native="false" synchronized="false"
  20854. static="false" final="false" visibility="public"
  20855. deprecated="not deprecated">
  20856. <param name="key" type="org.apache.hadoop.io.BytesWritable"/>
  20857. <param name="value" type="org.apache.hadoop.io.BytesWritable"/>
  20858. <exception name="IOException" type="java.io.IOException"/>
  20859. <doc>
  20860. <![CDATA[Copy the key and value in one shot into BytesWritables. This is
  20861. equivalent to getKey(key); getValue(value);
  20862. @param key
  20863. BytesWritable to hold key.
  20864. @param value
  20865. BytesWritable to hold value
  20866. @throws IOException]]>
  20867. </doc>
  20868. </method>
  20869. <method name="getKey" return="int"
  20870. abstract="false" native="false" synchronized="false"
  20871. static="false" final="false" visibility="public"
  20872. deprecated="not deprecated">
  20873. <param name="key" type="org.apache.hadoop.io.BytesWritable"/>
  20874. <exception name="IOException" type="java.io.IOException"/>
  20875. <doc>
  20876. <![CDATA[Copy the key into BytesWritable. The input BytesWritable will be
  20877. automatically resized to the actual key size.
  20878. @param key
  20879. BytesWritable to hold the key.
  20880. @throws IOException]]>
  20881. </doc>
  20882. </method>
  20883. <method name="getValue" return="long"
  20884. abstract="false" native="false" synchronized="false"
  20885. static="false" final="false" visibility="public"
  20886. deprecated="not deprecated">
  20887. <param name="value" type="org.apache.hadoop.io.BytesWritable"/>
  20888. <exception name="IOException" type="java.io.IOException"/>
  20889. <doc>
  20890. <![CDATA[Copy the value into BytesWritable. The input BytesWritable will be
  20891. automatically resized to the actual value size. The implementation
  20892. directly uses the buffer inside BytesWritable for storing the value.
  20893. The call does not require the value length to be known.
  20894. @param value
  20895. @throws IOException]]>
  20896. </doc>
  20897. </method>
  20898. <method name="writeKey" return="int"
  20899. abstract="false" native="false" synchronized="false"
  20900. static="false" final="false" visibility="public"
  20901. deprecated="not deprecated">
  20902. <param name="out" type="java.io.OutputStream"/>
  20903. <exception name="IOException" type="java.io.IOException"/>
  20904. <doc>
  20905. <![CDATA[Writing the key to the output stream. This method avoids copying key
  20906. buffer from Scanner into user buffer, then writing to the output
  20907. stream.
  20908. @param out
  20909. The output stream
  20910. @return the length of the key.
  20911. @throws IOException]]>
  20912. </doc>
  20913. </method>
  20914. <method name="writeValue" return="long"
  20915. abstract="false" native="false" synchronized="false"
  20916. static="false" final="false" visibility="public"
  20917. deprecated="not deprecated">
  20918. <param name="out" type="java.io.OutputStream"/>
  20919. <exception name="IOException" type="java.io.IOException"/>
  20920. <doc>
  20921. <![CDATA[Writing the value to the output stream. This method avoids copying
  20922. value data from Scanner into user buffer, then writing to the output
  20923. stream. It does not require the value length to be known.
  20924. @param out
  20925. The output stream
  20926. @return the length of the value
  20927. @throws IOException]]>
  20928. </doc>
  20929. </method>
  20930. <method name="getKey" return="int"
  20931. abstract="false" native="false" synchronized="false"
  20932. static="false" final="false" visibility="public"
  20933. deprecated="not deprecated">
  20934. <param name="buf" type="byte[]"/>
  20935. <exception name="IOException" type="java.io.IOException"/>
  20936. <doc>
  20937. <![CDATA[Copy the key into user supplied buffer.
  20938. @param buf
  20939. The buffer supplied by user. The length of the buffer must
  20940. not be shorter than the key length.
  20941. @return The length of the key.
  20942. @throws IOException]]>
  20943. </doc>
  20944. </method>
  20945. <method name="getKey" return="int"
  20946. abstract="false" native="false" synchronized="false"
  20947. static="false" final="false" visibility="public"
  20948. deprecated="not deprecated">
  20949. <param name="buf" type="byte[]"/>
  20950. <param name="offset" type="int"/>
  20951. <exception name="IOException" type="java.io.IOException"/>
  20952. <doc>
  20953. <![CDATA[Copy the key into user supplied buffer.
  20954. @param buf
  20955. The buffer supplied by user.
  20956. @param offset
  20957. The starting offset of the user buffer where we should copy
  20958. the key into. Requiring the key-length + offset no greater
  20959. than the buffer length.
  20960. @return The length of the key.
  20961. @throws IOException]]>
  20962. </doc>
  20963. </method>
  20964. <method name="getKeyStream" return="java.io.DataInputStream"
  20965. abstract="false" native="false" synchronized="false"
  20966. static="false" final="false" visibility="public"
  20967. deprecated="not deprecated">
  20968. <doc>
  20969. <![CDATA[Streaming access to the key. Useful for desrializing the key into
  20970. user objects.
  20971. @return The input stream.]]>
  20972. </doc>
  20973. </method>
  20974. <method name="getValueLength" return="int"
  20975. abstract="false" native="false" synchronized="false"
  20976. static="false" final="false" visibility="public"
  20977. deprecated="not deprecated">
  20978. <doc>
  20979. <![CDATA[Get the length of the value. isValueLengthKnown() must be tested
  20980. true.
  20981. @return the length of the value.]]>
  20982. </doc>
  20983. </method>
  20984. <method name="getValue" return="int"
  20985. abstract="false" native="false" synchronized="false"
  20986. static="false" final="false" visibility="public"
  20987. deprecated="not deprecated">
  20988. <param name="buf" type="byte[]"/>
  20989. <exception name="IOException" type="java.io.IOException"/>
  20990. <doc>
  20991. <![CDATA[Copy value into user-supplied buffer. User supplied buffer must be
  20992. large enough to hold the whole value. The value part of the key-value
  20993. pair pointed by the current cursor is not cached and can only be
  20994. examined once. Calling any of the following functions more than once
  20995. without moving the cursor will result in exception:
  20996. {@link #getValue(byte[])}, {@link #getValue(byte[], int)},
  20997. {@link #getValueStream}.
  20998. @return the length of the value. Does not require
  20999. isValueLengthKnown() to be true.
  21000. @throws IOException]]>
  21001. </doc>
  21002. </method>
  21003. <method name="getValue" return="int"
  21004. abstract="false" native="false" synchronized="false"
  21005. static="false" final="false" visibility="public"
  21006. deprecated="not deprecated">
  21007. <param name="buf" type="byte[]"/>
  21008. <param name="offset" type="int"/>
  21009. <exception name="IOException" type="java.io.IOException"/>
  21010. <doc>
  21011. <![CDATA[Copy value into user-supplied buffer. User supplied buffer must be
  21012. large enough to hold the whole value (starting from the offset). The
  21013. value part of the key-value pair pointed by the current cursor is not
  21014. cached and can only be examined once. Calling any of the following
  21015. functions more than once without moving the cursor will result in
  21016. exception: {@link #getValue(byte[])}, {@link #getValue(byte[], int)},
  21017. {@link #getValueStream}.
  21018. @return the length of the value. Does not require
  21019. isValueLengthKnown() to be true.
  21020. @throws IOException]]>
  21021. </doc>
  21022. </method>
  21023. <method name="getValueStream" return="java.io.DataInputStream"
  21024. abstract="false" native="false" synchronized="false"
  21025. static="false" final="false" visibility="public"
  21026. deprecated="not deprecated">
  21027. <exception name="IOException" type="java.io.IOException"/>
  21028. <doc>
  21029. <![CDATA[Stream access to value. The value part of the key-value pair pointed
  21030. by the current cursor is not cached and can only be examined once.
  21031. Calling any of the following functions more than once without moving
  21032. the cursor will result in exception: {@link #getValue(byte[])},
  21033. {@link #getValue(byte[], int)}, {@link #getValueStream}.
  21034. @return The input stream for reading the value.
  21035. @throws IOException]]>
  21036. </doc>
  21037. </method>
  21038. <method name="isValueLengthKnown" return="boolean"
  21039. abstract="false" native="false" synchronized="false"
  21040. static="false" final="false" visibility="public"
  21041. deprecated="not deprecated">
  21042. <doc>
  21043. <![CDATA[Check whether it is safe to call getValueLength().
  21044. @return true if value length is known before hand. Values less than
  21045. the chunk size will always have their lengths known before
  21046. hand. Values that are written out as a whole (with advertised
  21047. length up-front) will always have their lengths known in
  21048. read.]]>
  21049. </doc>
  21050. </method>
  21051. <method name="compareTo" return="int"
  21052. abstract="false" native="false" synchronized="false"
  21053. static="false" final="false" visibility="public"
  21054. deprecated="not deprecated">
  21055. <param name="buf" type="byte[]"/>
  21056. <doc>
  21057. <![CDATA[Compare the entry key to another key. Synonymous to compareTo(key, 0,
  21058. key.length).
  21059. @param buf
  21060. The key buffer.
  21061. @return comparison result between the entry key with the input key.]]>
  21062. </doc>
  21063. </method>
  21064. <method name="compareTo" return="int"
  21065. abstract="false" native="false" synchronized="false"
  21066. static="false" final="false" visibility="public"
  21067. deprecated="not deprecated">
  21068. <param name="buf" type="byte[]"/>
  21069. <param name="offset" type="int"/>
  21070. <param name="length" type="int"/>
  21071. <doc>
  21072. <![CDATA[Compare the entry key to another key. Synonymous to compareTo(new
  21073. ByteArray(buf, offset, length)
  21074. @param buf
  21075. The key buffer
  21076. @param offset
  21077. offset into the key buffer.
  21078. @param length
  21079. the length of the key.
  21080. @return comparison result between the entry key with the input key.]]>
  21081. </doc>
  21082. </method>
  21083. <method name="compareTo" return="int"
  21084. abstract="false" native="false" synchronized="false"
  21085. static="false" final="false" visibility="public"
  21086. deprecated="not deprecated">
  21087. <param name="key" type="org.apache.hadoop.io.file.tfile.RawComparable"/>
  21088. <doc>
  21089. <![CDATA[Compare an entry with a RawComparable object. This is useful when
  21090. Entries are stored in a collection, and we want to compare a user
  21091. supplied key.]]>
  21092. </doc>
  21093. </method>
  21094. <method name="equals" return="boolean"
  21095. abstract="false" native="false" synchronized="false"
  21096. static="false" final="false" visibility="public"
  21097. deprecated="not deprecated">
  21098. <param name="other" type="java.lang.Object"/>
  21099. <doc>
  21100. <![CDATA[Compare whether this and other points to the same key value.]]>
  21101. </doc>
  21102. </method>
  21103. <method name="hashCode" return="int"
  21104. abstract="false" native="false" synchronized="false"
  21105. static="false" final="false" visibility="public"
  21106. deprecated="not deprecated">
  21107. </method>
  21108. <doc>
  21109. <![CDATA[Entry to a &lt;Key, Value&gt; pair.]]>
  21110. </doc>
  21111. </class>
  21112. <!-- end class org.apache.hadoop.io.file.tfile.TFile.Reader.Scanner.Entry -->
  21113. <!-- start class org.apache.hadoop.io.file.tfile.TFile.Writer -->
  21114. <class name="TFile.Writer" extends="java.lang.Object"
  21115. abstract="false"
  21116. static="true" final="false" visibility="public"
  21117. deprecated="not deprecated">
  21118. <implements name="java.io.Closeable"/>
  21119. <constructor name="TFile.Writer" type="org.apache.hadoop.fs.FSDataOutputStream, int, java.lang.String, java.lang.String, org.apache.hadoop.conf.Configuration"
  21120. static="false" final="false" visibility="public"
  21121. deprecated="not deprecated">
  21122. <exception name="IOException" type="java.io.IOException"/>
  21123. <doc>
  21124. <![CDATA[Constructor
  21125. @param fsdos
  21126. output stream for writing. Must be at position 0.
  21127. @param minBlockSize
  21128. Minimum compressed block size in bytes. A compression block will
  21129. not be closed until it reaches this size except for the last
  21130. block.
  21131. @param compressName
  21132. Name of the compression algorithm. Must be one of the strings
  21133. returned by {@link TFile#getSupportedCompressionAlgorithms()}.
  21134. @param comparator
  21135. Leave comparator as null or empty string if TFile is not sorted.
  21136. Otherwise, provide the string name for the comparison algorithm
  21137. for keys. Two kinds of comparators are supported.
  21138. <ul>
  21139. <li>Algorithmic comparator: binary comparators that is language
  21140. independent. Currently, only "memcmp" is supported.
  21141. <li>Language-specific comparator: binary comparators that can
  21142. only be constructed in specific language. For Java, the syntax
  21143. is "jclass:", followed by the class name of the RawComparator.
  21144. Currently, we only support RawComparators that can be
  21145. constructed through the default constructor (with no
  21146. parameters). Parameterized RawComparators such as
  21147. {@link WritableComparator} or
  21148. {@link JavaSerializationComparator} may not be directly used.
  21149. One should write a wrapper class that inherits from such classes
  21150. and use its default constructor to perform proper
  21151. initialization.
  21152. </ul>
  21153. @param conf
  21154. The configuration object.
  21155. @throws IOException]]>
  21156. </doc>
  21157. </constructor>
  21158. <method name="close"
  21159. abstract="false" native="false" synchronized="false"
  21160. static="false" final="false" visibility="public"
  21161. deprecated="not deprecated">
  21162. <exception name="IOException" type="java.io.IOException"/>
  21163. <doc>
  21164. <![CDATA[Close the Writer. Resources will be released regardless of the exceptions
  21165. being thrown. Future close calls will have no effect.
  21166. The underlying FSDataOutputStream is not closed.]]>
  21167. </doc>
  21168. </method>
  21169. <method name="append"
  21170. abstract="false" native="false" synchronized="false"
  21171. static="false" final="false" visibility="public"
  21172. deprecated="not deprecated">
  21173. <param name="key" type="byte[]"/>
  21174. <param name="value" type="byte[]"/>
  21175. <exception name="IOException" type="java.io.IOException"/>
  21176. <doc>
  21177. <![CDATA[Adding a new key-value pair to the TFile. This is synonymous to
  21178. append(key, 0, key.length, value, 0, value.length)
  21179. @param key
  21180. Buffer for key.
  21181. @param value
  21182. Buffer for value.
  21183. @throws IOException]]>
  21184. </doc>
  21185. </method>
  21186. <method name="append"
  21187. abstract="false" native="false" synchronized="false"
  21188. static="false" final="false" visibility="public"
  21189. deprecated="not deprecated">
  21190. <param name="key" type="byte[]"/>
  21191. <param name="koff" type="int"/>
  21192. <param name="klen" type="int"/>
  21193. <param name="value" type="byte[]"/>
  21194. <param name="voff" type="int"/>
  21195. <param name="vlen" type="int"/>
  21196. <exception name="IOException" type="java.io.IOException"/>
  21197. <doc>
  21198. <![CDATA[Adding a new key-value pair to TFile.
  21199. @param key
  21200. buffer for key.
  21201. @param koff
  21202. offset in key buffer.
  21203. @param klen
  21204. length of key.
  21205. @param value
  21206. buffer for value.
  21207. @param voff
  21208. offset in value buffer.
  21209. @param vlen
  21210. length of value.
  21211. @throws IOException
  21212. Upon IO errors.
  21213. <p>
  21214. If an exception is thrown, the TFile will be in an inconsistent
  21215. state. The only legitimate call after that would be close]]>
  21216. </doc>
  21217. </method>
  21218. <method name="prepareAppendKey" return="java.io.DataOutputStream"
  21219. abstract="false" native="false" synchronized="false"
  21220. static="false" final="false" visibility="public"
  21221. deprecated="not deprecated">
  21222. <param name="length" type="int"/>
  21223. <exception name="IOException" type="java.io.IOException"/>
  21224. <doc>
  21225. <![CDATA[Obtain an output stream for writing a key into TFile. This may only be
  21226. called when there is no active Key appending stream or value appending
  21227. stream.
  21228. @param length
  21229. The expected length of the key. If length of the key is not
  21230. known, set length = -1. Otherwise, the application must write
  21231. exactly as many bytes as specified here before calling close on
  21232. the returned output stream.
  21233. @return The key appending output stream.
  21234. @throws IOException]]>
  21235. </doc>
  21236. </method>
  21237. <method name="prepareAppendValue" return="java.io.DataOutputStream"
  21238. abstract="false" native="false" synchronized="false"
  21239. static="false" final="false" visibility="public"
  21240. deprecated="not deprecated">
  21241. <param name="length" type="int"/>
  21242. <exception name="IOException" type="java.io.IOException"/>
  21243. <doc>
  21244. <![CDATA[Obtain an output stream for writing a value into TFile. This may only be
  21245. called right after a key appending operation (the key append stream must
  21246. be closed).
  21247. @param length
  21248. The expected length of the value. If length of the value is not
  21249. known, set length = -1. Otherwise, the application must write
  21250. exactly as many bytes as specified here before calling close on
  21251. the returned output stream. Advertising the value size up-front
  21252. guarantees that the value is encoded in one chunk, and avoids
  21253. intermediate chunk buffering.
  21254. @throws IOException]]>
  21255. </doc>
  21256. </method>
  21257. <method name="prepareMetaBlock" return="java.io.DataOutputStream"
  21258. abstract="false" native="false" synchronized="false"
  21259. static="false" final="false" visibility="public"
  21260. deprecated="not deprecated">
  21261. <param name="name" type="java.lang.String"/>
  21262. <param name="compressName" type="java.lang.String"/>
  21263. <exception name="IOException" type="java.io.IOException"/>
  21264. <exception name="MetaBlockAlreadyExists" type="org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists"/>
  21265. <doc>
  21266. <![CDATA[Obtain an output stream for creating a meta block. This function may not
  21267. be called when there is a key append stream or value append stream
  21268. active. No more key-value insertion is allowed after a meta data block
  21269. has been added to TFile.
  21270. @param name
  21271. Name of the meta block.
  21272. @param compressName
  21273. Name of the compression algorithm to be used. Must be one of the
  21274. strings returned by
  21275. {@link TFile#getSupportedCompressionAlgorithms()}.
  21276. @return A DataOutputStream that can be used to write Meta Block data.
  21277. Closing the stream would signal the ending of the block.
  21278. @throws IOException
  21279. @throws MetaBlockAlreadyExists
  21280. the Meta Block with the same name already exists.]]>
  21281. </doc>
  21282. </method>
  21283. <method name="prepareMetaBlock" return="java.io.DataOutputStream"
  21284. abstract="false" native="false" synchronized="false"
  21285. static="false" final="false" visibility="public"
  21286. deprecated="not deprecated">
  21287. <param name="name" type="java.lang.String"/>
  21288. <exception name="IOException" type="java.io.IOException"/>
  21289. <exception name="MetaBlockAlreadyExists" type="org.apache.hadoop.io.file.tfile.MetaBlockAlreadyExists"/>
  21290. <doc>
  21291. <![CDATA[Obtain an output stream for creating a meta block. This function may not
  21292. be called when there is a key append stream or value append stream
  21293. active. No more key-value insertion is allowed after a meta data block
  21294. has been added to TFile. Data will be compressed using the default
  21295. compressor as defined in Writer's constructor.
  21296. @param name
  21297. Name of the meta block.
  21298. @return A DataOutputStream that can be used to write Meta Block data.
  21299. Closing the stream would signal the ending of the block.
  21300. @throws IOException
  21301. @throws MetaBlockAlreadyExists
  21302. the Meta Block with the same name already exists.]]>
  21303. </doc>
  21304. </method>
  21305. <doc>
  21306. <![CDATA[TFile Writer.]]>
  21307. </doc>
  21308. </class>
  21309. <!-- end class org.apache.hadoop.io.file.tfile.TFile.Writer -->
  21310. <!-- start class org.apache.hadoop.io.file.tfile.Utils -->
  21311. <class name="Utils" extends="java.lang.Object"
  21312. abstract="false"
  21313. static="false" final="true" visibility="public"
  21314. deprecated="not deprecated">
  21315. <method name="writeVInt"
  21316. abstract="false" native="false" synchronized="false"
  21317. static="true" final="false" visibility="public"
  21318. deprecated="not deprecated">
  21319. <param name="out" type="java.io.DataOutput"/>
  21320. <param name="n" type="int"/>
  21321. <exception name="IOException" type="java.io.IOException"/>
  21322. <doc>
  21323. <![CDATA[Encoding an integer into a variable-length encoding format. Synonymous to
  21324. <code>Utils#writeVLong(out, n)</code>.
  21325. @param out
  21326. output stream
  21327. @param n
  21328. The integer to be encoded
  21329. @throws IOException
  21330. @see Utils#writeVLong(DataOutput, long)]]>
  21331. </doc>
  21332. </method>
  21333. <method name="writeVLong"
  21334. abstract="false" native="false" synchronized="false"
  21335. static="true" final="false" visibility="public"
  21336. deprecated="not deprecated">
  21337. <param name="out" type="java.io.DataOutput"/>
  21338. <param name="n" type="long"/>
  21339. <exception name="IOException" type="java.io.IOException"/>
  21340. <doc>
  21341. <![CDATA[Encoding a Long integer into a variable-length encoding format.
  21342. <ul>
  21343. <li>if n in [-32, 127): encode in one byte with the actual value.
  21344. Otherwise,
  21345. <li>if n in [-20*2^8, 20*2^8): encode in two bytes: byte[0] = n/256 - 52;
  21346. byte[1]=n&0xff. Otherwise,
  21347. <li>if n IN [-16*2^16, 16*2^16): encode in three bytes: byte[0]=n/2^16 -
  21348. 88; byte[1]=(n>>8)&0xff; byte[2]=n&0xff. Otherwise,
  21349. <li>if n in [-8*2^24, 8*2^24): encode in four bytes: byte[0]=n/2^24 - 112;
  21350. byte[1] = (n>>16)&0xff; byte[2] = (n>>8)&0xff; byte[3]=n&0xff. Otherwise:
  21351. <li>if n in [-2^31, 2^31): encode in five bytes: byte[0]=-125; byte[1] =
  21352. (n>>24)&0xff; byte[2]=(n>>16)&0xff; byte[3]=(n>>8)&0xff; byte[4]=n&0xff;
  21353. <li>if n in [-2^39, 2^39): encode in six bytes: byte[0]=-124; byte[1] =
  21354. (n>>32)&0xff; byte[2]=(n>>24)&0xff; byte[3]=(n>>16)&0xff;
  21355. byte[4]=(n>>8)&0xff; byte[5]=n&0xff
  21356. <li>if n in [-2^47, 2^47): encode in seven bytes: byte[0]=-123; byte[1] =
  21357. (n>>40)&0xff; byte[2]=(n>>32)&0xff; byte[3]=(n>>24)&0xff;
  21358. byte[4]=(n>>16)&0xff; byte[5]=(n>>8)&0xff; byte[6]=n&0xff;
  21359. <li>if n in [-2^55, 2^55): encode in eight bytes: byte[0]=-122; byte[1] =
  21360. (n>>48)&0xff; byte[2] = (n>>40)&0xff; byte[3]=(n>>32)&0xff;
  21361. byte[4]=(n>>24)&0xff; byte[5]=(n>>16)&0xff; byte[6]=(n>>8)&0xff;
  21362. byte[7]=n&0xff;
  21363. <li>if n in [-2^63, 2^63): encode in nine bytes: byte[0]=-121; byte[1] =
  21364. (n>>54)&0xff; byte[2] = (n>>48)&0xff; byte[3] = (n>>40)&0xff;
  21365. byte[4]=(n>>32)&0xff; byte[5]=(n>>24)&0xff; byte[6]=(n>>16)&0xff;
  21366. byte[7]=(n>>8)&0xff; byte[8]=n&0xff;
  21367. </ul>
  21368. @param out
  21369. output stream
  21370. @param n
  21371. the integer number
  21372. @throws IOException]]>
  21373. </doc>
  21374. </method>
  21375. <method name="readVInt" return="int"
  21376. abstract="false" native="false" synchronized="false"
  21377. static="true" final="false" visibility="public"
  21378. deprecated="not deprecated">
  21379. <param name="in" type="java.io.DataInput"/>
  21380. <exception name="IOException" type="java.io.IOException"/>
  21381. <doc>
  21382. <![CDATA[Decoding the variable-length integer. Synonymous to
  21383. <code>(int)Utils#readVLong(in)</code>.
  21384. @param in
  21385. input stream
  21386. @return the decoded integer
  21387. @throws IOException
  21388. @see Utils#readVLong(DataInput)]]>
  21389. </doc>
  21390. </method>
  21391. <method name="readVLong" return="long"
  21392. abstract="false" native="false" synchronized="false"
  21393. static="true" final="false" visibility="public"
  21394. deprecated="not deprecated">
  21395. <param name="in" type="java.io.DataInput"/>
  21396. <exception name="IOException" type="java.io.IOException"/>
  21397. <doc>
  21398. <![CDATA[Decoding the variable-length integer. Suppose the value of the first byte
  21399. is FB, and the following bytes are NB[*].
  21400. <ul>
  21401. <li>if (FB >= -32), return (long)FB;
  21402. <li>if (FB in [-72, -33]), return (FB+52)<<8 + NB[0]&0xff;
  21403. <li>if (FB in [-104, -73]), return (FB+88)<<16 + (NB[0]&0xff)<<8 +
  21404. NB[1]&0xff;
  21405. <li>if (FB in [-120, -105]), return (FB+112)<<24 + (NB[0]&0xff)<<16 +
  21406. (NB[1]&0xff)<<8 + NB[2]&0xff;
  21407. <li>if (FB in [-128, -121]), return interpret NB[FB+129] as a signed
  21408. big-endian integer.
  21409. @param in
  21410. input stream
  21411. @return the decoded long integer.
  21412. @throws IOException]]>
  21413. </doc>
  21414. </method>
  21415. <method name="writeString"
  21416. abstract="false" native="false" synchronized="false"
  21417. static="true" final="false" visibility="public"
  21418. deprecated="not deprecated">
  21419. <param name="out" type="java.io.DataOutput"/>
  21420. <param name="s" type="java.lang.String"/>
  21421. <exception name="IOException" type="java.io.IOException"/>
  21422. <doc>
  21423. <![CDATA[Write a String as a VInt n, followed by n Bytes as in Text format.
  21424. @param out
  21425. @param s
  21426. @throws IOException]]>
  21427. </doc>
  21428. </method>
  21429. <method name="readString" return="java.lang.String"
  21430. abstract="false" native="false" synchronized="false"
  21431. static="true" final="false" visibility="public"
  21432. deprecated="not deprecated">
  21433. <param name="in" type="java.io.DataInput"/>
  21434. <exception name="IOException" type="java.io.IOException"/>
  21435. <doc>
  21436. <![CDATA[Read a String as a VInt n, followed by n Bytes in Text format.
  21437. @param in
  21438. The input stream.
  21439. @return The string
  21440. @throws IOException]]>
  21441. </doc>
  21442. </method>
  21443. <method name="lowerBound" return="int"
  21444. abstract="false" native="false" synchronized="false"
  21445. static="true" final="false" visibility="public"
  21446. deprecated="not deprecated">
  21447. <param name="list" type="java.util.List"/>
  21448. <param name="key" type="java.lang.Object"/>
  21449. <param name="cmp" type="java.util.Comparator"/>
  21450. <doc>
  21451. <![CDATA[Lower bound binary search. Find the index to the first element in the list
  21452. that compares greater than or equal to key.
  21453. @param <T>
  21454. Type of the input key.
  21455. @param list
  21456. The list
  21457. @param key
  21458. The input key.
  21459. @param cmp
  21460. Comparator for the key.
  21461. @return The index to the desired element if it exists; or list.size()
  21462. otherwise.]]>
  21463. </doc>
  21464. </method>
  21465. <method name="upperBound" return="int"
  21466. abstract="false" native="false" synchronized="false"
  21467. static="true" final="false" visibility="public"
  21468. deprecated="not deprecated">
  21469. <param name="list" type="java.util.List"/>
  21470. <param name="key" type="java.lang.Object"/>
  21471. <param name="cmp" type="java.util.Comparator"/>
  21472. <doc>
  21473. <![CDATA[Upper bound binary search. Find the index to the first element in the list
  21474. that compares greater than the input key.
  21475. @param <T>
  21476. Type of the input key.
  21477. @param list
  21478. The list
  21479. @param key
  21480. The input key.
  21481. @param cmp
  21482. Comparator for the key.
  21483. @return The index to the desired element if it exists; or list.size()
  21484. otherwise.]]>
  21485. </doc>
  21486. </method>
  21487. <method name="lowerBound" return="int"
  21488. abstract="false" native="false" synchronized="false"
  21489. static="true" final="false" visibility="public"
  21490. deprecated="not deprecated">
  21491. <param name="list" type="java.util.List"/>
  21492. <param name="key" type="java.lang.Object"/>
  21493. <doc>
  21494. <![CDATA[Lower bound binary search. Find the index to the first element in the list
  21495. that compares greater than or equal to key.
  21496. @param <T>
  21497. Type of the input key.
  21498. @param list
  21499. The list
  21500. @param key
  21501. The input key.
  21502. @return The index to the desired element if it exists; or list.size()
  21503. otherwise.]]>
  21504. </doc>
  21505. </method>
  21506. <method name="upperBound" return="int"
  21507. abstract="false" native="false" synchronized="false"
  21508. static="true" final="false" visibility="public"
  21509. deprecated="not deprecated">
  21510. <param name="list" type="java.util.List"/>
  21511. <param name="key" type="java.lang.Object"/>
  21512. <doc>
  21513. <![CDATA[Upper bound binary search. Find the index to the first element in the list
  21514. that compares greater than the input key.
  21515. @param <T>
  21516. Type of the input key.
  21517. @param list
  21518. The list
  21519. @param key
  21520. The input key.
  21521. @return The index to the desired element if it exists; or list.size()
  21522. otherwise.]]>
  21523. </doc>
  21524. </method>
  21525. <doc>
  21526. <![CDATA[Supporting Utility classes used by TFile, and shared by users of TFile.]]>
  21527. </doc>
  21528. </class>
  21529. <!-- end class org.apache.hadoop.io.file.tfile.Utils -->
  21530. <!-- start class org.apache.hadoop.io.file.tfile.Utils.Version -->
  21531. <class name="Utils.Version" extends="java.lang.Object"
  21532. abstract="false"
  21533. static="true" final="true" visibility="public"
  21534. deprecated="not deprecated">
  21535. <implements name="java.lang.Comparable"/>
  21536. <constructor name="Utils.Version" type="java.io.DataInput"
  21537. static="false" final="false" visibility="public"
  21538. deprecated="not deprecated">
  21539. <exception name="IOException" type="java.io.IOException"/>
  21540. <doc>
  21541. <![CDATA[Construct the Version object by reading from the input stream.
  21542. @param in
  21543. input stream
  21544. @throws IOException]]>
  21545. </doc>
  21546. </constructor>
  21547. <constructor name="Utils.Version" type="short, short"
  21548. static="false" final="false" visibility="public"
  21549. deprecated="not deprecated">
  21550. <doc>
  21551. <![CDATA[Constructor.
  21552. @param major
  21553. major version.
  21554. @param minor
  21555. minor version.]]>
  21556. </doc>
  21557. </constructor>
  21558. <method name="write"
  21559. abstract="false" native="false" synchronized="false"
  21560. static="false" final="false" visibility="public"
  21561. deprecated="not deprecated">
  21562. <param name="out" type="java.io.DataOutput"/>
  21563. <exception name="IOException" type="java.io.IOException"/>
  21564. <doc>
  21565. <![CDATA[Write the objec to a DataOutput. The serialized format of the Version is
  21566. major version followed by minor version, both as big-endian short
  21567. integers.
  21568. @param out
  21569. The DataOutput object.
  21570. @throws IOException]]>
  21571. </doc>
  21572. </method>
  21573. <method name="getMajor" return="int"
  21574. abstract="false" native="false" synchronized="false"
  21575. static="false" final="false" visibility="public"
  21576. deprecated="not deprecated">
  21577. <doc>
  21578. <![CDATA[Get the major version.
  21579. @return Major version.]]>
  21580. </doc>
  21581. </method>
  21582. <method name="getMinor" return="int"
  21583. abstract="false" native="false" synchronized="false"
  21584. static="false" final="false" visibility="public"
  21585. deprecated="not deprecated">
  21586. <doc>
  21587. <![CDATA[Get the minor version.
  21588. @return The minor version.]]>
  21589. </doc>
  21590. </method>
  21591. <method name="size" return="int"
  21592. abstract="false" native="false" synchronized="false"
  21593. static="true" final="false" visibility="public"
  21594. deprecated="not deprecated">
  21595. <doc>
  21596. <![CDATA[Get the size of the serialized Version object.
  21597. @return serialized size of the version object.]]>
  21598. </doc>
  21599. </method>
  21600. <method name="toString" return="java.lang.String"
  21601. abstract="false" native="false" synchronized="false"
  21602. static="false" final="false" visibility="public"
  21603. deprecated="not deprecated">
  21604. <doc>
  21605. <![CDATA[Return a string representation of the version.]]>
  21606. </doc>
  21607. </method>
  21608. <method name="compatibleWith" return="boolean"
  21609. abstract="false" native="false" synchronized="false"
  21610. static="false" final="false" visibility="public"
  21611. deprecated="not deprecated">
  21612. <param name="other" type="org.apache.hadoop.io.file.tfile.Utils.Version"/>
  21613. <doc>
  21614. <![CDATA[Test compatibility.
  21615. @param other
  21616. The Version object to test compatibility with.
  21617. @return true if both versions have the same major version number; false
  21618. otherwise.]]>
  21619. </doc>
  21620. </method>
  21621. <method name="compareTo" return="int"
  21622. abstract="false" native="false" synchronized="false"
  21623. static="false" final="false" visibility="public"
  21624. deprecated="not deprecated">
  21625. <param name="that" type="org.apache.hadoop.io.file.tfile.Utils.Version"/>
  21626. <doc>
  21627. <![CDATA[Compare this version with another version.]]>
  21628. </doc>
  21629. </method>
  21630. <method name="equals" return="boolean"
  21631. abstract="false" native="false" synchronized="false"
  21632. static="false" final="false" visibility="public"
  21633. deprecated="not deprecated">
  21634. <param name="other" type="java.lang.Object"/>
  21635. </method>
  21636. <method name="hashCode" return="int"
  21637. abstract="false" native="false" synchronized="false"
  21638. static="false" final="false" visibility="public"
  21639. deprecated="not deprecated">
  21640. </method>
  21641. <doc>
  21642. <![CDATA[A generic Version class. We suggest applications built on top of TFile use
  21643. this class to maintain version information in their meta blocks.
  21644. A version number consists of a major version and a minor version. The
  21645. suggested usage of major and minor version number is to increment major
  21646. version number when the new storage format is not backward compatible, and
  21647. increment the minor version otherwise.]]>
  21648. </doc>
  21649. </class>
  21650. <!-- end class org.apache.hadoop.io.file.tfile.Utils.Version -->
  21651. </package>
  21652. <package name="org.apache.hadoop.io.nativeio">
  21653. <!-- start class org.apache.hadoop.io.nativeio.Errno -->
  21654. <class name="Errno" extends="java.lang.Enum"
  21655. abstract="false"
  21656. static="false" final="true" visibility="public"
  21657. deprecated="not deprecated">
  21658. <method name="values" return="org.apache.hadoop.io.nativeio.Errno[]"
  21659. abstract="false" native="false" synchronized="false"
  21660. static="true" final="false" visibility="public"
  21661. deprecated="not deprecated">
  21662. </method>
  21663. <method name="valueOf" return="org.apache.hadoop.io.nativeio.Errno"
  21664. abstract="false" native="false" synchronized="false"
  21665. static="true" final="false" visibility="public"
  21666. deprecated="not deprecated">
  21667. <param name="name" type="java.lang.String"/>
  21668. </method>
  21669. <field name="EPERM" type="org.apache.hadoop.io.nativeio.Errno"
  21670. transient="false" volatile="false"
  21671. static="true" final="true" visibility="public"
  21672. deprecated="not deprecated">
  21673. </field>
  21674. <field name="ENOENT" type="org.apache.hadoop.io.nativeio.Errno"
  21675. transient="false" volatile="false"
  21676. static="true" final="true" visibility="public"
  21677. deprecated="not deprecated">
  21678. </field>
  21679. <field name="ESRCH" type="org.apache.hadoop.io.nativeio.Errno"
  21680. transient="false" volatile="false"
  21681. static="true" final="true" visibility="public"
  21682. deprecated="not deprecated">
  21683. </field>
  21684. <field name="EINTR" type="org.apache.hadoop.io.nativeio.Errno"
  21685. transient="false" volatile="false"
  21686. static="true" final="true" visibility="public"
  21687. deprecated="not deprecated">
  21688. </field>
  21689. <field name="EIO" type="org.apache.hadoop.io.nativeio.Errno"
  21690. transient="false" volatile="false"
  21691. static="true" final="true" visibility="public"
  21692. deprecated="not deprecated">
  21693. </field>
  21694. <field name="ENXIO" type="org.apache.hadoop.io.nativeio.Errno"
  21695. transient="false" volatile="false"
  21696. static="true" final="true" visibility="public"
  21697. deprecated="not deprecated">
  21698. </field>
  21699. <field name="E2BIG" type="org.apache.hadoop.io.nativeio.Errno"
  21700. transient="false" volatile="false"
  21701. static="true" final="true" visibility="public"
  21702. deprecated="not deprecated">
  21703. </field>
  21704. <field name="ENOEXEC" type="org.apache.hadoop.io.nativeio.Errno"
  21705. transient="false" volatile="false"
  21706. static="true" final="true" visibility="public"
  21707. deprecated="not deprecated">
  21708. </field>
  21709. <field name="EBADF" type="org.apache.hadoop.io.nativeio.Errno"
  21710. transient="false" volatile="false"
  21711. static="true" final="true" visibility="public"
  21712. deprecated="not deprecated">
  21713. </field>
  21714. <field name="ECHILD" type="org.apache.hadoop.io.nativeio.Errno"
  21715. transient="false" volatile="false"
  21716. static="true" final="true" visibility="public"
  21717. deprecated="not deprecated">
  21718. </field>
  21719. <field name="EAGAIN" type="org.apache.hadoop.io.nativeio.Errno"
  21720. transient="false" volatile="false"
  21721. static="true" final="true" visibility="public"
  21722. deprecated="not deprecated">
  21723. </field>
  21724. <field name="ENOMEM" type="org.apache.hadoop.io.nativeio.Errno"
  21725. transient="false" volatile="false"
  21726. static="true" final="true" visibility="public"
  21727. deprecated="not deprecated">
  21728. </field>
  21729. <field name="EACCES" type="org.apache.hadoop.io.nativeio.Errno"
  21730. transient="false" volatile="false"
  21731. static="true" final="true" visibility="public"
  21732. deprecated="not deprecated">
  21733. </field>
  21734. <field name="EFAULT" type="org.apache.hadoop.io.nativeio.Errno"
  21735. transient="false" volatile="false"
  21736. static="true" final="true" visibility="public"
  21737. deprecated="not deprecated">
  21738. </field>
  21739. <field name="ENOTBLK" type="org.apache.hadoop.io.nativeio.Errno"
  21740. transient="false" volatile="false"
  21741. static="true" final="true" visibility="public"
  21742. deprecated="not deprecated">
  21743. </field>
  21744. <field name="EBUSY" type="org.apache.hadoop.io.nativeio.Errno"
  21745. transient="false" volatile="false"
  21746. static="true" final="true" visibility="public"
  21747. deprecated="not deprecated">
  21748. </field>
  21749. <field name="EEXIST" type="org.apache.hadoop.io.nativeio.Errno"
  21750. transient="false" volatile="false"
  21751. static="true" final="true" visibility="public"
  21752. deprecated="not deprecated">
  21753. </field>
  21754. <field name="EXDEV" type="org.apache.hadoop.io.nativeio.Errno"
  21755. transient="false" volatile="false"
  21756. static="true" final="true" visibility="public"
  21757. deprecated="not deprecated">
  21758. </field>
  21759. <field name="ENODEV" type="org.apache.hadoop.io.nativeio.Errno"
  21760. transient="false" volatile="false"
  21761. static="true" final="true" visibility="public"
  21762. deprecated="not deprecated">
  21763. </field>
  21764. <field name="ENOTDIR" type="org.apache.hadoop.io.nativeio.Errno"
  21765. transient="false" volatile="false"
  21766. static="true" final="true" visibility="public"
  21767. deprecated="not deprecated">
  21768. </field>
  21769. <field name="EISDIR" type="org.apache.hadoop.io.nativeio.Errno"
  21770. transient="false" volatile="false"
  21771. static="true" final="true" visibility="public"
  21772. deprecated="not deprecated">
  21773. </field>
  21774. <field name="EINVAL" type="org.apache.hadoop.io.nativeio.Errno"
  21775. transient="false" volatile="false"
  21776. static="true" final="true" visibility="public"
  21777. deprecated="not deprecated">
  21778. </field>
  21779. <field name="ENFILE" type="org.apache.hadoop.io.nativeio.Errno"
  21780. transient="false" volatile="false"
  21781. static="true" final="true" visibility="public"
  21782. deprecated="not deprecated">
  21783. </field>
  21784. <field name="EMFILE" type="org.apache.hadoop.io.nativeio.Errno"
  21785. transient="false" volatile="false"
  21786. static="true" final="true" visibility="public"
  21787. deprecated="not deprecated">
  21788. </field>
  21789. <field name="ENOTTY" type="org.apache.hadoop.io.nativeio.Errno"
  21790. transient="false" volatile="false"
  21791. static="true" final="true" visibility="public"
  21792. deprecated="not deprecated">
  21793. </field>
  21794. <field name="ETXTBSY" type="org.apache.hadoop.io.nativeio.Errno"
  21795. transient="false" volatile="false"
  21796. static="true" final="true" visibility="public"
  21797. deprecated="not deprecated">
  21798. </field>
  21799. <field name="EFBIG" type="org.apache.hadoop.io.nativeio.Errno"
  21800. transient="false" volatile="false"
  21801. static="true" final="true" visibility="public"
  21802. deprecated="not deprecated">
  21803. </field>
  21804. <field name="ENOSPC" type="org.apache.hadoop.io.nativeio.Errno"
  21805. transient="false" volatile="false"
  21806. static="true" final="true" visibility="public"
  21807. deprecated="not deprecated">
  21808. </field>
  21809. <field name="ESPIPE" type="org.apache.hadoop.io.nativeio.Errno"
  21810. transient="false" volatile="false"
  21811. static="true" final="true" visibility="public"
  21812. deprecated="not deprecated">
  21813. </field>
  21814. <field name="EROFS" type="org.apache.hadoop.io.nativeio.Errno"
  21815. transient="false" volatile="false"
  21816. static="true" final="true" visibility="public"
  21817. deprecated="not deprecated">
  21818. </field>
  21819. <field name="EMLINK" type="org.apache.hadoop.io.nativeio.Errno"
  21820. transient="false" volatile="false"
  21821. static="true" final="true" visibility="public"
  21822. deprecated="not deprecated">
  21823. </field>
  21824. <field name="EPIPE" type="org.apache.hadoop.io.nativeio.Errno"
  21825. transient="false" volatile="false"
  21826. static="true" final="true" visibility="public"
  21827. deprecated="not deprecated">
  21828. </field>
  21829. <field name="EDOM" type="org.apache.hadoop.io.nativeio.Errno"
  21830. transient="false" volatile="false"
  21831. static="true" final="true" visibility="public"
  21832. deprecated="not deprecated">
  21833. </field>
  21834. <field name="ERANGE" type="org.apache.hadoop.io.nativeio.Errno"
  21835. transient="false" volatile="false"
  21836. static="true" final="true" visibility="public"
  21837. deprecated="not deprecated">
  21838. </field>
  21839. <field name="UNKNOWN" type="org.apache.hadoop.io.nativeio.Errno"
  21840. transient="false" volatile="false"
  21841. static="true" final="true" visibility="public"
  21842. deprecated="not deprecated">
  21843. </field>
  21844. <doc>
  21845. <![CDATA[Enum representing POSIX errno values.]]>
  21846. </doc>
  21847. </class>
  21848. <!-- end class org.apache.hadoop.io.nativeio.Errno -->
  21849. <!-- start class org.apache.hadoop.io.nativeio.NativeIO -->
  21850. <class name="NativeIO" extends="java.lang.Object"
  21851. abstract="false"
  21852. static="false" final="false" visibility="public"
  21853. deprecated="not deprecated">
  21854. <constructor name="NativeIO"
  21855. static="false" final="false" visibility="public"
  21856. deprecated="not deprecated">
  21857. </constructor>
  21858. <method name="isAvailable" return="boolean"
  21859. abstract="false" native="false" synchronized="false"
  21860. static="true" final="false" visibility="public"
  21861. deprecated="not deprecated">
  21862. <doc>
  21863. <![CDATA[Return true if the JNI-based native IO extensions are available.]]>
  21864. </doc>
  21865. </method>
  21866. <method name="open" return="java.io.FileDescriptor"
  21867. abstract="false" native="true" synchronized="false"
  21868. static="true" final="false" visibility="public"
  21869. deprecated="not deprecated">
  21870. <param name="path" type="java.lang.String"/>
  21871. <param name="flags" type="int"/>
  21872. <param name="mode" type="int"/>
  21873. <exception name="IOException" type="java.io.IOException"/>
  21874. <doc>
  21875. <![CDATA[Wrapper around open(2)]]>
  21876. </doc>
  21877. </method>
  21878. <method name="fstat" return="org.apache.hadoop.io.nativeio.NativeIO.Stat"
  21879. abstract="false" native="true" synchronized="false"
  21880. static="true" final="false" visibility="public"
  21881. deprecated="not deprecated">
  21882. <param name="fd" type="java.io.FileDescriptor"/>
  21883. <exception name="IOException" type="java.io.IOException"/>
  21884. <doc>
  21885. <![CDATA[Wrapper around fstat(2)]]>
  21886. </doc>
  21887. </method>
  21888. <method name="chmod"
  21889. abstract="false" native="true" synchronized="false"
  21890. static="true" final="false" visibility="public"
  21891. deprecated="not deprecated">
  21892. <param name="path" type="java.lang.String"/>
  21893. <param name="mode" type="int"/>
  21894. <exception name="IOException" type="java.io.IOException"/>
  21895. <doc>
  21896. <![CDATA[Wrapper around chmod(2)]]>
  21897. </doc>
  21898. </method>
  21899. <method name="posixFadviseIfPossible"
  21900. abstract="false" native="false" synchronized="false"
  21901. static="true" final="false" visibility="public"
  21902. deprecated="not deprecated">
  21903. <param name="fd" type="java.io.FileDescriptor"/>
  21904. <param name="offset" type="long"/>
  21905. <param name="len" type="long"/>
  21906. <param name="flags" type="int"/>
  21907. <exception name="NativeIOException" type="org.apache.hadoop.io.nativeio.NativeIOException"/>
  21908. <doc>
  21909. <![CDATA[Call posix_fadvise on the given file descriptor. See the manpage
  21910. for this syscall for more information. On systems where this
  21911. call is not available, does nothing.
  21912. @throws NativeIOException if there is an error with the syscall]]>
  21913. </doc>
  21914. </method>
  21915. <method name="syncFileRangeIfPossible"
  21916. abstract="false" native="false" synchronized="false"
  21917. static="true" final="false" visibility="public"
  21918. deprecated="not deprecated">
  21919. <param name="fd" type="java.io.FileDescriptor"/>
  21920. <param name="offset" type="long"/>
  21921. <param name="nbytes" type="long"/>
  21922. <param name="flags" type="int"/>
  21923. <exception name="NativeIOException" type="org.apache.hadoop.io.nativeio.NativeIOException"/>
  21924. <doc>
  21925. <![CDATA[Call sync_file_range on the given file descriptor. See the manpage
  21926. for this syscall for more information. On systems where this
  21927. call is not available, does nothing.
  21928. @throws NativeIOException if there is an error with the syscall]]>
  21929. </doc>
  21930. </method>
  21931. <method name="getOwner" return="java.lang.String"
  21932. abstract="false" native="false" synchronized="false"
  21933. static="true" final="false" visibility="public"
  21934. deprecated="not deprecated">
  21935. <param name="fd" type="java.io.FileDescriptor"/>
  21936. <exception name="IOException" type="java.io.IOException"/>
  21937. </method>
  21938. <field name="O_RDONLY" type="int"
  21939. transient="false" volatile="false"
  21940. static="true" final="true" visibility="public"
  21941. deprecated="not deprecated">
  21942. </field>
  21943. <field name="O_WRONLY" type="int"
  21944. transient="false" volatile="false"
  21945. static="true" final="true" visibility="public"
  21946. deprecated="not deprecated">
  21947. </field>
  21948. <field name="O_RDWR" type="int"
  21949. transient="false" volatile="false"
  21950. static="true" final="true" visibility="public"
  21951. deprecated="not deprecated">
  21952. </field>
  21953. <field name="O_CREAT" type="int"
  21954. transient="false" volatile="false"
  21955. static="true" final="true" visibility="public"
  21956. deprecated="not deprecated">
  21957. </field>
  21958. <field name="O_EXCL" type="int"
  21959. transient="false" volatile="false"
  21960. static="true" final="true" visibility="public"
  21961. deprecated="not deprecated">
  21962. </field>
  21963. <field name="O_NOCTTY" type="int"
  21964. transient="false" volatile="false"
  21965. static="true" final="true" visibility="public"
  21966. deprecated="not deprecated">
  21967. </field>
  21968. <field name="O_TRUNC" type="int"
  21969. transient="false" volatile="false"
  21970. static="true" final="true" visibility="public"
  21971. deprecated="not deprecated">
  21972. </field>
  21973. <field name="O_APPEND" type="int"
  21974. transient="false" volatile="false"
  21975. static="true" final="true" visibility="public"
  21976. deprecated="not deprecated">
  21977. </field>
  21978. <field name="O_NONBLOCK" type="int"
  21979. transient="false" volatile="false"
  21980. static="true" final="true" visibility="public"
  21981. deprecated="not deprecated">
  21982. </field>
  21983. <field name="O_SYNC" type="int"
  21984. transient="false" volatile="false"
  21985. static="true" final="true" visibility="public"
  21986. deprecated="not deprecated">
  21987. </field>
  21988. <field name="O_ASYNC" type="int"
  21989. transient="false" volatile="false"
  21990. static="true" final="true" visibility="public"
  21991. deprecated="not deprecated">
  21992. </field>
  21993. <field name="O_FSYNC" type="int"
  21994. transient="false" volatile="false"
  21995. static="true" final="true" visibility="public"
  21996. deprecated="not deprecated">
  21997. </field>
  21998. <field name="O_NDELAY" type="int"
  21999. transient="false" volatile="false"
  22000. static="true" final="true" visibility="public"
  22001. deprecated="not deprecated">
  22002. </field>
  22003. <field name="POSIX_FADV_NORMAL" type="int"
  22004. transient="false" volatile="false"
  22005. static="true" final="true" visibility="public"
  22006. deprecated="not deprecated">
  22007. </field>
  22008. <field name="POSIX_FADV_RANDOM" type="int"
  22009. transient="false" volatile="false"
  22010. static="true" final="true" visibility="public"
  22011. deprecated="not deprecated">
  22012. </field>
  22013. <field name="POSIX_FADV_SEQUENTIAL" type="int"
  22014. transient="false" volatile="false"
  22015. static="true" final="true" visibility="public"
  22016. deprecated="not deprecated">
  22017. </field>
  22018. <field name="POSIX_FADV_WILLNEED" type="int"
  22019. transient="false" volatile="false"
  22020. static="true" final="true" visibility="public"
  22021. deprecated="not deprecated">
  22022. </field>
  22023. <field name="POSIX_FADV_DONTNEED" type="int"
  22024. transient="false" volatile="false"
  22025. static="true" final="true" visibility="public"
  22026. deprecated="not deprecated">
  22027. </field>
  22028. <field name="POSIX_FADV_NOREUSE" type="int"
  22029. transient="false" volatile="false"
  22030. static="true" final="true" visibility="public"
  22031. deprecated="not deprecated">
  22032. </field>
  22033. <field name="SYNC_FILE_RANGE_WAIT_BEFORE" type="int"
  22034. transient="false" volatile="false"
  22035. static="true" final="true" visibility="public"
  22036. deprecated="not deprecated">
  22037. </field>
  22038. <field name="SYNC_FILE_RANGE_WRITE" type="int"
  22039. transient="false" volatile="false"
  22040. static="true" final="true" visibility="public"
  22041. deprecated="not deprecated">
  22042. </field>
  22043. <field name="SYNC_FILE_RANGE_WAIT_AFTER" type="int"
  22044. transient="false" volatile="false"
  22045. static="true" final="true" visibility="public"
  22046. deprecated="not deprecated">
  22047. </field>
  22048. <doc>
  22049. <![CDATA[JNI wrappers for various native IO-related calls not available in Java.
  22050. These functions should generally be used alongside a fallback to another
  22051. more portable mechanism.]]>
  22052. </doc>
  22053. </class>
  22054. <!-- end class org.apache.hadoop.io.nativeio.NativeIO -->
  22055. <!-- start class org.apache.hadoop.io.nativeio.NativeIO.Stat -->
  22056. <class name="NativeIO.Stat" extends="java.lang.Object"
  22057. abstract="false"
  22058. static="true" final="false" visibility="public"
  22059. deprecated="not deprecated">
  22060. <method name="toString" return="java.lang.String"
  22061. abstract="false" native="false" synchronized="false"
  22062. static="false" final="false" visibility="public"
  22063. deprecated="not deprecated">
  22064. </method>
  22065. <method name="getOwner" return="java.lang.String"
  22066. abstract="false" native="false" synchronized="false"
  22067. static="false" final="false" visibility="public"
  22068. deprecated="not deprecated">
  22069. </method>
  22070. <method name="getMode" return="int"
  22071. abstract="false" native="false" synchronized="false"
  22072. static="false" final="false" visibility="public"
  22073. deprecated="not deprecated">
  22074. </method>
  22075. <field name="S_IFMT" type="int"
  22076. transient="false" volatile="false"
  22077. static="true" final="true" visibility="public"
  22078. deprecated="not deprecated">
  22079. </field>
  22080. <field name="S_IFIFO" type="int"
  22081. transient="false" volatile="false"
  22082. static="true" final="true" visibility="public"
  22083. deprecated="not deprecated">
  22084. </field>
  22085. <field name="S_IFCHR" type="int"
  22086. transient="false" volatile="false"
  22087. static="true" final="true" visibility="public"
  22088. deprecated="not deprecated">
  22089. </field>
  22090. <field name="S_IFDIR" type="int"
  22091. transient="false" volatile="false"
  22092. static="true" final="true" visibility="public"
  22093. deprecated="not deprecated">
  22094. </field>
  22095. <field name="S_IFBLK" type="int"
  22096. transient="false" volatile="false"
  22097. static="true" final="true" visibility="public"
  22098. deprecated="not deprecated">
  22099. </field>
  22100. <field name="S_IFREG" type="int"
  22101. transient="false" volatile="false"
  22102. static="true" final="true" visibility="public"
  22103. deprecated="not deprecated">
  22104. </field>
  22105. <field name="S_IFLNK" type="int"
  22106. transient="false" volatile="false"
  22107. static="true" final="true" visibility="public"
  22108. deprecated="not deprecated">
  22109. </field>
  22110. <field name="S_IFSOCK" type="int"
  22111. transient="false" volatile="false"
  22112. static="true" final="true" visibility="public"
  22113. deprecated="not deprecated">
  22114. </field>
  22115. <field name="S_IFWHT" type="int"
  22116. transient="false" volatile="false"
  22117. static="true" final="true" visibility="public"
  22118. deprecated="not deprecated">
  22119. </field>
  22120. <field name="S_ISUID" type="int"
  22121. transient="false" volatile="false"
  22122. static="true" final="true" visibility="public"
  22123. deprecated="not deprecated">
  22124. </field>
  22125. <field name="S_ISGID" type="int"
  22126. transient="false" volatile="false"
  22127. static="true" final="true" visibility="public"
  22128. deprecated="not deprecated">
  22129. </field>
  22130. <field name="S_ISVTX" type="int"
  22131. transient="false" volatile="false"
  22132. static="true" final="true" visibility="public"
  22133. deprecated="not deprecated">
  22134. </field>
  22135. <field name="S_IRUSR" type="int"
  22136. transient="false" volatile="false"
  22137. static="true" final="true" visibility="public"
  22138. deprecated="not deprecated">
  22139. </field>
  22140. <field name="S_IWUSR" type="int"
  22141. transient="false" volatile="false"
  22142. static="true" final="true" visibility="public"
  22143. deprecated="not deprecated">
  22144. </field>
  22145. <field name="S_IXUSR" type="int"
  22146. transient="false" volatile="false"
  22147. static="true" final="true" visibility="public"
  22148. deprecated="not deprecated">
  22149. </field>
  22150. <doc>
  22151. <![CDATA[Result type of the fstat call]]>
  22152. </doc>
  22153. </class>
  22154. <!-- end class org.apache.hadoop.io.nativeio.NativeIO.Stat -->
  22155. <!-- start class org.apache.hadoop.io.nativeio.NativeIOException -->
  22156. <class name="NativeIOException" extends="java.io.IOException"
  22157. abstract="false"
  22158. static="false" final="false" visibility="public"
  22159. deprecated="not deprecated">
  22160. <constructor name="NativeIOException" type="java.lang.String, org.apache.hadoop.io.nativeio.Errno"
  22161. static="false" final="false" visibility="public"
  22162. deprecated="not deprecated">
  22163. </constructor>
  22164. <method name="getErrno" return="org.apache.hadoop.io.nativeio.Errno"
  22165. abstract="false" native="false" synchronized="false"
  22166. static="false" final="false" visibility="public"
  22167. deprecated="not deprecated">
  22168. </method>
  22169. <method name="toString" return="java.lang.String"
  22170. abstract="false" native="false" synchronized="false"
  22171. static="false" final="false" visibility="public"
  22172. deprecated="not deprecated">
  22173. </method>
  22174. <doc>
  22175. <![CDATA[An exception generated by a call to the native IO code.
  22176. These exceptions simply wrap <i>errno</i> result codes.]]>
  22177. </doc>
  22178. </class>
  22179. <!-- end class org.apache.hadoop.io.nativeio.NativeIOException -->
  22180. </package>
  22181. <package name="org.apache.hadoop.io.retry">
  22182. <!-- start class org.apache.hadoop.io.retry.RetryPolicies -->
  22183. <class name="RetryPolicies" extends="java.lang.Object"
  22184. abstract="false"
  22185. static="false" final="false" visibility="public"
  22186. deprecated="not deprecated">
  22187. <constructor name="RetryPolicies"
  22188. static="false" final="false" visibility="public"
  22189. deprecated="not deprecated">
  22190. </constructor>
  22191. <method name="retryUpToMaximumCountWithFixedSleep" return="org.apache.hadoop.io.retry.RetryPolicy"
  22192. abstract="false" native="false" synchronized="false"
  22193. static="true" final="true" visibility="public"
  22194. deprecated="not deprecated">
  22195. <param name="maxRetries" type="int"/>
  22196. <param name="sleepTime" type="long"/>
  22197. <param name="timeUnit" type="java.util.concurrent.TimeUnit"/>
  22198. <doc>
  22199. <![CDATA[<p>
  22200. Keep trying a limited number of times, waiting a fixed time between attempts,
  22201. and then fail by re-throwing the exception.
  22202. </p>]]>
  22203. </doc>
  22204. </method>
  22205. <method name="retryUpToMaximumTimeWithFixedSleep" return="org.apache.hadoop.io.retry.RetryPolicy"
  22206. abstract="false" native="false" synchronized="false"
  22207. static="true" final="true" visibility="public"
  22208. deprecated="not deprecated">
  22209. <param name="maxTime" type="long"/>
  22210. <param name="sleepTime" type="long"/>
  22211. <param name="timeUnit" type="java.util.concurrent.TimeUnit"/>
  22212. <doc>
  22213. <![CDATA[<p>
  22214. Keep trying for a maximum time, waiting a fixed time between attempts,
  22215. and then fail by re-throwing the exception.
  22216. </p>]]>
  22217. </doc>
  22218. </method>
  22219. <method name="retryUpToMaximumCountWithProportionalSleep" return="org.apache.hadoop.io.retry.RetryPolicy"
  22220. abstract="false" native="false" synchronized="false"
  22221. static="true" final="true" visibility="public"
  22222. deprecated="not deprecated">
  22223. <param name="maxRetries" type="int"/>
  22224. <param name="sleepTime" type="long"/>
  22225. <param name="timeUnit" type="java.util.concurrent.TimeUnit"/>
  22226. <doc>
  22227. <![CDATA[<p>
  22228. Keep trying a limited number of times, waiting a growing amount of time between attempts,
  22229. and then fail by re-throwing the exception.
  22230. The time between attempts is <code>sleepTime</code> mutliplied by the number of tries so far.
  22231. </p>]]>
  22232. </doc>
  22233. </method>
  22234. <method name="exponentialBackoffRetry" return="org.apache.hadoop.io.retry.RetryPolicy"
  22235. abstract="false" native="false" synchronized="false"
  22236. static="true" final="true" visibility="public"
  22237. deprecated="not deprecated">
  22238. <param name="maxRetries" type="int"/>
  22239. <param name="sleepTime" type="long"/>
  22240. <param name="timeUnit" type="java.util.concurrent.TimeUnit"/>
  22241. <doc>
  22242. <![CDATA[<p>
  22243. Keep trying a limited number of times, waiting a growing amount of time between attempts,
  22244. and then fail by re-throwing the exception.
  22245. The time between attempts is <code>sleepTime</code> mutliplied by a random
  22246. number in the range of [0, 2 to the number of retries)
  22247. </p>]]>
  22248. </doc>
  22249. </method>
  22250. <method name="retryByException" return="org.apache.hadoop.io.retry.RetryPolicy"
  22251. abstract="false" native="false" synchronized="false"
  22252. static="true" final="true" visibility="public"
  22253. deprecated="not deprecated">
  22254. <param name="defaultPolicy" type="org.apache.hadoop.io.retry.RetryPolicy"/>
  22255. <param name="exceptionToPolicyMap" type="java.util.Map"/>
  22256. <doc>
  22257. <![CDATA[<p>
  22258. Set a default policy with some explicit handlers for specific exceptions.
  22259. </p>]]>
  22260. </doc>
  22261. </method>
  22262. <method name="retryByRemoteException" return="org.apache.hadoop.io.retry.RetryPolicy"
  22263. abstract="false" native="false" synchronized="false"
  22264. static="true" final="true" visibility="public"
  22265. deprecated="not deprecated">
  22266. <param name="defaultPolicy" type="org.apache.hadoop.io.retry.RetryPolicy"/>
  22267. <param name="exceptionToPolicyMap" type="java.util.Map"/>
  22268. <doc>
  22269. <![CDATA[<p>
  22270. A retry policy for RemoteException
  22271. Set a default policy with some explicit handlers for specific exceptions.
  22272. </p>]]>
  22273. </doc>
  22274. </method>
  22275. <field name="TRY_ONCE_THEN_FAIL" type="org.apache.hadoop.io.retry.RetryPolicy"
  22276. transient="false" volatile="false"
  22277. static="true" final="true" visibility="public"
  22278. deprecated="not deprecated">
  22279. <doc>
  22280. <![CDATA[<p>
  22281. Try once, and fail by re-throwing the exception.
  22282. This corresponds to having no retry mechanism in place.
  22283. </p>]]>
  22284. </doc>
  22285. </field>
  22286. <field name="TRY_ONCE_DONT_FAIL" type="org.apache.hadoop.io.retry.RetryPolicy"
  22287. transient="false" volatile="false"
  22288. static="true" final="true" visibility="public"
  22289. deprecated="not deprecated">
  22290. <doc>
  22291. <![CDATA[<p>
  22292. Try once, and fail silently for <code>void</code> methods, or by
  22293. re-throwing the exception for non-<code>void</code> methods.
  22294. </p>]]>
  22295. </doc>
  22296. </field>
  22297. <field name="RETRY_FOREVER" type="org.apache.hadoop.io.retry.RetryPolicy"
  22298. transient="false" volatile="false"
  22299. static="true" final="true" visibility="public"
  22300. deprecated="not deprecated">
  22301. <doc>
  22302. <![CDATA[<p>
  22303. Keep trying forever.
  22304. </p>]]>
  22305. </doc>
  22306. </field>
  22307. <doc>
  22308. <![CDATA[<p>
  22309. A collection of useful implementations of {@link RetryPolicy}.
  22310. </p>]]>
  22311. </doc>
  22312. </class>
  22313. <!-- end class org.apache.hadoop.io.retry.RetryPolicies -->
  22314. <!-- start class org.apache.hadoop.io.retry.RetryPolicies.MultipleLinearRandomRetry -->
  22315. <class name="RetryPolicies.MultipleLinearRandomRetry" extends="java.lang.Object"
  22316. abstract="false"
  22317. static="true" final="false" visibility="public"
  22318. deprecated="not deprecated">
  22319. <implements name="org.apache.hadoop.io.retry.RetryPolicy"/>
  22320. <constructor name="RetryPolicies.MultipleLinearRandomRetry" type="java.util.List"
  22321. static="false" final="false" visibility="public"
  22322. deprecated="not deprecated">
  22323. </constructor>
  22324. <method name="shouldRetry" return="boolean"
  22325. abstract="false" native="false" synchronized="false"
  22326. static="false" final="false" visibility="public"
  22327. deprecated="not deprecated">
  22328. <param name="e" type="java.lang.Exception"/>
  22329. <param name="curRetry" type="int"/>
  22330. <exception name="Exception" type="java.lang.Exception"/>
  22331. </method>
  22332. <method name="hashCode" return="int"
  22333. abstract="false" native="false" synchronized="false"
  22334. static="false" final="false" visibility="public"
  22335. deprecated="not deprecated">
  22336. </method>
  22337. <method name="equals" return="boolean"
  22338. abstract="false" native="false" synchronized="false"
  22339. static="false" final="false" visibility="public"
  22340. deprecated="not deprecated">
  22341. <param name="that" type="java.lang.Object"/>
  22342. </method>
  22343. <method name="toString" return="java.lang.String"
  22344. abstract="false" native="false" synchronized="false"
  22345. static="false" final="false" visibility="public"
  22346. deprecated="not deprecated">
  22347. </method>
  22348. <method name="parseCommaSeparatedString" return="org.apache.hadoop.io.retry.RetryPolicies.MultipleLinearRandomRetry"
  22349. abstract="false" native="false" synchronized="false"
  22350. static="true" final="false" visibility="public"
  22351. deprecated="not deprecated">
  22352. <param name="s" type="java.lang.String"/>
  22353. <doc>
  22354. <![CDATA[Parse the given string as a MultipleLinearRandomRetry object.
  22355. The format of the string is "t_1, n_1, t_2, n_2, ...",
  22356. where t_i and n_i are the i-th pair of sleep time and number of retires.
  22357. Note that the white spaces in the string are ignored.
  22358. @return the parsed object, or null if the parsing fails.]]>
  22359. </doc>
  22360. </method>
  22361. <doc>
  22362. <![CDATA[Given pairs of number of retries and sleep time (n0, t0), (n1, t1), ...,
  22363. the first n0 retries sleep t0 milliseconds on average,
  22364. the following n1 retries sleep t1 milliseconds on average, and so on.
  22365. For all the sleep, the actual sleep time is randomly uniform distributed
  22366. in the close interval [0.5t, 1.5t], where t is the sleep time specified.
  22367. The objects of this class are immutable.]]>
  22368. </doc>
  22369. </class>
  22370. <!-- end class org.apache.hadoop.io.retry.RetryPolicies.MultipleLinearRandomRetry -->
  22371. <!-- start class org.apache.hadoop.io.retry.RetryPolicies.MultipleLinearRandomRetry.Pair -->
  22372. <class name="RetryPolicies.MultipleLinearRandomRetry.Pair" extends="java.lang.Object"
  22373. abstract="false"
  22374. static="true" final="false" visibility="public"
  22375. deprecated="not deprecated">
  22376. <constructor name="RetryPolicies.MultipleLinearRandomRetry.Pair" type="int, int"
  22377. static="false" final="false" visibility="public"
  22378. deprecated="not deprecated">
  22379. </constructor>
  22380. <method name="toString" return="java.lang.String"
  22381. abstract="false" native="false" synchronized="false"
  22382. static="false" final="false" visibility="public"
  22383. deprecated="not deprecated">
  22384. </method>
  22385. <doc>
  22386. <![CDATA[Pairs of numRetries and sleepSeconds]]>
  22387. </doc>
  22388. </class>
  22389. <!-- end class org.apache.hadoop.io.retry.RetryPolicies.MultipleLinearRandomRetry.Pair -->
  22390. <!-- start interface org.apache.hadoop.io.retry.RetryPolicy -->
  22391. <interface name="RetryPolicy" abstract="true"
  22392. static="false" final="false" visibility="public"
  22393. deprecated="not deprecated">
  22394. <method name="shouldRetry" return="boolean"
  22395. abstract="false" native="false" synchronized="false"
  22396. static="false" final="false" visibility="public"
  22397. deprecated="not deprecated">
  22398. <param name="e" type="java.lang.Exception"/>
  22399. <param name="retries" type="int"/>
  22400. <exception name="Exception" type="java.lang.Exception"/>
  22401. <doc>
  22402. <![CDATA[<p>
  22403. Determines whether the framework should retry a
  22404. method for the given exception, and the number
  22405. of retries that have been made for that operation
  22406. so far.
  22407. </p>
  22408. @param e The exception that caused the method to fail.
  22409. @param retries The number of times the method has been retried.
  22410. @return <code>true</code> if the method should be retried,
  22411. <code>false</code> if the method should not be retried
  22412. but shouldn't fail with an exception (only for void methods).
  22413. @throws Exception The re-thrown exception <code>e</code> indicating
  22414. that the method failed and should not be retried further.]]>
  22415. </doc>
  22416. </method>
  22417. <doc>
  22418. <![CDATA[<p>
  22419. Specifies a policy for retrying method failures.
  22420. Implementations of this interface should be immutable.
  22421. </p>]]>
  22422. </doc>
  22423. </interface>
  22424. <!-- end interface org.apache.hadoop.io.retry.RetryPolicy -->
  22425. <!-- start class org.apache.hadoop.io.retry.RetryProxy -->
  22426. <class name="RetryProxy" extends="java.lang.Object"
  22427. abstract="false"
  22428. static="false" final="false" visibility="public"
  22429. deprecated="not deprecated">
  22430. <constructor name="RetryProxy"
  22431. static="false" final="false" visibility="public"
  22432. deprecated="not deprecated">
  22433. </constructor>
  22434. <method name="create" return="java.lang.Object"
  22435. abstract="false" native="false" synchronized="false"
  22436. static="true" final="false" visibility="public"
  22437. deprecated="not deprecated">
  22438. <param name="iface" type="java.lang.Class"/>
  22439. <param name="implementation" type="java.lang.Object"/>
  22440. <param name="retryPolicy" type="org.apache.hadoop.io.retry.RetryPolicy"/>
  22441. <doc>
  22442. <![CDATA[<p>
  22443. Create a proxy for an interface of an implementation class
  22444. using the same retry policy for each method in the interface.
  22445. </p>
  22446. @param iface the interface that the retry will implement
  22447. @param implementation the instance whose methods should be retried
  22448. @param retryPolicy the policy for retirying method call failures
  22449. @return the retry proxy]]>
  22450. </doc>
  22451. </method>
  22452. <method name="create" return="java.lang.Object"
  22453. abstract="false" native="false" synchronized="false"
  22454. static="true" final="false" visibility="public"
  22455. deprecated="not deprecated">
  22456. <param name="iface" type="java.lang.Class"/>
  22457. <param name="implementation" type="java.lang.Object"/>
  22458. <param name="methodNameToPolicyMap" type="java.util.Map"/>
  22459. <doc>
  22460. <![CDATA[<p>
  22461. Create a proxy for an interface of an implementation class
  22462. using the a set of retry policies specified by method name.
  22463. If no retry policy is defined for a method then a default of
  22464. {@link RetryPolicies#TRY_ONCE_THEN_FAIL} is used.
  22465. </p>
  22466. @param iface the interface that the retry will implement
  22467. @param implementation the instance whose methods should be retried
  22468. @param methodNameToPolicyMap a map of method names to retry policies
  22469. @return the retry proxy]]>
  22470. </doc>
  22471. </method>
  22472. <method name="create" return="java.lang.Object"
  22473. abstract="false" native="false" synchronized="false"
  22474. static="true" final="false" visibility="public"
  22475. deprecated="not deprecated">
  22476. <param name="iface" type="java.lang.Class"/>
  22477. <param name="implementation" type="java.lang.Object"/>
  22478. <param name="defaultPolicy" type="org.apache.hadoop.io.retry.RetryPolicy"/>
  22479. <param name="methodNameToPolicyMap" type="java.util.Map"/>
  22480. </method>
  22481. <doc>
  22482. <![CDATA[<p>
  22483. A factory for creating retry proxies.
  22484. </p>]]>
  22485. </doc>
  22486. </class>
  22487. <!-- end class org.apache.hadoop.io.retry.RetryProxy -->
  22488. <!-- start class org.apache.hadoop.io.retry.RetryUtils -->
  22489. <class name="RetryUtils" extends="java.lang.Object"
  22490. abstract="false"
  22491. static="false" final="false" visibility="public"
  22492. deprecated="not deprecated">
  22493. <constructor name="RetryUtils"
  22494. static="false" final="false" visibility="public"
  22495. deprecated="not deprecated">
  22496. </constructor>
  22497. <method name="getDefaultRetryPolicy" return="org.apache.hadoop.io.retry.RetryPolicy"
  22498. abstract="false" native="false" synchronized="false"
  22499. static="true" final="false" visibility="public"
  22500. deprecated="not deprecated">
  22501. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22502. <param name="retryPolicyEnabledKey" type="java.lang.String"/>
  22503. <param name="defaultRetryPolicyEnabled" type="boolean"/>
  22504. <param name="retryPolicySpecKey" type="java.lang.String"/>
  22505. <param name="defaultRetryPolicySpec" type="java.lang.String"/>
  22506. <param name="remoteExceptionsToRetry" type="java.lang.Class[]"/>
  22507. <doc>
  22508. <![CDATA[Return the default retry policy set in conf.
  22509. If the value retryPolicyEnabledKey is set to false in conf,
  22510. use TRY_ONCE_THEN_FAIL.
  22511. Otherwise, get the MultipleLinearRandomRetry policy specified in the conf
  22512. and then
  22513. (1) use multipleLinearRandomRetry for
  22514. - remoteExceptionToRetry, or
  22515. - IOException other than RemoteException; and
  22516. (2) use TRY_ONCE_THEN_FAIL for
  22517. - RemoteException other than remoteExceptionToRetry, or
  22518. - non-IOException.
  22519. @param conf
  22520. @param retryPolicyEnabledKey conf property key for enabling retry
  22521. @param defaultRetryPolicyEnabled default retryPolicyEnabledKey conf value
  22522. @param retryPolicySpecKey conf property key for retry policy spec
  22523. @param defaultRetryPolicySpec default retryPolicySpecKey conf value
  22524. @param remoteExceptionsToRetry The particular RemoteExceptions to retry
  22525. @return the default retry policy.]]>
  22526. </doc>
  22527. </method>
  22528. <method name="getMultipleLinearRandomRetry" return="org.apache.hadoop.io.retry.RetryPolicy"
  22529. abstract="false" native="false" synchronized="false"
  22530. static="true" final="false" visibility="public"
  22531. deprecated="not deprecated">
  22532. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22533. <param name="retryPolicyEnabledKey" type="java.lang.String"/>
  22534. <param name="defaultRetryPolicyEnabled" type="boolean"/>
  22535. <param name="retryPolicySpecKey" type="java.lang.String"/>
  22536. <param name="defaultRetryPolicySpec" type="java.lang.String"/>
  22537. <doc>
  22538. <![CDATA[Return the MultipleLinearRandomRetry policy specified in the conf,
  22539. or null if the feature is disabled.
  22540. If the policy is specified in the conf but the policy cannot be parsed,
  22541. the default policy is returned.
  22542. Retry policy spec:
  22543. N pairs of sleep-time and number-of-retries "s1,n1,s2,n2,..."
  22544. @param conf
  22545. @param retryPolicyEnabledKey conf property key for enabling retry
  22546. @param defaultRetryPolicyEnabled default retryPolicyEnabledKey conf value
  22547. @param retryPolicySpecKey conf property key for retry policy spec
  22548. @param defaultRetryPolicySpec default retryPolicySpecKey conf value
  22549. @return the MultipleLinearRandomRetry policy specified in the conf,
  22550. or null if the feature is disabled.]]>
  22551. </doc>
  22552. </method>
  22553. <field name="LOG" type="org.apache.commons.logging.Log"
  22554. transient="false" volatile="false"
  22555. static="true" final="true" visibility="public"
  22556. deprecated="not deprecated">
  22557. </field>
  22558. </class>
  22559. <!-- end class org.apache.hadoop.io.retry.RetryUtils -->
  22560. </package>
  22561. <package name="org.apache.hadoop.io.serializer">
  22562. <!-- start interface org.apache.hadoop.io.serializer.Deserializer -->
  22563. <interface name="Deserializer" abstract="true"
  22564. static="false" final="false" visibility="public"
  22565. deprecated="not deprecated">
  22566. <method name="open"
  22567. abstract="false" native="false" synchronized="false"
  22568. static="false" final="false" visibility="public"
  22569. deprecated="not deprecated">
  22570. <param name="in" type="java.io.InputStream"/>
  22571. <exception name="IOException" type="java.io.IOException"/>
  22572. <doc>
  22573. <![CDATA[<p>Prepare the deserializer for reading.</p>]]>
  22574. </doc>
  22575. </method>
  22576. <method name="deserialize" return="java.lang.Object"
  22577. abstract="false" native="false" synchronized="false"
  22578. static="false" final="false" visibility="public"
  22579. deprecated="not deprecated">
  22580. <param name="t" type="java.lang.Object"/>
  22581. <exception name="IOException" type="java.io.IOException"/>
  22582. <doc>
  22583. <![CDATA[<p>
  22584. Deserialize the next object from the underlying input stream.
  22585. If the object <code>t</code> is non-null then this deserializer
  22586. <i>may</i> set its internal state to the next object read from the input
  22587. stream. Otherwise, if the object <code>t</code> is null a new
  22588. deserialized object will be created.
  22589. </p>
  22590. @return the deserialized object]]>
  22591. </doc>
  22592. </method>
  22593. <method name="close"
  22594. abstract="false" native="false" synchronized="false"
  22595. static="false" final="false" visibility="public"
  22596. deprecated="not deprecated">
  22597. <exception name="IOException" type="java.io.IOException"/>
  22598. <doc>
  22599. <![CDATA[<p>Close the underlying input stream and clear up any resources.</p>]]>
  22600. </doc>
  22601. </method>
  22602. <doc>
  22603. <![CDATA[<p>
  22604. Provides a facility for deserializing objects of type <T> from an
  22605. {@link InputStream}.
  22606. </p>
  22607. <p>
  22608. Deserializers are stateful, but must not buffer the input since
  22609. other producers may read from the input between calls to
  22610. {@link #deserialize(Object)}.
  22611. </p>
  22612. @param <T>]]>
  22613. </doc>
  22614. </interface>
  22615. <!-- end interface org.apache.hadoop.io.serializer.Deserializer -->
  22616. <!-- start class org.apache.hadoop.io.serializer.DeserializerComparator -->
  22617. <class name="DeserializerComparator" extends="java.lang.Object"
  22618. abstract="true"
  22619. static="false" final="false" visibility="public"
  22620. deprecated="not deprecated">
  22621. <implements name="org.apache.hadoop.io.RawComparator"/>
  22622. <constructor name="DeserializerComparator" type="org.apache.hadoop.io.serializer.Deserializer"
  22623. static="false" final="false" visibility="protected"
  22624. deprecated="not deprecated">
  22625. <exception name="IOException" type="java.io.IOException"/>
  22626. </constructor>
  22627. <method name="compare" return="int"
  22628. abstract="false" native="false" synchronized="false"
  22629. static="false" final="false" visibility="public"
  22630. deprecated="not deprecated">
  22631. <param name="b1" type="byte[]"/>
  22632. <param name="s1" type="int"/>
  22633. <param name="l1" type="int"/>
  22634. <param name="b2" type="byte[]"/>
  22635. <param name="s2" type="int"/>
  22636. <param name="l2" type="int"/>
  22637. </method>
  22638. <doc>
  22639. <![CDATA[<p>
  22640. A {@link RawComparator} that uses a {@link Deserializer} to deserialize
  22641. the objects to be compared so that the standard {@link Comparator} can
  22642. be used to compare them.
  22643. </p>
  22644. <p>
  22645. One may optimize compare-intensive operations by using a custom
  22646. implementation of {@link RawComparator} that operates directly
  22647. on byte representations.
  22648. </p>
  22649. @param <T>]]>
  22650. </doc>
  22651. </class>
  22652. <!-- end class org.apache.hadoop.io.serializer.DeserializerComparator -->
  22653. <!-- start class org.apache.hadoop.io.serializer.JavaSerialization -->
  22654. <class name="JavaSerialization" extends="java.lang.Object"
  22655. abstract="false"
  22656. static="false" final="false" visibility="public"
  22657. deprecated="not deprecated">
  22658. <implements name="org.apache.hadoop.io.serializer.Serialization"/>
  22659. <constructor name="JavaSerialization"
  22660. static="false" final="false" visibility="public"
  22661. deprecated="not deprecated">
  22662. </constructor>
  22663. <method name="accept" return="boolean"
  22664. abstract="false" native="false" synchronized="false"
  22665. static="false" final="false" visibility="public"
  22666. deprecated="not deprecated">
  22667. <param name="c" type="java.lang.Class"/>
  22668. </method>
  22669. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer"
  22670. abstract="false" native="false" synchronized="false"
  22671. static="false" final="false" visibility="public"
  22672. deprecated="not deprecated">
  22673. <param name="c" type="java.lang.Class"/>
  22674. </method>
  22675. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer"
  22676. abstract="false" native="false" synchronized="false"
  22677. static="false" final="false" visibility="public"
  22678. deprecated="not deprecated">
  22679. <param name="c" type="java.lang.Class"/>
  22680. </method>
  22681. <doc>
  22682. <![CDATA[<p>
  22683. An experimental {@link Serialization} for Java {@link Serializable} classes.
  22684. </p>
  22685. @see JavaSerializationComparator]]>
  22686. </doc>
  22687. </class>
  22688. <!-- end class org.apache.hadoop.io.serializer.JavaSerialization -->
  22689. <!-- start class org.apache.hadoop.io.serializer.JavaSerializationComparator -->
  22690. <class name="JavaSerializationComparator" extends="org.apache.hadoop.io.serializer.DeserializerComparator"
  22691. abstract="false"
  22692. static="false" final="false" visibility="public"
  22693. deprecated="not deprecated">
  22694. <constructor name="JavaSerializationComparator"
  22695. static="false" final="false" visibility="public"
  22696. deprecated="not deprecated">
  22697. <exception name="IOException" type="java.io.IOException"/>
  22698. </constructor>
  22699. <method name="compare" return="int"
  22700. abstract="false" native="false" synchronized="false"
  22701. static="false" final="false" visibility="public"
  22702. deprecated="not deprecated">
  22703. <param name="o1" type="java.io.Serializable"/>
  22704. <param name="o2" type="java.io.Serializable"/>
  22705. </method>
  22706. <doc>
  22707. <![CDATA[<p>
  22708. A {@link RawComparator} that uses a {@link JavaSerialization}
  22709. {@link Deserializer} to deserialize objects that are then compared via
  22710. their {@link Comparable} interfaces.
  22711. </p>
  22712. @param <T>
  22713. @see JavaSerialization]]>
  22714. </doc>
  22715. </class>
  22716. <!-- end class org.apache.hadoop.io.serializer.JavaSerializationComparator -->
  22717. <!-- start interface org.apache.hadoop.io.serializer.Serialization -->
  22718. <interface name="Serialization" abstract="true"
  22719. static="false" final="false" visibility="public"
  22720. deprecated="not deprecated">
  22721. <method name="accept" return="boolean"
  22722. abstract="false" native="false" synchronized="false"
  22723. static="false" final="false" visibility="public"
  22724. deprecated="not deprecated">
  22725. <param name="c" type="java.lang.Class"/>
  22726. <doc>
  22727. <![CDATA[Allows clients to test whether this {@link Serialization}
  22728. supports the given class.]]>
  22729. </doc>
  22730. </method>
  22731. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer"
  22732. abstract="false" native="false" synchronized="false"
  22733. static="false" final="false" visibility="public"
  22734. deprecated="not deprecated">
  22735. <param name="c" type="java.lang.Class"/>
  22736. <doc>
  22737. <![CDATA[@return a {@link Serializer} for the given class.]]>
  22738. </doc>
  22739. </method>
  22740. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer"
  22741. abstract="false" native="false" synchronized="false"
  22742. static="false" final="false" visibility="public"
  22743. deprecated="not deprecated">
  22744. <param name="c" type="java.lang.Class"/>
  22745. <doc>
  22746. <![CDATA[@return a {@link Deserializer} for the given class.]]>
  22747. </doc>
  22748. </method>
  22749. <doc>
  22750. <![CDATA[<p>
  22751. Encapsulates a {@link Serializer}/{@link Deserializer} pair.
  22752. </p>
  22753. @param <T>]]>
  22754. </doc>
  22755. </interface>
  22756. <!-- end interface org.apache.hadoop.io.serializer.Serialization -->
  22757. <!-- start class org.apache.hadoop.io.serializer.SerializationFactory -->
  22758. <class name="SerializationFactory" extends="org.apache.hadoop.conf.Configured"
  22759. abstract="false"
  22760. static="false" final="false" visibility="public"
  22761. deprecated="not deprecated">
  22762. <constructor name="SerializationFactory" type="org.apache.hadoop.conf.Configuration"
  22763. static="false" final="false" visibility="public"
  22764. deprecated="not deprecated">
  22765. <doc>
  22766. <![CDATA[<p>
  22767. Serializations are found by reading the <code>io.serializations</code>
  22768. property from <code>conf</code>, which is a comma-delimited list of
  22769. classnames.
  22770. </p>]]>
  22771. </doc>
  22772. </constructor>
  22773. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer"
  22774. abstract="false" native="false" synchronized="false"
  22775. static="false" final="false" visibility="public"
  22776. deprecated="not deprecated">
  22777. <param name="c" type="java.lang.Class"/>
  22778. </method>
  22779. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer"
  22780. abstract="false" native="false" synchronized="false"
  22781. static="false" final="false" visibility="public"
  22782. deprecated="not deprecated">
  22783. <param name="c" type="java.lang.Class"/>
  22784. </method>
  22785. <method name="getSerialization" return="org.apache.hadoop.io.serializer.Serialization"
  22786. abstract="false" native="false" synchronized="false"
  22787. static="false" final="false" visibility="public"
  22788. deprecated="not deprecated">
  22789. <param name="c" type="java.lang.Class"/>
  22790. </method>
  22791. <doc>
  22792. <![CDATA[<p>
  22793. A factory for {@link Serialization}s.
  22794. </p>]]>
  22795. </doc>
  22796. </class>
  22797. <!-- end class org.apache.hadoop.io.serializer.SerializationFactory -->
  22798. <!-- start interface org.apache.hadoop.io.serializer.Serializer -->
  22799. <interface name="Serializer" abstract="true"
  22800. static="false" final="false" visibility="public"
  22801. deprecated="not deprecated">
  22802. <method name="open"
  22803. abstract="false" native="false" synchronized="false"
  22804. static="false" final="false" visibility="public"
  22805. deprecated="not deprecated">
  22806. <param name="out" type="java.io.OutputStream"/>
  22807. <exception name="IOException" type="java.io.IOException"/>
  22808. <doc>
  22809. <![CDATA[<p>Prepare the serializer for writing.</p>]]>
  22810. </doc>
  22811. </method>
  22812. <method name="serialize"
  22813. abstract="false" native="false" synchronized="false"
  22814. static="false" final="false" visibility="public"
  22815. deprecated="not deprecated">
  22816. <param name="t" type="java.lang.Object"/>
  22817. <exception name="IOException" type="java.io.IOException"/>
  22818. <doc>
  22819. <![CDATA[<p>Serialize <code>t</code> to the underlying output stream.</p>]]>
  22820. </doc>
  22821. </method>
  22822. <method name="close"
  22823. abstract="false" native="false" synchronized="false"
  22824. static="false" final="false" visibility="public"
  22825. deprecated="not deprecated">
  22826. <exception name="IOException" type="java.io.IOException"/>
  22827. <doc>
  22828. <![CDATA[<p>Close the underlying output stream and clear up any resources.</p>]]>
  22829. </doc>
  22830. </method>
  22831. <doc>
  22832. <![CDATA[<p>
  22833. Provides a facility for serializing objects of type <T> to an
  22834. {@link OutputStream}.
  22835. </p>
  22836. <p>
  22837. Serializers are stateful, but must not buffer the output since
  22838. other producers may write to the output between calls to
  22839. {@link #serialize(Object)}.
  22840. </p>
  22841. @param <T>]]>
  22842. </doc>
  22843. </interface>
  22844. <!-- end interface org.apache.hadoop.io.serializer.Serializer -->
  22845. <!-- start class org.apache.hadoop.io.serializer.WritableSerialization -->
  22846. <class name="WritableSerialization" extends="org.apache.hadoop.conf.Configured"
  22847. abstract="false"
  22848. static="false" final="false" visibility="public"
  22849. deprecated="not deprecated">
  22850. <implements name="org.apache.hadoop.io.serializer.Serialization"/>
  22851. <constructor name="WritableSerialization"
  22852. static="false" final="false" visibility="public"
  22853. deprecated="not deprecated">
  22854. </constructor>
  22855. <method name="accept" return="boolean"
  22856. abstract="false" native="false" synchronized="false"
  22857. static="false" final="false" visibility="public"
  22858. deprecated="not deprecated">
  22859. <param name="c" type="java.lang.Class"/>
  22860. </method>
  22861. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer"
  22862. abstract="false" native="false" synchronized="false"
  22863. static="false" final="false" visibility="public"
  22864. deprecated="not deprecated">
  22865. <param name="c" type="java.lang.Class"/>
  22866. </method>
  22867. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer"
  22868. abstract="false" native="false" synchronized="false"
  22869. static="false" final="false" visibility="public"
  22870. deprecated="not deprecated">
  22871. <param name="c" type="java.lang.Class"/>
  22872. </method>
  22873. <doc>
  22874. <![CDATA[A {@link Serialization} for {@link Writable}s that delegates to
  22875. {@link Writable#write(java.io.DataOutput)} and
  22876. {@link Writable#readFields(java.io.DataInput)}.]]>
  22877. </doc>
  22878. </class>
  22879. <!-- end class org.apache.hadoop.io.serializer.WritableSerialization -->
  22880. </package>
  22881. <package name="org.apache.hadoop.ipc">
  22882. <!-- start class org.apache.hadoop.ipc.Client -->
  22883. <class name="Client" extends="java.lang.Object"
  22884. abstract="false"
  22885. static="false" final="false" visibility="public"
  22886. deprecated="not deprecated">
  22887. <constructor name="Client" type="java.lang.Class, org.apache.hadoop.conf.Configuration, javax.net.SocketFactory"
  22888. static="false" final="false" visibility="public"
  22889. deprecated="not deprecated">
  22890. <doc>
  22891. <![CDATA[Construct an IPC client whose values are of the given {@link Writable}
  22892. class.]]>
  22893. </doc>
  22894. </constructor>
  22895. <constructor name="Client" type="java.lang.Class, org.apache.hadoop.conf.Configuration"
  22896. static="false" final="false" visibility="public"
  22897. deprecated="not deprecated">
  22898. <doc>
  22899. <![CDATA[Construct an IPC client with the default SocketFactory
  22900. @param valueClass
  22901. @param conf]]>
  22902. </doc>
  22903. </constructor>
  22904. <method name="setPingInterval"
  22905. abstract="false" native="false" synchronized="false"
  22906. static="true" final="true" visibility="public"
  22907. deprecated="not deprecated">
  22908. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22909. <param name="pingInterval" type="int"/>
  22910. <doc>
  22911. <![CDATA[set the ping interval value in configuration
  22912. @param conf Configuration
  22913. @param pingInterval the ping interval]]>
  22914. </doc>
  22915. </method>
  22916. <method name="getTimeout" return="int"
  22917. abstract="false" native="false" synchronized="false"
  22918. static="true" final="true" visibility="public"
  22919. deprecated="not deprecated">
  22920. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  22921. <doc>
  22922. <![CDATA[The time after which a RPC will timeout. If ping is not enabled (via
  22923. ipc.client.ping), then the timeout value is the same as the pingInterval.
  22924. If ping is enabled, then there is no timeout value.
  22925. @param conf Configuration
  22926. @return the timeout period in milliseconds. -1 if no timeout value is set]]>
  22927. </doc>
  22928. </method>
  22929. <method name="stop"
  22930. abstract="false" native="false" synchronized="false"
  22931. static="false" final="false" visibility="public"
  22932. deprecated="not deprecated">
  22933. <doc>
  22934. <![CDATA[Stop all threads related to this client. No further calls may be made
  22935. using this client.]]>
  22936. </doc>
  22937. </method>
  22938. <method name="call" return="org.apache.hadoop.io.Writable"
  22939. abstract="false" native="false" synchronized="false"
  22940. static="false" final="false" visibility="public"
  22941. deprecated="Use {@link #call(Writable, ConnectionId)} instead">
  22942. <param name="param" type="org.apache.hadoop.io.Writable"/>
  22943. <param name="address" type="java.net.InetSocketAddress"/>
  22944. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  22945. <exception name="IOException" type="java.io.IOException"/>
  22946. <doc>
  22947. <![CDATA[Make a call, passing <code>param</code>, to the IPC server running at
  22948. <code>address</code>, returning the value. Throws exceptions if there are
  22949. network problems or if the remote code threw an exception.
  22950. @deprecated Use {@link #call(Writable, ConnectionId)} instead]]>
  22951. </doc>
  22952. </method>
  22953. <method name="call" return="org.apache.hadoop.io.Writable"
  22954. abstract="false" native="false" synchronized="false"
  22955. static="false" final="false" visibility="public"
  22956. deprecated="Use {@link #call(Writable, ConnectionId)} instead">
  22957. <param name="param" type="org.apache.hadoop.io.Writable"/>
  22958. <param name="addr" type="java.net.InetSocketAddress"/>
  22959. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  22960. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  22961. <exception name="IOException" type="java.io.IOException"/>
  22962. <doc>
  22963. <![CDATA[Make a call, passing <code>param</code>, to the IPC server running at
  22964. <code>address</code> with the <code>ticket</code> credentials, returning
  22965. the value.
  22966. Throws exceptions if there are network problems or if the remote code
  22967. threw an exception.
  22968. @deprecated Use {@link #call(Writable, ConnectionId)} instead]]>
  22969. </doc>
  22970. </method>
  22971. <method name="call" return="org.apache.hadoop.io.Writable"
  22972. abstract="false" native="false" synchronized="false"
  22973. static="false" final="false" visibility="public"
  22974. deprecated="Use {@link #call(Writable, ConnectionId)} instead">
  22975. <param name="param" type="org.apache.hadoop.io.Writable"/>
  22976. <param name="addr" type="java.net.InetSocketAddress"/>
  22977. <param name="protocol" type="java.lang.Class"/>
  22978. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  22979. <param name="rpcTimeout" type="int"/>
  22980. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  22981. <exception name="IOException" type="java.io.IOException"/>
  22982. <doc>
  22983. <![CDATA[Make a call, passing <code>param</code>, to the IPC server running at
  22984. <code>address</code> which is servicing the <code>protocol</code> protocol,
  22985. with the <code>ticket</code> credentials and <code>rpcTimeout</code> as
  22986. timeout, returning the value.
  22987. Throws exceptions if there are network problems or if the remote code
  22988. threw an exception.
  22989. @deprecated Use {@link #call(Writable, ConnectionId)} instead]]>
  22990. </doc>
  22991. </method>
  22992. <method name="call" return="org.apache.hadoop.io.Writable"
  22993. abstract="false" native="false" synchronized="false"
  22994. static="false" final="false" visibility="public"
  22995. deprecated="not deprecated">
  22996. <param name="param" type="org.apache.hadoop.io.Writable"/>
  22997. <param name="addr" type="java.net.InetSocketAddress"/>
  22998. <param name="protocol" type="java.lang.Class"/>
  22999. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  23000. <param name="rpcTimeout" type="int"/>
  23001. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23002. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  23003. <exception name="IOException" type="java.io.IOException"/>
  23004. <doc>
  23005. <![CDATA[Make a call, passing <code>param</code>, to the IPC server running at
  23006. <code>address</code> which is servicing the <code>protocol</code> protocol,
  23007. with the <code>ticket</code> credentials, <code>rpcTimeout</code> as timeout
  23008. and <code>conf</code> as configuration for this connection, returning the
  23009. value. Throws exceptions if there are network problems or if the remote code
  23010. threw an exception.]]>
  23011. </doc>
  23012. </method>
  23013. <method name="call" return="org.apache.hadoop.io.Writable"
  23014. abstract="false" native="false" synchronized="false"
  23015. static="false" final="false" visibility="public"
  23016. deprecated="not deprecated">
  23017. <param name="param" type="org.apache.hadoop.io.Writable"/>
  23018. <param name="remoteId" type="org.apache.hadoop.ipc.Client.ConnectionId"/>
  23019. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  23020. <exception name="IOException" type="java.io.IOException"/>
  23021. <doc>
  23022. <![CDATA[Make a call, passing <code>param</code>, to the IPC server defined by
  23023. <code>remoteId</code>, returning the value.
  23024. Throws exceptions if there are network problems or if the remote code
  23025. threw an exception.]]>
  23026. </doc>
  23027. </method>
  23028. <method name="call" return="org.apache.hadoop.io.Writable[]"
  23029. abstract="false" native="false" synchronized="false"
  23030. static="false" final="false" visibility="public"
  23031. deprecated="Use {@link #call(Writable[], InetSocketAddress[],
  23032. Class, UserGroupInformation, Configuration)} instead">
  23033. <param name="params" type="org.apache.hadoop.io.Writable[]"/>
  23034. <param name="addresses" type="java.net.InetSocketAddress[]"/>
  23035. <exception name="IOException" type="java.io.IOException"/>
  23036. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  23037. <doc>
  23038. <![CDATA[@deprecated Use {@link #call(Writable[], InetSocketAddress[],
  23039. Class, UserGroupInformation, Configuration)} instead]]>
  23040. </doc>
  23041. </method>
  23042. <method name="call" return="org.apache.hadoop.io.Writable[]"
  23043. abstract="false" native="false" synchronized="false"
  23044. static="false" final="false" visibility="public"
  23045. deprecated="Use {@link #call(Writable[], InetSocketAddress[],
  23046. Class, UserGroupInformation, Configuration)} instead">
  23047. <param name="params" type="org.apache.hadoop.io.Writable[]"/>
  23048. <param name="addresses" type="java.net.InetSocketAddress[]"/>
  23049. <param name="protocol" type="java.lang.Class"/>
  23050. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  23051. <exception name="IOException" type="java.io.IOException"/>
  23052. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  23053. <doc>
  23054. <![CDATA[@deprecated Use {@link #call(Writable[], InetSocketAddress[],
  23055. Class, UserGroupInformation, Configuration)} instead]]>
  23056. </doc>
  23057. </method>
  23058. <method name="call" return="org.apache.hadoop.io.Writable[]"
  23059. abstract="false" native="false" synchronized="false"
  23060. static="false" final="false" visibility="public"
  23061. deprecated="not deprecated">
  23062. <param name="params" type="org.apache.hadoop.io.Writable[]"/>
  23063. <param name="addresses" type="java.net.InetSocketAddress[]"/>
  23064. <param name="protocol" type="java.lang.Class"/>
  23065. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  23066. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23067. <exception name="IOException" type="java.io.IOException"/>
  23068. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  23069. <doc>
  23070. <![CDATA[Makes a set of calls in parallel. Each parameter is sent to the
  23071. corresponding address. When all values are available, or have timed out
  23072. or errored, the collected results are returned in an array. The array
  23073. contains nulls for calls that timed out or errored.]]>
  23074. </doc>
  23075. </method>
  23076. <field name="IPC_CLIENT_CONNECT_MAX_RETRIES_KEY" type="java.lang.String"
  23077. transient="false" volatile="false"
  23078. static="true" final="true" visibility="public"
  23079. deprecated="not deprecated">
  23080. </field>
  23081. <field name="IPC_CLIENT_CONNECT_MAX_RETRIES_DEFAULT" type="int"
  23082. transient="false" volatile="false"
  23083. static="true" final="true" visibility="public"
  23084. deprecated="not deprecated">
  23085. </field>
  23086. <field name="LOG" type="org.apache.commons.logging.Log"
  23087. transient="false" volatile="false"
  23088. static="true" final="true" visibility="public"
  23089. deprecated="not deprecated">
  23090. </field>
  23091. <doc>
  23092. <![CDATA[A client for an IPC service. IPC calls take a single {@link Writable} as a
  23093. parameter, and return a {@link Writable} as their value. A service runs on
  23094. a port and is defined by a parameter class and a value class.
  23095. @see Server]]>
  23096. </doc>
  23097. </class>
  23098. <!-- end class org.apache.hadoop.ipc.Client -->
  23099. <!-- start class org.apache.hadoop.ipc.RemoteException -->
  23100. <class name="RemoteException" extends="java.io.IOException"
  23101. abstract="false"
  23102. static="false" final="false" visibility="public"
  23103. deprecated="not deprecated">
  23104. <constructor name="RemoteException" type="java.lang.String, java.lang.String"
  23105. static="false" final="false" visibility="public"
  23106. deprecated="not deprecated">
  23107. </constructor>
  23108. <method name="getClassName" return="java.lang.String"
  23109. abstract="false" native="false" synchronized="false"
  23110. static="false" final="false" visibility="public"
  23111. deprecated="not deprecated">
  23112. </method>
  23113. <method name="unwrapRemoteException" return="java.io.IOException"
  23114. abstract="false" native="false" synchronized="false"
  23115. static="false" final="false" visibility="public"
  23116. deprecated="not deprecated">
  23117. <param name="lookupTypes" type="java.lang.Class[]"/>
  23118. <doc>
  23119. <![CDATA[If this remote exception wraps up one of the lookupTypes
  23120. then return this exception.
  23121. <p>
  23122. Unwraps any IOException.
  23123. @param lookupTypes the desired exception class.
  23124. @return IOException, which is either the lookupClass exception or this.]]>
  23125. </doc>
  23126. </method>
  23127. <method name="unwrapRemoteException" return="java.io.IOException"
  23128. abstract="false" native="false" synchronized="false"
  23129. static="false" final="false" visibility="public"
  23130. deprecated="not deprecated">
  23131. <doc>
  23132. <![CDATA[Instantiate and return the exception wrapped up by this remote exception.
  23133. <p> This unwraps any <code>Throwable</code> that has a constructor taking
  23134. a <code>String</code> as a parameter.
  23135. Otherwise it returns this.
  23136. @return <code>Throwable]]>
  23137. </doc>
  23138. </method>
  23139. <method name="valueOf" return="org.apache.hadoop.ipc.RemoteException"
  23140. abstract="false" native="false" synchronized="false"
  23141. static="true" final="false" visibility="public"
  23142. deprecated="not deprecated">
  23143. <param name="attrs" type="org.xml.sax.Attributes"/>
  23144. <doc>
  23145. <![CDATA[Create RemoteException from attributes]]>
  23146. </doc>
  23147. </method>
  23148. </class>
  23149. <!-- end class org.apache.hadoop.ipc.RemoteException -->
  23150. <!-- start class org.apache.hadoop.ipc.RPC -->
  23151. <class name="RPC" extends="java.lang.Object"
  23152. abstract="false"
  23153. static="false" final="false" visibility="public"
  23154. deprecated="not deprecated">
  23155. <method name="waitForProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  23156. abstract="false" native="false" synchronized="false"
  23157. static="true" final="false" visibility="public"
  23158. deprecated="not deprecated">
  23159. <param name="protocol" type="java.lang.Class"/>
  23160. <param name="clientVersion" type="long"/>
  23161. <param name="addr" type="java.net.InetSocketAddress"/>
  23162. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23163. <exception name="IOException" type="java.io.IOException"/>
  23164. </method>
  23165. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  23166. abstract="false" native="false" synchronized="false"
  23167. static="true" final="false" visibility="public"
  23168. deprecated="not deprecated">
  23169. <param name="protocol" type="java.lang.Class"/>
  23170. <param name="clientVersion" type="long"/>
  23171. <param name="addr" type="java.net.InetSocketAddress"/>
  23172. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23173. <param name="factory" type="javax.net.SocketFactory"/>
  23174. <exception name="IOException" type="java.io.IOException"/>
  23175. <doc>
  23176. <![CDATA[Construct a client-side proxy object that implements the named protocol,
  23177. talking to a server at the named address.]]>
  23178. </doc>
  23179. </method>
  23180. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  23181. abstract="false" native="false" synchronized="false"
  23182. static="true" final="false" visibility="public"
  23183. deprecated="not deprecated">
  23184. <param name="protocol" type="java.lang.Class"/>
  23185. <param name="clientVersion" type="long"/>
  23186. <param name="addr" type="java.net.InetSocketAddress"/>
  23187. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23188. <param name="factory" type="javax.net.SocketFactory"/>
  23189. <param name="rpcTimeout" type="int"/>
  23190. <exception name="IOException" type="java.io.IOException"/>
  23191. <doc>
  23192. <![CDATA[Construct a client-side proxy object that implements the named protocol,
  23193. talking to a server at the named address.]]>
  23194. </doc>
  23195. </method>
  23196. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  23197. abstract="false" native="false" synchronized="false"
  23198. static="true" final="false" visibility="public"
  23199. deprecated="not deprecated">
  23200. <param name="protocol" type="java.lang.Class"/>
  23201. <param name="clientVersion" type="long"/>
  23202. <param name="addr" type="java.net.InetSocketAddress"/>
  23203. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  23204. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23205. <param name="factory" type="javax.net.SocketFactory"/>
  23206. <exception name="IOException" type="java.io.IOException"/>
  23207. <doc>
  23208. <![CDATA[Construct a client-side proxy object that implements the named protocol,
  23209. talking to a server at the named address.]]>
  23210. </doc>
  23211. </method>
  23212. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  23213. abstract="false" native="false" synchronized="false"
  23214. static="true" final="false" visibility="public"
  23215. deprecated="not deprecated">
  23216. <param name="protocol" type="java.lang.Class"/>
  23217. <param name="clientVersion" type="long"/>
  23218. <param name="addr" type="java.net.InetSocketAddress"/>
  23219. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  23220. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23221. <param name="factory" type="javax.net.SocketFactory"/>
  23222. <param name="rpcTimeout" type="int"/>
  23223. <exception name="IOException" type="java.io.IOException"/>
  23224. <doc>
  23225. <![CDATA[Construct a client-side proxy object that implements the named protocol,
  23226. talking to a server at the named address.]]>
  23227. </doc>
  23228. </method>
  23229. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  23230. abstract="false" native="false" synchronized="false"
  23231. static="true" final="false" visibility="public"
  23232. deprecated="not deprecated">
  23233. <param name="protocol" type="java.lang.Class"/>
  23234. <param name="clientVersion" type="long"/>
  23235. <param name="addr" type="java.net.InetSocketAddress"/>
  23236. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  23237. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23238. <param name="factory" type="javax.net.SocketFactory"/>
  23239. <param name="rpcTimeout" type="int"/>
  23240. <param name="connectionRetryPolicy" type="org.apache.hadoop.io.retry.RetryPolicy"/>
  23241. <param name="checkVersion" type="boolean"/>
  23242. <exception name="IOException" type="java.io.IOException"/>
  23243. <doc>
  23244. <![CDATA[Construct a client-side proxy object that implements the named protocol,
  23245. talking to a server at the named address.]]>
  23246. </doc>
  23247. </method>
  23248. <method name="checkVersion"
  23249. abstract="false" native="false" synchronized="false"
  23250. static="true" final="false" visibility="public"
  23251. deprecated="not deprecated">
  23252. <param name="protocol" type="java.lang.Class"/>
  23253. <param name="clientVersion" type="long"/>
  23254. <param name="proxy" type="org.apache.hadoop.ipc.VersionedProtocol"/>
  23255. <exception name="IOException" type="java.io.IOException"/>
  23256. <doc>
  23257. <![CDATA[Get server version and then compare it with client version.]]>
  23258. </doc>
  23259. </method>
  23260. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  23261. abstract="false" native="false" synchronized="false"
  23262. static="true" final="false" visibility="public"
  23263. deprecated="not deprecated">
  23264. <param name="protocol" type="java.lang.Class"/>
  23265. <param name="clientVersion" type="long"/>
  23266. <param name="addr" type="java.net.InetSocketAddress"/>
  23267. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23268. <exception name="IOException" type="java.io.IOException"/>
  23269. <doc>
  23270. <![CDATA[Construct a client-side proxy object with the default SocketFactory
  23271. @param protocol
  23272. @param clientVersion
  23273. @param addr
  23274. @param conf
  23275. @return a proxy instance
  23276. @throws IOException]]>
  23277. </doc>
  23278. </method>
  23279. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  23280. abstract="false" native="false" synchronized="false"
  23281. static="true" final="false" visibility="public"
  23282. deprecated="not deprecated">
  23283. <param name="protocol" type="java.lang.Class"/>
  23284. <param name="clientVersion" type="long"/>
  23285. <param name="addr" type="java.net.InetSocketAddress"/>
  23286. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23287. <param name="rpcTimeout" type="int"/>
  23288. <exception name="IOException" type="java.io.IOException"/>
  23289. </method>
  23290. <method name="stopProxy"
  23291. abstract="false" native="false" synchronized="false"
  23292. static="true" final="false" visibility="public"
  23293. deprecated="not deprecated">
  23294. <param name="proxy" type="org.apache.hadoop.ipc.VersionedProtocol"/>
  23295. <doc>
  23296. <![CDATA[Stop this proxy and release its invoker's resource
  23297. @param proxy the proxy to be stopped]]>
  23298. </doc>
  23299. </method>
  23300. <method name="call" return="java.lang.Object[]"
  23301. abstract="false" native="false" synchronized="false"
  23302. static="true" final="false" visibility="public"
  23303. deprecated="Use {@link #call(Method, Object[][], InetSocketAddress[], UserGroupInformation, Configuration)} instead">
  23304. <param name="method" type="java.lang.reflect.Method"/>
  23305. <param name="params" type="java.lang.Object[][]"/>
  23306. <param name="addrs" type="java.net.InetSocketAddress[]"/>
  23307. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23308. <exception name="IOException" type="java.io.IOException"/>
  23309. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  23310. <doc>
  23311. <![CDATA[Expert: Make multiple, parallel calls to a set of servers.
  23312. @deprecated Use {@link #call(Method, Object[][], InetSocketAddress[], UserGroupInformation, Configuration)} instead]]>
  23313. </doc>
  23314. </method>
  23315. <method name="call" return="java.lang.Object[]"
  23316. abstract="false" native="false" synchronized="false"
  23317. static="true" final="false" visibility="public"
  23318. deprecated="not deprecated">
  23319. <param name="method" type="java.lang.reflect.Method"/>
  23320. <param name="params" type="java.lang.Object[][]"/>
  23321. <param name="addrs" type="java.net.InetSocketAddress[]"/>
  23322. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  23323. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23324. <exception name="IOException" type="java.io.IOException"/>
  23325. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  23326. <doc>
  23327. <![CDATA[Expert: Make multiple, parallel calls to a set of servers.]]>
  23328. </doc>
  23329. </method>
  23330. <method name="getServer" return="org.apache.hadoop.ipc.RPC.Server"
  23331. abstract="false" native="false" synchronized="false"
  23332. static="true" final="false" visibility="public"
  23333. deprecated="not deprecated">
  23334. <param name="instance" type="java.lang.Object"/>
  23335. <param name="bindAddress" type="java.lang.String"/>
  23336. <param name="port" type="int"/>
  23337. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23338. <exception name="IOException" type="java.io.IOException"/>
  23339. <doc>
  23340. <![CDATA[Construct a server for a protocol implementation instance listening on a
  23341. port and address.]]>
  23342. </doc>
  23343. </method>
  23344. <method name="getServer" return="org.apache.hadoop.ipc.RPC.Server"
  23345. abstract="false" native="false" synchronized="false"
  23346. static="true" final="false" visibility="public"
  23347. deprecated="not deprecated">
  23348. <param name="instance" type="java.lang.Object"/>
  23349. <param name="bindAddress" type="java.lang.String"/>
  23350. <param name="port" type="int"/>
  23351. <param name="numHandlers" type="int"/>
  23352. <param name="verbose" type="boolean"/>
  23353. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23354. <exception name="IOException" type="java.io.IOException"/>
  23355. <doc>
  23356. <![CDATA[Construct a server for a protocol implementation instance listening on a
  23357. port and address.]]>
  23358. </doc>
  23359. </method>
  23360. <method name="getServer" return="org.apache.hadoop.ipc.RPC.Server"
  23361. abstract="false" native="false" synchronized="false"
  23362. static="true" final="false" visibility="public"
  23363. deprecated="not deprecated">
  23364. <param name="instance" type="java.lang.Object"/>
  23365. <param name="bindAddress" type="java.lang.String"/>
  23366. <param name="port" type="int"/>
  23367. <param name="numHandlers" type="int"/>
  23368. <param name="verbose" type="boolean"/>
  23369. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23370. <param name="secretManager" type="org.apache.hadoop.security.token.SecretManager"/>
  23371. <exception name="IOException" type="java.io.IOException"/>
  23372. <doc>
  23373. <![CDATA[Construct a server for a protocol implementation instance listening on a
  23374. port and address, with a secret manager.]]>
  23375. </doc>
  23376. </method>
  23377. <doc>
  23378. <![CDATA[A simple RPC mechanism.
  23379. A <i>protocol</i> is a Java interface. All parameters and return types must
  23380. be one of:
  23381. <ul> <li>a primitive type, <code>boolean</code>, <code>byte</code>,
  23382. <code>char</code>, <code>short</code>, <code>int</code>, <code>long</code>,
  23383. <code>float</code>, <code>double</code>, or <code>void</code>; or</li>
  23384. <li>a {@link String}; or</li>
  23385. <li>a {@link Writable}; or</li>
  23386. <li>an array of the above types</li> </ul>
  23387. All methods in the protocol should throw only IOException. No field data of
  23388. the protocol instance is transmitted.]]>
  23389. </doc>
  23390. </class>
  23391. <!-- end class org.apache.hadoop.ipc.RPC -->
  23392. <!-- start class org.apache.hadoop.ipc.RPC.Server -->
  23393. <class name="RPC.Server" extends="org.apache.hadoop.ipc.Server"
  23394. abstract="false"
  23395. static="true" final="false" visibility="public"
  23396. deprecated="not deprecated">
  23397. <constructor name="RPC.Server" type="java.lang.Object, org.apache.hadoop.conf.Configuration, java.lang.String, int"
  23398. static="false" final="false" visibility="public"
  23399. deprecated="not deprecated">
  23400. <exception name="IOException" type="java.io.IOException"/>
  23401. <doc>
  23402. <![CDATA[Construct an RPC server.
  23403. @param instance the instance whose methods will be called
  23404. @param conf the configuration to use
  23405. @param bindAddress the address to bind on to listen for connection
  23406. @param port the port to listen for connections on]]>
  23407. </doc>
  23408. </constructor>
  23409. <constructor name="RPC.Server" type="java.lang.Object, org.apache.hadoop.conf.Configuration, java.lang.String, int, int, boolean, org.apache.hadoop.security.token.SecretManager"
  23410. static="false" final="false" visibility="public"
  23411. deprecated="not deprecated">
  23412. <exception name="IOException" type="java.io.IOException"/>
  23413. <doc>
  23414. <![CDATA[Construct an RPC server.
  23415. @param instance the instance whose methods will be called
  23416. @param conf the configuration to use
  23417. @param bindAddress the address to bind on to listen for connection
  23418. @param port the port to listen for connections on
  23419. @param numHandlers the number of method handler threads to run
  23420. @param verbose whether each call should be logged]]>
  23421. </doc>
  23422. </constructor>
  23423. <method name="call" return="org.apache.hadoop.io.Writable"
  23424. abstract="false" native="false" synchronized="false"
  23425. static="false" final="false" visibility="public"
  23426. deprecated="not deprecated">
  23427. <param name="protocol" type="java.lang.Class"/>
  23428. <param name="param" type="org.apache.hadoop.io.Writable"/>
  23429. <param name="receivedTime" type="long"/>
  23430. <exception name="IOException" type="java.io.IOException"/>
  23431. </method>
  23432. <doc>
  23433. <![CDATA[An RPC Server.]]>
  23434. </doc>
  23435. </class>
  23436. <!-- end class org.apache.hadoop.ipc.RPC.Server -->
  23437. <!-- start class org.apache.hadoop.ipc.RPC.VersionMismatch -->
  23438. <class name="RPC.VersionMismatch" extends="java.io.IOException"
  23439. abstract="false"
  23440. static="true" final="false" visibility="public"
  23441. deprecated="not deprecated">
  23442. <constructor name="RPC.VersionMismatch" type="java.lang.String, long, long"
  23443. static="false" final="false" visibility="public"
  23444. deprecated="not deprecated">
  23445. <doc>
  23446. <![CDATA[Create a version mismatch exception
  23447. @param interfaceName the name of the protocol mismatch
  23448. @param clientVersion the client's version of the protocol
  23449. @param serverVersion the server's version of the protocol]]>
  23450. </doc>
  23451. </constructor>
  23452. <method name="getInterfaceName" return="java.lang.String"
  23453. abstract="false" native="false" synchronized="false"
  23454. static="false" final="false" visibility="public"
  23455. deprecated="not deprecated">
  23456. <doc>
  23457. <![CDATA[Get the interface name
  23458. @return the java class name
  23459. (eg. org.apache.hadoop.mapred.InterTrackerProtocol)]]>
  23460. </doc>
  23461. </method>
  23462. <method name="getClientVersion" return="long"
  23463. abstract="false" native="false" synchronized="false"
  23464. static="false" final="false" visibility="public"
  23465. deprecated="not deprecated">
  23466. <doc>
  23467. <![CDATA[Get the client's preferred version]]>
  23468. </doc>
  23469. </method>
  23470. <method name="getServerVersion" return="long"
  23471. abstract="false" native="false" synchronized="false"
  23472. static="false" final="false" visibility="public"
  23473. deprecated="not deprecated">
  23474. <doc>
  23475. <![CDATA[Get the server's agreed to version.]]>
  23476. </doc>
  23477. </method>
  23478. <doc>
  23479. <![CDATA[A version mismatch for the RPC protocol.]]>
  23480. </doc>
  23481. </class>
  23482. <!-- end class org.apache.hadoop.ipc.RPC.VersionMismatch -->
  23483. <!-- start class org.apache.hadoop.ipc.Server -->
  23484. <class name="Server" extends="java.lang.Object"
  23485. abstract="true"
  23486. static="false" final="false" visibility="public"
  23487. deprecated="not deprecated">
  23488. <constructor name="Server" type="java.lang.String, int, java.lang.Class, int, org.apache.hadoop.conf.Configuration"
  23489. static="false" final="false" visibility="protected"
  23490. deprecated="not deprecated">
  23491. <exception name="IOException" type="java.io.IOException"/>
  23492. </constructor>
  23493. <constructor name="Server" type="java.lang.String, int, java.lang.Class, int, org.apache.hadoop.conf.Configuration, java.lang.String"
  23494. static="false" final="false" visibility="protected"
  23495. deprecated="not deprecated">
  23496. <exception name="IOException" type="java.io.IOException"/>
  23497. </constructor>
  23498. <constructor name="Server" type="java.lang.String, int, java.lang.Class, int, org.apache.hadoop.conf.Configuration, java.lang.String, org.apache.hadoop.security.token.SecretManager"
  23499. static="false" final="false" visibility="protected"
  23500. deprecated="not deprecated">
  23501. <exception name="IOException" type="java.io.IOException"/>
  23502. <doc>
  23503. <![CDATA[Constructs a server listening on the named port and address. Parameters passed must
  23504. be of the named class. The <code>handlerCount</handlerCount> determines
  23505. the number of handler threads that will be used to process calls.]]>
  23506. </doc>
  23507. </constructor>
  23508. <method name="addTerseExceptions"
  23509. abstract="false" native="false" synchronized="false"
  23510. static="false" final="false" visibility="public"
  23511. deprecated="not deprecated">
  23512. <param name="exceptionClass" type="java.lang.Class[]"/>
  23513. </method>
  23514. <method name="get" return="org.apache.hadoop.ipc.Server"
  23515. abstract="false" native="false" synchronized="false"
  23516. static="true" final="false" visibility="public"
  23517. deprecated="not deprecated">
  23518. <doc>
  23519. <![CDATA[Returns the server instance called under or null. May be called under
  23520. {@link #call(Writable, long)} implementations, and under {@link Writable}
  23521. methods of paramters and return values. Permits applications to access
  23522. the server context.]]>
  23523. </doc>
  23524. </method>
  23525. <method name="getRemoteIp" return="java.net.InetAddress"
  23526. abstract="false" native="false" synchronized="false"
  23527. static="true" final="false" visibility="public"
  23528. deprecated="not deprecated">
  23529. <doc>
  23530. <![CDATA[Returns the remote side ip address when invoked inside an RPC
  23531. Returns null incase of an error.]]>
  23532. </doc>
  23533. </method>
  23534. <method name="getRemoteAddress" return="java.lang.String"
  23535. abstract="false" native="false" synchronized="false"
  23536. static="true" final="false" visibility="public"
  23537. deprecated="not deprecated">
  23538. <doc>
  23539. <![CDATA[Returns remote address as a string when invoked inside an RPC.
  23540. Returns null in case of an error.]]>
  23541. </doc>
  23542. </method>
  23543. <method name="bind"
  23544. abstract="false" native="false" synchronized="false"
  23545. static="true" final="false" visibility="public"
  23546. deprecated="not deprecated">
  23547. <param name="socket" type="java.net.ServerSocket"/>
  23548. <param name="address" type="java.net.InetSocketAddress"/>
  23549. <param name="backlog" type="int"/>
  23550. <exception name="IOException" type="java.io.IOException"/>
  23551. <doc>
  23552. <![CDATA[A convenience method to bind to a given address and report
  23553. better exceptions if the address is not a valid host.
  23554. @param socket the socket to bind
  23555. @param address the address to bind to
  23556. @param backlog the number of connections allowed in the queue
  23557. @throws BindException if the address can't be bound
  23558. @throws UnknownHostException if the address isn't a valid host name
  23559. @throws IOException other random errors from bind]]>
  23560. </doc>
  23561. </method>
  23562. <method name="getRpcMetrics" return="org.apache.hadoop.ipc.metrics.RpcInstrumentation"
  23563. abstract="false" native="false" synchronized="false"
  23564. static="false" final="false" visibility="public"
  23565. deprecated="not deprecated">
  23566. <doc>
  23567. <![CDATA[Returns a handle to the rpcMetrics (required in tests)
  23568. @return rpc metrics]]>
  23569. </doc>
  23570. </method>
  23571. <method name="setSocketSendBufSize"
  23572. abstract="false" native="false" synchronized="false"
  23573. static="false" final="false" visibility="public"
  23574. deprecated="not deprecated">
  23575. <param name="size" type="int"/>
  23576. <doc>
  23577. <![CDATA[Sets the socket buffer size used for responding to RPCs]]>
  23578. </doc>
  23579. </method>
  23580. <method name="start"
  23581. abstract="false" native="false" synchronized="true"
  23582. static="false" final="false" visibility="public"
  23583. deprecated="not deprecated">
  23584. <doc>
  23585. <![CDATA[Starts the service. Must be called before any calls will be handled.]]>
  23586. </doc>
  23587. </method>
  23588. <method name="stop"
  23589. abstract="false" native="false" synchronized="true"
  23590. static="false" final="false" visibility="public"
  23591. deprecated="not deprecated">
  23592. <doc>
  23593. <![CDATA[Stops the service. No new calls will be handled after this is called.]]>
  23594. </doc>
  23595. </method>
  23596. <method name="join"
  23597. abstract="false" native="false" synchronized="true"
  23598. static="false" final="false" visibility="public"
  23599. deprecated="not deprecated">
  23600. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  23601. <doc>
  23602. <![CDATA[Wait for the server to be stopped.
  23603. Does not wait for all subthreads to finish.
  23604. See {@link #stop()}.]]>
  23605. </doc>
  23606. </method>
  23607. <method name="getListenerAddress" return="java.net.InetSocketAddress"
  23608. abstract="false" native="false" synchronized="true"
  23609. static="false" final="false" visibility="public"
  23610. deprecated="not deprecated">
  23611. <doc>
  23612. <![CDATA[Return the socket (ip+port) on which the RPC server is listening to.
  23613. @return the socket (ip+port) on which the RPC server is listening to.]]>
  23614. </doc>
  23615. </method>
  23616. <method name="call" return="org.apache.hadoop.io.Writable"
  23617. abstract="false" native="false" synchronized="false"
  23618. static="false" final="false" visibility="public"
  23619. deprecated="Use {@link #call(Class, Writable, long)} instead">
  23620. <param name="param" type="org.apache.hadoop.io.Writable"/>
  23621. <param name="receiveTime" type="long"/>
  23622. <exception name="IOException" type="java.io.IOException"/>
  23623. <doc>
  23624. <![CDATA[Called for each call.
  23625. @deprecated Use {@link #call(Class, Writable, long)} instead]]>
  23626. </doc>
  23627. </method>
  23628. <method name="call" return="org.apache.hadoop.io.Writable"
  23629. abstract="true" native="false" synchronized="false"
  23630. static="false" final="false" visibility="public"
  23631. deprecated="not deprecated">
  23632. <param name="protocol" type="java.lang.Class"/>
  23633. <param name="param" type="org.apache.hadoop.io.Writable"/>
  23634. <param name="receiveTime" type="long"/>
  23635. <exception name="IOException" type="java.io.IOException"/>
  23636. <doc>
  23637. <![CDATA[Called for each call.]]>
  23638. </doc>
  23639. </method>
  23640. <method name="authorize"
  23641. abstract="false" native="false" synchronized="false"
  23642. static="false" final="false" visibility="public"
  23643. deprecated="not deprecated">
  23644. <param name="user" type="org.apache.hadoop.security.UserGroupInformation"/>
  23645. <param name="connection" type="org.apache.hadoop.ipc.ConnectionHeader"/>
  23646. <param name="addr" type="java.net.InetAddress"/>
  23647. <exception name="AuthorizationException" type="org.apache.hadoop.security.authorize.AuthorizationException"/>
  23648. <doc>
  23649. <![CDATA[Authorize the incoming client connection.
  23650. @param user client user
  23651. @param connection incoming connection
  23652. @param addr InetAddress of incoming connection
  23653. @throws AuthorizationException when the client isn't authorized to talk the protocol]]>
  23654. </doc>
  23655. </method>
  23656. <method name="getNumOpenConnections" return="int"
  23657. abstract="false" native="false" synchronized="false"
  23658. static="false" final="false" visibility="public"
  23659. deprecated="not deprecated">
  23660. <doc>
  23661. <![CDATA[The number of open RPC conections
  23662. @return the number of open rpc connections]]>
  23663. </doc>
  23664. </method>
  23665. <method name="getCallQueueLen" return="int"
  23666. abstract="false" native="false" synchronized="false"
  23667. static="false" final="false" visibility="public"
  23668. deprecated="not deprecated">
  23669. <doc>
  23670. <![CDATA[The number of rpc calls in the queue.
  23671. @return The number of rpc calls in the queue.]]>
  23672. </doc>
  23673. </method>
  23674. <field name="HEADER" type="java.nio.ByteBuffer"
  23675. transient="false" volatile="false"
  23676. static="true" final="true" visibility="public"
  23677. deprecated="not deprecated">
  23678. <doc>
  23679. <![CDATA[The first four bytes of Hadoop RPC connections]]>
  23680. </doc>
  23681. </field>
  23682. <field name="CURRENT_VERSION" type="byte"
  23683. transient="false" volatile="false"
  23684. static="true" final="true" visibility="public"
  23685. deprecated="not deprecated">
  23686. </field>
  23687. <field name="LOG" type="org.apache.commons.logging.Log"
  23688. transient="false" volatile="false"
  23689. static="true" final="true" visibility="public"
  23690. deprecated="not deprecated">
  23691. </field>
  23692. <field name="rpcMetrics" type="org.apache.hadoop.ipc.metrics.RpcInstrumentation"
  23693. transient="false" volatile="false"
  23694. static="false" final="false" visibility="protected"
  23695. deprecated="not deprecated">
  23696. </field>
  23697. <doc>
  23698. <![CDATA[An abstract IPC service. IPC calls take a single {@link Writable} as a
  23699. parameter, and return a {@link Writable} as their value. A service runs on
  23700. a port and is defined by a parameter class and a value class.
  23701. @see Client]]>
  23702. </doc>
  23703. </class>
  23704. <!-- end class org.apache.hadoop.ipc.Server -->
  23705. <!-- start class org.apache.hadoop.ipc.Server.Connection -->
  23706. <class name="Server.Connection" extends="java.lang.Object"
  23707. abstract="false"
  23708. static="false" final="false" visibility="public"
  23709. deprecated="not deprecated">
  23710. <constructor name="Server.Connection" type="java.nio.channels.SelectionKey, java.nio.channels.SocketChannel, long"
  23711. static="false" final="false" visibility="public"
  23712. deprecated="not deprecated">
  23713. </constructor>
  23714. <method name="toString" return="java.lang.String"
  23715. abstract="false" native="false" synchronized="false"
  23716. static="false" final="false" visibility="public"
  23717. deprecated="not deprecated">
  23718. </method>
  23719. <method name="getHostAddress" return="java.lang.String"
  23720. abstract="false" native="false" synchronized="false"
  23721. static="false" final="false" visibility="public"
  23722. deprecated="not deprecated">
  23723. </method>
  23724. <method name="getHostInetAddress" return="java.net.InetAddress"
  23725. abstract="false" native="false" synchronized="false"
  23726. static="false" final="false" visibility="public"
  23727. deprecated="not deprecated">
  23728. </method>
  23729. <method name="setLastContact"
  23730. abstract="false" native="false" synchronized="false"
  23731. static="false" final="false" visibility="public"
  23732. deprecated="not deprecated">
  23733. <param name="lastContact" type="long"/>
  23734. </method>
  23735. <method name="getLastContact" return="long"
  23736. abstract="false" native="false" synchronized="false"
  23737. static="false" final="false" visibility="public"
  23738. deprecated="not deprecated">
  23739. </method>
  23740. <method name="readAndProcess" return="int"
  23741. abstract="false" native="false" synchronized="false"
  23742. static="false" final="false" visibility="public"
  23743. deprecated="not deprecated">
  23744. <exception name="IOException" type="java.io.IOException"/>
  23745. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  23746. </method>
  23747. <field name="attemptingUser" type="org.apache.hadoop.security.UserGroupInformation"
  23748. transient="false" volatile="false"
  23749. static="false" final="false" visibility="public"
  23750. deprecated="not deprecated">
  23751. </field>
  23752. <doc>
  23753. <![CDATA[Reads calls from a connection and queues them for handling.]]>
  23754. </doc>
  23755. </class>
  23756. <!-- end class org.apache.hadoop.ipc.Server.Connection -->
  23757. <!-- start interface org.apache.hadoop.ipc.VersionedProtocol -->
  23758. <interface name="VersionedProtocol" abstract="true"
  23759. static="false" final="false" visibility="public"
  23760. deprecated="not deprecated">
  23761. <method name="getProtocolVersion" return="long"
  23762. abstract="false" native="false" synchronized="false"
  23763. static="false" final="false" visibility="public"
  23764. deprecated="not deprecated">
  23765. <param name="protocol" type="java.lang.String"/>
  23766. <param name="clientVersion" type="long"/>
  23767. <exception name="IOException" type="java.io.IOException"/>
  23768. <doc>
  23769. <![CDATA[Return protocol version corresponding to protocol interface.
  23770. @param protocol The classname of the protocol interface
  23771. @param clientVersion The version of the protocol that the client speaks
  23772. @return the version that the server will speak]]>
  23773. </doc>
  23774. </method>
  23775. <doc>
  23776. <![CDATA[Superclass of all protocols that use Hadoop RPC.
  23777. Subclasses of this interface are also supposed to have
  23778. a static final long versionID field.]]>
  23779. </doc>
  23780. </interface>
  23781. <!-- end interface org.apache.hadoop.ipc.VersionedProtocol -->
  23782. </package>
  23783. <package name="org.apache.hadoop.ipc.metrics">
  23784. <!-- start class org.apache.hadoop.ipc.metrics.RpcInstrumentation -->
  23785. <class name="RpcInstrumentation" extends="java.lang.Object"
  23786. abstract="false"
  23787. static="false" final="false" visibility="public"
  23788. deprecated="not deprecated">
  23789. <implements name="org.apache.hadoop.metrics2.MetricsSource"/>
  23790. <method name="getMetrics"
  23791. abstract="false" native="false" synchronized="false"
  23792. static="false" final="false" visibility="public"
  23793. deprecated="not deprecated">
  23794. <param name="builder" type="org.apache.hadoop.metrics2.MetricsBuilder"/>
  23795. <param name="all" type="boolean"/>
  23796. </method>
  23797. <method name="create" return="org.apache.hadoop.ipc.metrics.RpcInstrumentation"
  23798. abstract="false" native="false" synchronized="false"
  23799. static="true" final="false" visibility="public"
  23800. deprecated="not deprecated">
  23801. <param name="serverName" type="java.lang.String"/>
  23802. <param name="port" type="int"/>
  23803. <doc>
  23804. <![CDATA[Create an RPC instrumentation object
  23805. @param serverName name of the server
  23806. @param port the RPC port
  23807. @return the instrumentation object]]>
  23808. </doc>
  23809. </method>
  23810. <method name="create" return="org.apache.hadoop.ipc.metrics.RpcInstrumentation"
  23811. abstract="false" native="false" synchronized="false"
  23812. static="true" final="false" visibility="public"
  23813. deprecated="not deprecated">
  23814. <param name="serverName" type="java.lang.String"/>
  23815. <param name="port" type="int"/>
  23816. <param name="ms" type="org.apache.hadoop.metrics2.MetricsSystem"/>
  23817. <doc>
  23818. <![CDATA[Create an RPC instrumentation object
  23819. Mostly useful for testing.
  23820. @param serverName name of the server
  23821. @param port the RPC port
  23822. @param ms the metrics system object
  23823. @return the instrumentation object]]>
  23824. </doc>
  23825. </method>
  23826. <method name="detailed" return="org.apache.hadoop.metrics2.MetricsSource"
  23827. abstract="false" native="false" synchronized="false"
  23828. static="false" final="false" visibility="public"
  23829. deprecated="not deprecated">
  23830. <doc>
  23831. <![CDATA[@return the detailed (per call) metrics source for RPC]]>
  23832. </doc>
  23833. </method>
  23834. <method name="incrAuthenticationFailures"
  23835. abstract="false" native="false" synchronized="false"
  23836. static="false" final="false" visibility="public"
  23837. deprecated="not deprecated">
  23838. <doc>
  23839. <![CDATA[One authentication failure event]]>
  23840. </doc>
  23841. </method>
  23842. <method name="incrAuthenticationSuccesses"
  23843. abstract="false" native="false" synchronized="false"
  23844. static="false" final="false" visibility="public"
  23845. deprecated="not deprecated">
  23846. <doc>
  23847. <![CDATA[One authentication success event]]>
  23848. </doc>
  23849. </method>
  23850. <method name="incrAuthorizationSuccesses"
  23851. abstract="false" native="false" synchronized="false"
  23852. static="false" final="false" visibility="public"
  23853. deprecated="not deprecated">
  23854. <doc>
  23855. <![CDATA[One authorization success event]]>
  23856. </doc>
  23857. </method>
  23858. <method name="incrAuthorizationFailures"
  23859. abstract="false" native="false" synchronized="false"
  23860. static="false" final="false" visibility="public"
  23861. deprecated="not deprecated">
  23862. <doc>
  23863. <![CDATA[One authorization failure event]]>
  23864. </doc>
  23865. </method>
  23866. <method name="shutdown"
  23867. abstract="false" native="false" synchronized="false"
  23868. static="false" final="false" visibility="public"
  23869. deprecated="not deprecated">
  23870. <doc>
  23871. <![CDATA[Shutdown the instrumentation for the process]]>
  23872. </doc>
  23873. </method>
  23874. <method name="incrSentBytes"
  23875. abstract="false" native="false" synchronized="false"
  23876. static="false" final="false" visibility="public"
  23877. deprecated="not deprecated">
  23878. <param name="count" type="int"/>
  23879. <doc>
  23880. <![CDATA[Increment sent bytes by count
  23881. @param count to increment]]>
  23882. </doc>
  23883. </method>
  23884. <method name="incrReceivedBytes"
  23885. abstract="false" native="false" synchronized="false"
  23886. static="false" final="false" visibility="public"
  23887. deprecated="not deprecated">
  23888. <param name="count" type="int"/>
  23889. <doc>
  23890. <![CDATA[Increment received bytes by count
  23891. @param count to increment]]>
  23892. </doc>
  23893. </method>
  23894. <method name="addRpcQueueTime"
  23895. abstract="false" native="false" synchronized="false"
  23896. static="false" final="false" visibility="public"
  23897. deprecated="not deprecated">
  23898. <param name="qTime" type="int"/>
  23899. <doc>
  23900. <![CDATA[Add an RPC queue time sample
  23901. @param qTime]]>
  23902. </doc>
  23903. </method>
  23904. <method name="addRpcProcessingTime"
  23905. abstract="false" native="false" synchronized="false"
  23906. static="false" final="false" visibility="public"
  23907. deprecated="not deprecated">
  23908. <param name="processingTime" type="int"/>
  23909. <doc>
  23910. <![CDATA[Add an RPC processing time sample
  23911. @param processingTime]]>
  23912. </doc>
  23913. </method>
  23914. <method name="addRpcProcessingTime"
  23915. abstract="false" native="false" synchronized="false"
  23916. static="false" final="false" visibility="public"
  23917. deprecated="not deprecated">
  23918. <param name="methodName" type="java.lang.String"/>
  23919. <param name="processingTime" type="int"/>
  23920. <doc>
  23921. <![CDATA[Add an RPC processing time sample for a particular RPC method
  23922. @param methodName method name of the RPC
  23923. @param processingTime elapsed processing time of the RPC]]>
  23924. </doc>
  23925. </method>
  23926. <doc>
  23927. <![CDATA[The RPC metrics instrumentation]]>
  23928. </doc>
  23929. </class>
  23930. <!-- end class org.apache.hadoop.ipc.metrics.RpcInstrumentation -->
  23931. <!-- start class org.apache.hadoop.ipc.metrics.RpcInstrumentation.Detailed -->
  23932. <class name="RpcInstrumentation.Detailed" extends="org.apache.hadoop.metrics2.lib.AbstractMetricsSource"
  23933. abstract="false"
  23934. static="true" final="false" visibility="public"
  23935. deprecated="not deprecated">
  23936. <method name="addRpcProcessingTime"
  23937. abstract="false" native="false" synchronized="true"
  23938. static="false" final="false" visibility="public"
  23939. deprecated="not deprecated">
  23940. <param name="methodName" type="java.lang.String"/>
  23941. <param name="processingTime" type="int"/>
  23942. </method>
  23943. <doc>
  23944. <![CDATA[Use a separate source for detailed (per call) RPC metrics for
  23945. easy and efficient filtering]]>
  23946. </doc>
  23947. </class>
  23948. <!-- end class org.apache.hadoop.ipc.metrics.RpcInstrumentation.Detailed -->
  23949. </package>
  23950. <package name="org.apache.hadoop.jmx">
  23951. <!-- start class org.apache.hadoop.jmx.JMXJsonServlet -->
  23952. <class name="JMXJsonServlet" extends="javax.servlet.http.HttpServlet"
  23953. abstract="false"
  23954. static="false" final="false" visibility="public"
  23955. deprecated="not deprecated">
  23956. <constructor name="JMXJsonServlet"
  23957. static="false" final="false" visibility="public"
  23958. deprecated="not deprecated">
  23959. </constructor>
  23960. <method name="init"
  23961. abstract="false" native="false" synchronized="false"
  23962. static="false" final="false" visibility="public"
  23963. deprecated="not deprecated">
  23964. <exception name="ServletException" type="javax.servlet.ServletException"/>
  23965. <doc>
  23966. <![CDATA[Initialize this servlet.]]>
  23967. </doc>
  23968. </method>
  23969. <method name="doGet"
  23970. abstract="false" native="false" synchronized="false"
  23971. static="false" final="false" visibility="public"
  23972. deprecated="not deprecated">
  23973. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  23974. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  23975. <doc>
  23976. <![CDATA[Process a GET request for the specified resource.
  23977. @param request
  23978. The servlet request we are processing
  23979. @param response
  23980. The servlet response we are creating]]>
  23981. </doc>
  23982. </method>
  23983. <field name="mBeanServer" type="javax.management.MBeanServer"
  23984. transient="true" volatile="false"
  23985. static="false" final="false" visibility="protected"
  23986. deprecated="not deprecated">
  23987. <doc>
  23988. <![CDATA[MBean server.]]>
  23989. </doc>
  23990. </field>
  23991. <doc>
  23992. <![CDATA[Provides Read only web access to JMX.
  23993. <p>
  23994. This servlet generally will be placed under the /jmx URL for each
  23995. HttpServer. It provides read only
  23996. access to JMX metrics. The optional <code>qry</code> parameter
  23997. may be used to query only a subset of the JMX Beans. This query
  23998. functionality is provided through the
  23999. {@link MBeanServer#queryNames(ObjectName, javax.management.QueryExp)}
  24000. method.
  24001. <p>
  24002. For example <code>http://.../jmx?qry=Hadoop:*</code> will return
  24003. all hadoop metrics exposed through JMX.
  24004. <p>
  24005. If the <code>qry</code> parameter is not formatted correctly then a
  24006. 400 BAD REQUEST http response code will be returned.
  24007. <p>
  24008. The return format is JSON and in the form
  24009. <p>
  24010. <code><pre>
  24011. {
  24012. "beans" : [
  24013. {
  24014. "name":"bean-name"
  24015. ...
  24016. }
  24017. ]
  24018. }
  24019. </pre></code>
  24020. <p>
  24021. The servlet attempts to convert the the JMXBeans into JSON. Each
  24022. bean's attributes will be converted to a JSON object member.
  24023. If the attribute is a boolean, a number, a string, or an array
  24024. it will be converted to the JSON equivalent.
  24025. If the value is a {@link CompositeData} then it will be converted
  24026. to a JSON object with the keys as the name of the JSON member and
  24027. the value is converted following these same rules.
  24028. If the value is a {@link TabularData} then it will be converted
  24029. to an array of the {@link CompositeData} elements that it contains.
  24030. All other objects will be converted to a string and output as such.
  24031. The bean's name and modelerType will be returned for all beans.]]>
  24032. </doc>
  24033. </class>
  24034. <!-- end class org.apache.hadoop.jmx.JMXJsonServlet -->
  24035. </package>
  24036. <package name="org.apache.hadoop.log">
  24037. <!-- start class org.apache.hadoop.log.EventCounter -->
  24038. <class name="EventCounter" extends="org.apache.hadoop.log.metrics.EventCounter"
  24039. abstract="false"
  24040. static="false" final="false" visibility="public"
  24041. deprecated="use {@link org.apache.hadoop.log.metrics.EventCounter} instead">
  24042. <constructor name="EventCounter"
  24043. static="false" final="false" visibility="public"
  24044. deprecated="not deprecated">
  24045. </constructor>
  24046. <doc>
  24047. <![CDATA[A log4J Appender that simply counts logging events in three levels:
  24048. fatal, error and warn. The class name is used in log4j.properties
  24049. @deprecated use {@link org.apache.hadoop.log.metrics.EventCounter} instead]]>
  24050. </doc>
  24051. </class>
  24052. <!-- end class org.apache.hadoop.log.EventCounter -->
  24053. <!-- start class org.apache.hadoop.log.LogLevel -->
  24054. <class name="LogLevel" extends="java.lang.Object"
  24055. abstract="false"
  24056. static="false" final="false" visibility="public"
  24057. deprecated="not deprecated">
  24058. <constructor name="LogLevel"
  24059. static="false" final="false" visibility="public"
  24060. deprecated="not deprecated">
  24061. </constructor>
  24062. <method name="main"
  24063. abstract="false" native="false" synchronized="false"
  24064. static="true" final="false" visibility="public"
  24065. deprecated="not deprecated">
  24066. <param name="args" type="java.lang.String[]"/>
  24067. <doc>
  24068. <![CDATA[A command line implementation]]>
  24069. </doc>
  24070. </method>
  24071. <field name="USAGES" type="java.lang.String"
  24072. transient="false" volatile="false"
  24073. static="true" final="true" visibility="public"
  24074. deprecated="not deprecated">
  24075. </field>
  24076. <doc>
  24077. <![CDATA[Change log level in runtime.]]>
  24078. </doc>
  24079. </class>
  24080. <!-- end class org.apache.hadoop.log.LogLevel -->
  24081. <!-- start class org.apache.hadoop.log.LogLevel.Servlet -->
  24082. <class name="LogLevel.Servlet" extends="javax.servlet.http.HttpServlet"
  24083. abstract="false"
  24084. static="true" final="false" visibility="public"
  24085. deprecated="not deprecated">
  24086. <constructor name="LogLevel.Servlet"
  24087. static="false" final="false" visibility="public"
  24088. deprecated="not deprecated">
  24089. </constructor>
  24090. <method name="doGet"
  24091. abstract="false" native="false" synchronized="false"
  24092. static="false" final="false" visibility="public"
  24093. deprecated="not deprecated">
  24094. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  24095. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  24096. <exception name="ServletException" type="javax.servlet.ServletException"/>
  24097. <exception name="IOException" type="java.io.IOException"/>
  24098. </method>
  24099. <doc>
  24100. <![CDATA[A servlet implementation]]>
  24101. </doc>
  24102. </class>
  24103. <!-- end class org.apache.hadoop.log.LogLevel.Servlet -->
  24104. </package>
  24105. <package name="org.apache.hadoop.log.metrics">
  24106. <!-- start class org.apache.hadoop.log.metrics.EventCounter -->
  24107. <class name="EventCounter" extends="org.apache.log4j.AppenderSkeleton"
  24108. abstract="false"
  24109. static="false" final="false" visibility="public"
  24110. deprecated="not deprecated">
  24111. <constructor name="EventCounter"
  24112. static="false" final="false" visibility="public"
  24113. deprecated="not deprecated">
  24114. </constructor>
  24115. <method name="getFatal" return="long"
  24116. abstract="false" native="false" synchronized="false"
  24117. static="true" final="false" visibility="public"
  24118. deprecated="not deprecated">
  24119. </method>
  24120. <method name="getError" return="long"
  24121. abstract="false" native="false" synchronized="false"
  24122. static="true" final="false" visibility="public"
  24123. deprecated="not deprecated">
  24124. </method>
  24125. <method name="getWarn" return="long"
  24126. abstract="false" native="false" synchronized="false"
  24127. static="true" final="false" visibility="public"
  24128. deprecated="not deprecated">
  24129. </method>
  24130. <method name="getInfo" return="long"
  24131. abstract="false" native="false" synchronized="false"
  24132. static="true" final="false" visibility="public"
  24133. deprecated="not deprecated">
  24134. </method>
  24135. <method name="append"
  24136. abstract="false" native="false" synchronized="false"
  24137. static="false" final="false" visibility="public"
  24138. deprecated="not deprecated">
  24139. <param name="event" type="org.apache.log4j.spi.LoggingEvent"/>
  24140. </method>
  24141. <method name="close"
  24142. abstract="false" native="false" synchronized="false"
  24143. static="false" final="false" visibility="public"
  24144. deprecated="not deprecated">
  24145. </method>
  24146. <method name="requiresLayout" return="boolean"
  24147. abstract="false" native="false" synchronized="false"
  24148. static="false" final="false" visibility="public"
  24149. deprecated="not deprecated">
  24150. </method>
  24151. <doc>
  24152. <![CDATA[A log4J Appender that simply counts logging events in three levels:
  24153. fatal, error and warn. The class name is used in log4j.properties]]>
  24154. </doc>
  24155. </class>
  24156. <!-- end class org.apache.hadoop.log.metrics.EventCounter -->
  24157. </package>
  24158. <package name="org.apache.hadoop.metrics">
  24159. <!-- start class org.apache.hadoop.metrics.ContextFactory -->
  24160. <class name="ContextFactory" extends="java.lang.Object"
  24161. abstract="false"
  24162. static="false" final="false" visibility="public"
  24163. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  24164. <constructor name="ContextFactory"
  24165. static="false" final="false" visibility="protected"
  24166. deprecated="not deprecated">
  24167. <doc>
  24168. <![CDATA[Creates a new instance of ContextFactory]]>
  24169. </doc>
  24170. </constructor>
  24171. <method name="getAttribute" return="java.lang.Object"
  24172. abstract="false" native="false" synchronized="false"
  24173. static="false" final="false" visibility="public"
  24174. deprecated="not deprecated">
  24175. <param name="attributeName" type="java.lang.String"/>
  24176. <doc>
  24177. <![CDATA[Returns the value of the named attribute, or null if there is no
  24178. attribute of that name.
  24179. @param attributeName the attribute name
  24180. @return the attribute value]]>
  24181. </doc>
  24182. </method>
  24183. <method name="getAttributeNames" return="java.lang.String[]"
  24184. abstract="false" native="false" synchronized="false"
  24185. static="false" final="false" visibility="public"
  24186. deprecated="not deprecated">
  24187. <doc>
  24188. <![CDATA[Returns the names of all the factory's attributes.
  24189. @return the attribute names]]>
  24190. </doc>
  24191. </method>
  24192. <method name="setAttribute"
  24193. abstract="false" native="false" synchronized="false"
  24194. static="false" final="false" visibility="public"
  24195. deprecated="not deprecated">
  24196. <param name="attributeName" type="java.lang.String"/>
  24197. <param name="value" type="java.lang.Object"/>
  24198. <doc>
  24199. <![CDATA[Sets the named factory attribute to the specified value, creating it
  24200. if it did not already exist. If the value is null, this is the same as
  24201. calling removeAttribute.
  24202. @param attributeName the attribute name
  24203. @param value the new attribute value]]>
  24204. </doc>
  24205. </method>
  24206. <method name="removeAttribute"
  24207. abstract="false" native="false" synchronized="false"
  24208. static="false" final="false" visibility="public"
  24209. deprecated="not deprecated">
  24210. <param name="attributeName" type="java.lang.String"/>
  24211. <doc>
  24212. <![CDATA[Removes the named attribute if it exists.
  24213. @param attributeName the attribute name]]>
  24214. </doc>
  24215. </method>
  24216. <method name="getContext" return="org.apache.hadoop.metrics.MetricsContext"
  24217. abstract="false" native="false" synchronized="true"
  24218. static="false" final="false" visibility="public"
  24219. deprecated="not deprecated">
  24220. <param name="refName" type="java.lang.String"/>
  24221. <param name="contextName" type="java.lang.String"/>
  24222. <exception name="IOException" type="java.io.IOException"/>
  24223. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  24224. <exception name="InstantiationException" type="java.lang.InstantiationException"/>
  24225. <exception name="IllegalAccessException" type="java.lang.IllegalAccessException"/>
  24226. <doc>
  24227. <![CDATA[Returns the named MetricsContext instance, constructing it if necessary
  24228. using the factory's current configuration attributes. <p/>
  24229. When constructing the instance, if the factory property
  24230. <i>contextName</i>.class</code> exists,
  24231. its value is taken to be the name of the class to instantiate. Otherwise,
  24232. the default is to create an instance of
  24233. <code>org.apache.hadoop.metrics.spi.NullContext</code>, which is a
  24234. dummy "no-op" context which will cause all metric data to be discarded.
  24235. @param contextName the name of the context
  24236. @return the named MetricsContext]]>
  24237. </doc>
  24238. </method>
  24239. <method name="getContext" return="org.apache.hadoop.metrics.MetricsContext"
  24240. abstract="false" native="false" synchronized="true"
  24241. static="false" final="false" visibility="public"
  24242. deprecated="not deprecated">
  24243. <param name="contextName" type="java.lang.String"/>
  24244. <exception name="IOException" type="java.io.IOException"/>
  24245. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  24246. <exception name="InstantiationException" type="java.lang.InstantiationException"/>
  24247. <exception name="IllegalAccessException" type="java.lang.IllegalAccessException"/>
  24248. </method>
  24249. <method name="getAllContexts" return="java.util.Collection"
  24250. abstract="false" native="false" synchronized="true"
  24251. static="false" final="false" visibility="public"
  24252. deprecated="not deprecated">
  24253. <doc>
  24254. <![CDATA[Returns all MetricsContexts built by this factory.]]>
  24255. </doc>
  24256. </method>
  24257. <method name="getNullContext" return="org.apache.hadoop.metrics.MetricsContext"
  24258. abstract="false" native="false" synchronized="true"
  24259. static="true" final="false" visibility="public"
  24260. deprecated="not deprecated">
  24261. <param name="contextName" type="java.lang.String"/>
  24262. <doc>
  24263. <![CDATA[Returns a "null" context - one which does nothing.]]>
  24264. </doc>
  24265. </method>
  24266. <method name="getFactory" return="org.apache.hadoop.metrics.ContextFactory"
  24267. abstract="false" native="false" synchronized="true"
  24268. static="true" final="false" visibility="public"
  24269. deprecated="not deprecated">
  24270. <exception name="IOException" type="java.io.IOException"/>
  24271. <doc>
  24272. <![CDATA[Returns the singleton ContextFactory instance, constructing it if
  24273. necessary. <p/>
  24274. When the instance is constructed, this method checks if the file
  24275. <code>hadoop-metrics.properties</code> exists on the class path. If it
  24276. exists, it must be in the format defined by java.util.Properties, and all
  24277. the properties in the file are set as attributes on the newly created
  24278. ContextFactory instance.
  24279. @return the singleton ContextFactory instance]]>
  24280. </doc>
  24281. </method>
  24282. <doc>
  24283. <![CDATA[Factory class for creating MetricsContext objects. To obtain an instance
  24284. of this class, use the static <code>getFactory()</code> method.
  24285. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24286. </doc>
  24287. </class>
  24288. <!-- end class org.apache.hadoop.metrics.ContextFactory -->
  24289. <!-- start interface org.apache.hadoop.metrics.MetricsContext -->
  24290. <interface name="MetricsContext" abstract="true"
  24291. static="false" final="false" visibility="public"
  24292. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  24293. <method name="init"
  24294. abstract="false" native="false" synchronized="false"
  24295. static="false" final="false" visibility="public"
  24296. deprecated="not deprecated">
  24297. <param name="contextName" type="java.lang.String"/>
  24298. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  24299. <doc>
  24300. <![CDATA[Initialize this context.
  24301. @param contextName The given name for this context
  24302. @param factory The creator of this context]]>
  24303. </doc>
  24304. </method>
  24305. <method name="getContextName" return="java.lang.String"
  24306. abstract="false" native="false" synchronized="false"
  24307. static="false" final="false" visibility="public"
  24308. deprecated="not deprecated">
  24309. <doc>
  24310. <![CDATA[Returns the context name.
  24311. @return the context name]]>
  24312. </doc>
  24313. </method>
  24314. <method name="startMonitoring"
  24315. abstract="false" native="false" synchronized="false"
  24316. static="false" final="false" visibility="public"
  24317. deprecated="not deprecated">
  24318. <exception name="IOException" type="java.io.IOException"/>
  24319. <doc>
  24320. <![CDATA[Starts or restarts monitoring, the emitting of metrics records as they are
  24321. updated.]]>
  24322. </doc>
  24323. </method>
  24324. <method name="stopMonitoring"
  24325. abstract="false" native="false" synchronized="false"
  24326. static="false" final="false" visibility="public"
  24327. deprecated="not deprecated">
  24328. <doc>
  24329. <![CDATA[Stops monitoring. This does not free any data that the implementation
  24330. may have buffered for sending at the next timer event. It
  24331. is OK to call <code>startMonitoring()</code> again after calling
  24332. this.
  24333. @see #close()]]>
  24334. </doc>
  24335. </method>
  24336. <method name="isMonitoring" return="boolean"
  24337. abstract="false" native="false" synchronized="false"
  24338. static="false" final="false" visibility="public"
  24339. deprecated="not deprecated">
  24340. <doc>
  24341. <![CDATA[Returns true if monitoring is currently in progress.]]>
  24342. </doc>
  24343. </method>
  24344. <method name="close"
  24345. abstract="false" native="false" synchronized="false"
  24346. static="false" final="false" visibility="public"
  24347. deprecated="not deprecated">
  24348. <doc>
  24349. <![CDATA[Stops monitoring and also frees any buffered data, returning this
  24350. object to its initial state.]]>
  24351. </doc>
  24352. </method>
  24353. <method name="createRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  24354. abstract="false" native="false" synchronized="false"
  24355. static="false" final="false" visibility="public"
  24356. deprecated="not deprecated">
  24357. <param name="recordName" type="java.lang.String"/>
  24358. <doc>
  24359. <![CDATA[Creates a new MetricsRecord instance with the given <code>recordName</code>.
  24360. Throws an exception if the metrics implementation is configured with a fixed
  24361. set of record names and <code>recordName</code> is not in that set.
  24362. @param recordName the name of the record
  24363. @throws MetricsException if recordName conflicts with configuration data]]>
  24364. </doc>
  24365. </method>
  24366. <method name="registerUpdater"
  24367. abstract="false" native="false" synchronized="false"
  24368. static="false" final="false" visibility="public"
  24369. deprecated="not deprecated">
  24370. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  24371. <doc>
  24372. <![CDATA[Registers a callback to be called at regular time intervals, as
  24373. determined by the implementation-class specific configuration.
  24374. @param updater object to be run periodically; it should updated
  24375. some metrics records and then return]]>
  24376. </doc>
  24377. </method>
  24378. <method name="unregisterUpdater"
  24379. abstract="false" native="false" synchronized="false"
  24380. static="false" final="false" visibility="public"
  24381. deprecated="not deprecated">
  24382. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  24383. <doc>
  24384. <![CDATA[Removes a callback, if it exists.
  24385. @param updater object to be removed from the callback list]]>
  24386. </doc>
  24387. </method>
  24388. <method name="getPeriod" return="int"
  24389. abstract="false" native="false" synchronized="false"
  24390. static="false" final="false" visibility="public"
  24391. deprecated="not deprecated">
  24392. <doc>
  24393. <![CDATA[Returns the timer period.]]>
  24394. </doc>
  24395. </method>
  24396. <method name="getAllRecords" return="java.util.Map"
  24397. abstract="false" native="false" synchronized="false"
  24398. static="false" final="false" visibility="public"
  24399. deprecated="not deprecated">
  24400. <doc>
  24401. <![CDATA[Retrieves all the records managed by this MetricsContext.
  24402. Useful for monitoring systems that are polling-based.
  24403. @return A non-null map from all record names to the records managed.]]>
  24404. </doc>
  24405. </method>
  24406. <field name="DEFAULT_PERIOD" type="int"
  24407. transient="false" volatile="false"
  24408. static="true" final="true" visibility="public"
  24409. deprecated="not deprecated">
  24410. <doc>
  24411. <![CDATA[Default period in seconds at which data is sent to the metrics system.]]>
  24412. </doc>
  24413. </field>
  24414. <doc>
  24415. <![CDATA[The main interface to the metrics package.
  24416. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24417. </doc>
  24418. </interface>
  24419. <!-- end interface org.apache.hadoop.metrics.MetricsContext -->
  24420. <!-- start class org.apache.hadoop.metrics.MetricsException -->
  24421. <class name="MetricsException" extends="java.lang.RuntimeException"
  24422. abstract="false"
  24423. static="false" final="false" visibility="public"
  24424. deprecated="in favor of {@link org.apache.hadoop.metrics2.MetricsException}.">
  24425. <constructor name="MetricsException"
  24426. static="false" final="false" visibility="public"
  24427. deprecated="not deprecated">
  24428. <doc>
  24429. <![CDATA[Creates a new instance of MetricsException]]>
  24430. </doc>
  24431. </constructor>
  24432. <constructor name="MetricsException" type="java.lang.String"
  24433. static="false" final="false" visibility="public"
  24434. deprecated="not deprecated">
  24435. <doc>
  24436. <![CDATA[Creates a new instance of MetricsException
  24437. @param message an error message]]>
  24438. </doc>
  24439. </constructor>
  24440. <doc>
  24441. <![CDATA[General-purpose, unchecked metrics exception.
  24442. @deprecated in favor of {@link org.apache.hadoop.metrics2.MetricsException}.]]>
  24443. </doc>
  24444. </class>
  24445. <!-- end class org.apache.hadoop.metrics.MetricsException -->
  24446. <!-- start interface org.apache.hadoop.metrics.MetricsRecord -->
  24447. <interface name="MetricsRecord" abstract="true"
  24448. static="false" final="false" visibility="public"
  24449. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  24450. <method name="getRecordName" return="java.lang.String"
  24451. abstract="false" native="false" synchronized="false"
  24452. static="false" final="false" visibility="public"
  24453. deprecated="not deprecated">
  24454. <doc>
  24455. <![CDATA[Returns the record name.
  24456. @return the record name]]>
  24457. </doc>
  24458. </method>
  24459. <method name="setTag"
  24460. abstract="false" native="false" synchronized="false"
  24461. static="false" final="false" visibility="public"
  24462. deprecated="not deprecated">
  24463. <param name="tagName" type="java.lang.String"/>
  24464. <param name="tagValue" type="java.lang.String"/>
  24465. <doc>
  24466. <![CDATA[Sets the named tag to the specified value. The tagValue may be null,
  24467. which is treated the same as an empty String.
  24468. @param tagName name of the tag
  24469. @param tagValue new value of the tag
  24470. @throws MetricsException if the tagName conflicts with the configuration]]>
  24471. </doc>
  24472. </method>
  24473. <method name="setTag"
  24474. abstract="false" native="false" synchronized="false"
  24475. static="false" final="false" visibility="public"
  24476. deprecated="not deprecated">
  24477. <param name="tagName" type="java.lang.String"/>
  24478. <param name="tagValue" type="int"/>
  24479. <doc>
  24480. <![CDATA[Sets the named tag to the specified value.
  24481. @param tagName name of the tag
  24482. @param tagValue new value of the tag
  24483. @throws MetricsException if the tagName conflicts with the configuration]]>
  24484. </doc>
  24485. </method>
  24486. <method name="setTag"
  24487. abstract="false" native="false" synchronized="false"
  24488. static="false" final="false" visibility="public"
  24489. deprecated="not deprecated">
  24490. <param name="tagName" type="java.lang.String"/>
  24491. <param name="tagValue" type="long"/>
  24492. <doc>
  24493. <![CDATA[Sets the named tag to the specified value.
  24494. @param tagName name of the tag
  24495. @param tagValue new value of the tag
  24496. @throws MetricsException if the tagName conflicts with the configuration]]>
  24497. </doc>
  24498. </method>
  24499. <method name="setTag"
  24500. abstract="false" native="false" synchronized="false"
  24501. static="false" final="false" visibility="public"
  24502. deprecated="not deprecated">
  24503. <param name="tagName" type="java.lang.String"/>
  24504. <param name="tagValue" type="short"/>
  24505. <doc>
  24506. <![CDATA[Sets the named tag to the specified value.
  24507. @param tagName name of the tag
  24508. @param tagValue new value of the tag
  24509. @throws MetricsException if the tagName conflicts with the configuration]]>
  24510. </doc>
  24511. </method>
  24512. <method name="setTag"
  24513. abstract="false" native="false" synchronized="false"
  24514. static="false" final="false" visibility="public"
  24515. deprecated="not deprecated">
  24516. <param name="tagName" type="java.lang.String"/>
  24517. <param name="tagValue" type="byte"/>
  24518. <doc>
  24519. <![CDATA[Sets the named tag to the specified value.
  24520. @param tagName name of the tag
  24521. @param tagValue new value of the tag
  24522. @throws MetricsException if the tagName conflicts with the configuration]]>
  24523. </doc>
  24524. </method>
  24525. <method name="removeTag"
  24526. abstract="false" native="false" synchronized="false"
  24527. static="false" final="false" visibility="public"
  24528. deprecated="not deprecated">
  24529. <param name="tagName" type="java.lang.String"/>
  24530. <doc>
  24531. <![CDATA[Removes any tag of the specified name.
  24532. @param tagName name of a tag]]>
  24533. </doc>
  24534. </method>
  24535. <method name="setMetric"
  24536. abstract="false" native="false" synchronized="false"
  24537. static="false" final="false" visibility="public"
  24538. deprecated="not deprecated">
  24539. <param name="metricName" type="java.lang.String"/>
  24540. <param name="metricValue" type="int"/>
  24541. <doc>
  24542. <![CDATA[Sets the named metric to the specified value.
  24543. @param metricName name of the metric
  24544. @param metricValue new value of the metric
  24545. @throws MetricsException if the metricName or the type of the metricValue
  24546. conflicts with the configuration]]>
  24547. </doc>
  24548. </method>
  24549. <method name="setMetric"
  24550. abstract="false" native="false" synchronized="false"
  24551. static="false" final="false" visibility="public"
  24552. deprecated="not deprecated">
  24553. <param name="metricName" type="java.lang.String"/>
  24554. <param name="metricValue" type="long"/>
  24555. <doc>
  24556. <![CDATA[Sets the named metric to the specified value.
  24557. @param metricName name of the metric
  24558. @param metricValue new value of the metric
  24559. @throws MetricsException if the metricName or the type of the metricValue
  24560. conflicts with the configuration]]>
  24561. </doc>
  24562. </method>
  24563. <method name="setMetric"
  24564. abstract="false" native="false" synchronized="false"
  24565. static="false" final="false" visibility="public"
  24566. deprecated="not deprecated">
  24567. <param name="metricName" type="java.lang.String"/>
  24568. <param name="metricValue" type="short"/>
  24569. <doc>
  24570. <![CDATA[Sets the named metric to the specified value.
  24571. @param metricName name of the metric
  24572. @param metricValue new value of the metric
  24573. @throws MetricsException if the metricName or the type of the metricValue
  24574. conflicts with the configuration]]>
  24575. </doc>
  24576. </method>
  24577. <method name="setMetric"
  24578. abstract="false" native="false" synchronized="false"
  24579. static="false" final="false" visibility="public"
  24580. deprecated="not deprecated">
  24581. <param name="metricName" type="java.lang.String"/>
  24582. <param name="metricValue" type="byte"/>
  24583. <doc>
  24584. <![CDATA[Sets the named metric to the specified value.
  24585. @param metricName name of the metric
  24586. @param metricValue new value of the metric
  24587. @throws MetricsException if the metricName or the type of the metricValue
  24588. conflicts with the configuration]]>
  24589. </doc>
  24590. </method>
  24591. <method name="setMetric"
  24592. abstract="false" native="false" synchronized="false"
  24593. static="false" final="false" visibility="public"
  24594. deprecated="not deprecated">
  24595. <param name="metricName" type="java.lang.String"/>
  24596. <param name="metricValue" type="float"/>
  24597. <doc>
  24598. <![CDATA[Sets the named metric to the specified value.
  24599. @param metricName name of the metric
  24600. @param metricValue new value of the metric
  24601. @throws MetricsException if the metricName or the type of the metricValue
  24602. conflicts with the configuration]]>
  24603. </doc>
  24604. </method>
  24605. <method name="incrMetric"
  24606. abstract="false" native="false" synchronized="false"
  24607. static="false" final="false" visibility="public"
  24608. deprecated="not deprecated">
  24609. <param name="metricName" type="java.lang.String"/>
  24610. <param name="metricValue" type="int"/>
  24611. <doc>
  24612. <![CDATA[Increments the named metric by the specified value.
  24613. @param metricName name of the metric
  24614. @param metricValue incremental value
  24615. @throws MetricsException if the metricName or the type of the metricValue
  24616. conflicts with the configuration]]>
  24617. </doc>
  24618. </method>
  24619. <method name="incrMetric"
  24620. abstract="false" native="false" synchronized="false"
  24621. static="false" final="false" visibility="public"
  24622. deprecated="not deprecated">
  24623. <param name="metricName" type="java.lang.String"/>
  24624. <param name="metricValue" type="long"/>
  24625. <doc>
  24626. <![CDATA[Increments the named metric by the specified value.
  24627. @param metricName name of the metric
  24628. @param metricValue incremental value
  24629. @throws MetricsException if the metricName or the type of the metricValue
  24630. conflicts with the configuration]]>
  24631. </doc>
  24632. </method>
  24633. <method name="incrMetric"
  24634. abstract="false" native="false" synchronized="false"
  24635. static="false" final="false" visibility="public"
  24636. deprecated="not deprecated">
  24637. <param name="metricName" type="java.lang.String"/>
  24638. <param name="metricValue" type="short"/>
  24639. <doc>
  24640. <![CDATA[Increments the named metric by the specified value.
  24641. @param metricName name of the metric
  24642. @param metricValue incremental value
  24643. @throws MetricsException if the metricName or the type of the metricValue
  24644. conflicts with the configuration]]>
  24645. </doc>
  24646. </method>
  24647. <method name="incrMetric"
  24648. abstract="false" native="false" synchronized="false"
  24649. static="false" final="false" visibility="public"
  24650. deprecated="not deprecated">
  24651. <param name="metricName" type="java.lang.String"/>
  24652. <param name="metricValue" type="byte"/>
  24653. <doc>
  24654. <![CDATA[Increments the named metric by the specified value.
  24655. @param metricName name of the metric
  24656. @param metricValue incremental value
  24657. @throws MetricsException if the metricName or the type of the metricValue
  24658. conflicts with the configuration]]>
  24659. </doc>
  24660. </method>
  24661. <method name="incrMetric"
  24662. abstract="false" native="false" synchronized="false"
  24663. static="false" final="false" visibility="public"
  24664. deprecated="not deprecated">
  24665. <param name="metricName" type="java.lang.String"/>
  24666. <param name="metricValue" type="float"/>
  24667. <doc>
  24668. <![CDATA[Increments the named metric by the specified value.
  24669. @param metricName name of the metric
  24670. @param metricValue incremental value
  24671. @throws MetricsException if the metricName or the type of the metricValue
  24672. conflicts with the configuration]]>
  24673. </doc>
  24674. </method>
  24675. <method name="update"
  24676. abstract="false" native="false" synchronized="false"
  24677. static="false" final="false" visibility="public"
  24678. deprecated="not deprecated">
  24679. <doc>
  24680. <![CDATA[Updates the table of buffered data which is to be sent periodically.
  24681. If the tag values match an existing row, that row is updated;
  24682. otherwise, a new row is added.]]>
  24683. </doc>
  24684. </method>
  24685. <method name="remove"
  24686. abstract="false" native="false" synchronized="false"
  24687. static="false" final="false" visibility="public"
  24688. deprecated="not deprecated">
  24689. <doc>
  24690. <![CDATA[Removes, from the buffered data table, all rows having tags
  24691. that equal the tags that have been set on this record. For example,
  24692. if there are no tags on this record, all rows for this record name
  24693. would be removed. Or, if there is a single tag on this record, then
  24694. just rows containing a tag with the same name and value would be removed.]]>
  24695. </doc>
  24696. </method>
  24697. <doc>
  24698. <![CDATA[A named and optionally tagged set of records to be sent to the metrics
  24699. system. <p/>
  24700. A record name identifies the kind of data to be reported. For example, a
  24701. program reporting statistics relating to the disks on a computer might use
  24702. a record name "diskStats".<p/>
  24703. A record has zero or more <i>tags</i>. A tag has a name and a value. To
  24704. continue the example, the "diskStats" record might use a tag named
  24705. "diskName" to identify a particular disk. Sometimes it is useful to have
  24706. more than one tag, so there might also be a "diskType" with value "ide" or
  24707. "scsi" or whatever.<p/>
  24708. A record also has zero or more <i>metrics</i>. These are the named
  24709. values that are to be reported to the metrics system. In the "diskStats"
  24710. example, possible metric names would be "diskPercentFull", "diskPercentBusy",
  24711. "kbReadPerSecond", etc.<p/>
  24712. The general procedure for using a MetricsRecord is to fill in its tag and
  24713. metric values, and then call <code>update()</code> to pass the record to the
  24714. client library.
  24715. Metric data is not immediately sent to the metrics system
  24716. each time that <code>update()</code> is called.
  24717. An internal table is maintained, identified by the record name. This
  24718. table has columns
  24719. corresponding to the tag and the metric names, and rows
  24720. corresponding to each unique set of tag values. An update
  24721. either modifies an existing row in the table, or adds a new row with a set of
  24722. tag values that are different from all the other rows. Note that if there
  24723. are no tags, then there can be at most one row in the table. <p/>
  24724. Once a row is added to the table, its data will be sent to the metrics system
  24725. on every timer period, whether or not it has been updated since the previous
  24726. timer period. If this is inappropriate, for example if metrics were being
  24727. reported by some transient object in an application, the <code>remove()</code>
  24728. method can be used to remove the row and thus stop the data from being
  24729. sent.<p/>
  24730. Note that the <code>update()</code> method is atomic. This means that it is
  24731. safe for different threads to be updating the same metric. More precisely,
  24732. it is OK for different threads to call <code>update()</code> on MetricsRecord instances
  24733. with the same set of tag names and tag values. Different threads should
  24734. <b>not</b> use the same MetricsRecord instance at the same time.
  24735. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24736. </doc>
  24737. </interface>
  24738. <!-- end interface org.apache.hadoop.metrics.MetricsRecord -->
  24739. <!-- start class org.apache.hadoop.metrics.MetricsServlet -->
  24740. <class name="MetricsServlet" extends="javax.servlet.http.HttpServlet"
  24741. abstract="false"
  24742. static="false" final="false" visibility="public"
  24743. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  24744. <constructor name="MetricsServlet"
  24745. static="false" final="false" visibility="public"
  24746. deprecated="not deprecated">
  24747. </constructor>
  24748. <method name="doGet"
  24749. abstract="false" native="false" synchronized="false"
  24750. static="false" final="false" visibility="public"
  24751. deprecated="not deprecated">
  24752. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  24753. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  24754. <exception name="ServletException" type="javax.servlet.ServletException"/>
  24755. <exception name="IOException" type="java.io.IOException"/>
  24756. </method>
  24757. <doc>
  24758. <![CDATA[A servlet to print out metrics data. By default, the servlet returns a
  24759. textual representation (no promises are made for parseability), and
  24760. users can use "?format=json" for parseable output.
  24761. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24762. </doc>
  24763. </class>
  24764. <!-- end class org.apache.hadoop.metrics.MetricsServlet -->
  24765. <!-- start class org.apache.hadoop.metrics.MetricsUtil -->
  24766. <class name="MetricsUtil" extends="java.lang.Object"
  24767. abstract="false"
  24768. static="false" final="false" visibility="public"
  24769. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  24770. <method name="getContext" return="org.apache.hadoop.metrics.MetricsContext"
  24771. abstract="false" native="false" synchronized="false"
  24772. static="true" final="false" visibility="public"
  24773. deprecated="not deprecated">
  24774. <param name="contextName" type="java.lang.String"/>
  24775. </method>
  24776. <method name="getContext" return="org.apache.hadoop.metrics.MetricsContext"
  24777. abstract="false" native="false" synchronized="false"
  24778. static="true" final="false" visibility="public"
  24779. deprecated="not deprecated">
  24780. <param name="refName" type="java.lang.String"/>
  24781. <param name="contextName" type="java.lang.String"/>
  24782. <doc>
  24783. <![CDATA[Utility method to return the named context.
  24784. If the desired context cannot be created for any reason, the exception
  24785. is logged, and a null context is returned.]]>
  24786. </doc>
  24787. </method>
  24788. <method name="createRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  24789. abstract="false" native="false" synchronized="false"
  24790. static="true" final="false" visibility="public"
  24791. deprecated="not deprecated">
  24792. <param name="context" type="org.apache.hadoop.metrics.MetricsContext"/>
  24793. <param name="recordName" type="java.lang.String"/>
  24794. <doc>
  24795. <![CDATA[Utility method to create and return new metrics record instance within the
  24796. given context. This record is tagged with the host name.
  24797. @param context the context
  24798. @param recordName name of the record
  24799. @return newly created metrics record]]>
  24800. </doc>
  24801. </method>
  24802. <field name="LOG" type="org.apache.commons.logging.Log"
  24803. transient="false" volatile="false"
  24804. static="true" final="true" visibility="public"
  24805. deprecated="not deprecated">
  24806. </field>
  24807. <doc>
  24808. <![CDATA[Utility class to simplify creation and reporting of hadoop metrics.
  24809. For examples of usage, see NameNodeMetrics.
  24810. @see org.apache.hadoop.metrics.MetricsRecord
  24811. @see org.apache.hadoop.metrics.MetricsContext
  24812. @see org.apache.hadoop.metrics.ContextFactory
  24813. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24814. </doc>
  24815. </class>
  24816. <!-- end class org.apache.hadoop.metrics.MetricsUtil -->
  24817. <!-- start interface org.apache.hadoop.metrics.Updater -->
  24818. <interface name="Updater" abstract="true"
  24819. static="false" final="false" visibility="public"
  24820. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  24821. <method name="doUpdates"
  24822. abstract="false" native="false" synchronized="false"
  24823. static="false" final="false" visibility="public"
  24824. deprecated="not deprecated">
  24825. <param name="context" type="org.apache.hadoop.metrics.MetricsContext"/>
  24826. <doc>
  24827. <![CDATA[Timer-based call-back from the metric library.]]>
  24828. </doc>
  24829. </method>
  24830. <doc>
  24831. <![CDATA[Call-back interface. See <code>MetricsContext.registerUpdater()</code>.
  24832. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  24833. </doc>
  24834. </interface>
  24835. <!-- end interface org.apache.hadoop.metrics.Updater -->
  24836. </package>
  24837. <package name="org.apache.hadoop.metrics.file">
  24838. <!-- start class org.apache.hadoop.metrics.file.FileContext -->
  24839. <class name="FileContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  24840. abstract="false"
  24841. static="false" final="false" visibility="public"
  24842. deprecated="use {@link org.apache.hadoop.metrics2.sink.FileSink} instead.">
  24843. <constructor name="FileContext"
  24844. static="false" final="false" visibility="public"
  24845. deprecated="not deprecated">
  24846. <doc>
  24847. <![CDATA[Creates a new instance of FileContext]]>
  24848. </doc>
  24849. </constructor>
  24850. <method name="init"
  24851. abstract="false" native="false" synchronized="false"
  24852. static="false" final="false" visibility="public"
  24853. deprecated="not deprecated">
  24854. <param name="contextName" type="java.lang.String"/>
  24855. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  24856. </method>
  24857. <method name="getFileName" return="java.lang.String"
  24858. abstract="false" native="false" synchronized="false"
  24859. static="false" final="false" visibility="public"
  24860. deprecated="not deprecated">
  24861. <doc>
  24862. <![CDATA[Returns the configured file name, or null.]]>
  24863. </doc>
  24864. </method>
  24865. <method name="startMonitoring"
  24866. abstract="false" native="false" synchronized="false"
  24867. static="false" final="false" visibility="public"
  24868. deprecated="not deprecated">
  24869. <exception name="IOException" type="java.io.IOException"/>
  24870. <doc>
  24871. <![CDATA[Starts or restarts monitoring, by opening in append-mode, the
  24872. file specified by the <code>fileName</code> attribute,
  24873. if specified. Otherwise the data will be written to standard
  24874. output.]]>
  24875. </doc>
  24876. </method>
  24877. <method name="stopMonitoring"
  24878. abstract="false" native="false" synchronized="false"
  24879. static="false" final="false" visibility="public"
  24880. deprecated="not deprecated">
  24881. <doc>
  24882. <![CDATA[Stops monitoring, closing the file.
  24883. @see #close()]]>
  24884. </doc>
  24885. </method>
  24886. <method name="emitRecord"
  24887. abstract="false" native="false" synchronized="false"
  24888. static="false" final="false" visibility="public"
  24889. deprecated="not deprecated">
  24890. <param name="contextName" type="java.lang.String"/>
  24891. <param name="recordName" type="java.lang.String"/>
  24892. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  24893. <doc>
  24894. <![CDATA[Emits a metrics record to a file.]]>
  24895. </doc>
  24896. </method>
  24897. <method name="flush"
  24898. abstract="false" native="false" synchronized="false"
  24899. static="false" final="false" visibility="public"
  24900. deprecated="not deprecated">
  24901. <doc>
  24902. <![CDATA[Flushes the output writer, forcing updates to disk.]]>
  24903. </doc>
  24904. </method>
  24905. <field name="FILE_NAME_PROPERTY" type="java.lang.String"
  24906. transient="false" volatile="false"
  24907. static="true" final="true" visibility="protected"
  24908. deprecated="not deprecated">
  24909. </field>
  24910. <field name="PERIOD_PROPERTY" type="java.lang.String"
  24911. transient="false" volatile="false"
  24912. static="true" final="true" visibility="protected"
  24913. deprecated="not deprecated">
  24914. </field>
  24915. <doc>
  24916. <![CDATA[Metrics context for writing metrics to a file.<p/>
  24917. This class is configured by setting ContextFactory attributes which in turn
  24918. are usually configured through a properties file. All the attributes are
  24919. prefixed by the contextName. For example, the properties file might contain:
  24920. <pre>
  24921. myContextName.fileName=/tmp/metrics.log
  24922. myContextName.period=5
  24923. </pre>
  24924. @deprecated use {@link org.apache.hadoop.metrics2.sink.FileSink} instead.]]>
  24925. </doc>
  24926. </class>
  24927. <!-- end class org.apache.hadoop.metrics.file.FileContext -->
  24928. </package>
  24929. <package name="org.apache.hadoop.metrics.ganglia">
  24930. <!-- start class org.apache.hadoop.metrics.ganglia.GangliaContext -->
  24931. <class name="GangliaContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  24932. abstract="false"
  24933. static="false" final="false" visibility="public"
  24934. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  24935. <constructor name="GangliaContext"
  24936. static="false" final="false" visibility="public"
  24937. deprecated="not deprecated">
  24938. <doc>
  24939. <![CDATA[Creates a new instance of GangliaContext]]>
  24940. </doc>
  24941. </constructor>
  24942. <method name="init"
  24943. abstract="false" native="false" synchronized="false"
  24944. static="false" final="false" visibility="public"
  24945. deprecated="not deprecated">
  24946. <param name="contextName" type="java.lang.String"/>
  24947. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  24948. </method>
  24949. <method name="emitRecord"
  24950. abstract="false" native="false" synchronized="false"
  24951. static="false" final="false" visibility="public"
  24952. deprecated="not deprecated">
  24953. <param name="contextName" type="java.lang.String"/>
  24954. <param name="recordName" type="java.lang.String"/>
  24955. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  24956. <exception name="IOException" type="java.io.IOException"/>
  24957. </method>
  24958. <method name="emitMetric"
  24959. abstract="false" native="false" synchronized="false"
  24960. static="false" final="false" visibility="protected"
  24961. deprecated="not deprecated">
  24962. <param name="name" type="java.lang.String"/>
  24963. <param name="type" type="java.lang.String"/>
  24964. <param name="value" type="java.lang.String"/>
  24965. <exception name="IOException" type="java.io.IOException"/>
  24966. </method>
  24967. <method name="getUnits" return="java.lang.String"
  24968. abstract="false" native="false" synchronized="false"
  24969. static="false" final="false" visibility="protected"
  24970. deprecated="not deprecated">
  24971. <param name="metricName" type="java.lang.String"/>
  24972. </method>
  24973. <method name="getSlope" return="int"
  24974. abstract="false" native="false" synchronized="false"
  24975. static="false" final="false" visibility="protected"
  24976. deprecated="not deprecated">
  24977. <param name="metricName" type="java.lang.String"/>
  24978. </method>
  24979. <method name="getTmax" return="int"
  24980. abstract="false" native="false" synchronized="false"
  24981. static="false" final="false" visibility="protected"
  24982. deprecated="not deprecated">
  24983. <param name="metricName" type="java.lang.String"/>
  24984. </method>
  24985. <method name="getDmax" return="int"
  24986. abstract="false" native="false" synchronized="false"
  24987. static="false" final="false" visibility="protected"
  24988. deprecated="not deprecated">
  24989. <param name="metricName" type="java.lang.String"/>
  24990. </method>
  24991. <method name="xdr_string"
  24992. abstract="false" native="false" synchronized="false"
  24993. static="false" final="false" visibility="protected"
  24994. deprecated="not deprecated">
  24995. <param name="s" type="java.lang.String"/>
  24996. <doc>
  24997. <![CDATA[Puts a string into the buffer by first writing the size of the string
  24998. as an int, followed by the bytes of the string, padded if necessary to
  24999. a multiple of 4.]]>
  25000. </doc>
  25001. </method>
  25002. <method name="xdr_int"
  25003. abstract="false" native="false" synchronized="false"
  25004. static="false" final="false" visibility="protected"
  25005. deprecated="not deprecated">
  25006. <param name="i" type="int"/>
  25007. <doc>
  25008. <![CDATA[Puts an integer into the buffer as 4 bytes, big-endian.]]>
  25009. </doc>
  25010. </method>
  25011. <field name="buffer" type="byte[]"
  25012. transient="false" volatile="false"
  25013. static="false" final="false" visibility="protected"
  25014. deprecated="not deprecated">
  25015. </field>
  25016. <field name="offset" type="int"
  25017. transient="false" volatile="false"
  25018. static="false" final="false" visibility="protected"
  25019. deprecated="not deprecated">
  25020. </field>
  25021. <field name="metricsServers" type="java.util.List"
  25022. transient="false" volatile="false"
  25023. static="false" final="false" visibility="protected"
  25024. deprecated="not deprecated">
  25025. </field>
  25026. <field name="datagramSocket" type="java.net.DatagramSocket"
  25027. transient="false" volatile="false"
  25028. static="false" final="false" visibility="protected"
  25029. deprecated="not deprecated">
  25030. </field>
  25031. <doc>
  25032. <![CDATA[Context for sending metrics to Ganglia.
  25033. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  25034. </doc>
  25035. </class>
  25036. <!-- end class org.apache.hadoop.metrics.ganglia.GangliaContext -->
  25037. <!-- start class org.apache.hadoop.metrics.ganglia.GangliaContext31 -->
  25038. <class name="GangliaContext31" extends="org.apache.hadoop.metrics.ganglia.GangliaContext"
  25039. abstract="false"
  25040. static="false" final="false" visibility="public"
  25041. deprecated="not deprecated">
  25042. <constructor name="GangliaContext31"
  25043. static="false" final="false" visibility="public"
  25044. deprecated="not deprecated">
  25045. </constructor>
  25046. <method name="init"
  25047. abstract="false" native="false" synchronized="false"
  25048. static="false" final="false" visibility="public"
  25049. deprecated="not deprecated">
  25050. <param name="contextName" type="java.lang.String"/>
  25051. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  25052. </method>
  25053. <method name="emitMetric"
  25054. abstract="false" native="false" synchronized="false"
  25055. static="false" final="false" visibility="protected"
  25056. deprecated="not deprecated">
  25057. <param name="name" type="java.lang.String"/>
  25058. <param name="type" type="java.lang.String"/>
  25059. <param name="value" type="java.lang.String"/>
  25060. <exception name="IOException" type="java.io.IOException"/>
  25061. </method>
  25062. <doc>
  25063. <![CDATA[Context for sending metrics to Ganglia version 3.1.x.
  25064. 3.1.1 has a slightly different wire portal compared to 3.0.x.]]>
  25065. </doc>
  25066. </class>
  25067. <!-- end class org.apache.hadoop.metrics.ganglia.GangliaContext31 -->
  25068. </package>
  25069. <package name="org.apache.hadoop.metrics.jvm">
  25070. <!-- start class org.apache.hadoop.metrics.jvm.EventCounter -->
  25071. <class name="EventCounter" extends="org.apache.hadoop.log.metrics.EventCounter"
  25072. abstract="false"
  25073. static="false" final="false" visibility="public"
  25074. deprecated="use {@link org.apache.hadoop.log.metrics.EventCounter} instead">
  25075. <constructor name="EventCounter"
  25076. static="false" final="false" visibility="public"
  25077. deprecated="not deprecated">
  25078. </constructor>
  25079. <doc>
  25080. <![CDATA[A log4J Appender that simply counts logging events in three levels:
  25081. fatal, error and warn.
  25082. @deprecated use {@link org.apache.hadoop.log.metrics.EventCounter} instead]]>
  25083. </doc>
  25084. </class>
  25085. <!-- end class org.apache.hadoop.metrics.jvm.EventCounter -->
  25086. <!-- start class org.apache.hadoop.metrics.jvm.JvmMetrics -->
  25087. <class name="JvmMetrics" extends="java.lang.Object"
  25088. abstract="false"
  25089. static="false" final="false" visibility="public"
  25090. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  25091. <implements name="org.apache.hadoop.metrics.Updater"/>
  25092. <method name="init" return="org.apache.hadoop.metrics.jvm.JvmMetrics"
  25093. abstract="false" native="false" synchronized="true"
  25094. static="true" final="false" visibility="public"
  25095. deprecated="not deprecated">
  25096. <param name="processName" type="java.lang.String"/>
  25097. <param name="sessionId" type="java.lang.String"/>
  25098. </method>
  25099. <method name="init" return="org.apache.hadoop.metrics.jvm.JvmMetrics"
  25100. abstract="false" native="false" synchronized="true"
  25101. static="true" final="false" visibility="public"
  25102. deprecated="not deprecated">
  25103. <param name="processName" type="java.lang.String"/>
  25104. <param name="sessionId" type="java.lang.String"/>
  25105. <param name="recordName" type="java.lang.String"/>
  25106. </method>
  25107. <method name="doUpdates"
  25108. abstract="false" native="false" synchronized="false"
  25109. static="false" final="false" visibility="public"
  25110. deprecated="not deprecated">
  25111. <param name="context" type="org.apache.hadoop.metrics.MetricsContext"/>
  25112. <doc>
  25113. <![CDATA[This will be called periodically (with the period being configuration
  25114. dependent).]]>
  25115. </doc>
  25116. </method>
  25117. <doc>
  25118. <![CDATA[Singleton class which reports Java Virtual Machine metrics to the metrics API.
  25119. Any application can create an instance of this class in order to emit
  25120. Java VM metrics.
  25121. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  25122. </doc>
  25123. </class>
  25124. <!-- end class org.apache.hadoop.metrics.jvm.JvmMetrics -->
  25125. </package>
  25126. <package name="org.apache.hadoop.metrics.spi">
  25127. <!-- start class org.apache.hadoop.metrics.spi.AbstractMetricsContext -->
  25128. <class name="AbstractMetricsContext" extends="java.lang.Object"
  25129. abstract="true"
  25130. static="false" final="false" visibility="public"
  25131. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  25132. <implements name="org.apache.hadoop.metrics.MetricsContext"/>
  25133. <constructor name="AbstractMetricsContext"
  25134. static="false" final="false" visibility="protected"
  25135. deprecated="not deprecated">
  25136. <doc>
  25137. <![CDATA[Creates a new instance of AbstractMetricsContext]]>
  25138. </doc>
  25139. </constructor>
  25140. <method name="init"
  25141. abstract="false" native="false" synchronized="false"
  25142. static="false" final="false" visibility="public"
  25143. deprecated="not deprecated">
  25144. <param name="contextName" type="java.lang.String"/>
  25145. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  25146. <doc>
  25147. <![CDATA[Initializes the context.]]>
  25148. </doc>
  25149. </method>
  25150. <method name="getAttribute" return="java.lang.String"
  25151. abstract="false" native="false" synchronized="false"
  25152. static="false" final="false" visibility="protected"
  25153. deprecated="not deprecated">
  25154. <param name="attributeName" type="java.lang.String"/>
  25155. <doc>
  25156. <![CDATA[Convenience method for subclasses to access factory attributes.]]>
  25157. </doc>
  25158. </method>
  25159. <method name="getAttributeTable" return="java.util.Map"
  25160. abstract="false" native="false" synchronized="false"
  25161. static="false" final="false" visibility="protected"
  25162. deprecated="not deprecated">
  25163. <param name="tableName" type="java.lang.String"/>
  25164. <doc>
  25165. <![CDATA[Returns an attribute-value map derived from the factory attributes
  25166. by finding all factory attributes that begin with
  25167. <i>contextName</i>.<i>tableName</i>. The returned map consists of
  25168. those attributes with the contextName and tableName stripped off.]]>
  25169. </doc>
  25170. </method>
  25171. <method name="getContextName" return="java.lang.String"
  25172. abstract="false" native="false" synchronized="false"
  25173. static="false" final="false" visibility="public"
  25174. deprecated="not deprecated">
  25175. <doc>
  25176. <![CDATA[Returns the context name.]]>
  25177. </doc>
  25178. </method>
  25179. <method name="getContextFactory" return="org.apache.hadoop.metrics.ContextFactory"
  25180. abstract="false" native="false" synchronized="false"
  25181. static="false" final="false" visibility="public"
  25182. deprecated="not deprecated">
  25183. <doc>
  25184. <![CDATA[Returns the factory by which this context was created.]]>
  25185. </doc>
  25186. </method>
  25187. <method name="startMonitoring"
  25188. abstract="false" native="false" synchronized="true"
  25189. static="false" final="false" visibility="public"
  25190. deprecated="not deprecated">
  25191. <exception name="IOException" type="java.io.IOException"/>
  25192. <doc>
  25193. <![CDATA[Starts or restarts monitoring, the emitting of metrics records.]]>
  25194. </doc>
  25195. </method>
  25196. <method name="stopMonitoring"
  25197. abstract="false" native="false" synchronized="true"
  25198. static="false" final="false" visibility="public"
  25199. deprecated="not deprecated">
  25200. <doc>
  25201. <![CDATA[Stops monitoring. This does not free buffered data.
  25202. @see #close()]]>
  25203. </doc>
  25204. </method>
  25205. <method name="isMonitoring" return="boolean"
  25206. abstract="false" native="false" synchronized="false"
  25207. static="false" final="false" visibility="public"
  25208. deprecated="not deprecated">
  25209. <doc>
  25210. <![CDATA[Returns true if monitoring is currently in progress.]]>
  25211. </doc>
  25212. </method>
  25213. <method name="close"
  25214. abstract="false" native="false" synchronized="true"
  25215. static="false" final="false" visibility="public"
  25216. deprecated="not deprecated">
  25217. <doc>
  25218. <![CDATA[Stops monitoring and frees buffered data, returning this
  25219. object to its initial state.]]>
  25220. </doc>
  25221. </method>
  25222. <method name="createRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  25223. abstract="false" native="false" synchronized="true"
  25224. static="false" final="true" visibility="public"
  25225. deprecated="not deprecated">
  25226. <param name="recordName" type="java.lang.String"/>
  25227. <doc>
  25228. <![CDATA[Creates a new AbstractMetricsRecord instance with the given <code>recordName</code>.
  25229. Throws an exception if the metrics implementation is configured with a fixed
  25230. set of record names and <code>recordName</code> is not in that set.
  25231. @param recordName the name of the record
  25232. @throws MetricsException if recordName conflicts with configuration data]]>
  25233. </doc>
  25234. </method>
  25235. <method name="newRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  25236. abstract="false" native="false" synchronized="false"
  25237. static="false" final="false" visibility="protected"
  25238. deprecated="not deprecated">
  25239. <param name="recordName" type="java.lang.String"/>
  25240. <doc>
  25241. <![CDATA[Subclasses should override this if they subclass MetricsRecordImpl.
  25242. @param recordName the name of the record
  25243. @return newly created instance of MetricsRecordImpl or subclass]]>
  25244. </doc>
  25245. </method>
  25246. <method name="registerUpdater"
  25247. abstract="false" native="false" synchronized="true"
  25248. static="false" final="false" visibility="public"
  25249. deprecated="not deprecated">
  25250. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  25251. <doc>
  25252. <![CDATA[Registers a callback to be called at time intervals determined by
  25253. the configuration.
  25254. @param updater object to be run periodically; it should update
  25255. some metrics records]]>
  25256. </doc>
  25257. </method>
  25258. <method name="unregisterUpdater"
  25259. abstract="false" native="false" synchronized="true"
  25260. static="false" final="false" visibility="public"
  25261. deprecated="not deprecated">
  25262. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  25263. <doc>
  25264. <![CDATA[Removes a callback, if it exists.
  25265. @param updater object to be removed from the callback list]]>
  25266. </doc>
  25267. </method>
  25268. <method name="getAllRecords" return="java.util.Map"
  25269. abstract="false" native="false" synchronized="true"
  25270. static="false" final="false" visibility="public"
  25271. deprecated="not deprecated">
  25272. <doc>
  25273. <![CDATA[Retrieves all the records managed by this MetricsContext.
  25274. Useful for monitoring systems that are polling-based.
  25275. @return A non-null collection of all monitoring records.]]>
  25276. </doc>
  25277. </method>
  25278. <method name="emitRecord"
  25279. abstract="true" native="false" synchronized="false"
  25280. static="false" final="false" visibility="protected"
  25281. deprecated="not deprecated">
  25282. <param name="contextName" type="java.lang.String"/>
  25283. <param name="recordName" type="java.lang.String"/>
  25284. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  25285. <exception name="IOException" type="java.io.IOException"/>
  25286. <doc>
  25287. <![CDATA[Sends a record to the metrics system.]]>
  25288. </doc>
  25289. </method>
  25290. <method name="flush"
  25291. abstract="false" native="false" synchronized="false"
  25292. static="false" final="false" visibility="protected"
  25293. deprecated="not deprecated">
  25294. <exception name="IOException" type="java.io.IOException"/>
  25295. <doc>
  25296. <![CDATA[Called each period after all records have been emitted, this method does nothing.
  25297. Subclasses may override it in order to perform some kind of flush.]]>
  25298. </doc>
  25299. </method>
  25300. <method name="update"
  25301. abstract="false" native="false" synchronized="false"
  25302. static="false" final="false" visibility="protected"
  25303. deprecated="not deprecated">
  25304. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  25305. <doc>
  25306. <![CDATA[Called by MetricsRecordImpl.update(). Creates or updates a row in
  25307. the internal table of metric data.]]>
  25308. </doc>
  25309. </method>
  25310. <method name="remove"
  25311. abstract="false" native="false" synchronized="false"
  25312. static="false" final="false" visibility="protected"
  25313. deprecated="not deprecated">
  25314. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  25315. <doc>
  25316. <![CDATA[Called by MetricsRecordImpl.remove(). Removes all matching rows in
  25317. the internal table of metric data. A row matches if it has the same
  25318. tag names and values as record, but it may also have additional
  25319. tags.]]>
  25320. </doc>
  25321. </method>
  25322. <method name="getPeriod" return="int"
  25323. abstract="false" native="false" synchronized="false"
  25324. static="false" final="false" visibility="public"
  25325. deprecated="not deprecated">
  25326. <doc>
  25327. <![CDATA[Returns the timer period.]]>
  25328. </doc>
  25329. </method>
  25330. <method name="setPeriod"
  25331. abstract="false" native="false" synchronized="false"
  25332. static="false" final="false" visibility="protected"
  25333. deprecated="not deprecated">
  25334. <param name="period" type="int"/>
  25335. <doc>
  25336. <![CDATA[Sets the timer period]]>
  25337. </doc>
  25338. </method>
  25339. <method name="parseAndSetPeriod"
  25340. abstract="false" native="false" synchronized="false"
  25341. static="false" final="false" visibility="protected"
  25342. deprecated="not deprecated">
  25343. <param name="attributeName" type="java.lang.String"/>
  25344. <doc>
  25345. <![CDATA[If a period is set in the attribute passed in, override
  25346. the default with it.]]>
  25347. </doc>
  25348. </method>
  25349. <doc>
  25350. <![CDATA[The main class of the Service Provider Interface. This class should be
  25351. extended in order to integrate the Metrics API with a specific metrics
  25352. client library. <p/>
  25353. This class implements the internal table of metric data, and the timer
  25354. on which data is to be sent to the metrics system. Subclasses must
  25355. override the abstract <code>emitRecord</code> method in order to transmit
  25356. the data. <p/>
  25357. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  25358. </doc>
  25359. </class>
  25360. <!-- end class org.apache.hadoop.metrics.spi.AbstractMetricsContext -->
  25361. <!-- start class org.apache.hadoop.metrics.spi.AbstractMetricsContext.MetricMap -->
  25362. <class name="AbstractMetricsContext.MetricMap" extends="java.util.TreeMap"
  25363. abstract="false"
  25364. static="true" final="false" visibility="public"
  25365. deprecated="not deprecated">
  25366. </class>
  25367. <!-- end class org.apache.hadoop.metrics.spi.AbstractMetricsContext.MetricMap -->
  25368. <!-- start class org.apache.hadoop.metrics.spi.AbstractMetricsContext.TagMap -->
  25369. <class name="AbstractMetricsContext.TagMap" extends="java.util.TreeMap"
  25370. abstract="false"
  25371. static="true" final="false" visibility="public"
  25372. deprecated="not deprecated">
  25373. <method name="containsAll" return="boolean"
  25374. abstract="false" native="false" synchronized="false"
  25375. static="false" final="false" visibility="public"
  25376. deprecated="not deprecated">
  25377. <param name="other" type="org.apache.hadoop.metrics.spi.AbstractMetricsContext.TagMap"/>
  25378. <doc>
  25379. <![CDATA[Returns true if this tagmap contains every tag in other.]]>
  25380. </doc>
  25381. </method>
  25382. </class>
  25383. <!-- end class org.apache.hadoop.metrics.spi.AbstractMetricsContext.TagMap -->
  25384. <!-- start class org.apache.hadoop.metrics.spi.CompositeContext -->
  25385. <class name="CompositeContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  25386. abstract="false"
  25387. static="false" final="false" visibility="public"
  25388. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  25389. <constructor name="CompositeContext"
  25390. static="false" final="false" visibility="public"
  25391. deprecated="not deprecated">
  25392. </constructor>
  25393. <method name="init"
  25394. abstract="false" native="false" synchronized="false"
  25395. static="false" final="false" visibility="public"
  25396. deprecated="not deprecated">
  25397. <param name="contextName" type="java.lang.String"/>
  25398. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  25399. </method>
  25400. <method name="newRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  25401. abstract="false" native="false" synchronized="false"
  25402. static="false" final="false" visibility="public"
  25403. deprecated="not deprecated">
  25404. <param name="recordName" type="java.lang.String"/>
  25405. </method>
  25406. <method name="emitRecord"
  25407. abstract="false" native="false" synchronized="false"
  25408. static="false" final="false" visibility="protected"
  25409. deprecated="not deprecated">
  25410. <param name="contextName" type="java.lang.String"/>
  25411. <param name="recordName" type="java.lang.String"/>
  25412. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  25413. <exception name="IOException" type="java.io.IOException"/>
  25414. </method>
  25415. <method name="flush"
  25416. abstract="false" native="false" synchronized="false"
  25417. static="false" final="false" visibility="protected"
  25418. deprecated="not deprecated">
  25419. <exception name="IOException" type="java.io.IOException"/>
  25420. </method>
  25421. <method name="startMonitoring"
  25422. abstract="false" native="false" synchronized="false"
  25423. static="false" final="false" visibility="public"
  25424. deprecated="not deprecated">
  25425. <exception name="IOException" type="java.io.IOException"/>
  25426. </method>
  25427. <method name="stopMonitoring"
  25428. abstract="false" native="false" synchronized="false"
  25429. static="false" final="false" visibility="public"
  25430. deprecated="not deprecated">
  25431. </method>
  25432. <method name="isMonitoring" return="boolean"
  25433. abstract="false" native="false" synchronized="false"
  25434. static="false" final="false" visibility="public"
  25435. deprecated="not deprecated">
  25436. <doc>
  25437. <![CDATA[Return true if all subcontexts are monitoring.]]>
  25438. </doc>
  25439. </method>
  25440. <method name="close"
  25441. abstract="false" native="false" synchronized="false"
  25442. static="false" final="false" visibility="public"
  25443. deprecated="not deprecated">
  25444. </method>
  25445. <method name="registerUpdater"
  25446. abstract="false" native="false" synchronized="false"
  25447. static="false" final="false" visibility="public"
  25448. deprecated="not deprecated">
  25449. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  25450. </method>
  25451. <method name="unregisterUpdater"
  25452. abstract="false" native="false" synchronized="false"
  25453. static="false" final="false" visibility="public"
  25454. deprecated="not deprecated">
  25455. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  25456. </method>
  25457. <doc>
  25458. <![CDATA[@deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  25459. </doc>
  25460. </class>
  25461. <!-- end class org.apache.hadoop.metrics.spi.CompositeContext -->
  25462. <!-- start class org.apache.hadoop.metrics.spi.MetricsRecordImpl -->
  25463. <class name="MetricsRecordImpl" extends="java.lang.Object"
  25464. abstract="false"
  25465. static="false" final="false" visibility="public"
  25466. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  25467. <implements name="org.apache.hadoop.metrics.MetricsRecord"/>
  25468. <constructor name="MetricsRecordImpl" type="java.lang.String, org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  25469. static="false" final="false" visibility="protected"
  25470. deprecated="not deprecated">
  25471. <doc>
  25472. <![CDATA[Creates a new instance of FileRecord]]>
  25473. </doc>
  25474. </constructor>
  25475. <method name="getRecordName" return="java.lang.String"
  25476. abstract="false" native="false" synchronized="false"
  25477. static="false" final="false" visibility="public"
  25478. deprecated="not deprecated">
  25479. <doc>
  25480. <![CDATA[Returns the record name.
  25481. @return the record name]]>
  25482. </doc>
  25483. </method>
  25484. <method name="setTag"
  25485. abstract="false" native="false" synchronized="false"
  25486. static="false" final="false" visibility="public"
  25487. deprecated="not deprecated">
  25488. <param name="tagName" type="java.lang.String"/>
  25489. <param name="tagValue" type="java.lang.String"/>
  25490. <doc>
  25491. <![CDATA[Sets the named tag to the specified value.
  25492. @param tagName name of the tag
  25493. @param tagValue new value of the tag
  25494. @throws MetricsException if the tagName conflicts with the configuration]]>
  25495. </doc>
  25496. </method>
  25497. <method name="setTag"
  25498. abstract="false" native="false" synchronized="false"
  25499. static="false" final="false" visibility="public"
  25500. deprecated="not deprecated">
  25501. <param name="tagName" type="java.lang.String"/>
  25502. <param name="tagValue" type="int"/>
  25503. <doc>
  25504. <![CDATA[Sets the named tag to the specified value.
  25505. @param tagName name of the tag
  25506. @param tagValue new value of the tag
  25507. @throws MetricsException if the tagName conflicts with the configuration]]>
  25508. </doc>
  25509. </method>
  25510. <method name="setTag"
  25511. abstract="false" native="false" synchronized="false"
  25512. static="false" final="false" visibility="public"
  25513. deprecated="not deprecated">
  25514. <param name="tagName" type="java.lang.String"/>
  25515. <param name="tagValue" type="long"/>
  25516. <doc>
  25517. <![CDATA[Sets the named tag to the specified value.
  25518. @param tagName name of the tag
  25519. @param tagValue new value of the tag
  25520. @throws MetricsException if the tagName conflicts with the configuration]]>
  25521. </doc>
  25522. </method>
  25523. <method name="setTag"
  25524. abstract="false" native="false" synchronized="false"
  25525. static="false" final="false" visibility="public"
  25526. deprecated="not deprecated">
  25527. <param name="tagName" type="java.lang.String"/>
  25528. <param name="tagValue" type="short"/>
  25529. <doc>
  25530. <![CDATA[Sets the named tag to the specified value.
  25531. @param tagName name of the tag
  25532. @param tagValue new value of the tag
  25533. @throws MetricsException if the tagName conflicts with the configuration]]>
  25534. </doc>
  25535. </method>
  25536. <method name="setTag"
  25537. abstract="false" native="false" synchronized="false"
  25538. static="false" final="false" visibility="public"
  25539. deprecated="not deprecated">
  25540. <param name="tagName" type="java.lang.String"/>
  25541. <param name="tagValue" type="byte"/>
  25542. <doc>
  25543. <![CDATA[Sets the named tag to the specified value.
  25544. @param tagName name of the tag
  25545. @param tagValue new value of the tag
  25546. @throws MetricsException if the tagName conflicts with the configuration]]>
  25547. </doc>
  25548. </method>
  25549. <method name="removeTag"
  25550. abstract="false" native="false" synchronized="false"
  25551. static="false" final="false" visibility="public"
  25552. deprecated="not deprecated">
  25553. <param name="tagName" type="java.lang.String"/>
  25554. <doc>
  25555. <![CDATA[Removes any tag of the specified name.]]>
  25556. </doc>
  25557. </method>
  25558. <method name="setMetric"
  25559. abstract="false" native="false" synchronized="false"
  25560. static="false" final="false" visibility="public"
  25561. deprecated="not deprecated">
  25562. <param name="metricName" type="java.lang.String"/>
  25563. <param name="metricValue" type="int"/>
  25564. <doc>
  25565. <![CDATA[Sets the named metric to the specified value.
  25566. @param metricName name of the metric
  25567. @param metricValue new value of the metric
  25568. @throws MetricsException if the metricName or the type of the metricValue
  25569. conflicts with the configuration]]>
  25570. </doc>
  25571. </method>
  25572. <method name="setMetric"
  25573. abstract="false" native="false" synchronized="false"
  25574. static="false" final="false" visibility="public"
  25575. deprecated="not deprecated">
  25576. <param name="metricName" type="java.lang.String"/>
  25577. <param name="metricValue" type="long"/>
  25578. <doc>
  25579. <![CDATA[Sets the named metric to the specified value.
  25580. @param metricName name of the metric
  25581. @param metricValue new value of the metric
  25582. @throws MetricsException if the metricName or the type of the metricValue
  25583. conflicts with the configuration]]>
  25584. </doc>
  25585. </method>
  25586. <method name="setMetric"
  25587. abstract="false" native="false" synchronized="false"
  25588. static="false" final="false" visibility="public"
  25589. deprecated="not deprecated">
  25590. <param name="metricName" type="java.lang.String"/>
  25591. <param name="metricValue" type="short"/>
  25592. <doc>
  25593. <![CDATA[Sets the named metric to the specified value.
  25594. @param metricName name of the metric
  25595. @param metricValue new value of the metric
  25596. @throws MetricsException if the metricName or the type of the metricValue
  25597. conflicts with the configuration]]>
  25598. </doc>
  25599. </method>
  25600. <method name="setMetric"
  25601. abstract="false" native="false" synchronized="false"
  25602. static="false" final="false" visibility="public"
  25603. deprecated="not deprecated">
  25604. <param name="metricName" type="java.lang.String"/>
  25605. <param name="metricValue" type="byte"/>
  25606. <doc>
  25607. <![CDATA[Sets the named metric to the specified value.
  25608. @param metricName name of the metric
  25609. @param metricValue new value of the metric
  25610. @throws MetricsException if the metricName or the type of the metricValue
  25611. conflicts with the configuration]]>
  25612. </doc>
  25613. </method>
  25614. <method name="setMetric"
  25615. abstract="false" native="false" synchronized="false"
  25616. static="false" final="false" visibility="public"
  25617. deprecated="not deprecated">
  25618. <param name="metricName" type="java.lang.String"/>
  25619. <param name="metricValue" type="float"/>
  25620. <doc>
  25621. <![CDATA[Sets the named metric to the specified value.
  25622. @param metricName name of the metric
  25623. @param metricValue new value of the metric
  25624. @throws MetricsException if the metricName or the type of the metricValue
  25625. conflicts with the configuration]]>
  25626. </doc>
  25627. </method>
  25628. <method name="incrMetric"
  25629. abstract="false" native="false" synchronized="false"
  25630. static="false" final="false" visibility="public"
  25631. deprecated="not deprecated">
  25632. <param name="metricName" type="java.lang.String"/>
  25633. <param name="metricValue" type="int"/>
  25634. <doc>
  25635. <![CDATA[Increments the named metric by the specified value.
  25636. @param metricName name of the metric
  25637. @param metricValue incremental value
  25638. @throws MetricsException if the metricName or the type of the metricValue
  25639. conflicts with the configuration]]>
  25640. </doc>
  25641. </method>
  25642. <method name="incrMetric"
  25643. abstract="false" native="false" synchronized="false"
  25644. static="false" final="false" visibility="public"
  25645. deprecated="not deprecated">
  25646. <param name="metricName" type="java.lang.String"/>
  25647. <param name="metricValue" type="long"/>
  25648. <doc>
  25649. <![CDATA[Increments the named metric by the specified value.
  25650. @param metricName name of the metric
  25651. @param metricValue incremental value
  25652. @throws MetricsException if the metricName or the type of the metricValue
  25653. conflicts with the configuration]]>
  25654. </doc>
  25655. </method>
  25656. <method name="incrMetric"
  25657. abstract="false" native="false" synchronized="false"
  25658. static="false" final="false" visibility="public"
  25659. deprecated="not deprecated">
  25660. <param name="metricName" type="java.lang.String"/>
  25661. <param name="metricValue" type="short"/>
  25662. <doc>
  25663. <![CDATA[Increments the named metric by the specified value.
  25664. @param metricName name of the metric
  25665. @param metricValue incremental value
  25666. @throws MetricsException if the metricName or the type of the metricValue
  25667. conflicts with the configuration]]>
  25668. </doc>
  25669. </method>
  25670. <method name="incrMetric"
  25671. abstract="false" native="false" synchronized="false"
  25672. static="false" final="false" visibility="public"
  25673. deprecated="not deprecated">
  25674. <param name="metricName" type="java.lang.String"/>
  25675. <param name="metricValue" type="byte"/>
  25676. <doc>
  25677. <![CDATA[Increments the named metric by the specified value.
  25678. @param metricName name of the metric
  25679. @param metricValue incremental value
  25680. @throws MetricsException if the metricName or the type of the metricValue
  25681. conflicts with the configuration]]>
  25682. </doc>
  25683. </method>
  25684. <method name="incrMetric"
  25685. abstract="false" native="false" synchronized="false"
  25686. static="false" final="false" visibility="public"
  25687. deprecated="not deprecated">
  25688. <param name="metricName" type="java.lang.String"/>
  25689. <param name="metricValue" type="float"/>
  25690. <doc>
  25691. <![CDATA[Increments the named metric by the specified value.
  25692. @param metricName name of the metric
  25693. @param metricValue incremental value
  25694. @throws MetricsException if the metricName or the type of the metricValue
  25695. conflicts with the configuration]]>
  25696. </doc>
  25697. </method>
  25698. <method name="update"
  25699. abstract="false" native="false" synchronized="false"
  25700. static="false" final="false" visibility="public"
  25701. deprecated="not deprecated">
  25702. <doc>
  25703. <![CDATA[Updates the table of buffered data which is to be sent periodically.
  25704. If the tag values match an existing row, that row is updated;
  25705. otherwise, a new row is added.]]>
  25706. </doc>
  25707. </method>
  25708. <method name="remove"
  25709. abstract="false" native="false" synchronized="false"
  25710. static="false" final="false" visibility="public"
  25711. deprecated="not deprecated">
  25712. <doc>
  25713. <![CDATA[Removes the row, if it exists, in the buffered data table having tags
  25714. that equal the tags that have been set on this record.]]>
  25715. </doc>
  25716. </method>
  25717. <doc>
  25718. <![CDATA[An implementation of MetricsRecord. Keeps a back-pointer to the context
  25719. from which it was created, and delegates back to it on <code>update</code>
  25720. and <code>remove()</code>.
  25721. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  25722. </doc>
  25723. </class>
  25724. <!-- end class org.apache.hadoop.metrics.spi.MetricsRecordImpl -->
  25725. <!-- start class org.apache.hadoop.metrics.spi.MetricValue -->
  25726. <class name="MetricValue" extends="java.lang.Object"
  25727. abstract="false"
  25728. static="false" final="false" visibility="public"
  25729. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  25730. <constructor name="MetricValue" type="java.lang.Number, boolean"
  25731. static="false" final="false" visibility="public"
  25732. deprecated="not deprecated">
  25733. <doc>
  25734. <![CDATA[Creates a new instance of MetricValue]]>
  25735. </doc>
  25736. </constructor>
  25737. <method name="isIncrement" return="boolean"
  25738. abstract="false" native="false" synchronized="false"
  25739. static="false" final="false" visibility="public"
  25740. deprecated="not deprecated">
  25741. </method>
  25742. <method name="isAbsolute" return="boolean"
  25743. abstract="false" native="false" synchronized="false"
  25744. static="false" final="false" visibility="public"
  25745. deprecated="not deprecated">
  25746. </method>
  25747. <method name="getNumber" return="java.lang.Number"
  25748. abstract="false" native="false" synchronized="false"
  25749. static="false" final="false" visibility="public"
  25750. deprecated="not deprecated">
  25751. </method>
  25752. <field name="ABSOLUTE" type="boolean"
  25753. transient="false" volatile="false"
  25754. static="true" final="true" visibility="public"
  25755. deprecated="not deprecated">
  25756. </field>
  25757. <field name="INCREMENT" type="boolean"
  25758. transient="false" volatile="false"
  25759. static="true" final="true" visibility="public"
  25760. deprecated="not deprecated">
  25761. </field>
  25762. <doc>
  25763. <![CDATA[A Number that is either an absolute or an incremental amount.
  25764. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  25765. </doc>
  25766. </class>
  25767. <!-- end class org.apache.hadoop.metrics.spi.MetricValue -->
  25768. <!-- start class org.apache.hadoop.metrics.spi.NoEmitMetricsContext -->
  25769. <class name="NoEmitMetricsContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  25770. abstract="false"
  25771. static="false" final="false" visibility="public"
  25772. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  25773. <constructor name="NoEmitMetricsContext"
  25774. static="false" final="false" visibility="public"
  25775. deprecated="not deprecated">
  25776. <doc>
  25777. <![CDATA[Creates a new instance of NullContextWithUpdateThread]]>
  25778. </doc>
  25779. </constructor>
  25780. <method name="init"
  25781. abstract="false" native="false" synchronized="false"
  25782. static="false" final="false" visibility="public"
  25783. deprecated="not deprecated">
  25784. <param name="contextName" type="java.lang.String"/>
  25785. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  25786. </method>
  25787. <method name="emitRecord"
  25788. abstract="false" native="false" synchronized="false"
  25789. static="false" final="false" visibility="protected"
  25790. deprecated="not deprecated">
  25791. <param name="contextName" type="java.lang.String"/>
  25792. <param name="recordName" type="java.lang.String"/>
  25793. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  25794. <doc>
  25795. <![CDATA[Do-nothing version of emitRecord]]>
  25796. </doc>
  25797. </method>
  25798. <doc>
  25799. <![CDATA[A MetricsContext that does not emit data, but, unlike NullContextWithUpdate,
  25800. does save it for retrieval with getAllRecords().
  25801. This is useful if you want to support {@link MetricsServlet}, but
  25802. not emit metrics in any other way.
  25803. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  25804. </doc>
  25805. </class>
  25806. <!-- end class org.apache.hadoop.metrics.spi.NoEmitMetricsContext -->
  25807. <!-- start class org.apache.hadoop.metrics.spi.NullContext -->
  25808. <class name="NullContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  25809. abstract="false"
  25810. static="false" final="false" visibility="public"
  25811. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  25812. <constructor name="NullContext"
  25813. static="false" final="false" visibility="public"
  25814. deprecated="not deprecated">
  25815. <doc>
  25816. <![CDATA[Creates a new instance of NullContext]]>
  25817. </doc>
  25818. </constructor>
  25819. <method name="startMonitoring"
  25820. abstract="false" native="false" synchronized="false"
  25821. static="false" final="false" visibility="public"
  25822. deprecated="not deprecated">
  25823. <doc>
  25824. <![CDATA[Do-nothing version of startMonitoring]]>
  25825. </doc>
  25826. </method>
  25827. <method name="emitRecord"
  25828. abstract="false" native="false" synchronized="false"
  25829. static="false" final="false" visibility="protected"
  25830. deprecated="not deprecated">
  25831. <param name="contextName" type="java.lang.String"/>
  25832. <param name="recordName" type="java.lang.String"/>
  25833. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  25834. <doc>
  25835. <![CDATA[Do-nothing version of emitRecord]]>
  25836. </doc>
  25837. </method>
  25838. <method name="update"
  25839. abstract="false" native="false" synchronized="false"
  25840. static="false" final="false" visibility="protected"
  25841. deprecated="not deprecated">
  25842. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  25843. <doc>
  25844. <![CDATA[Do-nothing version of update]]>
  25845. </doc>
  25846. </method>
  25847. <method name="remove"
  25848. abstract="false" native="false" synchronized="false"
  25849. static="false" final="false" visibility="protected"
  25850. deprecated="not deprecated">
  25851. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  25852. <doc>
  25853. <![CDATA[Do-nothing version of remove]]>
  25854. </doc>
  25855. </method>
  25856. <doc>
  25857. <![CDATA[Null metrics context: a metrics context which does nothing. Used as the
  25858. default context, so that no performance data is emitted if no configuration
  25859. data is found.
  25860. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  25861. </doc>
  25862. </class>
  25863. <!-- end class org.apache.hadoop.metrics.spi.NullContext -->
  25864. <!-- start class org.apache.hadoop.metrics.spi.NullContextWithUpdateThread -->
  25865. <class name="NullContextWithUpdateThread" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  25866. abstract="false"
  25867. static="false" final="false" visibility="public"
  25868. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  25869. <constructor name="NullContextWithUpdateThread"
  25870. static="false" final="false" visibility="public"
  25871. deprecated="not deprecated">
  25872. <doc>
  25873. <![CDATA[Creates a new instance of NullContextWithUpdateThread]]>
  25874. </doc>
  25875. </constructor>
  25876. <method name="init"
  25877. abstract="false" native="false" synchronized="false"
  25878. static="false" final="false" visibility="public"
  25879. deprecated="not deprecated">
  25880. <param name="contextName" type="java.lang.String"/>
  25881. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  25882. </method>
  25883. <method name="emitRecord"
  25884. abstract="false" native="false" synchronized="false"
  25885. static="false" final="false" visibility="protected"
  25886. deprecated="not deprecated">
  25887. <param name="contextName" type="java.lang.String"/>
  25888. <param name="recordName" type="java.lang.String"/>
  25889. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  25890. <doc>
  25891. <![CDATA[Do-nothing version of emitRecord]]>
  25892. </doc>
  25893. </method>
  25894. <method name="update"
  25895. abstract="false" native="false" synchronized="false"
  25896. static="false" final="false" visibility="protected"
  25897. deprecated="not deprecated">
  25898. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  25899. <doc>
  25900. <![CDATA[Do-nothing version of update]]>
  25901. </doc>
  25902. </method>
  25903. <method name="remove"
  25904. abstract="false" native="false" synchronized="false"
  25905. static="false" final="false" visibility="protected"
  25906. deprecated="not deprecated">
  25907. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  25908. <doc>
  25909. <![CDATA[Do-nothing version of remove]]>
  25910. </doc>
  25911. </method>
  25912. <doc>
  25913. <![CDATA[A null context which has a thread calling
  25914. periodically when monitoring is started. This keeps the data sampled
  25915. correctly.
  25916. In all other respects, this is like the NULL context: No data is emitted.
  25917. This is suitable for Monitoring systems like JMX which reads the metrics
  25918. when someone reads the data from JMX.
  25919. The default impl of start and stop monitoring:
  25920. is the AbstractMetricsContext is good enough.
  25921. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  25922. </doc>
  25923. </class>
  25924. <!-- end class org.apache.hadoop.metrics.spi.NullContextWithUpdateThread -->
  25925. <!-- start class org.apache.hadoop.metrics.spi.OutputRecord -->
  25926. <class name="OutputRecord" extends="java.lang.Object"
  25927. abstract="false"
  25928. static="false" final="false" visibility="public"
  25929. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  25930. <method name="getTagNames" return="java.util.Set"
  25931. abstract="false" native="false" synchronized="false"
  25932. static="false" final="false" visibility="public"
  25933. deprecated="not deprecated">
  25934. <doc>
  25935. <![CDATA[Returns the set of tag names]]>
  25936. </doc>
  25937. </method>
  25938. <method name="getTag" return="java.lang.Object"
  25939. abstract="false" native="false" synchronized="false"
  25940. static="false" final="false" visibility="public"
  25941. deprecated="not deprecated">
  25942. <param name="name" type="java.lang.String"/>
  25943. <doc>
  25944. <![CDATA[Returns a tag object which is can be a String, Integer, Short or Byte.
  25945. @return the tag value, or null if there is no such tag]]>
  25946. </doc>
  25947. </method>
  25948. <method name="getMetricNames" return="java.util.Set"
  25949. abstract="false" native="false" synchronized="false"
  25950. static="false" final="false" visibility="public"
  25951. deprecated="not deprecated">
  25952. <doc>
  25953. <![CDATA[Returns the set of metric names.]]>
  25954. </doc>
  25955. </method>
  25956. <method name="getMetric" return="java.lang.Number"
  25957. abstract="false" native="false" synchronized="false"
  25958. static="false" final="false" visibility="public"
  25959. deprecated="not deprecated">
  25960. <param name="name" type="java.lang.String"/>
  25961. <doc>
  25962. <![CDATA[Returns the metric object which can be a Float, Integer, Short or Byte.]]>
  25963. </doc>
  25964. </method>
  25965. <method name="getTagsCopy" return="org.apache.hadoop.metrics.spi.AbstractMetricsContext.TagMap"
  25966. abstract="false" native="false" synchronized="false"
  25967. static="false" final="false" visibility="public"
  25968. deprecated="not deprecated">
  25969. <doc>
  25970. <![CDATA[Returns a copy of this record's tags.]]>
  25971. </doc>
  25972. </method>
  25973. <method name="getMetricsCopy" return="org.apache.hadoop.metrics.spi.AbstractMetricsContext.MetricMap"
  25974. abstract="false" native="false" synchronized="false"
  25975. static="false" final="false" visibility="public"
  25976. deprecated="not deprecated">
  25977. <doc>
  25978. <![CDATA[Returns a copy of this record's metrics.]]>
  25979. </doc>
  25980. </method>
  25981. <doc>
  25982. <![CDATA[Represents a record of metric data to be sent to a metrics system.
  25983. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  25984. </doc>
  25985. </class>
  25986. <!-- end class org.apache.hadoop.metrics.spi.OutputRecord -->
  25987. <!-- start class org.apache.hadoop.metrics.spi.Util -->
  25988. <class name="Util" extends="java.lang.Object"
  25989. abstract="false"
  25990. static="false" final="false" visibility="public"
  25991. deprecated="not deprecated">
  25992. <method name="parse" return="java.util.List"
  25993. abstract="false" native="false" synchronized="false"
  25994. static="true" final="false" visibility="public"
  25995. deprecated="not deprecated">
  25996. <param name="specs" type="java.lang.String"/>
  25997. <param name="defaultPort" type="int"/>
  25998. <doc>
  25999. <![CDATA[Parses a space and/or comma separated sequence of server specifications
  26000. of the form <i>hostname</i> or <i>hostname:port</i>. If
  26001. the specs string is null, defaults to localhost:defaultPort.
  26002. @return a list of InetSocketAddress objects.]]>
  26003. </doc>
  26004. </method>
  26005. <doc>
  26006. <![CDATA[Static utility methods]]>
  26007. </doc>
  26008. </class>
  26009. <!-- end class org.apache.hadoop.metrics.spi.Util -->
  26010. </package>
  26011. <package name="org.apache.hadoop.metrics.util">
  26012. <!-- start class org.apache.hadoop.metrics.util.MBeanUtil -->
  26013. <class name="MBeanUtil" extends="java.lang.Object"
  26014. abstract="false"
  26015. static="false" final="false" visibility="public"
  26016. deprecated="in favor of {@link org.apache.hadoop.metrics2.util.MBeans}.">
  26017. <constructor name="MBeanUtil"
  26018. static="false" final="false" visibility="public"
  26019. deprecated="not deprecated">
  26020. </constructor>
  26021. <method name="registerMBean" return="javax.management.ObjectName"
  26022. abstract="false" native="false" synchronized="false"
  26023. static="true" final="false" visibility="public"
  26024. deprecated="not deprecated">
  26025. <param name="serviceName" type="java.lang.String"/>
  26026. <param name="nameName" type="java.lang.String"/>
  26027. <param name="theMbean" type="java.lang.Object"/>
  26028. <doc>
  26029. <![CDATA[Register the MBean using our standard MBeanName format
  26030. "hadoop:service=<serviceName>,name=<nameName>"
  26031. Where the <serviceName> and <nameName> are the supplied parameters
  26032. @param serviceName
  26033. @param nameName
  26034. @param theMbean - the MBean to register
  26035. @return the named used to register the MBean]]>
  26036. </doc>
  26037. </method>
  26038. <method name="unregisterMBean"
  26039. abstract="false" native="false" synchronized="false"
  26040. static="true" final="false" visibility="public"
  26041. deprecated="not deprecated">
  26042. <param name="mbeanName" type="javax.management.ObjectName"/>
  26043. </method>
  26044. <doc>
  26045. <![CDATA[This util class provides a method to register an MBean using
  26046. our standard naming convention as described in the doc
  26047. for {@link #registerMBean(String, String, Object)}
  26048. @deprecated in favor of {@link org.apache.hadoop.metrics2.util.MBeans}.]]>
  26049. </doc>
  26050. </class>
  26051. <!-- end class org.apache.hadoop.metrics.util.MBeanUtil -->
  26052. <!-- start class org.apache.hadoop.metrics.util.MetricsBase -->
  26053. <class name="MetricsBase" extends="java.lang.Object"
  26054. abstract="true"
  26055. static="false" final="false" visibility="public"
  26056. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  26057. <constructor name="MetricsBase" type="java.lang.String"
  26058. static="false" final="false" visibility="protected"
  26059. deprecated="not deprecated">
  26060. </constructor>
  26061. <constructor name="MetricsBase" type="java.lang.String, java.lang.String"
  26062. static="false" final="false" visibility="protected"
  26063. deprecated="not deprecated">
  26064. </constructor>
  26065. <method name="pushMetric"
  26066. abstract="true" native="false" synchronized="false"
  26067. static="false" final="false" visibility="public"
  26068. deprecated="not deprecated">
  26069. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  26070. </method>
  26071. <method name="getName" return="java.lang.String"
  26072. abstract="false" native="false" synchronized="false"
  26073. static="false" final="false" visibility="public"
  26074. deprecated="not deprecated">
  26075. </method>
  26076. <method name="getDescription" return="java.lang.String"
  26077. abstract="false" native="false" synchronized="false"
  26078. static="false" final="false" visibility="public"
  26079. deprecated="not deprecated">
  26080. </method>
  26081. <field name="NO_DESCRIPTION" type="java.lang.String"
  26082. transient="false" volatile="false"
  26083. static="true" final="true" visibility="public"
  26084. deprecated="not deprecated">
  26085. </field>
  26086. <doc>
  26087. <![CDATA[This is base class for all metrics
  26088. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  26089. </doc>
  26090. </class>
  26091. <!-- end class org.apache.hadoop.metrics.util.MetricsBase -->
  26092. <!-- start class org.apache.hadoop.metrics.util.MetricsDynamicMBeanBase -->
  26093. <class name="MetricsDynamicMBeanBase" extends="java.lang.Object"
  26094. abstract="true"
  26095. static="false" final="false" visibility="public"
  26096. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  26097. <implements name="javax.management.DynamicMBean"/>
  26098. <constructor name="MetricsDynamicMBeanBase" type="org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String"
  26099. static="false" final="false" visibility="protected"
  26100. deprecated="not deprecated">
  26101. </constructor>
  26102. <method name="getAttribute" return="java.lang.Object"
  26103. abstract="false" native="false" synchronized="false"
  26104. static="false" final="false" visibility="public"
  26105. deprecated="not deprecated">
  26106. <param name="attributeName" type="java.lang.String"/>
  26107. <exception name="AttributeNotFoundException" type="javax.management.AttributeNotFoundException"/>
  26108. <exception name="MBeanException" type="javax.management.MBeanException"/>
  26109. <exception name="ReflectionException" type="javax.management.ReflectionException"/>
  26110. </method>
  26111. <method name="getAttributes" return="javax.management.AttributeList"
  26112. abstract="false" native="false" synchronized="false"
  26113. static="false" final="false" visibility="public"
  26114. deprecated="not deprecated">
  26115. <param name="attributeNames" type="java.lang.String[]"/>
  26116. </method>
  26117. <method name="getMBeanInfo" return="javax.management.MBeanInfo"
  26118. abstract="false" native="false" synchronized="false"
  26119. static="false" final="false" visibility="public"
  26120. deprecated="not deprecated">
  26121. </method>
  26122. <method name="invoke" return="java.lang.Object"
  26123. abstract="false" native="false" synchronized="false"
  26124. static="false" final="false" visibility="public"
  26125. deprecated="not deprecated">
  26126. <param name="actionName" type="java.lang.String"/>
  26127. <param name="parms" type="java.lang.Object[]"/>
  26128. <param name="signature" type="java.lang.String[]"/>
  26129. <exception name="MBeanException" type="javax.management.MBeanException"/>
  26130. <exception name="ReflectionException" type="javax.management.ReflectionException"/>
  26131. </method>
  26132. <method name="setAttribute"
  26133. abstract="false" native="false" synchronized="false"
  26134. static="false" final="false" visibility="public"
  26135. deprecated="not deprecated">
  26136. <param name="attribute" type="javax.management.Attribute"/>
  26137. <exception name="AttributeNotFoundException" type="javax.management.AttributeNotFoundException"/>
  26138. <exception name="InvalidAttributeValueException" type="javax.management.InvalidAttributeValueException"/>
  26139. <exception name="MBeanException" type="javax.management.MBeanException"/>
  26140. <exception name="ReflectionException" type="javax.management.ReflectionException"/>
  26141. </method>
  26142. <method name="setAttributes" return="javax.management.AttributeList"
  26143. abstract="false" native="false" synchronized="false"
  26144. static="false" final="false" visibility="public"
  26145. deprecated="not deprecated">
  26146. <param name="attributes" type="javax.management.AttributeList"/>
  26147. </method>
  26148. <doc>
  26149. <![CDATA[This abstract base class facilitates creating dynamic mbeans automatically from
  26150. metrics.
  26151. The metrics constructors registers metrics in a registry.
  26152. Different categories of metrics should be in differnt classes with their own
  26153. registry (as in NameNodeMetrics and DataNodeMetrics).
  26154. Then the MBean can be created passing the registry to the constructor.
  26155. The MBean should be then registered using a mbean name (example):
  26156. MetricsHolder myMetrics = new MetricsHolder(); // has metrics and registry
  26157. MetricsTestMBean theMBean = new MetricsTestMBean(myMetrics.mregistry);
  26158. ObjectName mbeanName = MBeanUtil.registerMBean("ServiceFoo",
  26159. "TestStatistics", theMBean);
  26160. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  26161. </doc>
  26162. </class>
  26163. <!-- end class org.apache.hadoop.metrics.util.MetricsDynamicMBeanBase -->
  26164. <!-- start class org.apache.hadoop.metrics.util.MetricsIntValue -->
  26165. <class name="MetricsIntValue" extends="org.apache.hadoop.metrics.util.MetricsBase"
  26166. abstract="false"
  26167. static="false" final="false" visibility="public"
  26168. deprecated="in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableGaugeInt}.">
  26169. <constructor name="MetricsIntValue" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String"
  26170. static="false" final="false" visibility="public"
  26171. deprecated="not deprecated">
  26172. <doc>
  26173. <![CDATA[Constructor - create a new metric
  26174. @param nam the name of the metrics to be used to publish the metric
  26175. @param registry - where the metrics object will be registered]]>
  26176. </doc>
  26177. </constructor>
  26178. <constructor name="MetricsIntValue" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry"
  26179. static="false" final="false" visibility="public"
  26180. deprecated="not deprecated">
  26181. <doc>
  26182. <![CDATA[Constructor - create a new metric
  26183. @param nam the name of the metrics to be used to publish the metric
  26184. @param registry - where the metrics object will be registered
  26185. A description of {@link #NO_DESCRIPTION} is used]]>
  26186. </doc>
  26187. </constructor>
  26188. <method name="set"
  26189. abstract="false" native="false" synchronized="true"
  26190. static="false" final="false" visibility="public"
  26191. deprecated="not deprecated">
  26192. <param name="newValue" type="int"/>
  26193. <doc>
  26194. <![CDATA[Set the value
  26195. @param newValue]]>
  26196. </doc>
  26197. </method>
  26198. <method name="get" return="int"
  26199. abstract="false" native="false" synchronized="true"
  26200. static="false" final="false" visibility="public"
  26201. deprecated="not deprecated">
  26202. <doc>
  26203. <![CDATA[Get value
  26204. @return the value last set]]>
  26205. </doc>
  26206. </method>
  26207. <method name="pushMetric"
  26208. abstract="false" native="false" synchronized="true"
  26209. static="false" final="false" visibility="public"
  26210. deprecated="not deprecated">
  26211. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  26212. <doc>
  26213. <![CDATA[Push the metric to the mr.
  26214. The metric is pushed only if it was updated since last push
  26215. Note this does NOT push to JMX
  26216. (JMX gets the info via {@link #get()}
  26217. @param mr]]>
  26218. </doc>
  26219. </method>
  26220. <doc>
  26221. <![CDATA[The MetricsIntValue class is for a metric that is not time varied
  26222. but changes only when it is set.
  26223. Each time its value is set, it is published only *once* at the next update
  26224. call.
  26225. @deprecated in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableGaugeInt}.]]>
  26226. </doc>
  26227. </class>
  26228. <!-- end class org.apache.hadoop.metrics.util.MetricsIntValue -->
  26229. <!-- start class org.apache.hadoop.metrics.util.MetricsLongValue -->
  26230. <class name="MetricsLongValue" extends="org.apache.hadoop.metrics.util.MetricsBase"
  26231. abstract="false"
  26232. static="false" final="false" visibility="public"
  26233. deprecated="in favor of lEsS_tHaNcode>org.apache.hadoop.metrics2lEsS_tHaN/code> usage.">
  26234. <constructor name="MetricsLongValue" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String"
  26235. static="false" final="false" visibility="public"
  26236. deprecated="not deprecated">
  26237. <doc>
  26238. <![CDATA[Constructor - create a new metric
  26239. @param nam the name of the metrics to be used to publish the metric
  26240. @param registry - where the metrics object will be registered]]>
  26241. </doc>
  26242. </constructor>
  26243. <constructor name="MetricsLongValue" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry"
  26244. static="false" final="false" visibility="public"
  26245. deprecated="not deprecated">
  26246. <doc>
  26247. <![CDATA[Constructor - create a new metric
  26248. @param nam the name of the metrics to be used to publish the metric
  26249. @param registry - where the metrics object will be registered
  26250. A description of {@link #NO_DESCRIPTION} is used]]>
  26251. </doc>
  26252. </constructor>
  26253. <method name="set"
  26254. abstract="false" native="false" synchronized="true"
  26255. static="false" final="false" visibility="public"
  26256. deprecated="not deprecated">
  26257. <param name="newValue" type="long"/>
  26258. <doc>
  26259. <![CDATA[Set the value
  26260. @param newValue]]>
  26261. </doc>
  26262. </method>
  26263. <method name="get" return="long"
  26264. abstract="false" native="false" synchronized="true"
  26265. static="false" final="false" visibility="public"
  26266. deprecated="not deprecated">
  26267. <doc>
  26268. <![CDATA[Get value
  26269. @return the value last set]]>
  26270. </doc>
  26271. </method>
  26272. <method name="pushMetric"
  26273. abstract="false" native="false" synchronized="true"
  26274. static="false" final="false" visibility="public"
  26275. deprecated="not deprecated">
  26276. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  26277. <doc>
  26278. <![CDATA[Push the metric to the mr.
  26279. The metric is pushed only if it was updated since last push
  26280. Note this does NOT push to JMX
  26281. (JMX gets the info via {@link #get()}
  26282. @param mr]]>
  26283. </doc>
  26284. </method>
  26285. <doc>
  26286. <![CDATA[The MetricsLongValue class is for a metric that is not time varied
  26287. but changes only when it is set.
  26288. Each time its value is set, it is published only *once* at the next update
  26289. call.
  26290. @deprecated in favor of <code>org.apache.hadoop.metrics2</code> usage.]]>
  26291. </doc>
  26292. </class>
  26293. <!-- end class org.apache.hadoop.metrics.util.MetricsLongValue -->
  26294. <!-- start class org.apache.hadoop.metrics.util.MetricsRegistry -->
  26295. <class name="MetricsRegistry" extends="java.lang.Object"
  26296. abstract="false"
  26297. static="false" final="false" visibility="public"
  26298. deprecated="in favor of {@link org.apache.hadoop.metrics2.lib.MetricsRegistry}.">
  26299. <constructor name="MetricsRegistry"
  26300. static="false" final="false" visibility="public"
  26301. deprecated="not deprecated">
  26302. </constructor>
  26303. <method name="size" return="int"
  26304. abstract="false" native="false" synchronized="false"
  26305. static="false" final="false" visibility="public"
  26306. deprecated="not deprecated">
  26307. <doc>
  26308. <![CDATA[@return number of metrics in the registry]]>
  26309. </doc>
  26310. </method>
  26311. <method name="add"
  26312. abstract="false" native="false" synchronized="true"
  26313. static="false" final="false" visibility="public"
  26314. deprecated="not deprecated">
  26315. <param name="metricsName" type="java.lang.String"/>
  26316. <param name="theMetricsObj" type="org.apache.hadoop.metrics.util.MetricsBase"/>
  26317. <doc>
  26318. <![CDATA[Add a new metrics to the registry
  26319. @param metricsName - the name
  26320. @param theMetricsObj - the metrics
  26321. @throws IllegalArgumentException if a name is already registered]]>
  26322. </doc>
  26323. </method>
  26324. <method name="get" return="org.apache.hadoop.metrics.util.MetricsBase"
  26325. abstract="false" native="false" synchronized="true"
  26326. static="false" final="false" visibility="public"
  26327. deprecated="not deprecated">
  26328. <param name="metricsName" type="java.lang.String"/>
  26329. <doc>
  26330. <![CDATA[@param metricsName
  26331. @return the metrics if there is one registered by the supplied name.
  26332. Returns null if none is registered]]>
  26333. </doc>
  26334. </method>
  26335. <method name="getKeyList" return="java.util.Collection"
  26336. abstract="false" native="false" synchronized="true"
  26337. static="false" final="false" visibility="public"
  26338. deprecated="not deprecated">
  26339. <doc>
  26340. <![CDATA[@return the list of metrics names]]>
  26341. </doc>
  26342. </method>
  26343. <method name="getMetricsList" return="java.util.Collection"
  26344. abstract="false" native="false" synchronized="true"
  26345. static="false" final="false" visibility="public"
  26346. deprecated="not deprecated">
  26347. <doc>
  26348. <![CDATA[@return the list of metrics]]>
  26349. </doc>
  26350. </method>
  26351. <doc>
  26352. <![CDATA[This is the registry for metrics.
  26353. Related set of metrics should be declared in a holding class and registered
  26354. in a registry for those metrics which is also stored in the the holding class.
  26355. @deprecated in favor of {@link org.apache.hadoop.metrics2.lib.MetricsRegistry}.]]>
  26356. </doc>
  26357. </class>
  26358. <!-- end class org.apache.hadoop.metrics.util.MetricsRegistry -->
  26359. <!-- start class org.apache.hadoop.metrics.util.MetricsTimeVaryingInt -->
  26360. <class name="MetricsTimeVaryingInt" extends="org.apache.hadoop.metrics.util.MetricsBase"
  26361. abstract="false"
  26362. static="false" final="false" visibility="public"
  26363. deprecated="in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableCounterInt}.">
  26364. <constructor name="MetricsTimeVaryingInt" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String"
  26365. static="false" final="false" visibility="public"
  26366. deprecated="not deprecated">
  26367. <doc>
  26368. <![CDATA[Constructor - create a new metric
  26369. @param nam the name of the metrics to be used to publish the metric
  26370. @param registry - where the metrics object will be registered
  26371. @param description - the description]]>
  26372. </doc>
  26373. </constructor>
  26374. <constructor name="MetricsTimeVaryingInt" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry"
  26375. static="false" final="false" visibility="public"
  26376. deprecated="not deprecated">
  26377. <doc>
  26378. <![CDATA[Constructor - create a new metric
  26379. @param nam the name of the metrics to be used to publish the metric
  26380. @param registry - where the metrics object will be registered
  26381. A description of {@link #NO_DESCRIPTION} is used]]>
  26382. </doc>
  26383. </constructor>
  26384. <method name="inc"
  26385. abstract="false" native="false" synchronized="true"
  26386. static="false" final="false" visibility="public"
  26387. deprecated="not deprecated">
  26388. <param name="incr" type="int"/>
  26389. <doc>
  26390. <![CDATA[Inc metrics for incr vlaue
  26391. @param incr - number of operations]]>
  26392. </doc>
  26393. </method>
  26394. <method name="inc"
  26395. abstract="false" native="false" synchronized="true"
  26396. static="false" final="false" visibility="public"
  26397. deprecated="not deprecated">
  26398. <doc>
  26399. <![CDATA[Inc metrics by one]]>
  26400. </doc>
  26401. </method>
  26402. <method name="pushMetric"
  26403. abstract="false" native="false" synchronized="true"
  26404. static="false" final="false" visibility="public"
  26405. deprecated="not deprecated">
  26406. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  26407. <doc>
  26408. <![CDATA[Push the delta metrics to the mr.
  26409. The delta is since the last push/interval.
  26410. Note this does NOT push to JMX
  26411. (JMX gets the info via {@link #previousIntervalValue}
  26412. @param mr]]>
  26413. </doc>
  26414. </method>
  26415. <method name="getPreviousIntervalValue" return="int"
  26416. abstract="false" native="false" synchronized="true"
  26417. static="false" final="false" visibility="public"
  26418. deprecated="not deprecated">
  26419. <doc>
  26420. <![CDATA[The Value at the Previous interval
  26421. @return prev interval value]]>
  26422. </doc>
  26423. </method>
  26424. <method name="getCurrentIntervalValue" return="int"
  26425. abstract="false" native="false" synchronized="true"
  26426. static="false" final="false" visibility="public"
  26427. deprecated="not deprecated">
  26428. <doc>
  26429. <![CDATA[The Value at the current interval
  26430. @return prev interval value]]>
  26431. </doc>
  26432. </method>
  26433. <doc>
  26434. <![CDATA[The MetricsTimeVaryingInt class is for a metric that naturally
  26435. varies over time (e.g. number of files created). The metrics is accumulated
  26436. over an interval (set in the metrics config file); the metrics is
  26437. published at the end of each interval and then
  26438. reset to zero. Hence the counter has the value in the current interval.
  26439. Note if one wants a time associated with the metric then use
  26440. @see org.apache.hadoop.metrics.util.MetricsTimeVaryingRate
  26441. @deprecated in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableCounterInt}.]]>
  26442. </doc>
  26443. </class>
  26444. <!-- end class org.apache.hadoop.metrics.util.MetricsTimeVaryingInt -->
  26445. <!-- start class org.apache.hadoop.metrics.util.MetricsTimeVaryingLong -->
  26446. <class name="MetricsTimeVaryingLong" extends="org.apache.hadoop.metrics.util.MetricsBase"
  26447. abstract="false"
  26448. static="false" final="false" visibility="public"
  26449. deprecated="in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableCounterLong}.">
  26450. <constructor name="MetricsTimeVaryingLong" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String"
  26451. static="false" final="false" visibility="public"
  26452. deprecated="not deprecated">
  26453. <doc>
  26454. <![CDATA[Constructor - create a new metric
  26455. @param nam the name of the metrics to be used to publish the metric
  26456. @param registry - where the metrics object will be registered]]>
  26457. </doc>
  26458. </constructor>
  26459. <constructor name="MetricsTimeVaryingLong" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry"
  26460. static="false" final="false" visibility="public"
  26461. deprecated="not deprecated">
  26462. <doc>
  26463. <![CDATA[Constructor - create a new metric
  26464. @param nam the name of the metrics to be used to publish the metric
  26465. @param registry - where the metrics object will be registered
  26466. A description of {@link #NO_DESCRIPTION} is used]]>
  26467. </doc>
  26468. </constructor>
  26469. <method name="inc"
  26470. abstract="false" native="false" synchronized="true"
  26471. static="false" final="false" visibility="public"
  26472. deprecated="not deprecated">
  26473. <param name="incr" type="long"/>
  26474. <doc>
  26475. <![CDATA[Inc metrics for incr vlaue
  26476. @param incr - number of operations]]>
  26477. </doc>
  26478. </method>
  26479. <method name="inc"
  26480. abstract="false" native="false" synchronized="true"
  26481. static="false" final="false" visibility="public"
  26482. deprecated="not deprecated">
  26483. <doc>
  26484. <![CDATA[Inc metrics by one]]>
  26485. </doc>
  26486. </method>
  26487. <method name="pushMetric"
  26488. abstract="false" native="false" synchronized="true"
  26489. static="false" final="false" visibility="public"
  26490. deprecated="not deprecated">
  26491. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  26492. <doc>
  26493. <![CDATA[Push the delta metrics to the mr.
  26494. The delta is since the last push/interval.
  26495. Note this does NOT push to JMX
  26496. (JMX gets the info via {@link #previousIntervalValue}
  26497. @param mr]]>
  26498. </doc>
  26499. </method>
  26500. <method name="getPreviousIntervalValue" return="long"
  26501. abstract="false" native="false" synchronized="true"
  26502. static="false" final="false" visibility="public"
  26503. deprecated="not deprecated">
  26504. <doc>
  26505. <![CDATA[The Value at the Previous interval
  26506. @return prev interval value]]>
  26507. </doc>
  26508. </method>
  26509. <method name="getCurrentIntervalValue" return="long"
  26510. abstract="false" native="false" synchronized="true"
  26511. static="false" final="false" visibility="public"
  26512. deprecated="not deprecated">
  26513. <doc>
  26514. <![CDATA[The Value at the current interval
  26515. @return prev interval value]]>
  26516. </doc>
  26517. </method>
  26518. <doc>
  26519. <![CDATA[The MetricsTimeVaryingLong class is for a metric that naturally
  26520. varies over time (e.g. number of files created). The metrics is accumulated
  26521. over an interval (set in the metrics config file); the metrics is
  26522. published at the end of each interval and then
  26523. reset to zero. Hence the counter has the value in the current interval.
  26524. Note if one wants a time associated with the metric then use
  26525. @see org.apache.hadoop.metrics.util.MetricsTimeVaryingRate
  26526. @deprecated in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableCounterLong}.]]>
  26527. </doc>
  26528. </class>
  26529. <!-- end class org.apache.hadoop.metrics.util.MetricsTimeVaryingLong -->
  26530. <!-- start class org.apache.hadoop.metrics.util.MetricsTimeVaryingRate -->
  26531. <class name="MetricsTimeVaryingRate" extends="org.apache.hadoop.metrics.util.MetricsBase"
  26532. abstract="false"
  26533. static="false" final="false" visibility="public"
  26534. deprecated="in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableGauge}.">
  26535. <constructor name="MetricsTimeVaryingRate" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String"
  26536. static="false" final="false" visibility="public"
  26537. deprecated="not deprecated">
  26538. <doc>
  26539. <![CDATA[Constructor - create a new metric
  26540. @param nam the name of the metrics to be used to publish the metric
  26541. @param registry - where the metrics object will be registered]]>
  26542. </doc>
  26543. </constructor>
  26544. <constructor name="MetricsTimeVaryingRate" type="java.lang.String, org.apache.hadoop.metrics.util.MetricsRegistry"
  26545. static="false" final="false" visibility="public"
  26546. deprecated="not deprecated">
  26547. <doc>
  26548. <![CDATA[Constructor - create a new metric
  26549. @param nam the name of the metrics to be used to publish the metric
  26550. @param registry - where the metrics object will be registered
  26551. A description of {@link #NO_DESCRIPTION} is used]]>
  26552. </doc>
  26553. </constructor>
  26554. <method name="inc"
  26555. abstract="false" native="false" synchronized="true"
  26556. static="false" final="false" visibility="public"
  26557. deprecated="not deprecated">
  26558. <param name="numOps" type="int"/>
  26559. <param name="time" type="long"/>
  26560. <doc>
  26561. <![CDATA[Increment the metrics for numOps operations
  26562. @param numOps - number of operations
  26563. @param time - time for numOps operations]]>
  26564. </doc>
  26565. </method>
  26566. <method name="inc"
  26567. abstract="false" native="false" synchronized="true"
  26568. static="false" final="false" visibility="public"
  26569. deprecated="not deprecated">
  26570. <param name="time" type="long"/>
  26571. <doc>
  26572. <![CDATA[Increment the metrics for one operation
  26573. @param time for one operation]]>
  26574. </doc>
  26575. </method>
  26576. <method name="pushMetric"
  26577. abstract="false" native="false" synchronized="true"
  26578. static="false" final="false" visibility="public"
  26579. deprecated="not deprecated">
  26580. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  26581. <doc>
  26582. <![CDATA[Push the delta metrics to the mr.
  26583. The delta is since the last push/interval.
  26584. Note this does NOT push to JMX
  26585. (JMX gets the info via {@link #getPreviousIntervalAverageTime()} and
  26586. {@link #getPreviousIntervalNumOps()}
  26587. @param mr]]>
  26588. </doc>
  26589. </method>
  26590. <method name="getPreviousIntervalNumOps" return="int"
  26591. abstract="false" native="false" synchronized="true"
  26592. static="false" final="false" visibility="public"
  26593. deprecated="not deprecated">
  26594. <doc>
  26595. <![CDATA[The number of operations in the previous interval
  26596. @return - ops in prev interval]]>
  26597. </doc>
  26598. </method>
  26599. <method name="getPreviousIntervalAverageTime" return="long"
  26600. abstract="false" native="false" synchronized="true"
  26601. static="false" final="false" visibility="public"
  26602. deprecated="not deprecated">
  26603. <doc>
  26604. <![CDATA[The average rate of an operation in the previous interval
  26605. @return - the average rate.]]>
  26606. </doc>
  26607. </method>
  26608. <method name="getMinTime" return="long"
  26609. abstract="false" native="false" synchronized="true"
  26610. static="false" final="false" visibility="public"
  26611. deprecated="not deprecated">
  26612. <doc>
  26613. <![CDATA[The min time for a single operation since the last reset
  26614. {@link #resetMinMax()}
  26615. @return min time for an operation]]>
  26616. </doc>
  26617. </method>
  26618. <method name="getMaxTime" return="long"
  26619. abstract="false" native="false" synchronized="true"
  26620. static="false" final="false" visibility="public"
  26621. deprecated="not deprecated">
  26622. <doc>
  26623. <![CDATA[The max time for a single operation since the last reset
  26624. {@link #resetMinMax()}
  26625. @return max time for an operation]]>
  26626. </doc>
  26627. </method>
  26628. <method name="resetMinMax"
  26629. abstract="false" native="false" synchronized="true"
  26630. static="false" final="false" visibility="public"
  26631. deprecated="not deprecated">
  26632. <doc>
  26633. <![CDATA[Reset the min max values]]>
  26634. </doc>
  26635. </method>
  26636. <doc>
  26637. <![CDATA[The MetricsTimeVaryingRate class is for a rate based metric that
  26638. naturally varies over time (e.g. time taken to create a file).
  26639. The rate is averaged at each interval heart beat (the interval
  26640. is set in the metrics config file).
  26641. This class also keeps track of the min and max rates along with
  26642. a method to reset the min-max.
  26643. @deprecated in favor of {@link org.apache.hadoop.metrics2.lib.MetricMutableGauge}.]]>
  26644. </doc>
  26645. </class>
  26646. <!-- end class org.apache.hadoop.metrics.util.MetricsTimeVaryingRate -->
  26647. </package>
  26648. <package name="org.apache.hadoop.metrics2">
  26649. <!-- start class org.apache.hadoop.metrics2.Metric -->
  26650. <class name="Metric" extends="java.lang.Object"
  26651. abstract="true"
  26652. static="false" final="false" visibility="public"
  26653. deprecated="not deprecated">
  26654. <constructor name="Metric" type="java.lang.String"
  26655. static="false" final="false" visibility="public"
  26656. deprecated="not deprecated">
  26657. <doc>
  26658. <![CDATA[Construct the metric with name only
  26659. @param name of the metric]]>
  26660. </doc>
  26661. </constructor>
  26662. <constructor name="Metric" type="java.lang.String, java.lang.String"
  26663. static="false" final="false" visibility="public"
  26664. deprecated="not deprecated">
  26665. <doc>
  26666. <![CDATA[Construct the metric with a name and a description
  26667. @param name of the metric
  26668. @param desc description of the metric]]>
  26669. </doc>
  26670. </constructor>
  26671. <method name="name" return="java.lang.String"
  26672. abstract="false" native="false" synchronized="false"
  26673. static="false" final="false" visibility="public"
  26674. deprecated="not deprecated">
  26675. <doc>
  26676. <![CDATA[Get the name of the metric
  26677. @return the name]]>
  26678. </doc>
  26679. </method>
  26680. <method name="description" return="java.lang.String"
  26681. abstract="false" native="false" synchronized="false"
  26682. static="false" final="false" visibility="public"
  26683. deprecated="not deprecated">
  26684. <doc>
  26685. <![CDATA[Get the description of the metric
  26686. @return the description]]>
  26687. </doc>
  26688. </method>
  26689. <method name="value" return="java.lang.Number"
  26690. abstract="true" native="false" synchronized="false"
  26691. static="false" final="false" visibility="public"
  26692. deprecated="not deprecated">
  26693. <doc>
  26694. <![CDATA[Get the value of the metric
  26695. @return the value of the metric]]>
  26696. </doc>
  26697. </method>
  26698. <method name="visit"
  26699. abstract="true" native="false" synchronized="false"
  26700. static="false" final="false" visibility="public"
  26701. deprecated="not deprecated">
  26702. <param name="visitor" type="org.apache.hadoop.metrics2.MetricsVisitor"/>
  26703. <doc>
  26704. <![CDATA[Accept a visitor interface
  26705. @param visitor of the metric]]>
  26706. </doc>
  26707. </method>
  26708. <method name="equals" return="boolean"
  26709. abstract="false" native="false" synchronized="false"
  26710. static="false" final="false" visibility="public"
  26711. deprecated="not deprecated">
  26712. <param name="obj" type="java.lang.Object"/>
  26713. </method>
  26714. <method name="hashCode" return="int"
  26715. abstract="false" native="false" synchronized="false"
  26716. static="false" final="false" visibility="public"
  26717. deprecated="not deprecated">
  26718. </method>
  26719. <method name="toString" return="java.lang.String"
  26720. abstract="false" native="false" synchronized="false"
  26721. static="false" final="false" visibility="public"
  26722. deprecated="not deprecated">
  26723. </method>
  26724. <field name="NO_DESCRIPTION" type="java.lang.String"
  26725. transient="false" volatile="false"
  26726. static="true" final="true" visibility="public"
  26727. deprecated="not deprecated">
  26728. </field>
  26729. <doc>
  26730. <![CDATA[The immutable metric]]>
  26731. </doc>
  26732. </class>
  26733. <!-- end class org.apache.hadoop.metrics2.Metric -->
  26734. <!-- start class org.apache.hadoop.metrics2.MetricCounter -->
  26735. <class name="MetricCounter" extends="org.apache.hadoop.metrics2.Metric"
  26736. abstract="true"
  26737. static="false" final="false" visibility="public"
  26738. deprecated="not deprecated">
  26739. <constructor name="MetricCounter" type="java.lang.String, java.lang.String"
  26740. static="false" final="false" visibility="public"
  26741. deprecated="not deprecated">
  26742. <doc>
  26743. <![CDATA[Construct a counter metric
  26744. @param name of the metric
  26745. @param description of the metric]]>
  26746. </doc>
  26747. </constructor>
  26748. <method name="value" return="java.lang.Number"
  26749. abstract="true" native="false" synchronized="false"
  26750. static="false" final="false" visibility="public"
  26751. deprecated="not deprecated">
  26752. </method>
  26753. <doc>
  26754. <![CDATA[A generic immutable counter metric type
  26755. @param <T> value type of the metric]]>
  26756. </doc>
  26757. </class>
  26758. <!-- end class org.apache.hadoop.metrics2.MetricCounter -->
  26759. <!-- start class org.apache.hadoop.metrics2.MetricGauge -->
  26760. <class name="MetricGauge" extends="org.apache.hadoop.metrics2.Metric"
  26761. abstract="true"
  26762. static="false" final="false" visibility="public"
  26763. deprecated="not deprecated">
  26764. <constructor name="MetricGauge" type="java.lang.String, java.lang.String"
  26765. static="false" final="false" visibility="public"
  26766. deprecated="not deprecated">
  26767. <doc>
  26768. <![CDATA[Construct a gauge metric
  26769. @param name of the metric
  26770. @param description of the metric]]>
  26771. </doc>
  26772. </constructor>
  26773. <method name="value" return="java.lang.Number"
  26774. abstract="true" native="false" synchronized="false"
  26775. static="false" final="false" visibility="public"
  26776. deprecated="not deprecated">
  26777. </method>
  26778. <doc>
  26779. <![CDATA[A generic immutable gauge metric
  26780. @param <T> value type of the metric]]>
  26781. </doc>
  26782. </class>
  26783. <!-- end class org.apache.hadoop.metrics2.MetricGauge -->
  26784. <!-- start interface org.apache.hadoop.metrics2.MetricsBuilder -->
  26785. <interface name="MetricsBuilder" abstract="true"
  26786. static="false" final="false" visibility="public"
  26787. deprecated="not deprecated">
  26788. <method name="addRecord" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  26789. abstract="false" native="false" synchronized="false"
  26790. static="false" final="false" visibility="public"
  26791. deprecated="not deprecated">
  26792. <param name="name" type="java.lang.String"/>
  26793. <doc>
  26794. <![CDATA[Add a metrics record
  26795. @param name of the record
  26796. @return a metrics record builder for the record]]>
  26797. </doc>
  26798. </method>
  26799. <doc>
  26800. <![CDATA[The metrics builder interface]]>
  26801. </doc>
  26802. </interface>
  26803. <!-- end interface org.apache.hadoop.metrics2.MetricsBuilder -->
  26804. <!-- start class org.apache.hadoop.metrics2.MetricsException -->
  26805. <class name="MetricsException" extends="java.lang.RuntimeException"
  26806. abstract="false"
  26807. static="false" final="false" visibility="public"
  26808. deprecated="not deprecated">
  26809. <constructor name="MetricsException" type="java.lang.String"
  26810. static="false" final="false" visibility="public"
  26811. deprecated="not deprecated">
  26812. <doc>
  26813. <![CDATA[Construct the exception with a message
  26814. @param message for the exception]]>
  26815. </doc>
  26816. </constructor>
  26817. <constructor name="MetricsException" type="java.lang.String, java.lang.Throwable"
  26818. static="false" final="false" visibility="public"
  26819. deprecated="not deprecated">
  26820. <doc>
  26821. <![CDATA[Construct the exception with a message and a cause
  26822. @param message for the exception
  26823. @param cause of the exception]]>
  26824. </doc>
  26825. </constructor>
  26826. <constructor name="MetricsException" type="java.lang.Throwable"
  26827. static="false" final="false" visibility="public"
  26828. deprecated="not deprecated">
  26829. <doc>
  26830. <![CDATA[Construct the exception with a cause
  26831. @param cause of the exception]]>
  26832. </doc>
  26833. </constructor>
  26834. <doc>
  26835. <![CDATA[A general metrics exception wrapper]]>
  26836. </doc>
  26837. </class>
  26838. <!-- end class org.apache.hadoop.metrics2.MetricsException -->
  26839. <!-- start class org.apache.hadoop.metrics2.MetricsFilter -->
  26840. <class name="MetricsFilter" extends="java.lang.Object"
  26841. abstract="true"
  26842. static="false" final="false" visibility="public"
  26843. deprecated="not deprecated">
  26844. <implements name="org.apache.hadoop.metrics2.MetricsPlugin"/>
  26845. <constructor name="MetricsFilter"
  26846. static="false" final="false" visibility="public"
  26847. deprecated="not deprecated">
  26848. </constructor>
  26849. <method name="init"
  26850. abstract="true" native="false" synchronized="false"
  26851. static="false" final="false" visibility="public"
  26852. deprecated="not deprecated">
  26853. <param name="conf" type="org.apache.commons.configuration.SubsetConfiguration"/>
  26854. </method>
  26855. <method name="accepts" return="boolean"
  26856. abstract="true" native="false" synchronized="false"
  26857. static="false" final="false" visibility="public"
  26858. deprecated="not deprecated">
  26859. <param name="name" type="java.lang.String"/>
  26860. <doc>
  26861. <![CDATA[Whether to accept the name
  26862. @param name to filter on
  26863. @return true to accept; false otherwise.]]>
  26864. </doc>
  26865. </method>
  26866. <method name="accepts" return="boolean"
  26867. abstract="true" native="false" synchronized="false"
  26868. static="false" final="false" visibility="public"
  26869. deprecated="not deprecated">
  26870. <param name="tag" type="org.apache.hadoop.metrics2.MetricsTag"/>
  26871. <doc>
  26872. <![CDATA[Whether to accept the tag
  26873. @param tag to filter on
  26874. @return true to accept; false otherwise]]>
  26875. </doc>
  26876. </method>
  26877. <method name="accepts" return="boolean"
  26878. abstract="true" native="false" synchronized="false"
  26879. static="false" final="false" visibility="public"
  26880. deprecated="not deprecated">
  26881. <param name="tags" type="java.lang.Iterable"/>
  26882. <doc>
  26883. <![CDATA[Whether to accept the tags
  26884. @param tags to filter on
  26885. @return true to accept; false otherwise]]>
  26886. </doc>
  26887. </method>
  26888. <method name="accepts" return="boolean"
  26889. abstract="false" native="false" synchronized="false"
  26890. static="false" final="false" visibility="public"
  26891. deprecated="not deprecated">
  26892. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  26893. <doc>
  26894. <![CDATA[Whether to accept the record
  26895. @param record to filter on
  26896. @return true to accept; false otherwise.]]>
  26897. </doc>
  26898. </method>
  26899. <doc>
  26900. <![CDATA[The metrics filter interface]]>
  26901. </doc>
  26902. </class>
  26903. <!-- end class org.apache.hadoop.metrics2.MetricsFilter -->
  26904. <!-- start interface org.apache.hadoop.metrics2.MetricsPlugin -->
  26905. <interface name="MetricsPlugin" abstract="true"
  26906. static="false" final="false" visibility="public"
  26907. deprecated="not deprecated">
  26908. <method name="init"
  26909. abstract="false" native="false" synchronized="false"
  26910. static="false" final="false" visibility="public"
  26911. deprecated="not deprecated">
  26912. <param name="conf" type="org.apache.commons.configuration.SubsetConfiguration"/>
  26913. <doc>
  26914. <![CDATA[Initialize the plugin
  26915. @param conf the configuration object for the plugin]]>
  26916. </doc>
  26917. </method>
  26918. <doc>
  26919. <![CDATA[A fairly generic plugin interface]]>
  26920. </doc>
  26921. </interface>
  26922. <!-- end interface org.apache.hadoop.metrics2.MetricsPlugin -->
  26923. <!-- start interface org.apache.hadoop.metrics2.MetricsRecord -->
  26924. <interface name="MetricsRecord" abstract="true"
  26925. static="false" final="false" visibility="public"
  26926. deprecated="not deprecated">
  26927. <method name="timestamp" return="long"
  26928. abstract="false" native="false" synchronized="false"
  26929. static="false" final="false" visibility="public"
  26930. deprecated="not deprecated">
  26931. <doc>
  26932. <![CDATA[Get the timestamp of the metrics
  26933. @return the timestamp]]>
  26934. </doc>
  26935. </method>
  26936. <method name="name" return="java.lang.String"
  26937. abstract="false" native="false" synchronized="false"
  26938. static="false" final="false" visibility="public"
  26939. deprecated="not deprecated">
  26940. <doc>
  26941. <![CDATA[Get the record name of the metrics
  26942. @return the record name]]>
  26943. </doc>
  26944. </method>
  26945. <method name="context" return="java.lang.String"
  26946. abstract="false" native="false" synchronized="false"
  26947. static="false" final="false" visibility="public"
  26948. deprecated="not deprecated">
  26949. <doc>
  26950. <![CDATA[Get the context name of the metrics
  26951. @return the context name]]>
  26952. </doc>
  26953. </method>
  26954. <method name="tags" return="java.lang.Iterable"
  26955. abstract="false" native="false" synchronized="false"
  26956. static="false" final="false" visibility="public"
  26957. deprecated="not deprecated">
  26958. <doc>
  26959. <![CDATA[Get the tags of the record
  26960. @return the tags]]>
  26961. </doc>
  26962. </method>
  26963. <method name="metrics" return="java.lang.Iterable"
  26964. abstract="false" native="false" synchronized="false"
  26965. static="false" final="false" visibility="public"
  26966. deprecated="not deprecated">
  26967. <doc>
  26968. <![CDATA[Get the metrics of the record
  26969. @return the metrics]]>
  26970. </doc>
  26971. </method>
  26972. <doc>
  26973. <![CDATA[An immutable snapshot of metrics with a timestamp]]>
  26974. </doc>
  26975. </interface>
  26976. <!-- end interface org.apache.hadoop.metrics2.MetricsRecord -->
  26977. <!-- start class org.apache.hadoop.metrics2.MetricsRecordBuilder -->
  26978. <class name="MetricsRecordBuilder" extends="java.lang.Object"
  26979. abstract="true"
  26980. static="false" final="false" visibility="public"
  26981. deprecated="not deprecated">
  26982. <constructor name="MetricsRecordBuilder"
  26983. static="false" final="false" visibility="public"
  26984. deprecated="not deprecated">
  26985. </constructor>
  26986. <method name="tag" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  26987. abstract="true" native="false" synchronized="false"
  26988. static="false" final="false" visibility="public"
  26989. deprecated="not deprecated">
  26990. <param name="name" type="java.lang.String"/>
  26991. <param name="description" type="java.lang.String"/>
  26992. <param name="value" type="java.lang.String"/>
  26993. <doc>
  26994. <![CDATA[Add a metrics tag
  26995. @param name of the tag
  26996. @param description of the tag
  26997. @param value of the tag
  26998. @return self]]>
  26999. </doc>
  27000. </method>
  27001. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  27002. abstract="true" native="false" synchronized="false"
  27003. static="false" final="false" visibility="public"
  27004. deprecated="not deprecated">
  27005. <param name="tag" type="org.apache.hadoop.metrics2.MetricsTag"/>
  27006. <doc>
  27007. <![CDATA[Add an immutable metrics tag object
  27008. @param tag a pre-made tag object (potentially save an object construction)
  27009. @return self]]>
  27010. </doc>
  27011. </method>
  27012. <method name="setContext" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  27013. abstract="true" native="false" synchronized="false"
  27014. static="false" final="false" visibility="public"
  27015. deprecated="not deprecated">
  27016. <param name="value" type="java.lang.String"/>
  27017. <doc>
  27018. <![CDATA[Set the context tag
  27019. @param value of the context
  27020. @return self]]>
  27021. </doc>
  27022. </method>
  27023. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  27024. abstract="true" native="false" synchronized="false"
  27025. static="false" final="false" visibility="public"
  27026. deprecated="not deprecated">
  27027. <param name="name" type="java.lang.String"/>
  27028. <param name="description" type="java.lang.String"/>
  27029. <param name="value" type="int"/>
  27030. <doc>
  27031. <![CDATA[Add an int counter metric
  27032. @param name of the metric
  27033. @param description of the metric
  27034. @param value of the metric
  27035. @return self]]>
  27036. </doc>
  27037. </method>
  27038. <method name="addCounter" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  27039. abstract="true" native="false" synchronized="false"
  27040. static="false" final="false" visibility="public"
  27041. deprecated="not deprecated">
  27042. <param name="name" type="java.lang.String"/>
  27043. <param name="description" type="java.lang.String"/>
  27044. <param name="value" type="long"/>
  27045. <doc>
  27046. <![CDATA[Add an long counter metric
  27047. @param name of the metric
  27048. @param description of the metric
  27049. @param value of the metric
  27050. @return self]]>
  27051. </doc>
  27052. </method>
  27053. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  27054. abstract="true" native="false" synchronized="false"
  27055. static="false" final="false" visibility="public"
  27056. deprecated="not deprecated">
  27057. <param name="name" type="java.lang.String"/>
  27058. <param name="description" type="java.lang.String"/>
  27059. <param name="value" type="int"/>
  27060. <doc>
  27061. <![CDATA[Add a int gauge metric
  27062. @param name of the metric
  27063. @param description of the metric
  27064. @param value of the metric
  27065. @return self]]>
  27066. </doc>
  27067. </method>
  27068. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  27069. abstract="true" native="false" synchronized="false"
  27070. static="false" final="false" visibility="public"
  27071. deprecated="not deprecated">
  27072. <param name="name" type="java.lang.String"/>
  27073. <param name="description" type="java.lang.String"/>
  27074. <param name="value" type="long"/>
  27075. <doc>
  27076. <![CDATA[Add a long gauge metric
  27077. @param name of the metric
  27078. @param description of the metric
  27079. @param value of the metric
  27080. @return self]]>
  27081. </doc>
  27082. </method>
  27083. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  27084. abstract="true" native="false" synchronized="false"
  27085. static="false" final="false" visibility="public"
  27086. deprecated="not deprecated">
  27087. <param name="name" type="java.lang.String"/>
  27088. <param name="description" type="java.lang.String"/>
  27089. <param name="value" type="float"/>
  27090. <doc>
  27091. <![CDATA[Add a float gauge metric
  27092. @param name of the metric
  27093. @param description of the metric
  27094. @param value of the metric
  27095. @return self]]>
  27096. </doc>
  27097. </method>
  27098. <method name="addGauge" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  27099. abstract="true" native="false" synchronized="false"
  27100. static="false" final="false" visibility="public"
  27101. deprecated="not deprecated">
  27102. <param name="name" type="java.lang.String"/>
  27103. <param name="description" type="java.lang.String"/>
  27104. <param name="value" type="double"/>
  27105. <doc>
  27106. <![CDATA[Add a double gauge metric
  27107. @param name of the metric
  27108. @param description of the metric
  27109. @param value of the metric
  27110. @return self]]>
  27111. </doc>
  27112. </method>
  27113. <method name="add" return="org.apache.hadoop.metrics2.MetricsRecordBuilder"
  27114. abstract="true" native="false" synchronized="false"
  27115. static="false" final="false" visibility="public"
  27116. deprecated="not deprecated">
  27117. <param name="metric" type="org.apache.hadoop.metrics2.Metric"/>
  27118. <doc>
  27119. <![CDATA[Add a pre-made immutable metric object
  27120. @param metric the pre-made metric to save an object construction
  27121. @return self]]>
  27122. </doc>
  27123. </method>
  27124. <doc>
  27125. <![CDATA[The metrics record builder interface]]>
  27126. </doc>
  27127. </class>
  27128. <!-- end class org.apache.hadoop.metrics2.MetricsRecordBuilder -->
  27129. <!-- start interface org.apache.hadoop.metrics2.MetricsSink -->
  27130. <interface name="MetricsSink" abstract="true"
  27131. static="false" final="false" visibility="public"
  27132. deprecated="not deprecated">
  27133. <implements name="org.apache.hadoop.metrics2.MetricsPlugin"/>
  27134. <method name="putMetrics"
  27135. abstract="false" native="false" synchronized="false"
  27136. static="false" final="false" visibility="public"
  27137. deprecated="not deprecated">
  27138. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  27139. <doc>
  27140. <![CDATA[Put a metrics record in the sink
  27141. @param record the record to put]]>
  27142. </doc>
  27143. </method>
  27144. <method name="flush"
  27145. abstract="false" native="false" synchronized="false"
  27146. static="false" final="false" visibility="public"
  27147. deprecated="not deprecated">
  27148. <doc>
  27149. <![CDATA[Flush any buffered metrics]]>
  27150. </doc>
  27151. </method>
  27152. <doc>
  27153. <![CDATA[The metrics sink interface]]>
  27154. </doc>
  27155. </interface>
  27156. <!-- end interface org.apache.hadoop.metrics2.MetricsSink -->
  27157. <!-- start interface org.apache.hadoop.metrics2.MetricsSource -->
  27158. <interface name="MetricsSource" abstract="true"
  27159. static="false" final="false" visibility="public"
  27160. deprecated="not deprecated">
  27161. <method name="getMetrics"
  27162. abstract="false" native="false" synchronized="false"
  27163. static="false" final="false" visibility="public"
  27164. deprecated="not deprecated">
  27165. <param name="builder" type="org.apache.hadoop.metrics2.MetricsBuilder"/>
  27166. <param name="all" type="boolean"/>
  27167. <doc>
  27168. <![CDATA[Get metrics from the source
  27169. @param builder to contain the resulting metrics snapshot
  27170. @param all if true, return all metrics even if unchanged.]]>
  27171. </doc>
  27172. </method>
  27173. <doc>
  27174. <![CDATA[The metrics source interface]]>
  27175. </doc>
  27176. </interface>
  27177. <!-- end interface org.apache.hadoop.metrics2.MetricsSource -->
  27178. <!-- start interface org.apache.hadoop.metrics2.MetricsSystem -->
  27179. <interface name="MetricsSystem" abstract="true"
  27180. static="false" final="false" visibility="public"
  27181. deprecated="not deprecated">
  27182. <implements name="org.apache.hadoop.metrics2.MetricsSystemMXBean"/>
  27183. <method name="register" return="org.apache.hadoop.metrics2.MetricsSource"
  27184. abstract="false" native="false" synchronized="false"
  27185. static="false" final="false" visibility="public"
  27186. deprecated="not deprecated">
  27187. <param name="name" type="java.lang.String"/>
  27188. <param name="desc" type="java.lang.String"/>
  27189. <param name="source" type="org.apache.hadoop.metrics2.MetricsSource"/>
  27190. <doc>
  27191. <![CDATA[Register a metrics source
  27192. @param <T> the type of the source
  27193. @param source to register
  27194. @param name of the source. Must be unique.
  27195. @param desc the description of the source.
  27196. @return the source
  27197. @exception MetricsException]]>
  27198. </doc>
  27199. </method>
  27200. <method name="register" return="org.apache.hadoop.metrics2.MetricsSink"
  27201. abstract="false" native="false" synchronized="false"
  27202. static="false" final="false" visibility="public"
  27203. deprecated="not deprecated">
  27204. <param name="name" type="java.lang.String"/>
  27205. <param name="desc" type="java.lang.String"/>
  27206. <param name="sink" type="org.apache.hadoop.metrics2.MetricsSink"/>
  27207. <doc>
  27208. <![CDATA[Register a metrics sink
  27209. @param <T> the type of the sink
  27210. @param sink to register
  27211. @param name of the sink. Must be unique.
  27212. @param desc the description of the sink
  27213. @return the sink
  27214. @exception MetricsException]]>
  27215. </doc>
  27216. </method>
  27217. <method name="register"
  27218. abstract="false" native="false" synchronized="false"
  27219. static="false" final="false" visibility="public"
  27220. deprecated="not deprecated">
  27221. <param name="callback" type="org.apache.hadoop.metrics2.MetricsSystem.Callback"/>
  27222. <doc>
  27223. <![CDATA[Register a callback interface for JMX events
  27224. @param callback the callback object implementing the MBean interface.]]>
  27225. </doc>
  27226. </method>
  27227. <method name="publishMetricsNow"
  27228. abstract="false" native="false" synchronized="false"
  27229. static="false" final="false" visibility="public"
  27230. deprecated="not deprecated">
  27231. <doc>
  27232. <![CDATA[Requests an immediate publish of all metrics from sources to sinks.
  27233. This is a "soft" request: the expectation is that a best effort will be
  27234. done to synchronously snapshot the metrics from all the sources and put
  27235. them in all the sinks (including flushing the sinks) before returning to
  27236. the caller. If this can't be accomplished in reasonable time it's OK to
  27237. return to the caller before everything is done.]]>
  27238. </doc>
  27239. </method>
  27240. <method name="shutdown"
  27241. abstract="false" native="false" synchronized="false"
  27242. static="false" final="false" visibility="public"
  27243. deprecated="not deprecated">
  27244. <doc>
  27245. <![CDATA[Shutdown the metrics system completely (usually during server shutdown.)
  27246. The MetricsSystemMXBean will be unregistered.]]>
  27247. </doc>
  27248. </method>
  27249. <doc>
  27250. <![CDATA[The metrics system interface]]>
  27251. </doc>
  27252. </interface>
  27253. <!-- end interface org.apache.hadoop.metrics2.MetricsSystem -->
  27254. <!-- start class org.apache.hadoop.metrics2.MetricsSystem.AbstractCallback -->
  27255. <class name="MetricsSystem.AbstractCallback" extends="java.lang.Object"
  27256. abstract="true"
  27257. static="true" final="false" visibility="public"
  27258. deprecated="not deprecated">
  27259. <implements name="org.apache.hadoop.metrics2.MetricsSystem.Callback"/>
  27260. <constructor name="MetricsSystem.AbstractCallback"
  27261. static="false" final="false" visibility="public"
  27262. deprecated="not deprecated">
  27263. </constructor>
  27264. <method name="preStart"
  27265. abstract="false" native="false" synchronized="false"
  27266. static="false" final="false" visibility="public"
  27267. deprecated="not deprecated">
  27268. </method>
  27269. <method name="postStart"
  27270. abstract="false" native="false" synchronized="false"
  27271. static="false" final="false" visibility="public"
  27272. deprecated="not deprecated">
  27273. </method>
  27274. <method name="preStop"
  27275. abstract="false" native="false" synchronized="false"
  27276. static="false" final="false" visibility="public"
  27277. deprecated="not deprecated">
  27278. </method>
  27279. <method name="postStop"
  27280. abstract="false" native="false" synchronized="false"
  27281. static="false" final="false" visibility="public"
  27282. deprecated="not deprecated">
  27283. </method>
  27284. <doc>
  27285. <![CDATA[Convenient abstract class for implementing callback interface]]>
  27286. </doc>
  27287. </class>
  27288. <!-- end class org.apache.hadoop.metrics2.MetricsSystem.AbstractCallback -->
  27289. <!-- start interface org.apache.hadoop.metrics2.MetricsSystem.Callback -->
  27290. <interface name="MetricsSystem.Callback" abstract="true"
  27291. static="true" final="false" visibility="public"
  27292. deprecated="not deprecated">
  27293. <method name="preStart"
  27294. abstract="false" native="false" synchronized="false"
  27295. static="false" final="false" visibility="public"
  27296. deprecated="not deprecated">
  27297. <doc>
  27298. <![CDATA[Called before start()]]>
  27299. </doc>
  27300. </method>
  27301. <method name="postStart"
  27302. abstract="false" native="false" synchronized="false"
  27303. static="false" final="false" visibility="public"
  27304. deprecated="not deprecated">
  27305. <doc>
  27306. <![CDATA[Called after start()]]>
  27307. </doc>
  27308. </method>
  27309. <method name="preStop"
  27310. abstract="false" native="false" synchronized="false"
  27311. static="false" final="false" visibility="public"
  27312. deprecated="not deprecated">
  27313. <doc>
  27314. <![CDATA[Called before stop()]]>
  27315. </doc>
  27316. </method>
  27317. <method name="postStop"
  27318. abstract="false" native="false" synchronized="false"
  27319. static="false" final="false" visibility="public"
  27320. deprecated="not deprecated">
  27321. <doc>
  27322. <![CDATA[Called after stop()]]>
  27323. </doc>
  27324. </method>
  27325. <doc>
  27326. <![CDATA[The metrics system callback interface]]>
  27327. </doc>
  27328. </interface>
  27329. <!-- end interface org.apache.hadoop.metrics2.MetricsSystem.Callback -->
  27330. <!-- start interface org.apache.hadoop.metrics2.MetricsSystemMXBean -->
  27331. <interface name="MetricsSystemMXBean" abstract="true"
  27332. static="false" final="false" visibility="public"
  27333. deprecated="not deprecated">
  27334. <method name="start"
  27335. abstract="false" native="false" synchronized="false"
  27336. static="false" final="false" visibility="public"
  27337. deprecated="not deprecated">
  27338. <doc>
  27339. <![CDATA[Start the metrics system
  27340. @exception MetricsException]]>
  27341. </doc>
  27342. </method>
  27343. <method name="stop"
  27344. abstract="false" native="false" synchronized="false"
  27345. static="false" final="false" visibility="public"
  27346. deprecated="not deprecated">
  27347. <doc>
  27348. <![CDATA[Stop the metrics system
  27349. @exception MetricsException]]>
  27350. </doc>
  27351. </method>
  27352. <method name="refreshMBeans"
  27353. abstract="false" native="false" synchronized="false"
  27354. static="false" final="false" visibility="public"
  27355. deprecated="not deprecated">
  27356. <doc>
  27357. <![CDATA[Force a refresh of MBeans
  27358. @exception MetricsException]]>
  27359. </doc>
  27360. </method>
  27361. <method name="currentConfig" return="java.lang.String"
  27362. abstract="false" native="false" synchronized="false"
  27363. static="false" final="false" visibility="public"
  27364. deprecated="not deprecated">
  27365. <doc>
  27366. <![CDATA[@return the current config
  27367. Note, avoid getConfig, as it'll turn it into an attribute,
  27368. which doesn't support multiple lines in the values.
  27369. @exception MetricsException]]>
  27370. </doc>
  27371. </method>
  27372. <doc>
  27373. <![CDATA[The JMX interface to the metrics system]]>
  27374. </doc>
  27375. </interface>
  27376. <!-- end interface org.apache.hadoop.metrics2.MetricsSystemMXBean -->
  27377. <!-- start class org.apache.hadoop.metrics2.MetricsTag -->
  27378. <class name="MetricsTag" extends="java.lang.Object"
  27379. abstract="false"
  27380. static="false" final="false" visibility="public"
  27381. deprecated="not deprecated">
  27382. <constructor name="MetricsTag" type="java.lang.String, java.lang.String, java.lang.String"
  27383. static="false" final="false" visibility="public"
  27384. deprecated="not deprecated">
  27385. <doc>
  27386. <![CDATA[Construct the tag with name, description and value
  27387. @param name of the tag
  27388. @param description of the tag
  27389. @param value of the tag]]>
  27390. </doc>
  27391. </constructor>
  27392. <method name="name" return="java.lang.String"
  27393. abstract="false" native="false" synchronized="false"
  27394. static="false" final="false" visibility="public"
  27395. deprecated="not deprecated">
  27396. <doc>
  27397. <![CDATA[Get the name of the tag
  27398. @return the name]]>
  27399. </doc>
  27400. </method>
  27401. <method name="description" return="java.lang.String"
  27402. abstract="false" native="false" synchronized="false"
  27403. static="false" final="false" visibility="public"
  27404. deprecated="not deprecated">
  27405. <doc>
  27406. <![CDATA[Get the description of the tag
  27407. @return the description]]>
  27408. </doc>
  27409. </method>
  27410. <method name="value" return="java.lang.String"
  27411. abstract="false" native="false" synchronized="false"
  27412. static="false" final="false" visibility="public"
  27413. deprecated="not deprecated">
  27414. <doc>
  27415. <![CDATA[Get the value of the tag
  27416. @return the value]]>
  27417. </doc>
  27418. </method>
  27419. <method name="equals" return="boolean"
  27420. abstract="false" native="false" synchronized="false"
  27421. static="false" final="false" visibility="public"
  27422. deprecated="not deprecated">
  27423. <param name="obj" type="java.lang.Object"/>
  27424. </method>
  27425. <method name="hashCode" return="int"
  27426. abstract="false" native="false" synchronized="false"
  27427. static="false" final="false" visibility="public"
  27428. deprecated="not deprecated">
  27429. </method>
  27430. <method name="toString" return="java.lang.String"
  27431. abstract="false" native="false" synchronized="false"
  27432. static="false" final="false" visibility="public"
  27433. deprecated="not deprecated">
  27434. </method>
  27435. <doc>
  27436. <![CDATA[Immutable tag for metrics (for grouping on host/queue/username etc.)]]>
  27437. </doc>
  27438. </class>
  27439. <!-- end class org.apache.hadoop.metrics2.MetricsTag -->
  27440. <!-- start interface org.apache.hadoop.metrics2.MetricsVisitor -->
  27441. <interface name="MetricsVisitor" abstract="true"
  27442. static="false" final="false" visibility="public"
  27443. deprecated="not deprecated">
  27444. <method name="gauge"
  27445. abstract="false" native="false" synchronized="false"
  27446. static="false" final="false" visibility="public"
  27447. deprecated="not deprecated">
  27448. <param name="metric" type="org.apache.hadoop.metrics2.MetricGauge"/>
  27449. <param name="value" type="int"/>
  27450. <doc>
  27451. <![CDATA[Callback for int value gauges
  27452. @param metric the metric object
  27453. @param value of the metric]]>
  27454. </doc>
  27455. </method>
  27456. <method name="gauge"
  27457. abstract="false" native="false" synchronized="false"
  27458. static="false" final="false" visibility="public"
  27459. deprecated="not deprecated">
  27460. <param name="metric" type="org.apache.hadoop.metrics2.MetricGauge"/>
  27461. <param name="value" type="long"/>
  27462. <doc>
  27463. <![CDATA[Callback for long value gauges
  27464. @param metric the metric object
  27465. @param value of the metric]]>
  27466. </doc>
  27467. </method>
  27468. <method name="gauge"
  27469. abstract="false" native="false" synchronized="false"
  27470. static="false" final="false" visibility="public"
  27471. deprecated="not deprecated">
  27472. <param name="metric" type="org.apache.hadoop.metrics2.MetricGauge"/>
  27473. <param name="value" type="float"/>
  27474. <doc>
  27475. <![CDATA[Callback for float value gauges
  27476. @param metric the metric object
  27477. @param value of the metric]]>
  27478. </doc>
  27479. </method>
  27480. <method name="gauge"
  27481. abstract="false" native="false" synchronized="false"
  27482. static="false" final="false" visibility="public"
  27483. deprecated="not deprecated">
  27484. <param name="metric" type="org.apache.hadoop.metrics2.MetricGauge"/>
  27485. <param name="value" type="double"/>
  27486. <doc>
  27487. <![CDATA[Callback for double value gauges
  27488. @param metric the metric object
  27489. @param value of the metric]]>
  27490. </doc>
  27491. </method>
  27492. <method name="counter"
  27493. abstract="false" native="false" synchronized="false"
  27494. static="false" final="false" visibility="public"
  27495. deprecated="not deprecated">
  27496. <param name="metric" type="org.apache.hadoop.metrics2.MetricCounter"/>
  27497. <param name="value" type="int"/>
  27498. <doc>
  27499. <![CDATA[Callback for integer value counters
  27500. @param metric the metric object
  27501. @param value of the metric]]>
  27502. </doc>
  27503. </method>
  27504. <method name="counter"
  27505. abstract="false" native="false" synchronized="false"
  27506. static="false" final="false" visibility="public"
  27507. deprecated="not deprecated">
  27508. <param name="metric" type="org.apache.hadoop.metrics2.MetricCounter"/>
  27509. <param name="value" type="long"/>
  27510. <doc>
  27511. <![CDATA[Callback for long value counters
  27512. @param metric the metric object
  27513. @param value of the metric]]>
  27514. </doc>
  27515. </method>
  27516. <doc>
  27517. <![CDATA[A visitor interface for metrics]]>
  27518. </doc>
  27519. </interface>
  27520. <!-- end interface org.apache.hadoop.metrics2.MetricsVisitor -->
  27521. </package>
  27522. <package name="org.apache.hadoop.metrics2.filter">
  27523. <!-- start class org.apache.hadoop.metrics2.filter.GlobFilter -->
  27524. <class name="GlobFilter" extends="org.apache.hadoop.metrics2.filter.AbstractPatternFilter"
  27525. abstract="false"
  27526. static="false" final="false" visibility="public"
  27527. deprecated="not deprecated">
  27528. <constructor name="GlobFilter"
  27529. static="false" final="false" visibility="public"
  27530. deprecated="not deprecated">
  27531. </constructor>
  27532. <method name="compile" return="java.util.regex.Pattern"
  27533. abstract="false" native="false" synchronized="false"
  27534. static="false" final="false" visibility="protected"
  27535. deprecated="not deprecated">
  27536. <param name="s" type="java.lang.String"/>
  27537. </method>
  27538. <doc>
  27539. <![CDATA[A glob pattern filter for metrics]]>
  27540. </doc>
  27541. </class>
  27542. <!-- end class org.apache.hadoop.metrics2.filter.GlobFilter -->
  27543. <!-- start class org.apache.hadoop.metrics2.filter.RegexFilter -->
  27544. <class name="RegexFilter" extends="org.apache.hadoop.metrics2.filter.AbstractPatternFilter"
  27545. abstract="false"
  27546. static="false" final="false" visibility="public"
  27547. deprecated="not deprecated">
  27548. <constructor name="RegexFilter"
  27549. static="false" final="false" visibility="public"
  27550. deprecated="not deprecated">
  27551. </constructor>
  27552. <method name="compile" return="java.util.regex.Pattern"
  27553. abstract="false" native="false" synchronized="false"
  27554. static="false" final="false" visibility="protected"
  27555. deprecated="not deprecated">
  27556. <param name="s" type="java.lang.String"/>
  27557. </method>
  27558. <doc>
  27559. <![CDATA[A regex pattern filter for metrics]]>
  27560. </doc>
  27561. </class>
  27562. <!-- end class org.apache.hadoop.metrics2.filter.RegexFilter -->
  27563. </package>
  27564. <package name="org.apache.hadoop.metrics2.impl">
  27565. <!-- start class org.apache.hadoop.metrics2.impl.MetricsConfigException -->
  27566. <class name="MetricsConfigException" extends="org.apache.hadoop.metrics2.MetricsException"
  27567. abstract="false"
  27568. static="false" final="false" visibility="public"
  27569. deprecated="not deprecated">
  27570. <doc>
  27571. <![CDATA[The metrics configuration runtime exception]]>
  27572. </doc>
  27573. </class>
  27574. <!-- end class org.apache.hadoop.metrics2.impl.MetricsConfigException -->
  27575. <!-- start class org.apache.hadoop.metrics2.impl.MetricsRecordImpl -->
  27576. <class name="MetricsRecordImpl" extends="java.lang.Object"
  27577. abstract="false"
  27578. static="false" final="false" visibility="public"
  27579. deprecated="not deprecated">
  27580. <implements name="org.apache.hadoop.metrics2.MetricsRecord"/>
  27581. <constructor name="MetricsRecordImpl" type="java.lang.String, long, java.lang.Iterable, java.lang.Iterable"
  27582. static="false" final="false" visibility="public"
  27583. deprecated="not deprecated">
  27584. <doc>
  27585. <![CDATA[Construct a metrics record
  27586. @param name of the record
  27587. @param timestamp of the record
  27588. @param tags of the record
  27589. @param metrics of the record]]>
  27590. </doc>
  27591. </constructor>
  27592. <method name="timestamp" return="long"
  27593. abstract="false" native="false" synchronized="false"
  27594. static="false" final="false" visibility="public"
  27595. deprecated="not deprecated">
  27596. </method>
  27597. <method name="name" return="java.lang.String"
  27598. abstract="false" native="false" synchronized="false"
  27599. static="false" final="false" visibility="public"
  27600. deprecated="not deprecated">
  27601. </method>
  27602. <method name="context" return="java.lang.String"
  27603. abstract="false" native="false" synchronized="false"
  27604. static="false" final="false" visibility="public"
  27605. deprecated="not deprecated">
  27606. </method>
  27607. <method name="tags" return="java.lang.Iterable"
  27608. abstract="false" native="false" synchronized="false"
  27609. static="false" final="false" visibility="public"
  27610. deprecated="not deprecated">
  27611. </method>
  27612. <method name="metrics" return="java.lang.Iterable"
  27613. abstract="false" native="false" synchronized="false"
  27614. static="false" final="false" visibility="public"
  27615. deprecated="not deprecated">
  27616. </method>
  27617. <method name="equals" return="boolean"
  27618. abstract="false" native="false" synchronized="false"
  27619. static="false" final="false" visibility="public"
  27620. deprecated="not deprecated">
  27621. <param name="obj" type="java.lang.Object"/>
  27622. </method>
  27623. <method name="hashCode" return="int"
  27624. abstract="false" native="false" synchronized="false"
  27625. static="false" final="false" visibility="public"
  27626. deprecated="not deprecated">
  27627. </method>
  27628. <method name="toString" return="java.lang.String"
  27629. abstract="false" native="false" synchronized="false"
  27630. static="false" final="false" visibility="public"
  27631. deprecated="not deprecated">
  27632. </method>
  27633. <field name="CONTEXT_KEY" type="java.lang.String"
  27634. transient="false" volatile="false"
  27635. static="true" final="true" visibility="protected"
  27636. deprecated="not deprecated">
  27637. </field>
  27638. <field name="DEFAULT_CONTEXT" type="java.lang.String"
  27639. transient="false" volatile="false"
  27640. static="true" final="true" visibility="protected"
  27641. deprecated="not deprecated">
  27642. </field>
  27643. </class>
  27644. <!-- end class org.apache.hadoop.metrics2.impl.MetricsRecordImpl -->
  27645. <!-- start class org.apache.hadoop.metrics2.impl.MetricsSystemImpl -->
  27646. <class name="MetricsSystemImpl" extends="java.lang.Object"
  27647. abstract="false"
  27648. static="false" final="false" visibility="public"
  27649. deprecated="not deprecated">
  27650. <implements name="org.apache.hadoop.metrics2.MetricsSystem"/>
  27651. <constructor name="MetricsSystemImpl" type="java.lang.String"
  27652. static="false" final="false" visibility="public"
  27653. deprecated="not deprecated">
  27654. <doc>
  27655. <![CDATA[Construct the metrics system
  27656. @param prefix for the system]]>
  27657. </doc>
  27658. </constructor>
  27659. <constructor name="MetricsSystemImpl"
  27660. static="false" final="false" visibility="public"
  27661. deprecated="not deprecated">
  27662. <doc>
  27663. <![CDATA[Construct the system but not initializing (read config etc.) it.]]>
  27664. </doc>
  27665. </constructor>
  27666. <method name="init"
  27667. abstract="false" native="false" synchronized="true"
  27668. static="false" final="false" visibility="public"
  27669. deprecated="not deprecated">
  27670. <param name="prefix" type="java.lang.String"/>
  27671. <doc>
  27672. <![CDATA[Initialized the metrics system with a prefix.
  27673. @param prefix the system will look for configs with the prefix]]>
  27674. </doc>
  27675. </method>
  27676. <method name="start"
  27677. abstract="false" native="false" synchronized="true"
  27678. static="false" final="false" visibility="public"
  27679. deprecated="not deprecated">
  27680. </method>
  27681. <method name="stop"
  27682. abstract="false" native="false" synchronized="true"
  27683. static="false" final="false" visibility="public"
  27684. deprecated="not deprecated">
  27685. </method>
  27686. <method name="register" return="org.apache.hadoop.metrics2.MetricsSource"
  27687. abstract="false" native="false" synchronized="true"
  27688. static="false" final="false" visibility="public"
  27689. deprecated="not deprecated">
  27690. <param name="name" type="java.lang.String"/>
  27691. <param name="desc" type="java.lang.String"/>
  27692. <param name="source" type="org.apache.hadoop.metrics2.MetricsSource"/>
  27693. </method>
  27694. <method name="register" return="org.apache.hadoop.metrics2.MetricsSink"
  27695. abstract="false" native="false" synchronized="true"
  27696. static="false" final="false" visibility="public"
  27697. deprecated="not deprecated">
  27698. <param name="name" type="java.lang.String"/>
  27699. <param name="description" type="java.lang.String"/>
  27700. <param name="sink" type="org.apache.hadoop.metrics2.MetricsSink"/>
  27701. </method>
  27702. <method name="register"
  27703. abstract="false" native="false" synchronized="true"
  27704. static="false" final="false" visibility="public"
  27705. deprecated="not deprecated">
  27706. <param name="callback" type="org.apache.hadoop.metrics2.MetricsSystem.Callback"/>
  27707. </method>
  27708. <method name="refreshMBeans"
  27709. abstract="false" native="false" synchronized="true"
  27710. static="false" final="false" visibility="public"
  27711. deprecated="not deprecated">
  27712. </method>
  27713. <method name="currentConfig" return="java.lang.String"
  27714. abstract="false" native="false" synchronized="true"
  27715. static="false" final="false" visibility="public"
  27716. deprecated="not deprecated">
  27717. </method>
  27718. <method name="publishMetricsNow"
  27719. abstract="false" native="false" synchronized="false"
  27720. static="false" final="false" visibility="public"
  27721. deprecated="not deprecated">
  27722. <doc>
  27723. <![CDATA[Requests an immediate publish of all metrics from sources to sinks.]]>
  27724. </doc>
  27725. </method>
  27726. <method name="shutdown"
  27727. abstract="false" native="false" synchronized="true"
  27728. static="false" final="false" visibility="public"
  27729. deprecated="not deprecated">
  27730. </method>
  27731. <doc>
  27732. <![CDATA[A base class for metrics system singletons]]>
  27733. </doc>
  27734. </class>
  27735. <!-- end class org.apache.hadoop.metrics2.impl.MetricsSystemImpl -->
  27736. </package>
  27737. <package name="org.apache.hadoop.metrics2.lib">
  27738. <!-- start class org.apache.hadoop.metrics2.lib.AbstractMetricsSource -->
  27739. <class name="AbstractMetricsSource" extends="java.lang.Object"
  27740. abstract="true"
  27741. static="false" final="false" visibility="public"
  27742. deprecated="not deprecated">
  27743. <implements name="org.apache.hadoop.metrics2.MetricsSource"/>
  27744. <constructor name="AbstractMetricsSource" type="java.lang.String, org.apache.hadoop.metrics2.lib.MetricMutableFactory"
  27745. static="false" final="false" visibility="public"
  27746. deprecated="not deprecated">
  27747. <doc>
  27748. <![CDATA[Construct the source with name and a mutable metrics factory
  27749. @param name of the default record
  27750. @param mf the factory to create mutable metrics]]>
  27751. </doc>
  27752. </constructor>
  27753. <constructor name="AbstractMetricsSource" type="java.lang.String"
  27754. static="false" final="false" visibility="public"
  27755. deprecated="not deprecated">
  27756. <doc>
  27757. <![CDATA[Construct the source with a name with a default factory
  27758. @param name of the default record]]>
  27759. </doc>
  27760. </constructor>
  27761. <method name="registry" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  27762. abstract="false" native="false" synchronized="false"
  27763. static="false" final="false" visibility="public"
  27764. deprecated="not deprecated">
  27765. <doc>
  27766. <![CDATA[@return the registry for mutable metrics]]>
  27767. </doc>
  27768. </method>
  27769. <method name="getMetrics"
  27770. abstract="false" native="false" synchronized="false"
  27771. static="false" final="false" visibility="public"
  27772. deprecated="not deprecated">
  27773. <param name="builder" type="org.apache.hadoop.metrics2.MetricsBuilder"/>
  27774. <param name="all" type="boolean"/>
  27775. </method>
  27776. <field name="registry" type="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  27777. transient="false" volatile="false"
  27778. static="false" final="true" visibility="protected"
  27779. deprecated="not deprecated">
  27780. </field>
  27781. <doc>
  27782. <![CDATA[A convenient base class for writing metrics sources]]>
  27783. </doc>
  27784. </class>
  27785. <!-- end class org.apache.hadoop.metrics2.lib.AbstractMetricsSource -->
  27786. <!-- start class org.apache.hadoop.metrics2.lib.DefaultMetricsSystem -->
  27787. <class name="DefaultMetricsSystem" extends="java.lang.Enum"
  27788. abstract="false"
  27789. static="false" final="true" visibility="public"
  27790. deprecated="not deprecated">
  27791. <implements name="org.apache.hadoop.metrics2.MetricsSystem"/>
  27792. <method name="values" return="org.apache.hadoop.metrics2.lib.DefaultMetricsSystem[]"
  27793. abstract="false" native="false" synchronized="false"
  27794. static="true" final="false" visibility="public"
  27795. deprecated="not deprecated">
  27796. </method>
  27797. <method name="valueOf" return="org.apache.hadoop.metrics2.lib.DefaultMetricsSystem"
  27798. abstract="false" native="false" synchronized="false"
  27799. static="true" final="false" visibility="public"
  27800. deprecated="not deprecated">
  27801. <param name="name" type="java.lang.String"/>
  27802. </method>
  27803. <method name="initialize" return="org.apache.hadoop.metrics2.MetricsSystem"
  27804. abstract="false" native="false" synchronized="false"
  27805. static="true" final="false" visibility="public"
  27806. deprecated="not deprecated">
  27807. <param name="prefix" type="java.lang.String"/>
  27808. <doc>
  27809. <![CDATA[Common static convenience method to initialize the metrics system
  27810. @param prefix for configuration
  27811. @return the metrics system instance]]>
  27812. </doc>
  27813. </method>
  27814. <method name="register" return="org.apache.hadoop.metrics2.MetricsSource"
  27815. abstract="false" native="false" synchronized="false"
  27816. static="false" final="false" visibility="public"
  27817. deprecated="not deprecated">
  27818. <param name="name" type="java.lang.String"/>
  27819. <param name="desc" type="java.lang.String"/>
  27820. <param name="source" type="org.apache.hadoop.metrics2.MetricsSource"/>
  27821. </method>
  27822. <method name="registerSource" return="org.apache.hadoop.metrics2.MetricsSource"
  27823. abstract="false" native="false" synchronized="false"
  27824. static="true" final="false" visibility="public"
  27825. deprecated="not deprecated">
  27826. <param name="name" type="java.lang.String"/>
  27827. <param name="desc" type="java.lang.String"/>
  27828. <param name="source" type="org.apache.hadoop.metrics2.MetricsSource"/>
  27829. <doc>
  27830. <![CDATA[Common static method to register a source
  27831. @param <T> type of the source
  27832. @param name of the source
  27833. @param desc description
  27834. @param source the source object to register
  27835. @return the source object]]>
  27836. </doc>
  27837. </method>
  27838. <method name="register" return="org.apache.hadoop.metrics2.MetricsSink"
  27839. abstract="false" native="false" synchronized="false"
  27840. static="false" final="false" visibility="public"
  27841. deprecated="not deprecated">
  27842. <param name="name" type="java.lang.String"/>
  27843. <param name="desc" type="java.lang.String"/>
  27844. <param name="sink" type="org.apache.hadoop.metrics2.MetricsSink"/>
  27845. </method>
  27846. <method name="register"
  27847. abstract="false" native="false" synchronized="false"
  27848. static="false" final="false" visibility="public"
  27849. deprecated="not deprecated">
  27850. <param name="callback" type="org.apache.hadoop.metrics2.MetricsSystem.Callback"/>
  27851. </method>
  27852. <method name="publishMetricsNow"
  27853. abstract="false" native="false" synchronized="false"
  27854. static="false" final="false" visibility="public"
  27855. deprecated="not deprecated">
  27856. </method>
  27857. <method name="start"
  27858. abstract="false" native="false" synchronized="false"
  27859. static="false" final="false" visibility="public"
  27860. deprecated="not deprecated">
  27861. </method>
  27862. <method name="stop"
  27863. abstract="false" native="false" synchronized="false"
  27864. static="false" final="false" visibility="public"
  27865. deprecated="not deprecated">
  27866. </method>
  27867. <method name="refreshMBeans"
  27868. abstract="false" native="false" synchronized="false"
  27869. static="false" final="false" visibility="public"
  27870. deprecated="not deprecated">
  27871. </method>
  27872. <method name="currentConfig" return="java.lang.String"
  27873. abstract="false" native="false" synchronized="false"
  27874. static="false" final="false" visibility="public"
  27875. deprecated="not deprecated">
  27876. </method>
  27877. <method name="shutdown"
  27878. abstract="false" native="false" synchronized="false"
  27879. static="false" final="false" visibility="public"
  27880. deprecated="not deprecated">
  27881. </method>
  27882. <field name="INSTANCE" type="org.apache.hadoop.metrics2.lib.DefaultMetricsSystem"
  27883. transient="false" volatile="false"
  27884. static="true" final="true" visibility="public"
  27885. deprecated="not deprecated">
  27886. <doc>
  27887. <![CDATA[The singleton instance]]>
  27888. </doc>
  27889. </field>
  27890. <doc>
  27891. <![CDATA[The default metrics system singleton]]>
  27892. </doc>
  27893. </class>
  27894. <!-- end class org.apache.hadoop.metrics2.lib.DefaultMetricsSystem -->
  27895. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutable -->
  27896. <class name="MetricMutable" extends="java.lang.Object"
  27897. abstract="true"
  27898. static="false" final="false" visibility="public"
  27899. deprecated="not deprecated">
  27900. <constructor name="MetricMutable" type="java.lang.String, java.lang.String"
  27901. static="false" final="false" visibility="public"
  27902. deprecated="not deprecated">
  27903. <doc>
  27904. <![CDATA[Construct a mutable metric
  27905. @param name of the metric
  27906. @param description of the metric]]>
  27907. </doc>
  27908. </constructor>
  27909. <method name="snapshot"
  27910. abstract="true" native="false" synchronized="false"
  27911. static="false" final="false" visibility="public"
  27912. deprecated="not deprecated">
  27913. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  27914. <param name="all" type="boolean"/>
  27915. <doc>
  27916. <![CDATA[Get a snapshot/snapshot of the metric
  27917. @param builder the metrics record builder
  27918. @param all if true, snapshot unchanged metrics as well]]>
  27919. </doc>
  27920. </method>
  27921. <method name="snapshot"
  27922. abstract="false" native="false" synchronized="false"
  27923. static="false" final="false" visibility="public"
  27924. deprecated="not deprecated">
  27925. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  27926. <doc>
  27927. <![CDATA[Get a sampe/snapshot of metric if changed
  27928. @param builder the metrics record builder]]>
  27929. </doc>
  27930. </method>
  27931. <method name="setChanged"
  27932. abstract="false" native="false" synchronized="false"
  27933. static="false" final="false" visibility="protected"
  27934. deprecated="not deprecated">
  27935. <doc>
  27936. <![CDATA[Set the changed flag in mutable operations]]>
  27937. </doc>
  27938. </method>
  27939. <method name="clearChanged"
  27940. abstract="false" native="false" synchronized="false"
  27941. static="false" final="false" visibility="protected"
  27942. deprecated="not deprecated">
  27943. <doc>
  27944. <![CDATA[Clear the changed flag in the snapshot operations]]>
  27945. </doc>
  27946. </method>
  27947. <method name="changed" return="boolean"
  27948. abstract="false" native="false" synchronized="false"
  27949. static="false" final="false" visibility="public"
  27950. deprecated="not deprecated">
  27951. <doc>
  27952. <![CDATA[@return true if metric is changed since last snapshot/snapshot]]>
  27953. </doc>
  27954. </method>
  27955. <field name="name" type="java.lang.String"
  27956. transient="false" volatile="false"
  27957. static="false" final="true" visibility="public"
  27958. deprecated="not deprecated">
  27959. <doc>
  27960. <![CDATA[name of the metric]]>
  27961. </doc>
  27962. </field>
  27963. <field name="description" type="java.lang.String"
  27964. transient="false" volatile="false"
  27965. static="false" final="true" visibility="public"
  27966. deprecated="not deprecated">
  27967. <doc>
  27968. <![CDATA[description of the metric]]>
  27969. </doc>
  27970. </field>
  27971. <doc>
  27972. <![CDATA[The mutable metric interface]]>
  27973. </doc>
  27974. </class>
  27975. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutable -->
  27976. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableCounter -->
  27977. <class name="MetricMutableCounter" extends="org.apache.hadoop.metrics2.lib.MetricMutable"
  27978. abstract="true"
  27979. static="false" final="false" visibility="public"
  27980. deprecated="not deprecated">
  27981. <constructor name="MetricMutableCounter" type="java.lang.String, java.lang.String"
  27982. static="false" final="false" visibility="public"
  27983. deprecated="not deprecated">
  27984. <doc>
  27985. <![CDATA[Construct the metric with name and description
  27986. @param name
  27987. @param description]]>
  27988. </doc>
  27989. </constructor>
  27990. <method name="incr"
  27991. abstract="true" native="false" synchronized="false"
  27992. static="false" final="false" visibility="public"
  27993. deprecated="not deprecated">
  27994. <doc>
  27995. <![CDATA[Increment the metric value by 1.]]>
  27996. </doc>
  27997. </method>
  27998. <doc>
  27999. <![CDATA[The mutable counter (monotonically increasing) metric interface
  28000. @param <T> the type of the metric]]>
  28001. </doc>
  28002. </class>
  28003. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableCounter -->
  28004. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableCounterInt -->
  28005. <class name="MetricMutableCounterInt" extends="org.apache.hadoop.metrics2.lib.MetricMutableCounter"
  28006. abstract="false"
  28007. static="false" final="false" visibility="public"
  28008. deprecated="not deprecated">
  28009. <constructor name="MetricMutableCounterInt" type="java.lang.String, java.lang.String, int"
  28010. static="false" final="false" visibility="public"
  28011. deprecated="not deprecated">
  28012. <doc>
  28013. <![CDATA[Construct a mutable int counter
  28014. @param name of the counter
  28015. @param description of the counter
  28016. @param initValue the initial value of the counter]]>
  28017. </doc>
  28018. </constructor>
  28019. <method name="incr"
  28020. abstract="false" native="false" synchronized="true"
  28021. static="false" final="false" visibility="public"
  28022. deprecated="not deprecated">
  28023. </method>
  28024. <method name="incr"
  28025. abstract="false" native="false" synchronized="true"
  28026. static="false" final="false" visibility="public"
  28027. deprecated="not deprecated">
  28028. <param name="delta" type="int"/>
  28029. <doc>
  28030. <![CDATA[Increment the value by a delta
  28031. @param delta of the increment]]>
  28032. </doc>
  28033. </method>
  28034. <method name="snapshot"
  28035. abstract="false" native="false" synchronized="false"
  28036. static="false" final="false" visibility="public"
  28037. deprecated="not deprecated">
  28038. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  28039. <param name="all" type="boolean"/>
  28040. </method>
  28041. <doc>
  28042. <![CDATA[A mutable int counter for implementing metrics sources]]>
  28043. </doc>
  28044. </class>
  28045. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableCounterInt -->
  28046. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableCounterLong -->
  28047. <class name="MetricMutableCounterLong" extends="org.apache.hadoop.metrics2.lib.MetricMutableCounter"
  28048. abstract="false"
  28049. static="false" final="false" visibility="public"
  28050. deprecated="not deprecated">
  28051. <constructor name="MetricMutableCounterLong" type="java.lang.String, java.lang.String, long"
  28052. static="false" final="false" visibility="public"
  28053. deprecated="not deprecated">
  28054. <doc>
  28055. <![CDATA[Construct a mutable long counter
  28056. @param name of the counter
  28057. @param description of the counter
  28058. @param initValue the initial value of the counter]]>
  28059. </doc>
  28060. </constructor>
  28061. <method name="incr"
  28062. abstract="false" native="false" synchronized="true"
  28063. static="false" final="false" visibility="public"
  28064. deprecated="not deprecated">
  28065. </method>
  28066. <method name="incr"
  28067. abstract="false" native="false" synchronized="true"
  28068. static="false" final="false" visibility="public"
  28069. deprecated="not deprecated">
  28070. <param name="delta" type="long"/>
  28071. <doc>
  28072. <![CDATA[Increment the value by a delta
  28073. @param delta of the increment]]>
  28074. </doc>
  28075. </method>
  28076. <method name="snapshot"
  28077. abstract="false" native="false" synchronized="false"
  28078. static="false" final="false" visibility="public"
  28079. deprecated="not deprecated">
  28080. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  28081. <param name="all" type="boolean"/>
  28082. </method>
  28083. <doc>
  28084. <![CDATA[A mutable long counter]]>
  28085. </doc>
  28086. </class>
  28087. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableCounterLong -->
  28088. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableFactory -->
  28089. <class name="MetricMutableFactory" extends="java.lang.Object"
  28090. abstract="false"
  28091. static="false" final="false" visibility="public"
  28092. deprecated="not deprecated">
  28093. <constructor name="MetricMutableFactory"
  28094. static="false" final="false" visibility="public"
  28095. deprecated="not deprecated">
  28096. </constructor>
  28097. <method name="newMetric" return="org.apache.hadoop.metrics2.lib.MetricMutable"
  28098. abstract="false" native="false" synchronized="false"
  28099. static="false" final="false" visibility="public"
  28100. deprecated="not deprecated">
  28101. <param name="name" type="java.lang.String"/>
  28102. <doc>
  28103. <![CDATA[Create a new mutable metric by name
  28104. Usually overridden by app specific factory
  28105. @param name of the metric
  28106. @return a new metric object]]>
  28107. </doc>
  28108. </method>
  28109. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MetricMutableCounterInt"
  28110. abstract="false" native="false" synchronized="false"
  28111. static="false" final="false" visibility="public"
  28112. deprecated="not deprecated">
  28113. <param name="name" type="java.lang.String"/>
  28114. <param name="description" type="java.lang.String"/>
  28115. <param name="initValue" type="int"/>
  28116. <doc>
  28117. <![CDATA[Create a mutable integer counter
  28118. @param name of the metric
  28119. @param description of the metric
  28120. @param initValue of the metric
  28121. @return a new metric object]]>
  28122. </doc>
  28123. </method>
  28124. <method name="newCounterInt" return="org.apache.hadoop.metrics2.lib.MetricMutableCounterInt"
  28125. abstract="false" native="false" synchronized="false"
  28126. static="false" final="false" visibility="public"
  28127. deprecated="not deprecated">
  28128. <param name="name" type="java.lang.String"/>
  28129. <doc>
  28130. <![CDATA[Create a mutable integer counter with name only.
  28131. Usually gets overridden.
  28132. @param name of the metric
  28133. @return a new metric object]]>
  28134. </doc>
  28135. </method>
  28136. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MetricMutableCounterLong"
  28137. abstract="false" native="false" synchronized="false"
  28138. static="false" final="false" visibility="public"
  28139. deprecated="not deprecated">
  28140. <param name="name" type="java.lang.String"/>
  28141. <param name="description" type="java.lang.String"/>
  28142. <param name="initValue" type="long"/>
  28143. <doc>
  28144. <![CDATA[Create a mutable long integer counter
  28145. @param name of the metric
  28146. @param description of the metric
  28147. @param initValue of the metric
  28148. @return a new metric object]]>
  28149. </doc>
  28150. </method>
  28151. <method name="newCounterLong" return="org.apache.hadoop.metrics2.lib.MetricMutableCounterLong"
  28152. abstract="false" native="false" synchronized="false"
  28153. static="false" final="false" visibility="public"
  28154. deprecated="not deprecated">
  28155. <param name="name" type="java.lang.String"/>
  28156. <doc>
  28157. <![CDATA[Create a mutable long integer counter with a name
  28158. Usually gets overridden.
  28159. @param name of the metric
  28160. @return a new metric object]]>
  28161. </doc>
  28162. </method>
  28163. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MetricMutableGaugeInt"
  28164. abstract="false" native="false" synchronized="false"
  28165. static="false" final="false" visibility="public"
  28166. deprecated="not deprecated">
  28167. <param name="name" type="java.lang.String"/>
  28168. <param name="description" type="java.lang.String"/>
  28169. <param name="initValue" type="int"/>
  28170. <doc>
  28171. <![CDATA[Create a mutable integer gauge
  28172. @param name of the metric
  28173. @param description of the metric
  28174. @param initValue of the metric
  28175. @return a new metric object]]>
  28176. </doc>
  28177. </method>
  28178. <method name="newGaugeInt" return="org.apache.hadoop.metrics2.lib.MetricMutableGaugeInt"
  28179. abstract="false" native="false" synchronized="false"
  28180. static="false" final="false" visibility="public"
  28181. deprecated="not deprecated">
  28182. <param name="name" type="java.lang.String"/>
  28183. <doc>
  28184. <![CDATA[Create a mutable integer gauge with name only.
  28185. Usually gets overridden.
  28186. @param name of the metric
  28187. @return a new metric object]]>
  28188. </doc>
  28189. </method>
  28190. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MetricMutableGaugeLong"
  28191. abstract="false" native="false" synchronized="false"
  28192. static="false" final="false" visibility="public"
  28193. deprecated="not deprecated">
  28194. <param name="name" type="java.lang.String"/>
  28195. <param name="description" type="java.lang.String"/>
  28196. <param name="initValue" type="long"/>
  28197. <doc>
  28198. <![CDATA[Create a mutable long integer gauge
  28199. @param name of the metric
  28200. @param description of the metric
  28201. @param initValue of the metric
  28202. @return a new metric object]]>
  28203. </doc>
  28204. </method>
  28205. <method name="newGaugeLong" return="org.apache.hadoop.metrics2.lib.MetricMutableGaugeLong"
  28206. abstract="false" native="false" synchronized="false"
  28207. static="false" final="false" visibility="public"
  28208. deprecated="not deprecated">
  28209. <param name="name" type="java.lang.String"/>
  28210. <doc>
  28211. <![CDATA[Create a mutable long integer gauge with name only.
  28212. Usually gets overridden.
  28213. @param name of the metric
  28214. @return a new metric object]]>
  28215. </doc>
  28216. </method>
  28217. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MetricMutableStat"
  28218. abstract="false" native="false" synchronized="false"
  28219. static="false" final="false" visibility="public"
  28220. deprecated="not deprecated">
  28221. <param name="name" type="java.lang.String"/>
  28222. <param name="description" type="java.lang.String"/>
  28223. <param name="sampleName" type="java.lang.String"/>
  28224. <param name="valueName" type="java.lang.String"/>
  28225. <param name="extended" type="boolean"/>
  28226. <doc>
  28227. <![CDATA[Create a mutable stat metric
  28228. @param name of the metric
  28229. @param description of the metric
  28230. @param sampleName of the metric (e.g., ops)
  28231. @param valueName of the metric (e.g., time or latency)
  28232. @param extended if true, produces extended stat (stdev, min/max etc.)
  28233. @return a new metric object]]>
  28234. </doc>
  28235. </method>
  28236. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MetricMutableStat"
  28237. abstract="false" native="false" synchronized="false"
  28238. static="false" final="false" visibility="public"
  28239. deprecated="not deprecated">
  28240. <param name="name" type="java.lang.String"/>
  28241. <doc>
  28242. <![CDATA[Create a mutable stat metric with name only.
  28243. Usually gets overridden.
  28244. @param name of the metric
  28245. @return a new metric object]]>
  28246. </doc>
  28247. </method>
  28248. <doc>
  28249. <![CDATA[Factory class for mutable metrics]]>
  28250. </doc>
  28251. </class>
  28252. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableFactory -->
  28253. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableGauge -->
  28254. <class name="MetricMutableGauge" extends="org.apache.hadoop.metrics2.lib.MetricMutable"
  28255. abstract="true"
  28256. static="false" final="false" visibility="public"
  28257. deprecated="not deprecated">
  28258. <constructor name="MetricMutableGauge" type="java.lang.String, java.lang.String"
  28259. static="false" final="false" visibility="public"
  28260. deprecated="not deprecated">
  28261. <doc>
  28262. <![CDATA[Construct the metric with name and description
  28263. @param name of the metric
  28264. @param description of the metric]]>
  28265. </doc>
  28266. </constructor>
  28267. <method name="incr"
  28268. abstract="true" native="false" synchronized="false"
  28269. static="false" final="false" visibility="public"
  28270. deprecated="not deprecated">
  28271. <doc>
  28272. <![CDATA[Increment the value of the metric by 1]]>
  28273. </doc>
  28274. </method>
  28275. <method name="decr"
  28276. abstract="true" native="false" synchronized="false"
  28277. static="false" final="false" visibility="public"
  28278. deprecated="not deprecated">
  28279. <doc>
  28280. <![CDATA[Decrement the value of the metric by 1]]>
  28281. </doc>
  28282. </method>
  28283. <doc>
  28284. <![CDATA[The mutable gauge metric interface
  28285. @param <T> the type of the metric]]>
  28286. </doc>
  28287. </class>
  28288. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableGauge -->
  28289. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableGaugeInt -->
  28290. <class name="MetricMutableGaugeInt" extends="org.apache.hadoop.metrics2.lib.MetricMutableGauge"
  28291. abstract="false"
  28292. static="false" final="false" visibility="public"
  28293. deprecated="not deprecated">
  28294. <constructor name="MetricMutableGaugeInt" type="java.lang.String, java.lang.String, int"
  28295. static="false" final="false" visibility="public"
  28296. deprecated="not deprecated">
  28297. <doc>
  28298. <![CDATA[Construct a mutable int gauge metric
  28299. @param name of the gauge
  28300. @param description of the gauge
  28301. @param initValue the initial value of the gauge]]>
  28302. </doc>
  28303. </constructor>
  28304. <method name="incr"
  28305. abstract="false" native="false" synchronized="true"
  28306. static="false" final="false" visibility="public"
  28307. deprecated="not deprecated">
  28308. </method>
  28309. <method name="incr"
  28310. abstract="false" native="false" synchronized="true"
  28311. static="false" final="false" visibility="public"
  28312. deprecated="not deprecated">
  28313. <param name="delta" type="int"/>
  28314. <doc>
  28315. <![CDATA[Increment by delta
  28316. @param delta of the increment]]>
  28317. </doc>
  28318. </method>
  28319. <method name="decr"
  28320. abstract="false" native="false" synchronized="true"
  28321. static="false" final="false" visibility="public"
  28322. deprecated="not deprecated">
  28323. </method>
  28324. <method name="decr"
  28325. abstract="false" native="false" synchronized="true"
  28326. static="false" final="false" visibility="public"
  28327. deprecated="not deprecated">
  28328. <param name="delta" type="int"/>
  28329. <doc>
  28330. <![CDATA[decrement by delta
  28331. @param delta of the decrement]]>
  28332. </doc>
  28333. </method>
  28334. <method name="set"
  28335. abstract="false" native="false" synchronized="false"
  28336. static="false" final="false" visibility="public"
  28337. deprecated="not deprecated">
  28338. <param name="value" type="int"/>
  28339. <doc>
  28340. <![CDATA[Set the value of the metric
  28341. @param value to set]]>
  28342. </doc>
  28343. </method>
  28344. <method name="snapshot"
  28345. abstract="false" native="false" synchronized="false"
  28346. static="false" final="false" visibility="public"
  28347. deprecated="not deprecated">
  28348. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  28349. <param name="all" type="boolean"/>
  28350. </method>
  28351. <doc>
  28352. <![CDATA[A mutable int gauge]]>
  28353. </doc>
  28354. </class>
  28355. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableGaugeInt -->
  28356. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableGaugeLong -->
  28357. <class name="MetricMutableGaugeLong" extends="org.apache.hadoop.metrics2.lib.MetricMutableGauge"
  28358. abstract="false"
  28359. static="false" final="false" visibility="public"
  28360. deprecated="not deprecated">
  28361. <constructor name="MetricMutableGaugeLong" type="java.lang.String, java.lang.String, long"
  28362. static="false" final="false" visibility="public"
  28363. deprecated="not deprecated">
  28364. <doc>
  28365. <![CDATA[Construct a mutable long gauge metric
  28366. @param name of the gauge
  28367. @param description of the gauge
  28368. @param initValue the initial value of the gauge]]>
  28369. </doc>
  28370. </constructor>
  28371. <method name="incr"
  28372. abstract="false" native="false" synchronized="true"
  28373. static="false" final="false" visibility="public"
  28374. deprecated="not deprecated">
  28375. </method>
  28376. <method name="incr"
  28377. abstract="false" native="false" synchronized="true"
  28378. static="false" final="false" visibility="public"
  28379. deprecated="not deprecated">
  28380. <param name="delta" type="long"/>
  28381. <doc>
  28382. <![CDATA[Increment by delta
  28383. @param delta of the increment]]>
  28384. </doc>
  28385. </method>
  28386. <method name="decr"
  28387. abstract="false" native="false" synchronized="true"
  28388. static="false" final="false" visibility="public"
  28389. deprecated="not deprecated">
  28390. </method>
  28391. <method name="decr"
  28392. abstract="false" native="false" synchronized="true"
  28393. static="false" final="false" visibility="public"
  28394. deprecated="not deprecated">
  28395. <param name="delta" type="long"/>
  28396. <doc>
  28397. <![CDATA[decrement by delta
  28398. @param delta of the decrement]]>
  28399. </doc>
  28400. </method>
  28401. <method name="set"
  28402. abstract="false" native="false" synchronized="false"
  28403. static="false" final="false" visibility="public"
  28404. deprecated="not deprecated">
  28405. <param name="value" type="long"/>
  28406. <doc>
  28407. <![CDATA[Set the value of the metric
  28408. @param value to set]]>
  28409. </doc>
  28410. </method>
  28411. <method name="snapshot"
  28412. abstract="false" native="false" synchronized="false"
  28413. static="false" final="false" visibility="public"
  28414. deprecated="not deprecated">
  28415. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  28416. <param name="all" type="boolean"/>
  28417. </method>
  28418. <doc>
  28419. <![CDATA[A mutable long gauge]]>
  28420. </doc>
  28421. </class>
  28422. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableGaugeLong -->
  28423. <!-- start class org.apache.hadoop.metrics2.lib.MetricMutableStat -->
  28424. <class name="MetricMutableStat" extends="org.apache.hadoop.metrics2.lib.MetricMutable"
  28425. abstract="false"
  28426. static="false" final="false" visibility="public"
  28427. deprecated="not deprecated">
  28428. <constructor name="MetricMutableStat" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean"
  28429. static="false" final="false" visibility="public"
  28430. deprecated="not deprecated">
  28431. <doc>
  28432. <![CDATA[Construct a sample statistics metric
  28433. @param name of the metric
  28434. @param description of the metric
  28435. @param sampleName of the metric (e.g. "ops")
  28436. @param valueName of the metric (e.g. "time", "latency")
  28437. @param extended create extended stats (stdev, min/max etc.) by default.]]>
  28438. </doc>
  28439. </constructor>
  28440. <constructor name="MetricMutableStat" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String"
  28441. static="false" final="false" visibility="public"
  28442. deprecated="not deprecated">
  28443. <doc>
  28444. <![CDATA[Construct a snapshot stat metric with extended stat off by default
  28445. @param name of the metric
  28446. @param description of the metric
  28447. @param sampleName of the metric (e.g. "ops")
  28448. @param valueName of the metric (e.g. "time", "latency")]]>
  28449. </doc>
  28450. </constructor>
  28451. <method name="add"
  28452. abstract="false" native="false" synchronized="true"
  28453. static="false" final="false" visibility="public"
  28454. deprecated="not deprecated">
  28455. <param name="numSamples" type="long"/>
  28456. <param name="sum" type="long"/>
  28457. <doc>
  28458. <![CDATA[Add a number of samples and their sum to the running stat
  28459. @param numSamples number of samples
  28460. @param sum of the samples]]>
  28461. </doc>
  28462. </method>
  28463. <method name="add"
  28464. abstract="false" native="false" synchronized="true"
  28465. static="false" final="false" visibility="public"
  28466. deprecated="not deprecated">
  28467. <param name="value" type="long"/>
  28468. <doc>
  28469. <![CDATA[Add a snapshot to the metric
  28470. @param value of the metric]]>
  28471. </doc>
  28472. </method>
  28473. <method name="snapshot"
  28474. abstract="false" native="false" synchronized="true"
  28475. static="false" final="false" visibility="public"
  28476. deprecated="not deprecated">
  28477. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  28478. <param name="all" type="boolean"/>
  28479. </method>
  28480. <method name="resetMinMax"
  28481. abstract="false" native="false" synchronized="false"
  28482. static="false" final="false" visibility="public"
  28483. deprecated="not deprecated">
  28484. <doc>
  28485. <![CDATA[Reset the all time min max of the metric]]>
  28486. </doc>
  28487. </method>
  28488. <doc>
  28489. <![CDATA[A mutable metric with stats
  28490. Useful for keep throughput/latency stats.
  28491. e.g., new MetricMutableStat("rpcName", "rpcName stats", "ops", "time");]]>
  28492. </doc>
  28493. </class>
  28494. <!-- end class org.apache.hadoop.metrics2.lib.MetricMutableStat -->
  28495. <!-- start class org.apache.hadoop.metrics2.lib.MetricsRegistry -->
  28496. <class name="MetricsRegistry" extends="java.lang.Object"
  28497. abstract="false"
  28498. static="false" final="false" visibility="public"
  28499. deprecated="not deprecated">
  28500. <constructor name="MetricsRegistry" type="java.lang.String"
  28501. static="false" final="false" visibility="public"
  28502. deprecated="not deprecated">
  28503. <doc>
  28504. <![CDATA[Construct the registry with a record name
  28505. @param name of the record of the metrics]]>
  28506. </doc>
  28507. </constructor>
  28508. <constructor name="MetricsRegistry" type="java.lang.String, org.apache.hadoop.metrics2.lib.MetricMutableFactory"
  28509. static="false" final="false" visibility="public"
  28510. deprecated="not deprecated">
  28511. <doc>
  28512. <![CDATA[Construct the registry with a name and a metric factory
  28513. @param name of the record of the metrics
  28514. @param factory for creating new mutable metrics]]>
  28515. </doc>
  28516. </constructor>
  28517. <method name="name" return="java.lang.String"
  28518. abstract="false" native="false" synchronized="false"
  28519. static="false" final="false" visibility="public"
  28520. deprecated="not deprecated">
  28521. <doc>
  28522. <![CDATA[@return the name of the metrics registry]]>
  28523. </doc>
  28524. </method>
  28525. <method name="get" return="org.apache.hadoop.metrics2.lib.MetricMutable"
  28526. abstract="false" native="false" synchronized="false"
  28527. static="false" final="false" visibility="public"
  28528. deprecated="not deprecated">
  28529. <param name="name" type="java.lang.String"/>
  28530. <doc>
  28531. <![CDATA[Get a metric by name
  28532. @param name of the metric
  28533. @return the metric object]]>
  28534. </doc>
  28535. </method>
  28536. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MetricMutableCounterInt"
  28537. abstract="false" native="false" synchronized="false"
  28538. static="false" final="false" visibility="public"
  28539. deprecated="not deprecated">
  28540. <param name="name" type="java.lang.String"/>
  28541. <param name="description" type="java.lang.String"/>
  28542. <param name="initValue" type="int"/>
  28543. <doc>
  28544. <![CDATA[Create a mutable integer counter
  28545. @param name of the metric
  28546. @param description of the metric
  28547. @param initValue of the metric
  28548. @return a new counter object]]>
  28549. </doc>
  28550. </method>
  28551. <method name="newCounter" return="org.apache.hadoop.metrics2.lib.MetricMutableCounterLong"
  28552. abstract="false" native="false" synchronized="false"
  28553. static="false" final="false" visibility="public"
  28554. deprecated="not deprecated">
  28555. <param name="name" type="java.lang.String"/>
  28556. <param name="description" type="java.lang.String"/>
  28557. <param name="initValue" type="long"/>
  28558. <doc>
  28559. <![CDATA[Create a mutable long integer counter
  28560. @param name of the metric
  28561. @param description of the metric
  28562. @param initValue of the metric
  28563. @return a new counter object]]>
  28564. </doc>
  28565. </method>
  28566. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MetricMutableGaugeInt"
  28567. abstract="false" native="false" synchronized="false"
  28568. static="false" final="false" visibility="public"
  28569. deprecated="not deprecated">
  28570. <param name="name" type="java.lang.String"/>
  28571. <param name="description" type="java.lang.String"/>
  28572. <param name="initValue" type="int"/>
  28573. <doc>
  28574. <![CDATA[Create a mutable integer gauge
  28575. @param name of the metric
  28576. @param description of the metric
  28577. @param initValue of the metric
  28578. @return a new gauge object]]>
  28579. </doc>
  28580. </method>
  28581. <method name="newGauge" return="org.apache.hadoop.metrics2.lib.MetricMutableGaugeLong"
  28582. abstract="false" native="false" synchronized="false"
  28583. static="false" final="false" visibility="public"
  28584. deprecated="not deprecated">
  28585. <param name="name" type="java.lang.String"/>
  28586. <param name="description" type="java.lang.String"/>
  28587. <param name="initValue" type="long"/>
  28588. <doc>
  28589. <![CDATA[Create a mutable long integer gauge
  28590. @param name of the metric
  28591. @param description of the metric
  28592. @param initValue of the metric
  28593. @return a new gauge object]]>
  28594. </doc>
  28595. </method>
  28596. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MetricMutableStat"
  28597. abstract="false" native="false" synchronized="false"
  28598. static="false" final="false" visibility="public"
  28599. deprecated="not deprecated">
  28600. <param name="name" type="java.lang.String"/>
  28601. <param name="description" type="java.lang.String"/>
  28602. <param name="sampleName" type="java.lang.String"/>
  28603. <param name="valueName" type="java.lang.String"/>
  28604. <param name="extended" type="boolean"/>
  28605. <doc>
  28606. <![CDATA[Create a mutable metric with stats
  28607. @param name of the metric
  28608. @param description of the metric
  28609. @param sampleName of the metric (e.g., "ops")
  28610. @param valueName of the metric (e.g., "time" or "latency")
  28611. @param extended produce extended stat (stdev, min/max etc.) if true.
  28612. @return a new metric object]]>
  28613. </doc>
  28614. </method>
  28615. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MetricMutableStat"
  28616. abstract="false" native="false" synchronized="false"
  28617. static="false" final="false" visibility="public"
  28618. deprecated="not deprecated">
  28619. <param name="name" type="java.lang.String"/>
  28620. <param name="description" type="java.lang.String"/>
  28621. <param name="sampleName" type="java.lang.String"/>
  28622. <param name="valueName" type="java.lang.String"/>
  28623. <doc>
  28624. <![CDATA[Create a mutable metric with stats
  28625. @param name of the metric
  28626. @param description of the metric
  28627. @param sampleName of the metric (e.g., "ops")
  28628. @param valueName of the metric (e.g., "time" or "latency")
  28629. @return a new metric object]]>
  28630. </doc>
  28631. </method>
  28632. <method name="newStat" return="org.apache.hadoop.metrics2.lib.MetricMutableStat"
  28633. abstract="false" native="false" synchronized="false"
  28634. static="false" final="false" visibility="public"
  28635. deprecated="not deprecated">
  28636. <param name="name" type="java.lang.String"/>
  28637. <doc>
  28638. <![CDATA[Create a mutable metric with stats using the name only
  28639. @param name of the metric
  28640. @return a new metric object]]>
  28641. </doc>
  28642. </method>
  28643. <method name="incr"
  28644. abstract="false" native="false" synchronized="false"
  28645. static="false" final="false" visibility="public"
  28646. deprecated="not deprecated">
  28647. <param name="name" type="java.lang.String"/>
  28648. <doc>
  28649. <![CDATA[Increment a metric by name.
  28650. @param name of the metric]]>
  28651. </doc>
  28652. </method>
  28653. <method name="incr"
  28654. abstract="false" native="false" synchronized="false"
  28655. static="false" final="false" visibility="public"
  28656. deprecated="not deprecated">
  28657. <param name="name" type="java.lang.String"/>
  28658. <param name="factory" type="org.apache.hadoop.metrics2.lib.MetricMutableFactory"/>
  28659. <doc>
  28660. <![CDATA[Increment a metric by name.
  28661. @param name of the metric
  28662. @param factory to lazily create the metric if not null]]>
  28663. </doc>
  28664. </method>
  28665. <method name="decr"
  28666. abstract="false" native="false" synchronized="false"
  28667. static="false" final="false" visibility="public"
  28668. deprecated="not deprecated">
  28669. <param name="name" type="java.lang.String"/>
  28670. <doc>
  28671. <![CDATA[Decrement a metric by name.
  28672. @param name of the metric]]>
  28673. </doc>
  28674. </method>
  28675. <method name="decr"
  28676. abstract="false" native="false" synchronized="false"
  28677. static="false" final="false" visibility="public"
  28678. deprecated="not deprecated">
  28679. <param name="name" type="java.lang.String"/>
  28680. <param name="factory" type="org.apache.hadoop.metrics2.lib.MetricMutableFactory"/>
  28681. <doc>
  28682. <![CDATA[Decrement a metric by name.
  28683. @param name of the metric
  28684. @param factory to lazily create the metric if not null]]>
  28685. </doc>
  28686. </method>
  28687. <method name="add"
  28688. abstract="false" native="false" synchronized="false"
  28689. static="false" final="false" visibility="public"
  28690. deprecated="not deprecated">
  28691. <param name="name" type="java.lang.String"/>
  28692. <param name="value" type="long"/>
  28693. <doc>
  28694. <![CDATA[Add a value to a metric by name.
  28695. @param name of the metric
  28696. @param value of the snapshot to add]]>
  28697. </doc>
  28698. </method>
  28699. <method name="add"
  28700. abstract="false" native="false" synchronized="false"
  28701. static="false" final="false" visibility="public"
  28702. deprecated="not deprecated">
  28703. <param name="name" type="java.lang.String"/>
  28704. <param name="value" type="long"/>
  28705. <param name="factory" type="org.apache.hadoop.metrics2.lib.MetricMutableFactory"/>
  28706. <doc>
  28707. <![CDATA[Decrement a metric by name.
  28708. @param name of the metric
  28709. @param value of the snapshot to add
  28710. @param factory to lazily create the metric if not null]]>
  28711. </doc>
  28712. </method>
  28713. <method name="setContext" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  28714. abstract="false" native="false" synchronized="false"
  28715. static="false" final="false" visibility="public"
  28716. deprecated="not deprecated">
  28717. <param name="name" type="java.lang.String"/>
  28718. <doc>
  28719. <![CDATA[Set the metrics context tag
  28720. @param name of the context
  28721. @return the registry itself as a convenience]]>
  28722. </doc>
  28723. </method>
  28724. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  28725. abstract="false" native="false" synchronized="false"
  28726. static="false" final="false" visibility="public"
  28727. deprecated="not deprecated">
  28728. <param name="name" type="java.lang.String"/>
  28729. <param name="description" type="java.lang.String"/>
  28730. <param name="value" type="java.lang.String"/>
  28731. <doc>
  28732. <![CDATA[Add a tag to the metrics
  28733. @param name of the tag
  28734. @param description of the tag
  28735. @param value of the tag
  28736. @return the registry (for keep adding tags)]]>
  28737. </doc>
  28738. </method>
  28739. <method name="tag" return="org.apache.hadoop.metrics2.lib.MetricsRegistry"
  28740. abstract="false" native="false" synchronized="false"
  28741. static="false" final="false" visibility="public"
  28742. deprecated="not deprecated">
  28743. <param name="name" type="java.lang.String"/>
  28744. <param name="description" type="java.lang.String"/>
  28745. <param name="value" type="java.lang.String"/>
  28746. <param name="override" type="boolean"/>
  28747. <doc>
  28748. <![CDATA[Add a tag to the metrics
  28749. @param name of the tag
  28750. @param description of the tag
  28751. @param value of the tag
  28752. @param override existing tag if true
  28753. @return the registry (for keep adding tags)]]>
  28754. </doc>
  28755. </method>
  28756. <method name="tags" return="java.util.Set"
  28757. abstract="false" native="false" synchronized="false"
  28758. static="false" final="false" visibility="public"
  28759. deprecated="not deprecated">
  28760. <doc>
  28761. <![CDATA[Get the tags
  28762. @return the tags set]]>
  28763. </doc>
  28764. </method>
  28765. <method name="metrics" return="java.util.Set"
  28766. abstract="false" native="false" synchronized="false"
  28767. static="false" final="false" visibility="public"
  28768. deprecated="not deprecated">
  28769. <doc>
  28770. <![CDATA[Get the metrics
  28771. @return the metrics set]]>
  28772. </doc>
  28773. </method>
  28774. <method name="snapshot"
  28775. abstract="false" native="false" synchronized="false"
  28776. static="false" final="false" visibility="public"
  28777. deprecated="not deprecated">
  28778. <param name="builder" type="org.apache.hadoop.metrics2.MetricsRecordBuilder"/>
  28779. <param name="all" type="boolean"/>
  28780. <doc>
  28781. <![CDATA[Sample all the mutable metrics and put the snapshot in the builder
  28782. @param builder to contain the metrics snapshot
  28783. @param all get all the metrics even if the values are not changed.]]>
  28784. </doc>
  28785. </method>
  28786. <field name="CONTEXT_KEY" type="java.lang.String"
  28787. transient="false" volatile="false"
  28788. static="true" final="true" visibility="public"
  28789. deprecated="not deprecated">
  28790. <doc>
  28791. <![CDATA[key for the context tag]]>
  28792. </doc>
  28793. </field>
  28794. <field name="CONTEXT_DESC" type="java.lang.String"
  28795. transient="false" volatile="false"
  28796. static="true" final="true" visibility="public"
  28797. deprecated="not deprecated">
  28798. <doc>
  28799. <![CDATA[description for the context tag]]>
  28800. </doc>
  28801. </field>
  28802. <doc>
  28803. <![CDATA[An optional metrics registry class for creating and maintaining a
  28804. collection of MetricsMutables, making writing metrics source easier.]]>
  28805. </doc>
  28806. </class>
  28807. <!-- end class org.apache.hadoop.metrics2.lib.MetricsRegistry -->
  28808. </package>
  28809. <package name="org.apache.hadoop.metrics2.sink">
  28810. <!-- start class org.apache.hadoop.metrics2.sink.FileSink -->
  28811. <class name="FileSink" extends="java.lang.Object"
  28812. abstract="false"
  28813. static="false" final="false" visibility="public"
  28814. deprecated="not deprecated">
  28815. <implements name="org.apache.hadoop.metrics2.MetricsSink"/>
  28816. <constructor name="FileSink"
  28817. static="false" final="false" visibility="public"
  28818. deprecated="not deprecated">
  28819. </constructor>
  28820. <method name="init"
  28821. abstract="false" native="false" synchronized="false"
  28822. static="false" final="false" visibility="public"
  28823. deprecated="not deprecated">
  28824. <param name="conf" type="org.apache.commons.configuration.SubsetConfiguration"/>
  28825. </method>
  28826. <method name="putMetrics"
  28827. abstract="false" native="false" synchronized="false"
  28828. static="false" final="false" visibility="public"
  28829. deprecated="not deprecated">
  28830. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  28831. </method>
  28832. <method name="flush"
  28833. abstract="false" native="false" synchronized="false"
  28834. static="false" final="false" visibility="public"
  28835. deprecated="not deprecated">
  28836. </method>
  28837. </class>
  28838. <!-- end class org.apache.hadoop.metrics2.sink.FileSink -->
  28839. </package>
  28840. <package name="org.apache.hadoop.metrics2.sink.ganglia">
  28841. <!-- start class org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink -->
  28842. <class name="AbstractGangliaSink" extends="java.lang.Object"
  28843. abstract="true"
  28844. static="false" final="false" visibility="public"
  28845. deprecated="not deprecated">
  28846. <implements name="org.apache.hadoop.metrics2.MetricsSink"/>
  28847. <constructor name="AbstractGangliaSink"
  28848. static="false" final="false" visibility="public"
  28849. deprecated="not deprecated">
  28850. </constructor>
  28851. <method name="init"
  28852. abstract="false" native="false" synchronized="false"
  28853. static="false" final="false" visibility="public"
  28854. deprecated="not deprecated">
  28855. <param name="conf" type="org.apache.commons.configuration.SubsetConfiguration"/>
  28856. </method>
  28857. <method name="flush"
  28858. abstract="false" native="false" synchronized="false"
  28859. static="false" final="false" visibility="public"
  28860. deprecated="not deprecated">
  28861. </method>
  28862. <method name="getGangliaConfForMetric" return="org.apache.hadoop.metrics2.sink.ganglia.GangliaConf"
  28863. abstract="false" native="false" synchronized="false"
  28864. static="false" final="false" visibility="protected"
  28865. deprecated="not deprecated">
  28866. <param name="metricName" type="java.lang.String"/>
  28867. <doc>
  28868. <![CDATA[Lookup GangliaConf from cache. If not found, return default values
  28869. @param metricName
  28870. @return looked up GangliaConf]]>
  28871. </doc>
  28872. </method>
  28873. <method name="getHostName" return="java.lang.String"
  28874. abstract="false" native="false" synchronized="false"
  28875. static="false" final="false" visibility="protected"
  28876. deprecated="not deprecated">
  28877. <doc>
  28878. <![CDATA[@return the hostName]]>
  28879. </doc>
  28880. </method>
  28881. <method name="xdr_string"
  28882. abstract="false" native="false" synchronized="false"
  28883. static="false" final="false" visibility="protected"
  28884. deprecated="not deprecated">
  28885. <param name="s" type="java.lang.String"/>
  28886. <doc>
  28887. <![CDATA[Puts a string into the buffer by first writing the size of the string as an
  28888. int, followed by the bytes of the string, padded if necessary to a multiple
  28889. of 4.
  28890. @param s the string to be written to buffer at offset location]]>
  28891. </doc>
  28892. </method>
  28893. <method name="xdr_int"
  28894. abstract="false" native="false" synchronized="false"
  28895. static="false" final="false" visibility="protected"
  28896. deprecated="not deprecated">
  28897. <param name="i" type="int"/>
  28898. <doc>
  28899. <![CDATA[Puts an integer into the buffer as 4 bytes, big-endian.]]>
  28900. </doc>
  28901. </method>
  28902. <method name="emitToGangliaHosts"
  28903. abstract="false" native="false" synchronized="false"
  28904. static="false" final="false" visibility="protected"
  28905. deprecated="not deprecated">
  28906. <exception name="IOException" type="java.io.IOException"/>
  28907. <doc>
  28908. <![CDATA[Sends Ganglia Metrics to the configured hosts
  28909. @throws IOException]]>
  28910. </doc>
  28911. </method>
  28912. <method name="isSupportSparseMetrics" return="boolean"
  28913. abstract="false" native="false" synchronized="false"
  28914. static="false" final="false" visibility="protected"
  28915. deprecated="not deprecated">
  28916. <doc>
  28917. <![CDATA[@return whether sparse metrics are supported]]>
  28918. </doc>
  28919. </method>
  28920. <field name="LOG" type="org.apache.commons.logging.Log"
  28921. transient="false" volatile="false"
  28922. static="false" final="true" visibility="public"
  28923. deprecated="not deprecated">
  28924. </field>
  28925. <field name="DEFAULT_UNITS" type="java.lang.String"
  28926. transient="false" volatile="false"
  28927. static="true" final="true" visibility="public"
  28928. deprecated="not deprecated">
  28929. </field>
  28930. <field name="DEFAULT_TMAX" type="int"
  28931. transient="false" volatile="false"
  28932. static="true" final="true" visibility="public"
  28933. deprecated="not deprecated">
  28934. </field>
  28935. <field name="DEFAULT_DMAX" type="int"
  28936. transient="false" volatile="false"
  28937. static="true" final="true" visibility="public"
  28938. deprecated="not deprecated">
  28939. </field>
  28940. <field name="DEFAULT_SLOPE" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"
  28941. transient="false" volatile="false"
  28942. static="true" final="true" visibility="public"
  28943. deprecated="not deprecated">
  28944. </field>
  28945. <field name="DEFAULT_PORT" type="int"
  28946. transient="false" volatile="false"
  28947. static="true" final="true" visibility="public"
  28948. deprecated="not deprecated">
  28949. </field>
  28950. <field name="SERVERS_PROPERTY" type="java.lang.String"
  28951. transient="false" volatile="false"
  28952. static="true" final="true" visibility="public"
  28953. deprecated="not deprecated">
  28954. </field>
  28955. <field name="BUFFER_SIZE" type="int"
  28956. transient="false" volatile="false"
  28957. static="true" final="true" visibility="public"
  28958. deprecated="not deprecated">
  28959. </field>
  28960. <field name="SUPPORT_SPARSE_METRICS_PROPERTY" type="java.lang.String"
  28961. transient="false" volatile="false"
  28962. static="true" final="true" visibility="public"
  28963. deprecated="not deprecated">
  28964. </field>
  28965. <field name="SUPPORT_SPARSE_METRICS_DEFAULT" type="boolean"
  28966. transient="false" volatile="false"
  28967. static="true" final="true" visibility="public"
  28968. deprecated="not deprecated">
  28969. </field>
  28970. <field name="EQUAL" type="java.lang.String"
  28971. transient="false" volatile="false"
  28972. static="true" final="true" visibility="public"
  28973. deprecated="not deprecated">
  28974. </field>
  28975. <field name="gangliaMetricVisitor" type="org.apache.hadoop.metrics2.sink.ganglia.GangliaMetricVisitor"
  28976. transient="false" volatile="false"
  28977. static="false" final="true" visibility="protected"
  28978. deprecated="not deprecated">
  28979. <doc>
  28980. <![CDATA[Used for visiting Metrics]]>
  28981. </doc>
  28982. </field>
  28983. <doc>
  28984. <![CDATA[This the base class for Ganglia sink classes using metrics2. Lot of the code
  28985. has been derived from org.apache.hadoop.metrics.ganglia.GangliaContext.
  28986. As per the documentation, sink implementations doesn't have to worry about
  28987. thread safety. Hence the code wasn't written for thread safety and should
  28988. be modified in case the above assumption changes in the future.]]>
  28989. </doc>
  28990. </class>
  28991. <!-- end class org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink -->
  28992. <!-- start class org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType -->
  28993. <class name="AbstractGangliaSink.GangliaConfType" extends="java.lang.Enum"
  28994. abstract="false"
  28995. static="true" final="true" visibility="public"
  28996. deprecated="not deprecated">
  28997. <method name="values" return="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType[]"
  28998. abstract="false" native="false" synchronized="false"
  28999. static="true" final="false" visibility="public"
  29000. deprecated="not deprecated">
  29001. </method>
  29002. <method name="valueOf" return="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType"
  29003. abstract="false" native="false" synchronized="false"
  29004. static="true" final="false" visibility="public"
  29005. deprecated="not deprecated">
  29006. <param name="name" type="java.lang.String"/>
  29007. </method>
  29008. <field name="slope" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType"
  29009. transient="false" volatile="false"
  29010. static="true" final="true" visibility="public"
  29011. deprecated="not deprecated">
  29012. </field>
  29013. <field name="units" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType"
  29014. transient="false" volatile="false"
  29015. static="true" final="true" visibility="public"
  29016. deprecated="not deprecated">
  29017. </field>
  29018. <field name="dmax" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType"
  29019. transient="false" volatile="false"
  29020. static="true" final="true" visibility="public"
  29021. deprecated="not deprecated">
  29022. </field>
  29023. <field name="tmax" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType"
  29024. transient="false" volatile="false"
  29025. static="true" final="true" visibility="public"
  29026. deprecated="not deprecated">
  29027. </field>
  29028. <doc>
  29029. <![CDATA[define enum for various type of conf]]>
  29030. </doc>
  29031. </class>
  29032. <!-- end class org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaConfType -->
  29033. <!-- start class org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope -->
  29034. <class name="AbstractGangliaSink.GangliaSlope" extends="java.lang.Enum"
  29035. abstract="false"
  29036. static="true" final="true" visibility="public"
  29037. deprecated="not deprecated">
  29038. <method name="values" return="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope[]"
  29039. abstract="false" native="false" synchronized="false"
  29040. static="true" final="false" visibility="public"
  29041. deprecated="not deprecated">
  29042. </method>
  29043. <method name="valueOf" return="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"
  29044. abstract="false" native="false" synchronized="false"
  29045. static="true" final="false" visibility="public"
  29046. deprecated="not deprecated">
  29047. <param name="name" type="java.lang.String"/>
  29048. </method>
  29049. <field name="zero" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"
  29050. transient="false" volatile="false"
  29051. static="true" final="true" visibility="public"
  29052. deprecated="not deprecated">
  29053. </field>
  29054. <field name="positive" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"
  29055. transient="false" volatile="false"
  29056. static="true" final="true" visibility="public"
  29057. deprecated="not deprecated">
  29058. </field>
  29059. <field name="negative" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"
  29060. transient="false" volatile="false"
  29061. static="true" final="true" visibility="public"
  29062. deprecated="not deprecated">
  29063. </field>
  29064. <field name="both" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"
  29065. transient="false" volatile="false"
  29066. static="true" final="true" visibility="public"
  29067. deprecated="not deprecated">
  29068. </field>
  29069. <doc>
  29070. <![CDATA[ganglia slope values which equal the ordinal]]>
  29071. </doc>
  29072. </class>
  29073. <!-- end class org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope -->
  29074. <!-- start class org.apache.hadoop.metrics2.sink.ganglia.GangliaSink30 -->
  29075. <class name="GangliaSink30" extends="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink"
  29076. abstract="false"
  29077. static="false" final="false" visibility="public"
  29078. deprecated="not deprecated">
  29079. <constructor name="GangliaSink30"
  29080. static="false" final="false" visibility="public"
  29081. deprecated="not deprecated">
  29082. </constructor>
  29083. <method name="putMetrics"
  29084. abstract="false" native="false" synchronized="false"
  29085. static="false" final="false" visibility="public"
  29086. deprecated="not deprecated">
  29087. <param name="record" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  29088. </method>
  29089. <method name="emitMetric"
  29090. abstract="false" native="false" synchronized="false"
  29091. static="false" final="false" visibility="protected"
  29092. deprecated="not deprecated">
  29093. <param name="groupName" type="java.lang.String"/>
  29094. <param name="name" type="java.lang.String"/>
  29095. <param name="type" type="java.lang.String"/>
  29096. <param name="value" type="java.lang.String"/>
  29097. <param name="gConf" type="org.apache.hadoop.metrics2.sink.ganglia.GangliaConf"/>
  29098. <param name="gSlope" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"/>
  29099. <exception name="IOException" type="java.io.IOException"/>
  29100. <doc>
  29101. <![CDATA[The method sends metrics to Ganglia servers. The method has been taken from
  29102. org.apache.hadoop.metrics.ganglia.GangliaContext30 with minimal changes in
  29103. order to keep it in sync.
  29104. @param groupName The group name of the metric
  29105. @param name The metric name
  29106. @param type The type of the metric
  29107. @param value The value of the metric
  29108. @param gConf The GangliaConf for this metric
  29109. @param gSlope The slope for this metric
  29110. @throws IOException]]>
  29111. </doc>
  29112. </method>
  29113. <field name="LOG" type="org.apache.commons.logging.Log"
  29114. transient="false" volatile="false"
  29115. static="false" final="true" visibility="public"
  29116. deprecated="not deprecated">
  29117. </field>
  29118. <field name="metricsCache" type="org.apache.hadoop.metrics2.util.MetricsCache"
  29119. transient="false" volatile="false"
  29120. static="false" final="false" visibility="protected"
  29121. deprecated="not deprecated">
  29122. </field>
  29123. <doc>
  29124. <![CDATA[This code supports Ganglia 3.0]]>
  29125. </doc>
  29126. </class>
  29127. <!-- end class org.apache.hadoop.metrics2.sink.ganglia.GangliaSink30 -->
  29128. <!-- start class org.apache.hadoop.metrics2.sink.ganglia.GangliaSink31 -->
  29129. <class name="GangliaSink31" extends="org.apache.hadoop.metrics2.sink.ganglia.GangliaSink30"
  29130. abstract="false"
  29131. static="false" final="false" visibility="public"
  29132. deprecated="not deprecated">
  29133. <constructor name="GangliaSink31"
  29134. static="false" final="false" visibility="public"
  29135. deprecated="not deprecated">
  29136. </constructor>
  29137. <method name="emitMetric"
  29138. abstract="false" native="false" synchronized="false"
  29139. static="false" final="false" visibility="protected"
  29140. deprecated="not deprecated">
  29141. <param name="groupName" type="java.lang.String"/>
  29142. <param name="name" type="java.lang.String"/>
  29143. <param name="type" type="java.lang.String"/>
  29144. <param name="value" type="java.lang.String"/>
  29145. <param name="gConf" type="org.apache.hadoop.metrics2.sink.ganglia.GangliaConf"/>
  29146. <param name="gSlope" type="org.apache.hadoop.metrics2.sink.ganglia.AbstractGangliaSink.GangliaSlope"/>
  29147. <exception name="IOException" type="java.io.IOException"/>
  29148. <doc>
  29149. <![CDATA[The method sends metrics to Ganglia servers. The method has been taken from
  29150. org.apache.hadoop.metrics.ganglia.GangliaContext31 with minimal changes in
  29151. order to keep it in sync.
  29152. @param groupName The group name of the metric
  29153. @param name The metric name
  29154. @param type The type of the metric
  29155. @param value The value of the metric
  29156. @param gConf The GangliaConf for this metric
  29157. @param gSlope The slope for this metric
  29158. @throws IOException]]>
  29159. </doc>
  29160. </method>
  29161. <field name="LOG" type="org.apache.commons.logging.Log"
  29162. transient="false" volatile="false"
  29163. static="false" final="true" visibility="public"
  29164. deprecated="not deprecated">
  29165. </field>
  29166. <doc>
  29167. <![CDATA[This code supports Ganglia 3.1]]>
  29168. </doc>
  29169. </class>
  29170. <!-- end class org.apache.hadoop.metrics2.sink.ganglia.GangliaSink31 -->
  29171. </package>
  29172. <package name="org.apache.hadoop.metrics2.source">
  29173. <!-- start class org.apache.hadoop.metrics2.source.JvmMetricsSource -->
  29174. <class name="JvmMetricsSource" extends="java.lang.Object"
  29175. abstract="false"
  29176. static="false" final="false" visibility="public"
  29177. deprecated="not deprecated">
  29178. <implements name="org.apache.hadoop.metrics2.MetricsSource"/>
  29179. <method name="create" return="org.apache.hadoop.metrics2.source.JvmMetricsSource"
  29180. abstract="false" native="false" synchronized="false"
  29181. static="true" final="false" visibility="public"
  29182. deprecated="not deprecated">
  29183. <param name="processName" type="java.lang.String"/>
  29184. <param name="sessionId" type="java.lang.String"/>
  29185. <param name="ms" type="org.apache.hadoop.metrics2.MetricsSystem"/>
  29186. </method>
  29187. <method name="create" return="org.apache.hadoop.metrics2.source.JvmMetricsSource"
  29188. abstract="false" native="false" synchronized="false"
  29189. static="true" final="false" visibility="public"
  29190. deprecated="not deprecated">
  29191. <param name="processName" type="java.lang.String"/>
  29192. <param name="sessionId" type="java.lang.String"/>
  29193. </method>
  29194. <method name="getMetrics"
  29195. abstract="false" native="false" synchronized="false"
  29196. static="false" final="false" visibility="public"
  29197. deprecated="not deprecated">
  29198. <param name="builder" type="org.apache.hadoop.metrics2.MetricsBuilder"/>
  29199. <param name="all" type="boolean"/>
  29200. </method>
  29201. </class>
  29202. <!-- end class org.apache.hadoop.metrics2.source.JvmMetricsSource -->
  29203. </package>
  29204. <package name="org.apache.hadoop.metrics2.util">
  29205. <!-- start class org.apache.hadoop.metrics2.util.Contracts -->
  29206. <class name="Contracts" extends="java.lang.Object"
  29207. abstract="false"
  29208. static="false" final="false" visibility="public"
  29209. deprecated="not deprecated">
  29210. <method name="checkNotNull" return="java.lang.Object"
  29211. abstract="false" native="false" synchronized="false"
  29212. static="true" final="false" visibility="public"
  29213. deprecated="not deprecated">
  29214. <param name="ref" type="java.lang.Object"/>
  29215. <param name="msg" type="java.lang.Object"/>
  29216. <doc>
  29217. <![CDATA[Check that a reference is not null.
  29218. @param <T> type of the reference
  29219. @param ref the reference to check
  29220. @param msg the error message
  29221. @throws NullPointerException if {@code ref} is null
  29222. @return the checked reference for convenience]]>
  29223. </doc>
  29224. </method>
  29225. <method name="checkState"
  29226. abstract="false" native="false" synchronized="false"
  29227. static="true" final="false" visibility="public"
  29228. deprecated="not deprecated">
  29229. <param name="expression" type="boolean"/>
  29230. <param name="msg" type="java.lang.Object"/>
  29231. <doc>
  29232. <![CDATA[Check the state expression for false conditions
  29233. @param expression the boolean expression to check
  29234. @param msg the error message if {@code expression} is false
  29235. @throws IllegalStateException if {@code expression} is false]]>
  29236. </doc>
  29237. </method>
  29238. <method name="checkArg" return="java.lang.Object"
  29239. abstract="false" native="false" synchronized="false"
  29240. static="true" final="false" visibility="public"
  29241. deprecated="not deprecated">
  29242. <param name="arg" type="java.lang.Object"/>
  29243. <param name="expression" type="boolean"/>
  29244. <param name="msg" type="java.lang.Object"/>
  29245. <doc>
  29246. <![CDATA[Check an argument for false conditions
  29247. @param <T> type of the argument
  29248. @param arg the argument to check
  29249. @param expression the boolean expression for the condition
  29250. @param msg the error message if {@code expression} is false
  29251. @return the argument for convenience]]>
  29252. </doc>
  29253. </method>
  29254. <method name="checkArg" return="int"
  29255. abstract="false" native="false" synchronized="false"
  29256. static="true" final="false" visibility="public"
  29257. deprecated="not deprecated">
  29258. <param name="arg" type="int"/>
  29259. <param name="expression" type="boolean"/>
  29260. <param name="msg" type="java.lang.Object"/>
  29261. <doc>
  29262. <![CDATA[Check an argument for false conditions
  29263. @param arg the argument to check
  29264. @param expression the boolean expression for the condition
  29265. @param msg the error message if {@code expression} is false
  29266. @return the argument for convenience]]>
  29267. </doc>
  29268. </method>
  29269. <method name="checkArg" return="long"
  29270. abstract="false" native="false" synchronized="false"
  29271. static="true" final="false" visibility="public"
  29272. deprecated="not deprecated">
  29273. <param name="arg" type="long"/>
  29274. <param name="expression" type="boolean"/>
  29275. <param name="msg" type="java.lang.Object"/>
  29276. <doc>
  29277. <![CDATA[Check an argument for false conditions
  29278. @param arg the argument to check
  29279. @param expression the boolean expression for the condition
  29280. @param msg the error message if {@code expression} is false
  29281. @return the argument for convenience]]>
  29282. </doc>
  29283. </method>
  29284. <method name="checkArg" return="float"
  29285. abstract="false" native="false" synchronized="false"
  29286. static="true" final="false" visibility="public"
  29287. deprecated="not deprecated">
  29288. <param name="arg" type="float"/>
  29289. <param name="expression" type="boolean"/>
  29290. <param name="msg" type="java.lang.Object"/>
  29291. <doc>
  29292. <![CDATA[Check an argument for false conditions
  29293. @param arg the argument to check
  29294. @param expression the boolean expression for the condition
  29295. @param msg the error message if {@code expression} is false
  29296. @return the argument for convenience]]>
  29297. </doc>
  29298. </method>
  29299. <method name="checkArg" return="double"
  29300. abstract="false" native="false" synchronized="false"
  29301. static="true" final="false" visibility="public"
  29302. deprecated="not deprecated">
  29303. <param name="arg" type="double"/>
  29304. <param name="expression" type="boolean"/>
  29305. <param name="msg" type="java.lang.Object"/>
  29306. <doc>
  29307. <![CDATA[Check an argument for false conditions
  29308. @param arg the argument to check
  29309. @param expression the boolean expression for the condition
  29310. @param msg the error message if {@code expression} is false
  29311. @return the argument for convenience]]>
  29312. </doc>
  29313. </method>
  29314. <doc>
  29315. <![CDATA[Utilities for programming by contract (preconditions, postconditions etc.)]]>
  29316. </doc>
  29317. </class>
  29318. <!-- end class org.apache.hadoop.metrics2.util.Contracts -->
  29319. <!-- start class org.apache.hadoop.metrics2.util.MBeans -->
  29320. <class name="MBeans" extends="java.lang.Object"
  29321. abstract="false"
  29322. static="false" final="false" visibility="public"
  29323. deprecated="not deprecated">
  29324. <constructor name="MBeans"
  29325. static="false" final="false" visibility="public"
  29326. deprecated="not deprecated">
  29327. </constructor>
  29328. <method name="register" return="javax.management.ObjectName"
  29329. abstract="false" native="false" synchronized="false"
  29330. static="true" final="false" visibility="public"
  29331. deprecated="not deprecated">
  29332. <param name="serviceName" type="java.lang.String"/>
  29333. <param name="nameName" type="java.lang.String"/>
  29334. <param name="theMbean" type="java.lang.Object"/>
  29335. <doc>
  29336. <![CDATA[Register the MBean using our standard MBeanName format
  29337. "hadoop:service=<serviceName>,name=<nameName>"
  29338. Where the <serviceName> and <nameName> are the supplied parameters
  29339. @param serviceName
  29340. @param nameName
  29341. @param theMbean - the MBean to register
  29342. @return the named used to register the MBean]]>
  29343. </doc>
  29344. </method>
  29345. <method name="unregister"
  29346. abstract="false" native="false" synchronized="false"
  29347. static="true" final="false" visibility="public"
  29348. deprecated="not deprecated">
  29349. <param name="mbeanName" type="javax.management.ObjectName"/>
  29350. </method>
  29351. <doc>
  29352. <![CDATA[This util class provides a method to register an MBean using
  29353. our standard naming convention as described in the doc
  29354. for {link {@link #register(String, String, Object)}]]>
  29355. </doc>
  29356. </class>
  29357. <!-- end class org.apache.hadoop.metrics2.util.MBeans -->
  29358. <!-- start class org.apache.hadoop.metrics2.util.MetricsCache -->
  29359. <class name="MetricsCache" extends="java.lang.Object"
  29360. abstract="false"
  29361. static="false" final="false" visibility="public"
  29362. deprecated="not deprecated">
  29363. <constructor name="MetricsCache"
  29364. static="false" final="false" visibility="public"
  29365. deprecated="not deprecated">
  29366. </constructor>
  29367. <method name="update" return="org.apache.hadoop.metrics2.util.MetricsCache.Record"
  29368. abstract="false" native="false" synchronized="false"
  29369. static="false" final="false" visibility="public"
  29370. deprecated="not deprecated">
  29371. <param name="mr" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  29372. <param name="includingTags" type="boolean"/>
  29373. <doc>
  29374. <![CDATA[Update the cache and return the cached record
  29375. @param mr the update record
  29376. @param includingTags cache tag values (for later lookup by name) if true
  29377. @return the updated cached record]]>
  29378. </doc>
  29379. </method>
  29380. <method name="update" return="org.apache.hadoop.metrics2.util.MetricsCache.Record"
  29381. abstract="false" native="false" synchronized="false"
  29382. static="false" final="false" visibility="public"
  29383. deprecated="not deprecated">
  29384. <param name="mr" type="org.apache.hadoop.metrics2.MetricsRecord"/>
  29385. </method>
  29386. <method name="get" return="org.apache.hadoop.metrics2.util.MetricsCache.Record"
  29387. abstract="false" native="false" synchronized="false"
  29388. static="false" final="false" visibility="public"
  29389. deprecated="not deprecated">
  29390. <param name="name" type="java.lang.String"/>
  29391. <param name="tags" type="java.util.Collection"/>
  29392. <doc>
  29393. <![CDATA[Get the cached record
  29394. @param name of the record
  29395. @param tags of the record
  29396. @return the cached record or null]]>
  29397. </doc>
  29398. </method>
  29399. <doc>
  29400. <![CDATA[A metrics cache for sinks that don't support sparse updates.]]>
  29401. </doc>
  29402. </class>
  29403. <!-- end class org.apache.hadoop.metrics2.util.MetricsCache -->
  29404. <!-- start class org.apache.hadoop.metrics2.util.MetricsCache.Record -->
  29405. <class name="MetricsCache.Record" extends="java.lang.Object"
  29406. abstract="false"
  29407. static="true" final="false" visibility="public"
  29408. deprecated="not deprecated">
  29409. <constructor name="MetricsCache.Record"
  29410. static="false" final="false" visibility="public"
  29411. deprecated="not deprecated">
  29412. </constructor>
  29413. <method name="getTag" return="java.lang.String"
  29414. abstract="false" native="false" synchronized="false"
  29415. static="false" final="false" visibility="public"
  29416. deprecated="not deprecated">
  29417. <param name="key" type="java.lang.String"/>
  29418. <doc>
  29419. <![CDATA[Get the tag value
  29420. @param key name of the tag
  29421. @return the tag value]]>
  29422. </doc>
  29423. </method>
  29424. <method name="getMetric" return="java.lang.Number"
  29425. abstract="false" native="false" synchronized="false"
  29426. static="false" final="false" visibility="public"
  29427. deprecated="not deprecated">
  29428. <param name="key" type="java.lang.String"/>
  29429. <doc>
  29430. <![CDATA[Get the metric value
  29431. @param key name of the metric
  29432. @return the metric value]]>
  29433. </doc>
  29434. </method>
  29435. <method name="getMetricInstance" return="org.apache.hadoop.metrics2.Metric"
  29436. abstract="false" native="false" synchronized="false"
  29437. static="false" final="false" visibility="public"
  29438. deprecated="not deprecated">
  29439. <param name="key" type="java.lang.String"/>
  29440. <doc>
  29441. <![CDATA[Get the metric value
  29442. @param key name of the metric
  29443. @return the metric value]]>
  29444. </doc>
  29445. </method>
  29446. <method name="metrics" return="java.util.Set"
  29447. abstract="false" native="false" synchronized="false"
  29448. static="false" final="false" visibility="public"
  29449. deprecated="not deprecated">
  29450. <doc>
  29451. <![CDATA[@return entry set of metrics]]>
  29452. </doc>
  29453. </method>
  29454. <method name="metricsEntrySet" return="java.util.Set"
  29455. abstract="false" native="false" synchronized="false"
  29456. static="false" final="false" visibility="public"
  29457. deprecated="not deprecated">
  29458. <doc>
  29459. <![CDATA[@return entry set of metrics]]>
  29460. </doc>
  29461. </method>
  29462. <doc>
  29463. <![CDATA[Cached record]]>
  29464. </doc>
  29465. </class>
  29466. <!-- end class org.apache.hadoop.metrics2.util.MetricsCache.Record -->
  29467. <!-- start class org.apache.hadoop.metrics2.util.SampleStat -->
  29468. <class name="SampleStat" extends="java.lang.Object"
  29469. abstract="false"
  29470. static="false" final="false" visibility="public"
  29471. deprecated="not deprecated">
  29472. <constructor name="SampleStat"
  29473. static="false" final="false" visibility="public"
  29474. deprecated="not deprecated">
  29475. <doc>
  29476. <![CDATA[Construct a new running sample stat]]>
  29477. </doc>
  29478. </constructor>
  29479. <method name="reset"
  29480. abstract="false" native="false" synchronized="false"
  29481. static="false" final="false" visibility="public"
  29482. deprecated="not deprecated">
  29483. </method>
  29484. <method name="copyTo"
  29485. abstract="false" native="false" synchronized="false"
  29486. static="false" final="false" visibility="public"
  29487. deprecated="not deprecated">
  29488. <param name="other" type="org.apache.hadoop.metrics2.util.SampleStat"/>
  29489. <doc>
  29490. <![CDATA[Copy the values to other (saves object creation and gc.)
  29491. @param other the destination to hold our values]]>
  29492. </doc>
  29493. </method>
  29494. <method name="add" return="org.apache.hadoop.metrics2.util.SampleStat"
  29495. abstract="false" native="false" synchronized="false"
  29496. static="false" final="false" visibility="public"
  29497. deprecated="not deprecated">
  29498. <param name="x" type="double"/>
  29499. <doc>
  29500. <![CDATA[Add a sample the running stat.
  29501. @param x the sample number
  29502. @return self]]>
  29503. </doc>
  29504. </method>
  29505. <method name="add" return="org.apache.hadoop.metrics2.util.SampleStat"
  29506. abstract="false" native="false" synchronized="false"
  29507. static="false" final="false" visibility="public"
  29508. deprecated="not deprecated">
  29509. <param name="nSamples" type="long"/>
  29510. <param name="x" type="double"/>
  29511. <doc>
  29512. <![CDATA[Add some sample and a partial sum to the running stat.
  29513. Note, min/max is not evaluated using this method.
  29514. @param nSamples number of samples
  29515. @param x the partial sum
  29516. @return self]]>
  29517. </doc>
  29518. </method>
  29519. <method name="numSamples" return="long"
  29520. abstract="false" native="false" synchronized="false"
  29521. static="false" final="false" visibility="public"
  29522. deprecated="not deprecated">
  29523. <doc>
  29524. <![CDATA[@return the total number of samples]]>
  29525. </doc>
  29526. </method>
  29527. <method name="mean" return="double"
  29528. abstract="false" native="false" synchronized="false"
  29529. static="false" final="false" visibility="public"
  29530. deprecated="not deprecated">
  29531. <doc>
  29532. <![CDATA[@return the arithmetic mean of the samples]]>
  29533. </doc>
  29534. </method>
  29535. <method name="variance" return="double"
  29536. abstract="false" native="false" synchronized="false"
  29537. static="false" final="false" visibility="public"
  29538. deprecated="not deprecated">
  29539. <doc>
  29540. <![CDATA[@return the variance of the samples]]>
  29541. </doc>
  29542. </method>
  29543. <method name="stddev" return="double"
  29544. abstract="false" native="false" synchronized="false"
  29545. static="false" final="false" visibility="public"
  29546. deprecated="not deprecated">
  29547. <doc>
  29548. <![CDATA[@return the standard deviation of the samples]]>
  29549. </doc>
  29550. </method>
  29551. <method name="min" return="double"
  29552. abstract="false" native="false" synchronized="false"
  29553. static="false" final="false" visibility="public"
  29554. deprecated="not deprecated">
  29555. <doc>
  29556. <![CDATA[@return the minimum value of the samples]]>
  29557. </doc>
  29558. </method>
  29559. <method name="max" return="double"
  29560. abstract="false" native="false" synchronized="false"
  29561. static="false" final="false" visibility="public"
  29562. deprecated="not deprecated">
  29563. <doc>
  29564. <![CDATA[@return the maximum value of the samples]]>
  29565. </doc>
  29566. </method>
  29567. <doc>
  29568. <![CDATA[Helper to compute running sample stats]]>
  29569. </doc>
  29570. </class>
  29571. <!-- end class org.apache.hadoop.metrics2.util.SampleStat -->
  29572. <!-- start class org.apache.hadoop.metrics2.util.SampleStat.MinMax -->
  29573. <class name="SampleStat.MinMax" extends="java.lang.Object"
  29574. abstract="false"
  29575. static="true" final="false" visibility="public"
  29576. deprecated="not deprecated">
  29577. <constructor name="SampleStat.MinMax"
  29578. static="false" final="false" visibility="public"
  29579. deprecated="not deprecated">
  29580. </constructor>
  29581. <method name="add"
  29582. abstract="false" native="false" synchronized="false"
  29583. static="false" final="false" visibility="public"
  29584. deprecated="not deprecated">
  29585. <param name="value" type="double"/>
  29586. </method>
  29587. <method name="min" return="double"
  29588. abstract="false" native="false" synchronized="false"
  29589. static="false" final="false" visibility="public"
  29590. deprecated="not deprecated">
  29591. </method>
  29592. <method name="max" return="double"
  29593. abstract="false" native="false" synchronized="false"
  29594. static="false" final="false" visibility="public"
  29595. deprecated="not deprecated">
  29596. </method>
  29597. <method name="reset"
  29598. abstract="false" native="false" synchronized="false"
  29599. static="false" final="false" visibility="public"
  29600. deprecated="not deprecated">
  29601. </method>
  29602. <method name="reset"
  29603. abstract="false" native="false" synchronized="false"
  29604. static="false" final="false" visibility="public"
  29605. deprecated="not deprecated">
  29606. <param name="other" type="org.apache.hadoop.metrics2.util.SampleStat.MinMax"/>
  29607. </method>
  29608. <doc>
  29609. <![CDATA[Helper to keep running min/max]]>
  29610. </doc>
  29611. </class>
  29612. <!-- end class org.apache.hadoop.metrics2.util.SampleStat.MinMax -->
  29613. <!-- start class org.apache.hadoop.metrics2.util.Servers -->
  29614. <class name="Servers" extends="java.lang.Object"
  29615. abstract="false"
  29616. static="false" final="false" visibility="public"
  29617. deprecated="not deprecated">
  29618. <method name="parse" return="java.util.List"
  29619. abstract="false" native="false" synchronized="false"
  29620. static="true" final="false" visibility="public"
  29621. deprecated="not deprecated">
  29622. <param name="specs" type="java.lang.String"/>
  29623. <param name="defaultPort" type="int"/>
  29624. <doc>
  29625. <![CDATA[Parses a space and/or comma separated sequence of server specifications
  29626. of the form <i>hostname</i> or <i>hostname:port</i>. If
  29627. the specs string is null, defaults to localhost:defaultPort.
  29628. @param specs server specs (see description)
  29629. @param defaultPort the default port if not specified
  29630. @return a list of InetSocketAddress objects.]]>
  29631. </doc>
  29632. </method>
  29633. <doc>
  29634. <![CDATA[Helpers to handle server addresses]]>
  29635. </doc>
  29636. </class>
  29637. <!-- end class org.apache.hadoop.metrics2.util.Servers -->
  29638. <!-- start class org.apache.hadoop.metrics2.util.TryIterator -->
  29639. <class name="TryIterator" extends="java.lang.Object"
  29640. abstract="true"
  29641. static="false" final="false" visibility="public"
  29642. deprecated="not deprecated">
  29643. <implements name="java.util.Iterator"/>
  29644. <constructor name="TryIterator"
  29645. static="false" final="false" visibility="public"
  29646. deprecated="not deprecated">
  29647. </constructor>
  29648. <method name="tryNext" return="java.lang.Object"
  29649. abstract="true" native="false" synchronized="false"
  29650. static="false" final="false" visibility="protected"
  29651. deprecated="not deprecated">
  29652. <doc>
  29653. <![CDATA[Return the next element. Must call {@link #done()} when done, otherwise
  29654. infinite loop could occur. If this method throws an exception, any
  29655. further attempts to use the iterator would result in an
  29656. {@link IllegalStateException}.
  29657. @return the next element if there is one or return {@link #done()}]]>
  29658. </doc>
  29659. </method>
  29660. <method name="done" return="java.lang.Object"
  29661. abstract="false" native="false" synchronized="false"
  29662. static="false" final="true" visibility="protected"
  29663. deprecated="not deprecated">
  29664. <doc>
  29665. <![CDATA[Implementations of {@link #tryNext} <b>must</b> call this method
  29666. when there are no more elements left in the iteration.
  29667. @return null as a convenience to implement {@link #tryNext()}]]>
  29668. </doc>
  29669. </method>
  29670. <method name="hasNext" return="boolean"
  29671. abstract="false" native="false" synchronized="false"
  29672. static="false" final="true" visibility="public"
  29673. deprecated="not deprecated">
  29674. <doc>
  29675. <![CDATA[@return true if we have a next element or false otherwise.]]>
  29676. </doc>
  29677. </method>
  29678. <method name="next" return="java.lang.Object"
  29679. abstract="false" native="false" synchronized="false"
  29680. static="false" final="true" visibility="public"
  29681. deprecated="not deprecated">
  29682. <doc>
  29683. <![CDATA[@return the next element if we have one.]]>
  29684. </doc>
  29685. </method>
  29686. <method name="current" return="java.lang.Object"
  29687. abstract="false" native="false" synchronized="false"
  29688. static="false" final="true" visibility="public"
  29689. deprecated="not deprecated">
  29690. <doc>
  29691. <![CDATA[@return the current element without advancing the iterator]]>
  29692. </doc>
  29693. </method>
  29694. <method name="remove"
  29695. abstract="false" native="false" synchronized="false"
  29696. static="false" final="true" visibility="public"
  29697. deprecated="not deprecated">
  29698. <doc>
  29699. <![CDATA[Guaranteed to throw UnsupportedOperationException]]>
  29700. </doc>
  29701. </method>
  29702. <doc>
  29703. <![CDATA[A base class for unmodifiable iterators (throws on remove)
  29704. This class also makes writing filtering iterators easier, where the only
  29705. way to discover the end of data is by trying to read it. The same applies
  29706. to writing iterator wrappers around stream read calls.
  29707. One only needs to implement the tryNext() method and call done() when done.
  29708. @param <T> the type of the iterator]]>
  29709. </doc>
  29710. </class>
  29711. <!-- end class org.apache.hadoop.metrics2.util.TryIterator -->
  29712. </package>
  29713. <package name="org.apache.hadoop.net">
  29714. <!-- start class org.apache.hadoop.net.CachedDNSToSwitchMapping -->
  29715. <class name="CachedDNSToSwitchMapping" extends="java.lang.Object"
  29716. abstract="false"
  29717. static="false" final="false" visibility="public"
  29718. deprecated="not deprecated">
  29719. <implements name="org.apache.hadoop.net.DNSToSwitchMapping"/>
  29720. <constructor name="CachedDNSToSwitchMapping" type="org.apache.hadoop.net.DNSToSwitchMapping"
  29721. static="false" final="false" visibility="public"
  29722. deprecated="not deprecated">
  29723. </constructor>
  29724. <method name="resolve" return="java.util.List"
  29725. abstract="false" native="false" synchronized="false"
  29726. static="false" final="false" visibility="public"
  29727. deprecated="not deprecated">
  29728. <param name="names" type="java.util.List"/>
  29729. </method>
  29730. <field name="rawMapping" type="org.apache.hadoop.net.DNSToSwitchMapping"
  29731. transient="false" volatile="false"
  29732. static="false" final="false" visibility="protected"
  29733. deprecated="not deprecated">
  29734. </field>
  29735. <doc>
  29736. <![CDATA[A cached implementation of DNSToSwitchMapping that takes an
  29737. raw DNSToSwitchMapping and stores the resolved network location in
  29738. a cache. The following calls to a resolved network location
  29739. will get its location from the cache.]]>
  29740. </doc>
  29741. </class>
  29742. <!-- end class org.apache.hadoop.net.CachedDNSToSwitchMapping -->
  29743. <!-- start class org.apache.hadoop.net.DNS -->
  29744. <class name="DNS" extends="java.lang.Object"
  29745. abstract="false"
  29746. static="false" final="false" visibility="public"
  29747. deprecated="not deprecated">
  29748. <constructor name="DNS"
  29749. static="false" final="false" visibility="public"
  29750. deprecated="not deprecated">
  29751. </constructor>
  29752. <method name="reverseDns" return="java.lang.String"
  29753. abstract="false" native="false" synchronized="false"
  29754. static="true" final="false" visibility="public"
  29755. deprecated="not deprecated">
  29756. <param name="hostIp" type="java.net.InetAddress"/>
  29757. <param name="ns" type="java.lang.String"/>
  29758. <exception name="NamingException" type="javax.naming.NamingException"/>
  29759. <doc>
  29760. <![CDATA[Returns the hostname associated with the specified IP address by the
  29761. provided nameserver.
  29762. @param hostIp
  29763. The address to reverse lookup
  29764. @param ns
  29765. The host name of a reachable DNS server
  29766. @return The host name associated with the provided IP
  29767. @throws NamingException
  29768. If a NamingException is encountered]]>
  29769. </doc>
  29770. </method>
  29771. <method name="getIPs" return="java.lang.String[]"
  29772. abstract="false" native="false" synchronized="false"
  29773. static="true" final="false" visibility="public"
  29774. deprecated="not deprecated">
  29775. <param name="strInterface" type="java.lang.String"/>
  29776. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  29777. <doc>
  29778. <![CDATA[Like {@link DNS#getIPs(String, boolean)}, but returns all
  29779. IPs associated with the given interface and its subinterfaces.]]>
  29780. </doc>
  29781. </method>
  29782. <method name="getIPs" return="java.lang.String[]"
  29783. abstract="false" native="false" synchronized="false"
  29784. static="true" final="false" visibility="public"
  29785. deprecated="not deprecated">
  29786. <param name="strInterface" type="java.lang.String"/>
  29787. <param name="returnSubinterfaces" type="boolean"/>
  29788. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  29789. <doc>
  29790. <![CDATA[Returns all the IPs associated with the provided interface, if any, in
  29791. textual form.
  29792. @param strInterface
  29793. The name of the network interface or subinterface to query
  29794. (eg eth0 or eth0:0) or the string "default"
  29795. @param returnSubinterfaces
  29796. Whether to return IPs associated with subinterfaces of
  29797. the given interface
  29798. @return A string vector of all the IPs associated with the provided
  29799. interface
  29800. @throws UnknownHostException
  29801. If an UnknownHostException is encountered in querying the
  29802. default interface or the given interface can not be found]]>
  29803. </doc>
  29804. </method>
  29805. <method name="getDefaultIP" return="java.lang.String"
  29806. abstract="false" native="false" synchronized="false"
  29807. static="true" final="false" visibility="public"
  29808. deprecated="not deprecated">
  29809. <param name="strInterface" type="java.lang.String"/>
  29810. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  29811. <doc>
  29812. <![CDATA[Returns the first available IP address associated with the provided
  29813. network interface
  29814. @param strInterface
  29815. The name of the network interface or subinterface to query
  29816. (e.g. eth0 or eth0:0) or the string "default"
  29817. @return The IP address in text form
  29818. @throws UnknownHostException
  29819. If one is encountered in querying the default interface]]>
  29820. </doc>
  29821. </method>
  29822. <method name="getHosts" return="java.lang.String[]"
  29823. abstract="false" native="false" synchronized="false"
  29824. static="true" final="false" visibility="public"
  29825. deprecated="not deprecated">
  29826. <param name="strInterface" type="java.lang.String"/>
  29827. <param name="nameserver" type="java.lang.String"/>
  29828. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  29829. <doc>
  29830. <![CDATA[Returns all the host names associated by the provided nameserver with the
  29831. address bound to the specified network interface
  29832. @param strInterface
  29833. The name of the network interface or subinterface to query
  29834. (e.g. eth0 or eth0:0) or the string "default"
  29835. @param nameserver
  29836. The DNS host name
  29837. @return A string vector of all host names associated with the IPs tied to
  29838. the specified interface
  29839. @throws UnknownHostException]]>
  29840. </doc>
  29841. </method>
  29842. <method name="getHosts" return="java.lang.String[]"
  29843. abstract="false" native="false" synchronized="false"
  29844. static="true" final="false" visibility="public"
  29845. deprecated="not deprecated">
  29846. <param name="strInterface" type="java.lang.String"/>
  29847. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  29848. <doc>
  29849. <![CDATA[Returns all the host names associated by the default nameserver with the
  29850. address bound to the specified network interface
  29851. @param strInterface
  29852. The name of the network interface to query (e.g. eth0)
  29853. @return The list of host names associated with IPs bound to the network
  29854. interface
  29855. @throws UnknownHostException
  29856. If one is encountered while querying the deault interface]]>
  29857. </doc>
  29858. </method>
  29859. <method name="getDefaultHost" return="java.lang.String"
  29860. abstract="false" native="false" synchronized="false"
  29861. static="true" final="false" visibility="public"
  29862. deprecated="not deprecated">
  29863. <param name="strInterface" type="java.lang.String"/>
  29864. <param name="nameserver" type="java.lang.String"/>
  29865. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  29866. <doc>
  29867. <![CDATA[Returns the default (first) host name associated by the provided
  29868. nameserver with the address bound to the specified network interface
  29869. @param strInterface
  29870. The name of the network interface to query (e.g. eth0)
  29871. @param nameserver
  29872. The DNS host name
  29873. @return The default host names associated with IPs bound to the network
  29874. interface
  29875. @throws UnknownHostException
  29876. If one is encountered while querying the deault interface]]>
  29877. </doc>
  29878. </method>
  29879. <method name="getDefaultHost" return="java.lang.String"
  29880. abstract="false" native="false" synchronized="false"
  29881. static="true" final="false" visibility="public"
  29882. deprecated="not deprecated">
  29883. <param name="strInterface" type="java.lang.String"/>
  29884. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  29885. <doc>
  29886. <![CDATA[Returns the default (first) host name associated by the default
  29887. nameserver with the address bound to the specified network interface
  29888. @param strInterface
  29889. The name of the network interface to query (e.g. eth0)
  29890. @return The default host name associated with IPs bound to the network
  29891. interface
  29892. @throws UnknownHostException
  29893. If one is encountered while querying the deault interface]]>
  29894. </doc>
  29895. </method>
  29896. <field name="LOG" type="org.apache.commons.logging.Log"
  29897. transient="false" volatile="false"
  29898. static="true" final="true" visibility="public"
  29899. deprecated="not deprecated">
  29900. </field>
  29901. <doc>
  29902. <![CDATA[A class that provides direct and reverse lookup functionalities, allowing
  29903. the querying of specific network interfaces or nameservers.]]>
  29904. </doc>
  29905. </class>
  29906. <!-- end class org.apache.hadoop.net.DNS -->
  29907. <!-- start interface org.apache.hadoop.net.DNSToSwitchMapping -->
  29908. <interface name="DNSToSwitchMapping" abstract="true"
  29909. static="false" final="false" visibility="public"
  29910. deprecated="not deprecated">
  29911. <method name="resolve" return="java.util.List"
  29912. abstract="false" native="false" synchronized="false"
  29913. static="false" final="false" visibility="public"
  29914. deprecated="not deprecated">
  29915. <param name="names" type="java.util.List"/>
  29916. <doc>
  29917. <![CDATA[Resolves a list of DNS-names/IP-addresses and returns back a list of
  29918. switch information (network paths). One-to-one correspondence must be
  29919. maintained between the elements in the lists.
  29920. Consider an element in the argument list - x.y.com. The switch information
  29921. that is returned must be a network path of the form /foo/rack,
  29922. where / is the root, and 'foo' is the switch where 'rack' is connected.
  29923. Note the hostname/ip-address is not part of the returned path.
  29924. The network topology of the cluster would determine the number of
  29925. components in the network path.
  29926. @param names
  29927. @return list of resolved network paths]]>
  29928. </doc>
  29929. </method>
  29930. <doc>
  29931. <![CDATA[An interface that should be implemented to allow pluggable
  29932. DNS-name/IP-address to RackID resolvers.]]>
  29933. </doc>
  29934. </interface>
  29935. <!-- end interface org.apache.hadoop.net.DNSToSwitchMapping -->
  29936. <!-- start class org.apache.hadoop.net.NetUtils -->
  29937. <class name="NetUtils" extends="java.lang.Object"
  29938. abstract="false"
  29939. static="false" final="false" visibility="public"
  29940. deprecated="not deprecated">
  29941. <constructor name="NetUtils"
  29942. static="false" final="false" visibility="public"
  29943. deprecated="not deprecated">
  29944. </constructor>
  29945. <method name="getSocketFactory" return="javax.net.SocketFactory"
  29946. abstract="false" native="false" synchronized="false"
  29947. static="true" final="false" visibility="public"
  29948. deprecated="not deprecated">
  29949. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  29950. <param name="clazz" type="java.lang.Class"/>
  29951. <doc>
  29952. <![CDATA[Get the socket factory for the given class according to its
  29953. configuration parameter
  29954. <tt>hadoop.rpc.socket.factory.class.&lt;ClassName&gt;</tt>. When no
  29955. such parameter exists then fall back on the default socket factory as
  29956. configured by <tt>hadoop.rpc.socket.factory.class.default</tt>. If
  29957. this default socket factory is not configured, then fall back on the JVM
  29958. default socket factory.
  29959. @param conf the configuration
  29960. @param clazz the class (usually a {@link VersionedProtocol})
  29961. @return a socket factory]]>
  29962. </doc>
  29963. </method>
  29964. <method name="getDefaultSocketFactory" return="javax.net.SocketFactory"
  29965. abstract="false" native="false" synchronized="false"
  29966. static="true" final="false" visibility="public"
  29967. deprecated="not deprecated">
  29968. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  29969. <doc>
  29970. <![CDATA[Get the default socket factory as specified by the configuration
  29971. parameter <tt>hadoop.rpc.socket.factory.default</tt>
  29972. @param conf the configuration
  29973. @return the default socket factory as specified in the configuration or
  29974. the JVM default socket factory if the configuration does not
  29975. contain a default socket factory property.]]>
  29976. </doc>
  29977. </method>
  29978. <method name="getSocketFactoryFromProperty" return="javax.net.SocketFactory"
  29979. abstract="false" native="false" synchronized="false"
  29980. static="true" final="false" visibility="public"
  29981. deprecated="not deprecated">
  29982. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  29983. <param name="propValue" type="java.lang.String"/>
  29984. <doc>
  29985. <![CDATA[Get the socket factory corresponding to the given proxy URI. If the
  29986. given proxy URI corresponds to an absence of configuration parameter,
  29987. returns null. If the URI is malformed raises an exception.
  29988. @param propValue the property which is the class name of the
  29989. SocketFactory to instantiate; assumed non null and non empty.
  29990. @return a socket factory as defined in the property value.]]>
  29991. </doc>
  29992. </method>
  29993. <method name="createSocketAddr" return="java.net.InetSocketAddress"
  29994. abstract="false" native="false" synchronized="false"
  29995. static="true" final="false" visibility="public"
  29996. deprecated="not deprecated">
  29997. <param name="target" type="java.lang.String"/>
  29998. <doc>
  29999. <![CDATA[Util method to build socket addr from either:
  30000. <host>:<post>
  30001. <fs>://<host>:<port>/<path>]]>
  30002. </doc>
  30003. </method>
  30004. <method name="createSocketAddr" return="java.net.InetSocketAddress"
  30005. abstract="false" native="false" synchronized="false"
  30006. static="true" final="false" visibility="public"
  30007. deprecated="not deprecated">
  30008. <param name="target" type="java.lang.String"/>
  30009. <param name="defaultPort" type="int"/>
  30010. <doc>
  30011. <![CDATA[Util method to build socket addr from either:
  30012. <host>
  30013. <host>:<post>
  30014. <fs>://<host>:<port>/<path>]]>
  30015. </doc>
  30016. </method>
  30017. <method name="makeSocketAddr" return="java.net.InetSocketAddress"
  30018. abstract="false" native="false" synchronized="false"
  30019. static="true" final="false" visibility="public"
  30020. deprecated="not deprecated">
  30021. <param name="host" type="java.lang.String"/>
  30022. <param name="port" type="int"/>
  30023. <doc>
  30024. <![CDATA[Create a socket address with the given host and port. The hostname
  30025. might be replaced with another host that was set via
  30026. {@link #addStaticResolution(String, String)}. The value of
  30027. hadoop.security.token.service.use_ip will determine whether the
  30028. standard java host resolver is used, or if the fully qualified resolver
  30029. is used.
  30030. @param host the hostname or IP use to instantiate the object
  30031. @param port the port number
  30032. @return InetSocketAddress]]>
  30033. </doc>
  30034. </method>
  30035. <method name="getCanonicalUri" return="java.net.URI"
  30036. abstract="false" native="false" synchronized="false"
  30037. static="true" final="false" visibility="public"
  30038. deprecated="not deprecated">
  30039. <param name="uri" type="java.net.URI"/>
  30040. <param name="defaultPort" type="int"/>
  30041. <doc>
  30042. <![CDATA[Resolve the uri's hostname and add the default port if not in the uri
  30043. @param uri to resolve
  30044. @param defaultPort if none is given
  30045. @return URI
  30046. @throws UnknownHostException]]>
  30047. </doc>
  30048. </method>
  30049. <method name="getServerAddress" return="java.lang.String"
  30050. abstract="false" native="false" synchronized="false"
  30051. static="true" final="false" visibility="public"
  30052. deprecated="not deprecated">
  30053. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  30054. <param name="oldBindAddressName" type="java.lang.String"/>
  30055. <param name="oldPortName" type="java.lang.String"/>
  30056. <param name="newBindAddressName" type="java.lang.String"/>
  30057. <doc>
  30058. <![CDATA[Handle the transition from pairs of attributes specifying a host and port
  30059. to a single colon separated one.
  30060. @param conf the configuration to check
  30061. @param oldBindAddressName the old address attribute name
  30062. @param oldPortName the old port attribute name
  30063. @param newBindAddressName the new combined name
  30064. @return the complete address from the configuration]]>
  30065. </doc>
  30066. </method>
  30067. <method name="addStaticResolution"
  30068. abstract="false" native="false" synchronized="false"
  30069. static="true" final="false" visibility="public"
  30070. deprecated="not deprecated">
  30071. <param name="host" type="java.lang.String"/>
  30072. <param name="resolvedName" type="java.lang.String"/>
  30073. <doc>
  30074. <![CDATA[Adds a static resolution for host. This can be used for setting up
  30075. hostnames with names that are fake to point to a well known host. For e.g.
  30076. in some testcases we require to have daemons with different hostnames
  30077. running on the same machine. In order to create connections to these
  30078. daemons, one can set up mappings from those hostnames to "localhost".
  30079. {@link NetUtils#getStaticResolution(String)} can be used to query for
  30080. the actual hostname.
  30081. @param host
  30082. @param resolvedName]]>
  30083. </doc>
  30084. </method>
  30085. <method name="getStaticResolution" return="java.lang.String"
  30086. abstract="false" native="false" synchronized="false"
  30087. static="true" final="false" visibility="public"
  30088. deprecated="not deprecated">
  30089. <param name="host" type="java.lang.String"/>
  30090. <doc>
  30091. <![CDATA[Retrieves the resolved name for the passed host. The resolved name must
  30092. have been set earlier using
  30093. {@link NetUtils#addStaticResolution(String, String)}
  30094. @param host
  30095. @return the resolution]]>
  30096. </doc>
  30097. </method>
  30098. <method name="getAllStaticResolutions" return="java.util.List"
  30099. abstract="false" native="false" synchronized="false"
  30100. static="true" final="false" visibility="public"
  30101. deprecated="not deprecated">
  30102. <doc>
  30103. <![CDATA[This is used to get all the resolutions that were added using
  30104. {@link NetUtils#addStaticResolution(String, String)}. The return
  30105. value is a List each element of which contains an array of String
  30106. of the form String[0]=hostname, String[1]=resolved-hostname
  30107. @return the list of resolutions]]>
  30108. </doc>
  30109. </method>
  30110. <method name="getConnectAddress" return="java.net.InetSocketAddress"
  30111. abstract="false" native="false" synchronized="false"
  30112. static="true" final="false" visibility="public"
  30113. deprecated="not deprecated">
  30114. <param name="server" type="org.apache.hadoop.ipc.Server"/>
  30115. <doc>
  30116. <![CDATA[Returns InetSocketAddress that a client can use to
  30117. connect to the server. Server.getListenerAddress() is not correct when
  30118. the server binds to "0.0.0.0". This returns "127.0.0.1:port" when
  30119. the getListenerAddress() returns "0.0.0.0:port".
  30120. @param server
  30121. @return socket address that a client can use to connect to the server.]]>
  30122. </doc>
  30123. </method>
  30124. <method name="getInputStream" return="java.io.InputStream"
  30125. abstract="false" native="false" synchronized="false"
  30126. static="true" final="false" visibility="public"
  30127. deprecated="not deprecated">
  30128. <param name="socket" type="java.net.Socket"/>
  30129. <exception name="IOException" type="java.io.IOException"/>
  30130. <doc>
  30131. <![CDATA[Same as getInputStream(socket, socket.getSoTimeout()).<br><br>
  30132. From documentation for {@link #getInputStream(Socket, long)}:<br>
  30133. Returns InputStream for the socket. If the socket has an associated
  30134. SocketChannel then it returns a
  30135. {@link SocketInputStream} with the given timeout. If the socket does not
  30136. have a channel, {@link Socket#getInputStream()} is returned. In the later
  30137. case, the timeout argument is ignored and the timeout set with
  30138. {@link Socket#setSoTimeout(int)} applies for reads.<br><br>
  30139. Any socket created using socket factories returned by {@link NetUtils},
  30140. must use this interface instead of {@link Socket#getInputStream()}.
  30141. @see #getInputStream(Socket, long)
  30142. @param socket
  30143. @return InputStream for reading from the socket.
  30144. @throws IOException]]>
  30145. </doc>
  30146. </method>
  30147. <method name="getInputStream" return="java.io.InputStream"
  30148. abstract="false" native="false" synchronized="false"
  30149. static="true" final="false" visibility="public"
  30150. deprecated="not deprecated">
  30151. <param name="socket" type="java.net.Socket"/>
  30152. <param name="timeout" type="long"/>
  30153. <exception name="IOException" type="java.io.IOException"/>
  30154. <doc>
  30155. <![CDATA[Returns InputStream for the socket. If the socket has an associated
  30156. SocketChannel then it returns a
  30157. {@link SocketInputStream} with the given timeout. If the socket does not
  30158. have a channel, {@link Socket#getInputStream()} is returned. In the later
  30159. case, the timeout argument is ignored and the timeout set with
  30160. {@link Socket#setSoTimeout(int)} applies for reads.<br><br>
  30161. Any socket created using socket factories returned by {@link NetUtils},
  30162. must use this interface instead of {@link Socket#getInputStream()}.
  30163. @see Socket#getChannel()
  30164. @param socket
  30165. @param timeout timeout in milliseconds. This may not always apply. zero
  30166. for waiting as long as necessary.
  30167. @return InputStream for reading from the socket.
  30168. @throws IOException]]>
  30169. </doc>
  30170. </method>
  30171. <method name="getOutputStream" return="java.io.OutputStream"
  30172. abstract="false" native="false" synchronized="false"
  30173. static="true" final="false" visibility="public"
  30174. deprecated="not deprecated">
  30175. <param name="socket" type="java.net.Socket"/>
  30176. <exception name="IOException" type="java.io.IOException"/>
  30177. <doc>
  30178. <![CDATA[Same as getOutputStream(socket, 0). Timeout of zero implies write will
  30179. wait until data is available.<br><br>
  30180. From documentation for {@link #getOutputStream(Socket, long)} : <br>
  30181. Returns OutputStream for the socket. If the socket has an associated
  30182. SocketChannel then it returns a
  30183. {@link SocketOutputStream} with the given timeout. If the socket does not
  30184. have a channel, {@link Socket#getOutputStream()} is returned. In the later
  30185. case, the timeout argument is ignored and the write will wait until
  30186. data is available.<br><br>
  30187. Any socket created using socket factories returned by {@link NetUtils},
  30188. must use this interface instead of {@link Socket#getOutputStream()}.
  30189. @see #getOutputStream(Socket, long)
  30190. @param socket
  30191. @return OutputStream for writing to the socket.
  30192. @throws IOException]]>
  30193. </doc>
  30194. </method>
  30195. <method name="getOutputStream" return="java.io.OutputStream"
  30196. abstract="false" native="false" synchronized="false"
  30197. static="true" final="false" visibility="public"
  30198. deprecated="not deprecated">
  30199. <param name="socket" type="java.net.Socket"/>
  30200. <param name="timeout" type="long"/>
  30201. <exception name="IOException" type="java.io.IOException"/>
  30202. <doc>
  30203. <![CDATA[Returns OutputStream for the socket. If the socket has an associated
  30204. SocketChannel then it returns a
  30205. {@link SocketOutputStream} with the given timeout. If the socket does not
  30206. have a channel, {@link Socket#getOutputStream()} is returned. In the later
  30207. case, the timeout argument is ignored and the write will wait until
  30208. data is available.<br><br>
  30209. Any socket created using socket factories returned by {@link NetUtils},
  30210. must use this interface instead of {@link Socket#getOutputStream()}.
  30211. @see Socket#getChannel()
  30212. @param socket
  30213. @param timeout timeout in milliseconds. This may not always apply. zero
  30214. for waiting as long as necessary.
  30215. @return OutputStream for writing to the socket.
  30216. @throws IOException]]>
  30217. </doc>
  30218. </method>
  30219. <method name="connect"
  30220. abstract="false" native="false" synchronized="false"
  30221. static="true" final="false" visibility="public"
  30222. deprecated="not deprecated">
  30223. <param name="socket" type="java.net.Socket"/>
  30224. <param name="address" type="java.net.SocketAddress"/>
  30225. <param name="timeout" type="int"/>
  30226. <exception name="IOException" type="java.io.IOException"/>
  30227. <doc>
  30228. <![CDATA[This is a drop-in replacement for
  30229. {@link Socket#connect(SocketAddress, int)}.
  30230. In the case of normal sockets that don't have associated channels, this
  30231. just invokes <code>socket.connect(endpoint, timeout)</code>. If
  30232. <code>socket.getChannel()</code> returns a non-null channel,
  30233. connect is implemented using Hadoop's selectors. This is done mainly
  30234. to avoid Sun's connect implementation from creating thread-local
  30235. selectors, since Hadoop does not have control on when these are closed
  30236. and could end up taking all the available file descriptors.
  30237. @see java.net.Socket#connect(java.net.SocketAddress, int)
  30238. @param socket
  30239. @param address the remote address
  30240. @param timeout timeout in milliseconds]]>
  30241. </doc>
  30242. </method>
  30243. <method name="connect"
  30244. abstract="false" native="false" synchronized="false"
  30245. static="true" final="false" visibility="public"
  30246. deprecated="not deprecated">
  30247. <param name="socket" type="java.net.Socket"/>
  30248. <param name="endpoint" type="java.net.SocketAddress"/>
  30249. <param name="localAddr" type="java.net.SocketAddress"/>
  30250. <param name="timeout" type="int"/>
  30251. <exception name="IOException" type="java.io.IOException"/>
  30252. <doc>
  30253. <![CDATA[Like {@link NetUtils#connect(Socket, SocketAddress, int)} but
  30254. also takes a local address and port to bind the socket to.
  30255. @param socket
  30256. @param endpoint the remote address
  30257. @param localAddr the local address to bind the socket to
  30258. @param timeout timeout in milliseconds]]>
  30259. </doc>
  30260. </method>
  30261. <method name="normalizeHostName" return="java.lang.String"
  30262. abstract="false" native="false" synchronized="false"
  30263. static="true" final="false" visibility="public"
  30264. deprecated="not deprecated">
  30265. <param name="name" type="java.lang.String"/>
  30266. <doc>
  30267. <![CDATA[Given a string representation of a host, return its ip address
  30268. in textual presentation.
  30269. @param name a string representation of a host:
  30270. either a textual representation its IP address or its host name
  30271. @return its IP address in the string format]]>
  30272. </doc>
  30273. </method>
  30274. <method name="normalizeHostNames" return="java.util.List"
  30275. abstract="false" native="false" synchronized="false"
  30276. static="true" final="false" visibility="public"
  30277. deprecated="not deprecated">
  30278. <param name="names" type="java.util.Collection"/>
  30279. <doc>
  30280. <![CDATA[Given a collection of string representation of hosts, return a list of
  30281. corresponding IP addresses in the textual representation.
  30282. @param names a collection of string representations of hosts
  30283. @return a list of corresponding IP addresses in the string format
  30284. @see #normalizeHostName(String)]]>
  30285. </doc>
  30286. </method>
  30287. <method name="verifyHostnames"
  30288. abstract="false" native="false" synchronized="false"
  30289. static="true" final="false" visibility="public"
  30290. deprecated="not deprecated">
  30291. <param name="names" type="java.lang.String[]"/>
  30292. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  30293. <doc>
  30294. <![CDATA[Performs a sanity check on the list of hostnames/IPs to verify they at least
  30295. appear to be valid.
  30296. @param names - List of hostnames/IPs
  30297. @throws UnknownHostException]]>
  30298. </doc>
  30299. </method>
  30300. <method name="getLocalInetAddress" return="java.net.InetAddress"
  30301. abstract="false" native="false" synchronized="false"
  30302. static="true" final="false" visibility="public"
  30303. deprecated="not deprecated">
  30304. <param name="host" type="java.lang.String"/>
  30305. <exception name="SocketException" type="java.net.SocketException"/>
  30306. <doc>
  30307. <![CDATA[Checks if {@code host} is a local host name and return {@link InetAddress}
  30308. corresponding to that address.
  30309. @param host the specified host
  30310. @return a valid local {@link InetAddress} or null
  30311. @throws SocketException if an I/O error occurs]]>
  30312. </doc>
  30313. </method>
  30314. <method name="isValidSubnet" return="boolean"
  30315. abstract="false" native="false" synchronized="false"
  30316. static="true" final="false" visibility="public"
  30317. deprecated="not deprecated">
  30318. <param name="subnet" type="java.lang.String"/>
  30319. <doc>
  30320. <![CDATA[@return true if the given string is a subnet specified
  30321. using CIDR notation, false otherwise]]>
  30322. </doc>
  30323. </method>
  30324. <method name="getIPs" return="java.util.List"
  30325. abstract="false" native="false" synchronized="false"
  30326. static="true" final="false" visibility="public"
  30327. deprecated="not deprecated">
  30328. <param name="subnet" type="java.lang.String"/>
  30329. <param name="returnSubinterfaces" type="boolean"/>
  30330. <doc>
  30331. <![CDATA[Return an InetAddress for each interface that matches the
  30332. given subnet specified using CIDR notation.
  30333. @param subnet subnet specified using CIDR notation
  30334. @param returnSubinterfaces
  30335. whether to return IPs associated with subinterfaces
  30336. @throws IllegalArgumentException if subnet is invalid]]>
  30337. </doc>
  30338. </method>
  30339. </class>
  30340. <!-- end class org.apache.hadoop.net.NetUtils -->
  30341. <!-- start class org.apache.hadoop.net.NetworkTopology -->
  30342. <class name="NetworkTopology" extends="java.lang.Object"
  30343. abstract="false"
  30344. static="false" final="false" visibility="public"
  30345. deprecated="not deprecated">
  30346. <constructor name="NetworkTopology"
  30347. static="false" final="false" visibility="public"
  30348. deprecated="not deprecated">
  30349. </constructor>
  30350. <method name="getInstance" return="org.apache.hadoop.net.NetworkTopology"
  30351. abstract="false" native="false" synchronized="false"
  30352. static="true" final="false" visibility="public"
  30353. deprecated="not deprecated">
  30354. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  30355. <doc>
  30356. <![CDATA[Get an instance of NetworkTopology based on the value of the configuration
  30357. parameter net.topology.impl.
  30358. @param conf the configuration to be used
  30359. @return an instance of NetworkTopology]]>
  30360. </doc>
  30361. </method>
  30362. <method name="add"
  30363. abstract="false" native="false" synchronized="false"
  30364. static="false" final="false" visibility="public"
  30365. deprecated="not deprecated">
  30366. <param name="node" type="org.apache.hadoop.net.Node"/>
  30367. <doc>
  30368. <![CDATA[Add a leaf node
  30369. Update node counter & rack counter if neccessary
  30370. @param node
  30371. node to be added
  30372. @exception IllegalArgumentException if add a node to a leave
  30373. or node to be added is not a leaf]]>
  30374. </doc>
  30375. </method>
  30376. <method name="getNodeForNetworkLocation" return="org.apache.hadoop.net.Node"
  30377. abstract="false" native="false" synchronized="false"
  30378. static="false" final="false" visibility="protected"
  30379. deprecated="not deprecated">
  30380. <param name="node" type="org.apache.hadoop.net.Node"/>
  30381. <doc>
  30382. <![CDATA[Return a reference to the node given its string representation.
  30383. Default implementation delegates to {@link #getNode(String)}.
  30384. <p>To be overridden in subclasses for specific NetworkTopology
  30385. implementations, as alternative to overriding the full {@link #add(Node)}
  30386. method.
  30387. @param node The string representation of this node's network location is
  30388. used to retrieve a Node object.
  30389. @return a reference to the node; null if the node is not in the tree
  30390. @see #add(Node)
  30391. @see #getNode(String)]]>
  30392. </doc>
  30393. </method>
  30394. <method name="remove"
  30395. abstract="false" native="false" synchronized="false"
  30396. static="false" final="false" visibility="public"
  30397. deprecated="not deprecated">
  30398. <param name="node" type="org.apache.hadoop.net.Node"/>
  30399. <doc>
  30400. <![CDATA[Remove a node
  30401. Update node counter & rack counter if neccessary
  30402. @param node
  30403. node to be removed]]>
  30404. </doc>
  30405. </method>
  30406. <method name="contains" return="boolean"
  30407. abstract="false" native="false" synchronized="false"
  30408. static="false" final="false" visibility="public"
  30409. deprecated="not deprecated">
  30410. <param name="node" type="org.apache.hadoop.net.Node"/>
  30411. <doc>
  30412. <![CDATA[Check if the tree contains node <i>node</i>
  30413. @param node
  30414. a node
  30415. @return true if <i>node</i> is already in the tree; false otherwise]]>
  30416. </doc>
  30417. </method>
  30418. <method name="getNode" return="org.apache.hadoop.net.Node"
  30419. abstract="false" native="false" synchronized="false"
  30420. static="false" final="false" visibility="public"
  30421. deprecated="not deprecated">
  30422. <param name="loc" type="java.lang.String"/>
  30423. <doc>
  30424. <![CDATA[Given a string representation of a node, return its reference
  30425. @param loc
  30426. a path-like string representation of a node
  30427. @return a reference to the node; null if the node is not in the tree]]>
  30428. </doc>
  30429. </method>
  30430. <method name="getRack" return="java.lang.String"
  30431. abstract="false" native="false" synchronized="false"
  30432. static="false" final="false" visibility="public"
  30433. deprecated="not deprecated">
  30434. <param name="loc" type="java.lang.String"/>
  30435. <doc>
  30436. <![CDATA[Given a string representation of a rack for a specific network
  30437. location
  30438. To be overridden in subclasses for specific NetworkTopology
  30439. implementations, as alternative to overriding the full
  30440. {@link #getRack(String)} method.
  30441. @param loc
  30442. a path-like string representation of a network location
  30443. @return a rack string]]>
  30444. </doc>
  30445. </method>
  30446. <method name="getNumOfRacks" return="int"
  30447. abstract="false" native="false" synchronized="false"
  30448. static="false" final="false" visibility="public"
  30449. deprecated="not deprecated">
  30450. <doc>
  30451. <![CDATA[Return the total number of racks]]>
  30452. </doc>
  30453. </method>
  30454. <method name="getNumOfLeaves" return="int"
  30455. abstract="false" native="false" synchronized="false"
  30456. static="false" final="false" visibility="public"
  30457. deprecated="not deprecated">
  30458. <doc>
  30459. <![CDATA[Return the total number of nodes]]>
  30460. </doc>
  30461. </method>
  30462. <method name="getDistance" return="int"
  30463. abstract="false" native="false" synchronized="false"
  30464. static="false" final="false" visibility="public"
  30465. deprecated="not deprecated">
  30466. <param name="node1" type="org.apache.hadoop.net.Node"/>
  30467. <param name="node2" type="org.apache.hadoop.net.Node"/>
  30468. <doc>
  30469. <![CDATA[Return the distance between two nodes
  30470. It is assumed that the distance from one node to its parent is 1
  30471. The distance between two nodes is calculated by summing up their distances
  30472. to their closest common ancestor.
  30473. @param node1 one node
  30474. @param node2 another node
  30475. @return the distance between node1 and node2
  30476. node1 or node2 do not belong to the cluster]]>
  30477. </doc>
  30478. </method>
  30479. <method name="isOnSameRack" return="boolean"
  30480. abstract="false" native="false" synchronized="false"
  30481. static="false" final="false" visibility="public"
  30482. deprecated="not deprecated">
  30483. <param name="node1" type="org.apache.hadoop.net.Node"/>
  30484. <param name="node2" type="org.apache.hadoop.net.Node"/>
  30485. <doc>
  30486. <![CDATA[Check if two nodes are on the same rack
  30487. @param node1 one node
  30488. @param node2 another node
  30489. @return true if node1 and node2 are pm the same rack; false otherwise
  30490. @exception IllegalArgumentException when either node1 or node2 is null, or
  30491. node1 or node2 do not belong to the cluster]]>
  30492. </doc>
  30493. </method>
  30494. <method name="isNodeGroupAware" return="boolean"
  30495. abstract="false" native="false" synchronized="false"
  30496. static="false" final="false" visibility="public"
  30497. deprecated="not deprecated">
  30498. <doc>
  30499. <![CDATA[Check if network topology is aware of NodeGroup]]>
  30500. </doc>
  30501. </method>
  30502. <method name="isOnSameNodeGroup" return="boolean"
  30503. abstract="false" native="false" synchronized="false"
  30504. static="false" final="false" visibility="public"
  30505. deprecated="not deprecated">
  30506. <param name="node1" type="org.apache.hadoop.net.Node"/>
  30507. <param name="node2" type="org.apache.hadoop.net.Node"/>
  30508. <doc>
  30509. <![CDATA[Return false directly as not aware of NodeGroup, to be override in sub-class]]>
  30510. </doc>
  30511. </method>
  30512. <method name="isSameParents" return="boolean"
  30513. abstract="false" native="false" synchronized="false"
  30514. static="false" final="false" visibility="protected"
  30515. deprecated="not deprecated">
  30516. <param name="node1" type="org.apache.hadoop.net.Node"/>
  30517. <param name="node2" type="org.apache.hadoop.net.Node"/>
  30518. <doc>
  30519. <![CDATA[Compare the parents of each node for equality
  30520. <p>To be overridden in subclasses for specific NetworkTopology
  30521. implementations, as alternative to overriding the full
  30522. {@link #isOnSameRack(Node, Node)} method.
  30523. @param node1 the first node to compare
  30524. @param node2 the second node to compare
  30525. @return true if their parents are equal, false otherwise
  30526. @see #isOnSameRack(Node, Node)]]>
  30527. </doc>
  30528. </method>
  30529. <method name="chooseRandom" return="org.apache.hadoop.net.Node"
  30530. abstract="false" native="false" synchronized="false"
  30531. static="false" final="false" visibility="public"
  30532. deprecated="not deprecated">
  30533. <param name="scope" type="java.lang.String"/>
  30534. <doc>
  30535. <![CDATA[randomly choose one node from <i>scope</i>
  30536. if scope starts with ~, choose one from the all nodes except for the
  30537. ones in <i>scope</i>; otherwise, choose one from <i>scope</i>
  30538. @param scope range of nodes from which a node will be choosen
  30539. @return the choosen node]]>
  30540. </doc>
  30541. </method>
  30542. <method name="getLeaves" return="java.util.List"
  30543. abstract="false" native="false" synchronized="false"
  30544. static="false" final="false" visibility="public"
  30545. deprecated="not deprecated">
  30546. <param name="scope" type="java.lang.String"/>
  30547. <doc>
  30548. <![CDATA[return leaves in <i>scope</i>
  30549. @param scope a path string
  30550. @return leaves nodes under specific scope]]>
  30551. </doc>
  30552. </method>
  30553. <method name="countNumOfAvailableNodes" return="int"
  30554. abstract="false" native="false" synchronized="false"
  30555. static="false" final="false" visibility="public"
  30556. deprecated="not deprecated">
  30557. <param name="scope" type="java.lang.String"/>
  30558. <param name="excludedNodes" type="java.util.Collection"/>
  30559. <doc>
  30560. <![CDATA[return the number of leaves in <i>scope</i> but not in <i>excludedNodes</i>
  30561. if scope starts with ~, return the number of nodes that are not
  30562. in <i>scope</i> and <i>excludedNodes</i>;
  30563. @param scope a path string that may start with ~
  30564. @param excludedNodes a list of nodes
  30565. @return number of available nodes]]>
  30566. </doc>
  30567. </method>
  30568. <method name="toString" return="java.lang.String"
  30569. abstract="false" native="false" synchronized="false"
  30570. static="false" final="false" visibility="public"
  30571. deprecated="not deprecated">
  30572. <doc>
  30573. <![CDATA[convert a network tree to a string]]>
  30574. </doc>
  30575. </method>
  30576. <method name="getFirstHalf" return="java.lang.String"
  30577. abstract="false" native="false" synchronized="false"
  30578. static="true" final="false" visibility="public"
  30579. deprecated="not deprecated">
  30580. <param name="networkLocation" type="java.lang.String"/>
  30581. <doc>
  30582. <![CDATA[Divide networklocation string into two parts by last separator, and get the
  30583. first part here.
  30584. @param networkLocation
  30585. @return]]>
  30586. </doc>
  30587. </method>
  30588. <method name="getLastHalf" return="java.lang.String"
  30589. abstract="false" native="false" synchronized="false"
  30590. static="true" final="false" visibility="public"
  30591. deprecated="not deprecated">
  30592. <param name="networkLocation" type="java.lang.String"/>
  30593. <doc>
  30594. <![CDATA[Divide networklocation string into two parts by last separator, and get the
  30595. second part here.
  30596. @param networkLocation
  30597. @return]]>
  30598. </doc>
  30599. </method>
  30600. <method name="swap"
  30601. abstract="false" native="false" synchronized="false"
  30602. static="true" final="false" visibility="protected"
  30603. deprecated="not deprecated">
  30604. <param name="nodes" type="org.apache.hadoop.net.Node[]"/>
  30605. <param name="i" type="int"/>
  30606. <param name="j" type="int"/>
  30607. </method>
  30608. <method name="pseudoSortByDistance"
  30609. abstract="false" native="false" synchronized="false"
  30610. static="false" final="false" visibility="public"
  30611. deprecated="not deprecated">
  30612. <param name="reader" type="org.apache.hadoop.net.Node"/>
  30613. <param name="nodes" type="org.apache.hadoop.net.Node[]"/>
  30614. <doc>
  30615. <![CDATA[Sort nodes array by their distances to <i>reader</i>
  30616. It linearly scans the array, if a local node is found, swap it with
  30617. the first element of the array.
  30618. If a local rack node is found, swap it with the first element following
  30619. the local node.
  30620. If neither local node or local rack node is found, put a random replica
  30621. location at postion 0.
  30622. It leaves the rest nodes untouched.]]>
  30623. </doc>
  30624. </method>
  30625. <field name="DEFAULT_RACK" type="java.lang.String"
  30626. transient="false" volatile="false"
  30627. static="true" final="true" visibility="public"
  30628. deprecated="not deprecated">
  30629. </field>
  30630. <field name="DEFAULT_HOST_LEVEL" type="int"
  30631. transient="false" volatile="false"
  30632. static="true" final="true" visibility="public"
  30633. deprecated="not deprecated">
  30634. </field>
  30635. <field name="LOG" type="org.apache.commons.logging.Log"
  30636. transient="false" volatile="false"
  30637. static="true" final="true" visibility="public"
  30638. deprecated="not deprecated">
  30639. </field>
  30640. <field name="numOfRacks" type="int"
  30641. transient="false" volatile="false"
  30642. static="false" final="false" visibility="protected"
  30643. deprecated="not deprecated">
  30644. </field>
  30645. <field name="netlock" type="java.util.concurrent.locks.ReadWriteLock"
  30646. transient="false" volatile="false"
  30647. static="false" final="false" visibility="protected"
  30648. deprecated="not deprecated">
  30649. </field>
  30650. <field name="r" type="java.util.Random"
  30651. transient="false" volatile="false"
  30652. static="true" final="true" visibility="protected"
  30653. deprecated="not deprecated">
  30654. </field>
  30655. <doc>
  30656. <![CDATA[The class represents a cluster of computer with a tree hierarchical
  30657. network topology.
  30658. For example, a cluster may be consists of many data centers filled
  30659. with racks of computers.
  30660. In a network topology, leaves represent data nodes (computers) and inner
  30661. nodes represent switches/routers that manage traffic in/out of data centers
  30662. or racks.]]>
  30663. </doc>
  30664. </class>
  30665. <!-- end class org.apache.hadoop.net.NetworkTopology -->
  30666. <!-- start class org.apache.hadoop.net.NetworkTopology.InvalidTopologyException -->
  30667. <class name="NetworkTopology.InvalidTopologyException" extends="java.lang.RuntimeException"
  30668. abstract="false"
  30669. static="true" final="false" visibility="public"
  30670. deprecated="not deprecated">
  30671. <constructor name="NetworkTopology.InvalidTopologyException" type="java.lang.String"
  30672. static="false" final="false" visibility="public"
  30673. deprecated="not deprecated">
  30674. </constructor>
  30675. </class>
  30676. <!-- end class org.apache.hadoop.net.NetworkTopology.InvalidTopologyException -->
  30677. <!-- start class org.apache.hadoop.net.NetworkTopologyWithNodeGroup -->
  30678. <class name="NetworkTopologyWithNodeGroup" extends="org.apache.hadoop.net.NetworkTopology"
  30679. abstract="false"
  30680. static="false" final="false" visibility="public"
  30681. deprecated="not deprecated">
  30682. <constructor name="NetworkTopologyWithNodeGroup"
  30683. static="false" final="false" visibility="public"
  30684. deprecated="not deprecated">
  30685. </constructor>
  30686. <method name="getNodeForNetworkLocation" return="org.apache.hadoop.net.Node"
  30687. abstract="false" native="false" synchronized="false"
  30688. static="false" final="false" visibility="protected"
  30689. deprecated="not deprecated">
  30690. <param name="node" type="org.apache.hadoop.net.Node"/>
  30691. </method>
  30692. <method name="getRack" return="java.lang.String"
  30693. abstract="false" native="false" synchronized="false"
  30694. static="false" final="false" visibility="public"
  30695. deprecated="not deprecated">
  30696. <param name="loc" type="java.lang.String"/>
  30697. </method>
  30698. <method name="getNodeGroup" return="java.lang.String"
  30699. abstract="false" native="false" synchronized="false"
  30700. static="false" final="false" visibility="public"
  30701. deprecated="not deprecated">
  30702. <param name="loc" type="java.lang.String"/>
  30703. <doc>
  30704. <![CDATA[Given a string representation of a node group for a specific network
  30705. location
  30706. @param loc
  30707. a path-like string representation of a network location
  30708. @return a node group string]]>
  30709. </doc>
  30710. </method>
  30711. <method name="isOnSameRack" return="boolean"
  30712. abstract="false" native="false" synchronized="false"
  30713. static="false" final="false" visibility="public"
  30714. deprecated="not deprecated">
  30715. <param name="node1" type="org.apache.hadoop.net.Node"/>
  30716. <param name="node2" type="org.apache.hadoop.net.Node"/>
  30717. </method>
  30718. <method name="isOnSameNodeGroup" return="boolean"
  30719. abstract="false" native="false" synchronized="false"
  30720. static="false" final="false" visibility="public"
  30721. deprecated="not deprecated">
  30722. <param name="node1" type="org.apache.hadoop.net.Node"/>
  30723. <param name="node2" type="org.apache.hadoop.net.Node"/>
  30724. <doc>
  30725. <![CDATA[Check if two nodes are on the same node group (hypervisor) The
  30726. assumption here is: each nodes are leaf nodes.
  30727. @param node1
  30728. one node (can be null)
  30729. @param node2
  30730. another node (can be null)
  30731. @return true if node1 and node2 are on the same node group; false
  30732. otherwise
  30733. @exception IllegalArgumentException
  30734. when either node1 or node2 is null, or node1 or node2 do
  30735. not belong to the cluster]]>
  30736. </doc>
  30737. </method>
  30738. <method name="isNodeGroupAware" return="boolean"
  30739. abstract="false" native="false" synchronized="false"
  30740. static="false" final="false" visibility="public"
  30741. deprecated="not deprecated">
  30742. <doc>
  30743. <![CDATA[Check if network topology is aware of NodeGroup]]>
  30744. </doc>
  30745. </method>
  30746. <method name="add"
  30747. abstract="false" native="false" synchronized="false"
  30748. static="false" final="false" visibility="public"
  30749. deprecated="not deprecated">
  30750. <param name="node" type="org.apache.hadoop.net.Node"/>
  30751. <doc>
  30752. <![CDATA[Add a leaf node
  30753. Update node counter & rack counter if necessary
  30754. @param node node to be added; can be null
  30755. @exception IllegalArgumentException if add a node to a leave
  30756. or node to be added is not a leaf]]>
  30757. </doc>
  30758. </method>
  30759. <method name="remove"
  30760. abstract="false" native="false" synchronized="false"
  30761. static="false" final="false" visibility="public"
  30762. deprecated="not deprecated">
  30763. <param name="node" type="org.apache.hadoop.net.Node"/>
  30764. <doc>
  30765. <![CDATA[Remove a node
  30766. Update node counter and rack counter if necessary
  30767. @param node node to be removed; can be null]]>
  30768. </doc>
  30769. </method>
  30770. <method name="pseudoSortByDistance"
  30771. abstract="false" native="false" synchronized="false"
  30772. static="false" final="false" visibility="public"
  30773. deprecated="not deprecated">
  30774. <param name="reader" type="org.apache.hadoop.net.Node"/>
  30775. <param name="nodes" type="org.apache.hadoop.net.Node[]"/>
  30776. <doc>
  30777. <![CDATA[Sort nodes array by their distances to <i>reader</i>
  30778. It linearly scans the array, if a local node is found, swap it with
  30779. the first element of the array.
  30780. If a local node group node is found, swap it with the first element
  30781. following the local node.
  30782. If a local rack node is found, swap it with the first element following
  30783. the local node group node.
  30784. If neither local node, node group node or local rack node is found, put a
  30785. random replica location at position 0.
  30786. It leaves the rest nodes untouched.
  30787. @param reader the node that wishes to read a block from one of the nodes
  30788. @param nodes the list of nodes containing data for the reader]]>
  30789. </doc>
  30790. </method>
  30791. <field name="DEFAULT_NODEGROUP" type="java.lang.String"
  30792. transient="false" volatile="false"
  30793. static="true" final="true" visibility="public"
  30794. deprecated="not deprecated">
  30795. </field>
  30796. <doc>
  30797. <![CDATA[The class extends NetworkTopology to represents a cluster of computer with
  30798. a 4-layers hierarchical network topology.
  30799. In this network topology, leaves represent data nodes (computers) and inner
  30800. nodes represent switches/routers that manage traffic in/out of data centers,
  30801. racks or physical host (with virtual switch).
  30802. @see NetworkTopology]]>
  30803. </doc>
  30804. </class>
  30805. <!-- end class org.apache.hadoop.net.NetworkTopologyWithNodeGroup -->
  30806. <!-- start interface org.apache.hadoop.net.Node -->
  30807. <interface name="Node" abstract="true"
  30808. static="false" final="false" visibility="public"
  30809. deprecated="not deprecated">
  30810. <method name="getNetworkLocation" return="java.lang.String"
  30811. abstract="false" native="false" synchronized="false"
  30812. static="false" final="false" visibility="public"
  30813. deprecated="not deprecated">
  30814. <doc>
  30815. <![CDATA[Return the string representation of this node's network location]]>
  30816. </doc>
  30817. </method>
  30818. <method name="setNetworkLocation"
  30819. abstract="false" native="false" synchronized="false"
  30820. static="false" final="false" visibility="public"
  30821. deprecated="not deprecated">
  30822. <param name="location" type="java.lang.String"/>
  30823. <doc>
  30824. <![CDATA[Set the node's network location]]>
  30825. </doc>
  30826. </method>
  30827. <method name="getName" return="java.lang.String"
  30828. abstract="false" native="false" synchronized="false"
  30829. static="false" final="false" visibility="public"
  30830. deprecated="not deprecated">
  30831. <doc>
  30832. <![CDATA[Return this node's name]]>
  30833. </doc>
  30834. </method>
  30835. <method name="getParent" return="org.apache.hadoop.net.Node"
  30836. abstract="false" native="false" synchronized="false"
  30837. static="false" final="false" visibility="public"
  30838. deprecated="not deprecated">
  30839. <doc>
  30840. <![CDATA[Return this node's parent]]>
  30841. </doc>
  30842. </method>
  30843. <method name="setParent"
  30844. abstract="false" native="false" synchronized="false"
  30845. static="false" final="false" visibility="public"
  30846. deprecated="not deprecated">
  30847. <param name="parent" type="org.apache.hadoop.net.Node"/>
  30848. <doc>
  30849. <![CDATA[Set this node's parent]]>
  30850. </doc>
  30851. </method>
  30852. <method name="getLevel" return="int"
  30853. abstract="false" native="false" synchronized="false"
  30854. static="false" final="false" visibility="public"
  30855. deprecated="not deprecated">
  30856. <doc>
  30857. <![CDATA[Return this node's level in the tree.
  30858. E.g. the root of a tree returns 0 and its children return 1]]>
  30859. </doc>
  30860. </method>
  30861. <method name="setLevel"
  30862. abstract="false" native="false" synchronized="false"
  30863. static="false" final="false" visibility="public"
  30864. deprecated="not deprecated">
  30865. <param name="i" type="int"/>
  30866. <doc>
  30867. <![CDATA[Set this node's level in the tree.]]>
  30868. </doc>
  30869. </method>
  30870. <doc>
  30871. <![CDATA[The interface defines a node in a network topology.
  30872. A node may be a leave representing a data node or an inner
  30873. node representing a datacenter or rack.
  30874. Each data has a name and its location in the network is
  30875. decided by a string with syntax similar to a file name.
  30876. For example, a data node's name is hostname:port# and if it's located at
  30877. rack "orange" in datacenter "dog", the string representation of its
  30878. network location is /dog/orange]]>
  30879. </doc>
  30880. </interface>
  30881. <!-- end interface org.apache.hadoop.net.Node -->
  30882. <!-- start class org.apache.hadoop.net.NodeBase -->
  30883. <class name="NodeBase" extends="java.lang.Object"
  30884. abstract="false"
  30885. static="false" final="false" visibility="public"
  30886. deprecated="not deprecated">
  30887. <implements name="org.apache.hadoop.net.Node"/>
  30888. <constructor name="NodeBase"
  30889. static="false" final="false" visibility="public"
  30890. deprecated="not deprecated">
  30891. <doc>
  30892. <![CDATA[Default constructor]]>
  30893. </doc>
  30894. </constructor>
  30895. <constructor name="NodeBase" type="java.lang.String"
  30896. static="false" final="false" visibility="public"
  30897. deprecated="not deprecated">
  30898. <doc>
  30899. <![CDATA[Construct a node from its path
  30900. @param path
  30901. a concatenation of this node's location, the path seperator, and its name]]>
  30902. </doc>
  30903. </constructor>
  30904. <constructor name="NodeBase" type="java.lang.String, java.lang.String"
  30905. static="false" final="false" visibility="public"
  30906. deprecated="not deprecated">
  30907. <doc>
  30908. <![CDATA[Construct a node from its name and its location
  30909. @param name this node's name
  30910. @param location this node's location]]>
  30911. </doc>
  30912. </constructor>
  30913. <constructor name="NodeBase" type="java.lang.String, java.lang.String, org.apache.hadoop.net.Node, int"
  30914. static="false" final="false" visibility="public"
  30915. deprecated="not deprecated">
  30916. <doc>
  30917. <![CDATA[Construct a node from its name and its location
  30918. @param name this node's name
  30919. @param location this node's location
  30920. @param parent this node's parent node
  30921. @param level this node's level in the tree]]>
  30922. </doc>
  30923. </constructor>
  30924. <method name="getName" return="java.lang.String"
  30925. abstract="false" native="false" synchronized="false"
  30926. static="false" final="false" visibility="public"
  30927. deprecated="not deprecated">
  30928. <doc>
  30929. <![CDATA[Return this node's name]]>
  30930. </doc>
  30931. </method>
  30932. <method name="getNetworkLocation" return="java.lang.String"
  30933. abstract="false" native="false" synchronized="false"
  30934. static="false" final="false" visibility="public"
  30935. deprecated="not deprecated">
  30936. <doc>
  30937. <![CDATA[Return this node's network location]]>
  30938. </doc>
  30939. </method>
  30940. <method name="setNetworkLocation"
  30941. abstract="false" native="false" synchronized="false"
  30942. static="false" final="false" visibility="public"
  30943. deprecated="not deprecated">
  30944. <param name="location" type="java.lang.String"/>
  30945. <doc>
  30946. <![CDATA[Set this node's network location]]>
  30947. </doc>
  30948. </method>
  30949. <method name="getPath" return="java.lang.String"
  30950. abstract="false" native="false" synchronized="false"
  30951. static="true" final="false" visibility="public"
  30952. deprecated="not deprecated">
  30953. <param name="node" type="org.apache.hadoop.net.Node"/>
  30954. <doc>
  30955. <![CDATA[Return this node's path]]>
  30956. </doc>
  30957. </method>
  30958. <method name="toString" return="java.lang.String"
  30959. abstract="false" native="false" synchronized="false"
  30960. static="false" final="false" visibility="public"
  30961. deprecated="not deprecated">
  30962. <doc>
  30963. <![CDATA[Return this node's string representation]]>
  30964. </doc>
  30965. </method>
  30966. <method name="normalize" return="java.lang.String"
  30967. abstract="false" native="false" synchronized="false"
  30968. static="true" final="false" visibility="public"
  30969. deprecated="not deprecated">
  30970. <param name="path" type="java.lang.String"/>
  30971. <doc>
  30972. <![CDATA[Normalize a path]]>
  30973. </doc>
  30974. </method>
  30975. <method name="getParent" return="org.apache.hadoop.net.Node"
  30976. abstract="false" native="false" synchronized="false"
  30977. static="false" final="false" visibility="public"
  30978. deprecated="not deprecated">
  30979. <doc>
  30980. <![CDATA[Return this node's parent]]>
  30981. </doc>
  30982. </method>
  30983. <method name="setParent"
  30984. abstract="false" native="false" synchronized="false"
  30985. static="false" final="false" visibility="public"
  30986. deprecated="not deprecated">
  30987. <param name="parent" type="org.apache.hadoop.net.Node"/>
  30988. <doc>
  30989. <![CDATA[Set this node's parent]]>
  30990. </doc>
  30991. </method>
  30992. <method name="getLevel" return="int"
  30993. abstract="false" native="false" synchronized="false"
  30994. static="false" final="false" visibility="public"
  30995. deprecated="not deprecated">
  30996. <doc>
  30997. <![CDATA[Return this node's level in the tree.
  30998. E.g. the root of a tree returns 0 and its children return 1]]>
  30999. </doc>
  31000. </method>
  31001. <method name="setLevel"
  31002. abstract="false" native="false" synchronized="false"
  31003. static="false" final="false" visibility="public"
  31004. deprecated="not deprecated">
  31005. <param name="level" type="int"/>
  31006. <doc>
  31007. <![CDATA[Set this node's level in the tree]]>
  31008. </doc>
  31009. </method>
  31010. <field name="PATH_SEPARATOR" type="char"
  31011. transient="false" volatile="false"
  31012. static="true" final="true" visibility="public"
  31013. deprecated="not deprecated">
  31014. </field>
  31015. <field name="PATH_SEPARATOR_STR" type="java.lang.String"
  31016. transient="false" volatile="false"
  31017. static="true" final="true" visibility="public"
  31018. deprecated="not deprecated">
  31019. </field>
  31020. <field name="ROOT" type="java.lang.String"
  31021. transient="false" volatile="false"
  31022. static="true" final="true" visibility="public"
  31023. deprecated="not deprecated">
  31024. </field>
  31025. <field name="name" type="java.lang.String"
  31026. transient="false" volatile="false"
  31027. static="false" final="false" visibility="protected"
  31028. deprecated="not deprecated">
  31029. </field>
  31030. <field name="location" type="java.lang.String"
  31031. transient="false" volatile="false"
  31032. static="false" final="false" visibility="protected"
  31033. deprecated="not deprecated">
  31034. </field>
  31035. <field name="level" type="int"
  31036. transient="false" volatile="false"
  31037. static="false" final="false" visibility="protected"
  31038. deprecated="not deprecated">
  31039. </field>
  31040. <field name="parent" type="org.apache.hadoop.net.Node"
  31041. transient="false" volatile="false"
  31042. static="false" final="false" visibility="protected"
  31043. deprecated="not deprecated">
  31044. </field>
  31045. <doc>
  31046. <![CDATA[A base class that implements interface Node]]>
  31047. </doc>
  31048. </class>
  31049. <!-- end class org.apache.hadoop.net.NodeBase -->
  31050. <!-- start class org.apache.hadoop.net.ScriptBasedMapping -->
  31051. <class name="ScriptBasedMapping" extends="org.apache.hadoop.net.CachedDNSToSwitchMapping"
  31052. abstract="false"
  31053. static="false" final="true" visibility="public"
  31054. deprecated="not deprecated">
  31055. <implements name="org.apache.hadoop.conf.Configurable"/>
  31056. <constructor name="ScriptBasedMapping"
  31057. static="false" final="false" visibility="public"
  31058. deprecated="not deprecated">
  31059. </constructor>
  31060. <constructor name="ScriptBasedMapping" type="org.apache.hadoop.conf.Configuration"
  31061. static="false" final="false" visibility="public"
  31062. deprecated="not deprecated">
  31063. </constructor>
  31064. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  31065. abstract="false" native="false" synchronized="false"
  31066. static="false" final="false" visibility="public"
  31067. deprecated="not deprecated">
  31068. </method>
  31069. <method name="setConf"
  31070. abstract="false" native="false" synchronized="false"
  31071. static="false" final="false" visibility="public"
  31072. deprecated="not deprecated">
  31073. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  31074. </method>
  31075. <doc>
  31076. <![CDATA[This class implements the {@link DNSToSwitchMapping} interface using a
  31077. script configured via topology.script.file.name .]]>
  31078. </doc>
  31079. </class>
  31080. <!-- end class org.apache.hadoop.net.ScriptBasedMapping -->
  31081. <!-- start class org.apache.hadoop.net.SocketInputStream -->
  31082. <class name="SocketInputStream" extends="java.io.InputStream"
  31083. abstract="false"
  31084. static="false" final="false" visibility="public"
  31085. deprecated="not deprecated">
  31086. <implements name="java.nio.channels.ReadableByteChannel"/>
  31087. <constructor name="SocketInputStream" type="java.nio.channels.ReadableByteChannel, long"
  31088. static="false" final="false" visibility="public"
  31089. deprecated="not deprecated">
  31090. <exception name="IOException" type="java.io.IOException"/>
  31091. <doc>
  31092. <![CDATA[Create a new input stream with the given timeout. If the timeout
  31093. is zero, it will be treated as infinite timeout. The socket's
  31094. channel will be configured to be non-blocking.
  31095. @param channel
  31096. Channel for reading, should also be a {@link SelectableChannel}.
  31097. The channel will be configured to be non-blocking.
  31098. @param timeout timeout in milliseconds. must not be negative.
  31099. @throws IOException]]>
  31100. </doc>
  31101. </constructor>
  31102. <constructor name="SocketInputStream" type="java.net.Socket, long"
  31103. static="false" final="false" visibility="public"
  31104. deprecated="not deprecated">
  31105. <exception name="IOException" type="java.io.IOException"/>
  31106. <doc>
  31107. <![CDATA[Same as SocketInputStream(socket.getChannel(), timeout): <br><br>
  31108. Create a new input stream with the given timeout. If the timeout
  31109. is zero, it will be treated as infinite timeout. The socket's
  31110. channel will be configured to be non-blocking.
  31111. @see SocketInputStream#SocketInputStream(ReadableByteChannel, long)
  31112. @param socket should have a channel associated with it.
  31113. @param timeout timeout timeout in milliseconds. must not be negative.
  31114. @throws IOException]]>
  31115. </doc>
  31116. </constructor>
  31117. <constructor name="SocketInputStream" type="java.net.Socket"
  31118. static="false" final="false" visibility="public"
  31119. deprecated="not deprecated">
  31120. <exception name="IOException" type="java.io.IOException"/>
  31121. <doc>
  31122. <![CDATA[Same as SocketInputStream(socket.getChannel(), socket.getSoTimeout())
  31123. :<br><br>
  31124. Create a new input stream with the given timeout. If the timeout
  31125. is zero, it will be treated as infinite timeout. The socket's
  31126. channel will be configured to be non-blocking.
  31127. @see SocketInputStream#SocketInputStream(ReadableByteChannel, long)
  31128. @param socket should have a channel associated with it.
  31129. @throws IOException]]>
  31130. </doc>
  31131. </constructor>
  31132. <method name="read" return="int"
  31133. abstract="false" native="false" synchronized="false"
  31134. static="false" final="false" visibility="public"
  31135. deprecated="not deprecated">
  31136. <exception name="IOException" type="java.io.IOException"/>
  31137. </method>
  31138. <method name="read" return="int"
  31139. abstract="false" native="false" synchronized="false"
  31140. static="false" final="false" visibility="public"
  31141. deprecated="not deprecated">
  31142. <param name="b" type="byte[]"/>
  31143. <param name="off" type="int"/>
  31144. <param name="len" type="int"/>
  31145. <exception name="IOException" type="java.io.IOException"/>
  31146. </method>
  31147. <method name="close"
  31148. abstract="false" native="false" synchronized="true"
  31149. static="false" final="false" visibility="public"
  31150. deprecated="not deprecated">
  31151. <exception name="IOException" type="java.io.IOException"/>
  31152. </method>
  31153. <method name="getChannel" return="java.nio.channels.ReadableByteChannel"
  31154. abstract="false" native="false" synchronized="false"
  31155. static="false" final="false" visibility="public"
  31156. deprecated="not deprecated">
  31157. <doc>
  31158. <![CDATA[Returns underlying channel used by inputstream.
  31159. This is useful in certain cases like channel for
  31160. {@link FileChannel#transferFrom(ReadableByteChannel, long, long)}.]]>
  31161. </doc>
  31162. </method>
  31163. <method name="isOpen" return="boolean"
  31164. abstract="false" native="false" synchronized="false"
  31165. static="false" final="false" visibility="public"
  31166. deprecated="not deprecated">
  31167. </method>
  31168. <method name="read" return="int"
  31169. abstract="false" native="false" synchronized="false"
  31170. static="false" final="false" visibility="public"
  31171. deprecated="not deprecated">
  31172. <param name="dst" type="java.nio.ByteBuffer"/>
  31173. <exception name="IOException" type="java.io.IOException"/>
  31174. </method>
  31175. <method name="waitForReadable"
  31176. abstract="false" native="false" synchronized="false"
  31177. static="false" final="false" visibility="public"
  31178. deprecated="not deprecated">
  31179. <exception name="IOException" type="java.io.IOException"/>
  31180. <doc>
  31181. <![CDATA[waits for the underlying channel to be ready for reading.
  31182. The timeout specified for this stream applies to this wait.
  31183. @throws SocketTimeoutException
  31184. if select on the channel times out.
  31185. @throws IOException
  31186. if any other I/O error occurs.]]>
  31187. </doc>
  31188. </method>
  31189. <doc>
  31190. <![CDATA[This implements an input stream that can have a timeout while reading.
  31191. This sets non-blocking flag on the socket channel.
  31192. So after create this object, read() on
  31193. {@link Socket#getInputStream()} and write() on
  31194. {@link Socket#getOutputStream()} for the associated socket will throw
  31195. IllegalBlockingModeException.
  31196. Please use {@link SocketOutputStream} for writing.]]>
  31197. </doc>
  31198. </class>
  31199. <!-- end class org.apache.hadoop.net.SocketInputStream -->
  31200. <!-- start class org.apache.hadoop.net.SocketOutputStream -->
  31201. <class name="SocketOutputStream" extends="java.io.OutputStream"
  31202. abstract="false"
  31203. static="false" final="false" visibility="public"
  31204. deprecated="not deprecated">
  31205. <implements name="java.nio.channels.WritableByteChannel"/>
  31206. <constructor name="SocketOutputStream" type="java.nio.channels.WritableByteChannel, long"
  31207. static="false" final="false" visibility="public"
  31208. deprecated="not deprecated">
  31209. <exception name="IOException" type="java.io.IOException"/>
  31210. <doc>
  31211. <![CDATA[Create a new ouput stream with the given timeout. If the timeout
  31212. is zero, it will be treated as infinite timeout. The socket's
  31213. channel will be configured to be non-blocking.
  31214. @param channel
  31215. Channel for writing, should also be a {@link SelectableChannel}.
  31216. The channel will be configured to be non-blocking.
  31217. @param timeout timeout in milliseconds. must not be negative.
  31218. @throws IOException]]>
  31219. </doc>
  31220. </constructor>
  31221. <constructor name="SocketOutputStream" type="java.net.Socket, long"
  31222. static="false" final="false" visibility="public"
  31223. deprecated="not deprecated">
  31224. <exception name="IOException" type="java.io.IOException"/>
  31225. <doc>
  31226. <![CDATA[Same as SocketOutputStream(socket.getChannel(), timeout):<br><br>
  31227. Create a new ouput stream with the given timeout. If the timeout
  31228. is zero, it will be treated as infinite timeout. The socket's
  31229. channel will be configured to be non-blocking.
  31230. @see SocketOutputStream#SocketOutputStream(WritableByteChannel, long)
  31231. @param socket should have a channel associated with it.
  31232. @param timeout timeout timeout in milliseconds. must not be negative.
  31233. @throws IOException]]>
  31234. </doc>
  31235. </constructor>
  31236. <method name="write"
  31237. abstract="false" native="false" synchronized="false"
  31238. static="false" final="false" visibility="public"
  31239. deprecated="not deprecated">
  31240. <param name="b" type="int"/>
  31241. <exception name="IOException" type="java.io.IOException"/>
  31242. </method>
  31243. <method name="write"
  31244. abstract="false" native="false" synchronized="false"
  31245. static="false" final="false" visibility="public"
  31246. deprecated="not deprecated">
  31247. <param name="b" type="byte[]"/>
  31248. <param name="off" type="int"/>
  31249. <param name="len" type="int"/>
  31250. <exception name="IOException" type="java.io.IOException"/>
  31251. </method>
  31252. <method name="close"
  31253. abstract="false" native="false" synchronized="true"
  31254. static="false" final="false" visibility="public"
  31255. deprecated="not deprecated">
  31256. <exception name="IOException" type="java.io.IOException"/>
  31257. </method>
  31258. <method name="getChannel" return="java.nio.channels.WritableByteChannel"
  31259. abstract="false" native="false" synchronized="false"
  31260. static="false" final="false" visibility="public"
  31261. deprecated="not deprecated">
  31262. <doc>
  31263. <![CDATA[Returns underlying channel used by this stream.
  31264. This is useful in certain cases like channel for
  31265. {@link FileChannel#transferTo(long, long, WritableByteChannel)}]]>
  31266. </doc>
  31267. </method>
  31268. <method name="isOpen" return="boolean"
  31269. abstract="false" native="false" synchronized="false"
  31270. static="false" final="false" visibility="public"
  31271. deprecated="not deprecated">
  31272. </method>
  31273. <method name="write" return="int"
  31274. abstract="false" native="false" synchronized="false"
  31275. static="false" final="false" visibility="public"
  31276. deprecated="not deprecated">
  31277. <param name="src" type="java.nio.ByteBuffer"/>
  31278. <exception name="IOException" type="java.io.IOException"/>
  31279. </method>
  31280. <method name="waitForWritable"
  31281. abstract="false" native="false" synchronized="false"
  31282. static="false" final="false" visibility="public"
  31283. deprecated="not deprecated">
  31284. <exception name="IOException" type="java.io.IOException"/>
  31285. <doc>
  31286. <![CDATA[waits for the underlying channel to be ready for writing.
  31287. The timeout specified for this stream applies to this wait.
  31288. @throws SocketTimeoutException
  31289. if select on the channel times out.
  31290. @throws IOException
  31291. if any other I/O error occurs.]]>
  31292. </doc>
  31293. </method>
  31294. <method name="transferToFully"
  31295. abstract="false" native="false" synchronized="false"
  31296. static="false" final="false" visibility="public"
  31297. deprecated="not deprecated">
  31298. <param name="fileCh" type="java.nio.channels.FileChannel"/>
  31299. <param name="position" type="long"/>
  31300. <param name="count" type="int"/>
  31301. <exception name="IOException" type="java.io.IOException"/>
  31302. <doc>
  31303. <![CDATA[Transfers data from FileChannel using
  31304. {@link FileChannel#transferTo(long, long, WritableByteChannel)}.
  31305. Similar to readFully(), this waits till requested amount of
  31306. data is transfered.
  31307. @param fileCh FileChannel to transfer data from.
  31308. @param position position within the channel where the transfer begins
  31309. @param count number of bytes to transfer.
  31310. @throws EOFException
  31311. If end of input file is reached before requested number of
  31312. bytes are transfered.
  31313. @throws SocketTimeoutException
  31314. If this channel blocks transfer longer than timeout for
  31315. this stream.
  31316. @throws IOException Includes any exception thrown by
  31317. {@link FileChannel#transferTo(long, long, WritableByteChannel)}.]]>
  31318. </doc>
  31319. </method>
  31320. <doc>
  31321. <![CDATA[This implements an output stream that can have a timeout while writing.
  31322. This sets non-blocking flag on the socket channel.
  31323. So after creating this object , read() on
  31324. {@link Socket#getInputStream()} and write() on
  31325. {@link Socket#getOutputStream()} on the associated socket will throw
  31326. llegalBlockingModeException.
  31327. Please use {@link SocketInputStream} for reading.]]>
  31328. </doc>
  31329. </class>
  31330. <!-- end class org.apache.hadoop.net.SocketOutputStream -->
  31331. <!-- start class org.apache.hadoop.net.SocksSocketFactory -->
  31332. <class name="SocksSocketFactory" extends="javax.net.SocketFactory"
  31333. abstract="false"
  31334. static="false" final="false" visibility="public"
  31335. deprecated="not deprecated">
  31336. <implements name="org.apache.hadoop.conf.Configurable"/>
  31337. <constructor name="SocksSocketFactory"
  31338. static="false" final="false" visibility="public"
  31339. deprecated="not deprecated">
  31340. <doc>
  31341. <![CDATA[Default empty constructor (for use with the reflection API).]]>
  31342. </doc>
  31343. </constructor>
  31344. <constructor name="SocksSocketFactory" type="java.net.Proxy"
  31345. static="false" final="false" visibility="public"
  31346. deprecated="not deprecated">
  31347. <doc>
  31348. <![CDATA[Constructor with a supplied Proxy
  31349. @param proxy the proxy to use to create sockets]]>
  31350. </doc>
  31351. </constructor>
  31352. <method name="createSocket" return="java.net.Socket"
  31353. abstract="false" native="false" synchronized="false"
  31354. static="false" final="false" visibility="public"
  31355. deprecated="not deprecated">
  31356. <exception name="IOException" type="java.io.IOException"/>
  31357. </method>
  31358. <method name="createSocket" return="java.net.Socket"
  31359. abstract="false" native="false" synchronized="false"
  31360. static="false" final="false" visibility="public"
  31361. deprecated="not deprecated">
  31362. <param name="addr" type="java.net.InetAddress"/>
  31363. <param name="port" type="int"/>
  31364. <exception name="IOException" type="java.io.IOException"/>
  31365. </method>
  31366. <method name="createSocket" return="java.net.Socket"
  31367. abstract="false" native="false" synchronized="false"
  31368. static="false" final="false" visibility="public"
  31369. deprecated="not deprecated">
  31370. <param name="addr" type="java.net.InetAddress"/>
  31371. <param name="port" type="int"/>
  31372. <param name="localHostAddr" type="java.net.InetAddress"/>
  31373. <param name="localPort" type="int"/>
  31374. <exception name="IOException" type="java.io.IOException"/>
  31375. </method>
  31376. <method name="createSocket" return="java.net.Socket"
  31377. abstract="false" native="false" synchronized="false"
  31378. static="false" final="false" visibility="public"
  31379. deprecated="not deprecated">
  31380. <param name="host" type="java.lang.String"/>
  31381. <param name="port" type="int"/>
  31382. <exception name="IOException" type="java.io.IOException"/>
  31383. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  31384. </method>
  31385. <method name="createSocket" return="java.net.Socket"
  31386. abstract="false" native="false" synchronized="false"
  31387. static="false" final="false" visibility="public"
  31388. deprecated="not deprecated">
  31389. <param name="host" type="java.lang.String"/>
  31390. <param name="port" type="int"/>
  31391. <param name="localHostAddr" type="java.net.InetAddress"/>
  31392. <param name="localPort" type="int"/>
  31393. <exception name="IOException" type="java.io.IOException"/>
  31394. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  31395. </method>
  31396. <method name="hashCode" return="int"
  31397. abstract="false" native="false" synchronized="false"
  31398. static="false" final="false" visibility="public"
  31399. deprecated="not deprecated">
  31400. </method>
  31401. <method name="equals" return="boolean"
  31402. abstract="false" native="false" synchronized="false"
  31403. static="false" final="false" visibility="public"
  31404. deprecated="not deprecated">
  31405. <param name="obj" type="java.lang.Object"/>
  31406. </method>
  31407. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  31408. abstract="false" native="false" synchronized="false"
  31409. static="false" final="false" visibility="public"
  31410. deprecated="not deprecated">
  31411. </method>
  31412. <method name="setConf"
  31413. abstract="false" native="false" synchronized="false"
  31414. static="false" final="false" visibility="public"
  31415. deprecated="not deprecated">
  31416. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  31417. </method>
  31418. <doc>
  31419. <![CDATA[Specialized SocketFactory to create sockets with a SOCKS proxy]]>
  31420. </doc>
  31421. </class>
  31422. <!-- end class org.apache.hadoop.net.SocksSocketFactory -->
  31423. <!-- start class org.apache.hadoop.net.StandardSocketFactory -->
  31424. <class name="StandardSocketFactory" extends="javax.net.SocketFactory"
  31425. abstract="false"
  31426. static="false" final="false" visibility="public"
  31427. deprecated="not deprecated">
  31428. <constructor name="StandardSocketFactory"
  31429. static="false" final="false" visibility="public"
  31430. deprecated="not deprecated">
  31431. <doc>
  31432. <![CDATA[Default empty constructor (for use with the reflection API).]]>
  31433. </doc>
  31434. </constructor>
  31435. <method name="createSocket" return="java.net.Socket"
  31436. abstract="false" native="false" synchronized="false"
  31437. static="false" final="false" visibility="public"
  31438. deprecated="not deprecated">
  31439. <exception name="IOException" type="java.io.IOException"/>
  31440. </method>
  31441. <method name="createSocket" return="java.net.Socket"
  31442. abstract="false" native="false" synchronized="false"
  31443. static="false" final="false" visibility="public"
  31444. deprecated="not deprecated">
  31445. <param name="addr" type="java.net.InetAddress"/>
  31446. <param name="port" type="int"/>
  31447. <exception name="IOException" type="java.io.IOException"/>
  31448. </method>
  31449. <method name="createSocket" return="java.net.Socket"
  31450. abstract="false" native="false" synchronized="false"
  31451. static="false" final="false" visibility="public"
  31452. deprecated="not deprecated">
  31453. <param name="addr" type="java.net.InetAddress"/>
  31454. <param name="port" type="int"/>
  31455. <param name="localHostAddr" type="java.net.InetAddress"/>
  31456. <param name="localPort" type="int"/>
  31457. <exception name="IOException" type="java.io.IOException"/>
  31458. </method>
  31459. <method name="createSocket" return="java.net.Socket"
  31460. abstract="false" native="false" synchronized="false"
  31461. static="false" final="false" visibility="public"
  31462. deprecated="not deprecated">
  31463. <param name="host" type="java.lang.String"/>
  31464. <param name="port" type="int"/>
  31465. <exception name="IOException" type="java.io.IOException"/>
  31466. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  31467. </method>
  31468. <method name="createSocket" return="java.net.Socket"
  31469. abstract="false" native="false" synchronized="false"
  31470. static="false" final="false" visibility="public"
  31471. deprecated="not deprecated">
  31472. <param name="host" type="java.lang.String"/>
  31473. <param name="port" type="int"/>
  31474. <param name="localHostAddr" type="java.net.InetAddress"/>
  31475. <param name="localPort" type="int"/>
  31476. <exception name="IOException" type="java.io.IOException"/>
  31477. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  31478. </method>
  31479. <method name="equals" return="boolean"
  31480. abstract="false" native="false" synchronized="false"
  31481. static="false" final="false" visibility="public"
  31482. deprecated="not deprecated">
  31483. <param name="obj" type="java.lang.Object"/>
  31484. </method>
  31485. <method name="hashCode" return="int"
  31486. abstract="false" native="false" synchronized="false"
  31487. static="false" final="false" visibility="public"
  31488. deprecated="not deprecated">
  31489. </method>
  31490. <doc>
  31491. <![CDATA[Specialized SocketFactory to create sockets with a SOCKS proxy]]>
  31492. </doc>
  31493. </class>
  31494. <!-- end class org.apache.hadoop.net.StandardSocketFactory -->
  31495. </package>
  31496. <package name="org.apache.hadoop.record">
  31497. <!-- start class org.apache.hadoop.record.BinaryRecordInput -->
  31498. <class name="BinaryRecordInput" extends="java.lang.Object"
  31499. abstract="false"
  31500. static="false" final="false" visibility="public"
  31501. deprecated="not deprecated">
  31502. <implements name="org.apache.hadoop.record.RecordInput"/>
  31503. <constructor name="BinaryRecordInput" type="java.io.InputStream"
  31504. static="false" final="false" visibility="public"
  31505. deprecated="not deprecated">
  31506. <doc>
  31507. <![CDATA[Creates a new instance of BinaryRecordInput]]>
  31508. </doc>
  31509. </constructor>
  31510. <constructor name="BinaryRecordInput" type="java.io.DataInput"
  31511. static="false" final="false" visibility="public"
  31512. deprecated="not deprecated">
  31513. <doc>
  31514. <![CDATA[Creates a new instance of BinaryRecordInput]]>
  31515. </doc>
  31516. </constructor>
  31517. <method name="get" return="org.apache.hadoop.record.BinaryRecordInput"
  31518. abstract="false" native="false" synchronized="false"
  31519. static="true" final="false" visibility="public"
  31520. deprecated="not deprecated">
  31521. <param name="inp" type="java.io.DataInput"/>
  31522. <doc>
  31523. <![CDATA[Get a thread-local record input for the supplied DataInput.
  31524. @param inp data input stream
  31525. @return binary record input corresponding to the supplied DataInput.]]>
  31526. </doc>
  31527. </method>
  31528. <method name="readByte" return="byte"
  31529. abstract="false" native="false" synchronized="false"
  31530. static="false" final="false" visibility="public"
  31531. deprecated="not deprecated">
  31532. <param name="tag" type="java.lang.String"/>
  31533. <exception name="IOException" type="java.io.IOException"/>
  31534. </method>
  31535. <method name="readBool" return="boolean"
  31536. abstract="false" native="false" synchronized="false"
  31537. static="false" final="false" visibility="public"
  31538. deprecated="not deprecated">
  31539. <param name="tag" type="java.lang.String"/>
  31540. <exception name="IOException" type="java.io.IOException"/>
  31541. </method>
  31542. <method name="readInt" return="int"
  31543. abstract="false" native="false" synchronized="false"
  31544. static="false" final="false" visibility="public"
  31545. deprecated="not deprecated">
  31546. <param name="tag" type="java.lang.String"/>
  31547. <exception name="IOException" type="java.io.IOException"/>
  31548. </method>
  31549. <method name="readLong" return="long"
  31550. abstract="false" native="false" synchronized="false"
  31551. static="false" final="false" visibility="public"
  31552. deprecated="not deprecated">
  31553. <param name="tag" type="java.lang.String"/>
  31554. <exception name="IOException" type="java.io.IOException"/>
  31555. </method>
  31556. <method name="readFloat" return="float"
  31557. abstract="false" native="false" synchronized="false"
  31558. static="false" final="false" visibility="public"
  31559. deprecated="not deprecated">
  31560. <param name="tag" type="java.lang.String"/>
  31561. <exception name="IOException" type="java.io.IOException"/>
  31562. </method>
  31563. <method name="readDouble" return="double"
  31564. abstract="false" native="false" synchronized="false"
  31565. static="false" final="false" visibility="public"
  31566. deprecated="not deprecated">
  31567. <param name="tag" type="java.lang.String"/>
  31568. <exception name="IOException" type="java.io.IOException"/>
  31569. </method>
  31570. <method name="readString" return="java.lang.String"
  31571. abstract="false" native="false" synchronized="false"
  31572. static="false" final="false" visibility="public"
  31573. deprecated="not deprecated">
  31574. <param name="tag" type="java.lang.String"/>
  31575. <exception name="IOException" type="java.io.IOException"/>
  31576. </method>
  31577. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  31578. abstract="false" native="false" synchronized="false"
  31579. static="false" final="false" visibility="public"
  31580. deprecated="not deprecated">
  31581. <param name="tag" type="java.lang.String"/>
  31582. <exception name="IOException" type="java.io.IOException"/>
  31583. </method>
  31584. <method name="startRecord"
  31585. abstract="false" native="false" synchronized="false"
  31586. static="false" final="false" visibility="public"
  31587. deprecated="not deprecated">
  31588. <param name="tag" type="java.lang.String"/>
  31589. <exception name="IOException" type="java.io.IOException"/>
  31590. </method>
  31591. <method name="endRecord"
  31592. abstract="false" native="false" synchronized="false"
  31593. static="false" final="false" visibility="public"
  31594. deprecated="not deprecated">
  31595. <param name="tag" type="java.lang.String"/>
  31596. <exception name="IOException" type="java.io.IOException"/>
  31597. </method>
  31598. <method name="startVector" return="org.apache.hadoop.record.Index"
  31599. abstract="false" native="false" synchronized="false"
  31600. static="false" final="false" visibility="public"
  31601. deprecated="not deprecated">
  31602. <param name="tag" type="java.lang.String"/>
  31603. <exception name="IOException" type="java.io.IOException"/>
  31604. </method>
  31605. <method name="endVector"
  31606. abstract="false" native="false" synchronized="false"
  31607. static="false" final="false" visibility="public"
  31608. deprecated="not deprecated">
  31609. <param name="tag" type="java.lang.String"/>
  31610. <exception name="IOException" type="java.io.IOException"/>
  31611. </method>
  31612. <method name="startMap" return="org.apache.hadoop.record.Index"
  31613. abstract="false" native="false" synchronized="false"
  31614. static="false" final="false" visibility="public"
  31615. deprecated="not deprecated">
  31616. <param name="tag" type="java.lang.String"/>
  31617. <exception name="IOException" type="java.io.IOException"/>
  31618. </method>
  31619. <method name="endMap"
  31620. abstract="false" native="false" synchronized="false"
  31621. static="false" final="false" visibility="public"
  31622. deprecated="not deprecated">
  31623. <param name="tag" type="java.lang.String"/>
  31624. <exception name="IOException" type="java.io.IOException"/>
  31625. </method>
  31626. </class>
  31627. <!-- end class org.apache.hadoop.record.BinaryRecordInput -->
  31628. <!-- start class org.apache.hadoop.record.BinaryRecordOutput -->
  31629. <class name="BinaryRecordOutput" extends="java.lang.Object"
  31630. abstract="false"
  31631. static="false" final="false" visibility="public"
  31632. deprecated="not deprecated">
  31633. <implements name="org.apache.hadoop.record.RecordOutput"/>
  31634. <constructor name="BinaryRecordOutput" type="java.io.OutputStream"
  31635. static="false" final="false" visibility="public"
  31636. deprecated="not deprecated">
  31637. <doc>
  31638. <![CDATA[Creates a new instance of BinaryRecordOutput]]>
  31639. </doc>
  31640. </constructor>
  31641. <constructor name="BinaryRecordOutput" type="java.io.DataOutput"
  31642. static="false" final="false" visibility="public"
  31643. deprecated="not deprecated">
  31644. <doc>
  31645. <![CDATA[Creates a new instance of BinaryRecordOutput]]>
  31646. </doc>
  31647. </constructor>
  31648. <method name="get" return="org.apache.hadoop.record.BinaryRecordOutput"
  31649. abstract="false" native="false" synchronized="false"
  31650. static="true" final="false" visibility="public"
  31651. deprecated="not deprecated">
  31652. <param name="out" type="java.io.DataOutput"/>
  31653. <doc>
  31654. <![CDATA[Get a thread-local record output for the supplied DataOutput.
  31655. @param out data output stream
  31656. @return binary record output corresponding to the supplied DataOutput.]]>
  31657. </doc>
  31658. </method>
  31659. <method name="writeByte"
  31660. abstract="false" native="false" synchronized="false"
  31661. static="false" final="false" visibility="public"
  31662. deprecated="not deprecated">
  31663. <param name="b" type="byte"/>
  31664. <param name="tag" type="java.lang.String"/>
  31665. <exception name="IOException" type="java.io.IOException"/>
  31666. </method>
  31667. <method name="writeBool"
  31668. abstract="false" native="false" synchronized="false"
  31669. static="false" final="false" visibility="public"
  31670. deprecated="not deprecated">
  31671. <param name="b" type="boolean"/>
  31672. <param name="tag" type="java.lang.String"/>
  31673. <exception name="IOException" type="java.io.IOException"/>
  31674. </method>
  31675. <method name="writeInt"
  31676. abstract="false" native="false" synchronized="false"
  31677. static="false" final="false" visibility="public"
  31678. deprecated="not deprecated">
  31679. <param name="i" type="int"/>
  31680. <param name="tag" type="java.lang.String"/>
  31681. <exception name="IOException" type="java.io.IOException"/>
  31682. </method>
  31683. <method name="writeLong"
  31684. abstract="false" native="false" synchronized="false"
  31685. static="false" final="false" visibility="public"
  31686. deprecated="not deprecated">
  31687. <param name="l" type="long"/>
  31688. <param name="tag" type="java.lang.String"/>
  31689. <exception name="IOException" type="java.io.IOException"/>
  31690. </method>
  31691. <method name="writeFloat"
  31692. abstract="false" native="false" synchronized="false"
  31693. static="false" final="false" visibility="public"
  31694. deprecated="not deprecated">
  31695. <param name="f" type="float"/>
  31696. <param name="tag" type="java.lang.String"/>
  31697. <exception name="IOException" type="java.io.IOException"/>
  31698. </method>
  31699. <method name="writeDouble"
  31700. abstract="false" native="false" synchronized="false"
  31701. static="false" final="false" visibility="public"
  31702. deprecated="not deprecated">
  31703. <param name="d" type="double"/>
  31704. <param name="tag" type="java.lang.String"/>
  31705. <exception name="IOException" type="java.io.IOException"/>
  31706. </method>
  31707. <method name="writeString"
  31708. abstract="false" native="false" synchronized="false"
  31709. static="false" final="false" visibility="public"
  31710. deprecated="not deprecated">
  31711. <param name="s" type="java.lang.String"/>
  31712. <param name="tag" type="java.lang.String"/>
  31713. <exception name="IOException" type="java.io.IOException"/>
  31714. </method>
  31715. <method name="writeBuffer"
  31716. abstract="false" native="false" synchronized="false"
  31717. static="false" final="false" visibility="public"
  31718. deprecated="not deprecated">
  31719. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  31720. <param name="tag" type="java.lang.String"/>
  31721. <exception name="IOException" type="java.io.IOException"/>
  31722. </method>
  31723. <method name="startRecord"
  31724. abstract="false" native="false" synchronized="false"
  31725. static="false" final="false" visibility="public"
  31726. deprecated="not deprecated">
  31727. <param name="r" type="org.apache.hadoop.record.Record"/>
  31728. <param name="tag" type="java.lang.String"/>
  31729. <exception name="IOException" type="java.io.IOException"/>
  31730. </method>
  31731. <method name="endRecord"
  31732. abstract="false" native="false" synchronized="false"
  31733. static="false" final="false" visibility="public"
  31734. deprecated="not deprecated">
  31735. <param name="r" type="org.apache.hadoop.record.Record"/>
  31736. <param name="tag" type="java.lang.String"/>
  31737. <exception name="IOException" type="java.io.IOException"/>
  31738. </method>
  31739. <method name="startVector"
  31740. abstract="false" native="false" synchronized="false"
  31741. static="false" final="false" visibility="public"
  31742. deprecated="not deprecated">
  31743. <param name="v" type="java.util.ArrayList"/>
  31744. <param name="tag" type="java.lang.String"/>
  31745. <exception name="IOException" type="java.io.IOException"/>
  31746. </method>
  31747. <method name="endVector"
  31748. abstract="false" native="false" synchronized="false"
  31749. static="false" final="false" visibility="public"
  31750. deprecated="not deprecated">
  31751. <param name="v" type="java.util.ArrayList"/>
  31752. <param name="tag" type="java.lang.String"/>
  31753. <exception name="IOException" type="java.io.IOException"/>
  31754. </method>
  31755. <method name="startMap"
  31756. abstract="false" native="false" synchronized="false"
  31757. static="false" final="false" visibility="public"
  31758. deprecated="not deprecated">
  31759. <param name="v" type="java.util.TreeMap"/>
  31760. <param name="tag" type="java.lang.String"/>
  31761. <exception name="IOException" type="java.io.IOException"/>
  31762. </method>
  31763. <method name="endMap"
  31764. abstract="false" native="false" synchronized="false"
  31765. static="false" final="false" visibility="public"
  31766. deprecated="not deprecated">
  31767. <param name="v" type="java.util.TreeMap"/>
  31768. <param name="tag" type="java.lang.String"/>
  31769. <exception name="IOException" type="java.io.IOException"/>
  31770. </method>
  31771. </class>
  31772. <!-- end class org.apache.hadoop.record.BinaryRecordOutput -->
  31773. <!-- start class org.apache.hadoop.record.Buffer -->
  31774. <class name="Buffer" extends="java.lang.Object"
  31775. abstract="false"
  31776. static="false" final="false" visibility="public"
  31777. deprecated="not deprecated">
  31778. <implements name="java.lang.Comparable"/>
  31779. <implements name="java.lang.Cloneable"/>
  31780. <constructor name="Buffer"
  31781. static="false" final="false" visibility="public"
  31782. deprecated="not deprecated">
  31783. <doc>
  31784. <![CDATA[Create a zero-count sequence.]]>
  31785. </doc>
  31786. </constructor>
  31787. <constructor name="Buffer" type="byte[]"
  31788. static="false" final="false" visibility="public"
  31789. deprecated="not deprecated">
  31790. <doc>
  31791. <![CDATA[Create a Buffer using the byte array as the initial value.
  31792. @param bytes This array becomes the backing storage for the object.]]>
  31793. </doc>
  31794. </constructor>
  31795. <constructor name="Buffer" type="byte[], int, int"
  31796. static="false" final="false" visibility="public"
  31797. deprecated="not deprecated">
  31798. <doc>
  31799. <![CDATA[Create a Buffer using the byte range as the initial value.
  31800. @param bytes Copy of this array becomes the backing storage for the object.
  31801. @param offset offset into byte array
  31802. @param length length of data]]>
  31803. </doc>
  31804. </constructor>
  31805. <method name="set"
  31806. abstract="false" native="false" synchronized="false"
  31807. static="false" final="false" visibility="public"
  31808. deprecated="not deprecated">
  31809. <param name="bytes" type="byte[]"/>
  31810. <doc>
  31811. <![CDATA[Use the specified bytes array as underlying sequence.
  31812. @param bytes byte sequence]]>
  31813. </doc>
  31814. </method>
  31815. <method name="copy"
  31816. abstract="false" native="false" synchronized="false"
  31817. static="false" final="true" visibility="public"
  31818. deprecated="not deprecated">
  31819. <param name="bytes" type="byte[]"/>
  31820. <param name="offset" type="int"/>
  31821. <param name="length" type="int"/>
  31822. <doc>
  31823. <![CDATA[Copy the specified byte array to the Buffer. Replaces the current buffer.
  31824. @param bytes byte array to be assigned
  31825. @param offset offset into byte array
  31826. @param length length of data]]>
  31827. </doc>
  31828. </method>
  31829. <method name="get" return="byte[]"
  31830. abstract="false" native="false" synchronized="false"
  31831. static="false" final="false" visibility="public"
  31832. deprecated="not deprecated">
  31833. <doc>
  31834. <![CDATA[Get the data from the Buffer.
  31835. @return The data is only valid between 0 and getCount() - 1.]]>
  31836. </doc>
  31837. </method>
  31838. <method name="getCount" return="int"
  31839. abstract="false" native="false" synchronized="false"
  31840. static="false" final="false" visibility="public"
  31841. deprecated="not deprecated">
  31842. <doc>
  31843. <![CDATA[Get the current count of the buffer.]]>
  31844. </doc>
  31845. </method>
  31846. <method name="getCapacity" return="int"
  31847. abstract="false" native="false" synchronized="false"
  31848. static="false" final="false" visibility="public"
  31849. deprecated="not deprecated">
  31850. <doc>
  31851. <![CDATA[Get the capacity, which is the maximum count that could handled without
  31852. resizing the backing storage.
  31853. @return The number of bytes]]>
  31854. </doc>
  31855. </method>
  31856. <method name="setCapacity"
  31857. abstract="false" native="false" synchronized="false"
  31858. static="false" final="false" visibility="public"
  31859. deprecated="not deprecated">
  31860. <param name="newCapacity" type="int"/>
  31861. <doc>
  31862. <![CDATA[Change the capacity of the backing storage.
  31863. The data is preserved if newCapacity >= getCount().
  31864. @param newCapacity The new capacity in bytes.]]>
  31865. </doc>
  31866. </method>
  31867. <method name="reset"
  31868. abstract="false" native="false" synchronized="false"
  31869. static="false" final="false" visibility="public"
  31870. deprecated="not deprecated">
  31871. <doc>
  31872. <![CDATA[Reset the buffer to 0 size]]>
  31873. </doc>
  31874. </method>
  31875. <method name="truncate"
  31876. abstract="false" native="false" synchronized="false"
  31877. static="false" final="false" visibility="public"
  31878. deprecated="not deprecated">
  31879. <doc>
  31880. <![CDATA[Change the capacity of the backing store to be the same as the current
  31881. count of buffer.]]>
  31882. </doc>
  31883. </method>
  31884. <method name="append"
  31885. abstract="false" native="false" synchronized="false"
  31886. static="false" final="false" visibility="public"
  31887. deprecated="not deprecated">
  31888. <param name="bytes" type="byte[]"/>
  31889. <param name="offset" type="int"/>
  31890. <param name="length" type="int"/>
  31891. <doc>
  31892. <![CDATA[Append specified bytes to the buffer.
  31893. @param bytes byte array to be appended
  31894. @param offset offset into byte array
  31895. @param length length of data]]>
  31896. </doc>
  31897. </method>
  31898. <method name="append"
  31899. abstract="false" native="false" synchronized="false"
  31900. static="false" final="false" visibility="public"
  31901. deprecated="not deprecated">
  31902. <param name="bytes" type="byte[]"/>
  31903. <doc>
  31904. <![CDATA[Append specified bytes to the buffer
  31905. @param bytes byte array to be appended]]>
  31906. </doc>
  31907. </method>
  31908. <method name="hashCode" return="int"
  31909. abstract="false" native="false" synchronized="false"
  31910. static="false" final="false" visibility="public"
  31911. deprecated="not deprecated">
  31912. </method>
  31913. <method name="compareTo" return="int"
  31914. abstract="false" native="false" synchronized="false"
  31915. static="false" final="false" visibility="public"
  31916. deprecated="not deprecated">
  31917. <param name="other" type="java.lang.Object"/>
  31918. <doc>
  31919. <![CDATA[Define the sort order of the Buffer.
  31920. @param other The other buffer
  31921. @return Positive if this is bigger than other, 0 if they are equal, and
  31922. negative if this is smaller than other.]]>
  31923. </doc>
  31924. </method>
  31925. <method name="equals" return="boolean"
  31926. abstract="false" native="false" synchronized="false"
  31927. static="false" final="false" visibility="public"
  31928. deprecated="not deprecated">
  31929. <param name="other" type="java.lang.Object"/>
  31930. </method>
  31931. <method name="toString" return="java.lang.String"
  31932. abstract="false" native="false" synchronized="false"
  31933. static="false" final="false" visibility="public"
  31934. deprecated="not deprecated">
  31935. </method>
  31936. <method name="toString" return="java.lang.String"
  31937. abstract="false" native="false" synchronized="false"
  31938. static="false" final="false" visibility="public"
  31939. deprecated="not deprecated">
  31940. <param name="charsetName" type="java.lang.String"/>
  31941. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  31942. <doc>
  31943. <![CDATA[Convert the byte buffer to a string an specific character encoding
  31944. @param charsetName Valid Java Character Set Name]]>
  31945. </doc>
  31946. </method>
  31947. <method name="clone" return="java.lang.Object"
  31948. abstract="false" native="false" synchronized="false"
  31949. static="false" final="false" visibility="public"
  31950. deprecated="not deprecated">
  31951. <exception name="CloneNotSupportedException" type="java.lang.CloneNotSupportedException"/>
  31952. </method>
  31953. <doc>
  31954. <![CDATA[A byte sequence that is used as a Java native type for buffer.
  31955. It is resizable and distinguishes between the count of the seqeunce and
  31956. the current capacity.]]>
  31957. </doc>
  31958. </class>
  31959. <!-- end class org.apache.hadoop.record.Buffer -->
  31960. <!-- start class org.apache.hadoop.record.CsvRecordInput -->
  31961. <class name="CsvRecordInput" extends="java.lang.Object"
  31962. abstract="false"
  31963. static="false" final="false" visibility="public"
  31964. deprecated="not deprecated">
  31965. <implements name="org.apache.hadoop.record.RecordInput"/>
  31966. <constructor name="CsvRecordInput" type="java.io.InputStream"
  31967. static="false" final="false" visibility="public"
  31968. deprecated="not deprecated">
  31969. <doc>
  31970. <![CDATA[Creates a new instance of CsvRecordInput]]>
  31971. </doc>
  31972. </constructor>
  31973. <method name="readByte" return="byte"
  31974. abstract="false" native="false" synchronized="false"
  31975. static="false" final="false" visibility="public"
  31976. deprecated="not deprecated">
  31977. <param name="tag" type="java.lang.String"/>
  31978. <exception name="IOException" type="java.io.IOException"/>
  31979. </method>
  31980. <method name="readBool" return="boolean"
  31981. abstract="false" native="false" synchronized="false"
  31982. static="false" final="false" visibility="public"
  31983. deprecated="not deprecated">
  31984. <param name="tag" type="java.lang.String"/>
  31985. <exception name="IOException" type="java.io.IOException"/>
  31986. </method>
  31987. <method name="readInt" return="int"
  31988. abstract="false" native="false" synchronized="false"
  31989. static="false" final="false" visibility="public"
  31990. deprecated="not deprecated">
  31991. <param name="tag" type="java.lang.String"/>
  31992. <exception name="IOException" type="java.io.IOException"/>
  31993. </method>
  31994. <method name="readLong" return="long"
  31995. abstract="false" native="false" synchronized="false"
  31996. static="false" final="false" visibility="public"
  31997. deprecated="not deprecated">
  31998. <param name="tag" type="java.lang.String"/>
  31999. <exception name="IOException" type="java.io.IOException"/>
  32000. </method>
  32001. <method name="readFloat" return="float"
  32002. abstract="false" native="false" synchronized="false"
  32003. static="false" final="false" visibility="public"
  32004. deprecated="not deprecated">
  32005. <param name="tag" type="java.lang.String"/>
  32006. <exception name="IOException" type="java.io.IOException"/>
  32007. </method>
  32008. <method name="readDouble" return="double"
  32009. abstract="false" native="false" synchronized="false"
  32010. static="false" final="false" visibility="public"
  32011. deprecated="not deprecated">
  32012. <param name="tag" type="java.lang.String"/>
  32013. <exception name="IOException" type="java.io.IOException"/>
  32014. </method>
  32015. <method name="readString" return="java.lang.String"
  32016. abstract="false" native="false" synchronized="false"
  32017. static="false" final="false" visibility="public"
  32018. deprecated="not deprecated">
  32019. <param name="tag" type="java.lang.String"/>
  32020. <exception name="IOException" type="java.io.IOException"/>
  32021. </method>
  32022. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  32023. abstract="false" native="false" synchronized="false"
  32024. static="false" final="false" visibility="public"
  32025. deprecated="not deprecated">
  32026. <param name="tag" type="java.lang.String"/>
  32027. <exception name="IOException" type="java.io.IOException"/>
  32028. </method>
  32029. <method name="startRecord"
  32030. abstract="false" native="false" synchronized="false"
  32031. static="false" final="false" visibility="public"
  32032. deprecated="not deprecated">
  32033. <param name="tag" type="java.lang.String"/>
  32034. <exception name="IOException" type="java.io.IOException"/>
  32035. </method>
  32036. <method name="endRecord"
  32037. abstract="false" native="false" synchronized="false"
  32038. static="false" final="false" visibility="public"
  32039. deprecated="not deprecated">
  32040. <param name="tag" type="java.lang.String"/>
  32041. <exception name="IOException" type="java.io.IOException"/>
  32042. </method>
  32043. <method name="startVector" return="org.apache.hadoop.record.Index"
  32044. abstract="false" native="false" synchronized="false"
  32045. static="false" final="false" visibility="public"
  32046. deprecated="not deprecated">
  32047. <param name="tag" type="java.lang.String"/>
  32048. <exception name="IOException" type="java.io.IOException"/>
  32049. </method>
  32050. <method name="endVector"
  32051. abstract="false" native="false" synchronized="false"
  32052. static="false" final="false" visibility="public"
  32053. deprecated="not deprecated">
  32054. <param name="tag" type="java.lang.String"/>
  32055. <exception name="IOException" type="java.io.IOException"/>
  32056. </method>
  32057. <method name="startMap" return="org.apache.hadoop.record.Index"
  32058. abstract="false" native="false" synchronized="false"
  32059. static="false" final="false" visibility="public"
  32060. deprecated="not deprecated">
  32061. <param name="tag" type="java.lang.String"/>
  32062. <exception name="IOException" type="java.io.IOException"/>
  32063. </method>
  32064. <method name="endMap"
  32065. abstract="false" native="false" synchronized="false"
  32066. static="false" final="false" visibility="public"
  32067. deprecated="not deprecated">
  32068. <param name="tag" type="java.lang.String"/>
  32069. <exception name="IOException" type="java.io.IOException"/>
  32070. </method>
  32071. </class>
  32072. <!-- end class org.apache.hadoop.record.CsvRecordInput -->
  32073. <!-- start class org.apache.hadoop.record.CsvRecordOutput -->
  32074. <class name="CsvRecordOutput" extends="java.lang.Object"
  32075. abstract="false"
  32076. static="false" final="false" visibility="public"
  32077. deprecated="not deprecated">
  32078. <implements name="org.apache.hadoop.record.RecordOutput"/>
  32079. <constructor name="CsvRecordOutput" type="java.io.OutputStream"
  32080. static="false" final="false" visibility="public"
  32081. deprecated="not deprecated">
  32082. <doc>
  32083. <![CDATA[Creates a new instance of CsvRecordOutput]]>
  32084. </doc>
  32085. </constructor>
  32086. <method name="writeByte"
  32087. abstract="false" native="false" synchronized="false"
  32088. static="false" final="false" visibility="public"
  32089. deprecated="not deprecated">
  32090. <param name="b" type="byte"/>
  32091. <param name="tag" type="java.lang.String"/>
  32092. <exception name="IOException" type="java.io.IOException"/>
  32093. </method>
  32094. <method name="writeBool"
  32095. abstract="false" native="false" synchronized="false"
  32096. static="false" final="false" visibility="public"
  32097. deprecated="not deprecated">
  32098. <param name="b" type="boolean"/>
  32099. <param name="tag" type="java.lang.String"/>
  32100. <exception name="IOException" type="java.io.IOException"/>
  32101. </method>
  32102. <method name="writeInt"
  32103. abstract="false" native="false" synchronized="false"
  32104. static="false" final="false" visibility="public"
  32105. deprecated="not deprecated">
  32106. <param name="i" type="int"/>
  32107. <param name="tag" type="java.lang.String"/>
  32108. <exception name="IOException" type="java.io.IOException"/>
  32109. </method>
  32110. <method name="writeLong"
  32111. abstract="false" native="false" synchronized="false"
  32112. static="false" final="false" visibility="public"
  32113. deprecated="not deprecated">
  32114. <param name="l" type="long"/>
  32115. <param name="tag" type="java.lang.String"/>
  32116. <exception name="IOException" type="java.io.IOException"/>
  32117. </method>
  32118. <method name="writeFloat"
  32119. abstract="false" native="false" synchronized="false"
  32120. static="false" final="false" visibility="public"
  32121. deprecated="not deprecated">
  32122. <param name="f" type="float"/>
  32123. <param name="tag" type="java.lang.String"/>
  32124. <exception name="IOException" type="java.io.IOException"/>
  32125. </method>
  32126. <method name="writeDouble"
  32127. abstract="false" native="false" synchronized="false"
  32128. static="false" final="false" visibility="public"
  32129. deprecated="not deprecated">
  32130. <param name="d" type="double"/>
  32131. <param name="tag" type="java.lang.String"/>
  32132. <exception name="IOException" type="java.io.IOException"/>
  32133. </method>
  32134. <method name="writeString"
  32135. abstract="false" native="false" synchronized="false"
  32136. static="false" final="false" visibility="public"
  32137. deprecated="not deprecated">
  32138. <param name="s" type="java.lang.String"/>
  32139. <param name="tag" type="java.lang.String"/>
  32140. <exception name="IOException" type="java.io.IOException"/>
  32141. </method>
  32142. <method name="writeBuffer"
  32143. abstract="false" native="false" synchronized="false"
  32144. static="false" final="false" visibility="public"
  32145. deprecated="not deprecated">
  32146. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  32147. <param name="tag" type="java.lang.String"/>
  32148. <exception name="IOException" type="java.io.IOException"/>
  32149. </method>
  32150. <method name="startRecord"
  32151. abstract="false" native="false" synchronized="false"
  32152. static="false" final="false" visibility="public"
  32153. deprecated="not deprecated">
  32154. <param name="r" type="org.apache.hadoop.record.Record"/>
  32155. <param name="tag" type="java.lang.String"/>
  32156. <exception name="IOException" type="java.io.IOException"/>
  32157. </method>
  32158. <method name="endRecord"
  32159. abstract="false" native="false" synchronized="false"
  32160. static="false" final="false" visibility="public"
  32161. deprecated="not deprecated">
  32162. <param name="r" type="org.apache.hadoop.record.Record"/>
  32163. <param name="tag" type="java.lang.String"/>
  32164. <exception name="IOException" type="java.io.IOException"/>
  32165. </method>
  32166. <method name="startVector"
  32167. abstract="false" native="false" synchronized="false"
  32168. static="false" final="false" visibility="public"
  32169. deprecated="not deprecated">
  32170. <param name="v" type="java.util.ArrayList"/>
  32171. <param name="tag" type="java.lang.String"/>
  32172. <exception name="IOException" type="java.io.IOException"/>
  32173. </method>
  32174. <method name="endVector"
  32175. abstract="false" native="false" synchronized="false"
  32176. static="false" final="false" visibility="public"
  32177. deprecated="not deprecated">
  32178. <param name="v" type="java.util.ArrayList"/>
  32179. <param name="tag" type="java.lang.String"/>
  32180. <exception name="IOException" type="java.io.IOException"/>
  32181. </method>
  32182. <method name="startMap"
  32183. abstract="false" native="false" synchronized="false"
  32184. static="false" final="false" visibility="public"
  32185. deprecated="not deprecated">
  32186. <param name="v" type="java.util.TreeMap"/>
  32187. <param name="tag" type="java.lang.String"/>
  32188. <exception name="IOException" type="java.io.IOException"/>
  32189. </method>
  32190. <method name="endMap"
  32191. abstract="false" native="false" synchronized="false"
  32192. static="false" final="false" visibility="public"
  32193. deprecated="not deprecated">
  32194. <param name="v" type="java.util.TreeMap"/>
  32195. <param name="tag" type="java.lang.String"/>
  32196. <exception name="IOException" type="java.io.IOException"/>
  32197. </method>
  32198. </class>
  32199. <!-- end class org.apache.hadoop.record.CsvRecordOutput -->
  32200. <!-- start interface org.apache.hadoop.record.Index -->
  32201. <interface name="Index" abstract="true"
  32202. static="false" final="false" visibility="public"
  32203. deprecated="not deprecated">
  32204. <method name="done" return="boolean"
  32205. abstract="false" native="false" synchronized="false"
  32206. static="false" final="false" visibility="public"
  32207. deprecated="not deprecated">
  32208. </method>
  32209. <method name="incr"
  32210. abstract="false" native="false" synchronized="false"
  32211. static="false" final="false" visibility="public"
  32212. deprecated="not deprecated">
  32213. </method>
  32214. <doc>
  32215. <![CDATA[Interface that acts as an iterator for deserializing maps.
  32216. The deserializer returns an instance that the record uses to
  32217. read vectors and maps. An example of usage is as follows:
  32218. <code>
  32219. Index idx = startVector(...);
  32220. while (!idx.done()) {
  32221. .... // read element of a vector
  32222. idx.incr();
  32223. }
  32224. </code>]]>
  32225. </doc>
  32226. </interface>
  32227. <!-- end interface org.apache.hadoop.record.Index -->
  32228. <!-- start class org.apache.hadoop.record.Record -->
  32229. <class name="Record" extends="java.lang.Object"
  32230. abstract="true"
  32231. static="false" final="false" visibility="public"
  32232. deprecated="not deprecated">
  32233. <implements name="org.apache.hadoop.io.WritableComparable"/>
  32234. <implements name="java.lang.Cloneable"/>
  32235. <constructor name="Record"
  32236. static="false" final="false" visibility="public"
  32237. deprecated="not deprecated">
  32238. </constructor>
  32239. <method name="serialize"
  32240. abstract="true" native="false" synchronized="false"
  32241. static="false" final="false" visibility="public"
  32242. deprecated="not deprecated">
  32243. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  32244. <param name="tag" type="java.lang.String"/>
  32245. <exception name="IOException" type="java.io.IOException"/>
  32246. <doc>
  32247. <![CDATA[Serialize a record with tag (ususally field name)
  32248. @param rout Record output destination
  32249. @param tag record tag (Used only in tagged serialization e.g. XML)]]>
  32250. </doc>
  32251. </method>
  32252. <method name="deserialize"
  32253. abstract="true" native="false" synchronized="false"
  32254. static="false" final="false" visibility="public"
  32255. deprecated="not deprecated">
  32256. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  32257. <param name="tag" type="java.lang.String"/>
  32258. <exception name="IOException" type="java.io.IOException"/>
  32259. <doc>
  32260. <![CDATA[Deserialize a record with a tag (usually field name)
  32261. @param rin Record input source
  32262. @param tag Record tag (Used only in tagged serialization e.g. XML)]]>
  32263. </doc>
  32264. </method>
  32265. <method name="compareTo" return="int"
  32266. abstract="true" native="false" synchronized="false"
  32267. static="false" final="false" visibility="public"
  32268. deprecated="not deprecated">
  32269. <param name="peer" type="java.lang.Object"/>
  32270. <exception name="ClassCastException" type="java.lang.ClassCastException"/>
  32271. </method>
  32272. <method name="serialize"
  32273. abstract="false" native="false" synchronized="false"
  32274. static="false" final="false" visibility="public"
  32275. deprecated="not deprecated">
  32276. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  32277. <exception name="IOException" type="java.io.IOException"/>
  32278. <doc>
  32279. <![CDATA[Serialize a record without a tag
  32280. @param rout Record output destination]]>
  32281. </doc>
  32282. </method>
  32283. <method name="deserialize"
  32284. abstract="false" native="false" synchronized="false"
  32285. static="false" final="false" visibility="public"
  32286. deprecated="not deprecated">
  32287. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  32288. <exception name="IOException" type="java.io.IOException"/>
  32289. <doc>
  32290. <![CDATA[Deserialize a record without a tag
  32291. @param rin Record input source]]>
  32292. </doc>
  32293. </method>
  32294. <method name="write"
  32295. abstract="false" native="false" synchronized="false"
  32296. static="false" final="false" visibility="public"
  32297. deprecated="not deprecated">
  32298. <param name="out" type="java.io.DataOutput"/>
  32299. <exception name="IOException" type="java.io.IOException"/>
  32300. </method>
  32301. <method name="readFields"
  32302. abstract="false" native="false" synchronized="false"
  32303. static="false" final="false" visibility="public"
  32304. deprecated="not deprecated">
  32305. <param name="din" type="java.io.DataInput"/>
  32306. <exception name="IOException" type="java.io.IOException"/>
  32307. </method>
  32308. <method name="toString" return="java.lang.String"
  32309. abstract="false" native="false" synchronized="false"
  32310. static="false" final="false" visibility="public"
  32311. deprecated="not deprecated">
  32312. </method>
  32313. <doc>
  32314. <![CDATA[Abstract class that is extended by generated classes.]]>
  32315. </doc>
  32316. </class>
  32317. <!-- end class org.apache.hadoop.record.Record -->
  32318. <!-- start class org.apache.hadoop.record.RecordComparator -->
  32319. <class name="RecordComparator" extends="org.apache.hadoop.io.WritableComparator"
  32320. abstract="true"
  32321. static="false" final="false" visibility="public"
  32322. deprecated="not deprecated">
  32323. <constructor name="RecordComparator" type="java.lang.Class"
  32324. static="false" final="false" visibility="protected"
  32325. deprecated="not deprecated">
  32326. <doc>
  32327. <![CDATA[Construct a raw {@link Record} comparison implementation.]]>
  32328. </doc>
  32329. </constructor>
  32330. <method name="compare" return="int"
  32331. abstract="true" native="false" synchronized="false"
  32332. static="false" final="false" visibility="public"
  32333. deprecated="not deprecated">
  32334. <param name="b1" type="byte[]"/>
  32335. <param name="s1" type="int"/>
  32336. <param name="l1" type="int"/>
  32337. <param name="b2" type="byte[]"/>
  32338. <param name="s2" type="int"/>
  32339. <param name="l2" type="int"/>
  32340. </method>
  32341. <method name="define"
  32342. abstract="false" native="false" synchronized="true"
  32343. static="true" final="false" visibility="public"
  32344. deprecated="not deprecated">
  32345. <param name="c" type="java.lang.Class"/>
  32346. <param name="comparator" type="org.apache.hadoop.record.RecordComparator"/>
  32347. <doc>
  32348. <![CDATA[Register an optimized comparator for a {@link Record} implementation.
  32349. @param c record classs for which a raw comparator is provided
  32350. @param comparator Raw comparator instance for class c]]>
  32351. </doc>
  32352. </method>
  32353. <doc>
  32354. <![CDATA[A raw record comparator base class]]>
  32355. </doc>
  32356. </class>
  32357. <!-- end class org.apache.hadoop.record.RecordComparator -->
  32358. <!-- start interface org.apache.hadoop.record.RecordInput -->
  32359. <interface name="RecordInput" abstract="true"
  32360. static="false" final="false" visibility="public"
  32361. deprecated="not deprecated">
  32362. <method name="readByte" return="byte"
  32363. abstract="false" native="false" synchronized="false"
  32364. static="false" final="false" visibility="public"
  32365. deprecated="not deprecated">
  32366. <param name="tag" type="java.lang.String"/>
  32367. <exception name="IOException" type="java.io.IOException"/>
  32368. <doc>
  32369. <![CDATA[Read a byte from serialized record.
  32370. @param tag Used by tagged serialization formats (such as XML)
  32371. @return value read from serialized record.]]>
  32372. </doc>
  32373. </method>
  32374. <method name="readBool" return="boolean"
  32375. abstract="false" native="false" synchronized="false"
  32376. static="false" final="false" visibility="public"
  32377. deprecated="not deprecated">
  32378. <param name="tag" type="java.lang.String"/>
  32379. <exception name="IOException" type="java.io.IOException"/>
  32380. <doc>
  32381. <![CDATA[Read a boolean from serialized record.
  32382. @param tag Used by tagged serialization formats (such as XML)
  32383. @return value read from serialized record.]]>
  32384. </doc>
  32385. </method>
  32386. <method name="readInt" return="int"
  32387. abstract="false" native="false" synchronized="false"
  32388. static="false" final="false" visibility="public"
  32389. deprecated="not deprecated">
  32390. <param name="tag" type="java.lang.String"/>
  32391. <exception name="IOException" type="java.io.IOException"/>
  32392. <doc>
  32393. <![CDATA[Read an integer from serialized record.
  32394. @param tag Used by tagged serialization formats (such as XML)
  32395. @return value read from serialized record.]]>
  32396. </doc>
  32397. </method>
  32398. <method name="readLong" return="long"
  32399. abstract="false" native="false" synchronized="false"
  32400. static="false" final="false" visibility="public"
  32401. deprecated="not deprecated">
  32402. <param name="tag" type="java.lang.String"/>
  32403. <exception name="IOException" type="java.io.IOException"/>
  32404. <doc>
  32405. <![CDATA[Read a long integer from serialized record.
  32406. @param tag Used by tagged serialization formats (such as XML)
  32407. @return value read from serialized record.]]>
  32408. </doc>
  32409. </method>
  32410. <method name="readFloat" return="float"
  32411. abstract="false" native="false" synchronized="false"
  32412. static="false" final="false" visibility="public"
  32413. deprecated="not deprecated">
  32414. <param name="tag" type="java.lang.String"/>
  32415. <exception name="IOException" type="java.io.IOException"/>
  32416. <doc>
  32417. <![CDATA[Read a single-precision float from serialized record.
  32418. @param tag Used by tagged serialization formats (such as XML)
  32419. @return value read from serialized record.]]>
  32420. </doc>
  32421. </method>
  32422. <method name="readDouble" return="double"
  32423. abstract="false" native="false" synchronized="false"
  32424. static="false" final="false" visibility="public"
  32425. deprecated="not deprecated">
  32426. <param name="tag" type="java.lang.String"/>
  32427. <exception name="IOException" type="java.io.IOException"/>
  32428. <doc>
  32429. <![CDATA[Read a double-precision number from serialized record.
  32430. @param tag Used by tagged serialization formats (such as XML)
  32431. @return value read from serialized record.]]>
  32432. </doc>
  32433. </method>
  32434. <method name="readString" return="java.lang.String"
  32435. abstract="false" native="false" synchronized="false"
  32436. static="false" final="false" visibility="public"
  32437. deprecated="not deprecated">
  32438. <param name="tag" type="java.lang.String"/>
  32439. <exception name="IOException" type="java.io.IOException"/>
  32440. <doc>
  32441. <![CDATA[Read a UTF-8 encoded string from serialized record.
  32442. @param tag Used by tagged serialization formats (such as XML)
  32443. @return value read from serialized record.]]>
  32444. </doc>
  32445. </method>
  32446. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  32447. abstract="false" native="false" synchronized="false"
  32448. static="false" final="false" visibility="public"
  32449. deprecated="not deprecated">
  32450. <param name="tag" type="java.lang.String"/>
  32451. <exception name="IOException" type="java.io.IOException"/>
  32452. <doc>
  32453. <![CDATA[Read byte array from serialized record.
  32454. @param tag Used by tagged serialization formats (such as XML)
  32455. @return value read from serialized record.]]>
  32456. </doc>
  32457. </method>
  32458. <method name="startRecord"
  32459. abstract="false" native="false" synchronized="false"
  32460. static="false" final="false" visibility="public"
  32461. deprecated="not deprecated">
  32462. <param name="tag" type="java.lang.String"/>
  32463. <exception name="IOException" type="java.io.IOException"/>
  32464. <doc>
  32465. <![CDATA[Check the mark for start of the serialized record.
  32466. @param tag Used by tagged serialization formats (such as XML)]]>
  32467. </doc>
  32468. </method>
  32469. <method name="endRecord"
  32470. abstract="false" native="false" synchronized="false"
  32471. static="false" final="false" visibility="public"
  32472. deprecated="not deprecated">
  32473. <param name="tag" type="java.lang.String"/>
  32474. <exception name="IOException" type="java.io.IOException"/>
  32475. <doc>
  32476. <![CDATA[Check the mark for end of the serialized record.
  32477. @param tag Used by tagged serialization formats (such as XML)]]>
  32478. </doc>
  32479. </method>
  32480. <method name="startVector" return="org.apache.hadoop.record.Index"
  32481. abstract="false" native="false" synchronized="false"
  32482. static="false" final="false" visibility="public"
  32483. deprecated="not deprecated">
  32484. <param name="tag" type="java.lang.String"/>
  32485. <exception name="IOException" type="java.io.IOException"/>
  32486. <doc>
  32487. <![CDATA[Check the mark for start of the serialized vector.
  32488. @param tag Used by tagged serialization formats (such as XML)
  32489. @return Index that is used to count the number of elements.]]>
  32490. </doc>
  32491. </method>
  32492. <method name="endVector"
  32493. abstract="false" native="false" synchronized="false"
  32494. static="false" final="false" visibility="public"
  32495. deprecated="not deprecated">
  32496. <param name="tag" type="java.lang.String"/>
  32497. <exception name="IOException" type="java.io.IOException"/>
  32498. <doc>
  32499. <![CDATA[Check the mark for end of the serialized vector.
  32500. @param tag Used by tagged serialization formats (such as XML)]]>
  32501. </doc>
  32502. </method>
  32503. <method name="startMap" return="org.apache.hadoop.record.Index"
  32504. abstract="false" native="false" synchronized="false"
  32505. static="false" final="false" visibility="public"
  32506. deprecated="not deprecated">
  32507. <param name="tag" type="java.lang.String"/>
  32508. <exception name="IOException" type="java.io.IOException"/>
  32509. <doc>
  32510. <![CDATA[Check the mark for start of the serialized map.
  32511. @param tag Used by tagged serialization formats (such as XML)
  32512. @return Index that is used to count the number of map entries.]]>
  32513. </doc>
  32514. </method>
  32515. <method name="endMap"
  32516. abstract="false" native="false" synchronized="false"
  32517. static="false" final="false" visibility="public"
  32518. deprecated="not deprecated">
  32519. <param name="tag" type="java.lang.String"/>
  32520. <exception name="IOException" type="java.io.IOException"/>
  32521. <doc>
  32522. <![CDATA[Check the mark for end of the serialized map.
  32523. @param tag Used by tagged serialization formats (such as XML)]]>
  32524. </doc>
  32525. </method>
  32526. <doc>
  32527. <![CDATA[Interface that all the Deserializers have to implement.]]>
  32528. </doc>
  32529. </interface>
  32530. <!-- end interface org.apache.hadoop.record.RecordInput -->
  32531. <!-- start interface org.apache.hadoop.record.RecordOutput -->
  32532. <interface name="RecordOutput" abstract="true"
  32533. static="false" final="false" visibility="public"
  32534. deprecated="not deprecated">
  32535. <method name="writeByte"
  32536. abstract="false" native="false" synchronized="false"
  32537. static="false" final="false" visibility="public"
  32538. deprecated="not deprecated">
  32539. <param name="b" type="byte"/>
  32540. <param name="tag" type="java.lang.String"/>
  32541. <exception name="IOException" type="java.io.IOException"/>
  32542. <doc>
  32543. <![CDATA[Write a byte to serialized record.
  32544. @param b Byte to be serialized
  32545. @param tag Used by tagged serialization formats (such as XML)
  32546. @throws IOException Indicates error in serialization]]>
  32547. </doc>
  32548. </method>
  32549. <method name="writeBool"
  32550. abstract="false" native="false" synchronized="false"
  32551. static="false" final="false" visibility="public"
  32552. deprecated="not deprecated">
  32553. <param name="b" type="boolean"/>
  32554. <param name="tag" type="java.lang.String"/>
  32555. <exception name="IOException" type="java.io.IOException"/>
  32556. <doc>
  32557. <![CDATA[Write a boolean to serialized record.
  32558. @param b Boolean to be serialized
  32559. @param tag Used by tagged serialization formats (such as XML)
  32560. @throws IOException Indicates error in serialization]]>
  32561. </doc>
  32562. </method>
  32563. <method name="writeInt"
  32564. abstract="false" native="false" synchronized="false"
  32565. static="false" final="false" visibility="public"
  32566. deprecated="not deprecated">
  32567. <param name="i" type="int"/>
  32568. <param name="tag" type="java.lang.String"/>
  32569. <exception name="IOException" type="java.io.IOException"/>
  32570. <doc>
  32571. <![CDATA[Write an integer to serialized record.
  32572. @param i Integer to be serialized
  32573. @param tag Used by tagged serialization formats (such as XML)
  32574. @throws IOException Indicates error in serialization]]>
  32575. </doc>
  32576. </method>
  32577. <method name="writeLong"
  32578. abstract="false" native="false" synchronized="false"
  32579. static="false" final="false" visibility="public"
  32580. deprecated="not deprecated">
  32581. <param name="l" type="long"/>
  32582. <param name="tag" type="java.lang.String"/>
  32583. <exception name="IOException" type="java.io.IOException"/>
  32584. <doc>
  32585. <![CDATA[Write a long integer to serialized record.
  32586. @param l Long to be serialized
  32587. @param tag Used by tagged serialization formats (such as XML)
  32588. @throws IOException Indicates error in serialization]]>
  32589. </doc>
  32590. </method>
  32591. <method name="writeFloat"
  32592. abstract="false" native="false" synchronized="false"
  32593. static="false" final="false" visibility="public"
  32594. deprecated="not deprecated">
  32595. <param name="f" type="float"/>
  32596. <param name="tag" type="java.lang.String"/>
  32597. <exception name="IOException" type="java.io.IOException"/>
  32598. <doc>
  32599. <![CDATA[Write a single-precision float to serialized record.
  32600. @param f Float to be serialized
  32601. @param tag Used by tagged serialization formats (such as XML)
  32602. @throws IOException Indicates error in serialization]]>
  32603. </doc>
  32604. </method>
  32605. <method name="writeDouble"
  32606. abstract="false" native="false" synchronized="false"
  32607. static="false" final="false" visibility="public"
  32608. deprecated="not deprecated">
  32609. <param name="d" type="double"/>
  32610. <param name="tag" type="java.lang.String"/>
  32611. <exception name="IOException" type="java.io.IOException"/>
  32612. <doc>
  32613. <![CDATA[Write a double precision floating point number to serialized record.
  32614. @param d Double to be serialized
  32615. @param tag Used by tagged serialization formats (such as XML)
  32616. @throws IOException Indicates error in serialization]]>
  32617. </doc>
  32618. </method>
  32619. <method name="writeString"
  32620. abstract="false" native="false" synchronized="false"
  32621. static="false" final="false" visibility="public"
  32622. deprecated="not deprecated">
  32623. <param name="s" type="java.lang.String"/>
  32624. <param name="tag" type="java.lang.String"/>
  32625. <exception name="IOException" type="java.io.IOException"/>
  32626. <doc>
  32627. <![CDATA[Write a unicode string to serialized record.
  32628. @param s String to be serialized
  32629. @param tag Used by tagged serialization formats (such as XML)
  32630. @throws IOException Indicates error in serialization]]>
  32631. </doc>
  32632. </method>
  32633. <method name="writeBuffer"
  32634. abstract="false" native="false" synchronized="false"
  32635. static="false" final="false" visibility="public"
  32636. deprecated="not deprecated">
  32637. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  32638. <param name="tag" type="java.lang.String"/>
  32639. <exception name="IOException" type="java.io.IOException"/>
  32640. <doc>
  32641. <![CDATA[Write a buffer to serialized record.
  32642. @param buf Buffer to be serialized
  32643. @param tag Used by tagged serialization formats (such as XML)
  32644. @throws IOException Indicates error in serialization]]>
  32645. </doc>
  32646. </method>
  32647. <method name="startRecord"
  32648. abstract="false" native="false" synchronized="false"
  32649. static="false" final="false" visibility="public"
  32650. deprecated="not deprecated">
  32651. <param name="r" type="org.apache.hadoop.record.Record"/>
  32652. <param name="tag" type="java.lang.String"/>
  32653. <exception name="IOException" type="java.io.IOException"/>
  32654. <doc>
  32655. <![CDATA[Mark the start of a record to be serialized.
  32656. @param r Record to be serialized
  32657. @param tag Used by tagged serialization formats (such as XML)
  32658. @throws IOException Indicates error in serialization]]>
  32659. </doc>
  32660. </method>
  32661. <method name="endRecord"
  32662. abstract="false" native="false" synchronized="false"
  32663. static="false" final="false" visibility="public"
  32664. deprecated="not deprecated">
  32665. <param name="r" type="org.apache.hadoop.record.Record"/>
  32666. <param name="tag" type="java.lang.String"/>
  32667. <exception name="IOException" type="java.io.IOException"/>
  32668. <doc>
  32669. <![CDATA[Mark the end of a serialized record.
  32670. @param r Record to be serialized
  32671. @param tag Used by tagged serialization formats (such as XML)
  32672. @throws IOException Indicates error in serialization]]>
  32673. </doc>
  32674. </method>
  32675. <method name="startVector"
  32676. abstract="false" native="false" synchronized="false"
  32677. static="false" final="false" visibility="public"
  32678. deprecated="not deprecated">
  32679. <param name="v" type="java.util.ArrayList"/>
  32680. <param name="tag" type="java.lang.String"/>
  32681. <exception name="IOException" type="java.io.IOException"/>
  32682. <doc>
  32683. <![CDATA[Mark the start of a vector to be serialized.
  32684. @param v Vector to be serialized
  32685. @param tag Used by tagged serialization formats (such as XML)
  32686. @throws IOException Indicates error in serialization]]>
  32687. </doc>
  32688. </method>
  32689. <method name="endVector"
  32690. abstract="false" native="false" synchronized="false"
  32691. static="false" final="false" visibility="public"
  32692. deprecated="not deprecated">
  32693. <param name="v" type="java.util.ArrayList"/>
  32694. <param name="tag" type="java.lang.String"/>
  32695. <exception name="IOException" type="java.io.IOException"/>
  32696. <doc>
  32697. <![CDATA[Mark the end of a serialized vector.
  32698. @param v Vector to be serialized
  32699. @param tag Used by tagged serialization formats (such as XML)
  32700. @throws IOException Indicates error in serialization]]>
  32701. </doc>
  32702. </method>
  32703. <method name="startMap"
  32704. abstract="false" native="false" synchronized="false"
  32705. static="false" final="false" visibility="public"
  32706. deprecated="not deprecated">
  32707. <param name="m" type="java.util.TreeMap"/>
  32708. <param name="tag" type="java.lang.String"/>
  32709. <exception name="IOException" type="java.io.IOException"/>
  32710. <doc>
  32711. <![CDATA[Mark the start of a map to be serialized.
  32712. @param m Map to be serialized
  32713. @param tag Used by tagged serialization formats (such as XML)
  32714. @throws IOException Indicates error in serialization]]>
  32715. </doc>
  32716. </method>
  32717. <method name="endMap"
  32718. abstract="false" native="false" synchronized="false"
  32719. static="false" final="false" visibility="public"
  32720. deprecated="not deprecated">
  32721. <param name="m" type="java.util.TreeMap"/>
  32722. <param name="tag" type="java.lang.String"/>
  32723. <exception name="IOException" type="java.io.IOException"/>
  32724. <doc>
  32725. <![CDATA[Mark the end of a serialized map.
  32726. @param m Map to be serialized
  32727. @param tag Used by tagged serialization formats (such as XML)
  32728. @throws IOException Indicates error in serialization]]>
  32729. </doc>
  32730. </method>
  32731. <doc>
  32732. <![CDATA[Interface that alll the serializers have to implement.]]>
  32733. </doc>
  32734. </interface>
  32735. <!-- end interface org.apache.hadoop.record.RecordOutput -->
  32736. <!-- start class org.apache.hadoop.record.Utils -->
  32737. <class name="Utils" extends="java.lang.Object"
  32738. abstract="false"
  32739. static="false" final="false" visibility="public"
  32740. deprecated="not deprecated">
  32741. <method name="readFloat" return="float"
  32742. abstract="false" native="false" synchronized="false"
  32743. static="true" final="false" visibility="public"
  32744. deprecated="not deprecated">
  32745. <param name="bytes" type="byte[]"/>
  32746. <param name="start" type="int"/>
  32747. <doc>
  32748. <![CDATA[Parse a float from a byte array.]]>
  32749. </doc>
  32750. </method>
  32751. <method name="readDouble" return="double"
  32752. abstract="false" native="false" synchronized="false"
  32753. static="true" final="false" visibility="public"
  32754. deprecated="not deprecated">
  32755. <param name="bytes" type="byte[]"/>
  32756. <param name="start" type="int"/>
  32757. <doc>
  32758. <![CDATA[Parse a double from a byte array.]]>
  32759. </doc>
  32760. </method>
  32761. <method name="readVLong" return="long"
  32762. abstract="false" native="false" synchronized="false"
  32763. static="true" final="false" visibility="public"
  32764. deprecated="not deprecated">
  32765. <param name="bytes" type="byte[]"/>
  32766. <param name="start" type="int"/>
  32767. <exception name="IOException" type="java.io.IOException"/>
  32768. <doc>
  32769. <![CDATA[Reads a zero-compressed encoded long from a byte array and returns it.
  32770. @param bytes byte array with decode long
  32771. @param start starting index
  32772. @throws java.io.IOException
  32773. @return deserialized long]]>
  32774. </doc>
  32775. </method>
  32776. <method name="readVInt" return="int"
  32777. abstract="false" native="false" synchronized="false"
  32778. static="true" final="false" visibility="public"
  32779. deprecated="not deprecated">
  32780. <param name="bytes" type="byte[]"/>
  32781. <param name="start" type="int"/>
  32782. <exception name="IOException" type="java.io.IOException"/>
  32783. <doc>
  32784. <![CDATA[Reads a zero-compressed encoded integer from a byte array and returns it.
  32785. @param bytes byte array with the encoded integer
  32786. @param start start index
  32787. @throws java.io.IOException
  32788. @return deserialized integer]]>
  32789. </doc>
  32790. </method>
  32791. <method name="readVLong" return="long"
  32792. abstract="false" native="false" synchronized="false"
  32793. static="true" final="false" visibility="public"
  32794. deprecated="not deprecated">
  32795. <param name="in" type="java.io.DataInput"/>
  32796. <exception name="IOException" type="java.io.IOException"/>
  32797. <doc>
  32798. <![CDATA[Reads a zero-compressed encoded long from a stream and return it.
  32799. @param in input stream
  32800. @throws java.io.IOException
  32801. @return deserialized long]]>
  32802. </doc>
  32803. </method>
  32804. <method name="readVInt" return="int"
  32805. abstract="false" native="false" synchronized="false"
  32806. static="true" final="false" visibility="public"
  32807. deprecated="not deprecated">
  32808. <param name="in" type="java.io.DataInput"/>
  32809. <exception name="IOException" type="java.io.IOException"/>
  32810. <doc>
  32811. <![CDATA[Reads a zero-compressed encoded integer from a stream and returns it.
  32812. @param in input stream
  32813. @throws java.io.IOException
  32814. @return deserialized integer]]>
  32815. </doc>
  32816. </method>
  32817. <method name="getVIntSize" return="int"
  32818. abstract="false" native="false" synchronized="false"
  32819. static="true" final="false" visibility="public"
  32820. deprecated="not deprecated">
  32821. <param name="i" type="long"/>
  32822. <doc>
  32823. <![CDATA[Get the encoded length if an integer is stored in a variable-length format
  32824. @return the encoded length]]>
  32825. </doc>
  32826. </method>
  32827. <method name="writeVLong"
  32828. abstract="false" native="false" synchronized="false"
  32829. static="true" final="false" visibility="public"
  32830. deprecated="not deprecated">
  32831. <param name="stream" type="java.io.DataOutput"/>
  32832. <param name="i" type="long"/>
  32833. <exception name="IOException" type="java.io.IOException"/>
  32834. <doc>
  32835. <![CDATA[Serializes a long to a binary stream with zero-compressed encoding.
  32836. For -112 <= i <= 127, only one byte is used with the actual value.
  32837. For other values of i, the first byte value indicates whether the
  32838. long is positive or negative, and the number of bytes that follow.
  32839. If the first byte value v is between -113 and -120, the following long
  32840. is positive, with number of bytes that follow are -(v+112).
  32841. If the first byte value v is between -121 and -128, the following long
  32842. is negative, with number of bytes that follow are -(v+120). Bytes are
  32843. stored in the high-non-zero-byte-first order.
  32844. @param stream Binary output stream
  32845. @param i Long to be serialized
  32846. @throws java.io.IOException]]>
  32847. </doc>
  32848. </method>
  32849. <method name="writeVInt"
  32850. abstract="false" native="false" synchronized="false"
  32851. static="true" final="false" visibility="public"
  32852. deprecated="not deprecated">
  32853. <param name="stream" type="java.io.DataOutput"/>
  32854. <param name="i" type="int"/>
  32855. <exception name="IOException" type="java.io.IOException"/>
  32856. <doc>
  32857. <![CDATA[Serializes an int to a binary stream with zero-compressed encoding.
  32858. @param stream Binary output stream
  32859. @param i int to be serialized
  32860. @throws java.io.IOException]]>
  32861. </doc>
  32862. </method>
  32863. <method name="compareBytes" return="int"
  32864. abstract="false" native="false" synchronized="false"
  32865. static="true" final="false" visibility="public"
  32866. deprecated="not deprecated">
  32867. <param name="b1" type="byte[]"/>
  32868. <param name="s1" type="int"/>
  32869. <param name="l1" type="int"/>
  32870. <param name="b2" type="byte[]"/>
  32871. <param name="s2" type="int"/>
  32872. <param name="l2" type="int"/>
  32873. <doc>
  32874. <![CDATA[Lexicographic order of binary data.]]>
  32875. </doc>
  32876. </method>
  32877. <field name="hexchars" type="char[]"
  32878. transient="false" volatile="false"
  32879. static="true" final="true" visibility="public"
  32880. deprecated="not deprecated">
  32881. </field>
  32882. <doc>
  32883. <![CDATA[Various utility functions for Hadooop record I/O runtime.]]>
  32884. </doc>
  32885. </class>
  32886. <!-- end class org.apache.hadoop.record.Utils -->
  32887. <!-- start class org.apache.hadoop.record.XmlRecordInput -->
  32888. <class name="XmlRecordInput" extends="java.lang.Object"
  32889. abstract="false"
  32890. static="false" final="false" visibility="public"
  32891. deprecated="not deprecated">
  32892. <implements name="org.apache.hadoop.record.RecordInput"/>
  32893. <constructor name="XmlRecordInput" type="java.io.InputStream"
  32894. static="false" final="false" visibility="public"
  32895. deprecated="not deprecated">
  32896. <doc>
  32897. <![CDATA[Creates a new instance of XmlRecordInput]]>
  32898. </doc>
  32899. </constructor>
  32900. <method name="readByte" return="byte"
  32901. abstract="false" native="false" synchronized="false"
  32902. static="false" final="false" visibility="public"
  32903. deprecated="not deprecated">
  32904. <param name="tag" type="java.lang.String"/>
  32905. <exception name="IOException" type="java.io.IOException"/>
  32906. </method>
  32907. <method name="readBool" return="boolean"
  32908. abstract="false" native="false" synchronized="false"
  32909. static="false" final="false" visibility="public"
  32910. deprecated="not deprecated">
  32911. <param name="tag" type="java.lang.String"/>
  32912. <exception name="IOException" type="java.io.IOException"/>
  32913. </method>
  32914. <method name="readInt" return="int"
  32915. abstract="false" native="false" synchronized="false"
  32916. static="false" final="false" visibility="public"
  32917. deprecated="not deprecated">
  32918. <param name="tag" type="java.lang.String"/>
  32919. <exception name="IOException" type="java.io.IOException"/>
  32920. </method>
  32921. <method name="readLong" return="long"
  32922. abstract="false" native="false" synchronized="false"
  32923. static="false" final="false" visibility="public"
  32924. deprecated="not deprecated">
  32925. <param name="tag" type="java.lang.String"/>
  32926. <exception name="IOException" type="java.io.IOException"/>
  32927. </method>
  32928. <method name="readFloat" return="float"
  32929. abstract="false" native="false" synchronized="false"
  32930. static="false" final="false" visibility="public"
  32931. deprecated="not deprecated">
  32932. <param name="tag" type="java.lang.String"/>
  32933. <exception name="IOException" type="java.io.IOException"/>
  32934. </method>
  32935. <method name="readDouble" return="double"
  32936. abstract="false" native="false" synchronized="false"
  32937. static="false" final="false" visibility="public"
  32938. deprecated="not deprecated">
  32939. <param name="tag" type="java.lang.String"/>
  32940. <exception name="IOException" type="java.io.IOException"/>
  32941. </method>
  32942. <method name="readString" return="java.lang.String"
  32943. abstract="false" native="false" synchronized="false"
  32944. static="false" final="false" visibility="public"
  32945. deprecated="not deprecated">
  32946. <param name="tag" type="java.lang.String"/>
  32947. <exception name="IOException" type="java.io.IOException"/>
  32948. </method>
  32949. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  32950. abstract="false" native="false" synchronized="false"
  32951. static="false" final="false" visibility="public"
  32952. deprecated="not deprecated">
  32953. <param name="tag" type="java.lang.String"/>
  32954. <exception name="IOException" type="java.io.IOException"/>
  32955. </method>
  32956. <method name="startRecord"
  32957. abstract="false" native="false" synchronized="false"
  32958. static="false" final="false" visibility="public"
  32959. deprecated="not deprecated">
  32960. <param name="tag" type="java.lang.String"/>
  32961. <exception name="IOException" type="java.io.IOException"/>
  32962. </method>
  32963. <method name="endRecord"
  32964. abstract="false" native="false" synchronized="false"
  32965. static="false" final="false" visibility="public"
  32966. deprecated="not deprecated">
  32967. <param name="tag" type="java.lang.String"/>
  32968. <exception name="IOException" type="java.io.IOException"/>
  32969. </method>
  32970. <method name="startVector" return="org.apache.hadoop.record.Index"
  32971. abstract="false" native="false" synchronized="false"
  32972. static="false" final="false" visibility="public"
  32973. deprecated="not deprecated">
  32974. <param name="tag" type="java.lang.String"/>
  32975. <exception name="IOException" type="java.io.IOException"/>
  32976. </method>
  32977. <method name="endVector"
  32978. abstract="false" native="false" synchronized="false"
  32979. static="false" final="false" visibility="public"
  32980. deprecated="not deprecated">
  32981. <param name="tag" type="java.lang.String"/>
  32982. <exception name="IOException" type="java.io.IOException"/>
  32983. </method>
  32984. <method name="startMap" return="org.apache.hadoop.record.Index"
  32985. abstract="false" native="false" synchronized="false"
  32986. static="false" final="false" visibility="public"
  32987. deprecated="not deprecated">
  32988. <param name="tag" type="java.lang.String"/>
  32989. <exception name="IOException" type="java.io.IOException"/>
  32990. </method>
  32991. <method name="endMap"
  32992. abstract="false" native="false" synchronized="false"
  32993. static="false" final="false" visibility="public"
  32994. deprecated="not deprecated">
  32995. <param name="tag" type="java.lang.String"/>
  32996. <exception name="IOException" type="java.io.IOException"/>
  32997. </method>
  32998. <doc>
  32999. <![CDATA[XML Deserializer.]]>
  33000. </doc>
  33001. </class>
  33002. <!-- end class org.apache.hadoop.record.XmlRecordInput -->
  33003. <!-- start class org.apache.hadoop.record.XmlRecordOutput -->
  33004. <class name="XmlRecordOutput" extends="java.lang.Object"
  33005. abstract="false"
  33006. static="false" final="false" visibility="public"
  33007. deprecated="not deprecated">
  33008. <implements name="org.apache.hadoop.record.RecordOutput"/>
  33009. <constructor name="XmlRecordOutput" type="java.io.OutputStream"
  33010. static="false" final="false" visibility="public"
  33011. deprecated="not deprecated">
  33012. <doc>
  33013. <![CDATA[Creates a new instance of XmlRecordOutput]]>
  33014. </doc>
  33015. </constructor>
  33016. <method name="writeByte"
  33017. abstract="false" native="false" synchronized="false"
  33018. static="false" final="false" visibility="public"
  33019. deprecated="not deprecated">
  33020. <param name="b" type="byte"/>
  33021. <param name="tag" type="java.lang.String"/>
  33022. <exception name="IOException" type="java.io.IOException"/>
  33023. </method>
  33024. <method name="writeBool"
  33025. abstract="false" native="false" synchronized="false"
  33026. static="false" final="false" visibility="public"
  33027. deprecated="not deprecated">
  33028. <param name="b" type="boolean"/>
  33029. <param name="tag" type="java.lang.String"/>
  33030. <exception name="IOException" type="java.io.IOException"/>
  33031. </method>
  33032. <method name="writeInt"
  33033. abstract="false" native="false" synchronized="false"
  33034. static="false" final="false" visibility="public"
  33035. deprecated="not deprecated">
  33036. <param name="i" type="int"/>
  33037. <param name="tag" type="java.lang.String"/>
  33038. <exception name="IOException" type="java.io.IOException"/>
  33039. </method>
  33040. <method name="writeLong"
  33041. abstract="false" native="false" synchronized="false"
  33042. static="false" final="false" visibility="public"
  33043. deprecated="not deprecated">
  33044. <param name="l" type="long"/>
  33045. <param name="tag" type="java.lang.String"/>
  33046. <exception name="IOException" type="java.io.IOException"/>
  33047. </method>
  33048. <method name="writeFloat"
  33049. abstract="false" native="false" synchronized="false"
  33050. static="false" final="false" visibility="public"
  33051. deprecated="not deprecated">
  33052. <param name="f" type="float"/>
  33053. <param name="tag" type="java.lang.String"/>
  33054. <exception name="IOException" type="java.io.IOException"/>
  33055. </method>
  33056. <method name="writeDouble"
  33057. abstract="false" native="false" synchronized="false"
  33058. static="false" final="false" visibility="public"
  33059. deprecated="not deprecated">
  33060. <param name="d" type="double"/>
  33061. <param name="tag" type="java.lang.String"/>
  33062. <exception name="IOException" type="java.io.IOException"/>
  33063. </method>
  33064. <method name="writeString"
  33065. abstract="false" native="false" synchronized="false"
  33066. static="false" final="false" visibility="public"
  33067. deprecated="not deprecated">
  33068. <param name="s" type="java.lang.String"/>
  33069. <param name="tag" type="java.lang.String"/>
  33070. <exception name="IOException" type="java.io.IOException"/>
  33071. </method>
  33072. <method name="writeBuffer"
  33073. abstract="false" native="false" synchronized="false"
  33074. static="false" final="false" visibility="public"
  33075. deprecated="not deprecated">
  33076. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  33077. <param name="tag" type="java.lang.String"/>
  33078. <exception name="IOException" type="java.io.IOException"/>
  33079. </method>
  33080. <method name="startRecord"
  33081. abstract="false" native="false" synchronized="false"
  33082. static="false" final="false" visibility="public"
  33083. deprecated="not deprecated">
  33084. <param name="r" type="org.apache.hadoop.record.Record"/>
  33085. <param name="tag" type="java.lang.String"/>
  33086. <exception name="IOException" type="java.io.IOException"/>
  33087. </method>
  33088. <method name="endRecord"
  33089. abstract="false" native="false" synchronized="false"
  33090. static="false" final="false" visibility="public"
  33091. deprecated="not deprecated">
  33092. <param name="r" type="org.apache.hadoop.record.Record"/>
  33093. <param name="tag" type="java.lang.String"/>
  33094. <exception name="IOException" type="java.io.IOException"/>
  33095. </method>
  33096. <method name="startVector"
  33097. abstract="false" native="false" synchronized="false"
  33098. static="false" final="false" visibility="public"
  33099. deprecated="not deprecated">
  33100. <param name="v" type="java.util.ArrayList"/>
  33101. <param name="tag" type="java.lang.String"/>
  33102. <exception name="IOException" type="java.io.IOException"/>
  33103. </method>
  33104. <method name="endVector"
  33105. abstract="false" native="false" synchronized="false"
  33106. static="false" final="false" visibility="public"
  33107. deprecated="not deprecated">
  33108. <param name="v" type="java.util.ArrayList"/>
  33109. <param name="tag" type="java.lang.String"/>
  33110. <exception name="IOException" type="java.io.IOException"/>
  33111. </method>
  33112. <method name="startMap"
  33113. abstract="false" native="false" synchronized="false"
  33114. static="false" final="false" visibility="public"
  33115. deprecated="not deprecated">
  33116. <param name="v" type="java.util.TreeMap"/>
  33117. <param name="tag" type="java.lang.String"/>
  33118. <exception name="IOException" type="java.io.IOException"/>
  33119. </method>
  33120. <method name="endMap"
  33121. abstract="false" native="false" synchronized="false"
  33122. static="false" final="false" visibility="public"
  33123. deprecated="not deprecated">
  33124. <param name="v" type="java.util.TreeMap"/>
  33125. <param name="tag" type="java.lang.String"/>
  33126. <exception name="IOException" type="java.io.IOException"/>
  33127. </method>
  33128. <doc>
  33129. <![CDATA[XML Serializer.]]>
  33130. </doc>
  33131. </class>
  33132. <!-- end class org.apache.hadoop.record.XmlRecordOutput -->
  33133. </package>
  33134. <package name="org.apache.hadoop.record.compiler">
  33135. <!-- start class org.apache.hadoop.record.compiler.CodeBuffer -->
  33136. <class name="CodeBuffer" extends="java.lang.Object"
  33137. abstract="false"
  33138. static="false" final="false" visibility="public"
  33139. deprecated="not deprecated">
  33140. <method name="toString" return="java.lang.String"
  33141. abstract="false" native="false" synchronized="false"
  33142. static="false" final="false" visibility="public"
  33143. deprecated="not deprecated">
  33144. </method>
  33145. <doc>
  33146. <![CDATA[A wrapper around StringBuffer that automatically does indentation]]>
  33147. </doc>
  33148. </class>
  33149. <!-- end class org.apache.hadoop.record.compiler.CodeBuffer -->
  33150. <!-- start class org.apache.hadoop.record.compiler.Consts -->
  33151. <class name="Consts" extends="java.lang.Object"
  33152. abstract="false"
  33153. static="false" final="false" visibility="public"
  33154. deprecated="not deprecated">
  33155. <field name="RIO_PREFIX" type="java.lang.String"
  33156. transient="false" volatile="false"
  33157. static="true" final="true" visibility="public"
  33158. deprecated="not deprecated">
  33159. </field>
  33160. <field name="RTI_VAR" type="java.lang.String"
  33161. transient="false" volatile="false"
  33162. static="true" final="true" visibility="public"
  33163. deprecated="not deprecated">
  33164. </field>
  33165. <field name="RTI_FILTER" type="java.lang.String"
  33166. transient="false" volatile="false"
  33167. static="true" final="true" visibility="public"
  33168. deprecated="not deprecated">
  33169. </field>
  33170. <field name="RTI_FILTER_FIELDS" type="java.lang.String"
  33171. transient="false" volatile="false"
  33172. static="true" final="true" visibility="public"
  33173. deprecated="not deprecated">
  33174. </field>
  33175. <field name="RECORD_OUTPUT" type="java.lang.String"
  33176. transient="false" volatile="false"
  33177. static="true" final="true" visibility="public"
  33178. deprecated="not deprecated">
  33179. </field>
  33180. <field name="RECORD_INPUT" type="java.lang.String"
  33181. transient="false" volatile="false"
  33182. static="true" final="true" visibility="public"
  33183. deprecated="not deprecated">
  33184. </field>
  33185. <field name="TAG" type="java.lang.String"
  33186. transient="false" volatile="false"
  33187. static="true" final="true" visibility="public"
  33188. deprecated="not deprecated">
  33189. </field>
  33190. <doc>
  33191. <![CDATA[const definitions for Record I/O compiler]]>
  33192. </doc>
  33193. </class>
  33194. <!-- end class org.apache.hadoop.record.compiler.Consts -->
  33195. <!-- start class org.apache.hadoop.record.compiler.JBoolean -->
  33196. <class name="JBoolean" extends="org.apache.hadoop.record.compiler.JType"
  33197. abstract="false"
  33198. static="false" final="false" visibility="public"
  33199. deprecated="not deprecated">
  33200. <constructor name="JBoolean"
  33201. static="false" final="false" visibility="public"
  33202. deprecated="not deprecated">
  33203. <doc>
  33204. <![CDATA[Creates a new instance of JBoolean]]>
  33205. </doc>
  33206. </constructor>
  33207. </class>
  33208. <!-- end class org.apache.hadoop.record.compiler.JBoolean -->
  33209. <!-- start class org.apache.hadoop.record.compiler.JBuffer -->
  33210. <class name="JBuffer" extends="org.apache.hadoop.record.compiler.JCompType"
  33211. abstract="false"
  33212. static="false" final="false" visibility="public"
  33213. deprecated="not deprecated">
  33214. <constructor name="JBuffer"
  33215. static="false" final="false" visibility="public"
  33216. deprecated="not deprecated">
  33217. <doc>
  33218. <![CDATA[Creates a new instance of JBuffer]]>
  33219. </doc>
  33220. </constructor>
  33221. <doc>
  33222. <![CDATA[Code generator for "buffer" type.]]>
  33223. </doc>
  33224. </class>
  33225. <!-- end class org.apache.hadoop.record.compiler.JBuffer -->
  33226. <!-- start class org.apache.hadoop.record.compiler.JByte -->
  33227. <class name="JByte" extends="org.apache.hadoop.record.compiler.JType"
  33228. abstract="false"
  33229. static="false" final="false" visibility="public"
  33230. deprecated="not deprecated">
  33231. <constructor name="JByte"
  33232. static="false" final="false" visibility="public"
  33233. deprecated="not deprecated">
  33234. </constructor>
  33235. <doc>
  33236. <![CDATA[Code generator for "byte" type.]]>
  33237. </doc>
  33238. </class>
  33239. <!-- end class org.apache.hadoop.record.compiler.JByte -->
  33240. <!-- start class org.apache.hadoop.record.compiler.JDouble -->
  33241. <class name="JDouble" extends="org.apache.hadoop.record.compiler.JType"
  33242. abstract="false"
  33243. static="false" final="false" visibility="public"
  33244. deprecated="not deprecated">
  33245. <constructor name="JDouble"
  33246. static="false" final="false" visibility="public"
  33247. deprecated="not deprecated">
  33248. <doc>
  33249. <![CDATA[Creates a new instance of JDouble]]>
  33250. </doc>
  33251. </constructor>
  33252. </class>
  33253. <!-- end class org.apache.hadoop.record.compiler.JDouble -->
  33254. <!-- start class org.apache.hadoop.record.compiler.JField -->
  33255. <class name="JField" extends="java.lang.Object"
  33256. abstract="false"
  33257. static="false" final="false" visibility="public"
  33258. deprecated="not deprecated">
  33259. <constructor name="JField" type="java.lang.String, java.lang.Object"
  33260. static="false" final="false" visibility="public"
  33261. deprecated="not deprecated">
  33262. <doc>
  33263. <![CDATA[Creates a new instance of JField]]>
  33264. </doc>
  33265. </constructor>
  33266. <doc>
  33267. <![CDATA[A thin wrappper around record field.]]>
  33268. </doc>
  33269. </class>
  33270. <!-- end class org.apache.hadoop.record.compiler.JField -->
  33271. <!-- start class org.apache.hadoop.record.compiler.JFile -->
  33272. <class name="JFile" extends="java.lang.Object"
  33273. abstract="false"
  33274. static="false" final="false" visibility="public"
  33275. deprecated="not deprecated">
  33276. <constructor name="JFile" type="java.lang.String, java.util.ArrayList, java.util.ArrayList"
  33277. static="false" final="false" visibility="public"
  33278. deprecated="not deprecated">
  33279. <doc>
  33280. <![CDATA[Creates a new instance of JFile
  33281. @param name possibly full pathname to the file
  33282. @param inclFiles included files (as JFile)
  33283. @param recList List of records defined within this file]]>
  33284. </doc>
  33285. </constructor>
  33286. <method name="genCode" return="int"
  33287. abstract="false" native="false" synchronized="false"
  33288. static="false" final="false" visibility="public"
  33289. deprecated="not deprecated">
  33290. <param name="language" type="java.lang.String"/>
  33291. <param name="destDir" type="java.lang.String"/>
  33292. <param name="options" type="java.util.ArrayList"/>
  33293. <exception name="IOException" type="java.io.IOException"/>
  33294. <doc>
  33295. <![CDATA[Generate record code in given language. Language should be all
  33296. lowercase.]]>
  33297. </doc>
  33298. </method>
  33299. <doc>
  33300. <![CDATA[Container for the Hadoop Record DDL.
  33301. The main components of the file are filename, list of included files,
  33302. and records defined in that file.]]>
  33303. </doc>
  33304. </class>
  33305. <!-- end class org.apache.hadoop.record.compiler.JFile -->
  33306. <!-- start class org.apache.hadoop.record.compiler.JFloat -->
  33307. <class name="JFloat" extends="org.apache.hadoop.record.compiler.JType"
  33308. abstract="false"
  33309. static="false" final="false" visibility="public"
  33310. deprecated="not deprecated">
  33311. <constructor name="JFloat"
  33312. static="false" final="false" visibility="public"
  33313. deprecated="not deprecated">
  33314. <doc>
  33315. <![CDATA[Creates a new instance of JFloat]]>
  33316. </doc>
  33317. </constructor>
  33318. </class>
  33319. <!-- end class org.apache.hadoop.record.compiler.JFloat -->
  33320. <!-- start class org.apache.hadoop.record.compiler.JInt -->
  33321. <class name="JInt" extends="org.apache.hadoop.record.compiler.JType"
  33322. abstract="false"
  33323. static="false" final="false" visibility="public"
  33324. deprecated="not deprecated">
  33325. <constructor name="JInt"
  33326. static="false" final="false" visibility="public"
  33327. deprecated="not deprecated">
  33328. <doc>
  33329. <![CDATA[Creates a new instance of JInt]]>
  33330. </doc>
  33331. </constructor>
  33332. <doc>
  33333. <![CDATA[Code generator for "int" type]]>
  33334. </doc>
  33335. </class>
  33336. <!-- end class org.apache.hadoop.record.compiler.JInt -->
  33337. <!-- start class org.apache.hadoop.record.compiler.JLong -->
  33338. <class name="JLong" extends="org.apache.hadoop.record.compiler.JType"
  33339. abstract="false"
  33340. static="false" final="false" visibility="public"
  33341. deprecated="not deprecated">
  33342. <constructor name="JLong"
  33343. static="false" final="false" visibility="public"
  33344. deprecated="not deprecated">
  33345. <doc>
  33346. <![CDATA[Creates a new instance of JLong]]>
  33347. </doc>
  33348. </constructor>
  33349. <doc>
  33350. <![CDATA[Code generator for "long" type]]>
  33351. </doc>
  33352. </class>
  33353. <!-- end class org.apache.hadoop.record.compiler.JLong -->
  33354. <!-- start class org.apache.hadoop.record.compiler.JMap -->
  33355. <class name="JMap" extends="org.apache.hadoop.record.compiler.JCompType"
  33356. abstract="false"
  33357. static="false" final="false" visibility="public"
  33358. deprecated="not deprecated">
  33359. <constructor name="JMap" type="org.apache.hadoop.record.compiler.JType, org.apache.hadoop.record.compiler.JType"
  33360. static="false" final="false" visibility="public"
  33361. deprecated="not deprecated">
  33362. <doc>
  33363. <![CDATA[Creates a new instance of JMap]]>
  33364. </doc>
  33365. </constructor>
  33366. </class>
  33367. <!-- end class org.apache.hadoop.record.compiler.JMap -->
  33368. <!-- start class org.apache.hadoop.record.compiler.JRecord -->
  33369. <class name="JRecord" extends="org.apache.hadoop.record.compiler.JCompType"
  33370. abstract="false"
  33371. static="false" final="false" visibility="public"
  33372. deprecated="not deprecated">
  33373. <constructor name="JRecord" type="java.lang.String, java.util.ArrayList"
  33374. static="false" final="false" visibility="public"
  33375. deprecated="not deprecated">
  33376. <doc>
  33377. <![CDATA[Creates a new instance of JRecord]]>
  33378. </doc>
  33379. </constructor>
  33380. </class>
  33381. <!-- end class org.apache.hadoop.record.compiler.JRecord -->
  33382. <!-- start class org.apache.hadoop.record.compiler.JString -->
  33383. <class name="JString" extends="org.apache.hadoop.record.compiler.JCompType"
  33384. abstract="false"
  33385. static="false" final="false" visibility="public"
  33386. deprecated="not deprecated">
  33387. <constructor name="JString"
  33388. static="false" final="false" visibility="public"
  33389. deprecated="not deprecated">
  33390. <doc>
  33391. <![CDATA[Creates a new instance of JString]]>
  33392. </doc>
  33393. </constructor>
  33394. </class>
  33395. <!-- end class org.apache.hadoop.record.compiler.JString -->
  33396. <!-- start class org.apache.hadoop.record.compiler.JType -->
  33397. <class name="JType" extends="java.lang.Object"
  33398. abstract="true"
  33399. static="false" final="false" visibility="public"
  33400. deprecated="not deprecated">
  33401. <constructor name="JType"
  33402. static="false" final="false" visibility="public"
  33403. deprecated="not deprecated">
  33404. </constructor>
  33405. <doc>
  33406. <![CDATA[Abstract Base class for all types supported by Hadoop Record I/O.]]>
  33407. </doc>
  33408. </class>
  33409. <!-- end class org.apache.hadoop.record.compiler.JType -->
  33410. <!-- start class org.apache.hadoop.record.compiler.JVector -->
  33411. <class name="JVector" extends="org.apache.hadoop.record.compiler.JCompType"
  33412. abstract="false"
  33413. static="false" final="false" visibility="public"
  33414. deprecated="not deprecated">
  33415. <constructor name="JVector" type="org.apache.hadoop.record.compiler.JType"
  33416. static="false" final="false" visibility="public"
  33417. deprecated="not deprecated">
  33418. <doc>
  33419. <![CDATA[Creates a new instance of JVector]]>
  33420. </doc>
  33421. </constructor>
  33422. </class>
  33423. <!-- end class org.apache.hadoop.record.compiler.JVector -->
  33424. </package>
  33425. <package name="org.apache.hadoop.record.compiler.ant">
  33426. <!-- start class org.apache.hadoop.record.compiler.ant.RccTask -->
  33427. <class name="RccTask" extends="org.apache.tools.ant.Task"
  33428. abstract="false"
  33429. static="false" final="false" visibility="public"
  33430. deprecated="not deprecated">
  33431. <constructor name="RccTask"
  33432. static="false" final="false" visibility="public"
  33433. deprecated="not deprecated">
  33434. <doc>
  33435. <![CDATA[Creates a new instance of RccTask]]>
  33436. </doc>
  33437. </constructor>
  33438. <method name="setLanguage"
  33439. abstract="false" native="false" synchronized="false"
  33440. static="false" final="false" visibility="public"
  33441. deprecated="not deprecated">
  33442. <param name="language" type="java.lang.String"/>
  33443. <doc>
  33444. <![CDATA[Sets the output language option
  33445. @param language "java"/"c++"]]>
  33446. </doc>
  33447. </method>
  33448. <method name="setFile"
  33449. abstract="false" native="false" synchronized="false"
  33450. static="false" final="false" visibility="public"
  33451. deprecated="not deprecated">
  33452. <param name="file" type="java.io.File"/>
  33453. <doc>
  33454. <![CDATA[Sets the record definition file attribute
  33455. @param file record definition file]]>
  33456. </doc>
  33457. </method>
  33458. <method name="setFailonerror"
  33459. abstract="false" native="false" synchronized="false"
  33460. static="false" final="false" visibility="public"
  33461. deprecated="not deprecated">
  33462. <param name="flag" type="boolean"/>
  33463. <doc>
  33464. <![CDATA[Given multiple files (via fileset), set the error handling behavior
  33465. @param flag true will throw build exception in case of failure (default)]]>
  33466. </doc>
  33467. </method>
  33468. <method name="setDestdir"
  33469. abstract="false" native="false" synchronized="false"
  33470. static="false" final="false" visibility="public"
  33471. deprecated="not deprecated">
  33472. <param name="dir" type="java.io.File"/>
  33473. <doc>
  33474. <![CDATA[Sets directory where output files will be generated
  33475. @param dir output directory]]>
  33476. </doc>
  33477. </method>
  33478. <method name="addFileset"
  33479. abstract="false" native="false" synchronized="false"
  33480. static="false" final="false" visibility="public"
  33481. deprecated="not deprecated">
  33482. <param name="set" type="org.apache.tools.ant.types.FileSet"/>
  33483. <doc>
  33484. <![CDATA[Adds a fileset that can consist of one or more files
  33485. @param set Set of record definition files]]>
  33486. </doc>
  33487. </method>
  33488. <method name="execute"
  33489. abstract="false" native="false" synchronized="false"
  33490. static="false" final="false" visibility="public"
  33491. deprecated="not deprecated">
  33492. <exception name="BuildException" type="org.apache.tools.ant.BuildException"/>
  33493. <doc>
  33494. <![CDATA[Invoke the Hadoop record compiler on each record definition file]]>
  33495. </doc>
  33496. </method>
  33497. <doc>
  33498. <![CDATA[Hadoop record compiler ant Task
  33499. <p> This task takes the given record definition files and compiles them into
  33500. java or c++
  33501. files. It is then up to the user to compile the generated files.
  33502. <p> The task requires the <code>file</code> or the nested fileset element to be
  33503. specified. Optional attributes are <code>language</code> (set the output
  33504. language, default is "java"),
  33505. <code>destdir</code> (name of the destination directory for generated java/c++
  33506. code, default is ".") and <code>failonerror</code> (specifies error handling
  33507. behavior. default is true).
  33508. <p><h4>Usage</h4>
  33509. <pre>
  33510. &lt;recordcc
  33511. destdir="${basedir}/gensrc"
  33512. language="java"&gt;
  33513. &lt;fileset include="**\/*.jr" /&gt;
  33514. &lt;/recordcc&gt;
  33515. </pre>]]>
  33516. </doc>
  33517. </class>
  33518. <!-- end class org.apache.hadoop.record.compiler.ant.RccTask -->
  33519. </package>
  33520. <package name="org.apache.hadoop.record.compiler.generated">
  33521. <!-- start class org.apache.hadoop.record.compiler.generated.ParseException -->
  33522. <class name="ParseException" extends="java.lang.Exception"
  33523. abstract="false"
  33524. static="false" final="false" visibility="public"
  33525. deprecated="not deprecated">
  33526. <constructor name="ParseException" type="org.apache.hadoop.record.compiler.generated.Token, int[][], java.lang.String[]"
  33527. static="false" final="false" visibility="public"
  33528. deprecated="not deprecated">
  33529. <doc>
  33530. <![CDATA[This constructor is used by the method "generateParseException"
  33531. in the generated parser. Calling this constructor generates
  33532. a new object of this type with the fields "currentToken",
  33533. "expectedTokenSequences", and "tokenImage" set. The boolean
  33534. flag "specialConstructor" is also set to true to indicate that
  33535. this constructor was used to create this object.
  33536. This constructor calls its super class with the empty string
  33537. to force the "toString" method of parent class "Throwable" to
  33538. print the error message in the form:
  33539. ParseException: <result of getMessage>]]>
  33540. </doc>
  33541. </constructor>
  33542. <constructor name="ParseException"
  33543. static="false" final="false" visibility="public"
  33544. deprecated="not deprecated">
  33545. <doc>
  33546. <![CDATA[The following constructors are for use by you for whatever
  33547. purpose you can think of. Constructing the exception in this
  33548. manner makes the exception behave in the normal way - i.e., as
  33549. documented in the class "Throwable". The fields "errorToken",
  33550. "expectedTokenSequences", and "tokenImage" do not contain
  33551. relevant information. The JavaCC generated code does not use
  33552. these constructors.]]>
  33553. </doc>
  33554. </constructor>
  33555. <constructor name="ParseException" type="java.lang.String"
  33556. static="false" final="false" visibility="public"
  33557. deprecated="not deprecated">
  33558. </constructor>
  33559. <method name="getMessage" return="java.lang.String"
  33560. abstract="false" native="false" synchronized="false"
  33561. static="false" final="false" visibility="public"
  33562. deprecated="not deprecated">
  33563. <doc>
  33564. <![CDATA[This method has the standard behavior when this object has been
  33565. created using the standard constructors. Otherwise, it uses
  33566. "currentToken" and "expectedTokenSequences" to generate a parse
  33567. error message and returns it. If this object has been created
  33568. due to a parse error, and you do not catch it (it gets thrown
  33569. from the parser), then this method is called during the printing
  33570. of the final stack trace, and hence the correct error message
  33571. gets displayed.]]>
  33572. </doc>
  33573. </method>
  33574. <method name="add_escapes" return="java.lang.String"
  33575. abstract="false" native="false" synchronized="false"
  33576. static="false" final="false" visibility="protected"
  33577. deprecated="not deprecated">
  33578. <param name="str" type="java.lang.String"/>
  33579. <doc>
  33580. <![CDATA[Used to convert raw characters to their escaped version
  33581. when these raw version cannot be used as part of an ASCII
  33582. string literal.]]>
  33583. </doc>
  33584. </method>
  33585. <field name="specialConstructor" type="boolean"
  33586. transient="false" volatile="false"
  33587. static="false" final="false" visibility="protected"
  33588. deprecated="not deprecated">
  33589. <doc>
  33590. <![CDATA[This variable determines which constructor was used to create
  33591. this object and thereby affects the semantics of the
  33592. "getMessage" method (see below).]]>
  33593. </doc>
  33594. </field>
  33595. <field name="currentToken" type="org.apache.hadoop.record.compiler.generated.Token"
  33596. transient="false" volatile="false"
  33597. static="false" final="false" visibility="public"
  33598. deprecated="not deprecated">
  33599. <doc>
  33600. <![CDATA[This is the last token that has been consumed successfully. If
  33601. this object has been created due to a parse error, the token
  33602. followng this token will (therefore) be the first error token.]]>
  33603. </doc>
  33604. </field>
  33605. <field name="expectedTokenSequences" type="int[][]"
  33606. transient="false" volatile="false"
  33607. static="false" final="false" visibility="public"
  33608. deprecated="not deprecated">
  33609. <doc>
  33610. <![CDATA[Each entry in this array is an array of integers. Each array
  33611. of integers represents a sequence of tokens (by their ordinal
  33612. values) that is expected at this point of the parse.]]>
  33613. </doc>
  33614. </field>
  33615. <field name="tokenImage" type="java.lang.String[]"
  33616. transient="false" volatile="false"
  33617. static="false" final="false" visibility="public"
  33618. deprecated="not deprecated">
  33619. <doc>
  33620. <![CDATA[This is a reference to the "tokenImage" array of the generated
  33621. parser within which the parse error occurred. This array is
  33622. defined in the generated ...Constants interface.]]>
  33623. </doc>
  33624. </field>
  33625. <field name="eol" type="java.lang.String"
  33626. transient="false" volatile="false"
  33627. static="false" final="false" visibility="protected"
  33628. deprecated="not deprecated">
  33629. <doc>
  33630. <![CDATA[The end of line string for this machine.]]>
  33631. </doc>
  33632. </field>
  33633. <doc>
  33634. <![CDATA[This exception is thrown when parse errors are encountered.
  33635. You can explicitly create objects of this exception type by
  33636. calling the method generateParseException in the generated
  33637. parser.
  33638. You can modify this class to customize your error reporting
  33639. mechanisms so long as you retain the public fields.]]>
  33640. </doc>
  33641. </class>
  33642. <!-- end class org.apache.hadoop.record.compiler.generated.ParseException -->
  33643. <!-- start class org.apache.hadoop.record.compiler.generated.Rcc -->
  33644. <class name="Rcc" extends="java.lang.Object"
  33645. abstract="false"
  33646. static="false" final="false" visibility="public"
  33647. deprecated="not deprecated">
  33648. <implements name="org.apache.hadoop.record.compiler.generated.RccConstants"/>
  33649. <constructor name="Rcc" type="java.io.InputStream"
  33650. static="false" final="false" visibility="public"
  33651. deprecated="not deprecated">
  33652. </constructor>
  33653. <constructor name="Rcc" type="java.io.InputStream, java.lang.String"
  33654. static="false" final="false" visibility="public"
  33655. deprecated="not deprecated">
  33656. </constructor>
  33657. <constructor name="Rcc" type="java.io.Reader"
  33658. static="false" final="false" visibility="public"
  33659. deprecated="not deprecated">
  33660. </constructor>
  33661. <constructor name="Rcc" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"
  33662. static="false" final="false" visibility="public"
  33663. deprecated="not deprecated">
  33664. </constructor>
  33665. <method name="main"
  33666. abstract="false" native="false" synchronized="false"
  33667. static="true" final="false" visibility="public"
  33668. deprecated="not deprecated">
  33669. <param name="args" type="java.lang.String[]"/>
  33670. </method>
  33671. <method name="usage"
  33672. abstract="false" native="false" synchronized="false"
  33673. static="true" final="false" visibility="public"
  33674. deprecated="not deprecated">
  33675. </method>
  33676. <method name="driver" return="int"
  33677. abstract="false" native="false" synchronized="false"
  33678. static="true" final="false" visibility="public"
  33679. deprecated="not deprecated">
  33680. <param name="args" type="java.lang.String[]"/>
  33681. </method>
  33682. <method name="Input" return="org.apache.hadoop.record.compiler.JFile"
  33683. abstract="false" native="false" synchronized="false"
  33684. static="false" final="true" visibility="public"
  33685. deprecated="not deprecated">
  33686. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  33687. </method>
  33688. <method name="Include" return="org.apache.hadoop.record.compiler.JFile"
  33689. abstract="false" native="false" synchronized="false"
  33690. static="false" final="true" visibility="public"
  33691. deprecated="not deprecated">
  33692. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  33693. </method>
  33694. <method name="Module" return="java.util.ArrayList"
  33695. abstract="false" native="false" synchronized="false"
  33696. static="false" final="true" visibility="public"
  33697. deprecated="not deprecated">
  33698. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  33699. </method>
  33700. <method name="ModuleName" return="java.lang.String"
  33701. abstract="false" native="false" synchronized="false"
  33702. static="false" final="true" visibility="public"
  33703. deprecated="not deprecated">
  33704. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  33705. </method>
  33706. <method name="RecordList" return="java.util.ArrayList"
  33707. abstract="false" native="false" synchronized="false"
  33708. static="false" final="true" visibility="public"
  33709. deprecated="not deprecated">
  33710. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  33711. </method>
  33712. <method name="Record" return="org.apache.hadoop.record.compiler.JRecord"
  33713. abstract="false" native="false" synchronized="false"
  33714. static="false" final="true" visibility="public"
  33715. deprecated="not deprecated">
  33716. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  33717. </method>
  33718. <method name="Field" return="org.apache.hadoop.record.compiler.JField"
  33719. abstract="false" native="false" synchronized="false"
  33720. static="false" final="true" visibility="public"
  33721. deprecated="not deprecated">
  33722. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  33723. </method>
  33724. <method name="Type" return="org.apache.hadoop.record.compiler.JType"
  33725. abstract="false" native="false" synchronized="false"
  33726. static="false" final="true" visibility="public"
  33727. deprecated="not deprecated">
  33728. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  33729. </method>
  33730. <method name="Map" return="org.apache.hadoop.record.compiler.JMap"
  33731. abstract="false" native="false" synchronized="false"
  33732. static="false" final="true" visibility="public"
  33733. deprecated="not deprecated">
  33734. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  33735. </method>
  33736. <method name="Vector" return="org.apache.hadoop.record.compiler.JVector"
  33737. abstract="false" native="false" synchronized="false"
  33738. static="false" final="true" visibility="public"
  33739. deprecated="not deprecated">
  33740. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  33741. </method>
  33742. <method name="ReInit"
  33743. abstract="false" native="false" synchronized="false"
  33744. static="false" final="false" visibility="public"
  33745. deprecated="not deprecated">
  33746. <param name="stream" type="java.io.InputStream"/>
  33747. </method>
  33748. <method name="ReInit"
  33749. abstract="false" native="false" synchronized="false"
  33750. static="false" final="false" visibility="public"
  33751. deprecated="not deprecated">
  33752. <param name="stream" type="java.io.InputStream"/>
  33753. <param name="encoding" type="java.lang.String"/>
  33754. </method>
  33755. <method name="ReInit"
  33756. abstract="false" native="false" synchronized="false"
  33757. static="false" final="false" visibility="public"
  33758. deprecated="not deprecated">
  33759. <param name="stream" type="java.io.Reader"/>
  33760. </method>
  33761. <method name="ReInit"
  33762. abstract="false" native="false" synchronized="false"
  33763. static="false" final="false" visibility="public"
  33764. deprecated="not deprecated">
  33765. <param name="tm" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"/>
  33766. </method>
  33767. <method name="getNextToken" return="org.apache.hadoop.record.compiler.generated.Token"
  33768. abstract="false" native="false" synchronized="false"
  33769. static="false" final="true" visibility="public"
  33770. deprecated="not deprecated">
  33771. </method>
  33772. <method name="getToken" return="org.apache.hadoop.record.compiler.generated.Token"
  33773. abstract="false" native="false" synchronized="false"
  33774. static="false" final="true" visibility="public"
  33775. deprecated="not deprecated">
  33776. <param name="index" type="int"/>
  33777. </method>
  33778. <method name="generateParseException" return="org.apache.hadoop.record.compiler.generated.ParseException"
  33779. abstract="false" native="false" synchronized="false"
  33780. static="false" final="false" visibility="public"
  33781. deprecated="not deprecated">
  33782. </method>
  33783. <method name="enable_tracing"
  33784. abstract="false" native="false" synchronized="false"
  33785. static="false" final="true" visibility="public"
  33786. deprecated="not deprecated">
  33787. </method>
  33788. <method name="disable_tracing"
  33789. abstract="false" native="false" synchronized="false"
  33790. static="false" final="true" visibility="public"
  33791. deprecated="not deprecated">
  33792. </method>
  33793. <field name="token_source" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"
  33794. transient="false" volatile="false"
  33795. static="false" final="false" visibility="public"
  33796. deprecated="not deprecated">
  33797. </field>
  33798. <field name="token" type="org.apache.hadoop.record.compiler.generated.Token"
  33799. transient="false" volatile="false"
  33800. static="false" final="false" visibility="public"
  33801. deprecated="not deprecated">
  33802. </field>
  33803. <field name="jj_nt" type="org.apache.hadoop.record.compiler.generated.Token"
  33804. transient="false" volatile="false"
  33805. static="false" final="false" visibility="public"
  33806. deprecated="not deprecated">
  33807. </field>
  33808. </class>
  33809. <!-- end class org.apache.hadoop.record.compiler.generated.Rcc -->
  33810. <!-- start interface org.apache.hadoop.record.compiler.generated.RccConstants -->
  33811. <interface name="RccConstants" abstract="true"
  33812. static="false" final="false" visibility="public"
  33813. deprecated="not deprecated">
  33814. <field name="EOF" type="int"
  33815. transient="false" volatile="false"
  33816. static="true" final="true" visibility="public"
  33817. deprecated="not deprecated">
  33818. </field>
  33819. <field name="MODULE_TKN" type="int"
  33820. transient="false" volatile="false"
  33821. static="true" final="true" visibility="public"
  33822. deprecated="not deprecated">
  33823. </field>
  33824. <field name="RECORD_TKN" type="int"
  33825. transient="false" volatile="false"
  33826. static="true" final="true" visibility="public"
  33827. deprecated="not deprecated">
  33828. </field>
  33829. <field name="INCLUDE_TKN" type="int"
  33830. transient="false" volatile="false"
  33831. static="true" final="true" visibility="public"
  33832. deprecated="not deprecated">
  33833. </field>
  33834. <field name="BYTE_TKN" type="int"
  33835. transient="false" volatile="false"
  33836. static="true" final="true" visibility="public"
  33837. deprecated="not deprecated">
  33838. </field>
  33839. <field name="BOOLEAN_TKN" type="int"
  33840. transient="false" volatile="false"
  33841. static="true" final="true" visibility="public"
  33842. deprecated="not deprecated">
  33843. </field>
  33844. <field name="INT_TKN" type="int"
  33845. transient="false" volatile="false"
  33846. static="true" final="true" visibility="public"
  33847. deprecated="not deprecated">
  33848. </field>
  33849. <field name="LONG_TKN" type="int"
  33850. transient="false" volatile="false"
  33851. static="true" final="true" visibility="public"
  33852. deprecated="not deprecated">
  33853. </field>
  33854. <field name="FLOAT_TKN" type="int"
  33855. transient="false" volatile="false"
  33856. static="true" final="true" visibility="public"
  33857. deprecated="not deprecated">
  33858. </field>
  33859. <field name="DOUBLE_TKN" type="int"
  33860. transient="false" volatile="false"
  33861. static="true" final="true" visibility="public"
  33862. deprecated="not deprecated">
  33863. </field>
  33864. <field name="USTRING_TKN" type="int"
  33865. transient="false" volatile="false"
  33866. static="true" final="true" visibility="public"
  33867. deprecated="not deprecated">
  33868. </field>
  33869. <field name="BUFFER_TKN" type="int"
  33870. transient="false" volatile="false"
  33871. static="true" final="true" visibility="public"
  33872. deprecated="not deprecated">
  33873. </field>
  33874. <field name="VECTOR_TKN" type="int"
  33875. transient="false" volatile="false"
  33876. static="true" final="true" visibility="public"
  33877. deprecated="not deprecated">
  33878. </field>
  33879. <field name="MAP_TKN" type="int"
  33880. transient="false" volatile="false"
  33881. static="true" final="true" visibility="public"
  33882. deprecated="not deprecated">
  33883. </field>
  33884. <field name="LBRACE_TKN" type="int"
  33885. transient="false" volatile="false"
  33886. static="true" final="true" visibility="public"
  33887. deprecated="not deprecated">
  33888. </field>
  33889. <field name="RBRACE_TKN" type="int"
  33890. transient="false" volatile="false"
  33891. static="true" final="true" visibility="public"
  33892. deprecated="not deprecated">
  33893. </field>
  33894. <field name="LT_TKN" type="int"
  33895. transient="false" volatile="false"
  33896. static="true" final="true" visibility="public"
  33897. deprecated="not deprecated">
  33898. </field>
  33899. <field name="GT_TKN" type="int"
  33900. transient="false" volatile="false"
  33901. static="true" final="true" visibility="public"
  33902. deprecated="not deprecated">
  33903. </field>
  33904. <field name="SEMICOLON_TKN" type="int"
  33905. transient="false" volatile="false"
  33906. static="true" final="true" visibility="public"
  33907. deprecated="not deprecated">
  33908. </field>
  33909. <field name="COMMA_TKN" type="int"
  33910. transient="false" volatile="false"
  33911. static="true" final="true" visibility="public"
  33912. deprecated="not deprecated">
  33913. </field>
  33914. <field name="DOT_TKN" type="int"
  33915. transient="false" volatile="false"
  33916. static="true" final="true" visibility="public"
  33917. deprecated="not deprecated">
  33918. </field>
  33919. <field name="CSTRING_TKN" type="int"
  33920. transient="false" volatile="false"
  33921. static="true" final="true" visibility="public"
  33922. deprecated="not deprecated">
  33923. </field>
  33924. <field name="IDENT_TKN" type="int"
  33925. transient="false" volatile="false"
  33926. static="true" final="true" visibility="public"
  33927. deprecated="not deprecated">
  33928. </field>
  33929. <field name="DEFAULT" type="int"
  33930. transient="false" volatile="false"
  33931. static="true" final="true" visibility="public"
  33932. deprecated="not deprecated">
  33933. </field>
  33934. <field name="WithinOneLineComment" type="int"
  33935. transient="false" volatile="false"
  33936. static="true" final="true" visibility="public"
  33937. deprecated="not deprecated">
  33938. </field>
  33939. <field name="WithinMultiLineComment" type="int"
  33940. transient="false" volatile="false"
  33941. static="true" final="true" visibility="public"
  33942. deprecated="not deprecated">
  33943. </field>
  33944. <field name="tokenImage" type="java.lang.String[]"
  33945. transient="false" volatile="false"
  33946. static="true" final="true" visibility="public"
  33947. deprecated="not deprecated">
  33948. </field>
  33949. </interface>
  33950. <!-- end interface org.apache.hadoop.record.compiler.generated.RccConstants -->
  33951. <!-- start class org.apache.hadoop.record.compiler.generated.RccTokenManager -->
  33952. <class name="RccTokenManager" extends="java.lang.Object"
  33953. abstract="false"
  33954. static="false" final="false" visibility="public"
  33955. deprecated="not deprecated">
  33956. <implements name="org.apache.hadoop.record.compiler.generated.RccConstants"/>
  33957. <constructor name="RccTokenManager" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"
  33958. static="false" final="false" visibility="public"
  33959. deprecated="not deprecated">
  33960. </constructor>
  33961. <constructor name="RccTokenManager" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream, int"
  33962. static="false" final="false" visibility="public"
  33963. deprecated="not deprecated">
  33964. </constructor>
  33965. <method name="setDebugStream"
  33966. abstract="false" native="false" synchronized="false"
  33967. static="false" final="false" visibility="public"
  33968. deprecated="not deprecated">
  33969. <param name="ds" type="java.io.PrintStream"/>
  33970. </method>
  33971. <method name="ReInit"
  33972. abstract="false" native="false" synchronized="false"
  33973. static="false" final="false" visibility="public"
  33974. deprecated="not deprecated">
  33975. <param name="stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"/>
  33976. </method>
  33977. <method name="ReInit"
  33978. abstract="false" native="false" synchronized="false"
  33979. static="false" final="false" visibility="public"
  33980. deprecated="not deprecated">
  33981. <param name="stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"/>
  33982. <param name="lexState" type="int"/>
  33983. </method>
  33984. <method name="SwitchTo"
  33985. abstract="false" native="false" synchronized="false"
  33986. static="false" final="false" visibility="public"
  33987. deprecated="not deprecated">
  33988. <param name="lexState" type="int"/>
  33989. </method>
  33990. <method name="jjFillToken" return="org.apache.hadoop.record.compiler.generated.Token"
  33991. abstract="false" native="false" synchronized="false"
  33992. static="false" final="false" visibility="protected"
  33993. deprecated="not deprecated">
  33994. </method>
  33995. <method name="getNextToken" return="org.apache.hadoop.record.compiler.generated.Token"
  33996. abstract="false" native="false" synchronized="false"
  33997. static="false" final="false" visibility="public"
  33998. deprecated="not deprecated">
  33999. </method>
  34000. <field name="debugStream" type="java.io.PrintStream"
  34001. transient="false" volatile="false"
  34002. static="false" final="false" visibility="public"
  34003. deprecated="not deprecated">
  34004. </field>
  34005. <field name="jjstrLiteralImages" type="java.lang.String[]"
  34006. transient="false" volatile="false"
  34007. static="true" final="true" visibility="public"
  34008. deprecated="not deprecated">
  34009. </field>
  34010. <field name="lexStateNames" type="java.lang.String[]"
  34011. transient="false" volatile="false"
  34012. static="true" final="true" visibility="public"
  34013. deprecated="not deprecated">
  34014. </field>
  34015. <field name="jjnewLexState" type="int[]"
  34016. transient="false" volatile="false"
  34017. static="true" final="true" visibility="public"
  34018. deprecated="not deprecated">
  34019. </field>
  34020. <field name="input_stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"
  34021. transient="false" volatile="false"
  34022. static="false" final="false" visibility="protected"
  34023. deprecated="not deprecated">
  34024. </field>
  34025. <field name="curChar" type="char"
  34026. transient="false" volatile="false"
  34027. static="false" final="false" visibility="protected"
  34028. deprecated="not deprecated">
  34029. </field>
  34030. </class>
  34031. <!-- end class org.apache.hadoop.record.compiler.generated.RccTokenManager -->
  34032. <!-- start class org.apache.hadoop.record.compiler.generated.SimpleCharStream -->
  34033. <class name="SimpleCharStream" extends="java.lang.Object"
  34034. abstract="false"
  34035. static="false" final="false" visibility="public"
  34036. deprecated="not deprecated">
  34037. <constructor name="SimpleCharStream" type="java.io.Reader, int, int, int"
  34038. static="false" final="false" visibility="public"
  34039. deprecated="not deprecated">
  34040. </constructor>
  34041. <constructor name="SimpleCharStream" type="java.io.Reader, int, int"
  34042. static="false" final="false" visibility="public"
  34043. deprecated="not deprecated">
  34044. </constructor>
  34045. <constructor name="SimpleCharStream" type="java.io.Reader"
  34046. static="false" final="false" visibility="public"
  34047. deprecated="not deprecated">
  34048. </constructor>
  34049. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String, int, int, int"
  34050. static="false" final="false" visibility="public"
  34051. deprecated="not deprecated">
  34052. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  34053. </constructor>
  34054. <constructor name="SimpleCharStream" type="java.io.InputStream, int, int, int"
  34055. static="false" final="false" visibility="public"
  34056. deprecated="not deprecated">
  34057. </constructor>
  34058. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String, int, int"
  34059. static="false" final="false" visibility="public"
  34060. deprecated="not deprecated">
  34061. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  34062. </constructor>
  34063. <constructor name="SimpleCharStream" type="java.io.InputStream, int, int"
  34064. static="false" final="false" visibility="public"
  34065. deprecated="not deprecated">
  34066. </constructor>
  34067. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String"
  34068. static="false" final="false" visibility="public"
  34069. deprecated="not deprecated">
  34070. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  34071. </constructor>
  34072. <constructor name="SimpleCharStream" type="java.io.InputStream"
  34073. static="false" final="false" visibility="public"
  34074. deprecated="not deprecated">
  34075. </constructor>
  34076. <method name="setTabSize"
  34077. abstract="false" native="false" synchronized="false"
  34078. static="false" final="false" visibility="protected"
  34079. deprecated="not deprecated">
  34080. <param name="i" type="int"/>
  34081. </method>
  34082. <method name="getTabSize" return="int"
  34083. abstract="false" native="false" synchronized="false"
  34084. static="false" final="false" visibility="protected"
  34085. deprecated="not deprecated">
  34086. <param name="i" type="int"/>
  34087. </method>
  34088. <method name="ExpandBuff"
  34089. abstract="false" native="false" synchronized="false"
  34090. static="false" final="false" visibility="protected"
  34091. deprecated="not deprecated">
  34092. <param name="wrapAround" type="boolean"/>
  34093. </method>
  34094. <method name="FillBuff"
  34095. abstract="false" native="false" synchronized="false"
  34096. static="false" final="false" visibility="protected"
  34097. deprecated="not deprecated">
  34098. <exception name="IOException" type="java.io.IOException"/>
  34099. </method>
  34100. <method name="BeginToken" return="char"
  34101. abstract="false" native="false" synchronized="false"
  34102. static="false" final="false" visibility="public"
  34103. deprecated="not deprecated">
  34104. <exception name="IOException" type="java.io.IOException"/>
  34105. </method>
  34106. <method name="UpdateLineColumn"
  34107. abstract="false" native="false" synchronized="false"
  34108. static="false" final="false" visibility="protected"
  34109. deprecated="not deprecated">
  34110. <param name="c" type="char"/>
  34111. </method>
  34112. <method name="readChar" return="char"
  34113. abstract="false" native="false" synchronized="false"
  34114. static="false" final="false" visibility="public"
  34115. deprecated="not deprecated">
  34116. <exception name="IOException" type="java.io.IOException"/>
  34117. </method>
  34118. <method name="getEndColumn" return="int"
  34119. abstract="false" native="false" synchronized="false"
  34120. static="false" final="false" visibility="public"
  34121. deprecated="not deprecated">
  34122. </method>
  34123. <method name="getEndLine" return="int"
  34124. abstract="false" native="false" synchronized="false"
  34125. static="false" final="false" visibility="public"
  34126. deprecated="not deprecated">
  34127. </method>
  34128. <method name="getBeginColumn" return="int"
  34129. abstract="false" native="false" synchronized="false"
  34130. static="false" final="false" visibility="public"
  34131. deprecated="not deprecated">
  34132. </method>
  34133. <method name="getBeginLine" return="int"
  34134. abstract="false" native="false" synchronized="false"
  34135. static="false" final="false" visibility="public"
  34136. deprecated="not deprecated">
  34137. </method>
  34138. <method name="backup"
  34139. abstract="false" native="false" synchronized="false"
  34140. static="false" final="false" visibility="public"
  34141. deprecated="not deprecated">
  34142. <param name="amount" type="int"/>
  34143. </method>
  34144. <method name="ReInit"
  34145. abstract="false" native="false" synchronized="false"
  34146. static="false" final="false" visibility="public"
  34147. deprecated="not deprecated">
  34148. <param name="dstream" type="java.io.Reader"/>
  34149. <param name="startline" type="int"/>
  34150. <param name="startcolumn" type="int"/>
  34151. <param name="buffersize" type="int"/>
  34152. </method>
  34153. <method name="ReInit"
  34154. abstract="false" native="false" synchronized="false"
  34155. static="false" final="false" visibility="public"
  34156. deprecated="not deprecated">
  34157. <param name="dstream" type="java.io.Reader"/>
  34158. <param name="startline" type="int"/>
  34159. <param name="startcolumn" type="int"/>
  34160. </method>
  34161. <method name="ReInit"
  34162. abstract="false" native="false" synchronized="false"
  34163. static="false" final="false" visibility="public"
  34164. deprecated="not deprecated">
  34165. <param name="dstream" type="java.io.Reader"/>
  34166. </method>
  34167. <method name="ReInit"
  34168. abstract="false" native="false" synchronized="false"
  34169. static="false" final="false" visibility="public"
  34170. deprecated="not deprecated">
  34171. <param name="dstream" type="java.io.InputStream"/>
  34172. <param name="encoding" type="java.lang.String"/>
  34173. <param name="startline" type="int"/>
  34174. <param name="startcolumn" type="int"/>
  34175. <param name="buffersize" type="int"/>
  34176. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  34177. </method>
  34178. <method name="ReInit"
  34179. abstract="false" native="false" synchronized="false"
  34180. static="false" final="false" visibility="public"
  34181. deprecated="not deprecated">
  34182. <param name="dstream" type="java.io.InputStream"/>
  34183. <param name="startline" type="int"/>
  34184. <param name="startcolumn" type="int"/>
  34185. <param name="buffersize" type="int"/>
  34186. </method>
  34187. <method name="ReInit"
  34188. abstract="false" native="false" synchronized="false"
  34189. static="false" final="false" visibility="public"
  34190. deprecated="not deprecated">
  34191. <param name="dstream" type="java.io.InputStream"/>
  34192. <param name="encoding" type="java.lang.String"/>
  34193. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  34194. </method>
  34195. <method name="ReInit"
  34196. abstract="false" native="false" synchronized="false"
  34197. static="false" final="false" visibility="public"
  34198. deprecated="not deprecated">
  34199. <param name="dstream" type="java.io.InputStream"/>
  34200. </method>
  34201. <method name="ReInit"
  34202. abstract="false" native="false" synchronized="false"
  34203. static="false" final="false" visibility="public"
  34204. deprecated="not deprecated">
  34205. <param name="dstream" type="java.io.InputStream"/>
  34206. <param name="encoding" type="java.lang.String"/>
  34207. <param name="startline" type="int"/>
  34208. <param name="startcolumn" type="int"/>
  34209. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  34210. </method>
  34211. <method name="ReInit"
  34212. abstract="false" native="false" synchronized="false"
  34213. static="false" final="false" visibility="public"
  34214. deprecated="not deprecated">
  34215. <param name="dstream" type="java.io.InputStream"/>
  34216. <param name="startline" type="int"/>
  34217. <param name="startcolumn" type="int"/>
  34218. </method>
  34219. <method name="GetImage" return="java.lang.String"
  34220. abstract="false" native="false" synchronized="false"
  34221. static="false" final="false" visibility="public"
  34222. deprecated="not deprecated">
  34223. </method>
  34224. <method name="GetSuffix" return="char[]"
  34225. abstract="false" native="false" synchronized="false"
  34226. static="false" final="false" visibility="public"
  34227. deprecated="not deprecated">
  34228. <param name="len" type="int"/>
  34229. </method>
  34230. <method name="Done"
  34231. abstract="false" native="false" synchronized="false"
  34232. static="false" final="false" visibility="public"
  34233. deprecated="not deprecated">
  34234. </method>
  34235. <method name="adjustBeginLineColumn"
  34236. abstract="false" native="false" synchronized="false"
  34237. static="false" final="false" visibility="public"
  34238. deprecated="not deprecated">
  34239. <param name="newLine" type="int"/>
  34240. <param name="newCol" type="int"/>
  34241. <doc>
  34242. <![CDATA[Method to adjust line and column numbers for the start of a token.]]>
  34243. </doc>
  34244. </method>
  34245. <field name="staticFlag" type="boolean"
  34246. transient="false" volatile="false"
  34247. static="true" final="true" visibility="public"
  34248. deprecated="not deprecated">
  34249. </field>
  34250. <field name="bufpos" type="int"
  34251. transient="false" volatile="false"
  34252. static="false" final="false" visibility="public"
  34253. deprecated="not deprecated">
  34254. </field>
  34255. <field name="bufline" type="int[]"
  34256. transient="false" volatile="false"
  34257. static="false" final="false" visibility="protected"
  34258. deprecated="not deprecated">
  34259. </field>
  34260. <field name="bufcolumn" type="int[]"
  34261. transient="false" volatile="false"
  34262. static="false" final="false" visibility="protected"
  34263. deprecated="not deprecated">
  34264. </field>
  34265. <field name="column" type="int"
  34266. transient="false" volatile="false"
  34267. static="false" final="false" visibility="protected"
  34268. deprecated="not deprecated">
  34269. </field>
  34270. <field name="line" type="int"
  34271. transient="false" volatile="false"
  34272. static="false" final="false" visibility="protected"
  34273. deprecated="not deprecated">
  34274. </field>
  34275. <field name="prevCharIsCR" type="boolean"
  34276. transient="false" volatile="false"
  34277. static="false" final="false" visibility="protected"
  34278. deprecated="not deprecated">
  34279. </field>
  34280. <field name="prevCharIsLF" type="boolean"
  34281. transient="false" volatile="false"
  34282. static="false" final="false" visibility="protected"
  34283. deprecated="not deprecated">
  34284. </field>
  34285. <field name="inputStream" type="java.io.Reader"
  34286. transient="false" volatile="false"
  34287. static="false" final="false" visibility="protected"
  34288. deprecated="not deprecated">
  34289. </field>
  34290. <field name="buffer" type="char[]"
  34291. transient="false" volatile="false"
  34292. static="false" final="false" visibility="protected"
  34293. deprecated="not deprecated">
  34294. </field>
  34295. <field name="maxNextCharInd" type="int"
  34296. transient="false" volatile="false"
  34297. static="false" final="false" visibility="protected"
  34298. deprecated="not deprecated">
  34299. </field>
  34300. <field name="inBuf" type="int"
  34301. transient="false" volatile="false"
  34302. static="false" final="false" visibility="protected"
  34303. deprecated="not deprecated">
  34304. </field>
  34305. <field name="tabSize" type="int"
  34306. transient="false" volatile="false"
  34307. static="false" final="false" visibility="protected"
  34308. deprecated="not deprecated">
  34309. </field>
  34310. <doc>
  34311. <![CDATA[An implementation of interface CharStream, where the stream is assumed to
  34312. contain only ASCII characters (without unicode processing).]]>
  34313. </doc>
  34314. </class>
  34315. <!-- end class org.apache.hadoop.record.compiler.generated.SimpleCharStream -->
  34316. <!-- start class org.apache.hadoop.record.compiler.generated.Token -->
  34317. <class name="Token" extends="java.lang.Object"
  34318. abstract="false"
  34319. static="false" final="false" visibility="public"
  34320. deprecated="not deprecated">
  34321. <constructor name="Token"
  34322. static="false" final="false" visibility="public"
  34323. deprecated="not deprecated">
  34324. </constructor>
  34325. <method name="toString" return="java.lang.String"
  34326. abstract="false" native="false" synchronized="false"
  34327. static="false" final="false" visibility="public"
  34328. deprecated="not deprecated">
  34329. <doc>
  34330. <![CDATA[Returns the image.]]>
  34331. </doc>
  34332. </method>
  34333. <method name="newToken" return="org.apache.hadoop.record.compiler.generated.Token"
  34334. abstract="false" native="false" synchronized="false"
  34335. static="true" final="true" visibility="public"
  34336. deprecated="not deprecated">
  34337. <param name="ofKind" type="int"/>
  34338. <doc>
  34339. <![CDATA[Returns a new Token object, by default. However, if you want, you
  34340. can create and return subclass objects based on the value of ofKind.
  34341. Simply add the cases to the switch for all those special cases.
  34342. For example, if you have a subclass of Token called IDToken that
  34343. you want to create if ofKind is ID, simlpy add something like :
  34344. case MyParserConstants.ID : return new IDToken();
  34345. to the following switch statement. Then you can cast matchedToken
  34346. variable to the appropriate type and use it in your lexical actions.]]>
  34347. </doc>
  34348. </method>
  34349. <field name="kind" type="int"
  34350. transient="false" volatile="false"
  34351. static="false" final="false" visibility="public"
  34352. deprecated="not deprecated">
  34353. <doc>
  34354. <![CDATA[An integer that describes the kind of this token. This numbering
  34355. system is determined by JavaCCParser, and a table of these numbers is
  34356. stored in the file ...Constants.java.]]>
  34357. </doc>
  34358. </field>
  34359. <field name="beginLine" type="int"
  34360. transient="false" volatile="false"
  34361. static="false" final="false" visibility="public"
  34362. deprecated="not deprecated">
  34363. <doc>
  34364. <![CDATA[beginLine and beginColumn describe the position of the first character
  34365. of this token; endLine and endColumn describe the position of the
  34366. last character of this token.]]>
  34367. </doc>
  34368. </field>
  34369. <field name="beginColumn" type="int"
  34370. transient="false" volatile="false"
  34371. static="false" final="false" visibility="public"
  34372. deprecated="not deprecated">
  34373. <doc>
  34374. <![CDATA[beginLine and beginColumn describe the position of the first character
  34375. of this token; endLine and endColumn describe the position of the
  34376. last character of this token.]]>
  34377. </doc>
  34378. </field>
  34379. <field name="endLine" type="int"
  34380. transient="false" volatile="false"
  34381. static="false" final="false" visibility="public"
  34382. deprecated="not deprecated">
  34383. <doc>
  34384. <![CDATA[beginLine and beginColumn describe the position of the first character
  34385. of this token; endLine and endColumn describe the position of the
  34386. last character of this token.]]>
  34387. </doc>
  34388. </field>
  34389. <field name="endColumn" type="int"
  34390. transient="false" volatile="false"
  34391. static="false" final="false" visibility="public"
  34392. deprecated="not deprecated">
  34393. <doc>
  34394. <![CDATA[beginLine and beginColumn describe the position of the first character
  34395. of this token; endLine and endColumn describe the position of the
  34396. last character of this token.]]>
  34397. </doc>
  34398. </field>
  34399. <field name="image" type="java.lang.String"
  34400. transient="false" volatile="false"
  34401. static="false" final="false" visibility="public"
  34402. deprecated="not deprecated">
  34403. <doc>
  34404. <![CDATA[The string image of the token.]]>
  34405. </doc>
  34406. </field>
  34407. <field name="next" type="org.apache.hadoop.record.compiler.generated.Token"
  34408. transient="false" volatile="false"
  34409. static="false" final="false" visibility="public"
  34410. deprecated="not deprecated">
  34411. <doc>
  34412. <![CDATA[A reference to the next regular (non-special) token from the input
  34413. stream. If this is the last token from the input stream, or if the
  34414. token manager has not read tokens beyond this one, this field is
  34415. set to null. This is true only if this token is also a regular
  34416. token. Otherwise, see below for a description of the contents of
  34417. this field.]]>
  34418. </doc>
  34419. </field>
  34420. <field name="specialToken" type="org.apache.hadoop.record.compiler.generated.Token"
  34421. transient="false" volatile="false"
  34422. static="false" final="false" visibility="public"
  34423. deprecated="not deprecated">
  34424. <doc>
  34425. <![CDATA[This field is used to access special tokens that occur prior to this
  34426. token, but after the immediately preceding regular (non-special) token.
  34427. If there are no such special tokens, this field is set to null.
  34428. When there are more than one such special token, this field refers
  34429. to the last of these special tokens, which in turn refers to the next
  34430. previous special token through its specialToken field, and so on
  34431. until the first special token (whose specialToken field is null).
  34432. The next fields of special tokens refer to other special tokens that
  34433. immediately follow it (without an intervening regular token). If there
  34434. is no such token, this field is null.]]>
  34435. </doc>
  34436. </field>
  34437. <doc>
  34438. <![CDATA[Describes the input token stream.]]>
  34439. </doc>
  34440. </class>
  34441. <!-- end class org.apache.hadoop.record.compiler.generated.Token -->
  34442. <!-- start class org.apache.hadoop.record.compiler.generated.TokenMgrError -->
  34443. <class name="TokenMgrError" extends="java.lang.Error"
  34444. abstract="false"
  34445. static="false" final="false" visibility="public"
  34446. deprecated="not deprecated">
  34447. <constructor name="TokenMgrError"
  34448. static="false" final="false" visibility="public"
  34449. deprecated="not deprecated">
  34450. </constructor>
  34451. <constructor name="TokenMgrError" type="java.lang.String, int"
  34452. static="false" final="false" visibility="public"
  34453. deprecated="not deprecated">
  34454. </constructor>
  34455. <constructor name="TokenMgrError" type="boolean, int, int, int, java.lang.String, char, int"
  34456. static="false" final="false" visibility="public"
  34457. deprecated="not deprecated">
  34458. </constructor>
  34459. <method name="addEscapes" return="java.lang.String"
  34460. abstract="false" native="false" synchronized="false"
  34461. static="true" final="true" visibility="protected"
  34462. deprecated="not deprecated">
  34463. <param name="str" type="java.lang.String"/>
  34464. <doc>
  34465. <![CDATA[Replaces unprintable characters by their espaced (or unicode escaped)
  34466. equivalents in the given string]]>
  34467. </doc>
  34468. </method>
  34469. <method name="LexicalError" return="java.lang.String"
  34470. abstract="false" native="false" synchronized="false"
  34471. static="true" final="false" visibility="protected"
  34472. deprecated="not deprecated">
  34473. <param name="EOFSeen" type="boolean"/>
  34474. <param name="lexState" type="int"/>
  34475. <param name="errorLine" type="int"/>
  34476. <param name="errorColumn" type="int"/>
  34477. <param name="errorAfter" type="java.lang.String"/>
  34478. <param name="curChar" type="char"/>
  34479. <doc>
  34480. <![CDATA[Returns a detailed message for the Error when it is thrown by the
  34481. token manager to indicate a lexical error.
  34482. Parameters :
  34483. EOFSeen : indicates if EOF caused the lexicl error
  34484. curLexState : lexical state in which this error occured
  34485. errorLine : line number when the error occured
  34486. errorColumn : column number when the error occured
  34487. errorAfter : prefix that was seen before this error occured
  34488. curchar : the offending character
  34489. Note: You can customize the lexical error message by modifying this method.]]>
  34490. </doc>
  34491. </method>
  34492. <method name="getMessage" return="java.lang.String"
  34493. abstract="false" native="false" synchronized="false"
  34494. static="false" final="false" visibility="public"
  34495. deprecated="not deprecated">
  34496. <doc>
  34497. <![CDATA[You can also modify the body of this method to customize your error messages.
  34498. For example, cases like LOOP_DETECTED and INVALID_LEXICAL_STATE are not
  34499. of end-users concern, so you can return something like :
  34500. "Internal Error : Please file a bug report .... "
  34501. from this method for such cases in the release version of your parser.]]>
  34502. </doc>
  34503. </method>
  34504. </class>
  34505. <!-- end class org.apache.hadoop.record.compiler.generated.TokenMgrError -->
  34506. </package>
  34507. <package name="org.apache.hadoop.record.meta">
  34508. <!-- start class org.apache.hadoop.record.meta.FieldTypeInfo -->
  34509. <class name="FieldTypeInfo" extends="java.lang.Object"
  34510. abstract="false"
  34511. static="false" final="false" visibility="public"
  34512. deprecated="not deprecated">
  34513. <method name="getTypeID" return="org.apache.hadoop.record.meta.TypeID"
  34514. abstract="false" native="false" synchronized="false"
  34515. static="false" final="false" visibility="public"
  34516. deprecated="not deprecated">
  34517. <doc>
  34518. <![CDATA[get the field's TypeID object]]>
  34519. </doc>
  34520. </method>
  34521. <method name="getFieldID" return="java.lang.String"
  34522. abstract="false" native="false" synchronized="false"
  34523. static="false" final="false" visibility="public"
  34524. deprecated="not deprecated">
  34525. <doc>
  34526. <![CDATA[get the field's id (name)]]>
  34527. </doc>
  34528. </method>
  34529. <method name="equals" return="boolean"
  34530. abstract="false" native="false" synchronized="false"
  34531. static="false" final="false" visibility="public"
  34532. deprecated="not deprecated">
  34533. <param name="o" type="java.lang.Object"/>
  34534. <doc>
  34535. <![CDATA[Two FieldTypeInfos are equal if ach of their fields matches]]>
  34536. </doc>
  34537. </method>
  34538. <method name="hashCode" return="int"
  34539. abstract="false" native="false" synchronized="false"
  34540. static="false" final="false" visibility="public"
  34541. deprecated="not deprecated">
  34542. <doc>
  34543. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  34544. be used as a hashmap key]]>
  34545. </doc>
  34546. </method>
  34547. <method name="equals" return="boolean"
  34548. abstract="false" native="false" synchronized="false"
  34549. static="false" final="false" visibility="public"
  34550. deprecated="not deprecated">
  34551. <param name="ti" type="org.apache.hadoop.record.meta.FieldTypeInfo"/>
  34552. </method>
  34553. <doc>
  34554. <![CDATA[Represents a type information for a field, which is made up of its
  34555. ID (name) and its type (a TypeID object).]]>
  34556. </doc>
  34557. </class>
  34558. <!-- end class org.apache.hadoop.record.meta.FieldTypeInfo -->
  34559. <!-- start class org.apache.hadoop.record.meta.MapTypeID -->
  34560. <class name="MapTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  34561. abstract="false"
  34562. static="false" final="false" visibility="public"
  34563. deprecated="not deprecated">
  34564. <constructor name="MapTypeID" type="org.apache.hadoop.record.meta.TypeID, org.apache.hadoop.record.meta.TypeID"
  34565. static="false" final="false" visibility="public"
  34566. deprecated="not deprecated">
  34567. </constructor>
  34568. <method name="getKeyTypeID" return="org.apache.hadoop.record.meta.TypeID"
  34569. abstract="false" native="false" synchronized="false"
  34570. static="false" final="false" visibility="public"
  34571. deprecated="not deprecated">
  34572. <doc>
  34573. <![CDATA[get the TypeID of the map's key element]]>
  34574. </doc>
  34575. </method>
  34576. <method name="getValueTypeID" return="org.apache.hadoop.record.meta.TypeID"
  34577. abstract="false" native="false" synchronized="false"
  34578. static="false" final="false" visibility="public"
  34579. deprecated="not deprecated">
  34580. <doc>
  34581. <![CDATA[get the TypeID of the map's value element]]>
  34582. </doc>
  34583. </method>
  34584. <method name="equals" return="boolean"
  34585. abstract="false" native="false" synchronized="false"
  34586. static="false" final="false" visibility="public"
  34587. deprecated="not deprecated">
  34588. <param name="o" type="java.lang.Object"/>
  34589. <doc>
  34590. <![CDATA[Two map typeIDs are equal if their constituent elements have the
  34591. same type]]>
  34592. </doc>
  34593. </method>
  34594. <method name="hashCode" return="int"
  34595. abstract="false" native="false" synchronized="false"
  34596. static="false" final="false" visibility="public"
  34597. deprecated="not deprecated">
  34598. <doc>
  34599. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  34600. be used as a hashmap key]]>
  34601. </doc>
  34602. </method>
  34603. <doc>
  34604. <![CDATA[Represents typeID for a Map]]>
  34605. </doc>
  34606. </class>
  34607. <!-- end class org.apache.hadoop.record.meta.MapTypeID -->
  34608. <!-- start class org.apache.hadoop.record.meta.RecordTypeInfo -->
  34609. <class name="RecordTypeInfo" extends="org.apache.hadoop.record.Record"
  34610. abstract="false"
  34611. static="false" final="false" visibility="public"
  34612. deprecated="not deprecated">
  34613. <constructor name="RecordTypeInfo"
  34614. static="false" final="false" visibility="public"
  34615. deprecated="not deprecated">
  34616. <doc>
  34617. <![CDATA[Create an empty RecordTypeInfo object.]]>
  34618. </doc>
  34619. </constructor>
  34620. <constructor name="RecordTypeInfo" type="java.lang.String"
  34621. static="false" final="false" visibility="public"
  34622. deprecated="not deprecated">
  34623. <doc>
  34624. <![CDATA[Create a RecordTypeInfo object representing a record with the given name
  34625. @param name Name of the record]]>
  34626. </doc>
  34627. </constructor>
  34628. <method name="getName" return="java.lang.String"
  34629. abstract="false" native="false" synchronized="false"
  34630. static="false" final="false" visibility="public"
  34631. deprecated="not deprecated">
  34632. <doc>
  34633. <![CDATA[return the name of the record]]>
  34634. </doc>
  34635. </method>
  34636. <method name="setName"
  34637. abstract="false" native="false" synchronized="false"
  34638. static="false" final="false" visibility="public"
  34639. deprecated="not deprecated">
  34640. <param name="name" type="java.lang.String"/>
  34641. <doc>
  34642. <![CDATA[set the name of the record]]>
  34643. </doc>
  34644. </method>
  34645. <method name="addField"
  34646. abstract="false" native="false" synchronized="false"
  34647. static="false" final="false" visibility="public"
  34648. deprecated="not deprecated">
  34649. <param name="fieldName" type="java.lang.String"/>
  34650. <param name="tid" type="org.apache.hadoop.record.meta.TypeID"/>
  34651. <doc>
  34652. <![CDATA[Add a field.
  34653. @param fieldName Name of the field
  34654. @param tid Type ID of the field]]>
  34655. </doc>
  34656. </method>
  34657. <method name="getFieldTypeInfos" return="java.util.Collection"
  34658. abstract="false" native="false" synchronized="false"
  34659. static="false" final="false" visibility="public"
  34660. deprecated="not deprecated">
  34661. <doc>
  34662. <![CDATA[Return a collection of field type infos]]>
  34663. </doc>
  34664. </method>
  34665. <method name="getNestedStructTypeInfo" return="org.apache.hadoop.record.meta.RecordTypeInfo"
  34666. abstract="false" native="false" synchronized="false"
  34667. static="false" final="false" visibility="public"
  34668. deprecated="not deprecated">
  34669. <param name="name" type="java.lang.String"/>
  34670. <doc>
  34671. <![CDATA[Return the type info of a nested record. We only consider nesting
  34672. to one level.
  34673. @param name Name of the nested record]]>
  34674. </doc>
  34675. </method>
  34676. <method name="serialize"
  34677. abstract="false" native="false" synchronized="false"
  34678. static="false" final="false" visibility="public"
  34679. deprecated="not deprecated">
  34680. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  34681. <param name="tag" type="java.lang.String"/>
  34682. <exception name="IOException" type="java.io.IOException"/>
  34683. <doc>
  34684. <![CDATA[Serialize the type information for a record]]>
  34685. </doc>
  34686. </method>
  34687. <method name="deserialize"
  34688. abstract="false" native="false" synchronized="false"
  34689. static="false" final="false" visibility="public"
  34690. deprecated="not deprecated">
  34691. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  34692. <param name="tag" type="java.lang.String"/>
  34693. <exception name="IOException" type="java.io.IOException"/>
  34694. <doc>
  34695. <![CDATA[Deserialize the type information for a record]]>
  34696. </doc>
  34697. </method>
  34698. <method name="compareTo" return="int"
  34699. abstract="false" native="false" synchronized="false"
  34700. static="false" final="false" visibility="public"
  34701. deprecated="not deprecated">
  34702. <param name="peer_" type="java.lang.Object"/>
  34703. <exception name="ClassCastException" type="java.lang.ClassCastException"/>
  34704. <doc>
  34705. <![CDATA[This class doesn't implement Comparable as it's not meant to be used
  34706. for anything besides de/serializing.
  34707. So we always throw an exception.
  34708. Not implemented. Always returns 0 if another RecordTypeInfo is passed in.]]>
  34709. </doc>
  34710. </method>
  34711. <doc>
  34712. <![CDATA[A record's Type Information object which can read/write itself.
  34713. Type information for a record comprises metadata about the record,
  34714. as well as a collection of type information for each field in the record.]]>
  34715. </doc>
  34716. </class>
  34717. <!-- end class org.apache.hadoop.record.meta.RecordTypeInfo -->
  34718. <!-- start class org.apache.hadoop.record.meta.StructTypeID -->
  34719. <class name="StructTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  34720. abstract="false"
  34721. static="false" final="false" visibility="public"
  34722. deprecated="not deprecated">
  34723. <constructor name="StructTypeID" type="org.apache.hadoop.record.meta.RecordTypeInfo"
  34724. static="false" final="false" visibility="public"
  34725. deprecated="not deprecated">
  34726. <doc>
  34727. <![CDATA[Create a StructTypeID based on the RecordTypeInfo of some record]]>
  34728. </doc>
  34729. </constructor>
  34730. <method name="getFieldTypeInfos" return="java.util.Collection"
  34731. abstract="false" native="false" synchronized="false"
  34732. static="false" final="false" visibility="public"
  34733. deprecated="not deprecated">
  34734. </method>
  34735. <doc>
  34736. <![CDATA[Represents typeID for a struct]]>
  34737. </doc>
  34738. </class>
  34739. <!-- end class org.apache.hadoop.record.meta.StructTypeID -->
  34740. <!-- start class org.apache.hadoop.record.meta.TypeID -->
  34741. <class name="TypeID" extends="java.lang.Object"
  34742. abstract="false"
  34743. static="false" final="false" visibility="public"
  34744. deprecated="not deprecated">
  34745. <method name="getTypeVal" return="byte"
  34746. abstract="false" native="false" synchronized="false"
  34747. static="false" final="false" visibility="public"
  34748. deprecated="not deprecated">
  34749. <doc>
  34750. <![CDATA[Get the type value. One of the constants in RIOType.]]>
  34751. </doc>
  34752. </method>
  34753. <method name="equals" return="boolean"
  34754. abstract="false" native="false" synchronized="false"
  34755. static="false" final="false" visibility="public"
  34756. deprecated="not deprecated">
  34757. <param name="o" type="java.lang.Object"/>
  34758. <doc>
  34759. <![CDATA[Two base typeIDs are equal if they refer to the same type]]>
  34760. </doc>
  34761. </method>
  34762. <method name="hashCode" return="int"
  34763. abstract="false" native="false" synchronized="false"
  34764. static="false" final="false" visibility="public"
  34765. deprecated="not deprecated">
  34766. <doc>
  34767. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  34768. be used as a hashmap key]]>
  34769. </doc>
  34770. </method>
  34771. <field name="BoolTypeID" type="org.apache.hadoop.record.meta.TypeID"
  34772. transient="false" volatile="false"
  34773. static="true" final="true" visibility="public"
  34774. deprecated="not deprecated">
  34775. <doc>
  34776. <![CDATA[Constant classes for the basic types, so we can share them.]]>
  34777. </doc>
  34778. </field>
  34779. <field name="BufferTypeID" type="org.apache.hadoop.record.meta.TypeID"
  34780. transient="false" volatile="false"
  34781. static="true" final="true" visibility="public"
  34782. deprecated="not deprecated">
  34783. </field>
  34784. <field name="ByteTypeID" type="org.apache.hadoop.record.meta.TypeID"
  34785. transient="false" volatile="false"
  34786. static="true" final="true" visibility="public"
  34787. deprecated="not deprecated">
  34788. </field>
  34789. <field name="DoubleTypeID" type="org.apache.hadoop.record.meta.TypeID"
  34790. transient="false" volatile="false"
  34791. static="true" final="true" visibility="public"
  34792. deprecated="not deprecated">
  34793. </field>
  34794. <field name="FloatTypeID" type="org.apache.hadoop.record.meta.TypeID"
  34795. transient="false" volatile="false"
  34796. static="true" final="true" visibility="public"
  34797. deprecated="not deprecated">
  34798. </field>
  34799. <field name="IntTypeID" type="org.apache.hadoop.record.meta.TypeID"
  34800. transient="false" volatile="false"
  34801. static="true" final="true" visibility="public"
  34802. deprecated="not deprecated">
  34803. </field>
  34804. <field name="LongTypeID" type="org.apache.hadoop.record.meta.TypeID"
  34805. transient="false" volatile="false"
  34806. static="true" final="true" visibility="public"
  34807. deprecated="not deprecated">
  34808. </field>
  34809. <field name="StringTypeID" type="org.apache.hadoop.record.meta.TypeID"
  34810. transient="false" volatile="false"
  34811. static="true" final="true" visibility="public"
  34812. deprecated="not deprecated">
  34813. </field>
  34814. <field name="typeVal" type="byte"
  34815. transient="false" volatile="false"
  34816. static="false" final="false" visibility="protected"
  34817. deprecated="not deprecated">
  34818. </field>
  34819. <doc>
  34820. <![CDATA[Represents typeID for basic types.]]>
  34821. </doc>
  34822. </class>
  34823. <!-- end class org.apache.hadoop.record.meta.TypeID -->
  34824. <!-- start class org.apache.hadoop.record.meta.TypeID.RIOType -->
  34825. <class name="TypeID.RIOType" extends="java.lang.Object"
  34826. abstract="false"
  34827. static="true" final="true" visibility="public"
  34828. deprecated="not deprecated">
  34829. <constructor name="TypeID.RIOType"
  34830. static="false" final="false" visibility="public"
  34831. deprecated="not deprecated">
  34832. </constructor>
  34833. <field name="BOOL" type="byte"
  34834. transient="false" volatile="false"
  34835. static="true" final="true" visibility="public"
  34836. deprecated="not deprecated">
  34837. </field>
  34838. <field name="BUFFER" type="byte"
  34839. transient="false" volatile="false"
  34840. static="true" final="true" visibility="public"
  34841. deprecated="not deprecated">
  34842. </field>
  34843. <field name="BYTE" type="byte"
  34844. transient="false" volatile="false"
  34845. static="true" final="true" visibility="public"
  34846. deprecated="not deprecated">
  34847. </field>
  34848. <field name="DOUBLE" type="byte"
  34849. transient="false" volatile="false"
  34850. static="true" final="true" visibility="public"
  34851. deprecated="not deprecated">
  34852. </field>
  34853. <field name="FLOAT" type="byte"
  34854. transient="false" volatile="false"
  34855. static="true" final="true" visibility="public"
  34856. deprecated="not deprecated">
  34857. </field>
  34858. <field name="INT" type="byte"
  34859. transient="false" volatile="false"
  34860. static="true" final="true" visibility="public"
  34861. deprecated="not deprecated">
  34862. </field>
  34863. <field name="LONG" type="byte"
  34864. transient="false" volatile="false"
  34865. static="true" final="true" visibility="public"
  34866. deprecated="not deprecated">
  34867. </field>
  34868. <field name="MAP" type="byte"
  34869. transient="false" volatile="false"
  34870. static="true" final="true" visibility="public"
  34871. deprecated="not deprecated">
  34872. </field>
  34873. <field name="STRING" type="byte"
  34874. transient="false" volatile="false"
  34875. static="true" final="true" visibility="public"
  34876. deprecated="not deprecated">
  34877. </field>
  34878. <field name="STRUCT" type="byte"
  34879. transient="false" volatile="false"
  34880. static="true" final="true" visibility="public"
  34881. deprecated="not deprecated">
  34882. </field>
  34883. <field name="VECTOR" type="byte"
  34884. transient="false" volatile="false"
  34885. static="true" final="true" visibility="public"
  34886. deprecated="not deprecated">
  34887. </field>
  34888. <doc>
  34889. <![CDATA[constants representing the IDL types we support]]>
  34890. </doc>
  34891. </class>
  34892. <!-- end class org.apache.hadoop.record.meta.TypeID.RIOType -->
  34893. <!-- start class org.apache.hadoop.record.meta.Utils -->
  34894. <class name="Utils" extends="java.lang.Object"
  34895. abstract="false"
  34896. static="false" final="false" visibility="public"
  34897. deprecated="not deprecated">
  34898. <method name="skip"
  34899. abstract="false" native="false" synchronized="false"
  34900. static="true" final="false" visibility="public"
  34901. deprecated="not deprecated">
  34902. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  34903. <param name="tag" type="java.lang.String"/>
  34904. <param name="typeID" type="org.apache.hadoop.record.meta.TypeID"/>
  34905. <exception name="IOException" type="java.io.IOException"/>
  34906. <doc>
  34907. <![CDATA[read/skip bytes from stream based on a type]]>
  34908. </doc>
  34909. </method>
  34910. <doc>
  34911. <![CDATA[Various utility functions for Hadooop record I/O platform.]]>
  34912. </doc>
  34913. </class>
  34914. <!-- end class org.apache.hadoop.record.meta.Utils -->
  34915. <!-- start class org.apache.hadoop.record.meta.VectorTypeID -->
  34916. <class name="VectorTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  34917. abstract="false"
  34918. static="false" final="false" visibility="public"
  34919. deprecated="not deprecated">
  34920. <constructor name="VectorTypeID" type="org.apache.hadoop.record.meta.TypeID"
  34921. static="false" final="false" visibility="public"
  34922. deprecated="not deprecated">
  34923. </constructor>
  34924. <method name="getElementTypeID" return="org.apache.hadoop.record.meta.TypeID"
  34925. abstract="false" native="false" synchronized="false"
  34926. static="false" final="false" visibility="public"
  34927. deprecated="not deprecated">
  34928. </method>
  34929. <method name="equals" return="boolean"
  34930. abstract="false" native="false" synchronized="false"
  34931. static="false" final="false" visibility="public"
  34932. deprecated="not deprecated">
  34933. <param name="o" type="java.lang.Object"/>
  34934. <doc>
  34935. <![CDATA[Two vector typeIDs are equal if their constituent elements have the
  34936. same type]]>
  34937. </doc>
  34938. </method>
  34939. <method name="hashCode" return="int"
  34940. abstract="false" native="false" synchronized="false"
  34941. static="false" final="false" visibility="public"
  34942. deprecated="not deprecated">
  34943. <doc>
  34944. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  34945. be used as a hashmap key]]>
  34946. </doc>
  34947. </method>
  34948. <doc>
  34949. <![CDATA[Represents typeID for vector.]]>
  34950. </doc>
  34951. </class>
  34952. <!-- end class org.apache.hadoop.record.meta.VectorTypeID -->
  34953. </package>
  34954. <package name="org.apache.hadoop.security">
  34955. <!-- start class org.apache.hadoop.security.AccessControlException -->
  34956. <class name="AccessControlException" extends="org.apache.hadoop.fs.permission.AccessControlException"
  34957. abstract="false"
  34958. static="false" final="false" visibility="public"
  34959. deprecated="not deprecated">
  34960. <constructor name="AccessControlException"
  34961. static="false" final="false" visibility="public"
  34962. deprecated="not deprecated">
  34963. <doc>
  34964. <![CDATA[Default constructor is needed for unwrapping from
  34965. {@link org.apache.hadoop.ipc.RemoteException}.]]>
  34966. </doc>
  34967. </constructor>
  34968. <constructor name="AccessControlException" type="java.lang.String"
  34969. static="false" final="false" visibility="public"
  34970. deprecated="not deprecated">
  34971. <doc>
  34972. <![CDATA[Constructs an {@link AccessControlException}
  34973. with the specified detail message.
  34974. @param s the detail message.]]>
  34975. </doc>
  34976. </constructor>
  34977. <constructor name="AccessControlException" type="java.lang.Throwable"
  34978. static="false" final="false" visibility="public"
  34979. deprecated="not deprecated">
  34980. <doc>
  34981. <![CDATA[Constructs a new exception with the specified cause and a detail
  34982. message of <tt>(cause==null ? null : cause.toString())</tt> (which
  34983. typically contains the class and detail message of <tt>cause</tt>).
  34984. @param cause the cause (which is saved for later retrieval by the
  34985. {@link #getCause()} method). (A <tt>null</tt> value is
  34986. permitted, and indicates that the cause is nonexistent or
  34987. unknown.)]]>
  34988. </doc>
  34989. </constructor>
  34990. <doc>
  34991. <![CDATA[An exception class for access control related issues.]]>
  34992. </doc>
  34993. </class>
  34994. <!-- end class org.apache.hadoop.security.AccessControlException -->
  34995. <!-- start class org.apache.hadoop.security.AuthenticationFilterInitializer -->
  34996. <class name="AuthenticationFilterInitializer" extends="org.apache.hadoop.http.FilterInitializer"
  34997. abstract="false"
  34998. static="false" final="false" visibility="public"
  34999. deprecated="not deprecated">
  35000. <constructor name="AuthenticationFilterInitializer"
  35001. static="false" final="false" visibility="public"
  35002. deprecated="not deprecated">
  35003. </constructor>
  35004. <method name="initFilter"
  35005. abstract="false" native="false" synchronized="false"
  35006. static="false" final="false" visibility="public"
  35007. deprecated="not deprecated">
  35008. <param name="container" type="org.apache.hadoop.http.FilterContainer"/>
  35009. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35010. <doc>
  35011. <![CDATA[Initializes Alfredo AuthenticationFilter.
  35012. <p/>
  35013. Propagates to Alfredo AuthenticationFilter configuration all Hadoop
  35014. configuration properties prefixed with "hadoop.http.authentication."
  35015. @param container The filter container
  35016. @param conf Configuration for run-time parameters]]>
  35017. </doc>
  35018. </method>
  35019. <doc>
  35020. <![CDATA[Initializes Alfredo AuthenticationFilter which provides support for
  35021. Kerberos HTTP SPNEGO authentication.
  35022. <p/>
  35023. It enables anonymous access, simple/speudo and Kerberos HTTP SPNEGO
  35024. authentication for Hadoop JobTracker, NameNode, DataNodes and
  35025. TaskTrackers.
  35026. <p/>
  35027. Refer to the <code>core-default.xml</code> file, after the comment
  35028. 'HTTP Authentication' for details on the configuration options.
  35029. All related configuration properties have 'hadoop.http.authentication.'
  35030. as prefix.]]>
  35031. </doc>
  35032. </class>
  35033. <!-- end class org.apache.hadoop.security.AuthenticationFilterInitializer -->
  35034. <!-- start class org.apache.hadoop.security.Credentials -->
  35035. <class name="Credentials" extends="java.lang.Object"
  35036. abstract="false"
  35037. static="false" final="false" visibility="public"
  35038. deprecated="not deprecated">
  35039. <implements name="org.apache.hadoop.io.Writable"/>
  35040. <constructor name="Credentials"
  35041. static="false" final="false" visibility="public"
  35042. deprecated="not deprecated">
  35043. </constructor>
  35044. <method name="getSecretKey" return="byte[]"
  35045. abstract="false" native="false" synchronized="false"
  35046. static="false" final="false" visibility="public"
  35047. deprecated="not deprecated">
  35048. <param name="alias" type="org.apache.hadoop.io.Text"/>
  35049. <doc>
  35050. <![CDATA[Returns the key bytes for the alias
  35051. @param alias the alias for the key
  35052. @return key for this alias]]>
  35053. </doc>
  35054. </method>
  35055. <method name="getToken" return="org.apache.hadoop.security.token.Token"
  35056. abstract="false" native="false" synchronized="false"
  35057. static="false" final="false" visibility="public"
  35058. deprecated="not deprecated">
  35059. <param name="alias" type="org.apache.hadoop.io.Text"/>
  35060. <doc>
  35061. <![CDATA[Returns the Token object for the alias
  35062. @param alias the alias for the Token
  35063. @return token for this alias]]>
  35064. </doc>
  35065. </method>
  35066. <method name="addToken"
  35067. abstract="false" native="false" synchronized="false"
  35068. static="false" final="false" visibility="public"
  35069. deprecated="not deprecated">
  35070. <param name="alias" type="org.apache.hadoop.io.Text"/>
  35071. <param name="t" type="org.apache.hadoop.security.token.Token"/>
  35072. <doc>
  35073. <![CDATA[Add a token in the storage (in memory)
  35074. @param alias the alias for the key
  35075. @param t the token object]]>
  35076. </doc>
  35077. </method>
  35078. <method name="getAllTokens" return="java.util.Collection"
  35079. abstract="false" native="false" synchronized="false"
  35080. static="false" final="false" visibility="public"
  35081. deprecated="not deprecated">
  35082. <doc>
  35083. <![CDATA[Return all the tokens in the in-memory map]]>
  35084. </doc>
  35085. </method>
  35086. <method name="numberOfTokens" return="int"
  35087. abstract="false" native="false" synchronized="false"
  35088. static="false" final="false" visibility="public"
  35089. deprecated="not deprecated">
  35090. <doc>
  35091. <![CDATA[@return number of Tokens in the in-memory map]]>
  35092. </doc>
  35093. </method>
  35094. <method name="numberOfSecretKeys" return="int"
  35095. abstract="false" native="false" synchronized="false"
  35096. static="false" final="false" visibility="public"
  35097. deprecated="not deprecated">
  35098. <doc>
  35099. <![CDATA[@return number of keys in the in-memory map]]>
  35100. </doc>
  35101. </method>
  35102. <method name="addSecretKey"
  35103. abstract="false" native="false" synchronized="false"
  35104. static="false" final="false" visibility="public"
  35105. deprecated="not deprecated">
  35106. <param name="alias" type="org.apache.hadoop.io.Text"/>
  35107. <param name="key" type="byte[]"/>
  35108. <doc>
  35109. <![CDATA[Set the key for an alias
  35110. @param alias the alias for the key
  35111. @param key the key bytes]]>
  35112. </doc>
  35113. </method>
  35114. <method name="readTokenStorageFile" return="org.apache.hadoop.security.Credentials"
  35115. abstract="false" native="false" synchronized="false"
  35116. static="true" final="false" visibility="public"
  35117. deprecated="not deprecated">
  35118. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  35119. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35120. <exception name="IOException" type="java.io.IOException"/>
  35121. <doc>
  35122. <![CDATA[Convenience method for reading a token storage file, and loading the Tokens
  35123. therein in the passed UGI
  35124. @param filename
  35125. @param conf
  35126. @throws IOException]]>
  35127. </doc>
  35128. </method>
  35129. <method name="readTokenStorageStream"
  35130. abstract="false" native="false" synchronized="false"
  35131. static="false" final="false" visibility="public"
  35132. deprecated="not deprecated">
  35133. <param name="in" type="java.io.DataInputStream"/>
  35134. <exception name="IOException" type="java.io.IOException"/>
  35135. <doc>
  35136. <![CDATA[Convenience method for reading a token storage file directly from a
  35137. datainputstream]]>
  35138. </doc>
  35139. </method>
  35140. <method name="writeTokenStorageToStream"
  35141. abstract="false" native="false" synchronized="false"
  35142. static="false" final="false" visibility="public"
  35143. deprecated="not deprecated">
  35144. <param name="os" type="java.io.DataOutputStream"/>
  35145. <exception name="IOException" type="java.io.IOException"/>
  35146. </method>
  35147. <method name="writeTokenStorageFile"
  35148. abstract="false" native="false" synchronized="false"
  35149. static="false" final="false" visibility="public"
  35150. deprecated="not deprecated">
  35151. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  35152. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35153. <exception name="IOException" type="java.io.IOException"/>
  35154. </method>
  35155. <method name="write"
  35156. abstract="false" native="false" synchronized="false"
  35157. static="false" final="false" visibility="public"
  35158. deprecated="not deprecated">
  35159. <param name="out" type="java.io.DataOutput"/>
  35160. <exception name="IOException" type="java.io.IOException"/>
  35161. <doc>
  35162. <![CDATA[Stores all the keys to DataOutput
  35163. @param out
  35164. @throws IOException]]>
  35165. </doc>
  35166. </method>
  35167. <method name="readFields"
  35168. abstract="false" native="false" synchronized="false"
  35169. static="false" final="false" visibility="public"
  35170. deprecated="not deprecated">
  35171. <param name="in" type="java.io.DataInput"/>
  35172. <exception name="IOException" type="java.io.IOException"/>
  35173. <doc>
  35174. <![CDATA[Loads all the keys
  35175. @param in
  35176. @throws IOException]]>
  35177. </doc>
  35178. </method>
  35179. <method name="addAll"
  35180. abstract="false" native="false" synchronized="false"
  35181. static="false" final="false" visibility="public"
  35182. deprecated="not deprecated">
  35183. <param name="other" type="org.apache.hadoop.security.Credentials"/>
  35184. <doc>
  35185. <![CDATA[Copy all of the credentials from one credential object into another.
  35186. @param other the credentials to copy]]>
  35187. </doc>
  35188. </method>
  35189. <doc>
  35190. <![CDATA[A class that provides the facilities of reading and writing
  35191. secret keys and Tokens.]]>
  35192. </doc>
  35193. </class>
  35194. <!-- end class org.apache.hadoop.security.Credentials -->
  35195. <!-- start class org.apache.hadoop.security.Groups -->
  35196. <class name="Groups" extends="java.lang.Object"
  35197. abstract="false"
  35198. static="false" final="false" visibility="public"
  35199. deprecated="not deprecated">
  35200. <constructor name="Groups" type="org.apache.hadoop.conf.Configuration"
  35201. static="false" final="false" visibility="public"
  35202. deprecated="not deprecated">
  35203. </constructor>
  35204. <method name="getGroups" return="java.util.List"
  35205. abstract="false" native="false" synchronized="false"
  35206. static="false" final="false" visibility="public"
  35207. deprecated="not deprecated">
  35208. <param name="user" type="java.lang.String"/>
  35209. <exception name="IOException" type="java.io.IOException"/>
  35210. <doc>
  35211. <![CDATA[Get the group memberships of a given user.
  35212. @param user User's name
  35213. @return the group memberships of the user
  35214. @throws IOException]]>
  35215. </doc>
  35216. </method>
  35217. <method name="refresh"
  35218. abstract="false" native="false" synchronized="false"
  35219. static="false" final="false" visibility="public"
  35220. deprecated="not deprecated">
  35221. <doc>
  35222. <![CDATA[Refresh all user-to-groups mappings.]]>
  35223. </doc>
  35224. </method>
  35225. <method name="cacheGroupsAdd"
  35226. abstract="false" native="false" synchronized="false"
  35227. static="false" final="false" visibility="public"
  35228. deprecated="not deprecated">
  35229. <param name="groups" type="java.util.List"/>
  35230. </method>
  35231. <method name="getUserToGroupsMappingService" return="org.apache.hadoop.security.Groups"
  35232. abstract="false" native="false" synchronized="false"
  35233. static="true" final="false" visibility="public"
  35234. deprecated="not deprecated">
  35235. <doc>
  35236. <![CDATA[Get the groups being used to map user-to-groups.
  35237. @return the groups being used to map user-to-groups.]]>
  35238. </doc>
  35239. </method>
  35240. <method name="getUserToGroupsMappingService" return="org.apache.hadoop.security.Groups"
  35241. abstract="false" native="false" synchronized="false"
  35242. static="true" final="false" visibility="public"
  35243. deprecated="not deprecated">
  35244. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35245. </method>
  35246. <doc>
  35247. <![CDATA[A user-to-groups mapping service.
  35248. {@link Groups} allows for server to get the various group memberships
  35249. of a given user via the {@link #getGroups(String)} call, thus ensuring
  35250. a consistent user-to-groups mapping and protects against vagaries of
  35251. different mappings on servers and clients in a Hadoop cluster.]]>
  35252. </doc>
  35253. </class>
  35254. <!-- end class org.apache.hadoop.security.Groups -->
  35255. <!-- start class org.apache.hadoop.security.JniBasedUnixGroupsMapping -->
  35256. <class name="JniBasedUnixGroupsMapping" extends="java.lang.Object"
  35257. abstract="false"
  35258. static="false" final="false" visibility="public"
  35259. deprecated="not deprecated">
  35260. <implements name="org.apache.hadoop.security.GroupMappingServiceProvider"/>
  35261. <constructor name="JniBasedUnixGroupsMapping"
  35262. static="false" final="false" visibility="public"
  35263. deprecated="not deprecated">
  35264. </constructor>
  35265. <method name="getGroups" return="java.util.List"
  35266. abstract="false" native="false" synchronized="false"
  35267. static="false" final="false" visibility="public"
  35268. deprecated="not deprecated">
  35269. <param name="user" type="java.lang.String"/>
  35270. <exception name="IOException" type="java.io.IOException"/>
  35271. </method>
  35272. <method name="cacheGroupsRefresh"
  35273. abstract="false" native="false" synchronized="false"
  35274. static="false" final="false" visibility="public"
  35275. deprecated="not deprecated">
  35276. <exception name="IOException" type="java.io.IOException"/>
  35277. </method>
  35278. <method name="cacheGroupsAdd"
  35279. abstract="false" native="false" synchronized="false"
  35280. static="false" final="false" visibility="public"
  35281. deprecated="not deprecated">
  35282. <param name="groups" type="java.util.List"/>
  35283. <exception name="IOException" type="java.io.IOException"/>
  35284. </method>
  35285. <doc>
  35286. <![CDATA[A JNI-based implementation of {@link GroupMappingServiceProvider}
  35287. that invokes libC calls to get the group
  35288. memberships of a given user.]]>
  35289. </doc>
  35290. </class>
  35291. <!-- end class org.apache.hadoop.security.JniBasedUnixGroupsMapping -->
  35292. <!-- start class org.apache.hadoop.security.JniBasedUnixGroupsMappingWithFallback -->
  35293. <class name="JniBasedUnixGroupsMappingWithFallback" extends="java.lang.Object"
  35294. abstract="false"
  35295. static="false" final="false" visibility="public"
  35296. deprecated="not deprecated">
  35297. <implements name="org.apache.hadoop.security.GroupMappingServiceProvider"/>
  35298. <constructor name="JniBasedUnixGroupsMappingWithFallback"
  35299. static="false" final="false" visibility="public"
  35300. deprecated="not deprecated">
  35301. </constructor>
  35302. <method name="getGroups" return="java.util.List"
  35303. abstract="false" native="false" synchronized="false"
  35304. static="false" final="false" visibility="public"
  35305. deprecated="not deprecated">
  35306. <param name="user" type="java.lang.String"/>
  35307. <exception name="IOException" type="java.io.IOException"/>
  35308. </method>
  35309. <method name="cacheGroupsRefresh"
  35310. abstract="false" native="false" synchronized="false"
  35311. static="false" final="false" visibility="public"
  35312. deprecated="not deprecated">
  35313. <exception name="IOException" type="java.io.IOException"/>
  35314. </method>
  35315. <method name="cacheGroupsAdd"
  35316. abstract="false" native="false" synchronized="false"
  35317. static="false" final="false" visibility="public"
  35318. deprecated="not deprecated">
  35319. <param name="groups" type="java.util.List"/>
  35320. <exception name="IOException" type="java.io.IOException"/>
  35321. </method>
  35322. </class>
  35323. <!-- end class org.apache.hadoop.security.JniBasedUnixGroupsMappingWithFallback -->
  35324. <!-- start class org.apache.hadoop.security.JniBasedUnixGroupsNetgroupMapping -->
  35325. <class name="JniBasedUnixGroupsNetgroupMapping" extends="org.apache.hadoop.security.JniBasedUnixGroupsMapping"
  35326. abstract="false"
  35327. static="false" final="false" visibility="public"
  35328. deprecated="not deprecated">
  35329. <constructor name="JniBasedUnixGroupsNetgroupMapping"
  35330. static="false" final="false" visibility="public"
  35331. deprecated="not deprecated">
  35332. </constructor>
  35333. <method name="getGroups" return="java.util.List"
  35334. abstract="false" native="false" synchronized="false"
  35335. static="false" final="false" visibility="public"
  35336. deprecated="not deprecated">
  35337. <param name="user" type="java.lang.String"/>
  35338. <exception name="IOException" type="java.io.IOException"/>
  35339. <doc>
  35340. <![CDATA[Gets unix groups and netgroups for the user.
  35341. It gets all unix groups as returned by id -Gn but it
  35342. only returns netgroups that are used in ACLs (there is
  35343. no way to get all netgroups for a given user, see
  35344. documentation for getent netgroup)]]>
  35345. </doc>
  35346. </method>
  35347. <method name="cacheGroupsRefresh"
  35348. abstract="false" native="false" synchronized="false"
  35349. static="false" final="false" visibility="public"
  35350. deprecated="not deprecated">
  35351. <exception name="IOException" type="java.io.IOException"/>
  35352. </method>
  35353. <method name="cacheGroupsAdd"
  35354. abstract="false" native="false" synchronized="false"
  35355. static="false" final="false" visibility="public"
  35356. deprecated="not deprecated">
  35357. <param name="groups" type="java.util.List"/>
  35358. <exception name="IOException" type="java.io.IOException"/>
  35359. </method>
  35360. <method name="getUsersForNetgroup" return="java.util.List"
  35361. abstract="false" native="false" synchronized="true"
  35362. static="false" final="false" visibility="protected"
  35363. deprecated="not deprecated">
  35364. <param name="netgroup" type="java.lang.String"/>
  35365. <doc>
  35366. <![CDATA[Calls JNI function to get users for a netgroup, since C functions
  35367. are not reentrant we need to make this synchronized (see
  35368. documentation for setnetgrent, getnetgrent and endnetgrent)]]>
  35369. </doc>
  35370. </method>
  35371. <doc>
  35372. <![CDATA[A JNI-based implementation of {@link GroupMappingServiceProvider}
  35373. that invokes libC calls to get the group
  35374. memberships of a given user.]]>
  35375. </doc>
  35376. </class>
  35377. <!-- end class org.apache.hadoop.security.JniBasedUnixGroupsNetgroupMapping -->
  35378. <!-- start class org.apache.hadoop.security.JniBasedUnixGroupsNetgroupMappingWithFallback -->
  35379. <class name="JniBasedUnixGroupsNetgroupMappingWithFallback" extends="java.lang.Object"
  35380. abstract="false"
  35381. static="false" final="false" visibility="public"
  35382. deprecated="not deprecated">
  35383. <implements name="org.apache.hadoop.security.GroupMappingServiceProvider"/>
  35384. <constructor name="JniBasedUnixGroupsNetgroupMappingWithFallback"
  35385. static="false" final="false" visibility="public"
  35386. deprecated="not deprecated">
  35387. </constructor>
  35388. <method name="getGroups" return="java.util.List"
  35389. abstract="false" native="false" synchronized="false"
  35390. static="false" final="false" visibility="public"
  35391. deprecated="not deprecated">
  35392. <param name="user" type="java.lang.String"/>
  35393. <exception name="IOException" type="java.io.IOException"/>
  35394. </method>
  35395. <method name="cacheGroupsRefresh"
  35396. abstract="false" native="false" synchronized="false"
  35397. static="false" final="false" visibility="public"
  35398. deprecated="not deprecated">
  35399. <exception name="IOException" type="java.io.IOException"/>
  35400. </method>
  35401. <method name="cacheGroupsAdd"
  35402. abstract="false" native="false" synchronized="false"
  35403. static="false" final="false" visibility="public"
  35404. deprecated="not deprecated">
  35405. <param name="groups" type="java.util.List"/>
  35406. <exception name="IOException" type="java.io.IOException"/>
  35407. </method>
  35408. </class>
  35409. <!-- end class org.apache.hadoop.security.JniBasedUnixGroupsNetgroupMappingWithFallback -->
  35410. <!-- start interface org.apache.hadoop.security.KerberosInfo -->
  35411. <interface name="KerberosInfo" abstract="true"
  35412. static="false" final="false" visibility="public"
  35413. deprecated="not deprecated">
  35414. <implements name="java.lang.annotation.Annotation"/>
  35415. <method name="serverPrincipal" return="java.lang.String"
  35416. abstract="false" native="false" synchronized="false"
  35417. static="false" final="false" visibility="public"
  35418. deprecated="not deprecated">
  35419. <doc>
  35420. <![CDATA[Key for getting server's Kerberos principal name from Configuration]]>
  35421. </doc>
  35422. </method>
  35423. <method name="clientPrincipal" return="java.lang.String"
  35424. abstract="false" native="false" synchronized="false"
  35425. static="false" final="false" visibility="public"
  35426. deprecated="not deprecated">
  35427. </method>
  35428. <doc>
  35429. <![CDATA[Indicates Kerberos related information to be used]]>
  35430. </doc>
  35431. </interface>
  35432. <!-- end interface org.apache.hadoop.security.KerberosInfo -->
  35433. <!-- start class org.apache.hadoop.security.KerberosName -->
  35434. <class name="KerberosName" extends="java.lang.Object"
  35435. abstract="false"
  35436. static="false" final="false" visibility="public"
  35437. deprecated="not deprecated">
  35438. <constructor name="KerberosName" type="java.lang.String"
  35439. static="false" final="false" visibility="public"
  35440. deprecated="not deprecated">
  35441. <doc>
  35442. <![CDATA[Create a name from the full Kerberos principal name.
  35443. @param name]]>
  35444. </doc>
  35445. </constructor>
  35446. <method name="getDefaultRealm" return="java.lang.String"
  35447. abstract="false" native="false" synchronized="false"
  35448. static="false" final="false" visibility="public"
  35449. deprecated="not deprecated">
  35450. <doc>
  35451. <![CDATA[Get the configured default realm.
  35452. @return the default realm from the krb5.conf]]>
  35453. </doc>
  35454. </method>
  35455. <method name="toString" return="java.lang.String"
  35456. abstract="false" native="false" synchronized="false"
  35457. static="false" final="false" visibility="public"
  35458. deprecated="not deprecated">
  35459. <doc>
  35460. <![CDATA[Put the name back together from the parts.]]>
  35461. </doc>
  35462. </method>
  35463. <method name="getServiceName" return="java.lang.String"
  35464. abstract="false" native="false" synchronized="false"
  35465. static="false" final="false" visibility="public"
  35466. deprecated="not deprecated">
  35467. <doc>
  35468. <![CDATA[Get the first component of the name.
  35469. @return the first section of the Kerberos principal name]]>
  35470. </doc>
  35471. </method>
  35472. <method name="getHostName" return="java.lang.String"
  35473. abstract="false" native="false" synchronized="false"
  35474. static="false" final="false" visibility="public"
  35475. deprecated="not deprecated">
  35476. <doc>
  35477. <![CDATA[Get the second component of the name.
  35478. @return the second section of the Kerberos principal name, and may be null]]>
  35479. </doc>
  35480. </method>
  35481. <method name="getRealm" return="java.lang.String"
  35482. abstract="false" native="false" synchronized="false"
  35483. static="false" final="false" visibility="public"
  35484. deprecated="not deprecated">
  35485. <doc>
  35486. <![CDATA[Get the realm of the name.
  35487. @return the realm of the name, may be null]]>
  35488. </doc>
  35489. </method>
  35490. <method name="setConfiguration"
  35491. abstract="false" native="false" synchronized="false"
  35492. static="true" final="false" visibility="public"
  35493. deprecated="not deprecated">
  35494. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35495. <exception name="IOException" type="java.io.IOException"/>
  35496. <doc>
  35497. <![CDATA[Set the static configuration to get the rules.
  35498. @param conf the new configuration
  35499. @throws IOException]]>
  35500. </doc>
  35501. </method>
  35502. <method name="setRules"
  35503. abstract="false" native="false" synchronized="false"
  35504. static="true" final="false" visibility="public"
  35505. deprecated="not deprecated">
  35506. <param name="ruleString" type="java.lang.String"/>
  35507. <doc>
  35508. <![CDATA[Set the rules.
  35509. @param ruleString the rules string.]]>
  35510. </doc>
  35511. </method>
  35512. <method name="getShortName" return="java.lang.String"
  35513. abstract="false" native="false" synchronized="false"
  35514. static="false" final="false" visibility="public"
  35515. deprecated="not deprecated">
  35516. <exception name="IOException" type="java.io.IOException"/>
  35517. <doc>
  35518. <![CDATA[Get the translation of the principal name into an operating system
  35519. user name.
  35520. @return the short name
  35521. @throws IOException]]>
  35522. </doc>
  35523. </method>
  35524. <method name="printRules"
  35525. abstract="false" native="false" synchronized="false"
  35526. static="true" final="false" visibility="public"
  35527. deprecated="not deprecated">
  35528. <exception name="IOException" type="java.io.IOException"/>
  35529. </method>
  35530. <method name="main"
  35531. abstract="false" native="false" synchronized="false"
  35532. static="true" final="false" visibility="public"
  35533. deprecated="not deprecated">
  35534. <param name="args" type="java.lang.String[]"/>
  35535. <exception name="Exception" type="java.lang.Exception"/>
  35536. </method>
  35537. <doc>
  35538. <![CDATA[This class implements parsing and handling of Kerberos principal names. In
  35539. particular, it splits them apart and translates them down into local
  35540. operating system names.]]>
  35541. </doc>
  35542. </class>
  35543. <!-- end class org.apache.hadoop.security.KerberosName -->
  35544. <!-- start class org.apache.hadoop.security.KerberosName.BadFormatString -->
  35545. <class name="KerberosName.BadFormatString" extends="java.io.IOException"
  35546. abstract="false"
  35547. static="true" final="false" visibility="public"
  35548. deprecated="not deprecated">
  35549. </class>
  35550. <!-- end class org.apache.hadoop.security.KerberosName.BadFormatString -->
  35551. <!-- start class org.apache.hadoop.security.KerberosName.NoMatchingRule -->
  35552. <class name="KerberosName.NoMatchingRule" extends="java.io.IOException"
  35553. abstract="false"
  35554. static="true" final="false" visibility="public"
  35555. deprecated="not deprecated">
  35556. </class>
  35557. <!-- end class org.apache.hadoop.security.KerberosName.NoMatchingRule -->
  35558. <!-- start class org.apache.hadoop.security.Krb5AndCertsSslSocketConnector -->
  35559. <class name="Krb5AndCertsSslSocketConnector" extends="org.mortbay.jetty.security.SslSocketConnector"
  35560. abstract="false"
  35561. static="false" final="false" visibility="public"
  35562. deprecated="not deprecated">
  35563. <constructor name="Krb5AndCertsSslSocketConnector"
  35564. static="false" final="false" visibility="public"
  35565. deprecated="not deprecated">
  35566. </constructor>
  35567. <constructor name="Krb5AndCertsSslSocketConnector" type="org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE"
  35568. static="false" final="false" visibility="public"
  35569. deprecated="not deprecated">
  35570. </constructor>
  35571. <method name="createFactory" return="javax.net.ssl.SSLServerSocketFactory"
  35572. abstract="false" native="false" synchronized="false"
  35573. static="false" final="false" visibility="protected"
  35574. deprecated="not deprecated">
  35575. <exception name="Exception" type="java.lang.Exception"/>
  35576. </method>
  35577. <method name="newServerSocket" return="java.net.ServerSocket"
  35578. abstract="false" native="false" synchronized="false"
  35579. static="false" final="false" visibility="protected"
  35580. deprecated="not deprecated">
  35581. <param name="host" type="java.lang.String"/>
  35582. <param name="port" type="int"/>
  35583. <param name="backlog" type="int"/>
  35584. <exception name="IOException" type="java.io.IOException"/>
  35585. </method>
  35586. <method name="customize"
  35587. abstract="false" native="false" synchronized="false"
  35588. static="false" final="false" visibility="public"
  35589. deprecated="not deprecated">
  35590. <param name="endpoint" type="org.mortbay.io.EndPoint"/>
  35591. <param name="request" type="org.mortbay.jetty.Request"/>
  35592. <exception name="IOException" type="java.io.IOException"/>
  35593. </method>
  35594. <field name="KRB5_CIPHER_SUITES" type="java.util.List"
  35595. transient="false" volatile="false"
  35596. static="true" final="true" visibility="public"
  35597. deprecated="not deprecated">
  35598. </field>
  35599. <doc>
  35600. <![CDATA[Extend Jetty's {@link SslSocketConnector} to optionally also provide
  35601. Kerberos5ized SSL sockets. The only change in behavior from superclass
  35602. is that we no longer honor requests to turn off NeedAuthentication when
  35603. running with Kerberos support.]]>
  35604. </doc>
  35605. </class>
  35606. <!-- end class org.apache.hadoop.security.Krb5AndCertsSslSocketConnector -->
  35607. <!-- start class org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.Krb5SslFilter -->
  35608. <class name="Krb5AndCertsSslSocketConnector.Krb5SslFilter" extends="java.lang.Object"
  35609. abstract="false"
  35610. static="true" final="false" visibility="public"
  35611. deprecated="not deprecated">
  35612. <implements name="javax.servlet.Filter"/>
  35613. <constructor name="Krb5AndCertsSslSocketConnector.Krb5SslFilter"
  35614. static="false" final="false" visibility="public"
  35615. deprecated="not deprecated">
  35616. </constructor>
  35617. <method name="doFilter"
  35618. abstract="false" native="false" synchronized="false"
  35619. static="false" final="false" visibility="public"
  35620. deprecated="not deprecated">
  35621. <param name="req" type="javax.servlet.ServletRequest"/>
  35622. <param name="resp" type="javax.servlet.ServletResponse"/>
  35623. <param name="chain" type="javax.servlet.FilterChain"/>
  35624. <exception name="IOException" type="java.io.IOException"/>
  35625. <exception name="ServletException" type="javax.servlet.ServletException"/>
  35626. </method>
  35627. <method name="init"
  35628. abstract="false" native="false" synchronized="false"
  35629. static="false" final="false" visibility="public"
  35630. deprecated="not deprecated">
  35631. <param name="arg0" type="javax.servlet.FilterConfig"/>
  35632. <exception name="ServletException" type="javax.servlet.ServletException"/>
  35633. </method>
  35634. <method name="destroy"
  35635. abstract="false" native="false" synchronized="false"
  35636. static="false" final="false" visibility="public"
  35637. deprecated="not deprecated">
  35638. </method>
  35639. <doc>
  35640. <![CDATA[Filter that takes the Kerberos principal identified in the
  35641. {@link Krb5AndCertsSslSocketConnector} and provides it the to the servlet
  35642. at runtime, setting the principal and short name.]]>
  35643. </doc>
  35644. </class>
  35645. <!-- end class org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.Krb5SslFilter -->
  35646. <!-- start class org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE -->
  35647. <class name="Krb5AndCertsSslSocketConnector.MODE" extends="java.lang.Enum"
  35648. abstract="false"
  35649. static="true" final="true" visibility="public"
  35650. deprecated="not deprecated">
  35651. <method name="values" return="org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE[]"
  35652. abstract="false" native="false" synchronized="false"
  35653. static="true" final="false" visibility="public"
  35654. deprecated="not deprecated">
  35655. </method>
  35656. <method name="valueOf" return="org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE"
  35657. abstract="false" native="false" synchronized="false"
  35658. static="true" final="false" visibility="public"
  35659. deprecated="not deprecated">
  35660. <param name="name" type="java.lang.String"/>
  35661. </method>
  35662. <field name="KRB" type="org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE"
  35663. transient="false" volatile="false"
  35664. static="true" final="true" visibility="public"
  35665. deprecated="not deprecated">
  35666. </field>
  35667. <field name="CERTS" type="org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE"
  35668. transient="false" volatile="false"
  35669. static="true" final="true" visibility="public"
  35670. deprecated="not deprecated">
  35671. </field>
  35672. <field name="BOTH" type="org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE"
  35673. transient="false" volatile="false"
  35674. static="true" final="true" visibility="public"
  35675. deprecated="not deprecated">
  35676. </field>
  35677. </class>
  35678. <!-- end class org.apache.hadoop.security.Krb5AndCertsSslSocketConnector.MODE -->
  35679. <!-- start class org.apache.hadoop.security.NetgroupCache -->
  35680. <class name="NetgroupCache" extends="java.lang.Object"
  35681. abstract="false"
  35682. static="false" final="false" visibility="public"
  35683. deprecated="not deprecated">
  35684. <constructor name="NetgroupCache"
  35685. static="false" final="false" visibility="public"
  35686. deprecated="not deprecated">
  35687. </constructor>
  35688. <method name="getNetgroups"
  35689. abstract="false" native="false" synchronized="false"
  35690. static="false" final="false" visibility="public"
  35691. deprecated="not deprecated">
  35692. <param name="user" type="java.lang.String"/>
  35693. <param name="groups" type="java.util.List"/>
  35694. </method>
  35695. <method name="getNetgroupNames" return="java.util.List"
  35696. abstract="false" native="false" synchronized="false"
  35697. static="false" final="false" visibility="public"
  35698. deprecated="not deprecated">
  35699. </method>
  35700. <method name="isCached" return="boolean"
  35701. abstract="false" native="false" synchronized="false"
  35702. static="false" final="false" visibility="public"
  35703. deprecated="not deprecated">
  35704. <param name="group" type="java.lang.String"/>
  35705. </method>
  35706. <method name="clear"
  35707. abstract="false" native="false" synchronized="false"
  35708. static="false" final="false" visibility="public"
  35709. deprecated="not deprecated">
  35710. </method>
  35711. <method name="add"
  35712. abstract="false" native="false" synchronized="false"
  35713. static="false" final="false" visibility="public"
  35714. deprecated="not deprecated">
  35715. <param name="group" type="java.lang.String"/>
  35716. <param name="users" type="java.util.List"/>
  35717. </method>
  35718. <doc>
  35719. <![CDATA[Class that caches the netgroups and inverts group-to-user map
  35720. to user-to-group map]]>
  35721. </doc>
  35722. </class>
  35723. <!-- end class org.apache.hadoop.security.NetgroupCache -->
  35724. <!-- start interface org.apache.hadoop.security.RefreshUserMappingsProtocol -->
  35725. <interface name="RefreshUserMappingsProtocol" abstract="true"
  35726. static="false" final="false" visibility="public"
  35727. deprecated="not deprecated">
  35728. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  35729. <method name="refreshUserToGroupsMappings"
  35730. abstract="false" native="false" synchronized="false"
  35731. static="false" final="false" visibility="public"
  35732. deprecated="not deprecated">
  35733. <exception name="IOException" type="java.io.IOException"/>
  35734. <doc>
  35735. <![CDATA[Refresh user to group mappings.
  35736. @throws IOException]]>
  35737. </doc>
  35738. </method>
  35739. <method name="refreshSuperUserGroupsConfiguration"
  35740. abstract="false" native="false" synchronized="false"
  35741. static="false" final="false" visibility="public"
  35742. deprecated="not deprecated">
  35743. <exception name="IOException" type="java.io.IOException"/>
  35744. <doc>
  35745. <![CDATA[Refresh superuser proxy group list
  35746. @throws IOException]]>
  35747. </doc>
  35748. </method>
  35749. <field name="versionID" type="long"
  35750. transient="false" volatile="false"
  35751. static="true" final="true" visibility="public"
  35752. deprecated="not deprecated">
  35753. <doc>
  35754. <![CDATA[Version 1: Initial version.]]>
  35755. </doc>
  35756. </field>
  35757. <doc>
  35758. <![CDATA[Protocol use]]>
  35759. </doc>
  35760. </interface>
  35761. <!-- end interface org.apache.hadoop.security.RefreshUserMappingsProtocol -->
  35762. <!-- start class org.apache.hadoop.security.SaslInputStream -->
  35763. <class name="SaslInputStream" extends="java.io.InputStream"
  35764. abstract="false"
  35765. static="false" final="false" visibility="public"
  35766. deprecated="not deprecated">
  35767. <constructor name="SaslInputStream" type="java.io.InputStream, javax.security.sasl.SaslServer"
  35768. static="false" final="false" visibility="public"
  35769. deprecated="not deprecated">
  35770. <doc>
  35771. <![CDATA[Constructs a SASLInputStream from an InputStream and a SaslServer <br>
  35772. Note: if the specified InputStream or SaslServer is null, a
  35773. NullPointerException may be thrown later when they are used.
  35774. @param inStream
  35775. the InputStream to be processed
  35776. @param saslServer
  35777. an initialized SaslServer object]]>
  35778. </doc>
  35779. </constructor>
  35780. <constructor name="SaslInputStream" type="java.io.InputStream, javax.security.sasl.SaslClient"
  35781. static="false" final="false" visibility="public"
  35782. deprecated="not deprecated">
  35783. <doc>
  35784. <![CDATA[Constructs a SASLInputStream from an InputStream and a SaslClient <br>
  35785. Note: if the specified InputStream or SaslClient is null, a
  35786. NullPointerException may be thrown later when they are used.
  35787. @param inStream
  35788. the InputStream to be processed
  35789. @param saslClient
  35790. an initialized SaslClient object]]>
  35791. </doc>
  35792. </constructor>
  35793. <method name="read" return="int"
  35794. abstract="false" native="false" synchronized="false"
  35795. static="false" final="false" visibility="public"
  35796. deprecated="not deprecated">
  35797. <exception name="IOException" type="java.io.IOException"/>
  35798. <doc>
  35799. <![CDATA[Reads the next byte of data from this input stream. The value byte is
  35800. returned as an <code>int</code> in the range <code>0</code> to
  35801. <code>255</code>. If no byte is available because the end of the stream has
  35802. been reached, the value <code>-1</code> is returned. This method blocks
  35803. until input data is available, the end of the stream is detected, or an
  35804. exception is thrown.
  35805. <p>
  35806. @return the next byte of data, or <code>-1</code> if the end of the stream
  35807. is reached.
  35808. @exception IOException
  35809. if an I/O error occurs.]]>
  35810. </doc>
  35811. </method>
  35812. <method name="read" return="int"
  35813. abstract="false" native="false" synchronized="false"
  35814. static="false" final="false" visibility="public"
  35815. deprecated="not deprecated">
  35816. <param name="b" type="byte[]"/>
  35817. <exception name="IOException" type="java.io.IOException"/>
  35818. <doc>
  35819. <![CDATA[Reads up to <code>b.length</code> bytes of data from this input stream into
  35820. an array of bytes.
  35821. <p>
  35822. The <code>read</code> method of <code>InputStream</code> calls the
  35823. <code>read</code> method of three arguments with the arguments
  35824. <code>b</code>, <code>0</code>, and <code>b.length</code>.
  35825. @param b
  35826. the buffer into which the data is read.
  35827. @return the total number of bytes read into the buffer, or <code>-1</code>
  35828. is there is no more data because the end of the stream has been
  35829. reached.
  35830. @exception IOException
  35831. if an I/O error occurs.]]>
  35832. </doc>
  35833. </method>
  35834. <method name="read" return="int"
  35835. abstract="false" native="false" synchronized="false"
  35836. static="false" final="false" visibility="public"
  35837. deprecated="not deprecated">
  35838. <param name="b" type="byte[]"/>
  35839. <param name="off" type="int"/>
  35840. <param name="len" type="int"/>
  35841. <exception name="IOException" type="java.io.IOException"/>
  35842. <doc>
  35843. <![CDATA[Reads up to <code>len</code> bytes of data from this input stream into an
  35844. array of bytes. This method blocks until some input is available. If the
  35845. first argument is <code>null,</code> up to <code>len</code> bytes are read
  35846. and discarded.
  35847. @param b
  35848. the buffer into which the data is read.
  35849. @param off
  35850. the start offset of the data.
  35851. @param len
  35852. the maximum number of bytes read.
  35853. @return the total number of bytes read into the buffer, or <code>-1</code>
  35854. if there is no more data because the end of the stream has been
  35855. reached.
  35856. @exception IOException
  35857. if an I/O error occurs.]]>
  35858. </doc>
  35859. </method>
  35860. <method name="skip" return="long"
  35861. abstract="false" native="false" synchronized="false"
  35862. static="false" final="false" visibility="public"
  35863. deprecated="not deprecated">
  35864. <param name="n" type="long"/>
  35865. <exception name="IOException" type="java.io.IOException"/>
  35866. <doc>
  35867. <![CDATA[Skips <code>n</code> bytes of input from the bytes that can be read from
  35868. this input stream without blocking.
  35869. <p>
  35870. Fewer bytes than requested might be skipped. The actual number of bytes
  35871. skipped is equal to <code>n</code> or the result of a call to
  35872. {@link #available() <code>available</code>}, whichever is smaller. If
  35873. <code>n</code> is less than zero, no bytes are skipped.
  35874. <p>
  35875. The actual number of bytes skipped is returned.
  35876. @param n
  35877. the number of bytes to be skipped.
  35878. @return the actual number of bytes skipped.
  35879. @exception IOException
  35880. if an I/O error occurs.]]>
  35881. </doc>
  35882. </method>
  35883. <method name="available" return="int"
  35884. abstract="false" native="false" synchronized="false"
  35885. static="false" final="false" visibility="public"
  35886. deprecated="not deprecated">
  35887. <exception name="IOException" type="java.io.IOException"/>
  35888. <doc>
  35889. <![CDATA[Returns the number of bytes that can be read from this input stream without
  35890. blocking. The <code>available</code> method of <code>InputStream</code>
  35891. returns <code>0</code>. This method <B>should</B> be overridden by
  35892. subclasses.
  35893. @return the number of bytes that can be read from this input stream without
  35894. blocking.
  35895. @exception IOException
  35896. if an I/O error occurs.]]>
  35897. </doc>
  35898. </method>
  35899. <method name="close"
  35900. abstract="false" native="false" synchronized="false"
  35901. static="false" final="false" visibility="public"
  35902. deprecated="not deprecated">
  35903. <exception name="IOException" type="java.io.IOException"/>
  35904. <doc>
  35905. <![CDATA[Closes this input stream and releases any system resources associated with
  35906. the stream.
  35907. <p>
  35908. The <code>close</code> method of <code>SASLInputStream</code> calls the
  35909. <code>close</code> method of its underlying input stream.
  35910. @exception IOException
  35911. if an I/O error occurs.]]>
  35912. </doc>
  35913. </method>
  35914. <method name="markSupported" return="boolean"
  35915. abstract="false" native="false" synchronized="false"
  35916. static="false" final="false" visibility="public"
  35917. deprecated="not deprecated">
  35918. <doc>
  35919. <![CDATA[Tests if this input stream supports the <code>mark</code> and
  35920. <code>reset</code> methods, which it does not.
  35921. @return <code>false</code>, since this class does not support the
  35922. <code>mark</code> and <code>reset</code> methods.]]>
  35923. </doc>
  35924. </method>
  35925. <field name="LOG" type="org.apache.commons.logging.Log"
  35926. transient="false" volatile="false"
  35927. static="true" final="true" visibility="public"
  35928. deprecated="not deprecated">
  35929. </field>
  35930. <doc>
  35931. <![CDATA[A SaslInputStream is composed of an InputStream and a SaslServer (or
  35932. SaslClient) so that read() methods return data that are read in from the
  35933. underlying InputStream but have been additionally processed by the SaslServer
  35934. (or SaslClient) object. The SaslServer (or SaslClient) object must be fully
  35935. initialized before being used by a SaslInputStream.]]>
  35936. </doc>
  35937. </class>
  35938. <!-- end class org.apache.hadoop.security.SaslInputStream -->
  35939. <!-- start class org.apache.hadoop.security.SaslOutputStream -->
  35940. <class name="SaslOutputStream" extends="java.io.OutputStream"
  35941. abstract="false"
  35942. static="false" final="false" visibility="public"
  35943. deprecated="not deprecated">
  35944. <constructor name="SaslOutputStream" type="java.io.OutputStream, javax.security.sasl.SaslServer"
  35945. static="false" final="false" visibility="public"
  35946. deprecated="not deprecated">
  35947. <doc>
  35948. <![CDATA[Constructs a SASLOutputStream from an OutputStream and a SaslServer <br>
  35949. Note: if the specified OutputStream or SaslServer is null, a
  35950. NullPointerException may be thrown later when they are used.
  35951. @param outStream
  35952. the OutputStream to be processed
  35953. @param saslServer
  35954. an initialized SaslServer object]]>
  35955. </doc>
  35956. </constructor>
  35957. <constructor name="SaslOutputStream" type="java.io.OutputStream, javax.security.sasl.SaslClient"
  35958. static="false" final="false" visibility="public"
  35959. deprecated="not deprecated">
  35960. <doc>
  35961. <![CDATA[Constructs a SASLOutputStream from an OutputStream and a SaslClient <br>
  35962. Note: if the specified OutputStream or SaslClient is null, a
  35963. NullPointerException may be thrown later when they are used.
  35964. @param outStream
  35965. the OutputStream to be processed
  35966. @param saslClient
  35967. an initialized SaslClient object]]>
  35968. </doc>
  35969. </constructor>
  35970. <method name="write"
  35971. abstract="false" native="false" synchronized="false"
  35972. static="false" final="false" visibility="public"
  35973. deprecated="not deprecated">
  35974. <param name="b" type="int"/>
  35975. <exception name="IOException" type="java.io.IOException"/>
  35976. <doc>
  35977. <![CDATA[Writes the specified byte to this output stream.
  35978. @param b
  35979. the <code>byte</code>.
  35980. @exception IOException
  35981. if an I/O error occurs.]]>
  35982. </doc>
  35983. </method>
  35984. <method name="write"
  35985. abstract="false" native="false" synchronized="false"
  35986. static="false" final="false" visibility="public"
  35987. deprecated="not deprecated">
  35988. <param name="b" type="byte[]"/>
  35989. <exception name="IOException" type="java.io.IOException"/>
  35990. <doc>
  35991. <![CDATA[Writes <code>b.length</code> bytes from the specified byte array to this
  35992. output stream.
  35993. <p>
  35994. The <code>write</code> method of <code>SASLOutputStream</code> calls the
  35995. <code>write</code> method of three arguments with the three arguments
  35996. <code>b</code>, <code>0</code>, and <code>b.length</code>.
  35997. @param b
  35998. the data.
  35999. @exception NullPointerException
  36000. if <code>b</code> is null.
  36001. @exception IOException
  36002. if an I/O error occurs.]]>
  36003. </doc>
  36004. </method>
  36005. <method name="write"
  36006. abstract="false" native="false" synchronized="false"
  36007. static="false" final="false" visibility="public"
  36008. deprecated="not deprecated">
  36009. <param name="inBuf" type="byte[]"/>
  36010. <param name="off" type="int"/>
  36011. <param name="len" type="int"/>
  36012. <exception name="IOException" type="java.io.IOException"/>
  36013. <doc>
  36014. <![CDATA[Writes <code>len</code> bytes from the specified byte array starting at
  36015. offset <code>off</code> to this output stream.
  36016. @param inBuf
  36017. the data.
  36018. @param off
  36019. the start offset in the data.
  36020. @param len
  36021. the number of bytes to write.
  36022. @exception IOException
  36023. if an I/O error occurs.]]>
  36024. </doc>
  36025. </method>
  36026. <method name="flush"
  36027. abstract="false" native="false" synchronized="false"
  36028. static="false" final="false" visibility="public"
  36029. deprecated="not deprecated">
  36030. <exception name="IOException" type="java.io.IOException"/>
  36031. <doc>
  36032. <![CDATA[Flushes this output stream
  36033. @exception IOException
  36034. if an I/O error occurs.]]>
  36035. </doc>
  36036. </method>
  36037. <method name="close"
  36038. abstract="false" native="false" synchronized="false"
  36039. static="false" final="false" visibility="public"
  36040. deprecated="not deprecated">
  36041. <exception name="IOException" type="java.io.IOException"/>
  36042. <doc>
  36043. <![CDATA[Closes this output stream and releases any system resources associated with
  36044. this stream.
  36045. @exception IOException
  36046. if an I/O error occurs.]]>
  36047. </doc>
  36048. </method>
  36049. <doc>
  36050. <![CDATA[A SaslOutputStream is composed of an OutputStream and a SaslServer (or
  36051. SaslClient) so that write() methods first process the data before writing
  36052. them out to the underlying OutputStream. The SaslServer (or SaslClient)
  36053. object must be fully initialized before being used by a SaslOutputStream.]]>
  36054. </doc>
  36055. </class>
  36056. <!-- end class org.apache.hadoop.security.SaslOutputStream -->
  36057. <!-- start class org.apache.hadoop.security.SaslRpcClient -->
  36058. <class name="SaslRpcClient" extends="java.lang.Object"
  36059. abstract="false"
  36060. static="false" final="false" visibility="public"
  36061. deprecated="not deprecated">
  36062. <constructor name="SaslRpcClient" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod, org.apache.hadoop.security.token.Token, java.lang.String, boolean"
  36063. static="false" final="false" visibility="public"
  36064. deprecated="not deprecated">
  36065. <exception name="IOException" type="java.io.IOException"/>
  36066. <doc>
  36067. <![CDATA[Create a SaslRpcClient for an authentication method
  36068. @param method
  36069. the requested authentication method
  36070. @param token
  36071. token to use if needed by the authentication method]]>
  36072. </doc>
  36073. </constructor>
  36074. <method name="saslConnect" return="boolean"
  36075. abstract="false" native="false" synchronized="false"
  36076. static="false" final="false" visibility="public"
  36077. deprecated="not deprecated">
  36078. <param name="inS" type="java.io.InputStream"/>
  36079. <param name="outS" type="java.io.OutputStream"/>
  36080. <exception name="IOException" type="java.io.IOException"/>
  36081. <doc>
  36082. <![CDATA[Do client side SASL authentication with server via the given InputStream
  36083. and OutputStream
  36084. @param inS
  36085. InputStream to use
  36086. @param outS
  36087. OutputStream to use
  36088. @return true if connection is set up, or false if needs to switch
  36089. to simple Auth.
  36090. @throws IOException]]>
  36091. </doc>
  36092. </method>
  36093. <method name="getInputStream" return="java.io.InputStream"
  36094. abstract="false" native="false" synchronized="false"
  36095. static="false" final="false" visibility="public"
  36096. deprecated="not deprecated">
  36097. <param name="in" type="java.io.InputStream"/>
  36098. <exception name="IOException" type="java.io.IOException"/>
  36099. <doc>
  36100. <![CDATA[Get a SASL wrapped InputStream. Can be called only after saslConnect() has
  36101. been called.
  36102. @param in
  36103. the InputStream to wrap
  36104. @return a SASL wrapped InputStream
  36105. @throws IOException]]>
  36106. </doc>
  36107. </method>
  36108. <method name="getOutputStream" return="java.io.OutputStream"
  36109. abstract="false" native="false" synchronized="false"
  36110. static="false" final="false" visibility="public"
  36111. deprecated="not deprecated">
  36112. <param name="out" type="java.io.OutputStream"/>
  36113. <exception name="IOException" type="java.io.IOException"/>
  36114. <doc>
  36115. <![CDATA[Get a SASL wrapped OutputStream. Can be called only after saslConnect() has
  36116. been called.
  36117. @param out
  36118. the OutputStream to wrap
  36119. @return a SASL wrapped OutputStream
  36120. @throws IOException]]>
  36121. </doc>
  36122. </method>
  36123. <method name="dispose"
  36124. abstract="false" native="false" synchronized="false"
  36125. static="false" final="false" visibility="public"
  36126. deprecated="not deprecated">
  36127. <exception name="SaslException" type="javax.security.sasl.SaslException"/>
  36128. <doc>
  36129. <![CDATA[Release resources used by wrapped saslClient]]>
  36130. </doc>
  36131. </method>
  36132. <field name="LOG" type="org.apache.commons.logging.Log"
  36133. transient="false" volatile="false"
  36134. static="true" final="true" visibility="public"
  36135. deprecated="not deprecated">
  36136. </field>
  36137. <doc>
  36138. <![CDATA[A utility class that encapsulates SASL logic for RPC client]]>
  36139. </doc>
  36140. </class>
  36141. <!-- end class org.apache.hadoop.security.SaslRpcClient -->
  36142. <!-- start class org.apache.hadoop.security.SaslRpcServer -->
  36143. <class name="SaslRpcServer" extends="java.lang.Object"
  36144. abstract="false"
  36145. static="false" final="false" visibility="public"
  36146. deprecated="not deprecated">
  36147. <constructor name="SaslRpcServer"
  36148. static="false" final="false" visibility="public"
  36149. deprecated="not deprecated">
  36150. </constructor>
  36151. <method name="init"
  36152. abstract="false" native="false" synchronized="false"
  36153. static="true" final="false" visibility="public"
  36154. deprecated="not deprecated">
  36155. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  36156. </method>
  36157. <method name="getIdentifier" return="org.apache.hadoop.security.token.TokenIdentifier"
  36158. abstract="false" native="false" synchronized="false"
  36159. static="true" final="false" visibility="public"
  36160. deprecated="not deprecated">
  36161. <param name="id" type="java.lang.String"/>
  36162. <param name="secretManager" type="org.apache.hadoop.security.token.SecretManager"/>
  36163. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  36164. </method>
  36165. <method name="splitKerberosName" return="java.lang.String[]"
  36166. abstract="false" native="false" synchronized="false"
  36167. static="true" final="false" visibility="public"
  36168. deprecated="not deprecated">
  36169. <param name="fullName" type="java.lang.String"/>
  36170. <doc>
  36171. <![CDATA[Splitting fully qualified Kerberos name into parts]]>
  36172. </doc>
  36173. </method>
  36174. <field name="LOG" type="org.apache.commons.logging.Log"
  36175. transient="false" volatile="false"
  36176. static="true" final="true" visibility="public"
  36177. deprecated="not deprecated">
  36178. </field>
  36179. <field name="SASL_DEFAULT_REALM" type="java.lang.String"
  36180. transient="false" volatile="false"
  36181. static="true" final="true" visibility="public"
  36182. deprecated="not deprecated">
  36183. </field>
  36184. <field name="SASL_PROPS" type="java.util.Map"
  36185. transient="false" volatile="false"
  36186. static="true" final="true" visibility="public"
  36187. deprecated="not deprecated">
  36188. </field>
  36189. <field name="SWITCH_TO_SIMPLE_AUTH" type="int"
  36190. transient="false" volatile="false"
  36191. static="true" final="true" visibility="public"
  36192. deprecated="not deprecated">
  36193. </field>
  36194. <doc>
  36195. <![CDATA[A utility class for dealing with SASL on RPC server]]>
  36196. </doc>
  36197. </class>
  36198. <!-- end class org.apache.hadoop.security.SaslRpcServer -->
  36199. <!-- start class org.apache.hadoop.security.SaslRpcServer.AuthMethod -->
  36200. <class name="SaslRpcServer.AuthMethod" extends="java.lang.Enum"
  36201. abstract="false"
  36202. static="true" final="true" visibility="public"
  36203. deprecated="not deprecated">
  36204. <method name="values" return="org.apache.hadoop.security.SaslRpcServer.AuthMethod[]"
  36205. abstract="false" native="false" synchronized="false"
  36206. static="true" final="false" visibility="public"
  36207. deprecated="not deprecated">
  36208. </method>
  36209. <method name="valueOf" return="org.apache.hadoop.security.SaslRpcServer.AuthMethod"
  36210. abstract="false" native="false" synchronized="false"
  36211. static="true" final="false" visibility="public"
  36212. deprecated="not deprecated">
  36213. <param name="name" type="java.lang.String"/>
  36214. </method>
  36215. <method name="getMechanismName" return="java.lang.String"
  36216. abstract="false" native="false" synchronized="false"
  36217. static="false" final="false" visibility="public"
  36218. deprecated="not deprecated">
  36219. <doc>
  36220. <![CDATA[Return the SASL mechanism name]]>
  36221. </doc>
  36222. </method>
  36223. <method name="read" return="org.apache.hadoop.security.SaslRpcServer.AuthMethod"
  36224. abstract="false" native="false" synchronized="false"
  36225. static="true" final="false" visibility="public"
  36226. deprecated="not deprecated">
  36227. <param name="in" type="java.io.DataInput"/>
  36228. <exception name="IOException" type="java.io.IOException"/>
  36229. <doc>
  36230. <![CDATA[Read from in]]>
  36231. </doc>
  36232. </method>
  36233. <method name="write"
  36234. abstract="false" native="false" synchronized="false"
  36235. static="false" final="false" visibility="public"
  36236. deprecated="not deprecated">
  36237. <param name="out" type="java.io.DataOutput"/>
  36238. <exception name="IOException" type="java.io.IOException"/>
  36239. <doc>
  36240. <![CDATA[Write to out]]>
  36241. </doc>
  36242. </method>
  36243. <field name="SIMPLE" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod"
  36244. transient="false" volatile="false"
  36245. static="true" final="true" visibility="public"
  36246. deprecated="not deprecated">
  36247. </field>
  36248. <field name="KERBEROS" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod"
  36249. transient="false" volatile="false"
  36250. static="true" final="true" visibility="public"
  36251. deprecated="not deprecated">
  36252. </field>
  36253. <field name="DIGEST" type="org.apache.hadoop.security.SaslRpcServer.AuthMethod"
  36254. transient="false" volatile="false"
  36255. static="true" final="true" visibility="public"
  36256. deprecated="not deprecated">
  36257. </field>
  36258. <field name="code" type="byte"
  36259. transient="false" volatile="false"
  36260. static="false" final="true" visibility="public"
  36261. deprecated="not deprecated">
  36262. <doc>
  36263. <![CDATA[The code for this method.]]>
  36264. </doc>
  36265. </field>
  36266. <field name="mechanismName" type="java.lang.String"
  36267. transient="false" volatile="false"
  36268. static="false" final="true" visibility="public"
  36269. deprecated="not deprecated">
  36270. </field>
  36271. <field name="authenticationMethod" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  36272. transient="false" volatile="false"
  36273. static="false" final="true" visibility="public"
  36274. deprecated="not deprecated">
  36275. </field>
  36276. <doc>
  36277. <![CDATA[Authentication method]]>
  36278. </doc>
  36279. </class>
  36280. <!-- end class org.apache.hadoop.security.SaslRpcServer.AuthMethod -->
  36281. <!-- start class org.apache.hadoop.security.SaslRpcServer.QualityOfProtection -->
  36282. <class name="SaslRpcServer.QualityOfProtection" extends="java.lang.Enum"
  36283. abstract="false"
  36284. static="true" final="true" visibility="public"
  36285. deprecated="not deprecated">
  36286. <method name="values" return="org.apache.hadoop.security.SaslRpcServer.QualityOfProtection[]"
  36287. abstract="false" native="false" synchronized="false"
  36288. static="true" final="false" visibility="public"
  36289. deprecated="not deprecated">
  36290. </method>
  36291. <method name="valueOf" return="org.apache.hadoop.security.SaslRpcServer.QualityOfProtection"
  36292. abstract="false" native="false" synchronized="false"
  36293. static="true" final="false" visibility="public"
  36294. deprecated="not deprecated">
  36295. <param name="name" type="java.lang.String"/>
  36296. </method>
  36297. <method name="getSaslQop" return="java.lang.String"
  36298. abstract="false" native="false" synchronized="false"
  36299. static="false" final="false" visibility="public"
  36300. deprecated="not deprecated">
  36301. </method>
  36302. <field name="AUTHENTICATION" type="org.apache.hadoop.security.SaslRpcServer.QualityOfProtection"
  36303. transient="false" volatile="false"
  36304. static="true" final="true" visibility="public"
  36305. deprecated="not deprecated">
  36306. </field>
  36307. <field name="INTEGRITY" type="org.apache.hadoop.security.SaslRpcServer.QualityOfProtection"
  36308. transient="false" volatile="false"
  36309. static="true" final="true" visibility="public"
  36310. deprecated="not deprecated">
  36311. </field>
  36312. <field name="PRIVACY" type="org.apache.hadoop.security.SaslRpcServer.QualityOfProtection"
  36313. transient="false" volatile="false"
  36314. static="true" final="true" visibility="public"
  36315. deprecated="not deprecated">
  36316. </field>
  36317. <field name="saslQop" type="java.lang.String"
  36318. transient="false" volatile="false"
  36319. static="false" final="true" visibility="public"
  36320. deprecated="not deprecated">
  36321. </field>
  36322. </class>
  36323. <!-- end class org.apache.hadoop.security.SaslRpcServer.QualityOfProtection -->
  36324. <!-- start class org.apache.hadoop.security.SaslRpcServer.SaslDigestCallbackHandler -->
  36325. <class name="SaslRpcServer.SaslDigestCallbackHandler" extends="java.lang.Object"
  36326. abstract="false"
  36327. static="true" final="false" visibility="public"
  36328. deprecated="not deprecated">
  36329. <implements name="javax.security.auth.callback.CallbackHandler"/>
  36330. <constructor name="SaslRpcServer.SaslDigestCallbackHandler" type="org.apache.hadoop.security.token.SecretManager, org.apache.hadoop.ipc.Server.Connection"
  36331. static="false" final="false" visibility="public"
  36332. deprecated="not deprecated">
  36333. </constructor>
  36334. <method name="handle"
  36335. abstract="false" native="false" synchronized="false"
  36336. static="false" final="false" visibility="public"
  36337. deprecated="not deprecated">
  36338. <param name="callbacks" type="javax.security.auth.callback.Callback[]"/>
  36339. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  36340. <exception name="UnsupportedCallbackException" type="javax.security.auth.callback.UnsupportedCallbackException"/>
  36341. <doc>
  36342. <![CDATA[{@inheritDoc}]]>
  36343. </doc>
  36344. </method>
  36345. <doc>
  36346. <![CDATA[CallbackHandler for SASL DIGEST-MD5 mechanism]]>
  36347. </doc>
  36348. </class>
  36349. <!-- end class org.apache.hadoop.security.SaslRpcServer.SaslDigestCallbackHandler -->
  36350. <!-- start class org.apache.hadoop.security.SaslRpcServer.SaslGssCallbackHandler -->
  36351. <class name="SaslRpcServer.SaslGssCallbackHandler" extends="java.lang.Object"
  36352. abstract="false"
  36353. static="true" final="false" visibility="public"
  36354. deprecated="not deprecated">
  36355. <implements name="javax.security.auth.callback.CallbackHandler"/>
  36356. <constructor name="SaslRpcServer.SaslGssCallbackHandler"
  36357. static="false" final="false" visibility="public"
  36358. deprecated="not deprecated">
  36359. </constructor>
  36360. <method name="handle"
  36361. abstract="false" native="false" synchronized="false"
  36362. static="false" final="false" visibility="public"
  36363. deprecated="not deprecated">
  36364. <param name="callbacks" type="javax.security.auth.callback.Callback[]"/>
  36365. <exception name="UnsupportedCallbackException" type="javax.security.auth.callback.UnsupportedCallbackException"/>
  36366. <doc>
  36367. <![CDATA[{@inheritDoc}]]>
  36368. </doc>
  36369. </method>
  36370. <doc>
  36371. <![CDATA[CallbackHandler for SASL GSSAPI Kerberos mechanism]]>
  36372. </doc>
  36373. </class>
  36374. <!-- end class org.apache.hadoop.security.SaslRpcServer.SaslGssCallbackHandler -->
  36375. <!-- start class org.apache.hadoop.security.SaslRpcServer.SaslStatus -->
  36376. <class name="SaslRpcServer.SaslStatus" extends="java.lang.Enum"
  36377. abstract="false"
  36378. static="true" final="true" visibility="public"
  36379. deprecated="not deprecated">
  36380. <method name="values" return="org.apache.hadoop.security.SaslRpcServer.SaslStatus[]"
  36381. abstract="false" native="false" synchronized="false"
  36382. static="true" final="false" visibility="public"
  36383. deprecated="not deprecated">
  36384. </method>
  36385. <method name="valueOf" return="org.apache.hadoop.security.SaslRpcServer.SaslStatus"
  36386. abstract="false" native="false" synchronized="false"
  36387. static="true" final="false" visibility="public"
  36388. deprecated="not deprecated">
  36389. <param name="name" type="java.lang.String"/>
  36390. </method>
  36391. <field name="SUCCESS" type="org.apache.hadoop.security.SaslRpcServer.SaslStatus"
  36392. transient="false" volatile="false"
  36393. static="true" final="true" visibility="public"
  36394. deprecated="not deprecated">
  36395. </field>
  36396. <field name="ERROR" type="org.apache.hadoop.security.SaslRpcServer.SaslStatus"
  36397. transient="false" volatile="false"
  36398. static="true" final="true" visibility="public"
  36399. deprecated="not deprecated">
  36400. </field>
  36401. <field name="state" type="int"
  36402. transient="false" volatile="false"
  36403. static="false" final="true" visibility="public"
  36404. deprecated="not deprecated">
  36405. </field>
  36406. </class>
  36407. <!-- end class org.apache.hadoop.security.SaslRpcServer.SaslStatus -->
  36408. <!-- start class org.apache.hadoop.security.SecurityUtil -->
  36409. <class name="SecurityUtil" extends="java.lang.Object"
  36410. abstract="false"
  36411. static="false" final="false" visibility="public"
  36412. deprecated="not deprecated">
  36413. <constructor name="SecurityUtil"
  36414. static="false" final="false" visibility="public"
  36415. deprecated="not deprecated">
  36416. </constructor>
  36417. <method name="isOriginalTGT" return="boolean"
  36418. abstract="false" native="false" synchronized="false"
  36419. static="true" final="false" visibility="protected"
  36420. deprecated="not deprecated">
  36421. <param name="name" type="java.lang.String"/>
  36422. </method>
  36423. <method name="fetchServiceTicket"
  36424. abstract="false" native="false" synchronized="false"
  36425. static="true" final="false" visibility="public"
  36426. deprecated="not deprecated">
  36427. <param name="remoteHost" type="java.net.URL"/>
  36428. <exception name="IOException" type="java.io.IOException"/>
  36429. <doc>
  36430. <![CDATA[Explicitly pull the service ticket for the specified host. This solves a
  36431. problem with Java's Kerberos SSL problem where the client cannot
  36432. authenticate against a cross-realm service. It is necessary for clients
  36433. making kerberized https requests to call this method on the target URL
  36434. to ensure that in a cross-realm environment the remote host will be
  36435. successfully authenticated.
  36436. This method is internal to Hadoop and should not be used by other
  36437. applications. This method should not be considered stable or open:
  36438. it will be removed when the Java behavior is changed.
  36439. @param remoteHost Target URL the krb-https client will access
  36440. @throws IOException if a service ticket is not available]]>
  36441. </doc>
  36442. </method>
  36443. <method name="getServerPrincipal" return="java.lang.String"
  36444. abstract="false" native="false" synchronized="false"
  36445. static="true" final="false" visibility="public"
  36446. deprecated="not deprecated">
  36447. <param name="principalConfig" type="java.lang.String"/>
  36448. <param name="hostname" type="java.lang.String"/>
  36449. <exception name="IOException" type="java.io.IOException"/>
  36450. <doc>
  36451. <![CDATA[Convert Kerberos principal name pattern to valid Kerberos principal
  36452. names. It replaces hostname pattern with hostname, which should be
  36453. fully-qualified domain name. If hostname is null or "0.0.0.0", it uses
  36454. dynamically looked-up fqdn of the current host instead.
  36455. @param principalConfig
  36456. the Kerberos principal name conf value to convert
  36457. @param hostname
  36458. the fully-qualified domain name used for substitution
  36459. @return converted Kerberos principal name
  36460. @throws IOException if the service ticket cannot be retrieved]]>
  36461. </doc>
  36462. </method>
  36463. <method name="getServerPrincipal" return="java.lang.String"
  36464. abstract="false" native="false" synchronized="false"
  36465. static="true" final="false" visibility="public"
  36466. deprecated="not deprecated">
  36467. <param name="principalConfig" type="java.lang.String"/>
  36468. <param name="addr" type="java.net.InetAddress"/>
  36469. <exception name="IOException" type="java.io.IOException"/>
  36470. <doc>
  36471. <![CDATA[Convert Kerberos principal name pattern to valid Kerberos principal names.
  36472. This method is similar to {@link #getServerPrincipal(String, String)},
  36473. except 1) the reverse DNS lookup from addr to hostname is done only when
  36474. necessary, 2) param addr can't be null (no default behavior of using local
  36475. hostname when addr is null).
  36476. @param principalConfig
  36477. Kerberos principal name pattern to convert
  36478. @param addr
  36479. InetAddress of the host used for substitution
  36480. @return converted Kerberos principal name
  36481. @throws IOException if the client address cannot be determined]]>
  36482. </doc>
  36483. </method>
  36484. <method name="getLocalHostName" return="java.lang.String"
  36485. abstract="false" native="false" synchronized="false"
  36486. static="true" final="false" visibility="public"
  36487. deprecated="not deprecated">
  36488. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  36489. <doc>
  36490. <![CDATA[Get the fqdn for the current host.
  36491. @return fqdn of the current host.
  36492. @throws UnknownHostException
  36493. if no IP address for the local host could be found.]]>
  36494. </doc>
  36495. </method>
  36496. <method name="login"
  36497. abstract="false" native="false" synchronized="false"
  36498. static="true" final="false" visibility="public"
  36499. deprecated="not deprecated">
  36500. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  36501. <param name="keytabFileKey" type="java.lang.String"/>
  36502. <param name="userNameKey" type="java.lang.String"/>
  36503. <exception name="IOException" type="java.io.IOException"/>
  36504. <doc>
  36505. <![CDATA[If a keytab has been provided, login as that user. Substitute $host in
  36506. user's Kerberos principal name with a dynamically looked-up fully-qualified
  36507. domain name of the current host.
  36508. @param conf
  36509. conf to use
  36510. @param keytabFileKey
  36511. the key to look for keytab file in conf
  36512. @param userNameKey
  36513. the key to look for user's Kerberos principal name in conf
  36514. @throws IOException if the client address cannot be determined]]>
  36515. </doc>
  36516. </method>
  36517. <method name="login"
  36518. abstract="false" native="false" synchronized="false"
  36519. static="true" final="false" visibility="public"
  36520. deprecated="not deprecated">
  36521. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  36522. <param name="keytabFileKey" type="java.lang.String"/>
  36523. <param name="userNameKey" type="java.lang.String"/>
  36524. <param name="hostname" type="java.lang.String"/>
  36525. <exception name="IOException" type="java.io.IOException"/>
  36526. <doc>
  36527. <![CDATA[If a keytab has been provided, login as that user. Substitute $host in
  36528. user's Kerberos principal name with hostname.
  36529. @param conf
  36530. conf to use
  36531. @param keytabFileKey
  36532. the key to look for keytab file in conf
  36533. @param userNameKey
  36534. the key to look for user's Kerberos principal name in conf
  36535. @param hostname
  36536. hostname to use for substitution
  36537. @throws IOException if login fails]]>
  36538. </doc>
  36539. </method>
  36540. <method name="getTokenServiceAddr" return="java.net.InetSocketAddress"
  36541. abstract="false" native="false" synchronized="false"
  36542. static="true" final="false" visibility="public"
  36543. deprecated="not deprecated">
  36544. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  36545. <doc>
  36546. <![CDATA[Decode the given token's service field into an InetAddress
  36547. @param token from which to obtain the service
  36548. @return InetAddress for the service]]>
  36549. </doc>
  36550. </method>
  36551. <method name="setTokenService"
  36552. abstract="false" native="false" synchronized="false"
  36553. static="true" final="false" visibility="public"
  36554. deprecated="not deprecated">
  36555. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  36556. <param name="addr" type="java.net.InetSocketAddress"/>
  36557. <doc>
  36558. <![CDATA[Set the given token's service to the format expected by the RPC client
  36559. @param token a delegation token
  36560. @param addr the socket for the rpc connection]]>
  36561. </doc>
  36562. </method>
  36563. <method name="buildTokenService" return="org.apache.hadoop.io.Text"
  36564. abstract="false" native="false" synchronized="false"
  36565. static="true" final="false" visibility="public"
  36566. deprecated="not deprecated">
  36567. <param name="addr" type="java.net.InetSocketAddress"/>
  36568. <doc>
  36569. <![CDATA[Construct the service key for a token
  36570. @param addr InetSocketAddress of remote connection with a token
  36571. @return "ip:port" or "host:port" depending on the value of
  36572. hadoop.security.token.service.use_ip]]>
  36573. </doc>
  36574. </method>
  36575. <method name="buildDTServiceName" return="java.lang.String"
  36576. abstract="false" native="false" synchronized="false"
  36577. static="true" final="false" visibility="public"
  36578. deprecated="not deprecated">
  36579. <param name="uri" type="java.net.URI"/>
  36580. <param name="defPort" type="int"/>
  36581. <doc>
  36582. <![CDATA[create the service name for a Delegation token
  36583. @param uri of the service
  36584. @param defPort is used if the uri lacks a port
  36585. @return the token service, or null if no authority
  36586. @see #buildTokenService(InetSocketAddress)]]>
  36587. </doc>
  36588. </method>
  36589. <method name="getAdminAcls" return="org.apache.hadoop.security.authorize.AccessControlList"
  36590. abstract="false" native="false" synchronized="false"
  36591. static="true" final="false" visibility="public"
  36592. deprecated="not deprecated">
  36593. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  36594. <param name="configKey" type="java.lang.String"/>
  36595. <doc>
  36596. <![CDATA[Get the ACL object representing the cluster administrators
  36597. The user who starts the daemon is automatically added as an admin
  36598. @param conf
  36599. @param configKey the key that holds the ACL string in its value
  36600. @return AccessControlList instance]]>
  36601. </doc>
  36602. </method>
  36603. <method name="getHostFromPrincipal" return="java.lang.String"
  36604. abstract="false" native="false" synchronized="false"
  36605. static="true" final="false" visibility="public"
  36606. deprecated="not deprecated">
  36607. <param name="principalName" type="java.lang.String"/>
  36608. <doc>
  36609. <![CDATA[Get the host name from the principal name of format <service>/host@realm.
  36610. @param principalName principal name of format as described above
  36611. @return host name if the the string conforms to the above format, else null]]>
  36612. </doc>
  36613. </method>
  36614. <method name="useKsslAuth" return="boolean"
  36615. abstract="false" native="false" synchronized="false"
  36616. static="true" final="false" visibility="public"
  36617. deprecated="not deprecated">
  36618. <doc>
  36619. <![CDATA[@return true if we should use KSSL to authenticate NN HTTP endpoints,
  36620. false to use SPNEGO or if security is disabled.]]>
  36621. </doc>
  36622. </method>
  36623. <method name="openSecureHttpConnection" return="java.net.URLConnection"
  36624. abstract="false" native="false" synchronized="false"
  36625. static="true" final="false" visibility="public"
  36626. deprecated="not deprecated">
  36627. <param name="url" type="java.net.URL"/>
  36628. <exception name="IOException" type="java.io.IOException"/>
  36629. <doc>
  36630. <![CDATA[Open a (if need be) secure connection to a URL in a secure environment
  36631. that is using SPNEGO or KSSL to authenticate its URLs. All Namenode and
  36632. Secondary Namenode URLs that are protected via SPNEGO or KSSL should be
  36633. accessed via this method.
  36634. @param url to authenticate via SPNEGO.
  36635. @return A connection that has been authenticated via SPNEGO
  36636. @throws IOException If unable to authenticate via SPNEGO]]>
  36637. </doc>
  36638. </method>
  36639. <method name="getByName" return="java.net.InetAddress"
  36640. abstract="false" native="false" synchronized="false"
  36641. static="true" final="false" visibility="public"
  36642. deprecated="not deprecated">
  36643. <param name="hostname" type="java.lang.String"/>
  36644. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  36645. <doc>
  36646. <![CDATA[Resolves a host subject to the security requirements determined by
  36647. hadoop.security.token.service.use_ip.
  36648. @param hostname host or ip to resolve
  36649. @return a resolved host
  36650. @throws UnknownHostException if the host doesn't exist]]>
  36651. </doc>
  36652. </method>
  36653. <field name="LOG" type="org.apache.commons.logging.Log"
  36654. transient="false" volatile="false"
  36655. static="true" final="true" visibility="public"
  36656. deprecated="not deprecated">
  36657. </field>
  36658. <field name="HOSTNAME_PATTERN" type="java.lang.String"
  36659. transient="false" volatile="false"
  36660. static="true" final="true" visibility="public"
  36661. deprecated="not deprecated">
  36662. </field>
  36663. </class>
  36664. <!-- end class org.apache.hadoop.security.SecurityUtil -->
  36665. <!-- start class org.apache.hadoop.security.SecurityUtil.QualifiedHostResolver -->
  36666. <class name="SecurityUtil.QualifiedHostResolver" extends="java.lang.Object"
  36667. abstract="false"
  36668. static="true" final="false" visibility="protected"
  36669. deprecated="not deprecated">
  36670. <implements name="org.apache.hadoop.security.SecurityUtil.HostResolver"/>
  36671. <constructor name="SecurityUtil.QualifiedHostResolver"
  36672. static="false" final="false" visibility="protected"
  36673. deprecated="not deprecated">
  36674. </constructor>
  36675. <method name="getByName" return="java.net.InetAddress"
  36676. abstract="false" native="false" synchronized="false"
  36677. static="false" final="false" visibility="public"
  36678. deprecated="not deprecated">
  36679. <param name="host" type="java.lang.String"/>
  36680. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  36681. <doc>
  36682. <![CDATA[Create an InetAddress with a fully qualified hostname of the given
  36683. hostname. InetAddress does not qualify an incomplete hostname that
  36684. is resolved via the domain search list.
  36685. {@link InetAddress#getCanonicalHostName()} will fully qualify the
  36686. hostname, but it always return the A record whereas the given hostname
  36687. may be a CNAME.
  36688. @param host a hostname or ip address
  36689. @return InetAddress with the fully qualified hostname or ip
  36690. @throws UnknownHostException if host does not exist]]>
  36691. </doc>
  36692. </method>
  36693. <doc>
  36694. <![CDATA[This an alternate resolver with important properties that the standard
  36695. java resolver lacks:
  36696. 1) The hostname is fully qualified. This avoids security issues if not
  36697. all hosts in the cluster do not share the same search domains. It
  36698. also prevents other hosts from performing unnecessary dns searches.
  36699. In contrast, InetAddress simply returns the host as given.
  36700. 2) The InetAddress is instantiated with an exact host and IP to prevent
  36701. further unnecessary lookups. InetAddress may perform an unnecessary
  36702. reverse lookup for an IP.
  36703. 3) A call to getHostName() will always return the qualified hostname, or
  36704. more importantly, the IP if instantiated with an IP. This avoids
  36705. unnecessary dns timeouts if the host is not resolvable.
  36706. 4) Point 3 also ensures that if the host is re-resolved, ex. during a
  36707. connection re-attempt, that a reverse lookup to host and forward
  36708. lookup to IP is not performed since the reverse/forward mappings may
  36709. not always return the same IP. If the client initiated a connection
  36710. with an IP, then that IP is all that should ever be contacted.
  36711. NOTE: this resolver is only used if:
  36712. hadoop.security.token.service.use_ip=false]]>
  36713. </doc>
  36714. </class>
  36715. <!-- end class org.apache.hadoop.security.SecurityUtil.QualifiedHostResolver -->
  36716. <!-- start class org.apache.hadoop.security.ShellBasedUnixGroupsMapping -->
  36717. <class name="ShellBasedUnixGroupsMapping" extends="java.lang.Object"
  36718. abstract="false"
  36719. static="false" final="false" visibility="public"
  36720. deprecated="not deprecated">
  36721. <implements name="org.apache.hadoop.security.GroupMappingServiceProvider"/>
  36722. <constructor name="ShellBasedUnixGroupsMapping"
  36723. static="false" final="false" visibility="public"
  36724. deprecated="not deprecated">
  36725. </constructor>
  36726. <method name="getGroups" return="java.util.List"
  36727. abstract="false" native="false" synchronized="false"
  36728. static="false" final="false" visibility="public"
  36729. deprecated="not deprecated">
  36730. <param name="user" type="java.lang.String"/>
  36731. <exception name="IOException" type="java.io.IOException"/>
  36732. </method>
  36733. <method name="cacheGroupsRefresh"
  36734. abstract="false" native="false" synchronized="false"
  36735. static="false" final="false" visibility="public"
  36736. deprecated="not deprecated">
  36737. <exception name="IOException" type="java.io.IOException"/>
  36738. </method>
  36739. <method name="cacheGroupsAdd"
  36740. abstract="false" native="false" synchronized="false"
  36741. static="false" final="false" visibility="public"
  36742. deprecated="not deprecated">
  36743. <param name="groups" type="java.util.List"/>
  36744. <exception name="IOException" type="java.io.IOException"/>
  36745. </method>
  36746. <doc>
  36747. <![CDATA[A simple shell-based implementation of {@link GroupMappingServiceProvider}
  36748. that exec's the <code>groups</code> shell command to fetch the group
  36749. memberships of a given user.]]>
  36750. </doc>
  36751. </class>
  36752. <!-- end class org.apache.hadoop.security.ShellBasedUnixGroupsMapping -->
  36753. <!-- start class org.apache.hadoop.security.ShellBasedUnixGroupsNetgroupMapping -->
  36754. <class name="ShellBasedUnixGroupsNetgroupMapping" extends="org.apache.hadoop.security.ShellBasedUnixGroupsMapping"
  36755. abstract="false"
  36756. static="false" final="false" visibility="public"
  36757. deprecated="not deprecated">
  36758. <constructor name="ShellBasedUnixGroupsNetgroupMapping"
  36759. static="false" final="false" visibility="public"
  36760. deprecated="not deprecated">
  36761. </constructor>
  36762. <method name="getGroups" return="java.util.List"
  36763. abstract="false" native="false" synchronized="false"
  36764. static="false" final="false" visibility="public"
  36765. deprecated="not deprecated">
  36766. <param name="user" type="java.lang.String"/>
  36767. <exception name="IOException" type="java.io.IOException"/>
  36768. </method>
  36769. <method name="cacheGroupsRefresh"
  36770. abstract="false" native="false" synchronized="false"
  36771. static="false" final="false" visibility="public"
  36772. deprecated="not deprecated">
  36773. <exception name="IOException" type="java.io.IOException"/>
  36774. </method>
  36775. <method name="cacheGroupsAdd"
  36776. abstract="false" native="false" synchronized="false"
  36777. static="false" final="false" visibility="public"
  36778. deprecated="not deprecated">
  36779. <param name="groups" type="java.util.List"/>
  36780. <exception name="IOException" type="java.io.IOException"/>
  36781. </method>
  36782. <method name="cacheNetgroup"
  36783. abstract="false" native="false" synchronized="false"
  36784. static="false" final="false" visibility="protected"
  36785. deprecated="not deprecated">
  36786. <param name="group" type="java.lang.String"/>
  36787. <exception name="IOException" type="java.io.IOException"/>
  36788. </method>
  36789. <method name="getNetgroups"
  36790. abstract="false" native="false" synchronized="false"
  36791. static="false" final="false" visibility="protected"
  36792. deprecated="not deprecated">
  36793. <param name="user" type="java.lang.String"/>
  36794. <param name="groups" type="java.util.List"/>
  36795. <exception name="IOException" type="java.io.IOException"/>
  36796. </method>
  36797. <method name="execShellGetUnixGroups" return="java.lang.String"
  36798. abstract="false" native="false" synchronized="false"
  36799. static="false" final="false" visibility="protected"
  36800. deprecated="not deprecated">
  36801. <param name="user" type="java.lang.String"/>
  36802. <exception name="IOException" type="java.io.IOException"/>
  36803. </method>
  36804. <method name="execShellGetUserForNetgroup" return="java.lang.String"
  36805. abstract="false" native="false" synchronized="false"
  36806. static="false" final="false" visibility="protected"
  36807. deprecated="not deprecated">
  36808. <param name="netgroup" type="java.lang.String"/>
  36809. <exception name="IOException" type="java.io.IOException"/>
  36810. </method>
  36811. <field name="netgroupToUsersMapUpdated" type="boolean"
  36812. transient="false" volatile="false"
  36813. static="true" final="false" visibility="protected"
  36814. deprecated="not deprecated">
  36815. </field>
  36816. <field name="netgroupToUsersMap" type="java.util.Map"
  36817. transient="false" volatile="false"
  36818. static="true" final="false" visibility="protected"
  36819. deprecated="not deprecated">
  36820. </field>
  36821. <field name="userToNetgroupsMap" type="java.util.Map"
  36822. transient="false" volatile="false"
  36823. static="true" final="false" visibility="protected"
  36824. deprecated="not deprecated">
  36825. </field>
  36826. <doc>
  36827. <![CDATA[A simple shell-based implementation of {@link GroupMappingServiceProvider}
  36828. that exec's the <code>groups</code> shell command to fetch the group
  36829. memberships of a given user.]]>
  36830. </doc>
  36831. </class>
  36832. <!-- end class org.apache.hadoop.security.ShellBasedUnixGroupsNetgroupMapping -->
  36833. <!-- start class org.apache.hadoop.security.UserGroupInformation -->
  36834. <class name="UserGroupInformation" extends="java.lang.Object"
  36835. abstract="false"
  36836. static="false" final="false" visibility="public"
  36837. deprecated="not deprecated">
  36838. <method name="setConfiguration"
  36839. abstract="false" native="false" synchronized="false"
  36840. static="true" final="false" visibility="public"
  36841. deprecated="not deprecated">
  36842. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  36843. <doc>
  36844. <![CDATA[Set the static configuration for UGI.
  36845. In particular, set the security authentication mechanism and the
  36846. group look up service.
  36847. @param conf the configuration to use]]>
  36848. </doc>
  36849. </method>
  36850. <method name="isSecurityEnabled" return="boolean"
  36851. abstract="false" native="false" synchronized="false"
  36852. static="true" final="false" visibility="public"
  36853. deprecated="not deprecated">
  36854. <doc>
  36855. <![CDATA[Determine if UserGroupInformation is using Kerberos to determine
  36856. user identities or is relying on simple authentication
  36857. @return true if UGI is working in a secure environment]]>
  36858. </doc>
  36859. </method>
  36860. <method name="hasKerberosCredentials" return="boolean"
  36861. abstract="false" native="false" synchronized="false"
  36862. static="false" final="false" visibility="public"
  36863. deprecated="not deprecated">
  36864. <doc>
  36865. <![CDATA[checks if logged in using kerberos
  36866. @return true if the subject logged via keytab or has a Kerberos TGT]]>
  36867. </doc>
  36868. </method>
  36869. <method name="getCurrentUser" return="org.apache.hadoop.security.UserGroupInformation"
  36870. abstract="false" native="false" synchronized="true"
  36871. static="true" final="false" visibility="public"
  36872. deprecated="not deprecated">
  36873. <exception name="IOException" type="java.io.IOException"/>
  36874. <doc>
  36875. <![CDATA[Return the current user, including any doAs in the current stack.
  36876. @return the current user
  36877. @throws IOException if login fails]]>
  36878. </doc>
  36879. </method>
  36880. <method name="getLoginUser" return="org.apache.hadoop.security.UserGroupInformation"
  36881. abstract="false" native="false" synchronized="true"
  36882. static="true" final="false" visibility="public"
  36883. deprecated="not deprecated">
  36884. <exception name="IOException" type="java.io.IOException"/>
  36885. <doc>
  36886. <![CDATA[Get the currently logged in user.
  36887. @return the logged in user
  36888. @throws IOException if login fails]]>
  36889. </doc>
  36890. </method>
  36891. <method name="isFromKeytab" return="boolean"
  36892. abstract="false" native="false" synchronized="false"
  36893. static="false" final="false" visibility="public"
  36894. deprecated="not deprecated">
  36895. <doc>
  36896. <![CDATA[Is this user logged in from a keytab file?
  36897. @return true if the credentials are from a keytab file.]]>
  36898. </doc>
  36899. </method>
  36900. <method name="loginUserFromKeytab"
  36901. abstract="false" native="false" synchronized="true"
  36902. static="true" final="false" visibility="public"
  36903. deprecated="not deprecated">
  36904. <param name="user" type="java.lang.String"/>
  36905. <param name="path" type="java.lang.String"/>
  36906. <exception name="IOException" type="java.io.IOException"/>
  36907. <doc>
  36908. <![CDATA[Log a user in from a keytab file. Loads a user identity from a keytab
  36909. file and logs them in. They become the currently logged-in user.
  36910. @param user the principal name to load from the keytab
  36911. @param path the path to the keytab file
  36912. @throws IOException if the keytab file can't be read]]>
  36913. </doc>
  36914. </method>
  36915. <method name="reloginFromTicketCache"
  36916. abstract="false" native="false" synchronized="true"
  36917. static="false" final="false" visibility="public"
  36918. deprecated="not deprecated">
  36919. <exception name="IOException" type="java.io.IOException"/>
  36920. <doc>
  36921. <![CDATA[Re-Login a user in from the ticket cache. This
  36922. method assumes that login had happened already.
  36923. The Subject field of this UserGroupInformation object is updated to have
  36924. the new credentials.
  36925. @throws IOException on a failure]]>
  36926. </doc>
  36927. </method>
  36928. <method name="loginUserFromKeytabAndReturnUGI" return="org.apache.hadoop.security.UserGroupInformation"
  36929. abstract="false" native="false" synchronized="true"
  36930. static="true" final="false" visibility="public"
  36931. deprecated="not deprecated">
  36932. <param name="user" type="java.lang.String"/>
  36933. <param name="path" type="java.lang.String"/>
  36934. <exception name="IOException" type="java.io.IOException"/>
  36935. <doc>
  36936. <![CDATA[Log a user in from a keytab file. Loads a user identity from a keytab
  36937. file and login them in. This new user does not affect the currently
  36938. logged-in user.
  36939. @param user the principal name to load from the keytab
  36940. @param path the path to the keytab file
  36941. @throws IOException if the keytab file can't be read]]>
  36942. </doc>
  36943. </method>
  36944. <method name="checkTGTAndReloginFromKeytab"
  36945. abstract="false" native="false" synchronized="true"
  36946. static="false" final="false" visibility="public"
  36947. deprecated="not deprecated">
  36948. <exception name="IOException" type="java.io.IOException"/>
  36949. <doc>
  36950. <![CDATA[Re-login a user from keytab if TGT is expired or is close to expiry.
  36951. @throws IOException]]>
  36952. </doc>
  36953. </method>
  36954. <method name="reloginFromKeytab"
  36955. abstract="false" native="false" synchronized="true"
  36956. static="false" final="false" visibility="public"
  36957. deprecated="not deprecated">
  36958. <exception name="IOException" type="java.io.IOException"/>
  36959. <doc>
  36960. <![CDATA[Re-Login a user in from a keytab file. Loads a user identity from a keytab
  36961. file and logs them in. They become the currently logged-in user. This
  36962. method assumes that {@link #loginUserFromKeytab(String, String)} had
  36963. happened already.
  36964. The Subject field of this UserGroupInformation object is updated to have
  36965. the new credentials.
  36966. @throws IOException on a failure]]>
  36967. </doc>
  36968. </method>
  36969. <method name="isLoginKeytabBased" return="boolean"
  36970. abstract="false" native="false" synchronized="true"
  36971. static="true" final="false" visibility="public"
  36972. deprecated="not deprecated">
  36973. <exception name="IOException" type="java.io.IOException"/>
  36974. <doc>
  36975. <![CDATA[Did the login happen via keytab
  36976. @return true or false]]>
  36977. </doc>
  36978. </method>
  36979. <method name="createRemoteUser" return="org.apache.hadoop.security.UserGroupInformation"
  36980. abstract="false" native="false" synchronized="false"
  36981. static="true" final="false" visibility="public"
  36982. deprecated="not deprecated">
  36983. <param name="user" type="java.lang.String"/>
  36984. <doc>
  36985. <![CDATA[Create a user from a login name. It is intended to be used for remote
  36986. users in RPC, since it won't have any credentials.
  36987. @param user the full user principal name, must not be empty or null
  36988. @return the UserGroupInformation for the remote user.]]>
  36989. </doc>
  36990. </method>
  36991. <method name="createProxyUser" return="org.apache.hadoop.security.UserGroupInformation"
  36992. abstract="false" native="false" synchronized="false"
  36993. static="true" final="false" visibility="public"
  36994. deprecated="not deprecated">
  36995. <param name="user" type="java.lang.String"/>
  36996. <param name="realUser" type="org.apache.hadoop.security.UserGroupInformation"/>
  36997. <doc>
  36998. <![CDATA[Create a proxy user using username of the effective user and the ugi of the
  36999. real user.
  37000. @param user
  37001. @param realUser
  37002. @return proxyUser ugi]]>
  37003. </doc>
  37004. </method>
  37005. <method name="getRealUser" return="org.apache.hadoop.security.UserGroupInformation"
  37006. abstract="false" native="false" synchronized="false"
  37007. static="false" final="false" visibility="public"
  37008. deprecated="not deprecated">
  37009. <doc>
  37010. <![CDATA[get RealUser (vs. EffectiveUser)
  37011. @return realUser running over proxy user]]>
  37012. </doc>
  37013. </method>
  37014. <method name="createUserForTesting" return="org.apache.hadoop.security.UserGroupInformation"
  37015. abstract="false" native="false" synchronized="false"
  37016. static="true" final="false" visibility="public"
  37017. deprecated="not deprecated">
  37018. <param name="user" type="java.lang.String"/>
  37019. <param name="userGroups" type="java.lang.String[]"/>
  37020. <doc>
  37021. <![CDATA[Create a UGI for testing HDFS and MapReduce
  37022. @param user the full user principal name
  37023. @param userGroups the names of the groups that the user belongs to
  37024. @return a fake user for running unit tests]]>
  37025. </doc>
  37026. </method>
  37027. <method name="createProxyUserForTesting" return="org.apache.hadoop.security.UserGroupInformation"
  37028. abstract="false" native="false" synchronized="false"
  37029. static="true" final="false" visibility="public"
  37030. deprecated="not deprecated">
  37031. <param name="user" type="java.lang.String"/>
  37032. <param name="realUser" type="org.apache.hadoop.security.UserGroupInformation"/>
  37033. <param name="userGroups" type="java.lang.String[]"/>
  37034. <doc>
  37035. <![CDATA[Create a proxy user UGI for testing HDFS and MapReduce
  37036. @param user
  37037. the full user principal name for effective user
  37038. @param realUser
  37039. UGI of the real user
  37040. @param userGroups
  37041. the names of the groups that the user belongs to
  37042. @return a fake user for running unit tests]]>
  37043. </doc>
  37044. </method>
  37045. <method name="getShortUserName" return="java.lang.String"
  37046. abstract="false" native="false" synchronized="false"
  37047. static="false" final="false" visibility="public"
  37048. deprecated="not deprecated">
  37049. <doc>
  37050. <![CDATA[Get the user's login name.
  37051. @return the user's name up to the first '/' or '@'.]]>
  37052. </doc>
  37053. </method>
  37054. <method name="getUserName" return="java.lang.String"
  37055. abstract="false" native="false" synchronized="false"
  37056. static="false" final="false" visibility="public"
  37057. deprecated="not deprecated">
  37058. <doc>
  37059. <![CDATA[Get the user's full principal name.
  37060. @return the user's full principal name.]]>
  37061. </doc>
  37062. </method>
  37063. <method name="addTokenIdentifier" return="boolean"
  37064. abstract="false" native="false" synchronized="true"
  37065. static="false" final="false" visibility="public"
  37066. deprecated="not deprecated">
  37067. <param name="tokenId" type="org.apache.hadoop.security.token.TokenIdentifier"/>
  37068. <doc>
  37069. <![CDATA[Add a TokenIdentifier to this UGI. The TokenIdentifier has typically been
  37070. authenticated by the RPC layer as belonging to the user represented by this
  37071. UGI.
  37072. @param tokenId
  37073. tokenIdentifier to be added
  37074. @return true on successful add of new tokenIdentifier]]>
  37075. </doc>
  37076. </method>
  37077. <method name="getTokenIdentifiers" return="java.util.Set"
  37078. abstract="false" native="false" synchronized="true"
  37079. static="false" final="false" visibility="public"
  37080. deprecated="not deprecated">
  37081. <doc>
  37082. <![CDATA[Get the set of TokenIdentifiers belonging to this UGI
  37083. @return the set of TokenIdentifiers belonging to this UGI]]>
  37084. </doc>
  37085. </method>
  37086. <method name="addToken" return="boolean"
  37087. abstract="false" native="false" synchronized="true"
  37088. static="false" final="false" visibility="public"
  37089. deprecated="not deprecated">
  37090. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  37091. <doc>
  37092. <![CDATA[Add a token to this UGI
  37093. @param token Token to be added
  37094. @return true on successful add of new token]]>
  37095. </doc>
  37096. </method>
  37097. <method name="getTokens" return="java.util.Collection"
  37098. abstract="false" native="false" synchronized="true"
  37099. static="false" final="false" visibility="public"
  37100. deprecated="not deprecated">
  37101. <doc>
  37102. <![CDATA[Obtain the collection of tokens associated with this user.
  37103. @return an unmodifiable collection of tokens associated with user]]>
  37104. </doc>
  37105. </method>
  37106. <method name="getGroupNames" return="java.lang.String[]"
  37107. abstract="false" native="false" synchronized="true"
  37108. static="false" final="false" visibility="public"
  37109. deprecated="not deprecated">
  37110. <doc>
  37111. <![CDATA[Get the group names for this user.
  37112. @return the list of users with the primary group first. If the command
  37113. fails, it returns an empty list.]]>
  37114. </doc>
  37115. </method>
  37116. <method name="toString" return="java.lang.String"
  37117. abstract="false" native="false" synchronized="false"
  37118. static="false" final="false" visibility="public"
  37119. deprecated="not deprecated">
  37120. <doc>
  37121. <![CDATA[Return the username.]]>
  37122. </doc>
  37123. </method>
  37124. <method name="setAuthenticationMethod"
  37125. abstract="false" native="false" synchronized="true"
  37126. static="false" final="false" visibility="public"
  37127. deprecated="not deprecated">
  37128. <param name="authMethod" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"/>
  37129. <doc>
  37130. <![CDATA[Sets the authentication method in the subject
  37131. @param authMethod]]>
  37132. </doc>
  37133. </method>
  37134. <method name="getAuthenticationMethod" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  37135. abstract="false" native="false" synchronized="true"
  37136. static="false" final="false" visibility="public"
  37137. deprecated="not deprecated">
  37138. <doc>
  37139. <![CDATA[Get the authentication method from the subject
  37140. @return AuthenticationMethod in the subject, null if not present.]]>
  37141. </doc>
  37142. </method>
  37143. <method name="equals" return="boolean"
  37144. abstract="false" native="false" synchronized="false"
  37145. static="false" final="false" visibility="public"
  37146. deprecated="not deprecated">
  37147. <param name="o" type="java.lang.Object"/>
  37148. <doc>
  37149. <![CDATA[Compare the subjects to see if they are equal to each other.]]>
  37150. </doc>
  37151. </method>
  37152. <method name="hashCode" return="int"
  37153. abstract="false" native="false" synchronized="false"
  37154. static="false" final="false" visibility="public"
  37155. deprecated="not deprecated">
  37156. <doc>
  37157. <![CDATA[Return the hash of the subject.]]>
  37158. </doc>
  37159. </method>
  37160. <method name="getSubject" return="javax.security.auth.Subject"
  37161. abstract="false" native="false" synchronized="false"
  37162. static="false" final="false" visibility="protected"
  37163. deprecated="not deprecated">
  37164. <doc>
  37165. <![CDATA[Get the underlying subject from this ugi.
  37166. @return the subject that represents this user.]]>
  37167. </doc>
  37168. </method>
  37169. <method name="doAs" return="java.lang.Object"
  37170. abstract="false" native="false" synchronized="false"
  37171. static="false" final="false" visibility="public"
  37172. deprecated="not deprecated">
  37173. <param name="action" type="java.security.PrivilegedAction"/>
  37174. <doc>
  37175. <![CDATA[Run the given action as the user.
  37176. @param <T> the return type of the run method
  37177. @param action the method to execute
  37178. @return the value from the run method]]>
  37179. </doc>
  37180. </method>
  37181. <method name="doAs" return="java.lang.Object"
  37182. abstract="false" native="false" synchronized="false"
  37183. static="false" final="false" visibility="public"
  37184. deprecated="not deprecated">
  37185. <param name="action" type="java.security.PrivilegedExceptionAction"/>
  37186. <exception name="IOException" type="java.io.IOException"/>
  37187. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  37188. <doc>
  37189. <![CDATA[Run the given action as the user, potentially throwing an exception.
  37190. @param <T> the return type of the run method
  37191. @param action the method to execute
  37192. @return the value from the run method
  37193. @throws IOException if the action throws an IOException
  37194. @throws Error if the action throws an Error
  37195. @throws RuntimeException if the action throws a RuntimeException
  37196. @throws InterruptedException if the action throws an InterruptedException
  37197. @throws UndeclaredThrowableException if the action throws something else]]>
  37198. </doc>
  37199. </method>
  37200. <method name="main"
  37201. abstract="false" native="false" synchronized="false"
  37202. static="true" final="false" visibility="public"
  37203. deprecated="not deprecated">
  37204. <param name="args" type="java.lang.String[]"/>
  37205. <exception name="Exception" type="java.lang.Exception"/>
  37206. <doc>
  37207. <![CDATA[A test method to print out the current user's UGI.
  37208. @param args if there are two arguments, read the user from the keytab
  37209. and print it out.
  37210. @throws Exception]]>
  37211. </doc>
  37212. </method>
  37213. <field name="HADOOP_TOKEN_FILE_LOCATION" type="java.lang.String"
  37214. transient="false" volatile="false"
  37215. static="true" final="true" visibility="public"
  37216. deprecated="not deprecated">
  37217. <doc>
  37218. <![CDATA[Environment variable pointing to the token cache file]]>
  37219. </doc>
  37220. </field>
  37221. <doc>
  37222. <![CDATA[User and group information for Hadoop.
  37223. This class wraps around a JAAS Subject and provides methods to determine the
  37224. user's username and groups. It supports both the Windows, Unix and Kerberos
  37225. login modules.]]>
  37226. </doc>
  37227. </class>
  37228. <!-- end class org.apache.hadoop.security.UserGroupInformation -->
  37229. <!-- start class org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod -->
  37230. <class name="UserGroupInformation.AuthenticationMethod" extends="java.lang.Enum"
  37231. abstract="false"
  37232. static="true" final="true" visibility="public"
  37233. deprecated="not deprecated">
  37234. <method name="values" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod[]"
  37235. abstract="false" native="false" synchronized="false"
  37236. static="true" final="false" visibility="public"
  37237. deprecated="not deprecated">
  37238. </method>
  37239. <method name="valueOf" return="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  37240. abstract="false" native="false" synchronized="false"
  37241. static="true" final="false" visibility="public"
  37242. deprecated="not deprecated">
  37243. <param name="name" type="java.lang.String"/>
  37244. </method>
  37245. <field name="SIMPLE" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  37246. transient="false" volatile="false"
  37247. static="true" final="true" visibility="public"
  37248. deprecated="not deprecated">
  37249. </field>
  37250. <field name="KERBEROS" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  37251. transient="false" volatile="false"
  37252. static="true" final="true" visibility="public"
  37253. deprecated="not deprecated">
  37254. </field>
  37255. <field name="TOKEN" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  37256. transient="false" volatile="false"
  37257. static="true" final="true" visibility="public"
  37258. deprecated="not deprecated">
  37259. </field>
  37260. <field name="CERTIFICATE" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  37261. transient="false" volatile="false"
  37262. static="true" final="true" visibility="public"
  37263. deprecated="not deprecated">
  37264. </field>
  37265. <field name="KERBEROS_SSL" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  37266. transient="false" volatile="false"
  37267. static="true" final="true" visibility="public"
  37268. deprecated="not deprecated">
  37269. </field>
  37270. <field name="PROXY" type="org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod"
  37271. transient="false" volatile="false"
  37272. static="true" final="true" visibility="public"
  37273. deprecated="not deprecated">
  37274. </field>
  37275. <doc>
  37276. <![CDATA[existing types of authentications' methods]]>
  37277. </doc>
  37278. </class>
  37279. <!-- end class org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod -->
  37280. <!-- start class org.apache.hadoop.security.UserGroupInformation.HadoopLoginModule -->
  37281. <class name="UserGroupInformation.HadoopLoginModule" extends="java.lang.Object"
  37282. abstract="false"
  37283. static="true" final="false" visibility="public"
  37284. deprecated="not deprecated">
  37285. <implements name="javax.security.auth.spi.LoginModule"/>
  37286. <constructor name="UserGroupInformation.HadoopLoginModule"
  37287. static="false" final="false" visibility="public"
  37288. deprecated="not deprecated">
  37289. </constructor>
  37290. <method name="abort" return="boolean"
  37291. abstract="false" native="false" synchronized="false"
  37292. static="false" final="false" visibility="public"
  37293. deprecated="not deprecated">
  37294. <exception name="LoginException" type="javax.security.auth.login.LoginException"/>
  37295. </method>
  37296. <method name="commit" return="boolean"
  37297. abstract="false" native="false" synchronized="false"
  37298. static="false" final="false" visibility="public"
  37299. deprecated="not deprecated">
  37300. <exception name="LoginException" type="javax.security.auth.login.LoginException"/>
  37301. </method>
  37302. <method name="initialize"
  37303. abstract="false" native="false" synchronized="false"
  37304. static="false" final="false" visibility="public"
  37305. deprecated="not deprecated">
  37306. <param name="subject" type="javax.security.auth.Subject"/>
  37307. <param name="callbackHandler" type="javax.security.auth.callback.CallbackHandler"/>
  37308. <param name="sharedState" type="java.util.Map"/>
  37309. <param name="options" type="java.util.Map"/>
  37310. </method>
  37311. <method name="login" return="boolean"
  37312. abstract="false" native="false" synchronized="false"
  37313. static="false" final="false" visibility="public"
  37314. deprecated="not deprecated">
  37315. <exception name="LoginException" type="javax.security.auth.login.LoginException"/>
  37316. </method>
  37317. <method name="logout" return="boolean"
  37318. abstract="false" native="false" synchronized="false"
  37319. static="false" final="false" visibility="public"
  37320. deprecated="not deprecated">
  37321. <exception name="LoginException" type="javax.security.auth.login.LoginException"/>
  37322. </method>
  37323. <doc>
  37324. <![CDATA[A login module that looks at the Kerberos, Unix, or Windows principal and
  37325. adds the corresponding UserName.]]>
  37326. </doc>
  37327. </class>
  37328. <!-- end class org.apache.hadoop.security.UserGroupInformation.HadoopLoginModule -->
  37329. </package>
  37330. <package name="org.apache.hadoop.security.authentication.client">
  37331. <!-- start class org.apache.hadoop.security.authentication.client.AuthenticatedURL -->
  37332. <class name="AuthenticatedURL" extends="java.lang.Object"
  37333. abstract="false"
  37334. static="false" final="false" visibility="public"
  37335. deprecated="not deprecated">
  37336. <constructor name="AuthenticatedURL"
  37337. static="false" final="false" visibility="public"
  37338. deprecated="not deprecated">
  37339. <doc>
  37340. <![CDATA[Creates an {@link AuthenticatedURL}.]]>
  37341. </doc>
  37342. </constructor>
  37343. <constructor name="AuthenticatedURL" type="org.apache.hadoop.security.authentication.client.Authenticator"
  37344. static="false" final="false" visibility="public"
  37345. deprecated="not deprecated">
  37346. <doc>
  37347. <![CDATA[Creates an <code>AuthenticatedURL</code>.
  37348. @param authenticator the {@link Authenticator} instance to use, if <code>null</code> a {@link
  37349. KerberosAuthenticator} is used.]]>
  37350. </doc>
  37351. </constructor>
  37352. <method name="setDefaultAuthenticator"
  37353. abstract="false" native="false" synchronized="false"
  37354. static="true" final="false" visibility="public"
  37355. deprecated="not deprecated">
  37356. <param name="authenticator" type="java.lang.Class"/>
  37357. <doc>
  37358. <![CDATA[Sets the default {@link Authenticator} class to use when an {@link AuthenticatedURL} instance
  37359. is created without specifying an authenticator.
  37360. @param authenticator the authenticator class to use as default.]]>
  37361. </doc>
  37362. </method>
  37363. <method name="getDefaultAuthenticator" return="java.lang.Class"
  37364. abstract="false" native="false" synchronized="false"
  37365. static="true" final="false" visibility="public"
  37366. deprecated="not deprecated">
  37367. <doc>
  37368. <![CDATA[Returns the default {@link Authenticator} class to use when an {@link AuthenticatedURL} instance
  37369. is created without specifying an authenticator.
  37370. @return the authenticator class to use as default.]]>
  37371. </doc>
  37372. </method>
  37373. <method name="openConnection" return="java.net.HttpURLConnection"
  37374. abstract="false" native="false" synchronized="false"
  37375. static="false" final="false" visibility="public"
  37376. deprecated="not deprecated">
  37377. <param name="url" type="java.net.URL"/>
  37378. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  37379. <exception name="IOException" type="java.io.IOException"/>
  37380. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  37381. <doc>
  37382. <![CDATA[Returns an authenticated {@link HttpURLConnection}.
  37383. @param url the URL to connect to. Only HTTP/S URLs are supported.
  37384. @param token the authentication token being used for the user.
  37385. @return an authenticated {@link HttpURLConnection}.
  37386. @throws IOException if an IO error occurred.
  37387. @throws AuthenticationException if an authentication exception occurred.]]>
  37388. </doc>
  37389. </method>
  37390. <method name="injectToken"
  37391. abstract="false" native="false" synchronized="false"
  37392. static="true" final="false" visibility="public"
  37393. deprecated="not deprecated">
  37394. <param name="conn" type="java.net.HttpURLConnection"/>
  37395. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  37396. <doc>
  37397. <![CDATA[Helper method that injects an authentication token to send with a connection.
  37398. @param conn connection to inject the authentication token into.
  37399. @param token authentication token to inject.]]>
  37400. </doc>
  37401. </method>
  37402. <method name="extractToken"
  37403. abstract="false" native="false" synchronized="false"
  37404. static="true" final="false" visibility="public"
  37405. deprecated="not deprecated">
  37406. <param name="conn" type="java.net.HttpURLConnection"/>
  37407. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  37408. <exception name="IOException" type="java.io.IOException"/>
  37409. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  37410. <doc>
  37411. <![CDATA[Helper method that extracts an authentication token received from a connection.
  37412. <p/>
  37413. This method is used by {@link Authenticator} implementations.
  37414. @param conn connection to extract the authentication token from.
  37415. @param token the authentication token.
  37416. @throws IOException if an IO error occurred.
  37417. @throws AuthenticationException if an authentication exception occurred.]]>
  37418. </doc>
  37419. </method>
  37420. <field name="AUTH_COOKIE" type="java.lang.String"
  37421. transient="false" volatile="false"
  37422. static="true" final="true" visibility="public"
  37423. deprecated="not deprecated">
  37424. <doc>
  37425. <![CDATA[Name of the HTTP cookie used for the authentication token between the client and the server.]]>
  37426. </doc>
  37427. </field>
  37428. <doc>
  37429. <![CDATA[The {@link AuthenticatedURL} class enables the use of the JDK {@link URL} class
  37430. against HTTP endpoints protected with the {@link AuthenticationFilter}.
  37431. <p/>
  37432. The authentication mechanisms supported by default are Hadoop Simple authentication
  37433. (also known as pseudo authentication) and Kerberos SPNEGO authentication.
  37434. <p/>
  37435. Additional authentication mechanisms can be supported via {@link Authenticator} implementations.
  37436. <p/>
  37437. The default {@link Authenticator} is the {@link KerberosAuthenticator} class which supports
  37438. automatic fallback from Kerberos SPNEGO to Hadoop Simple authentication.
  37439. <p/>
  37440. <code>AuthenticatedURL</code> instances are not thread-safe.
  37441. <p/>
  37442. The usage pattern of the {@link AuthenticatedURL} is:
  37443. <p/>
  37444. <pre>
  37445. // establishing an initial connection
  37446. URL url = new URL("http://foo:8080/bar");
  37447. AuthenticatedURL.Token token = new AuthenticatedURL.Token();
  37448. AuthenticatedURL aUrl = new AuthenticatedURL();
  37449. HttpURLConnection conn = new AuthenticatedURL(url, token).openConnection();
  37450. ....
  37451. // use the 'conn' instance
  37452. ....
  37453. // establishing a follow up connection using a token from the previous connection
  37454. HttpURLConnection conn = new AuthenticatedURL(url, token).openConnection();
  37455. ....
  37456. // use the 'conn' instance
  37457. ....
  37458. </pre>]]>
  37459. </doc>
  37460. </class>
  37461. <!-- end class org.apache.hadoop.security.authentication.client.AuthenticatedURL -->
  37462. <!-- start class org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token -->
  37463. <class name="AuthenticatedURL.Token" extends="java.lang.Object"
  37464. abstract="false"
  37465. static="true" final="false" visibility="public"
  37466. deprecated="not deprecated">
  37467. <constructor name="AuthenticatedURL.Token"
  37468. static="false" final="false" visibility="public"
  37469. deprecated="not deprecated">
  37470. <doc>
  37471. <![CDATA[Creates a token.]]>
  37472. </doc>
  37473. </constructor>
  37474. <constructor name="AuthenticatedURL.Token" type="java.lang.String"
  37475. static="false" final="false" visibility="public"
  37476. deprecated="not deprecated">
  37477. <doc>
  37478. <![CDATA[Creates a token using an existing string representation of the token.
  37479. @param tokenStr string representation of the tokenStr.]]>
  37480. </doc>
  37481. </constructor>
  37482. <method name="isSet" return="boolean"
  37483. abstract="false" native="false" synchronized="false"
  37484. static="false" final="false" visibility="public"
  37485. deprecated="not deprecated">
  37486. <doc>
  37487. <![CDATA[Returns if a token from the server has been set.
  37488. @return if a token from the server has been set.]]>
  37489. </doc>
  37490. </method>
  37491. <method name="toString" return="java.lang.String"
  37492. abstract="false" native="false" synchronized="false"
  37493. static="false" final="false" visibility="public"
  37494. deprecated="not deprecated">
  37495. <doc>
  37496. <![CDATA[Returns the string representation of the token.
  37497. @return the string representation of the token.]]>
  37498. </doc>
  37499. </method>
  37500. <method name="hashCode" return="int"
  37501. abstract="false" native="false" synchronized="false"
  37502. static="false" final="false" visibility="public"
  37503. deprecated="not deprecated">
  37504. <doc>
  37505. <![CDATA[Return the hashcode for the token.
  37506. @return the hashcode for the token.]]>
  37507. </doc>
  37508. </method>
  37509. <method name="equals" return="boolean"
  37510. abstract="false" native="false" synchronized="false"
  37511. static="false" final="false" visibility="public"
  37512. deprecated="not deprecated">
  37513. <param name="o" type="java.lang.Object"/>
  37514. <doc>
  37515. <![CDATA[Return if two token instances are equal.
  37516. @param o the other token instance.
  37517. @return if this instance and the other instance are equal.]]>
  37518. </doc>
  37519. </method>
  37520. <doc>
  37521. <![CDATA[Client side authentication token.]]>
  37522. </doc>
  37523. </class>
  37524. <!-- end class org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token -->
  37525. <!-- start class org.apache.hadoop.security.authentication.client.AuthenticationException -->
  37526. <class name="AuthenticationException" extends="java.lang.Exception"
  37527. abstract="false"
  37528. static="false" final="false" visibility="public"
  37529. deprecated="not deprecated">
  37530. <constructor name="AuthenticationException" type="java.lang.Throwable"
  37531. static="false" final="false" visibility="public"
  37532. deprecated="not deprecated">
  37533. <doc>
  37534. <![CDATA[Creates an {@link AuthenticationException}.
  37535. @param cause original exception.]]>
  37536. </doc>
  37537. </constructor>
  37538. <constructor name="AuthenticationException" type="java.lang.String"
  37539. static="false" final="false" visibility="public"
  37540. deprecated="not deprecated">
  37541. <doc>
  37542. <![CDATA[Creates an {@link AuthenticationException}.
  37543. @param msg exception message.]]>
  37544. </doc>
  37545. </constructor>
  37546. <constructor name="AuthenticationException" type="java.lang.String, java.lang.Throwable"
  37547. static="false" final="false" visibility="public"
  37548. deprecated="not deprecated">
  37549. <doc>
  37550. <![CDATA[Creates an {@link AuthenticationException}.
  37551. @param msg exception message.
  37552. @param cause original exception.]]>
  37553. </doc>
  37554. </constructor>
  37555. <doc>
  37556. <![CDATA[Exception thrown when an authentication error occurrs.]]>
  37557. </doc>
  37558. </class>
  37559. <!-- end class org.apache.hadoop.security.authentication.client.AuthenticationException -->
  37560. <!-- start interface org.apache.hadoop.security.authentication.client.Authenticator -->
  37561. <interface name="Authenticator" abstract="true"
  37562. static="false" final="false" visibility="public"
  37563. deprecated="not deprecated">
  37564. <method name="authenticate"
  37565. abstract="false" native="false" synchronized="false"
  37566. static="false" final="false" visibility="public"
  37567. deprecated="not deprecated">
  37568. <param name="url" type="java.net.URL"/>
  37569. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  37570. <exception name="IOException" type="java.io.IOException"/>
  37571. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  37572. <doc>
  37573. <![CDATA[Authenticates against a URL and returns a {@link AuthenticatedURL.Token} to be
  37574. used by subsequent requests.
  37575. @param url the URl to authenticate against.
  37576. @param token the authentication token being used for the user.
  37577. @throws IOException if an IO error occurred.
  37578. @throws AuthenticationException if an authentication error occurred.]]>
  37579. </doc>
  37580. </method>
  37581. <doc>
  37582. <![CDATA[Interface for client authentication mechanisms.
  37583. <p/>
  37584. Implementations are use-once instances, they don't need to be thread safe.]]>
  37585. </doc>
  37586. </interface>
  37587. <!-- end interface org.apache.hadoop.security.authentication.client.Authenticator -->
  37588. <!-- start class org.apache.hadoop.security.authentication.client.KerberosAuthenticator -->
  37589. <class name="KerberosAuthenticator" extends="java.lang.Object"
  37590. abstract="false"
  37591. static="false" final="false" visibility="public"
  37592. deprecated="not deprecated">
  37593. <implements name="org.apache.hadoop.security.authentication.client.Authenticator"/>
  37594. <constructor name="KerberosAuthenticator"
  37595. static="false" final="false" visibility="public"
  37596. deprecated="not deprecated">
  37597. </constructor>
  37598. <method name="authenticate"
  37599. abstract="false" native="false" synchronized="false"
  37600. static="false" final="false" visibility="public"
  37601. deprecated="not deprecated">
  37602. <param name="url" type="java.net.URL"/>
  37603. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  37604. <exception name="IOException" type="java.io.IOException"/>
  37605. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  37606. <doc>
  37607. <![CDATA[Performs SPNEGO authentication against the specified URL.
  37608. <p/>
  37609. If a token is given it does a NOP and returns the given token.
  37610. <p/>
  37611. If no token is given, it will perform the SPNEGO authentication sequence using an
  37612. HTTP <code>OPTIONS</code> request.
  37613. @param url the URl to authenticate against.
  37614. @param token the authentication token being used for the user.
  37615. @throws IOException if an IO error occurred.
  37616. @throws AuthenticationException if an authentication error occurred.]]>
  37617. </doc>
  37618. </method>
  37619. <method name="getFallBackAuthenticator" return="org.apache.hadoop.security.authentication.client.Authenticator"
  37620. abstract="false" native="false" synchronized="false"
  37621. static="false" final="false" visibility="protected"
  37622. deprecated="not deprecated">
  37623. <doc>
  37624. <![CDATA[If the specified URL does not support SPNEGO authentication, a fallback {@link Authenticator} will be used.
  37625. <p/>
  37626. This implementation returns a {@link PseudoAuthenticator}.
  37627. @return the fallback {@link Authenticator}.]]>
  37628. </doc>
  37629. </method>
  37630. <field name="WWW_AUTHENTICATE" type="java.lang.String"
  37631. transient="false" volatile="false"
  37632. static="true" final="true" visibility="public"
  37633. deprecated="not deprecated">
  37634. <doc>
  37635. <![CDATA[HTTP header used by the SPNEGO server endpoint during an authentication sequence.]]>
  37636. </doc>
  37637. </field>
  37638. <field name="AUTHORIZATION" type="java.lang.String"
  37639. transient="false" volatile="false"
  37640. static="true" final="true" visibility="public"
  37641. deprecated="not deprecated">
  37642. <doc>
  37643. <![CDATA[HTTP header used by the SPNEGO client endpoint during an authentication sequence.]]>
  37644. </doc>
  37645. </field>
  37646. <field name="NEGOTIATE" type="java.lang.String"
  37647. transient="false" volatile="false"
  37648. static="true" final="true" visibility="public"
  37649. deprecated="not deprecated">
  37650. <doc>
  37651. <![CDATA[HTTP header prefix used by the SPNEGO client/server endpoints during an authentication sequence.]]>
  37652. </doc>
  37653. </field>
  37654. <doc>
  37655. <![CDATA[The {@link KerberosAuthenticator} implements the Kerberos SPNEGO authentication sequence.
  37656. <p/>
  37657. It uses the default principal for the Kerberos cache (normally set via kinit).
  37658. <p/>
  37659. It falls back to the {@link PseudoAuthenticator} if the HTTP endpoint does not trigger an SPNEGO authentication
  37660. sequence.]]>
  37661. </doc>
  37662. </class>
  37663. <!-- end class org.apache.hadoop.security.authentication.client.KerberosAuthenticator -->
  37664. <!-- start class org.apache.hadoop.security.authentication.client.PseudoAuthenticator -->
  37665. <class name="PseudoAuthenticator" extends="java.lang.Object"
  37666. abstract="false"
  37667. static="false" final="false" visibility="public"
  37668. deprecated="not deprecated">
  37669. <implements name="org.apache.hadoop.security.authentication.client.Authenticator"/>
  37670. <constructor name="PseudoAuthenticator"
  37671. static="false" final="false" visibility="public"
  37672. deprecated="not deprecated">
  37673. </constructor>
  37674. <method name="authenticate"
  37675. abstract="false" native="false" synchronized="false"
  37676. static="false" final="false" visibility="public"
  37677. deprecated="not deprecated">
  37678. <param name="url" type="java.net.URL"/>
  37679. <param name="token" type="org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token"/>
  37680. <exception name="IOException" type="java.io.IOException"/>
  37681. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  37682. <doc>
  37683. <![CDATA[Performs simple authentication against the specified URL.
  37684. <p/>
  37685. If a token is given it does a NOP and returns the given token.
  37686. <p/>
  37687. If no token is given, it will perform an HTTP <code>OPTIONS</code> request injecting an additional
  37688. parameter {@link #USER_NAME} in the query string with the value returned by the {@link #getUserName()}
  37689. method.
  37690. <p/>
  37691. If the response is successful it will update the authentication token.
  37692. @param url the URl to authenticate against.
  37693. @param token the authencation token being used for the user.
  37694. @throws IOException if an IO error occurred.
  37695. @throws AuthenticationException if an authentication error occurred.]]>
  37696. </doc>
  37697. </method>
  37698. <method name="getUserName" return="java.lang.String"
  37699. abstract="false" native="false" synchronized="false"
  37700. static="false" final="false" visibility="protected"
  37701. deprecated="not deprecated">
  37702. <doc>
  37703. <![CDATA[Returns the current user name.
  37704. <p/>
  37705. This implementation returns the value of the Java system property 'user.name'
  37706. @return the current user name.]]>
  37707. </doc>
  37708. </method>
  37709. <field name="USER_NAME" type="java.lang.String"
  37710. transient="false" volatile="false"
  37711. static="true" final="true" visibility="public"
  37712. deprecated="not deprecated">
  37713. <doc>
  37714. <![CDATA[Name of the additional parameter that carries the 'user.name' value.]]>
  37715. </doc>
  37716. </field>
  37717. <doc>
  37718. <![CDATA[The {@link PseudoAuthenticator} implementation provides an authentication equivalent to Hadoop's
  37719. Simple authentication, it trusts the value of the 'user.name' Java System property.
  37720. <p/>
  37721. The 'user.name' value is propagated using an additional query string parameter {@link #USER_NAME} ('user.name').]]>
  37722. </doc>
  37723. </class>
  37724. <!-- end class org.apache.hadoop.security.authentication.client.PseudoAuthenticator -->
  37725. </package>
  37726. <package name="org.apache.hadoop.security.authentication.server">
  37727. <!-- start class org.apache.hadoop.security.authentication.server.AuthenticationFilter -->
  37728. <class name="AuthenticationFilter" extends="java.lang.Object"
  37729. abstract="false"
  37730. static="false" final="false" visibility="public"
  37731. deprecated="not deprecated">
  37732. <implements name="javax.servlet.Filter"/>
  37733. <constructor name="AuthenticationFilter"
  37734. static="false" final="false" visibility="public"
  37735. deprecated="not deprecated">
  37736. </constructor>
  37737. <method name="init"
  37738. abstract="false" native="false" synchronized="false"
  37739. static="false" final="false" visibility="public"
  37740. deprecated="not deprecated">
  37741. <param name="filterConfig" type="javax.servlet.FilterConfig"/>
  37742. <exception name="ServletException" type="javax.servlet.ServletException"/>
  37743. <doc>
  37744. <![CDATA[Initializes the authentication filter.
  37745. <p/>
  37746. It instantiates and initializes the specified {@link AuthenticationHandler}.
  37747. <p/>
  37748. @param filterConfig filter configuration.
  37749. @throws ServletException thrown if the filter or the authentication handler could not be initialized properly.]]>
  37750. </doc>
  37751. </method>
  37752. <method name="getAuthenticationHandler" return="org.apache.hadoop.security.authentication.server.AuthenticationHandler"
  37753. abstract="false" native="false" synchronized="false"
  37754. static="false" final="false" visibility="protected"
  37755. deprecated="not deprecated">
  37756. <doc>
  37757. <![CDATA[Returns the authentication handler being used.
  37758. @return the authentication handler being used.]]>
  37759. </doc>
  37760. </method>
  37761. <method name="isRandomSecret" return="boolean"
  37762. abstract="false" native="false" synchronized="false"
  37763. static="false" final="false" visibility="protected"
  37764. deprecated="not deprecated">
  37765. <doc>
  37766. <![CDATA[Returns if a random secret is being used.
  37767. @return if a random secret is being used.]]>
  37768. </doc>
  37769. </method>
  37770. <method name="getValidity" return="long"
  37771. abstract="false" native="false" synchronized="false"
  37772. static="false" final="false" visibility="protected"
  37773. deprecated="not deprecated">
  37774. <doc>
  37775. <![CDATA[Returns the validity time of the generated tokens.
  37776. @return the validity time of the generated tokens, in seconds.]]>
  37777. </doc>
  37778. </method>
  37779. <method name="getCookieDomain" return="java.lang.String"
  37780. abstract="false" native="false" synchronized="false"
  37781. static="false" final="false" visibility="protected"
  37782. deprecated="not deprecated">
  37783. <doc>
  37784. <![CDATA[Returns the cookie domain to use for the HTTP cookie.
  37785. @return the cookie domain to use for the HTTP cookie.]]>
  37786. </doc>
  37787. </method>
  37788. <method name="getCookiePath" return="java.lang.String"
  37789. abstract="false" native="false" synchronized="false"
  37790. static="false" final="false" visibility="protected"
  37791. deprecated="not deprecated">
  37792. <doc>
  37793. <![CDATA[Returns the cookie path to use for the HTTP cookie.
  37794. @return the cookie path to use for the HTTP cookie.]]>
  37795. </doc>
  37796. </method>
  37797. <method name="destroy"
  37798. abstract="false" native="false" synchronized="false"
  37799. static="false" final="false" visibility="public"
  37800. deprecated="not deprecated">
  37801. <doc>
  37802. <![CDATA[Destroys the filter.
  37803. <p/>
  37804. It invokes the {@link AuthenticationHandler#destroy()} method to release any resources it may hold.]]>
  37805. </doc>
  37806. </method>
  37807. <method name="getConfiguration" return="java.util.Properties"
  37808. abstract="false" native="false" synchronized="false"
  37809. static="false" final="false" visibility="protected"
  37810. deprecated="not deprecated">
  37811. <param name="configPrefix" type="java.lang.String"/>
  37812. <param name="filterConfig" type="javax.servlet.FilterConfig"/>
  37813. <exception name="ServletException" type="javax.servlet.ServletException"/>
  37814. <doc>
  37815. <![CDATA[Returns the filtered configuration (only properties starting with the specified prefix). The property keys
  37816. are also trimmed from the prefix. The returned {@link Properties} object is used to initialized the
  37817. {@link AuthenticationHandler}.
  37818. <p/>
  37819. This method can be overriden by subclasses to obtain the configuration from other configuration source than
  37820. the web.xml file.
  37821. @param configPrefix configuration prefix to use for extracting configuration properties.
  37822. @param filterConfig filter configuration object
  37823. @return the configuration to be used with the {@link AuthenticationHandler} instance.
  37824. @throws ServletException thrown if the configuration could not be created.]]>
  37825. </doc>
  37826. </method>
  37827. <method name="getRequestURL" return="java.lang.String"
  37828. abstract="false" native="false" synchronized="false"
  37829. static="false" final="false" visibility="protected"
  37830. deprecated="not deprecated">
  37831. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  37832. <doc>
  37833. <![CDATA[Returns the full URL of the request including the query string.
  37834. <p/>
  37835. Used as a convenience method for logging purposes.
  37836. @param request the request object.
  37837. @return the full URL of the request including the query string.]]>
  37838. </doc>
  37839. </method>
  37840. <method name="getToken" return="org.apache.hadoop.security.authentication.server.AuthenticationToken"
  37841. abstract="false" native="false" synchronized="false"
  37842. static="false" final="false" visibility="protected"
  37843. deprecated="not deprecated">
  37844. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  37845. <exception name="IOException" type="java.io.IOException"/>
  37846. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  37847. <doc>
  37848. <![CDATA[Returns the {@link AuthenticationToken} for the request.
  37849. <p/>
  37850. It looks at the received HTTP cookies and extracts the value of the {@link AuthenticatedURL#AUTH_COOKIE}
  37851. if present. It verifies the signature and if correct it creates the {@link AuthenticationToken} and returns
  37852. it.
  37853. <p/>
  37854. If this method returns <code>null</code> the filter will invoke the configured {@link AuthenticationHandler}
  37855. to perform user authentication.
  37856. @param request request object.
  37857. @return the Authentication token if the request is authenticated, <code>null</code> otherwise.
  37858. @throws IOException thrown if an IO error occurred.
  37859. @throws AuthenticationException thrown if the token is invalid or if it has expired.]]>
  37860. </doc>
  37861. </method>
  37862. <method name="doFilter"
  37863. abstract="false" native="false" synchronized="false"
  37864. static="false" final="false" visibility="public"
  37865. deprecated="not deprecated">
  37866. <param name="request" type="javax.servlet.ServletRequest"/>
  37867. <param name="response" type="javax.servlet.ServletResponse"/>
  37868. <param name="filterChain" type="javax.servlet.FilterChain"/>
  37869. <exception name="IOException" type="java.io.IOException"/>
  37870. <exception name="ServletException" type="javax.servlet.ServletException"/>
  37871. <doc>
  37872. <![CDATA[If the request has a valid authentication token it allows the request to continue to the target resource,
  37873. otherwise it triggers an authentication sequence using the configured {@link AuthenticationHandler}.
  37874. @param request the request object.
  37875. @param response the response object.
  37876. @param filterChain the filter chain object.
  37877. @throws IOException thrown if an IO error occurred.
  37878. @throws ServletException thrown if a processing error occurred.]]>
  37879. </doc>
  37880. </method>
  37881. <method name="createCookie" return="javax.servlet.http.Cookie"
  37882. abstract="false" native="false" synchronized="false"
  37883. static="false" final="false" visibility="protected"
  37884. deprecated="not deprecated">
  37885. <param name="token" type="java.lang.String"/>
  37886. <doc>
  37887. <![CDATA[Creates the Hadoop authentiation HTTP cookie.
  37888. <p/>
  37889. It sets the domain and path specified in the configuration.
  37890. @param token authentication token for the cookie.
  37891. @return the HTTP cookie.]]>
  37892. </doc>
  37893. </method>
  37894. <field name="CONFIG_PREFIX" type="java.lang.String"
  37895. transient="false" volatile="false"
  37896. static="true" final="true" visibility="public"
  37897. deprecated="not deprecated">
  37898. <doc>
  37899. <![CDATA[Constant for the property that specifies the configuration prefix.]]>
  37900. </doc>
  37901. </field>
  37902. <field name="AUTH_TYPE" type="java.lang.String"
  37903. transient="false" volatile="false"
  37904. static="true" final="true" visibility="public"
  37905. deprecated="not deprecated">
  37906. <doc>
  37907. <![CDATA[Constant for the property that specifies the authentication handler to use.]]>
  37908. </doc>
  37909. </field>
  37910. <field name="SIGNATURE_SECRET" type="java.lang.String"
  37911. transient="false" volatile="false"
  37912. static="true" final="true" visibility="public"
  37913. deprecated="not deprecated">
  37914. <doc>
  37915. <![CDATA[Constant for the property that specifies the secret to use for signing the HTTP Cookies.]]>
  37916. </doc>
  37917. </field>
  37918. <field name="AUTH_TOKEN_VALIDITY" type="java.lang.String"
  37919. transient="false" volatile="false"
  37920. static="true" final="true" visibility="public"
  37921. deprecated="not deprecated">
  37922. <doc>
  37923. <![CDATA[Constant for the configuration property that indicates the validity of the generated token.]]>
  37924. </doc>
  37925. </field>
  37926. <field name="COOKIE_DOMAIN" type="java.lang.String"
  37927. transient="false" volatile="false"
  37928. static="true" final="true" visibility="public"
  37929. deprecated="not deprecated">
  37930. <doc>
  37931. <![CDATA[Constant for the configuration property that indicates the domain to use in the HTTP cookie.]]>
  37932. </doc>
  37933. </field>
  37934. <field name="COOKIE_PATH" type="java.lang.String"
  37935. transient="false" volatile="false"
  37936. static="true" final="true" visibility="public"
  37937. deprecated="not deprecated">
  37938. <doc>
  37939. <![CDATA[Constant for the configuration property that indicates the path to use in the HTTP cookie.]]>
  37940. </doc>
  37941. </field>
  37942. <doc>
  37943. <![CDATA[The {@link AuthenticationFilter} enables protecting web application resources with different (pluggable)
  37944. authentication mechanisms.
  37945. <p/>
  37946. Out of the box it provides 2 authentication mechanisms: Pseudo and Kerberos SPNEGO.
  37947. <p/>
  37948. Additional authentication mechanisms are supported via the {@link AuthenticationHandler} interface.
  37949. <p/>
  37950. This filter delegates to the configured authentication handler for authentication and once it obtains an
  37951. {@link AuthenticationToken} from it, sets a signed HTTP cookie with the token. For client requests
  37952. that provide the signed HTTP cookie, it verifies the validity of the cookie, extracts the user information
  37953. and lets the request proceed to the target resource.
  37954. <p/>
  37955. The supported configuration properties are:
  37956. <ul>
  37957. <li>config.prefix: indicates the prefix to be used by all other configuration properties, the default value
  37958. is no prefix. See below for details on how/why this prefix is used.</li>
  37959. <li>[#PREFIX#.]type: simple|kerberos|#CLASS#, 'simple' is short for the
  37960. {@link PseudoAuthenticationHandler}, 'kerberos' is short for {@link KerberosAuthenticationHandler}, otherwise
  37961. the full class name of the {@link AuthenticationHandler} must be specified.</li>
  37962. <li>[#PREFIX#.]signature.secret: the secret used to sign the HTTP cookie value. The default value is a random
  37963. value. Unless multiple webapp instances need to share the secret the random value is adequate.</li>
  37964. <li>[#PREFIX#.]token.validity: time -in seconds- that the generated token is valid before a
  37965. new authentication is triggered, default value is <code>3600</code> seconds.</li>
  37966. <li>[#PREFIX#.]cookie.domain: domain to use for the HTTP cookie that stores the authentication token.</li>
  37967. <li>[#PREFIX#.]cookie.path: path to use for the HTTP cookie that stores the authentication token.</li>
  37968. </ul>
  37969. <p/>
  37970. The rest of the configuration properties are specific to the {@link AuthenticationHandler} implementation and the
  37971. {@link AuthenticationFilter} will take all the properties that start with the prefix #PREFIX#, it will remove
  37972. the prefix from it and it will pass them to the the authentication handler for initialization. Properties that do
  37973. not start with the prefix will not be passed to the authentication handler initialization.]]>
  37974. </doc>
  37975. </class>
  37976. <!-- end class org.apache.hadoop.security.authentication.server.AuthenticationFilter -->
  37977. <!-- start interface org.apache.hadoop.security.authentication.server.AuthenticationHandler -->
  37978. <interface name="AuthenticationHandler" abstract="true"
  37979. static="false" final="false" visibility="public"
  37980. deprecated="not deprecated">
  37981. <method name="getType" return="java.lang.String"
  37982. abstract="false" native="false" synchronized="false"
  37983. static="false" final="false" visibility="public"
  37984. deprecated="not deprecated">
  37985. <doc>
  37986. <![CDATA[Returns the authentication type of the authentication handler.
  37987. <p/>
  37988. This should be a name that uniquely identifies the authentication type.
  37989. For example 'simple' or 'kerberos'.
  37990. @return the authentication type of the authentication handler.]]>
  37991. </doc>
  37992. </method>
  37993. <method name="init"
  37994. abstract="false" native="false" synchronized="false"
  37995. static="false" final="false" visibility="public"
  37996. deprecated="not deprecated">
  37997. <param name="config" type="java.util.Properties"/>
  37998. <exception name="ServletException" type="javax.servlet.ServletException"/>
  37999. <doc>
  38000. <![CDATA[Initializes the authentication handler instance.
  38001. <p/>
  38002. This method is invoked by the {@link AuthenticationFilter#init} method.
  38003. @param config configuration properties to initialize the handler.
  38004. @throws ServletException thrown if the handler could not be initialized.]]>
  38005. </doc>
  38006. </method>
  38007. <method name="destroy"
  38008. abstract="false" native="false" synchronized="false"
  38009. static="false" final="false" visibility="public"
  38010. deprecated="not deprecated">
  38011. <doc>
  38012. <![CDATA[Destroys the authentication handler instance.
  38013. <p/>
  38014. This method is invoked by the {@link AuthenticationFilter#destroy} method.]]>
  38015. </doc>
  38016. </method>
  38017. <method name="authenticate" return="org.apache.hadoop.security.authentication.server.AuthenticationToken"
  38018. abstract="false" native="false" synchronized="false"
  38019. static="false" final="false" visibility="public"
  38020. deprecated="not deprecated">
  38021. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  38022. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  38023. <exception name="IOException" type="java.io.IOException"/>
  38024. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  38025. <doc>
  38026. <![CDATA[Performs an authentication step for the given HTTP client request.
  38027. <p/>
  38028. This method is invoked by the {@link AuthenticationFilter} only if the HTTP client request is
  38029. not yet authenticated.
  38030. <p/>
  38031. Depending upon the authentication mechanism being implemented, a particular HTTP client may
  38032. end up making a sequence of invocations before authentication is successfully established (this is
  38033. the case of Kerberos SPNEGO).
  38034. <p/>
  38035. This method must return an {@link AuthenticationToken} only if the the HTTP client request has
  38036. been successfully and fully authenticated.
  38037. <p/>
  38038. If the HTTP client request has not been completely authenticated, this method must take over
  38039. the corresponding HTTP response and it must return <code>null</code>.
  38040. @param request the HTTP client request.
  38041. @param response the HTTP client response.
  38042. @return an {@link AuthenticationToken} if the HTTP client request has been authenticated,
  38043. <code>null</code> otherwise (in this case it must take care of the response).
  38044. @throws IOException thrown if an IO error occurred.
  38045. @throws AuthenticationException thrown if an Authentication error occurred.]]>
  38046. </doc>
  38047. </method>
  38048. <doc>
  38049. <![CDATA[Interface for server authentication mechanisms.
  38050. <p/>
  38051. The {@link AuthenticationFilter} manages the lifecycle of the authentication handler.
  38052. <p/>
  38053. Implementations must be thread-safe as one instance is initialized and used for all requests.]]>
  38054. </doc>
  38055. </interface>
  38056. <!-- end interface org.apache.hadoop.security.authentication.server.AuthenticationHandler -->
  38057. <!-- start class org.apache.hadoop.security.authentication.server.AuthenticationToken -->
  38058. <class name="AuthenticationToken" extends="java.lang.Object"
  38059. abstract="false"
  38060. static="false" final="false" visibility="public"
  38061. deprecated="not deprecated">
  38062. <implements name="java.security.Principal"/>
  38063. <constructor name="AuthenticationToken" type="java.lang.String, java.lang.String, java.lang.String"
  38064. static="false" final="false" visibility="public"
  38065. deprecated="not deprecated">
  38066. <doc>
  38067. <![CDATA[Creates an authentication token.
  38068. @param userName user name.
  38069. @param principal principal (commonly matches the user name, with Kerberos is the full/long principal
  38070. name while the userName is the short name).
  38071. @param type the authentication mechanism name.
  38072. (<code>System.currentTimeMillis() + validityPeriod</code>).]]>
  38073. </doc>
  38074. </constructor>
  38075. <method name="setExpires"
  38076. abstract="false" native="false" synchronized="false"
  38077. static="false" final="false" visibility="public"
  38078. deprecated="not deprecated">
  38079. <param name="expires" type="long"/>
  38080. <doc>
  38081. <![CDATA[Sets the expiration of the token.
  38082. @param expires expiration time of the token in milliseconds since the epoch.]]>
  38083. </doc>
  38084. </method>
  38085. <method name="getUserName" return="java.lang.String"
  38086. abstract="false" native="false" synchronized="false"
  38087. static="false" final="false" visibility="public"
  38088. deprecated="not deprecated">
  38089. <doc>
  38090. <![CDATA[Returns the user name.
  38091. @return the user name.]]>
  38092. </doc>
  38093. </method>
  38094. <method name="getName" return="java.lang.String"
  38095. abstract="false" native="false" synchronized="false"
  38096. static="false" final="false" visibility="public"
  38097. deprecated="not deprecated">
  38098. <doc>
  38099. <![CDATA[Returns the principal name (this method name comes from the JDK {@link Principal} interface).
  38100. @return the principal name.]]>
  38101. </doc>
  38102. </method>
  38103. <method name="getType" return="java.lang.String"
  38104. abstract="false" native="false" synchronized="false"
  38105. static="false" final="false" visibility="public"
  38106. deprecated="not deprecated">
  38107. <doc>
  38108. <![CDATA[Returns the authentication mechanism of the token.
  38109. @return the authentication mechanism of the token.]]>
  38110. </doc>
  38111. </method>
  38112. <method name="getExpires" return="long"
  38113. abstract="false" native="false" synchronized="false"
  38114. static="false" final="false" visibility="public"
  38115. deprecated="not deprecated">
  38116. <doc>
  38117. <![CDATA[Returns the expiration time of the token.
  38118. @return the expiration time of the token, in milliseconds since Epoc.]]>
  38119. </doc>
  38120. </method>
  38121. <method name="isExpired" return="boolean"
  38122. abstract="false" native="false" synchronized="false"
  38123. static="false" final="false" visibility="public"
  38124. deprecated="not deprecated">
  38125. <doc>
  38126. <![CDATA[Returns if the token has expired.
  38127. @return if the token has expired.]]>
  38128. </doc>
  38129. </method>
  38130. <method name="toString" return="java.lang.String"
  38131. abstract="false" native="false" synchronized="false"
  38132. static="false" final="false" visibility="public"
  38133. deprecated="not deprecated">
  38134. <doc>
  38135. <![CDATA[Returns the string representation of the token.
  38136. <p/>
  38137. This string representation is parseable by the {@link #parse} method.
  38138. @return the string representation of the token.]]>
  38139. </doc>
  38140. </method>
  38141. <method name="parse" return="org.apache.hadoop.security.authentication.server.AuthenticationToken"
  38142. abstract="false" native="false" synchronized="false"
  38143. static="true" final="false" visibility="public"
  38144. deprecated="not deprecated">
  38145. <param name="tokenStr" type="java.lang.String"/>
  38146. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  38147. <doc>
  38148. <![CDATA[Parses a string into an authentication token.
  38149. @param tokenStr string representation of a token.
  38150. @return the parsed authentication token.
  38151. @throws AuthenticationException thrown if the string representation could not be parsed into
  38152. an authentication token.]]>
  38153. </doc>
  38154. </method>
  38155. <field name="ANONYMOUS" type="org.apache.hadoop.security.authentication.server.AuthenticationToken"
  38156. transient="false" volatile="false"
  38157. static="true" final="true" visibility="public"
  38158. deprecated="not deprecated">
  38159. <doc>
  38160. <![CDATA[Constant that identifies an anonymous request.]]>
  38161. </doc>
  38162. </field>
  38163. <doc>
  38164. <![CDATA[The {@link AuthenticationToken} contains information about an authenticated
  38165. HTTP client and doubles as the {@link Principal} to be returned by
  38166. authenticated {@link HttpServletRequest}s
  38167. <p/>
  38168. The token can be serialized/deserialized to and from a string as it is sent
  38169. and received in HTTP client responses and requests as a HTTP cookie (this is
  38170. done by the {@link AuthenticationFilter}).]]>
  38171. </doc>
  38172. </class>
  38173. <!-- end class org.apache.hadoop.security.authentication.server.AuthenticationToken -->
  38174. <!-- start class org.apache.hadoop.security.authentication.server.KerberosAuthenticationHandler -->
  38175. <class name="KerberosAuthenticationHandler" extends="java.lang.Object"
  38176. abstract="false"
  38177. static="false" final="false" visibility="public"
  38178. deprecated="not deprecated">
  38179. <implements name="org.apache.hadoop.security.authentication.server.AuthenticationHandler"/>
  38180. <constructor name="KerberosAuthenticationHandler"
  38181. static="false" final="false" visibility="public"
  38182. deprecated="not deprecated">
  38183. </constructor>
  38184. <method name="init"
  38185. abstract="false" native="false" synchronized="false"
  38186. static="false" final="false" visibility="public"
  38187. deprecated="not deprecated">
  38188. <param name="config" type="java.util.Properties"/>
  38189. <exception name="ServletException" type="javax.servlet.ServletException"/>
  38190. <doc>
  38191. <![CDATA[Initializes the authentication handler instance.
  38192. <p/>
  38193. It creates a Kerberos context using the principal and keytab specified in the configuration.
  38194. <p/>
  38195. This method is invoked by the {@link AuthenticationFilter#init} method.
  38196. @param config configuration properties to initialize the handler.
  38197. @throws ServletException thrown if the handler could not be initialized.]]>
  38198. </doc>
  38199. </method>
  38200. <method name="destroy"
  38201. abstract="false" native="false" synchronized="false"
  38202. static="false" final="false" visibility="public"
  38203. deprecated="not deprecated">
  38204. <doc>
  38205. <![CDATA[Releases any resources initialized by the authentication handler.
  38206. <p/>
  38207. It destroys the Kerberos context.]]>
  38208. </doc>
  38209. </method>
  38210. <method name="getType" return="java.lang.String"
  38211. abstract="false" native="false" synchronized="false"
  38212. static="false" final="false" visibility="public"
  38213. deprecated="not deprecated">
  38214. <doc>
  38215. <![CDATA[Returns the authentication type of the authentication handler, 'kerberos'.
  38216. <p/>
  38217. @return the authentication type of the authentication handler, 'kerberos'.]]>
  38218. </doc>
  38219. </method>
  38220. <method name="getPrincipal" return="java.lang.String"
  38221. abstract="false" native="false" synchronized="false"
  38222. static="false" final="false" visibility="protected"
  38223. deprecated="not deprecated">
  38224. <doc>
  38225. <![CDATA[Returns the Kerberos principal used by the authentication handler.
  38226. @return the Kerberos principal used by the authentication handler.]]>
  38227. </doc>
  38228. </method>
  38229. <method name="getKeytab" return="java.lang.String"
  38230. abstract="false" native="false" synchronized="false"
  38231. static="false" final="false" visibility="protected"
  38232. deprecated="not deprecated">
  38233. <doc>
  38234. <![CDATA[Returns the keytab used by the authentication handler.
  38235. @return the keytab used by the authentication handler.]]>
  38236. </doc>
  38237. </method>
  38238. <method name="authenticate" return="org.apache.hadoop.security.authentication.server.AuthenticationToken"
  38239. abstract="false" native="false" synchronized="false"
  38240. static="false" final="false" visibility="public"
  38241. deprecated="not deprecated">
  38242. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  38243. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  38244. <exception name="IOException" type="java.io.IOException"/>
  38245. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  38246. <doc>
  38247. <![CDATA[It enforces the the Kerberos SPNEGO authentication sequence returning an {@link AuthenticationToken} only
  38248. after the Kerberos SPNEGO sequence has completed successfully.
  38249. <p/>
  38250. @param request the HTTP client request.
  38251. @param response the HTTP client response.
  38252. @return an authentication token if the Kerberos SPNEGO sequence is complete and valid,
  38253. <code>null</code> if it is in progress (in this case the handler handles the response to the client).
  38254. @throws IOException thrown if an IO error occurred.
  38255. @throws AuthenticationException thrown if Kerberos SPNEGO sequence failed.]]>
  38256. </doc>
  38257. </method>
  38258. <field name="TYPE" type="java.lang.String"
  38259. transient="false" volatile="false"
  38260. static="true" final="true" visibility="public"
  38261. deprecated="not deprecated">
  38262. <doc>
  38263. <![CDATA[Constant that identifies the authentication mechanism.]]>
  38264. </doc>
  38265. </field>
  38266. <field name="PRINCIPAL" type="java.lang.String"
  38267. transient="false" volatile="false"
  38268. static="true" final="true" visibility="public"
  38269. deprecated="not deprecated">
  38270. <doc>
  38271. <![CDATA[Constant for the configuration property that indicates the kerberos principal.]]>
  38272. </doc>
  38273. </field>
  38274. <field name="KEYTAB" type="java.lang.String"
  38275. transient="false" volatile="false"
  38276. static="true" final="true" visibility="public"
  38277. deprecated="not deprecated">
  38278. <doc>
  38279. <![CDATA[Constant for the configuration property that indicates the keytab file path.]]>
  38280. </doc>
  38281. </field>
  38282. <field name="NAME_RULES" type="java.lang.String"
  38283. transient="false" volatile="false"
  38284. static="true" final="true" visibility="public"
  38285. deprecated="not deprecated">
  38286. <doc>
  38287. <![CDATA[Constant for the configuration property that indicates the Kerberos name
  38288. rules for the Kerberos principals.]]>
  38289. </doc>
  38290. </field>
  38291. <doc>
  38292. <![CDATA[The {@link KerberosAuthenticationHandler} implements the Kerberos SPNEGO authentication mechanism for HTTP.
  38293. <p/>
  38294. The supported configuration properties are:
  38295. <ul>
  38296. <li>kerberos.principal: the Kerberos principal to used by the server. As stated by the Kerberos SPNEGO
  38297. specification, it should be <code>HTTP/${HOSTNAME}@{REALM}</code>. The realm can be omitted from the
  38298. principal as the JDK GSS libraries will use the realm name of the configured default realm.
  38299. It does not have a default value.</li>
  38300. <li>kerberos.keytab: the keytab file containing the credentials for the Kerberos principal.
  38301. It does not have a default value.</li>
  38302. </ul>]]>
  38303. </doc>
  38304. </class>
  38305. <!-- end class org.apache.hadoop.security.authentication.server.KerberosAuthenticationHandler -->
  38306. <!-- start class org.apache.hadoop.security.authentication.server.PseudoAuthenticationHandler -->
  38307. <class name="PseudoAuthenticationHandler" extends="java.lang.Object"
  38308. abstract="false"
  38309. static="false" final="false" visibility="public"
  38310. deprecated="not deprecated">
  38311. <implements name="org.apache.hadoop.security.authentication.server.AuthenticationHandler"/>
  38312. <constructor name="PseudoAuthenticationHandler"
  38313. static="false" final="false" visibility="public"
  38314. deprecated="not deprecated">
  38315. </constructor>
  38316. <method name="init"
  38317. abstract="false" native="false" synchronized="false"
  38318. static="false" final="false" visibility="public"
  38319. deprecated="not deprecated">
  38320. <param name="config" type="java.util.Properties"/>
  38321. <exception name="ServletException" type="javax.servlet.ServletException"/>
  38322. <doc>
  38323. <![CDATA[Initializes the authentication handler instance.
  38324. <p/>
  38325. This method is invoked by the {@link AuthenticationFilter#init} method.
  38326. @param config configuration properties to initialize the handler.
  38327. @throws ServletException thrown if the handler could not be initialized.]]>
  38328. </doc>
  38329. </method>
  38330. <method name="getAcceptAnonymous" return="boolean"
  38331. abstract="false" native="false" synchronized="false"
  38332. static="false" final="false" visibility="protected"
  38333. deprecated="not deprecated">
  38334. <doc>
  38335. <![CDATA[Returns if the handler is configured to support anonymous users.
  38336. @return if the handler is configured to support anonymous users.]]>
  38337. </doc>
  38338. </method>
  38339. <method name="destroy"
  38340. abstract="false" native="false" synchronized="false"
  38341. static="false" final="false" visibility="public"
  38342. deprecated="not deprecated">
  38343. <doc>
  38344. <![CDATA[Releases any resources initialized by the authentication handler.
  38345. <p/>
  38346. This implementation does a NOP.]]>
  38347. </doc>
  38348. </method>
  38349. <method name="getType" return="java.lang.String"
  38350. abstract="false" native="false" synchronized="false"
  38351. static="false" final="false" visibility="public"
  38352. deprecated="not deprecated">
  38353. <doc>
  38354. <![CDATA[Returns the authentication type of the authentication handler, 'simple'.
  38355. <p/>
  38356. @return the authentication type of the authentication handler, 'simple'.]]>
  38357. </doc>
  38358. </method>
  38359. <method name="authenticate" return="org.apache.hadoop.security.authentication.server.AuthenticationToken"
  38360. abstract="false" native="false" synchronized="false"
  38361. static="false" final="false" visibility="public"
  38362. deprecated="not deprecated">
  38363. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  38364. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  38365. <exception name="IOException" type="java.io.IOException"/>
  38366. <exception name="AuthenticationException" type="org.apache.hadoop.security.authentication.client.AuthenticationException"/>
  38367. <doc>
  38368. <![CDATA[Authenticates an HTTP client request.
  38369. <p/>
  38370. It extracts the {@link PseudoAuthenticator#USER_NAME} parameter from the query string and creates
  38371. an {@link AuthenticationToken} with it.
  38372. <p/>
  38373. If the HTTP client request does not contain the {@link PseudoAuthenticator#USER_NAME} parameter and
  38374. the handler is configured to allow anonymous users it returns the {@link AuthenticationToken#ANONYMOUS}
  38375. token.
  38376. <p/>
  38377. If the HTTP client request does not contain the {@link PseudoAuthenticator#USER_NAME} parameter and
  38378. the handler is configured to disallow anonymous users it throws an {@link AuthenticationException}.
  38379. @param request the HTTP client request.
  38380. @param response the HTTP client response.
  38381. @return an authentication token if the HTTP client request is accepted and credentials are valid.
  38382. @throws IOException thrown if an IO error occurred.
  38383. @throws AuthenticationException thrown if HTTP client request was not accepted as an authentication request.]]>
  38384. </doc>
  38385. </method>
  38386. <field name="TYPE" type="java.lang.String"
  38387. transient="false" volatile="false"
  38388. static="true" final="true" visibility="public"
  38389. deprecated="not deprecated">
  38390. <doc>
  38391. <![CDATA[Constant that identifies the authentication mechanism.]]>
  38392. </doc>
  38393. </field>
  38394. <field name="ANONYMOUS_ALLOWED" type="java.lang.String"
  38395. transient="false" volatile="false"
  38396. static="true" final="true" visibility="public"
  38397. deprecated="not deprecated">
  38398. <doc>
  38399. <![CDATA[Constant for the configuration property that indicates if anonymous users are allowed.]]>
  38400. </doc>
  38401. </field>
  38402. <doc>
  38403. <![CDATA[The <code>PseudoAuthenticationHandler</code> provides a pseudo authentication mechanism that accepts
  38404. the user name specified as a query string parameter.
  38405. <p/>
  38406. This mimics the model of Hadoop Simple authentication which trust the 'user.name' property provided in
  38407. the configuration object.
  38408. <p/>
  38409. This handler can be configured to support anonymous users.
  38410. <p/>
  38411. The only supported configuration property is:
  38412. <ul>
  38413. <li>simple.anonymous.allowed: <code>true|false</code>, default value is <code>false</code></li>
  38414. </ul>]]>
  38415. </doc>
  38416. </class>
  38417. <!-- end class org.apache.hadoop.security.authentication.server.PseudoAuthenticationHandler -->
  38418. </package>
  38419. <package name="org.apache.hadoop.security.authentication.util">
  38420. <!-- start class org.apache.hadoop.security.authentication.util.KerberosUtil -->
  38421. <class name="KerberosUtil" extends="java.lang.Object"
  38422. abstract="false"
  38423. static="false" final="false" visibility="public"
  38424. deprecated="not deprecated">
  38425. <constructor name="KerberosUtil"
  38426. static="false" final="false" visibility="public"
  38427. deprecated="not deprecated">
  38428. </constructor>
  38429. <method name="getKrb5LoginModuleName" return="java.lang.String"
  38430. abstract="false" native="false" synchronized="false"
  38431. static="true" final="false" visibility="public"
  38432. deprecated="not deprecated">
  38433. </method>
  38434. <method name="getOidInstance" return="org.ietf.jgss.Oid"
  38435. abstract="false" native="false" synchronized="false"
  38436. static="true" final="false" visibility="public"
  38437. deprecated="not deprecated">
  38438. <param name="oidName" type="java.lang.String"/>
  38439. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  38440. <exception name="GSSException" type="org.ietf.jgss.GSSException"/>
  38441. <exception name="NoSuchFieldException" type="java.lang.NoSuchFieldException"/>
  38442. <exception name="IllegalAccessException" type="java.lang.IllegalAccessException"/>
  38443. </method>
  38444. <method name="getDefaultRealm" return="java.lang.String"
  38445. abstract="false" native="false" synchronized="false"
  38446. static="true" final="false" visibility="public"
  38447. deprecated="not deprecated">
  38448. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  38449. <exception name="NoSuchMethodException" type="java.lang.NoSuchMethodException"/>
  38450. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  38451. <exception name="IllegalAccessException" type="java.lang.IllegalAccessException"/>
  38452. <exception name="InvocationTargetException" type="java.lang.reflect.InvocationTargetException"/>
  38453. </method>
  38454. <method name="getServicePrincipal" return="java.lang.String"
  38455. abstract="false" native="false" synchronized="false"
  38456. static="true" final="true" visibility="public"
  38457. deprecated="not deprecated">
  38458. <param name="service" type="java.lang.String"/>
  38459. <param name="hostname" type="java.lang.String"/>
  38460. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  38461. <doc>
  38462. <![CDATA[Create Kerberos principal for a given service and hostname. It converts
  38463. hostname to lower case. If hostname is null or "0.0.0.0", it uses
  38464. dynamically looked-up fqdn of the current host instead.
  38465. @param service
  38466. Service for which you want to generate the principal.
  38467. @param hostname
  38468. Fully-qualified domain name.
  38469. @return Converted Kerberos principal name.
  38470. @throws UnknownHostException
  38471. If no IP address for the local host could be found.]]>
  38472. </doc>
  38473. </method>
  38474. </class>
  38475. <!-- end class org.apache.hadoop.security.authentication.util.KerberosUtil -->
  38476. <!-- start class org.apache.hadoop.security.authentication.util.Signer -->
  38477. <class name="Signer" extends="java.lang.Object"
  38478. abstract="false"
  38479. static="false" final="false" visibility="public"
  38480. deprecated="not deprecated">
  38481. <constructor name="Signer" type="byte[]"
  38482. static="false" final="false" visibility="public"
  38483. deprecated="not deprecated">
  38484. <doc>
  38485. <![CDATA[Creates a Signer instance using the specified secret.
  38486. @param secret secret to use for creating the digest.]]>
  38487. </doc>
  38488. </constructor>
  38489. <method name="sign" return="java.lang.String"
  38490. abstract="false" native="false" synchronized="false"
  38491. static="false" final="false" visibility="public"
  38492. deprecated="not deprecated">
  38493. <param name="str" type="java.lang.String"/>
  38494. <doc>
  38495. <![CDATA[Returns a signed string.
  38496. <p/>
  38497. The signature '&s=SIGNATURE' is appended at the end of the string.
  38498. @param str string to sign.
  38499. @return the signed string.]]>
  38500. </doc>
  38501. </method>
  38502. <method name="verifyAndExtract" return="java.lang.String"
  38503. abstract="false" native="false" synchronized="false"
  38504. static="false" final="false" visibility="public"
  38505. deprecated="not deprecated">
  38506. <param name="signedStr" type="java.lang.String"/>
  38507. <exception name="SignerException" type="org.apache.hadoop.security.authentication.util.SignerException"/>
  38508. <doc>
  38509. <![CDATA[Verifies a signed string and extracts the original string.
  38510. @param signedStr the signed string to verify and extract.
  38511. @return the extracted original string.
  38512. @throws SignerException thrown if the given string is not a signed string or if the signature is invalid.]]>
  38513. </doc>
  38514. </method>
  38515. <method name="computeSignature" return="java.lang.String"
  38516. abstract="false" native="false" synchronized="false"
  38517. static="false" final="false" visibility="protected"
  38518. deprecated="not deprecated">
  38519. <param name="str" type="java.lang.String"/>
  38520. <doc>
  38521. <![CDATA[Returns then signature of a string.
  38522. @param str string to sign.
  38523. @return the signature for the string.]]>
  38524. </doc>
  38525. </method>
  38526. <doc>
  38527. <![CDATA[Signs strings and verifies signed strings using a SHA digest.]]>
  38528. </doc>
  38529. </class>
  38530. <!-- end class org.apache.hadoop.security.authentication.util.Signer -->
  38531. <!-- start class org.apache.hadoop.security.authentication.util.SignerException -->
  38532. <class name="SignerException" extends="java.lang.Exception"
  38533. abstract="false"
  38534. static="false" final="false" visibility="public"
  38535. deprecated="not deprecated">
  38536. <constructor name="SignerException" type="java.lang.String"
  38537. static="false" final="false" visibility="public"
  38538. deprecated="not deprecated">
  38539. <doc>
  38540. <![CDATA[Creates an exception instance.
  38541. @param msg message for the exception.]]>
  38542. </doc>
  38543. </constructor>
  38544. <doc>
  38545. <![CDATA[Exception thrown by {@link Signer} when a string signature is invalid.]]>
  38546. </doc>
  38547. </class>
  38548. <!-- end class org.apache.hadoop.security.authentication.util.SignerException -->
  38549. </package>
  38550. <package name="org.apache.hadoop.security.authorize">
  38551. <!-- start class org.apache.hadoop.security.authorize.AccessControlList -->
  38552. <class name="AccessControlList" extends="java.lang.Object"
  38553. abstract="false"
  38554. static="false" final="false" visibility="public"
  38555. deprecated="not deprecated">
  38556. <implements name="org.apache.hadoop.io.Writable"/>
  38557. <constructor name="AccessControlList"
  38558. static="false" final="false" visibility="public"
  38559. deprecated="not deprecated">
  38560. <doc>
  38561. <![CDATA[This constructor exists primarily for AccessControlList to be Writable.]]>
  38562. </doc>
  38563. </constructor>
  38564. <constructor name="AccessControlList" type="java.lang.String"
  38565. static="false" final="false" visibility="public"
  38566. deprecated="not deprecated">
  38567. <doc>
  38568. <![CDATA[Construct a new ACL from a String representation of the same.
  38569. The String is a a comma separated list of users and groups.
  38570. The user list comes first and is separated by a space followed
  38571. by the group list. For e.g. "user1,user2 group1,group2"
  38572. @param aclString String representation of the ACL]]>
  38573. </doc>
  38574. </constructor>
  38575. <method name="isAllAllowed" return="boolean"
  38576. abstract="false" native="false" synchronized="false"
  38577. static="false" final="false" visibility="public"
  38578. deprecated="not deprecated">
  38579. </method>
  38580. <method name="addUser"
  38581. abstract="false" native="false" synchronized="false"
  38582. static="false" final="false" visibility="public"
  38583. deprecated="not deprecated">
  38584. <param name="user" type="java.lang.String"/>
  38585. </method>
  38586. <method name="isUserAllowed" return="boolean"
  38587. abstract="false" native="false" synchronized="false"
  38588. static="false" final="false" visibility="public"
  38589. deprecated="not deprecated">
  38590. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  38591. </method>
  38592. <method name="toString" return="java.lang.String"
  38593. abstract="false" native="false" synchronized="false"
  38594. static="false" final="false" visibility="public"
  38595. deprecated="not deprecated">
  38596. </method>
  38597. <method name="write"
  38598. abstract="false" native="false" synchronized="false"
  38599. static="false" final="false" visibility="public"
  38600. deprecated="not deprecated">
  38601. <param name="out" type="java.io.DataOutput"/>
  38602. <exception name="IOException" type="java.io.IOException"/>
  38603. </method>
  38604. <method name="readFields"
  38605. abstract="false" native="false" synchronized="false"
  38606. static="false" final="false" visibility="public"
  38607. deprecated="not deprecated">
  38608. <param name="in" type="java.io.DataInput"/>
  38609. <exception name="IOException" type="java.io.IOException"/>
  38610. </method>
  38611. <method name="getACLString" return="java.lang.String"
  38612. abstract="false" native="false" synchronized="false"
  38613. static="false" final="false" visibility="public"
  38614. deprecated="not deprecated">
  38615. <doc>
  38616. <![CDATA[Returns the String representation of this ACL. Unlike toString() method's
  38617. return value, this String can be directly given to the constructor of
  38618. AccessControlList to build AccessControlList object.
  38619. This is the method used by the serialization method write().]]>
  38620. </doc>
  38621. </method>
  38622. <field name="WILDCARD_ACL_VALUE" type="java.lang.String"
  38623. transient="false" volatile="false"
  38624. static="true" final="true" visibility="public"
  38625. deprecated="not deprecated">
  38626. </field>
  38627. <doc>
  38628. <![CDATA[Class representing a configured access control list.]]>
  38629. </doc>
  38630. </class>
  38631. <!-- end class org.apache.hadoop.security.authorize.AccessControlList -->
  38632. <!-- start class org.apache.hadoop.security.authorize.AuthorizationException -->
  38633. <class name="AuthorizationException" extends="org.apache.hadoop.security.AccessControlException"
  38634. abstract="false"
  38635. static="false" final="false" visibility="public"
  38636. deprecated="not deprecated">
  38637. <constructor name="AuthorizationException"
  38638. static="false" final="false" visibility="public"
  38639. deprecated="not deprecated">
  38640. </constructor>
  38641. <constructor name="AuthorizationException" type="java.lang.String"
  38642. static="false" final="false" visibility="public"
  38643. deprecated="not deprecated">
  38644. </constructor>
  38645. <constructor name="AuthorizationException" type="java.lang.Throwable"
  38646. static="false" final="false" visibility="public"
  38647. deprecated="not deprecated">
  38648. <doc>
  38649. <![CDATA[Constructs a new exception with the specified cause and a detail
  38650. message of <tt>(cause==null ? null : cause.toString())</tt> (which
  38651. typically contains the class and detail message of <tt>cause</tt>).
  38652. @param cause the cause (which is saved for later retrieval by the
  38653. {@link #getCause()} method). (A <tt>null</tt> value is
  38654. permitted, and indicates that the cause is nonexistent or
  38655. unknown.)]]>
  38656. </doc>
  38657. </constructor>
  38658. <method name="getStackTrace" return="java.lang.StackTraceElement[]"
  38659. abstract="false" native="false" synchronized="false"
  38660. static="false" final="false" visibility="public"
  38661. deprecated="not deprecated">
  38662. </method>
  38663. <method name="printStackTrace"
  38664. abstract="false" native="false" synchronized="false"
  38665. static="false" final="false" visibility="public"
  38666. deprecated="not deprecated">
  38667. </method>
  38668. <method name="printStackTrace"
  38669. abstract="false" native="false" synchronized="false"
  38670. static="false" final="false" visibility="public"
  38671. deprecated="not deprecated">
  38672. <param name="s" type="java.io.PrintStream"/>
  38673. </method>
  38674. <method name="printStackTrace"
  38675. abstract="false" native="false" synchronized="false"
  38676. static="false" final="false" visibility="public"
  38677. deprecated="not deprecated">
  38678. <param name="s" type="java.io.PrintWriter"/>
  38679. </method>
  38680. <doc>
  38681. <![CDATA[An exception class for authorization-related issues.
  38682. This class <em>does not</em> provide the stack trace for security purposes.]]>
  38683. </doc>
  38684. </class>
  38685. <!-- end class org.apache.hadoop.security.authorize.AuthorizationException -->
  38686. <!-- start class org.apache.hadoop.security.authorize.PolicyProvider -->
  38687. <class name="PolicyProvider" extends="java.lang.Object"
  38688. abstract="true"
  38689. static="false" final="false" visibility="public"
  38690. deprecated="not deprecated">
  38691. <constructor name="PolicyProvider"
  38692. static="false" final="false" visibility="public"
  38693. deprecated="not deprecated">
  38694. </constructor>
  38695. <method name="getServices" return="org.apache.hadoop.security.authorize.Service[]"
  38696. abstract="true" native="false" synchronized="false"
  38697. static="false" final="false" visibility="public"
  38698. deprecated="not deprecated">
  38699. <doc>
  38700. <![CDATA[Get the {@link Service} definitions from the {@link PolicyProvider}.
  38701. @return the {@link Service} definitions]]>
  38702. </doc>
  38703. </method>
  38704. <field name="POLICY_PROVIDER_CONFIG" type="java.lang.String"
  38705. transient="false" volatile="false"
  38706. static="true" final="true" visibility="public"
  38707. deprecated="not deprecated">
  38708. <doc>
  38709. <![CDATA[Configuration key for the {@link PolicyProvider} implementation.]]>
  38710. </doc>
  38711. </field>
  38712. <field name="DEFAULT_POLICY_PROVIDER" type="org.apache.hadoop.security.authorize.PolicyProvider"
  38713. transient="false" volatile="false"
  38714. static="true" final="true" visibility="public"
  38715. deprecated="not deprecated">
  38716. <doc>
  38717. <![CDATA[A default {@link PolicyProvider} without any defined services.]]>
  38718. </doc>
  38719. </field>
  38720. <doc>
  38721. <![CDATA[{@link PolicyProvider} provides the {@link Service} definitions to the
  38722. security {@link Policy} in effect for Hadoop.]]>
  38723. </doc>
  38724. </class>
  38725. <!-- end class org.apache.hadoop.security.authorize.PolicyProvider -->
  38726. <!-- start class org.apache.hadoop.security.authorize.ProxyUsers -->
  38727. <class name="ProxyUsers" extends="java.lang.Object"
  38728. abstract="false"
  38729. static="false" final="false" visibility="public"
  38730. deprecated="not deprecated">
  38731. <constructor name="ProxyUsers"
  38732. static="false" final="false" visibility="public"
  38733. deprecated="not deprecated">
  38734. </constructor>
  38735. <method name="refreshSuperUserGroupsConfiguration"
  38736. abstract="false" native="false" synchronized="false"
  38737. static="true" final="false" visibility="public"
  38738. deprecated="not deprecated">
  38739. <doc>
  38740. <![CDATA[reread the conf and get new values for "hadoop.proxyuser.*.groups/hosts"]]>
  38741. </doc>
  38742. </method>
  38743. <method name="refreshSuperUserGroupsConfiguration"
  38744. abstract="false" native="false" synchronized="true"
  38745. static="true" final="false" visibility="public"
  38746. deprecated="not deprecated">
  38747. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38748. <doc>
  38749. <![CDATA[refresh configuration
  38750. @param conf]]>
  38751. </doc>
  38752. </method>
  38753. <method name="getProxySuperuserGroupConfKey" return="java.lang.String"
  38754. abstract="false" native="false" synchronized="false"
  38755. static="true" final="false" visibility="public"
  38756. deprecated="not deprecated">
  38757. <param name="userName" type="java.lang.String"/>
  38758. <doc>
  38759. <![CDATA[Returns configuration key for effective user groups allowed for a superuser
  38760. @param userName name of the superuser
  38761. @return configuration key for superuser groups]]>
  38762. </doc>
  38763. </method>
  38764. <method name="getProxySuperuserIpConfKey" return="java.lang.String"
  38765. abstract="false" native="false" synchronized="false"
  38766. static="true" final="false" visibility="public"
  38767. deprecated="not deprecated">
  38768. <param name="userName" type="java.lang.String"/>
  38769. <doc>
  38770. <![CDATA[Return configuration key for superuser ip addresses
  38771. @param userName name of the superuser
  38772. @return configuration key for superuser ip-addresses]]>
  38773. </doc>
  38774. </method>
  38775. <method name="authorize"
  38776. abstract="false" native="false" synchronized="true"
  38777. static="true" final="false" visibility="public"
  38778. deprecated="not deprecated">
  38779. <param name="user" type="org.apache.hadoop.security.UserGroupInformation"/>
  38780. <param name="remoteAddress" type="java.lang.String"/>
  38781. <param name="newConf" type="org.apache.hadoop.conf.Configuration"/>
  38782. <exception name="AuthorizationException" type="org.apache.hadoop.security.authorize.AuthorizationException"/>
  38783. <doc>
  38784. <![CDATA[Authorize the superuser which is doing doAs
  38785. @param user ugi of the effective or proxy user which contains a real user
  38786. @param remoteAddress the ip address of client
  38787. @param newConf configuration
  38788. @throws AuthorizationException]]>
  38789. </doc>
  38790. </method>
  38791. <field name="CONF_GROUPS" type="java.lang.String"
  38792. transient="false" volatile="false"
  38793. static="true" final="true" visibility="public"
  38794. deprecated="not deprecated">
  38795. </field>
  38796. <field name="CONF_HADOOP_PROXYUSER" type="java.lang.String"
  38797. transient="false" volatile="false"
  38798. static="true" final="true" visibility="public"
  38799. deprecated="not deprecated">
  38800. </field>
  38801. <field name="CONF_HADOOP_PROXYUSER_RE" type="java.lang.String"
  38802. transient="false" volatile="false"
  38803. static="true" final="true" visibility="public"
  38804. deprecated="not deprecated">
  38805. </field>
  38806. </class>
  38807. <!-- end class org.apache.hadoop.security.authorize.ProxyUsers -->
  38808. <!-- start interface org.apache.hadoop.security.authorize.RefreshAuthorizationPolicyProtocol -->
  38809. <interface name="RefreshAuthorizationPolicyProtocol" abstract="true"
  38810. static="false" final="false" visibility="public"
  38811. deprecated="not deprecated">
  38812. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  38813. <method name="refreshServiceAcl"
  38814. abstract="false" native="false" synchronized="false"
  38815. static="false" final="false" visibility="public"
  38816. deprecated="not deprecated">
  38817. <exception name="IOException" type="java.io.IOException"/>
  38818. <doc>
  38819. <![CDATA[Refresh the service-level authorization policy in-effect.
  38820. @throws IOException]]>
  38821. </doc>
  38822. </method>
  38823. <field name="versionID" type="long"
  38824. transient="false" volatile="false"
  38825. static="true" final="true" visibility="public"
  38826. deprecated="not deprecated">
  38827. <doc>
  38828. <![CDATA[Version 1: Initial version]]>
  38829. </doc>
  38830. </field>
  38831. <doc>
  38832. <![CDATA[Protocol which is used to refresh the authorization policy in use currently.]]>
  38833. </doc>
  38834. </interface>
  38835. <!-- end interface org.apache.hadoop.security.authorize.RefreshAuthorizationPolicyProtocol -->
  38836. <!-- start class org.apache.hadoop.security.authorize.Service -->
  38837. <class name="Service" extends="java.lang.Object"
  38838. abstract="false"
  38839. static="false" final="false" visibility="public"
  38840. deprecated="not deprecated">
  38841. <constructor name="Service" type="java.lang.String, java.lang.Class"
  38842. static="false" final="false" visibility="public"
  38843. deprecated="not deprecated">
  38844. </constructor>
  38845. <method name="getServiceKey" return="java.lang.String"
  38846. abstract="false" native="false" synchronized="false"
  38847. static="false" final="false" visibility="public"
  38848. deprecated="not deprecated">
  38849. <doc>
  38850. <![CDATA[Get the configuration key for the service.
  38851. @return the configuration key for the service]]>
  38852. </doc>
  38853. </method>
  38854. <method name="getProtocol" return="java.lang.Class"
  38855. abstract="false" native="false" synchronized="false"
  38856. static="false" final="false" visibility="public"
  38857. deprecated="not deprecated">
  38858. <doc>
  38859. <![CDATA[Get the protocol for the service
  38860. @return the {@link Class} for the protocol]]>
  38861. </doc>
  38862. </method>
  38863. <doc>
  38864. <![CDATA[An abstract definition of <em>service</em> as related to
  38865. Service Level Authorization for Hadoop.
  38866. Each service defines it's configuration key and also the necessary
  38867. {@link Permission} required to access the service.]]>
  38868. </doc>
  38869. </class>
  38870. <!-- end class org.apache.hadoop.security.authorize.Service -->
  38871. <!-- start class org.apache.hadoop.security.authorize.ServiceAuthorizationManager -->
  38872. <class name="ServiceAuthorizationManager" extends="java.lang.Object"
  38873. abstract="false"
  38874. static="false" final="false" visibility="public"
  38875. deprecated="not deprecated">
  38876. <constructor name="ServiceAuthorizationManager"
  38877. static="false" final="false" visibility="public"
  38878. deprecated="not deprecated">
  38879. </constructor>
  38880. <method name="authorize"
  38881. abstract="false" native="false" synchronized="false"
  38882. static="true" final="false" visibility="public"
  38883. deprecated="not deprecated">
  38884. <param name="user" type="org.apache.hadoop.security.UserGroupInformation"/>
  38885. <param name="protocol" type="java.lang.Class"/>
  38886. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38887. <param name="addr" type="java.net.InetAddress"/>
  38888. <exception name="AuthorizationException" type="org.apache.hadoop.security.authorize.AuthorizationException"/>
  38889. <doc>
  38890. <![CDATA[Authorize the user to access the protocol being used.
  38891. @param user user accessing the service
  38892. @param protocol service being accessed
  38893. @param conf configuration to use
  38894. @param addr InetAddress of the client
  38895. @throws AuthorizationException on authorization failure]]>
  38896. </doc>
  38897. </method>
  38898. <method name="refresh"
  38899. abstract="false" native="false" synchronized="true"
  38900. static="true" final="false" visibility="public"
  38901. deprecated="not deprecated">
  38902. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  38903. <param name="provider" type="org.apache.hadoop.security.authorize.PolicyProvider"/>
  38904. </method>
  38905. <field name="SERVICE_AUTHORIZATION_CONFIG" type="java.lang.String"
  38906. transient="false" volatile="false"
  38907. static="true" final="true" visibility="public"
  38908. deprecated="Use
  38909. {@link CommonConfigurationKeys#HADOOP_SECURITY_AUTHORIZATION}
  38910. instead.">
  38911. <doc>
  38912. <![CDATA[Configuration key for controlling service-level authorization for Hadoop.
  38913. @deprecated Use
  38914. {@link CommonConfigurationKeys#HADOOP_SECURITY_AUTHORIZATION}
  38915. instead.]]>
  38916. </doc>
  38917. </field>
  38918. <doc>
  38919. <![CDATA[An authorization manager which handles service-level authorization
  38920. for incoming service requests.]]>
  38921. </doc>
  38922. </class>
  38923. <!-- end class org.apache.hadoop.security.authorize.ServiceAuthorizationManager -->
  38924. </package>
  38925. <package name="org.apache.hadoop.security.token">
  38926. <!-- start class org.apache.hadoop.security.token.SecretManager -->
  38927. <class name="SecretManager" extends="java.lang.Object"
  38928. abstract="true"
  38929. static="false" final="false" visibility="public"
  38930. deprecated="not deprecated">
  38931. <constructor name="SecretManager"
  38932. static="false" final="false" visibility="public"
  38933. deprecated="not deprecated">
  38934. </constructor>
  38935. <method name="createPassword" return="byte[]"
  38936. abstract="true" native="false" synchronized="false"
  38937. static="false" final="false" visibility="protected"
  38938. deprecated="not deprecated">
  38939. <param name="identifier" type="org.apache.hadoop.security.token.TokenIdentifier"/>
  38940. <doc>
  38941. <![CDATA[Create the password for the given identifier.
  38942. identifier may be modified inside this method.
  38943. @param identifier the identifier to use
  38944. @return the new password]]>
  38945. </doc>
  38946. </method>
  38947. <method name="retrievePassword" return="byte[]"
  38948. abstract="true" native="false" synchronized="false"
  38949. static="false" final="false" visibility="public"
  38950. deprecated="not deprecated">
  38951. <param name="identifier" type="org.apache.hadoop.security.token.TokenIdentifier"/>
  38952. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  38953. <doc>
  38954. <![CDATA[Retrieve the password for the given token identifier. Should check the date
  38955. or registry to make sure the token hasn't expired or been revoked. Returns
  38956. the relevant password.
  38957. @param identifier the identifier to validate
  38958. @return the password to use
  38959. @throws InvalidToken the token was invalid]]>
  38960. </doc>
  38961. </method>
  38962. <method name="createIdentifier" return="org.apache.hadoop.security.token.TokenIdentifier"
  38963. abstract="true" native="false" synchronized="false"
  38964. static="false" final="false" visibility="public"
  38965. deprecated="not deprecated">
  38966. <doc>
  38967. <![CDATA[Create an empty token identifier.
  38968. @return the newly created empty token identifier]]>
  38969. </doc>
  38970. </method>
  38971. <method name="generateSecret" return="javax.crypto.SecretKey"
  38972. abstract="false" native="false" synchronized="false"
  38973. static="false" final="false" visibility="protected"
  38974. deprecated="not deprecated">
  38975. <doc>
  38976. <![CDATA[Generate a new random secret key.
  38977. @return the new key]]>
  38978. </doc>
  38979. </method>
  38980. <method name="createPassword" return="byte[]"
  38981. abstract="false" native="false" synchronized="false"
  38982. static="true" final="false" visibility="protected"
  38983. deprecated="not deprecated">
  38984. <param name="identifier" type="byte[]"/>
  38985. <param name="key" type="javax.crypto.SecretKey"/>
  38986. <doc>
  38987. <![CDATA[Compute HMAC of the identifier using the secret key and return the
  38988. output as password
  38989. @param identifier the bytes of the identifier
  38990. @param key the secret key
  38991. @return the bytes of the generated password]]>
  38992. </doc>
  38993. </method>
  38994. <method name="createSecretKey" return="javax.crypto.SecretKey"
  38995. abstract="false" native="false" synchronized="false"
  38996. static="true" final="false" visibility="protected"
  38997. deprecated="not deprecated">
  38998. <param name="key" type="byte[]"/>
  38999. <doc>
  39000. <![CDATA[Convert the byte[] to a secret key
  39001. @param key the byte[] to create a secret key from
  39002. @return the secret key]]>
  39003. </doc>
  39004. </method>
  39005. <doc>
  39006. <![CDATA[The server-side secret manager for each token type.
  39007. @param <T> The type of the token identifier]]>
  39008. </doc>
  39009. </class>
  39010. <!-- end class org.apache.hadoop.security.token.SecretManager -->
  39011. <!-- start class org.apache.hadoop.security.token.SecretManager.InvalidToken -->
  39012. <class name="SecretManager.InvalidToken" extends="java.io.IOException"
  39013. abstract="false"
  39014. static="true" final="false" visibility="public"
  39015. deprecated="not deprecated">
  39016. <constructor name="SecretManager.InvalidToken" type="java.lang.String"
  39017. static="false" final="false" visibility="public"
  39018. deprecated="not deprecated">
  39019. </constructor>
  39020. <doc>
  39021. <![CDATA[The token was invalid and the message explains why.]]>
  39022. </doc>
  39023. </class>
  39024. <!-- end class org.apache.hadoop.security.token.SecretManager.InvalidToken -->
  39025. <!-- start class org.apache.hadoop.security.token.Token -->
  39026. <class name="Token" extends="java.lang.Object"
  39027. abstract="false"
  39028. static="false" final="false" visibility="public"
  39029. deprecated="not deprecated">
  39030. <implements name="org.apache.hadoop.io.Writable"/>
  39031. <constructor name="Token" type="org.apache.hadoop.security.token.TokenIdentifier, org.apache.hadoop.security.token.SecretManager"
  39032. static="false" final="false" visibility="public"
  39033. deprecated="not deprecated">
  39034. <doc>
  39035. <![CDATA[Construct a token given a token identifier and a secret manager for the
  39036. type of the token identifier.
  39037. @param id the token identifier
  39038. @param mgr the secret manager]]>
  39039. </doc>
  39040. </constructor>
  39041. <constructor name="Token" type="byte[], byte[], org.apache.hadoop.io.Text, org.apache.hadoop.io.Text"
  39042. static="false" final="false" visibility="public"
  39043. deprecated="not deprecated">
  39044. <doc>
  39045. <![CDATA[Construct a token from the components.
  39046. @param identifier the token identifier
  39047. @param password the token's password
  39048. @param kind the kind of token
  39049. @param service the service for this token]]>
  39050. </doc>
  39051. </constructor>
  39052. <constructor name="Token"
  39053. static="false" final="false" visibility="public"
  39054. deprecated="not deprecated">
  39055. <doc>
  39056. <![CDATA[Default constructor]]>
  39057. </doc>
  39058. </constructor>
  39059. <constructor name="Token" type="org.apache.hadoop.security.token.Token"
  39060. static="false" final="false" visibility="public"
  39061. deprecated="not deprecated">
  39062. <doc>
  39063. <![CDATA[Clone a token.
  39064. @param other the token to clone]]>
  39065. </doc>
  39066. </constructor>
  39067. <method name="getIdentifier" return="byte[]"
  39068. abstract="false" native="false" synchronized="false"
  39069. static="false" final="false" visibility="public"
  39070. deprecated="not deprecated">
  39071. <doc>
  39072. <![CDATA[Get the token identifier
  39073. @return the token identifier]]>
  39074. </doc>
  39075. </method>
  39076. <method name="getPassword" return="byte[]"
  39077. abstract="false" native="false" synchronized="false"
  39078. static="false" final="false" visibility="public"
  39079. deprecated="not deprecated">
  39080. <doc>
  39081. <![CDATA[Get the token password/secret
  39082. @return the token password/secret]]>
  39083. </doc>
  39084. </method>
  39085. <method name="getKind" return="org.apache.hadoop.io.Text"
  39086. abstract="false" native="false" synchronized="false"
  39087. static="false" final="false" visibility="public"
  39088. deprecated="not deprecated">
  39089. <doc>
  39090. <![CDATA[Get the token kind
  39091. @return the kind of the token]]>
  39092. </doc>
  39093. </method>
  39094. <method name="setKind"
  39095. abstract="false" native="false" synchronized="true"
  39096. static="false" final="false" visibility="public"
  39097. deprecated="not deprecated">
  39098. <param name="newKind" type="org.apache.hadoop.io.Text"/>
  39099. <doc>
  39100. <![CDATA[Set the token kind. This is only intended to be used by services that
  39101. wrap another service's token, such as HFTP wrapping HDFS.
  39102. @param newKind]]>
  39103. </doc>
  39104. </method>
  39105. <method name="getService" return="org.apache.hadoop.io.Text"
  39106. abstract="false" native="false" synchronized="false"
  39107. static="false" final="false" visibility="public"
  39108. deprecated="not deprecated">
  39109. <doc>
  39110. <![CDATA[Get the service on which the token is supposed to be used
  39111. @return the service name]]>
  39112. </doc>
  39113. </method>
  39114. <method name="setService"
  39115. abstract="false" native="false" synchronized="false"
  39116. static="false" final="false" visibility="public"
  39117. deprecated="not deprecated">
  39118. <param name="newService" type="org.apache.hadoop.io.Text"/>
  39119. <doc>
  39120. <![CDATA[Set the service on which the token is supposed to be used
  39121. @param newService the service name]]>
  39122. </doc>
  39123. </method>
  39124. <method name="readFields"
  39125. abstract="false" native="false" synchronized="false"
  39126. static="false" final="false" visibility="public"
  39127. deprecated="not deprecated">
  39128. <param name="in" type="java.io.DataInput"/>
  39129. <exception name="IOException" type="java.io.IOException"/>
  39130. <doc>
  39131. <![CDATA[{@inheritDoc}]]>
  39132. </doc>
  39133. </method>
  39134. <method name="write"
  39135. abstract="false" native="false" synchronized="false"
  39136. static="false" final="false" visibility="public"
  39137. deprecated="not deprecated">
  39138. <param name="out" type="java.io.DataOutput"/>
  39139. <exception name="IOException" type="java.io.IOException"/>
  39140. <doc>
  39141. <![CDATA[{@inheritDoc}]]>
  39142. </doc>
  39143. </method>
  39144. <method name="encodeToUrlString" return="java.lang.String"
  39145. abstract="false" native="false" synchronized="false"
  39146. static="false" final="false" visibility="public"
  39147. deprecated="not deprecated">
  39148. <exception name="IOException" type="java.io.IOException"/>
  39149. <doc>
  39150. <![CDATA[Encode this token as a url safe string
  39151. @return the encoded string
  39152. @throws IOException]]>
  39153. </doc>
  39154. </method>
  39155. <method name="decodeFromUrlString"
  39156. abstract="false" native="false" synchronized="false"
  39157. static="false" final="false" visibility="public"
  39158. deprecated="not deprecated">
  39159. <param name="newValue" type="java.lang.String"/>
  39160. <exception name="IOException" type="java.io.IOException"/>
  39161. <doc>
  39162. <![CDATA[Decode the given url safe string into this token.
  39163. @param newValue the encoded string
  39164. @throws IOException]]>
  39165. </doc>
  39166. </method>
  39167. <method name="equals" return="boolean"
  39168. abstract="false" native="false" synchronized="false"
  39169. static="false" final="false" visibility="public"
  39170. deprecated="not deprecated">
  39171. <param name="right" type="java.lang.Object"/>
  39172. </method>
  39173. <method name="hashCode" return="int"
  39174. abstract="false" native="false" synchronized="false"
  39175. static="false" final="false" visibility="public"
  39176. deprecated="not deprecated">
  39177. </method>
  39178. <method name="toString" return="java.lang.String"
  39179. abstract="false" native="false" synchronized="false"
  39180. static="false" final="false" visibility="public"
  39181. deprecated="not deprecated">
  39182. </method>
  39183. <method name="isManaged" return="boolean"
  39184. abstract="false" native="false" synchronized="false"
  39185. static="false" final="false" visibility="public"
  39186. deprecated="not deprecated">
  39187. <exception name="IOException" type="java.io.IOException"/>
  39188. <doc>
  39189. <![CDATA[Is this token managed so that it can be renewed or cancelled?
  39190. @return true, if it can be renewed and cancelled.]]>
  39191. </doc>
  39192. </method>
  39193. <method name="renew" return="long"
  39194. abstract="false" native="false" synchronized="false"
  39195. static="false" final="false" visibility="public"
  39196. deprecated="not deprecated">
  39197. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  39198. <exception name="IOException" type="java.io.IOException"/>
  39199. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  39200. <doc>
  39201. <![CDATA[Renew this delegation token
  39202. @return the new expiration time
  39203. @throws IOException
  39204. @throws InterruptedException]]>
  39205. </doc>
  39206. </method>
  39207. <method name="cancel"
  39208. abstract="false" native="false" synchronized="false"
  39209. static="false" final="false" visibility="public"
  39210. deprecated="not deprecated">
  39211. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  39212. <exception name="IOException" type="java.io.IOException"/>
  39213. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  39214. <doc>
  39215. <![CDATA[Cancel this delegation token
  39216. @throws IOException
  39217. @throws InterruptedException]]>
  39218. </doc>
  39219. </method>
  39220. <field name="LOG" type="org.apache.commons.logging.Log"
  39221. transient="false" volatile="false"
  39222. static="true" final="true" visibility="public"
  39223. deprecated="not deprecated">
  39224. </field>
  39225. <doc>
  39226. <![CDATA[The client-side form of the token.]]>
  39227. </doc>
  39228. </class>
  39229. <!-- end class org.apache.hadoop.security.token.Token -->
  39230. <!-- start class org.apache.hadoop.security.token.Token.TrivialRenewer -->
  39231. <class name="Token.TrivialRenewer" extends="org.apache.hadoop.security.token.TokenRenewer"
  39232. abstract="false"
  39233. static="true" final="false" visibility="public"
  39234. deprecated="not deprecated">
  39235. <constructor name="Token.TrivialRenewer"
  39236. static="false" final="false" visibility="public"
  39237. deprecated="not deprecated">
  39238. </constructor>
  39239. <method name="getKind" return="org.apache.hadoop.io.Text"
  39240. abstract="false" native="false" synchronized="false"
  39241. static="false" final="false" visibility="protected"
  39242. deprecated="not deprecated">
  39243. </method>
  39244. <method name="handleKind" return="boolean"
  39245. abstract="false" native="false" synchronized="false"
  39246. static="false" final="false" visibility="public"
  39247. deprecated="not deprecated">
  39248. <param name="kind" type="org.apache.hadoop.io.Text"/>
  39249. </method>
  39250. <method name="isManaged" return="boolean"
  39251. abstract="false" native="false" synchronized="false"
  39252. static="false" final="false" visibility="public"
  39253. deprecated="not deprecated">
  39254. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  39255. </method>
  39256. <method name="renew" return="long"
  39257. abstract="false" native="false" synchronized="false"
  39258. static="false" final="false" visibility="public"
  39259. deprecated="not deprecated">
  39260. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  39261. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  39262. </method>
  39263. <method name="cancel"
  39264. abstract="false" native="false" synchronized="false"
  39265. static="false" final="false" visibility="public"
  39266. deprecated="not deprecated">
  39267. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  39268. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  39269. <exception name="IOException" type="java.io.IOException"/>
  39270. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  39271. </method>
  39272. <doc>
  39273. <![CDATA[A trivial renewer for token kinds that aren't managed. Sub-classes need
  39274. to implement getKind for their token kind.]]>
  39275. </doc>
  39276. </class>
  39277. <!-- end class org.apache.hadoop.security.token.Token.TrivialRenewer -->
  39278. <!-- start class org.apache.hadoop.security.token.TokenIdentifier -->
  39279. <class name="TokenIdentifier" extends="java.lang.Object"
  39280. abstract="true"
  39281. static="false" final="false" visibility="public"
  39282. deprecated="not deprecated">
  39283. <implements name="org.apache.hadoop.io.Writable"/>
  39284. <constructor name="TokenIdentifier"
  39285. static="false" final="false" visibility="public"
  39286. deprecated="not deprecated">
  39287. </constructor>
  39288. <method name="getKind" return="org.apache.hadoop.io.Text"
  39289. abstract="true" native="false" synchronized="false"
  39290. static="false" final="false" visibility="public"
  39291. deprecated="not deprecated">
  39292. <doc>
  39293. <![CDATA[Get the token kind
  39294. @return the kind of the token]]>
  39295. </doc>
  39296. </method>
  39297. <method name="getUser" return="org.apache.hadoop.security.UserGroupInformation"
  39298. abstract="true" native="false" synchronized="false"
  39299. static="false" final="false" visibility="public"
  39300. deprecated="not deprecated">
  39301. <doc>
  39302. <![CDATA[Get the Ugi with the username encoded in the token identifier
  39303. @return the username. null is returned if username in the identifier is
  39304. empty or null.]]>
  39305. </doc>
  39306. </method>
  39307. <method name="getBytes" return="byte[]"
  39308. abstract="false" native="false" synchronized="false"
  39309. static="false" final="false" visibility="public"
  39310. deprecated="not deprecated">
  39311. <doc>
  39312. <![CDATA[Get the bytes for the token identifier
  39313. @return the bytes of the identifier]]>
  39314. </doc>
  39315. </method>
  39316. <doc>
  39317. <![CDATA[An identifier that identifies a token, may contain public information
  39318. about a token, including its kind (or type).]]>
  39319. </doc>
  39320. </class>
  39321. <!-- end class org.apache.hadoop.security.token.TokenIdentifier -->
  39322. <!-- start interface org.apache.hadoop.security.token.TokenInfo -->
  39323. <interface name="TokenInfo" abstract="true"
  39324. static="false" final="false" visibility="public"
  39325. deprecated="not deprecated">
  39326. <implements name="java.lang.annotation.Annotation"/>
  39327. <method name="value" return="java.lang.Class"
  39328. abstract="false" native="false" synchronized="false"
  39329. static="false" final="false" visibility="public"
  39330. deprecated="not deprecated">
  39331. <doc>
  39332. <![CDATA[The type of TokenSelector to be used]]>
  39333. </doc>
  39334. </method>
  39335. <doc>
  39336. <![CDATA[Indicates Token related information to be used]]>
  39337. </doc>
  39338. </interface>
  39339. <!-- end interface org.apache.hadoop.security.token.TokenInfo -->
  39340. <!-- start class org.apache.hadoop.security.token.TokenRenewer -->
  39341. <class name="TokenRenewer" extends="java.lang.Object"
  39342. abstract="true"
  39343. static="false" final="false" visibility="public"
  39344. deprecated="not deprecated">
  39345. <constructor name="TokenRenewer"
  39346. static="false" final="false" visibility="public"
  39347. deprecated="not deprecated">
  39348. </constructor>
  39349. <method name="handleKind" return="boolean"
  39350. abstract="true" native="false" synchronized="false"
  39351. static="false" final="false" visibility="public"
  39352. deprecated="not deprecated">
  39353. <param name="kind" type="org.apache.hadoop.io.Text"/>
  39354. <doc>
  39355. <![CDATA[Does this renewer handle this kind of token?
  39356. @param kind the kind of the token
  39357. @return true if this renewer can renew it]]>
  39358. </doc>
  39359. </method>
  39360. <method name="isManaged" return="boolean"
  39361. abstract="true" native="false" synchronized="false"
  39362. static="false" final="false" visibility="public"
  39363. deprecated="not deprecated">
  39364. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  39365. <exception name="IOException" type="java.io.IOException"/>
  39366. <doc>
  39367. <![CDATA[Is the given token managed? Only managed tokens may be renewed or
  39368. cancelled.
  39369. @param token the token being checked
  39370. @return true if the token may be renewed or cancelled
  39371. @throws IOException]]>
  39372. </doc>
  39373. </method>
  39374. <method name="renew" return="long"
  39375. abstract="true" native="false" synchronized="false"
  39376. static="false" final="false" visibility="public"
  39377. deprecated="not deprecated">
  39378. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  39379. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  39380. <exception name="IOException" type="java.io.IOException"/>
  39381. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  39382. <doc>
  39383. <![CDATA[Renew the given token.
  39384. @return the new expiration time
  39385. @throws IOException
  39386. @throws InterruptedException]]>
  39387. </doc>
  39388. </method>
  39389. <method name="cancel"
  39390. abstract="true" native="false" synchronized="false"
  39391. static="false" final="false" visibility="public"
  39392. deprecated="not deprecated">
  39393. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  39394. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  39395. <exception name="IOException" type="java.io.IOException"/>
  39396. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  39397. <doc>
  39398. <![CDATA[Cancel the given token
  39399. @throws IOException
  39400. @throws InterruptedException]]>
  39401. </doc>
  39402. </method>
  39403. <doc>
  39404. <![CDATA[This is the interface for plugins that handle tokens.]]>
  39405. </doc>
  39406. </class>
  39407. <!-- end class org.apache.hadoop.security.token.TokenRenewer -->
  39408. <!-- start interface org.apache.hadoop.security.token.TokenSelector -->
  39409. <interface name="TokenSelector" abstract="true"
  39410. static="false" final="false" visibility="public"
  39411. deprecated="not deprecated">
  39412. <method name="selectToken" return="org.apache.hadoop.security.token.Token"
  39413. abstract="false" native="false" synchronized="false"
  39414. static="false" final="false" visibility="public"
  39415. deprecated="not deprecated">
  39416. <param name="service" type="org.apache.hadoop.io.Text"/>
  39417. <param name="tokens" type="java.util.Collection"/>
  39418. </method>
  39419. <doc>
  39420. <![CDATA[Select token of type T from tokens for use with named service
  39421. @param <T>
  39422. T extends TokenIdentifier]]>
  39423. </doc>
  39424. </interface>
  39425. <!-- end interface org.apache.hadoop.security.token.TokenSelector -->
  39426. </package>
  39427. <package name="org.apache.hadoop.security.token.delegation">
  39428. <!-- start class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier -->
  39429. <class name="AbstractDelegationTokenIdentifier" extends="org.apache.hadoop.security.token.TokenIdentifier"
  39430. abstract="true"
  39431. static="false" final="false" visibility="public"
  39432. deprecated="not deprecated">
  39433. <constructor name="AbstractDelegationTokenIdentifier"
  39434. static="false" final="false" visibility="public"
  39435. deprecated="not deprecated">
  39436. </constructor>
  39437. <constructor name="AbstractDelegationTokenIdentifier" type="org.apache.hadoop.io.Text, org.apache.hadoop.io.Text, org.apache.hadoop.io.Text"
  39438. static="false" final="false" visibility="public"
  39439. deprecated="not deprecated">
  39440. </constructor>
  39441. <method name="getKind" return="org.apache.hadoop.io.Text"
  39442. abstract="true" native="false" synchronized="false"
  39443. static="false" final="false" visibility="public"
  39444. deprecated="not deprecated">
  39445. </method>
  39446. <method name="getUser" return="org.apache.hadoop.security.UserGroupInformation"
  39447. abstract="false" native="false" synchronized="false"
  39448. static="false" final="false" visibility="public"
  39449. deprecated="not deprecated">
  39450. <doc>
  39451. <![CDATA[Get the username encoded in the token identifier
  39452. @return the username or owner]]>
  39453. </doc>
  39454. </method>
  39455. <method name="getRenewer" return="org.apache.hadoop.io.Text"
  39456. abstract="false" native="false" synchronized="false"
  39457. static="false" final="false" visibility="public"
  39458. deprecated="not deprecated">
  39459. </method>
  39460. <method name="setIssueDate"
  39461. abstract="false" native="false" synchronized="false"
  39462. static="false" final="false" visibility="public"
  39463. deprecated="not deprecated">
  39464. <param name="issueDate" type="long"/>
  39465. </method>
  39466. <method name="getIssueDate" return="long"
  39467. abstract="false" native="false" synchronized="false"
  39468. static="false" final="false" visibility="public"
  39469. deprecated="not deprecated">
  39470. </method>
  39471. <method name="setMaxDate"
  39472. abstract="false" native="false" synchronized="false"
  39473. static="false" final="false" visibility="public"
  39474. deprecated="not deprecated">
  39475. <param name="maxDate" type="long"/>
  39476. </method>
  39477. <method name="getMaxDate" return="long"
  39478. abstract="false" native="false" synchronized="false"
  39479. static="false" final="false" visibility="public"
  39480. deprecated="not deprecated">
  39481. </method>
  39482. <method name="setSequenceNumber"
  39483. abstract="false" native="false" synchronized="false"
  39484. static="false" final="false" visibility="public"
  39485. deprecated="not deprecated">
  39486. <param name="seqNum" type="int"/>
  39487. </method>
  39488. <method name="getSequenceNumber" return="int"
  39489. abstract="false" native="false" synchronized="false"
  39490. static="false" final="false" visibility="public"
  39491. deprecated="not deprecated">
  39492. </method>
  39493. <method name="setMasterKeyId"
  39494. abstract="false" native="false" synchronized="false"
  39495. static="false" final="false" visibility="public"
  39496. deprecated="not deprecated">
  39497. <param name="newId" type="int"/>
  39498. </method>
  39499. <method name="getMasterKeyId" return="int"
  39500. abstract="false" native="false" synchronized="false"
  39501. static="false" final="false" visibility="public"
  39502. deprecated="not deprecated">
  39503. </method>
  39504. <method name="equals" return="boolean"
  39505. abstract="false" native="false" synchronized="false"
  39506. static="false" final="false" visibility="public"
  39507. deprecated="not deprecated">
  39508. <param name="obj" type="java.lang.Object"/>
  39509. <doc>
  39510. <![CDATA[{@inheritDoc}]]>
  39511. </doc>
  39512. </method>
  39513. <method name="hashCode" return="int"
  39514. abstract="false" native="false" synchronized="false"
  39515. static="false" final="false" visibility="public"
  39516. deprecated="not deprecated">
  39517. <doc>
  39518. <![CDATA[{@inheritDoc}]]>
  39519. </doc>
  39520. </method>
  39521. <method name="readFields"
  39522. abstract="false" native="false" synchronized="false"
  39523. static="false" final="false" visibility="public"
  39524. deprecated="not deprecated">
  39525. <param name="in" type="java.io.DataInput"/>
  39526. <exception name="IOException" type="java.io.IOException"/>
  39527. </method>
  39528. <method name="write"
  39529. abstract="false" native="false" synchronized="false"
  39530. static="false" final="false" visibility="public"
  39531. deprecated="not deprecated">
  39532. <param name="out" type="java.io.DataOutput"/>
  39533. <exception name="IOException" type="java.io.IOException"/>
  39534. </method>
  39535. <method name="toString" return="java.lang.String"
  39536. abstract="false" native="false" synchronized="false"
  39537. static="false" final="false" visibility="public"
  39538. deprecated="not deprecated">
  39539. </method>
  39540. </class>
  39541. <!-- end class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier -->
  39542. <!-- start class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager -->
  39543. <class name="AbstractDelegationTokenSecretManager" extends="org.apache.hadoop.security.token.SecretManager"
  39544. abstract="true"
  39545. static="false" final="false" visibility="public"
  39546. deprecated="not deprecated">
  39547. <constructor name="AbstractDelegationTokenSecretManager" type="long, long, long, long"
  39548. static="false" final="false" visibility="public"
  39549. deprecated="not deprecated">
  39550. </constructor>
  39551. <method name="startThreads"
  39552. abstract="false" native="false" synchronized="true"
  39553. static="false" final="false" visibility="public"
  39554. deprecated="not deprecated">
  39555. <exception name="IOException" type="java.io.IOException"/>
  39556. <doc>
  39557. <![CDATA[should be called before this object is used]]>
  39558. </doc>
  39559. </method>
  39560. <method name="isRunning" return="boolean"
  39561. abstract="false" native="false" synchronized="true"
  39562. static="false" final="false" visibility="public"
  39563. deprecated="not deprecated">
  39564. <doc>
  39565. <![CDATA[is secretMgr running
  39566. @return true if secret mgr is running]]>
  39567. </doc>
  39568. </method>
  39569. <method name="addKey"
  39570. abstract="false" native="false" synchronized="true"
  39571. static="false" final="false" visibility="public"
  39572. deprecated="not deprecated">
  39573. <param name="key" type="org.apache.hadoop.security.token.delegation.DelegationKey"/>
  39574. <exception name="IOException" type="java.io.IOException"/>
  39575. <doc>
  39576. <![CDATA[Add a previously used master key to cache (when NN restarts),
  39577. should be called before activate().]]>
  39578. </doc>
  39579. </method>
  39580. <method name="getAllKeys" return="org.apache.hadoop.security.token.delegation.DelegationKey[]"
  39581. abstract="false" native="false" synchronized="true"
  39582. static="false" final="false" visibility="public"
  39583. deprecated="not deprecated">
  39584. </method>
  39585. <method name="logUpdateMasterKey"
  39586. abstract="false" native="false" synchronized="false"
  39587. static="false" final="false" visibility="protected"
  39588. deprecated="not deprecated">
  39589. <param name="key" type="org.apache.hadoop.security.token.delegation.DelegationKey"/>
  39590. <exception name="IOException" type="java.io.IOException"/>
  39591. </method>
  39592. <method name="createPassword" return="byte[]"
  39593. abstract="false" native="false" synchronized="true"
  39594. static="false" final="false" visibility="protected"
  39595. deprecated="not deprecated">
  39596. <param name="identifier" type="org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier"/>
  39597. </method>
  39598. <method name="retrievePassword" return="byte[]"
  39599. abstract="false" native="false" synchronized="true"
  39600. static="false" final="false" visibility="public"
  39601. deprecated="not deprecated">
  39602. <param name="identifier" type="org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier"/>
  39603. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  39604. </method>
  39605. <method name="verifyToken"
  39606. abstract="false" native="false" synchronized="true"
  39607. static="false" final="false" visibility="public"
  39608. deprecated="not deprecated">
  39609. <param name="identifier" type="org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier"/>
  39610. <param name="password" type="byte[]"/>
  39611. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  39612. <doc>
  39613. <![CDATA[Verifies that the given identifier and password are valid and match.
  39614. @param identifier Token identifier.
  39615. @param password Password in the token.
  39616. @throws InvalidToken]]>
  39617. </doc>
  39618. </method>
  39619. <method name="renewToken" return="long"
  39620. abstract="false" native="false" synchronized="true"
  39621. static="false" final="false" visibility="public"
  39622. deprecated="not deprecated">
  39623. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  39624. <param name="renewer" type="java.lang.String"/>
  39625. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  39626. <exception name="IOException" type="java.io.IOException"/>
  39627. <doc>
  39628. <![CDATA[Renew a delegation token.
  39629. @param token the token to renew
  39630. @param renewer the full principal name of the user doing the renewal
  39631. @return the new expiration time
  39632. @throws InvalidToken if the token is invalid
  39633. @throws AccessControlException if the user can't renew token]]>
  39634. </doc>
  39635. </method>
  39636. <method name="cancelToken" return="org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier"
  39637. abstract="false" native="false" synchronized="true"
  39638. static="false" final="false" visibility="public"
  39639. deprecated="not deprecated">
  39640. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  39641. <param name="canceller" type="java.lang.String"/>
  39642. <exception name="IOException" type="java.io.IOException"/>
  39643. <doc>
  39644. <![CDATA[Cancel a token by removing it from cache.
  39645. @return Identifier of the canceled token
  39646. @throws InvalidToken for invalid token
  39647. @throws AccessControlException if the user isn't allowed to cancel]]>
  39648. </doc>
  39649. </method>
  39650. <method name="createSecretKey" return="javax.crypto.SecretKey"
  39651. abstract="false" native="false" synchronized="false"
  39652. static="true" final="false" visibility="public"
  39653. deprecated="not deprecated">
  39654. <param name="key" type="byte[]"/>
  39655. <doc>
  39656. <![CDATA[Convert the byte[] to a secret key
  39657. @param key the byte[] to create the secret key from
  39658. @return the secret key]]>
  39659. </doc>
  39660. </method>
  39661. <method name="stopThreads"
  39662. abstract="false" native="false" synchronized="false"
  39663. static="false" final="false" visibility="public"
  39664. deprecated="not deprecated">
  39665. </method>
  39666. <field name="currentTokens" type="java.util.Map"
  39667. transient="false" volatile="false"
  39668. static="false" final="true" visibility="protected"
  39669. deprecated="not deprecated">
  39670. <doc>
  39671. <![CDATA[Cache of currently valid tokens, mapping from DelegationTokenIdentifier
  39672. to DelegationTokenInformation. Protected by this object lock.]]>
  39673. </doc>
  39674. </field>
  39675. <field name="delegationTokenSequenceNumber" type="int"
  39676. transient="false" volatile="false"
  39677. static="false" final="false" visibility="protected"
  39678. deprecated="not deprecated">
  39679. <doc>
  39680. <![CDATA[Sequence number to create DelegationTokenIdentifier.
  39681. Protected by this object lock.]]>
  39682. </doc>
  39683. </field>
  39684. <field name="allKeys" type="java.util.Map"
  39685. transient="false" volatile="false"
  39686. static="false" final="true" visibility="protected"
  39687. deprecated="not deprecated">
  39688. <doc>
  39689. <![CDATA[Access to allKeys is protected by this object lock]]>
  39690. </doc>
  39691. </field>
  39692. <field name="currentId" type="int"
  39693. transient="false" volatile="false"
  39694. static="false" final="false" visibility="protected"
  39695. deprecated="not deprecated">
  39696. <doc>
  39697. <![CDATA[Access to currentId is protected by this object lock.]]>
  39698. </doc>
  39699. </field>
  39700. <field name="running" type="boolean"
  39701. transient="false" volatile="true"
  39702. static="false" final="false" visibility="protected"
  39703. deprecated="not deprecated">
  39704. </field>
  39705. <field name="noInterruptsLock" type="java.lang.Object"
  39706. transient="false" volatile="false"
  39707. static="false" final="false" visibility="protected"
  39708. deprecated="not deprecated">
  39709. <doc>
  39710. <![CDATA[If the delegation token update thread holds this lock, it will
  39711. not get interrupted.]]>
  39712. </doc>
  39713. </field>
  39714. </class>
  39715. <!-- end class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager -->
  39716. <!-- start class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager.DelegationTokenInformation -->
  39717. <class name="AbstractDelegationTokenSecretManager.DelegationTokenInformation" extends="java.lang.Object"
  39718. abstract="false"
  39719. static="true" final="false" visibility="public"
  39720. deprecated="not deprecated">
  39721. <constructor name="AbstractDelegationTokenSecretManager.DelegationTokenInformation" type="long, byte[]"
  39722. static="false" final="false" visibility="public"
  39723. deprecated="not deprecated">
  39724. </constructor>
  39725. <method name="getRenewDate" return="long"
  39726. abstract="false" native="false" synchronized="false"
  39727. static="false" final="false" visibility="public"
  39728. deprecated="not deprecated">
  39729. <doc>
  39730. <![CDATA[returns renew date]]>
  39731. </doc>
  39732. </method>
  39733. <doc>
  39734. <![CDATA[Class to encapsulate a token's renew date and password.]]>
  39735. </doc>
  39736. </class>
  39737. <!-- end class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager.DelegationTokenInformation -->
  39738. <!-- start class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSelector -->
  39739. <class name="AbstractDelegationTokenSelector" extends="java.lang.Object"
  39740. abstract="false"
  39741. static="false" final="false" visibility="public"
  39742. deprecated="not deprecated">
  39743. <implements name="org.apache.hadoop.security.token.TokenSelector"/>
  39744. <constructor name="AbstractDelegationTokenSelector" type="org.apache.hadoop.io.Text"
  39745. static="false" final="false" visibility="protected"
  39746. deprecated="not deprecated">
  39747. </constructor>
  39748. <method name="selectToken" return="org.apache.hadoop.security.token.Token"
  39749. abstract="false" native="false" synchronized="false"
  39750. static="false" final="false" visibility="public"
  39751. deprecated="not deprecated">
  39752. <param name="service" type="org.apache.hadoop.io.Text"/>
  39753. <param name="tokens" type="java.util.Collection"/>
  39754. </method>
  39755. <doc>
  39756. <![CDATA[Look through tokens to find the first delegation token that matches the
  39757. service and return it.]]>
  39758. </doc>
  39759. </class>
  39760. <!-- end class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSelector -->
  39761. <!-- start class org.apache.hadoop.security.token.delegation.DelegationKey -->
  39762. <class name="DelegationKey" extends="java.lang.Object"
  39763. abstract="false"
  39764. static="false" final="false" visibility="public"
  39765. deprecated="not deprecated">
  39766. <implements name="org.apache.hadoop.io.Writable"/>
  39767. <constructor name="DelegationKey"
  39768. static="false" final="false" visibility="public"
  39769. deprecated="not deprecated">
  39770. </constructor>
  39771. <constructor name="DelegationKey" type="int, long, javax.crypto.SecretKey"
  39772. static="false" final="false" visibility="public"
  39773. deprecated="not deprecated">
  39774. </constructor>
  39775. <method name="getKeyId" return="int"
  39776. abstract="false" native="false" synchronized="false"
  39777. static="false" final="false" visibility="public"
  39778. deprecated="not deprecated">
  39779. </method>
  39780. <method name="getExpiryDate" return="long"
  39781. abstract="false" native="false" synchronized="false"
  39782. static="false" final="false" visibility="public"
  39783. deprecated="not deprecated">
  39784. </method>
  39785. <method name="getKey" return="javax.crypto.SecretKey"
  39786. abstract="false" native="false" synchronized="false"
  39787. static="false" final="false" visibility="public"
  39788. deprecated="not deprecated">
  39789. </method>
  39790. <method name="setExpiryDate"
  39791. abstract="false" native="false" synchronized="false"
  39792. static="false" final="false" visibility="public"
  39793. deprecated="not deprecated">
  39794. <param name="expiryDate" type="long"/>
  39795. </method>
  39796. <method name="write"
  39797. abstract="false" native="false" synchronized="false"
  39798. static="false" final="false" visibility="public"
  39799. deprecated="not deprecated">
  39800. <param name="out" type="java.io.DataOutput"/>
  39801. <exception name="IOException" type="java.io.IOException"/>
  39802. </method>
  39803. <method name="readFields"
  39804. abstract="false" native="false" synchronized="false"
  39805. static="false" final="false" visibility="public"
  39806. deprecated="not deprecated">
  39807. <param name="in" type="java.io.DataInput"/>
  39808. <exception name="IOException" type="java.io.IOException"/>
  39809. </method>
  39810. <doc>
  39811. <![CDATA[Key used for generating and verifying delegation tokens]]>
  39812. </doc>
  39813. </class>
  39814. <!-- end class org.apache.hadoop.security.token.delegation.DelegationKey -->
  39815. </package>
  39816. <package name="org.apache.hadoop.util">
  39817. <!-- start class org.apache.hadoop.util.ChecksumUtil -->
  39818. <class name="ChecksumUtil" extends="java.lang.Object"
  39819. abstract="false"
  39820. static="false" final="false" visibility="public"
  39821. deprecated="not deprecated">
  39822. <constructor name="ChecksumUtil"
  39823. static="false" final="false" visibility="public"
  39824. deprecated="not deprecated">
  39825. </constructor>
  39826. <method name="updateChunkChecksum"
  39827. abstract="false" native="false" synchronized="false"
  39828. static="true" final="false" visibility="public"
  39829. deprecated="not deprecated">
  39830. <param name="buf" type="byte[]"/>
  39831. <param name="checksumOff" type="int"/>
  39832. <param name="dataOff" type="int"/>
  39833. <param name="dataLen" type="int"/>
  39834. <param name="checksum" type="org.apache.hadoop.util.DataChecksum"/>
  39835. <exception name="IOException" type="java.io.IOException"/>
  39836. <doc>
  39837. <![CDATA[updates the checksum for a buffer
  39838. @param buf - buffer to update the checksum in
  39839. @param checksumOff - offset in the buffer where the checksum is to update
  39840. @param dataOff - offset in the buffer of the data
  39841. @param dataLen - length of data to compute checksum on]]>
  39842. </doc>
  39843. </method>
  39844. </class>
  39845. <!-- end class org.apache.hadoop.util.ChecksumUtil -->
  39846. <!-- start class org.apache.hadoop.util.ClassUtil -->
  39847. <class name="ClassUtil" extends="java.lang.Object"
  39848. abstract="false"
  39849. static="false" final="false" visibility="public"
  39850. deprecated="not deprecated">
  39851. <constructor name="ClassUtil"
  39852. static="false" final="false" visibility="public"
  39853. deprecated="not deprecated">
  39854. </constructor>
  39855. <method name="findContainingJar" return="java.lang.String"
  39856. abstract="false" native="false" synchronized="false"
  39857. static="true" final="false" visibility="public"
  39858. deprecated="not deprecated">
  39859. <param name="clazz" type="java.lang.Class"/>
  39860. <doc>
  39861. <![CDATA[Find a jar that contains a class of the same name, if any.
  39862. It will return a jar file, even if that is not the first thing
  39863. on the class path that has a class with the same name.
  39864. @param clazz the class to find.
  39865. @return a jar file that contains the class, or null.
  39866. @throws IOException]]>
  39867. </doc>
  39868. </method>
  39869. </class>
  39870. <!-- end class org.apache.hadoop.util.ClassUtil -->
  39871. <!-- start class org.apache.hadoop.util.CyclicIteration -->
  39872. <class name="CyclicIteration" extends="java.lang.Object"
  39873. abstract="false"
  39874. static="false" final="false" visibility="public"
  39875. deprecated="not deprecated">
  39876. <implements name="java.lang.Iterable"/>
  39877. <constructor name="CyclicIteration" type="java.util.NavigableMap, java.lang.Object"
  39878. static="false" final="false" visibility="public"
  39879. deprecated="not deprecated">
  39880. <doc>
  39881. <![CDATA[Construct an {@link Iterable} object,
  39882. so that an {@link Iterator} can be created
  39883. for iterating the given {@link NavigableMap}.
  39884. The iteration begins from the starting key exclusively.]]>
  39885. </doc>
  39886. </constructor>
  39887. <method name="iterator" return="java.util.Iterator"
  39888. abstract="false" native="false" synchronized="false"
  39889. static="false" final="false" visibility="public"
  39890. deprecated="not deprecated">
  39891. <doc>
  39892. <![CDATA[{@inheritDoc}]]>
  39893. </doc>
  39894. </method>
  39895. <doc>
  39896. <![CDATA[Provide an cyclic {@link Iterator} for a {@link NavigableMap}.
  39897. The {@link Iterator} navigates the entries of the map
  39898. according to the map's ordering.
  39899. If the {@link Iterator} hits the last entry of the map,
  39900. it will then continue from the first entry.]]>
  39901. </doc>
  39902. </class>
  39903. <!-- end class org.apache.hadoop.util.CyclicIteration -->
  39904. <!-- start class org.apache.hadoop.util.Daemon -->
  39905. <class name="Daemon" extends="java.lang.Thread"
  39906. abstract="false"
  39907. static="false" final="false" visibility="public"
  39908. deprecated="not deprecated">
  39909. <constructor name="Daemon"
  39910. static="false" final="false" visibility="public"
  39911. deprecated="not deprecated">
  39912. <doc>
  39913. <![CDATA[Construct a daemon thread.]]>
  39914. </doc>
  39915. </constructor>
  39916. <constructor name="Daemon" type="java.lang.Runnable"
  39917. static="false" final="false" visibility="public"
  39918. deprecated="not deprecated">
  39919. <doc>
  39920. <![CDATA[Construct a daemon thread.]]>
  39921. </doc>
  39922. </constructor>
  39923. <constructor name="Daemon" type="java.lang.ThreadGroup, java.lang.Runnable"
  39924. static="false" final="false" visibility="public"
  39925. deprecated="not deprecated">
  39926. <doc>
  39927. <![CDATA[Construct a daemon thread to be part of a specified thread group.]]>
  39928. </doc>
  39929. </constructor>
  39930. <method name="getRunnable" return="java.lang.Runnable"
  39931. abstract="false" native="false" synchronized="false"
  39932. static="false" final="false" visibility="public"
  39933. deprecated="not deprecated">
  39934. </method>
  39935. <doc>
  39936. <![CDATA[A thread that has called {@link Thread#setDaemon(boolean) } with true.]]>
  39937. </doc>
  39938. </class>
  39939. <!-- end class org.apache.hadoop.util.Daemon -->
  39940. <!-- start class org.apache.hadoop.util.DataChecksum -->
  39941. <class name="DataChecksum" extends="java.lang.Object"
  39942. abstract="false"
  39943. static="false" final="false" visibility="public"
  39944. deprecated="not deprecated">
  39945. <implements name="java.util.zip.Checksum"/>
  39946. <method name="newDataChecksum" return="org.apache.hadoop.util.DataChecksum"
  39947. abstract="false" native="false" synchronized="false"
  39948. static="true" final="false" visibility="public"
  39949. deprecated="not deprecated">
  39950. <param name="type" type="int"/>
  39951. <param name="bytesPerChecksum" type="int"/>
  39952. </method>
  39953. <method name="newDataChecksum" return="org.apache.hadoop.util.DataChecksum"
  39954. abstract="false" native="false" synchronized="false"
  39955. static="true" final="false" visibility="public"
  39956. deprecated="not deprecated">
  39957. <param name="bytes" type="byte[]"/>
  39958. <param name="offset" type="int"/>
  39959. <doc>
  39960. <![CDATA[Creates a DataChecksum from HEADER_LEN bytes from arr[offset].
  39961. @return DataChecksum of the type in the array or null in case of an error.]]>
  39962. </doc>
  39963. </method>
  39964. <method name="newDataChecksum" return="org.apache.hadoop.util.DataChecksum"
  39965. abstract="false" native="false" synchronized="false"
  39966. static="true" final="false" visibility="public"
  39967. deprecated="not deprecated">
  39968. <param name="in" type="java.io.DataInputStream"/>
  39969. <exception name="IOException" type="java.io.IOException"/>
  39970. <doc>
  39971. <![CDATA[This constructucts a DataChecksum by reading HEADER_LEN bytes from
  39972. input stream <i>in</i>]]>
  39973. </doc>
  39974. </method>
  39975. <method name="writeHeader"
  39976. abstract="false" native="false" synchronized="false"
  39977. static="false" final="false" visibility="public"
  39978. deprecated="not deprecated">
  39979. <param name="out" type="java.io.DataOutputStream"/>
  39980. <exception name="IOException" type="java.io.IOException"/>
  39981. <doc>
  39982. <![CDATA[Writes the checksum header to the output stream <i>out</i>.]]>
  39983. </doc>
  39984. </method>
  39985. <method name="getHeader" return="byte[]"
  39986. abstract="false" native="false" synchronized="false"
  39987. static="false" final="false" visibility="public"
  39988. deprecated="not deprecated">
  39989. </method>
  39990. <method name="writeValue" return="int"
  39991. abstract="false" native="false" synchronized="false"
  39992. static="false" final="false" visibility="public"
  39993. deprecated="not deprecated">
  39994. <param name="out" type="java.io.DataOutputStream"/>
  39995. <param name="reset" type="boolean"/>
  39996. <exception name="IOException" type="java.io.IOException"/>
  39997. <doc>
  39998. <![CDATA[Writes the current checksum to the stream.
  39999. If <i>reset</i> is true, then resets the checksum.
  40000. @return number of bytes written. Will be equal to getChecksumSize();]]>
  40001. </doc>
  40002. </method>
  40003. <method name="writeValue" return="int"
  40004. abstract="false" native="false" synchronized="false"
  40005. static="false" final="false" visibility="public"
  40006. deprecated="not deprecated">
  40007. <param name="buf" type="byte[]"/>
  40008. <param name="offset" type="int"/>
  40009. <param name="reset" type="boolean"/>
  40010. <exception name="IOException" type="java.io.IOException"/>
  40011. <doc>
  40012. <![CDATA[Writes the current checksum to a buffer.
  40013. If <i>reset</i> is true, then resets the checksum.
  40014. @return number of bytes written. Will be equal to getChecksumSize();]]>
  40015. </doc>
  40016. </method>
  40017. <method name="compare" return="boolean"
  40018. abstract="false" native="false" synchronized="false"
  40019. static="false" final="false" visibility="public"
  40020. deprecated="not deprecated">
  40021. <param name="buf" type="byte[]"/>
  40022. <param name="offset" type="int"/>
  40023. <doc>
  40024. <![CDATA[Compares the checksum located at buf[offset] with the current checksum.
  40025. @return true if the checksum matches and false otherwise.]]>
  40026. </doc>
  40027. </method>
  40028. <method name="getChecksumType" return="int"
  40029. abstract="false" native="false" synchronized="false"
  40030. static="false" final="false" visibility="public"
  40031. deprecated="not deprecated">
  40032. </method>
  40033. <method name="getChecksumSize" return="int"
  40034. abstract="false" native="false" synchronized="false"
  40035. static="false" final="false" visibility="public"
  40036. deprecated="not deprecated">
  40037. </method>
  40038. <method name="getBytesPerChecksum" return="int"
  40039. abstract="false" native="false" synchronized="false"
  40040. static="false" final="false" visibility="public"
  40041. deprecated="not deprecated">
  40042. </method>
  40043. <method name="getNumBytesInSum" return="int"
  40044. abstract="false" native="false" synchronized="false"
  40045. static="false" final="false" visibility="public"
  40046. deprecated="not deprecated">
  40047. </method>
  40048. <method name="getChecksumHeaderSize" return="int"
  40049. abstract="false" native="false" synchronized="false"
  40050. static="true" final="false" visibility="public"
  40051. deprecated="not deprecated">
  40052. </method>
  40053. <method name="getValue" return="long"
  40054. abstract="false" native="false" synchronized="false"
  40055. static="false" final="false" visibility="public"
  40056. deprecated="not deprecated">
  40057. </method>
  40058. <method name="reset"
  40059. abstract="false" native="false" synchronized="false"
  40060. static="false" final="false" visibility="public"
  40061. deprecated="not deprecated">
  40062. </method>
  40063. <method name="update"
  40064. abstract="false" native="false" synchronized="false"
  40065. static="false" final="false" visibility="public"
  40066. deprecated="not deprecated">
  40067. <param name="b" type="byte[]"/>
  40068. <param name="off" type="int"/>
  40069. <param name="len" type="int"/>
  40070. </method>
  40071. <method name="update"
  40072. abstract="false" native="false" synchronized="false"
  40073. static="false" final="false" visibility="public"
  40074. deprecated="not deprecated">
  40075. <param name="b" type="int"/>
  40076. </method>
  40077. <field name="HEADER_LEN" type="int"
  40078. transient="false" volatile="false"
  40079. static="true" final="true" visibility="public"
  40080. deprecated="not deprecated">
  40081. </field>
  40082. <field name="CHECKSUM_NULL" type="int"
  40083. transient="false" volatile="false"
  40084. static="true" final="true" visibility="public"
  40085. deprecated="not deprecated">
  40086. </field>
  40087. <field name="CHECKSUM_CRC32" type="int"
  40088. transient="false" volatile="false"
  40089. static="true" final="true" visibility="public"
  40090. deprecated="not deprecated">
  40091. </field>
  40092. <field name="SIZE_OF_INTEGER" type="int"
  40093. transient="false" volatile="false"
  40094. static="true" final="true" visibility="public"
  40095. deprecated="not deprecated">
  40096. </field>
  40097. <doc>
  40098. <![CDATA[This class provides inteface and utilities for processing checksums for
  40099. DFS data transfers.]]>
  40100. </doc>
  40101. </class>
  40102. <!-- end class org.apache.hadoop.util.DataChecksum -->
  40103. <!-- start class org.apache.hadoop.util.DiskChecker -->
  40104. <class name="DiskChecker" extends="java.lang.Object"
  40105. abstract="false"
  40106. static="false" final="false" visibility="public"
  40107. deprecated="not deprecated">
  40108. <constructor name="DiskChecker"
  40109. static="false" final="false" visibility="public"
  40110. deprecated="not deprecated">
  40111. </constructor>
  40112. <method name="mkdirsWithExistsCheck" return="boolean"
  40113. abstract="false" native="false" synchronized="false"
  40114. static="true" final="false" visibility="public"
  40115. deprecated="not deprecated">
  40116. <param name="dir" type="java.io.File"/>
  40117. <doc>
  40118. <![CDATA[The semantics of mkdirsWithExistsCheck method is different from the mkdirs
  40119. method provided in the Sun's java.io.File class in the following way:
  40120. While creating the non-existent parent directories, this method checks for
  40121. the existence of those directories if the mkdir fails at any point (since
  40122. that directory might have just been created by some other process).
  40123. If both mkdir() and the exists() check fails for any seemingly
  40124. non-existent directory, then we signal an error; Sun's mkdir would signal
  40125. an error (return false) if a directory it is attempting to create already
  40126. exists or the mkdir fails.
  40127. @param dir
  40128. @return true on success, false on failure]]>
  40129. </doc>
  40130. </method>
  40131. <method name="checkDir"
  40132. abstract="false" native="false" synchronized="false"
  40133. static="true" final="false" visibility="public"
  40134. deprecated="not deprecated">
  40135. <param name="dir" type="java.io.File"/>
  40136. <exception name="DiskChecker.DiskErrorException" type="org.apache.hadoop.util.DiskChecker.DiskErrorException"/>
  40137. <doc>
  40138. <![CDATA[Create the directory if it doesn't exist and
  40139. @param dir
  40140. @throws DiskErrorException]]>
  40141. </doc>
  40142. </method>
  40143. <method name="mkdirsWithExistsAndPermissionCheck" return="boolean"
  40144. abstract="false" native="false" synchronized="false"
  40145. static="true" final="false" visibility="public"
  40146. deprecated="not deprecated">
  40147. <param name="localFS" type="org.apache.hadoop.fs.LocalFileSystem"/>
  40148. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  40149. <param name="expected" type="org.apache.hadoop.fs.permission.FsPermission"/>
  40150. <exception name="IOException" type="java.io.IOException"/>
  40151. <doc>
  40152. <![CDATA[Create the directory or check permissions if it already exists.
  40153. The semantics of mkdirsWithExistsAndPermissionCheck method is different
  40154. from the mkdirs method provided in the Sun's java.io.File class in the
  40155. following way:
  40156. While creating the non-existent parent directories, this method checks for
  40157. the existence of those directories if the mkdir fails at any point (since
  40158. that directory might have just been created by some other process).
  40159. If both mkdir() and the exists() check fails for any seemingly
  40160. non-existent directory, then we signal an error; Sun's mkdir would signal
  40161. an error (return false) if a directory it is attempting to create already
  40162. exists or the mkdir fails.
  40163. @param localFS local filesystem
  40164. @param dir directory to be created or checked
  40165. @param expected expected permission
  40166. @return true on success, false on failure]]>
  40167. </doc>
  40168. </method>
  40169. <method name="checkDir"
  40170. abstract="false" native="false" synchronized="false"
  40171. static="true" final="false" visibility="public"
  40172. deprecated="not deprecated">
  40173. <param name="localFS" type="org.apache.hadoop.fs.LocalFileSystem"/>
  40174. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  40175. <param name="expected" type="org.apache.hadoop.fs.permission.FsPermission"/>
  40176. <exception name="DiskChecker.DiskErrorException" type="org.apache.hadoop.util.DiskChecker.DiskErrorException"/>
  40177. <exception name="IOException" type="java.io.IOException"/>
  40178. <doc>
  40179. <![CDATA[Create the local directory if necessary, check permissions and also ensure
  40180. it can be read from and written into.
  40181. @param localFS local filesystem
  40182. @param dir directory
  40183. @param expected permission
  40184. @throws DiskErrorException
  40185. @throws IOException]]>
  40186. </doc>
  40187. </method>
  40188. <doc>
  40189. <![CDATA[Class that provides utility functions for checking disk problem]]>
  40190. </doc>
  40191. </class>
  40192. <!-- end class org.apache.hadoop.util.DiskChecker -->
  40193. <!-- start class org.apache.hadoop.util.DiskChecker.DiskErrorException -->
  40194. <class name="DiskChecker.DiskErrorException" extends="java.io.IOException"
  40195. abstract="false"
  40196. static="true" final="false" visibility="public"
  40197. deprecated="not deprecated">
  40198. <constructor name="DiskChecker.DiskErrorException" type="java.lang.String"
  40199. static="false" final="false" visibility="public"
  40200. deprecated="not deprecated">
  40201. </constructor>
  40202. </class>
  40203. <!-- end class org.apache.hadoop.util.DiskChecker.DiskErrorException -->
  40204. <!-- start class org.apache.hadoop.util.DiskChecker.DiskOutOfSpaceException -->
  40205. <class name="DiskChecker.DiskOutOfSpaceException" extends="java.io.IOException"
  40206. abstract="false"
  40207. static="true" final="false" visibility="public"
  40208. deprecated="not deprecated">
  40209. <constructor name="DiskChecker.DiskOutOfSpaceException" type="java.lang.String"
  40210. static="false" final="false" visibility="public"
  40211. deprecated="not deprecated">
  40212. </constructor>
  40213. </class>
  40214. <!-- end class org.apache.hadoop.util.DiskChecker.DiskOutOfSpaceException -->
  40215. <!-- start class org.apache.hadoop.util.GenericOptionsParser -->
  40216. <class name="GenericOptionsParser" extends="java.lang.Object"
  40217. abstract="false"
  40218. static="false" final="false" visibility="public"
  40219. deprecated="not deprecated">
  40220. <constructor name="GenericOptionsParser" type="org.apache.commons.cli.Options, java.lang.String[]"
  40221. static="false" final="false" visibility="public"
  40222. deprecated="not deprecated">
  40223. <exception name="IOException" type="java.io.IOException"/>
  40224. <doc>
  40225. <![CDATA[Create an options parser with the given options to parse the args.
  40226. @param opts the options
  40227. @param args the command line arguments
  40228. @throws IOException]]>
  40229. </doc>
  40230. </constructor>
  40231. <constructor name="GenericOptionsParser" type="java.lang.String[]"
  40232. static="false" final="false" visibility="public"
  40233. deprecated="not deprecated">
  40234. <exception name="IOException" type="java.io.IOException"/>
  40235. <doc>
  40236. <![CDATA[Create an options parser to parse the args.
  40237. @param args the command line arguments
  40238. @throws IOException]]>
  40239. </doc>
  40240. </constructor>
  40241. <constructor name="GenericOptionsParser" type="org.apache.hadoop.conf.Configuration, java.lang.String[]"
  40242. static="false" final="false" visibility="public"
  40243. deprecated="not deprecated">
  40244. <exception name="IOException" type="java.io.IOException"/>
  40245. <doc>
  40246. <![CDATA[Create a <code>GenericOptionsParser<code> to parse only the generic Hadoop
  40247. arguments.
  40248. The array of string arguments other than the generic arguments can be
  40249. obtained by {@link #getRemainingArgs()}.
  40250. @param conf the <code>Configuration</code> to modify.
  40251. @param args command-line arguments.
  40252. @throws IOException]]>
  40253. </doc>
  40254. </constructor>
  40255. <constructor name="GenericOptionsParser" type="org.apache.hadoop.conf.Configuration, org.apache.commons.cli.Options, java.lang.String[]"
  40256. static="false" final="false" visibility="public"
  40257. deprecated="not deprecated">
  40258. <exception name="IOException" type="java.io.IOException"/>
  40259. <doc>
  40260. <![CDATA[Create a <code>GenericOptionsParser</code> to parse given options as well
  40261. as generic Hadoop options.
  40262. The resulting <code>CommandLine</code> object can be obtained by
  40263. {@link #getCommandLine()}.
  40264. @param conf the configuration to modify
  40265. @param options options built by the caller
  40266. @param args User-specified arguments
  40267. @throws IOException]]>
  40268. </doc>
  40269. </constructor>
  40270. <method name="getRemainingArgs" return="java.lang.String[]"
  40271. abstract="false" native="false" synchronized="false"
  40272. static="false" final="false" visibility="public"
  40273. deprecated="not deprecated">
  40274. <doc>
  40275. <![CDATA[Returns an array of Strings containing only application-specific arguments.
  40276. @return array of <code>String</code>s containing the un-parsed arguments
  40277. or <strong>empty array</strong> if commandLine was not defined.]]>
  40278. </doc>
  40279. </method>
  40280. <method name="getConfiguration" return="org.apache.hadoop.conf.Configuration"
  40281. abstract="false" native="false" synchronized="false"
  40282. static="false" final="false" visibility="public"
  40283. deprecated="not deprecated">
  40284. <doc>
  40285. <![CDATA[Get the modified configuration
  40286. @return the configuration that has the modified parameters.]]>
  40287. </doc>
  40288. </method>
  40289. <method name="getCommandLine" return="org.apache.commons.cli.CommandLine"
  40290. abstract="false" native="false" synchronized="false"
  40291. static="false" final="false" visibility="public"
  40292. deprecated="not deprecated">
  40293. <doc>
  40294. <![CDATA[Returns the commons-cli <code>CommandLine</code> object
  40295. to process the parsed arguments.
  40296. Note: If the object is created with
  40297. {@link #GenericOptionsParser(Configuration, String[])}, then returned
  40298. object will only contain parsed generic options.
  40299. @return <code>CommandLine</code> representing list of arguments
  40300. parsed against Options descriptor.]]>
  40301. </doc>
  40302. </method>
  40303. <method name="getLibJars" return="java.net.URL[]"
  40304. abstract="false" native="false" synchronized="false"
  40305. static="true" final="false" visibility="public"
  40306. deprecated="not deprecated">
  40307. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  40308. <exception name="IOException" type="java.io.IOException"/>
  40309. <doc>
  40310. <![CDATA[If libjars are set in the conf, parse the libjars.
  40311. @param conf
  40312. @return libjar urls
  40313. @throws IOException]]>
  40314. </doc>
  40315. </method>
  40316. <method name="printGenericCommandUsage"
  40317. abstract="false" native="false" synchronized="false"
  40318. static="true" final="false" visibility="public"
  40319. deprecated="not deprecated">
  40320. <param name="out" type="java.io.PrintStream"/>
  40321. <doc>
  40322. <![CDATA[Print the usage message for generic command-line options supported.
  40323. @param out stream to print the usage message to.]]>
  40324. </doc>
  40325. </method>
  40326. <doc>
  40327. <![CDATA[<code>GenericOptionsParser</code> is a utility to parse command line
  40328. arguments generic to the Hadoop framework.
  40329. <code>GenericOptionsParser</code> recognizes several standarad command
  40330. line arguments, enabling applications to easily specify a namenode, a
  40331. jobtracker, additional configuration resources etc.
  40332. <h4 id="GenericOptions">Generic Options</h4>
  40333. <p>The supported generic options are:</p>
  40334. <p><blockquote><pre>
  40335. -conf &lt;configuration file&gt; specify a configuration file
  40336. -D &lt;property=value&gt; use value for given property
  40337. -fs &lt;local|namenode:port&gt; specify a namenode
  40338. -jt &lt;local|jobtracker:port&gt; specify a job tracker
  40339. -files &lt;comma separated list of files&gt; specify comma separated
  40340. files to be copied to the map reduce cluster
  40341. -libjars &lt;comma separated list of jars&gt; specify comma separated
  40342. jar files to include in the classpath.
  40343. -archives &lt;comma separated list of archives&gt; specify comma
  40344. separated archives to be unarchived on the compute machines.
  40345. </pre></blockquote></p>
  40346. <p>The general command line syntax is:</p>
  40347. <p><tt><pre>
  40348. bin/hadoop command [genericOptions] [commandOptions]
  40349. </pre></tt></p>
  40350. <p>Generic command line arguments <strong>might</strong> modify
  40351. <code>Configuration </code> objects, given to constructors.</p>
  40352. <p>The functionality is implemented using Commons CLI.</p>
  40353. <p>Examples:</p>
  40354. <p><blockquote><pre>
  40355. $ bin/hadoop dfs -fs darwin:8020 -ls /data
  40356. list /data directory in dfs with namenode darwin:8020
  40357. $ bin/hadoop dfs -D fs.default.name=darwin:8020 -ls /data
  40358. list /data directory in dfs with namenode darwin:8020
  40359. $ bin/hadoop dfs -conf hadoop-site.xml -ls /data
  40360. list /data directory in dfs with conf specified in hadoop-site.xml
  40361. $ bin/hadoop job -D mapred.job.tracker=darwin:50020 -submit job.xml
  40362. submit a job to job tracker darwin:50020
  40363. $ bin/hadoop job -jt darwin:50020 -submit job.xml
  40364. submit a job to job tracker darwin:50020
  40365. $ bin/hadoop job -jt local -submit job.xml
  40366. submit a job to local runner
  40367. $ bin/hadoop jar -libjars testlib.jar
  40368. -archives test.tgz -files file.txt inputjar args
  40369. job submission with libjars, files and archives
  40370. </pre></blockquote></p>
  40371. @see Tool
  40372. @see ToolRunner]]>
  40373. </doc>
  40374. </class>
  40375. <!-- end class org.apache.hadoop.util.GenericOptionsParser -->
  40376. <!-- start class org.apache.hadoop.util.GenericsUtil -->
  40377. <class name="GenericsUtil" extends="java.lang.Object"
  40378. abstract="false"
  40379. static="false" final="false" visibility="public"
  40380. deprecated="not deprecated">
  40381. <constructor name="GenericsUtil"
  40382. static="false" final="false" visibility="public"
  40383. deprecated="not deprecated">
  40384. </constructor>
  40385. <method name="getClass" return="java.lang.Class"
  40386. abstract="false" native="false" synchronized="false"
  40387. static="true" final="false" visibility="public"
  40388. deprecated="not deprecated">
  40389. <param name="t" type="java.lang.Object"/>
  40390. <doc>
  40391. <![CDATA[Returns the Class object (of type <code>Class&lt;T&gt;</code>) of the
  40392. argument of type <code>T</code>.
  40393. @param <T> The type of the argument
  40394. @param t the object to get it class
  40395. @return <code>Class&lt;T&gt;</code>]]>
  40396. </doc>
  40397. </method>
  40398. <method name="toArray" return="java.lang.Object[]"
  40399. abstract="false" native="false" synchronized="false"
  40400. static="true" final="false" visibility="public"
  40401. deprecated="not deprecated">
  40402. <param name="c" type="java.lang.Class"/>
  40403. <param name="list" type="java.util.List"/>
  40404. <doc>
  40405. <![CDATA[Converts the given <code>List&lt;T&gt;</code> to a an array of
  40406. <code>T[]</code>.
  40407. @param c the Class object of the items in the list
  40408. @param list the list to convert]]>
  40409. </doc>
  40410. </method>
  40411. <method name="toArray" return="java.lang.Object[]"
  40412. abstract="false" native="false" synchronized="false"
  40413. static="true" final="false" visibility="public"
  40414. deprecated="not deprecated">
  40415. <param name="list" type="java.util.List"/>
  40416. <doc>
  40417. <![CDATA[Converts the given <code>List&lt;T&gt;</code> to a an array of
  40418. <code>T[]</code>.
  40419. @param list the list to convert
  40420. @throws ArrayIndexOutOfBoundsException if the list is empty.
  40421. Use {@link #toArray(Class, List)} if the list may be empty.]]>
  40422. </doc>
  40423. </method>
  40424. <doc>
  40425. <![CDATA[Contains utility methods for dealing with Java Generics.]]>
  40426. </doc>
  40427. </class>
  40428. <!-- end class org.apache.hadoop.util.GenericsUtil -->
  40429. <!-- start class org.apache.hadoop.util.HeapSort -->
  40430. <class name="HeapSort" extends="java.lang.Object"
  40431. abstract="false"
  40432. static="false" final="true" visibility="public"
  40433. deprecated="not deprecated">
  40434. <implements name="org.apache.hadoop.util.IndexedSorter"/>
  40435. <constructor name="HeapSort"
  40436. static="false" final="false" visibility="public"
  40437. deprecated="not deprecated">
  40438. </constructor>
  40439. <method name="sort"
  40440. abstract="false" native="false" synchronized="false"
  40441. static="false" final="false" visibility="public"
  40442. deprecated="not deprecated">
  40443. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  40444. <param name="p" type="int"/>
  40445. <param name="r" type="int"/>
  40446. <doc>
  40447. <![CDATA[Sort the given range of items using heap sort.
  40448. {@inheritDoc}]]>
  40449. </doc>
  40450. </method>
  40451. <method name="sort"
  40452. abstract="false" native="false" synchronized="false"
  40453. static="false" final="false" visibility="public"
  40454. deprecated="not deprecated">
  40455. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  40456. <param name="p" type="int"/>
  40457. <param name="r" type="int"/>
  40458. <param name="rep" type="org.apache.hadoop.util.Progressable"/>
  40459. <doc>
  40460. <![CDATA[{@inheritDoc}]]>
  40461. </doc>
  40462. </method>
  40463. <doc>
  40464. <![CDATA[An implementation of the core algorithm of HeapSort.]]>
  40465. </doc>
  40466. </class>
  40467. <!-- end class org.apache.hadoop.util.HeapSort -->
  40468. <!-- start class org.apache.hadoop.util.HostsFileReader -->
  40469. <class name="HostsFileReader" extends="java.lang.Object"
  40470. abstract="false"
  40471. static="false" final="false" visibility="public"
  40472. deprecated="not deprecated">
  40473. <constructor name="HostsFileReader" type="java.lang.String, java.lang.String"
  40474. static="false" final="false" visibility="public"
  40475. deprecated="not deprecated">
  40476. <exception name="IOException" type="java.io.IOException"/>
  40477. </constructor>
  40478. <method name="refresh"
  40479. abstract="false" native="false" synchronized="true"
  40480. static="false" final="false" visibility="public"
  40481. deprecated="not deprecated">
  40482. <exception name="IOException" type="java.io.IOException"/>
  40483. </method>
  40484. <method name="getHosts" return="java.util.Set"
  40485. abstract="false" native="false" synchronized="true"
  40486. static="false" final="false" visibility="public"
  40487. deprecated="not deprecated">
  40488. </method>
  40489. <method name="getExcludedHosts" return="java.util.Set"
  40490. abstract="false" native="false" synchronized="true"
  40491. static="false" final="false" visibility="public"
  40492. deprecated="not deprecated">
  40493. </method>
  40494. <method name="setIncludesFile"
  40495. abstract="false" native="false" synchronized="true"
  40496. static="false" final="false" visibility="public"
  40497. deprecated="not deprecated">
  40498. <param name="includesFile" type="java.lang.String"/>
  40499. </method>
  40500. <method name="setExcludesFile"
  40501. abstract="false" native="false" synchronized="true"
  40502. static="false" final="false" visibility="public"
  40503. deprecated="not deprecated">
  40504. <param name="excludesFile" type="java.lang.String"/>
  40505. </method>
  40506. <method name="updateFileNames"
  40507. abstract="false" native="false" synchronized="true"
  40508. static="false" final="false" visibility="public"
  40509. deprecated="not deprecated">
  40510. <param name="includesFile" type="java.lang.String"/>
  40511. <param name="excludesFile" type="java.lang.String"/>
  40512. <exception name="IOException" type="java.io.IOException"/>
  40513. </method>
  40514. </class>
  40515. <!-- end class org.apache.hadoop.util.HostsFileReader -->
  40516. <!-- start interface org.apache.hadoop.util.IndexedSortable -->
  40517. <interface name="IndexedSortable" abstract="true"
  40518. static="false" final="false" visibility="public"
  40519. deprecated="not deprecated">
  40520. <method name="compare" return="int"
  40521. abstract="false" native="false" synchronized="false"
  40522. static="false" final="false" visibility="public"
  40523. deprecated="not deprecated">
  40524. <param name="i" type="int"/>
  40525. <param name="j" type="int"/>
  40526. <doc>
  40527. <![CDATA[Compare items at the given addresses consistent with the semantics of
  40528. {@link java.util.Comparator#compare(Object, Object)}.]]>
  40529. </doc>
  40530. </method>
  40531. <method name="swap"
  40532. abstract="false" native="false" synchronized="false"
  40533. static="false" final="false" visibility="public"
  40534. deprecated="not deprecated">
  40535. <param name="i" type="int"/>
  40536. <param name="j" type="int"/>
  40537. <doc>
  40538. <![CDATA[Swap items at the given addresses.]]>
  40539. </doc>
  40540. </method>
  40541. <doc>
  40542. <![CDATA[Interface for collections capable of being sorted by {@link IndexedSorter}
  40543. algorithms.]]>
  40544. </doc>
  40545. </interface>
  40546. <!-- end interface org.apache.hadoop.util.IndexedSortable -->
  40547. <!-- start interface org.apache.hadoop.util.IndexedSorter -->
  40548. <interface name="IndexedSorter" abstract="true"
  40549. static="false" final="false" visibility="public"
  40550. deprecated="not deprecated">
  40551. <method name="sort"
  40552. abstract="false" native="false" synchronized="false"
  40553. static="false" final="false" visibility="public"
  40554. deprecated="not deprecated">
  40555. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  40556. <param name="l" type="int"/>
  40557. <param name="r" type="int"/>
  40558. <doc>
  40559. <![CDATA[Sort the items accessed through the given IndexedSortable over the given
  40560. range of logical indices. From the perspective of the sort algorithm,
  40561. each index between l (inclusive) and r (exclusive) is an addressable
  40562. entry.
  40563. @see IndexedSortable#compare
  40564. @see IndexedSortable#swap]]>
  40565. </doc>
  40566. </method>
  40567. <method name="sort"
  40568. abstract="false" native="false" synchronized="false"
  40569. static="false" final="false" visibility="public"
  40570. deprecated="not deprecated">
  40571. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  40572. <param name="l" type="int"/>
  40573. <param name="r" type="int"/>
  40574. <param name="rep" type="org.apache.hadoop.util.Progressable"/>
  40575. <doc>
  40576. <![CDATA[Same as {@link #sort(IndexedSortable,int,int)}, but indicate progress
  40577. periodically.
  40578. @see #sort(IndexedSortable,int,int)]]>
  40579. </doc>
  40580. </method>
  40581. <doc>
  40582. <![CDATA[Interface for sort algorithms accepting {@link IndexedSortable} items.
  40583. A sort algorithm implementing this interface may only
  40584. {@link IndexedSortable#compare} and {@link IndexedSortable#swap} items
  40585. for a range of indices to effect a sort across that range.]]>
  40586. </doc>
  40587. </interface>
  40588. <!-- end interface org.apache.hadoop.util.IndexedSorter -->
  40589. <!-- start class org.apache.hadoop.util.LineReader -->
  40590. <class name="LineReader" extends="java.lang.Object"
  40591. abstract="false"
  40592. static="false" final="false" visibility="public"
  40593. deprecated="not deprecated">
  40594. <constructor name="LineReader" type="java.io.InputStream"
  40595. static="false" final="false" visibility="public"
  40596. deprecated="not deprecated">
  40597. <doc>
  40598. <![CDATA[Create a line reader that reads from the given stream using the
  40599. default buffer-size (64k).
  40600. @param in The input stream
  40601. @throws IOException]]>
  40602. </doc>
  40603. </constructor>
  40604. <constructor name="LineReader" type="java.io.InputStream, int"
  40605. static="false" final="false" visibility="public"
  40606. deprecated="not deprecated">
  40607. <doc>
  40608. <![CDATA[Create a line reader that reads from the given stream using the
  40609. given buffer-size.
  40610. @param in The input stream
  40611. @param bufferSize Size of the read buffer
  40612. @throws IOException]]>
  40613. </doc>
  40614. </constructor>
  40615. <constructor name="LineReader" type="java.io.InputStream, org.apache.hadoop.conf.Configuration"
  40616. static="false" final="false" visibility="public"
  40617. deprecated="not deprecated">
  40618. <exception name="IOException" type="java.io.IOException"/>
  40619. <doc>
  40620. <![CDATA[Create a line reader that reads from the given stream using the
  40621. <code>io.file.buffer.size</code> specified in the given
  40622. <code>Configuration</code>.
  40623. @param in input stream
  40624. @param conf configuration
  40625. @throws IOException]]>
  40626. </doc>
  40627. </constructor>
  40628. <constructor name="LineReader" type="java.io.InputStream, byte[]"
  40629. static="false" final="false" visibility="public"
  40630. deprecated="not deprecated">
  40631. <doc>
  40632. <![CDATA[Create a line reader that reads from the given stream using the
  40633. default buffer-size, and using a custom delimiter of array of
  40634. bytes.
  40635. @param in The input stream
  40636. @param recordDelimiterBytes The delimiter]]>
  40637. </doc>
  40638. </constructor>
  40639. <constructor name="LineReader" type="java.io.InputStream, int, byte[]"
  40640. static="false" final="false" visibility="public"
  40641. deprecated="not deprecated">
  40642. <doc>
  40643. <![CDATA[Create a line reader that reads from the given stream using the
  40644. given buffer-size, and using a custom delimiter of array of
  40645. bytes.
  40646. @param in The input stream
  40647. @param bufferSize Size of the read buffer
  40648. @param recordDelimiterBytes The delimiter
  40649. @throws IOException]]>
  40650. </doc>
  40651. </constructor>
  40652. <constructor name="LineReader" type="java.io.InputStream, org.apache.hadoop.conf.Configuration, byte[]"
  40653. static="false" final="false" visibility="public"
  40654. deprecated="not deprecated">
  40655. <exception name="IOException" type="java.io.IOException"/>
  40656. <doc>
  40657. <![CDATA[Create a line reader that reads from the given stream using the
  40658. <code>io.file.buffer.size</code> specified in the given
  40659. <code>Configuration</code>, and using a custom delimiter of array of
  40660. bytes.
  40661. @param in input stream
  40662. @param conf configuration
  40663. @param recordDelimiterBytes The delimiter
  40664. @throws IOException]]>
  40665. </doc>
  40666. </constructor>
  40667. <method name="close"
  40668. abstract="false" native="false" synchronized="false"
  40669. static="false" final="false" visibility="public"
  40670. deprecated="not deprecated">
  40671. <exception name="IOException" type="java.io.IOException"/>
  40672. <doc>
  40673. <![CDATA[Close the underlying stream.
  40674. @throws IOException]]>
  40675. </doc>
  40676. </method>
  40677. <method name="readLine" return="int"
  40678. abstract="false" native="false" synchronized="false"
  40679. static="false" final="false" visibility="public"
  40680. deprecated="not deprecated">
  40681. <param name="str" type="org.apache.hadoop.io.Text"/>
  40682. <param name="maxLineLength" type="int"/>
  40683. <param name="maxBytesToConsume" type="int"/>
  40684. <exception name="IOException" type="java.io.IOException"/>
  40685. <doc>
  40686. <![CDATA[Read one line from the InputStream into the given Text.
  40687. @param str the object to store the given line (without newline)
  40688. @param maxLineLength the maximum number of bytes to store into str;
  40689. the rest of the line is silently discarded.
  40690. @param maxBytesToConsume the maximum number of bytes to consume
  40691. in this call. This is only a hint, because if the line cross
  40692. this threshold, we allow it to happen. It can overshoot
  40693. potentially by as much as one buffer length.
  40694. @return the number of bytes read including the (longest) newline
  40695. found.
  40696. @throws IOException if the underlying stream throws]]>
  40697. </doc>
  40698. </method>
  40699. <method name="readLine" return="int"
  40700. abstract="false" native="false" synchronized="false"
  40701. static="false" final="false" visibility="public"
  40702. deprecated="not deprecated">
  40703. <param name="str" type="org.apache.hadoop.io.Text"/>
  40704. <param name="maxLineLength" type="int"/>
  40705. <exception name="IOException" type="java.io.IOException"/>
  40706. <doc>
  40707. <![CDATA[Read from the InputStream into the given Text.
  40708. @param str the object to store the given line
  40709. @param maxLineLength the maximum number of bytes to store into str.
  40710. @return the number of bytes read including the newline
  40711. @throws IOException if the underlying stream throws]]>
  40712. </doc>
  40713. </method>
  40714. <method name="readLine" return="int"
  40715. abstract="false" native="false" synchronized="false"
  40716. static="false" final="false" visibility="public"
  40717. deprecated="not deprecated">
  40718. <param name="str" type="org.apache.hadoop.io.Text"/>
  40719. <exception name="IOException" type="java.io.IOException"/>
  40720. <doc>
  40721. <![CDATA[Read from the InputStream into the given Text.
  40722. @param str the object to store the given line
  40723. @return the number of bytes read including the newline
  40724. @throws IOException if the underlying stream throws]]>
  40725. </doc>
  40726. </method>
  40727. <doc>
  40728. <![CDATA[A class that provides a line reader from an input stream.
  40729. Depending on the constructor used, lines will either be terminated by:
  40730. <ul>
  40731. <li>one of the following: '\n' (LF) , '\r' (CR),
  40732. or '\r\n' (CR+LF).</li>
  40733. <li><em>or</em>, a custom byte sequence delimiter</li>
  40734. </ul>
  40735. In both cases, EOF also terminates an otherwise unterminated
  40736. line.]]>
  40737. </doc>
  40738. </class>
  40739. <!-- end class org.apache.hadoop.util.LineReader -->
  40740. <!-- start class org.apache.hadoop.util.LinuxMemoryCalculatorPlugin -->
  40741. <class name="LinuxMemoryCalculatorPlugin" extends="org.apache.hadoop.util.MemoryCalculatorPlugin"
  40742. abstract="false"
  40743. static="false" final="false" visibility="public"
  40744. deprecated="Use {@link org.apache.hadoop.util.LinuxResourceCalculatorPlugin}
  40745. instead">
  40746. <constructor name="LinuxMemoryCalculatorPlugin"
  40747. static="false" final="false" visibility="public"
  40748. deprecated="not deprecated">
  40749. </constructor>
  40750. <method name="getPhysicalMemorySize" return="long"
  40751. abstract="false" native="false" synchronized="false"
  40752. static="false" final="false" visibility="public"
  40753. deprecated="not deprecated">
  40754. <doc>
  40755. <![CDATA[{@inheritDoc}]]>
  40756. </doc>
  40757. </method>
  40758. <method name="getVirtualMemorySize" return="long"
  40759. abstract="false" native="false" synchronized="false"
  40760. static="false" final="false" visibility="public"
  40761. deprecated="not deprecated">
  40762. <doc>
  40763. <![CDATA[{@inheritDoc}]]>
  40764. </doc>
  40765. </method>
  40766. <doc>
  40767. <![CDATA[Plugin to calculate virtual and physical memories on Linux systems.
  40768. @deprecated Use {@link org.apache.hadoop.util.LinuxResourceCalculatorPlugin}
  40769. instead]]>
  40770. </doc>
  40771. </class>
  40772. <!-- end class org.apache.hadoop.util.LinuxMemoryCalculatorPlugin -->
  40773. <!-- start class org.apache.hadoop.util.LinuxResourceCalculatorPlugin -->
  40774. <class name="LinuxResourceCalculatorPlugin" extends="org.apache.hadoop.util.ResourceCalculatorPlugin"
  40775. abstract="false"
  40776. static="false" final="false" visibility="public"
  40777. deprecated="not deprecated">
  40778. <constructor name="LinuxResourceCalculatorPlugin"
  40779. static="false" final="false" visibility="public"
  40780. deprecated="not deprecated">
  40781. </constructor>
  40782. <constructor name="LinuxResourceCalculatorPlugin" type="java.lang.String, java.lang.String, java.lang.String, long"
  40783. static="false" final="false" visibility="public"
  40784. deprecated="not deprecated">
  40785. <doc>
  40786. <![CDATA[Constructor which allows assigning the /proc/ directories. This will be
  40787. used only in unit tests
  40788. @param procfsMemFile fake file for /proc/meminfo
  40789. @param procfsCpuFile fake file for /proc/cpuinfo
  40790. @param procfsStatFile fake file for /proc/stat
  40791. @param jiffyLengthInMillis fake jiffy length value]]>
  40792. </doc>
  40793. </constructor>
  40794. <method name="getPhysicalMemorySize" return="long"
  40795. abstract="false" native="false" synchronized="false"
  40796. static="false" final="false" visibility="public"
  40797. deprecated="not deprecated">
  40798. <doc>
  40799. <![CDATA[{@inheritDoc}]]>
  40800. </doc>
  40801. </method>
  40802. <method name="getVirtualMemorySize" return="long"
  40803. abstract="false" native="false" synchronized="false"
  40804. static="false" final="false" visibility="public"
  40805. deprecated="not deprecated">
  40806. <doc>
  40807. <![CDATA[{@inheritDoc}]]>
  40808. </doc>
  40809. </method>
  40810. <method name="getAvailablePhysicalMemorySize" return="long"
  40811. abstract="false" native="false" synchronized="false"
  40812. static="false" final="false" visibility="public"
  40813. deprecated="not deprecated">
  40814. <doc>
  40815. <![CDATA[{@inheritDoc}]]>
  40816. </doc>
  40817. </method>
  40818. <method name="getAvailableVirtualMemorySize" return="long"
  40819. abstract="false" native="false" synchronized="false"
  40820. static="false" final="false" visibility="public"
  40821. deprecated="not deprecated">
  40822. <doc>
  40823. <![CDATA[{@inheritDoc}]]>
  40824. </doc>
  40825. </method>
  40826. <method name="getNumProcessors" return="int"
  40827. abstract="false" native="false" synchronized="false"
  40828. static="false" final="false" visibility="public"
  40829. deprecated="not deprecated">
  40830. <doc>
  40831. <![CDATA[{@inheritDoc}]]>
  40832. </doc>
  40833. </method>
  40834. <method name="getCpuFrequency" return="long"
  40835. abstract="false" native="false" synchronized="false"
  40836. static="false" final="false" visibility="public"
  40837. deprecated="not deprecated">
  40838. <doc>
  40839. <![CDATA[{@inheritDoc}]]>
  40840. </doc>
  40841. </method>
  40842. <method name="getCumulativeCpuTime" return="long"
  40843. abstract="false" native="false" synchronized="false"
  40844. static="false" final="false" visibility="public"
  40845. deprecated="not deprecated">
  40846. <doc>
  40847. <![CDATA[{@inheritDoc}]]>
  40848. </doc>
  40849. </method>
  40850. <method name="getCpuUsage" return="float"
  40851. abstract="false" native="false" synchronized="false"
  40852. static="false" final="false" visibility="public"
  40853. deprecated="not deprecated">
  40854. <doc>
  40855. <![CDATA[{@inheritDoc}]]>
  40856. </doc>
  40857. </method>
  40858. <method name="main"
  40859. abstract="false" native="false" synchronized="false"
  40860. static="true" final="false" visibility="public"
  40861. deprecated="not deprecated">
  40862. <param name="args" type="java.lang.String[]"/>
  40863. <doc>
  40864. <![CDATA[Test the {@link LinuxResourceCalculatorPlugin}
  40865. @param args]]>
  40866. </doc>
  40867. </method>
  40868. <method name="getProcResourceValues" return="org.apache.hadoop.util.ResourceCalculatorPlugin.ProcResourceValues"
  40869. abstract="false" native="false" synchronized="false"
  40870. static="false" final="false" visibility="public"
  40871. deprecated="not deprecated">
  40872. </method>
  40873. <doc>
  40874. <![CDATA[Plugin to calculate resource information on Linux systems.]]>
  40875. </doc>
  40876. </class>
  40877. <!-- end class org.apache.hadoop.util.LinuxResourceCalculatorPlugin -->
  40878. <!-- start class org.apache.hadoop.util.MemoryCalculatorPlugin -->
  40879. <class name="MemoryCalculatorPlugin" extends="org.apache.hadoop.conf.Configured"
  40880. abstract="true"
  40881. static="false" final="false" visibility="public"
  40882. deprecated="Use
  40883. {@link org.apache.hadoop.util.ResourceCalculatorPlugin}
  40884. instead">
  40885. <constructor name="MemoryCalculatorPlugin"
  40886. static="false" final="false" visibility="public"
  40887. deprecated="not deprecated">
  40888. </constructor>
  40889. <method name="getVirtualMemorySize" return="long"
  40890. abstract="true" native="false" synchronized="false"
  40891. static="false" final="false" visibility="public"
  40892. deprecated="not deprecated">
  40893. <doc>
  40894. <![CDATA[Obtain the total size of the virtual memory present in the system.
  40895. @return virtual memory size in bytes.]]>
  40896. </doc>
  40897. </method>
  40898. <method name="getPhysicalMemorySize" return="long"
  40899. abstract="true" native="false" synchronized="false"
  40900. static="false" final="false" visibility="public"
  40901. deprecated="not deprecated">
  40902. <doc>
  40903. <![CDATA[Obtain the total size of the physical memory present in the system.
  40904. @return physical memory size bytes.]]>
  40905. </doc>
  40906. </method>
  40907. <method name="getMemoryCalculatorPlugin" return="org.apache.hadoop.util.MemoryCalculatorPlugin"
  40908. abstract="false" native="false" synchronized="false"
  40909. static="true" final="false" visibility="public"
  40910. deprecated="not deprecated">
  40911. <param name="clazz" type="java.lang.Class"/>
  40912. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  40913. <doc>
  40914. <![CDATA[Get the MemoryCalculatorPlugin from the class name and configure it. If
  40915. class name is null, this method will try and return a memory calculator
  40916. plugin available for this system.
  40917. @param clazz class-name
  40918. @param conf configure the plugin with this.
  40919. @return MemoryCalculatorPlugin]]>
  40920. </doc>
  40921. </method>
  40922. <doc>
  40923. <![CDATA[Plugin to calculate virtual and physical memories on the system.
  40924. @deprecated Use
  40925. {@link org.apache.hadoop.util.ResourceCalculatorPlugin}
  40926. instead]]>
  40927. </doc>
  40928. </class>
  40929. <!-- end class org.apache.hadoop.util.MemoryCalculatorPlugin -->
  40930. <!-- start class org.apache.hadoop.util.MergeSort -->
  40931. <class name="MergeSort" extends="java.lang.Object"
  40932. abstract="false"
  40933. static="false" final="false" visibility="public"
  40934. deprecated="not deprecated">
  40935. <constructor name="MergeSort" type="java.util.Comparator"
  40936. static="false" final="false" visibility="public"
  40937. deprecated="not deprecated">
  40938. </constructor>
  40939. <method name="mergeSort"
  40940. abstract="false" native="false" synchronized="false"
  40941. static="false" final="false" visibility="public"
  40942. deprecated="not deprecated">
  40943. <param name="src" type="int[]"/>
  40944. <param name="dest" type="int[]"/>
  40945. <param name="low" type="int"/>
  40946. <param name="high" type="int"/>
  40947. </method>
  40948. <doc>
  40949. <![CDATA[An implementation of the core algorithm of MergeSort.]]>
  40950. </doc>
  40951. </class>
  40952. <!-- end class org.apache.hadoop.util.MergeSort -->
  40953. <!-- start class org.apache.hadoop.util.NativeCodeLoader -->
  40954. <class name="NativeCodeLoader" extends="java.lang.Object"
  40955. abstract="false"
  40956. static="false" final="false" visibility="public"
  40957. deprecated="not deprecated">
  40958. <constructor name="NativeCodeLoader"
  40959. static="false" final="false" visibility="public"
  40960. deprecated="not deprecated">
  40961. </constructor>
  40962. <method name="isNativeCodeLoaded" return="boolean"
  40963. abstract="false" native="false" synchronized="false"
  40964. static="true" final="false" visibility="public"
  40965. deprecated="not deprecated">
  40966. <doc>
  40967. <![CDATA[Check if native-hadoop code is loaded for this platform.
  40968. @return <code>true</code> if native-hadoop is loaded,
  40969. else <code>false</code>]]>
  40970. </doc>
  40971. </method>
  40972. <method name="getLoadNativeLibraries" return="boolean"
  40973. abstract="false" native="false" synchronized="false"
  40974. static="false" final="false" visibility="public"
  40975. deprecated="not deprecated">
  40976. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  40977. <doc>
  40978. <![CDATA[Return if native hadoop libraries, if present, can be used for this job.
  40979. @param conf configuration
  40980. @return <code>true</code> if native hadoop libraries, if present, can be
  40981. used for this job; <code>false</code> otherwise.]]>
  40982. </doc>
  40983. </method>
  40984. <method name="setLoadNativeLibraries"
  40985. abstract="false" native="false" synchronized="false"
  40986. static="false" final="false" visibility="public"
  40987. deprecated="not deprecated">
  40988. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  40989. <param name="loadNativeLibraries" type="boolean"/>
  40990. <doc>
  40991. <![CDATA[Set if native hadoop libraries, if present, can be used for this job.
  40992. @param conf configuration
  40993. @param loadNativeLibraries can native hadoop libraries be loaded]]>
  40994. </doc>
  40995. </method>
  40996. <doc>
  40997. <![CDATA[A helper to load the native hadoop code i.e. libhadoop.so.
  40998. This handles the fallback to either the bundled libhadoop-Linux-i386-32.so
  40999. or the default java implementations where appropriate.]]>
  41000. </doc>
  41001. </class>
  41002. <!-- end class org.apache.hadoop.util.NativeCodeLoader -->
  41003. <!-- start class org.apache.hadoop.util.PlatformName -->
  41004. <class name="PlatformName" extends="java.lang.Object"
  41005. abstract="false"
  41006. static="false" final="false" visibility="public"
  41007. deprecated="not deprecated">
  41008. <constructor name="PlatformName"
  41009. static="false" final="false" visibility="public"
  41010. deprecated="not deprecated">
  41011. </constructor>
  41012. <method name="getPlatformName" return="java.lang.String"
  41013. abstract="false" native="false" synchronized="false"
  41014. static="true" final="false" visibility="public"
  41015. deprecated="not deprecated">
  41016. <doc>
  41017. <![CDATA[Get the complete platform as per the java-vm.
  41018. @return returns the complete platform as per the java-vm.]]>
  41019. </doc>
  41020. </method>
  41021. <method name="main"
  41022. abstract="false" native="false" synchronized="false"
  41023. static="true" final="false" visibility="public"
  41024. deprecated="not deprecated">
  41025. <param name="args" type="java.lang.String[]"/>
  41026. </method>
  41027. <doc>
  41028. <![CDATA[A helper class for getting build-info of the java-vm.]]>
  41029. </doc>
  41030. </class>
  41031. <!-- end class org.apache.hadoop.util.PlatformName -->
  41032. <!-- start class org.apache.hadoop.util.PrintJarMainClass -->
  41033. <class name="PrintJarMainClass" extends="java.lang.Object"
  41034. abstract="false"
  41035. static="false" final="false" visibility="public"
  41036. deprecated="not deprecated">
  41037. <constructor name="PrintJarMainClass"
  41038. static="false" final="false" visibility="public"
  41039. deprecated="not deprecated">
  41040. </constructor>
  41041. <method name="main"
  41042. abstract="false" native="false" synchronized="false"
  41043. static="true" final="false" visibility="public"
  41044. deprecated="not deprecated">
  41045. <param name="args" type="java.lang.String[]"/>
  41046. <doc>
  41047. <![CDATA[@param args]]>
  41048. </doc>
  41049. </method>
  41050. <doc>
  41051. <![CDATA[A micro-application that prints the main class name out of a jar file.]]>
  41052. </doc>
  41053. </class>
  41054. <!-- end class org.apache.hadoop.util.PrintJarMainClass -->
  41055. <!-- start class org.apache.hadoop.util.PriorityQueue -->
  41056. <class name="PriorityQueue" extends="java.lang.Object"
  41057. abstract="true"
  41058. static="false" final="false" visibility="public"
  41059. deprecated="not deprecated">
  41060. <constructor name="PriorityQueue"
  41061. static="false" final="false" visibility="public"
  41062. deprecated="not deprecated">
  41063. </constructor>
  41064. <method name="lessThan" return="boolean"
  41065. abstract="true" native="false" synchronized="false"
  41066. static="false" final="false" visibility="protected"
  41067. deprecated="not deprecated">
  41068. <param name="a" type="java.lang.Object"/>
  41069. <param name="b" type="java.lang.Object"/>
  41070. <doc>
  41071. <![CDATA[Determines the ordering of objects in this priority queue. Subclasses
  41072. must define this one method.]]>
  41073. </doc>
  41074. </method>
  41075. <method name="initialize"
  41076. abstract="false" native="false" synchronized="false"
  41077. static="false" final="true" visibility="protected"
  41078. deprecated="not deprecated">
  41079. <param name="maxSize" type="int"/>
  41080. <doc>
  41081. <![CDATA[Subclass constructors must call this.]]>
  41082. </doc>
  41083. </method>
  41084. <method name="put"
  41085. abstract="false" native="false" synchronized="false"
  41086. static="false" final="true" visibility="public"
  41087. deprecated="not deprecated">
  41088. <param name="element" type="java.lang.Object"/>
  41089. <doc>
  41090. <![CDATA[Adds an Object to a PriorityQueue in log(size) time.
  41091. If one tries to add more objects than maxSize from initialize
  41092. a RuntimeException (ArrayIndexOutOfBound) is thrown.]]>
  41093. </doc>
  41094. </method>
  41095. <method name="insert" return="boolean"
  41096. abstract="false" native="false" synchronized="false"
  41097. static="false" final="false" visibility="public"
  41098. deprecated="not deprecated">
  41099. <param name="element" type="java.lang.Object"/>
  41100. <doc>
  41101. <![CDATA[Adds element to the PriorityQueue in log(size) time if either
  41102. the PriorityQueue is not full, or not lessThan(element, top()).
  41103. @param element
  41104. @return true if element is added, false otherwise.]]>
  41105. </doc>
  41106. </method>
  41107. <method name="top" return="java.lang.Object"
  41108. abstract="false" native="false" synchronized="false"
  41109. static="false" final="true" visibility="public"
  41110. deprecated="not deprecated">
  41111. <doc>
  41112. <![CDATA[Returns the least element of the PriorityQueue in constant time.]]>
  41113. </doc>
  41114. </method>
  41115. <method name="pop" return="java.lang.Object"
  41116. abstract="false" native="false" synchronized="false"
  41117. static="false" final="true" visibility="public"
  41118. deprecated="not deprecated">
  41119. <doc>
  41120. <![CDATA[Removes and returns the least element of the PriorityQueue in log(size)
  41121. time.]]>
  41122. </doc>
  41123. </method>
  41124. <method name="adjustTop"
  41125. abstract="false" native="false" synchronized="false"
  41126. static="false" final="true" visibility="public"
  41127. deprecated="not deprecated">
  41128. <doc>
  41129. <![CDATA[Should be called when the Object at top changes values. Still log(n)
  41130. worst case, but it's at least twice as fast to <pre>
  41131. { pq.top().change(); pq.adjustTop(); }
  41132. </pre> instead of <pre>
  41133. { o = pq.pop(); o.change(); pq.push(o); }
  41134. </pre>]]>
  41135. </doc>
  41136. </method>
  41137. <method name="size" return="int"
  41138. abstract="false" native="false" synchronized="false"
  41139. static="false" final="true" visibility="public"
  41140. deprecated="not deprecated">
  41141. <doc>
  41142. <![CDATA[Returns the number of elements currently stored in the PriorityQueue.]]>
  41143. </doc>
  41144. </method>
  41145. <method name="clear"
  41146. abstract="false" native="false" synchronized="false"
  41147. static="false" final="true" visibility="public"
  41148. deprecated="not deprecated">
  41149. <doc>
  41150. <![CDATA[Removes all entries from the PriorityQueue.]]>
  41151. </doc>
  41152. </method>
  41153. <doc>
  41154. <![CDATA[A PriorityQueue maintains a partial ordering of its elements such that the
  41155. least element can always be found in constant time. Put()'s and pop()'s
  41156. require log(size) time.]]>
  41157. </doc>
  41158. </class>
  41159. <!-- end class org.apache.hadoop.util.PriorityQueue -->
  41160. <!-- start class org.apache.hadoop.util.ProcessTree -->
  41161. <class name="ProcessTree" extends="java.lang.Object"
  41162. abstract="false"
  41163. static="false" final="false" visibility="public"
  41164. deprecated="not deprecated">
  41165. <constructor name="ProcessTree"
  41166. static="false" final="false" visibility="public"
  41167. deprecated="not deprecated">
  41168. </constructor>
  41169. <method name="killProcess"
  41170. abstract="false" native="false" synchronized="false"
  41171. static="true" final="false" visibility="public"
  41172. deprecated="not deprecated">
  41173. <param name="pid" type="java.lang.String"/>
  41174. <param name="signal" type="org.apache.hadoop.util.ProcessTree.Signal"/>
  41175. <doc>
  41176. <![CDATA[Sends signal to process, forcefully terminating the process.
  41177. @param pid process id
  41178. @param signal the signal number to send]]>
  41179. </doc>
  41180. </method>
  41181. <method name="killProcessGroup"
  41182. abstract="false" native="false" synchronized="false"
  41183. static="true" final="false" visibility="public"
  41184. deprecated="not deprecated">
  41185. <param name="pgrpId" type="java.lang.String"/>
  41186. <param name="signal" type="org.apache.hadoop.util.ProcessTree.Signal"/>
  41187. <doc>
  41188. <![CDATA[Sends signal to all process belonging to same process group,
  41189. forcefully terminating the process group.
  41190. @param pgrpId process group id
  41191. @param signal the signal number to send]]>
  41192. </doc>
  41193. </method>
  41194. <method name="isAlive" return="boolean"
  41195. abstract="false" native="false" synchronized="false"
  41196. static="true" final="false" visibility="public"
  41197. deprecated="not deprecated">
  41198. <param name="pid" type="java.lang.String"/>
  41199. <doc>
  41200. <![CDATA[Is the process with PID pid still alive?
  41201. This method assumes that isAlive is called on a pid that was alive not
  41202. too long ago, and hence assumes no chance of pid-wrapping-around.
  41203. @param pid pid of the process to check.
  41204. @return true if process is alive.]]>
  41205. </doc>
  41206. </method>
  41207. <method name="isProcessGroupAlive" return="boolean"
  41208. abstract="false" native="false" synchronized="false"
  41209. static="true" final="false" visibility="public"
  41210. deprecated="not deprecated">
  41211. <param name="pgrpId" type="java.lang.String"/>
  41212. <doc>
  41213. <![CDATA[Is the process group with still alive?
  41214. This method assumes that isAlive is called on a pid that was alive not
  41215. too long ago, and hence assumes no chance of pid-wrapping-around.
  41216. @param pgrpId process group id
  41217. @return true if any of process in group is alive.]]>
  41218. </doc>
  41219. </method>
  41220. <field name="isSetsidAvailable" type="boolean"
  41221. transient="false" volatile="false"
  41222. static="true" final="true" visibility="public"
  41223. deprecated="not deprecated">
  41224. </field>
  41225. <doc>
  41226. <![CDATA[Process tree related operations]]>
  41227. </doc>
  41228. </class>
  41229. <!-- end class org.apache.hadoop.util.ProcessTree -->
  41230. <!-- start class org.apache.hadoop.util.ProcessTree.Signal -->
  41231. <class name="ProcessTree.Signal" extends="java.lang.Enum"
  41232. abstract="false"
  41233. static="true" final="true" visibility="public"
  41234. deprecated="not deprecated">
  41235. <method name="values" return="org.apache.hadoop.util.ProcessTree.Signal[]"
  41236. abstract="false" native="false" synchronized="false"
  41237. static="true" final="false" visibility="public"
  41238. deprecated="not deprecated">
  41239. </method>
  41240. <method name="valueOf" return="org.apache.hadoop.util.ProcessTree.Signal"
  41241. abstract="false" native="false" synchronized="false"
  41242. static="true" final="false" visibility="public"
  41243. deprecated="not deprecated">
  41244. <param name="name" type="java.lang.String"/>
  41245. </method>
  41246. <method name="getValue" return="int"
  41247. abstract="false" native="false" synchronized="false"
  41248. static="false" final="false" visibility="public"
  41249. deprecated="not deprecated">
  41250. </method>
  41251. <field name="QUIT" type="org.apache.hadoop.util.ProcessTree.Signal"
  41252. transient="false" volatile="false"
  41253. static="true" final="true" visibility="public"
  41254. deprecated="not deprecated">
  41255. </field>
  41256. <field name="KILL" type="org.apache.hadoop.util.ProcessTree.Signal"
  41257. transient="false" volatile="false"
  41258. static="true" final="true" visibility="public"
  41259. deprecated="not deprecated">
  41260. </field>
  41261. <field name="TERM" type="org.apache.hadoop.util.ProcessTree.Signal"
  41262. transient="false" volatile="false"
  41263. static="true" final="true" visibility="public"
  41264. deprecated="not deprecated">
  41265. </field>
  41266. <doc>
  41267. <![CDATA[The constants for the signals.]]>
  41268. </doc>
  41269. </class>
  41270. <!-- end class org.apache.hadoop.util.ProcessTree.Signal -->
  41271. <!-- start class org.apache.hadoop.util.ProcfsBasedProcessTree -->
  41272. <class name="ProcfsBasedProcessTree" extends="org.apache.hadoop.util.ProcessTree"
  41273. abstract="false"
  41274. static="false" final="false" visibility="public"
  41275. deprecated="not deprecated">
  41276. <constructor name="ProcfsBasedProcessTree" type="java.lang.String"
  41277. static="false" final="false" visibility="public"
  41278. deprecated="not deprecated">
  41279. </constructor>
  41280. <constructor name="ProcfsBasedProcessTree" type="java.lang.String, boolean"
  41281. static="false" final="false" visibility="public"
  41282. deprecated="not deprecated">
  41283. </constructor>
  41284. <constructor name="ProcfsBasedProcessTree" type="java.lang.String, java.lang.String"
  41285. static="false" final="false" visibility="public"
  41286. deprecated="not deprecated">
  41287. </constructor>
  41288. <method name="isAvailable" return="boolean"
  41289. abstract="false" native="false" synchronized="false"
  41290. static="true" final="false" visibility="public"
  41291. deprecated="not deprecated">
  41292. <doc>
  41293. <![CDATA[Checks if the ProcfsBasedProcessTree is available on this system.
  41294. @return true if ProcfsBasedProcessTree is available. False otherwise.]]>
  41295. </doc>
  41296. </method>
  41297. <method name="getProcessTree" return="org.apache.hadoop.util.ProcfsBasedProcessTree"
  41298. abstract="false" native="false" synchronized="false"
  41299. static="false" final="false" visibility="public"
  41300. deprecated="not deprecated">
  41301. <doc>
  41302. <![CDATA[Get the process-tree with latest state. If the root-process is not alive,
  41303. an empty tree will be returned.
  41304. @return the process-tree with latest state.]]>
  41305. </doc>
  41306. </method>
  41307. <method name="isAlive" return="boolean"
  41308. abstract="false" native="false" synchronized="false"
  41309. static="false" final="false" visibility="public"
  41310. deprecated="not deprecated">
  41311. <doc>
  41312. <![CDATA[Is the root-process alive?
  41313. @return true if the root-process is alive, false otherwise.]]>
  41314. </doc>
  41315. </method>
  41316. <method name="isAnyProcessInTreeAlive" return="boolean"
  41317. abstract="false" native="false" synchronized="false"
  41318. static="false" final="false" visibility="public"
  41319. deprecated="not deprecated">
  41320. <doc>
  41321. <![CDATA[Is any of the subprocesses in the process-tree alive?
  41322. @return true if any of the processes in the process-tree is
  41323. alive, false otherwise.]]>
  41324. </doc>
  41325. </method>
  41326. <method name="getProcessTreeDump" return="java.lang.String"
  41327. abstract="false" native="false" synchronized="false"
  41328. static="false" final="false" visibility="public"
  41329. deprecated="not deprecated">
  41330. <doc>
  41331. <![CDATA[Get a dump of the process-tree.
  41332. @return a string concatenating the dump of information of all the processes
  41333. in the process-tree]]>
  41334. </doc>
  41335. </method>
  41336. <method name="getCumulativeVmem" return="long"
  41337. abstract="false" native="false" synchronized="false"
  41338. static="false" final="false" visibility="public"
  41339. deprecated="not deprecated">
  41340. <doc>
  41341. <![CDATA[Get the cumulative virtual memory used by all the processes in the
  41342. process-tree.
  41343. @return cumulative virtual memory used by the process-tree in bytes.]]>
  41344. </doc>
  41345. </method>
  41346. <method name="getCumulativeRssmem" return="long"
  41347. abstract="false" native="false" synchronized="false"
  41348. static="false" final="false" visibility="public"
  41349. deprecated="not deprecated">
  41350. <doc>
  41351. <![CDATA[Get the cumulative resident set size (rss) memory used by all the processes
  41352. in the process-tree.
  41353. @return cumulative rss memory used by the process-tree in bytes. return 0
  41354. if it cannot be calculated]]>
  41355. </doc>
  41356. </method>
  41357. <method name="getCumulativeVmem" return="long"
  41358. abstract="false" native="false" synchronized="false"
  41359. static="false" final="false" visibility="public"
  41360. deprecated="not deprecated">
  41361. <param name="olderThanAge" type="int"/>
  41362. <doc>
  41363. <![CDATA[Get the cumulative virtual memory used by all the processes in the
  41364. process-tree that are older than the passed in age.
  41365. @param olderThanAge processes above this age are included in the
  41366. memory addition
  41367. @return cumulative virtual memory used by the process-tree in bytes,
  41368. for processes older than this age.]]>
  41369. </doc>
  41370. </method>
  41371. <method name="getCumulativeRssmem" return="long"
  41372. abstract="false" native="false" synchronized="false"
  41373. static="false" final="false" visibility="public"
  41374. deprecated="not deprecated">
  41375. <param name="olderThanAge" type="int"/>
  41376. <doc>
  41377. <![CDATA[Get the cumulative resident set size (rss) memory used by all the processes
  41378. in the process-tree that are older than the passed in age.
  41379. @param olderThanAge processes above this age are included in the
  41380. memory addition
  41381. @return cumulative rss memory used by the process-tree in bytes,
  41382. for processes older than this age. return 0 if it cannot be
  41383. calculated]]>
  41384. </doc>
  41385. </method>
  41386. <method name="getCumulativeCpuTime" return="long"
  41387. abstract="false" native="false" synchronized="false"
  41388. static="false" final="false" visibility="public"
  41389. deprecated="not deprecated">
  41390. <doc>
  41391. <![CDATA[Get the CPU time in millisecond used by all the processes in the
  41392. process-tree since the process-tree created
  41393. @return cumulative CPU time in millisecond since the process-tree created
  41394. return 0 if it cannot be calculated]]>
  41395. </doc>
  41396. </method>
  41397. <method name="toString" return="java.lang.String"
  41398. abstract="false" native="false" synchronized="false"
  41399. static="false" final="false" visibility="public"
  41400. deprecated="not deprecated">
  41401. <doc>
  41402. <![CDATA[Returns a string printing PIDs of process present in the
  41403. ProcfsBasedProcessTree. Output format : [pid pid ..]]]>
  41404. </doc>
  41405. </method>
  41406. <field name="PAGE_SIZE" type="long"
  41407. transient="false" volatile="false"
  41408. static="true" final="true" visibility="public"
  41409. deprecated="not deprecated">
  41410. </field>
  41411. <field name="JIFFY_LENGTH_IN_MILLIS" type="long"
  41412. transient="false" volatile="false"
  41413. static="true" final="true" visibility="public"
  41414. deprecated="not deprecated">
  41415. </field>
  41416. <doc>
  41417. <![CDATA[A Proc file-system based ProcessTree. Works only on Linux.]]>
  41418. </doc>
  41419. </class>
  41420. <!-- end class org.apache.hadoop.util.ProcfsBasedProcessTree -->
  41421. <!-- start class org.apache.hadoop.util.ProgramDriver -->
  41422. <class name="ProgramDriver" extends="java.lang.Object"
  41423. abstract="false"
  41424. static="false" final="false" visibility="public"
  41425. deprecated="not deprecated">
  41426. <constructor name="ProgramDriver"
  41427. static="false" final="false" visibility="public"
  41428. deprecated="not deprecated">
  41429. </constructor>
  41430. <method name="addClass"
  41431. abstract="false" native="false" synchronized="false"
  41432. static="false" final="false" visibility="public"
  41433. deprecated="not deprecated">
  41434. <param name="name" type="java.lang.String"/>
  41435. <param name="mainClass" type="java.lang.Class"/>
  41436. <param name="description" type="java.lang.String"/>
  41437. <exception name="Throwable" type="java.lang.Throwable"/>
  41438. <doc>
  41439. <![CDATA[This is the method that adds the classed to the repository
  41440. @param name The name of the string you want the class instance to be called with
  41441. @param mainClass The class that you want to add to the repository
  41442. @param description The description of the class
  41443. @throws NoSuchMethodException
  41444. @throws SecurityException]]>
  41445. </doc>
  41446. </method>
  41447. <method name="driver"
  41448. abstract="false" native="false" synchronized="false"
  41449. static="false" final="false" visibility="public"
  41450. deprecated="not deprecated">
  41451. <param name="args" type="java.lang.String[]"/>
  41452. <exception name="Throwable" type="java.lang.Throwable"/>
  41453. <doc>
  41454. <![CDATA[This is a driver for the example programs.
  41455. It looks at the first command line argument and tries to find an
  41456. example program with that name.
  41457. If it is found, it calls the main method in that class with the rest
  41458. of the command line arguments.
  41459. @param args The argument from the user. args[0] is the command to run.
  41460. @throws NoSuchMethodException
  41461. @throws SecurityException
  41462. @throws IllegalAccessException
  41463. @throws IllegalArgumentException
  41464. @throws Throwable Anything thrown by the example program's main]]>
  41465. </doc>
  41466. </method>
  41467. <doc>
  41468. <![CDATA[A driver that is used to run programs added to it]]>
  41469. </doc>
  41470. </class>
  41471. <!-- end class org.apache.hadoop.util.ProgramDriver -->
  41472. <!-- start class org.apache.hadoop.util.Progress -->
  41473. <class name="Progress" extends="java.lang.Object"
  41474. abstract="false"
  41475. static="false" final="false" visibility="public"
  41476. deprecated="not deprecated">
  41477. <constructor name="Progress"
  41478. static="false" final="false" visibility="public"
  41479. deprecated="not deprecated">
  41480. <doc>
  41481. <![CDATA[Creates a new root node.]]>
  41482. </doc>
  41483. </constructor>
  41484. <method name="addPhase" return="org.apache.hadoop.util.Progress"
  41485. abstract="false" native="false" synchronized="false"
  41486. static="false" final="false" visibility="public"
  41487. deprecated="not deprecated">
  41488. <param name="status" type="java.lang.String"/>
  41489. <doc>
  41490. <![CDATA[Adds a named node to the tree.]]>
  41491. </doc>
  41492. </method>
  41493. <method name="addPhase" return="org.apache.hadoop.util.Progress"
  41494. abstract="false" native="false" synchronized="true"
  41495. static="false" final="false" visibility="public"
  41496. deprecated="not deprecated">
  41497. <doc>
  41498. <![CDATA[Adds a node to the tree.]]>
  41499. </doc>
  41500. </method>
  41501. <method name="startNextPhase"
  41502. abstract="false" native="false" synchronized="true"
  41503. static="false" final="false" visibility="public"
  41504. deprecated="not deprecated">
  41505. <doc>
  41506. <![CDATA[Called during execution to move to the next phase at this level in the
  41507. tree.]]>
  41508. </doc>
  41509. </method>
  41510. <method name="phase" return="org.apache.hadoop.util.Progress"
  41511. abstract="false" native="false" synchronized="true"
  41512. static="false" final="false" visibility="public"
  41513. deprecated="not deprecated">
  41514. <doc>
  41515. <![CDATA[Returns the current sub-node executing.]]>
  41516. </doc>
  41517. </method>
  41518. <method name="complete"
  41519. abstract="false" native="false" synchronized="false"
  41520. static="false" final="false" visibility="public"
  41521. deprecated="not deprecated">
  41522. <doc>
  41523. <![CDATA[Completes this node, moving the parent node to its next child.]]>
  41524. </doc>
  41525. </method>
  41526. <method name="set"
  41527. abstract="false" native="false" synchronized="true"
  41528. static="false" final="false" visibility="public"
  41529. deprecated="not deprecated">
  41530. <param name="progress" type="float"/>
  41531. <doc>
  41532. <![CDATA[Called during execution on a leaf node to set its progress.]]>
  41533. </doc>
  41534. </method>
  41535. <method name="get" return="float"
  41536. abstract="false" native="false" synchronized="true"
  41537. static="false" final="false" visibility="public"
  41538. deprecated="not deprecated">
  41539. <doc>
  41540. <![CDATA[Returns the overall progress of the root.]]>
  41541. </doc>
  41542. </method>
  41543. <method name="getProgress" return="float"
  41544. abstract="false" native="false" synchronized="true"
  41545. static="false" final="false" visibility="public"
  41546. deprecated="not deprecated">
  41547. <doc>
  41548. <![CDATA[Returns progress in this node. get() would give overall progress of the
  41549. root node(not just given current node).]]>
  41550. </doc>
  41551. </method>
  41552. <method name="setStatus"
  41553. abstract="false" native="false" synchronized="true"
  41554. static="false" final="false" visibility="public"
  41555. deprecated="not deprecated">
  41556. <param name="status" type="java.lang.String"/>
  41557. </method>
  41558. <method name="toString" return="java.lang.String"
  41559. abstract="false" native="false" synchronized="false"
  41560. static="false" final="false" visibility="public"
  41561. deprecated="not deprecated">
  41562. </method>
  41563. <doc>
  41564. <![CDATA[Utility to assist with generation of progress reports. Applications build
  41565. a hierarchy of {@link Progress} instances, each modelling a phase of
  41566. execution. The root is constructed with {@link #Progress()}. Nodes for
  41567. sub-phases are created by calling {@link #addPhase()}.]]>
  41568. </doc>
  41569. </class>
  41570. <!-- end class org.apache.hadoop.util.Progress -->
  41571. <!-- start interface org.apache.hadoop.util.Progressable -->
  41572. <interface name="Progressable" abstract="true"
  41573. static="false" final="false" visibility="public"
  41574. deprecated="not deprecated">
  41575. <method name="progress"
  41576. abstract="false" native="false" synchronized="false"
  41577. static="false" final="false" visibility="public"
  41578. deprecated="not deprecated">
  41579. <doc>
  41580. <![CDATA[Report progress to the Hadoop framework.]]>
  41581. </doc>
  41582. </method>
  41583. <doc>
  41584. <![CDATA[A facility for reporting progress.
  41585. <p>Clients and/or applications can use the provided <code>Progressable</code>
  41586. to explicitly report progress to the Hadoop framework. This is especially
  41587. important for operations which take an insignificant amount of time since,
  41588. in-lieu of the reported progress, the framework has to assume that an error
  41589. has occured and time-out the operation.</p>]]>
  41590. </doc>
  41591. </interface>
  41592. <!-- end interface org.apache.hadoop.util.Progressable -->
  41593. <!-- start class org.apache.hadoop.util.PureJavaCrc32 -->
  41594. <class name="PureJavaCrc32" extends="java.lang.Object"
  41595. abstract="false"
  41596. static="false" final="false" visibility="public"
  41597. deprecated="not deprecated">
  41598. <implements name="java.util.zip.Checksum"/>
  41599. <constructor name="PureJavaCrc32"
  41600. static="false" final="false" visibility="public"
  41601. deprecated="not deprecated">
  41602. </constructor>
  41603. <method name="getValue" return="long"
  41604. abstract="false" native="false" synchronized="false"
  41605. static="false" final="false" visibility="public"
  41606. deprecated="not deprecated">
  41607. <doc>
  41608. <![CDATA[{@inheritDoc}]]>
  41609. </doc>
  41610. </method>
  41611. <method name="reset"
  41612. abstract="false" native="false" synchronized="false"
  41613. static="false" final="false" visibility="public"
  41614. deprecated="not deprecated">
  41615. <doc>
  41616. <![CDATA[{@inheritDoc}]]>
  41617. </doc>
  41618. </method>
  41619. <method name="update"
  41620. abstract="false" native="false" synchronized="false"
  41621. static="false" final="false" visibility="public"
  41622. deprecated="not deprecated">
  41623. <param name="b" type="byte[]"/>
  41624. <param name="off" type="int"/>
  41625. <param name="len" type="int"/>
  41626. <doc>
  41627. <![CDATA[{@inheritDoc}]]>
  41628. </doc>
  41629. </method>
  41630. <method name="update"
  41631. abstract="false" native="false" synchronized="false"
  41632. static="false" final="true" visibility="public"
  41633. deprecated="not deprecated">
  41634. <param name="b" type="int"/>
  41635. <doc>
  41636. <![CDATA[{@inheritDoc}]]>
  41637. </doc>
  41638. </method>
  41639. <doc>
  41640. <![CDATA[A pure-java implementation of the CRC32 checksum that uses
  41641. the same polynomial as the built-in native CRC32.
  41642. This is to avoid the JNI overhead for certain uses of Checksumming
  41643. where many small pieces of data are checksummed in succession.
  41644. The current version is ~10x to 1.8x as fast as Sun's native
  41645. java.util.zip.CRC32 in Java 1.6
  41646. @see java.util.zip.CRC32]]>
  41647. </doc>
  41648. </class>
  41649. <!-- end class org.apache.hadoop.util.PureJavaCrc32 -->
  41650. <!-- start class org.apache.hadoop.util.QueueProcessingStatistics -->
  41651. <class name="QueueProcessingStatistics" extends="java.lang.Object"
  41652. abstract="true"
  41653. static="false" final="false" visibility="public"
  41654. deprecated="not deprecated">
  41655. <constructor name="QueueProcessingStatistics" type="java.lang.String, java.lang.String, org.apache.commons.logging.Log"
  41656. static="false" final="false" visibility="public"
  41657. deprecated="not deprecated">
  41658. <doc>
  41659. <![CDATA[@param queueName - Human-readable name of the queue being monitored,
  41660. used as first word in the log messages.
  41661. @param workItemsName - what kind of work items are being managed
  41662. on the queue? A plural word is best here, for logging.
  41663. @param logObject - What log do you want the log messages to be sent to?]]>
  41664. </doc>
  41665. </constructor>
  41666. <method name="startCycle"
  41667. abstract="false" native="false" synchronized="false"
  41668. static="false" final="false" visibility="public"
  41669. deprecated="not deprecated">
  41670. <param name="maxWorkToProcess" type="int"/>
  41671. </method>
  41672. <method name="endCycle"
  41673. abstract="false" native="false" synchronized="false"
  41674. static="false" final="false" visibility="public"
  41675. deprecated="not deprecated">
  41676. <param name="workFound" type="int"/>
  41677. </method>
  41678. <method name="checkRestart"
  41679. abstract="false" native="false" synchronized="false"
  41680. static="false" final="false" visibility="public"
  41681. deprecated="not deprecated">
  41682. </method>
  41683. <method name="preCheckIsLastCycle" return="boolean"
  41684. abstract="true" native="false" synchronized="false"
  41685. static="false" final="false" visibility="public"
  41686. deprecated="not deprecated">
  41687. <param name="maxWorkToProcess" type="int"/>
  41688. <doc>
  41689. <![CDATA[The termination condition is to identify the last cycle that will
  41690. empty the queue. Two abstract APIs are called: {@code preCheckIsLastCycle}
  41691. is called at the beginning of each cycle, and
  41692. {@link #postCheckIsLastCycle} is called at the end of each cycle.
  41693. At least one of them must correctly provide the termination
  41694. condition. The other may always return 'false'. If either of them
  41695. returns 'true' in a given cycle, then at the end of that cycle the
  41696. stats will be output to log, and stats collection will end.
  41697. @param maxWorkToProcess - if this number is greater than the amount
  41698. of work remaining at the start of a cycle, then it will
  41699. be the last cycle.
  41700. @return - true if last cycle detected, else false]]>
  41701. </doc>
  41702. </method>
  41703. <method name="postCheckIsLastCycle" return="boolean"
  41704. abstract="true" native="false" synchronized="false"
  41705. static="false" final="false" visibility="public"
  41706. deprecated="not deprecated">
  41707. <param name="workFound" type="int"/>
  41708. <doc>
  41709. <![CDATA[See {@link #preCheckIsLastCycle}.
  41710. @param workFound - may not be useful
  41711. @return - true if remaining work is zero at end of cycle,
  41712. else false]]>
  41713. </doc>
  41714. </method>
  41715. <doc>
  41716. <![CDATA[Hadoop has several work queues, such as
  41717. {@link org.apache.hadoop.hdfs.server.namenode.FSNamesystem#neededReplications}
  41718. With a properly throttled queue, a worker thread cycles repeatedly,
  41719. doing a chunk of work each cycle then resting a bit, until the queue is
  41720. empty. This class is intended to collect statistics about the behavior of
  41721. such queues and consumers. It reports the amount of work done and
  41722. how long it took, for the first cycle after collection starts, and for
  41723. the total number of cycles needed to flush the queue. We use a state
  41724. machine to detect when the queue has been flushed and then we log the
  41725. stats; see {@link State} for enumeration of the states and their meanings.]]>
  41726. </doc>
  41727. </class>
  41728. <!-- end class org.apache.hadoop.util.QueueProcessingStatistics -->
  41729. <!-- start class org.apache.hadoop.util.QueueProcessingStatistics.State -->
  41730. <class name="QueueProcessingStatistics.State" extends="java.lang.Enum"
  41731. abstract="false"
  41732. static="true" final="true" visibility="public"
  41733. deprecated="not deprecated">
  41734. <method name="values" return="org.apache.hadoop.util.QueueProcessingStatistics.State[]"
  41735. abstract="false" native="false" synchronized="false"
  41736. static="true" final="false" visibility="public"
  41737. deprecated="not deprecated">
  41738. </method>
  41739. <method name="valueOf" return="org.apache.hadoop.util.QueueProcessingStatistics.State"
  41740. abstract="false" native="false" synchronized="false"
  41741. static="true" final="false" visibility="public"
  41742. deprecated="not deprecated">
  41743. <param name="name" type="java.lang.String"/>
  41744. </method>
  41745. <field name="BEGIN_COLLECTING" type="org.apache.hadoop.util.QueueProcessingStatistics.State"
  41746. transient="false" volatile="false"
  41747. static="true" final="true" visibility="public"
  41748. deprecated="not deprecated">
  41749. </field>
  41750. <field name="IN_FIRST_CYCLE" type="org.apache.hadoop.util.QueueProcessingStatistics.State"
  41751. transient="false" volatile="false"
  41752. static="true" final="true" visibility="public"
  41753. deprecated="not deprecated">
  41754. </field>
  41755. <field name="IN_SOLE_CYCLE" type="org.apache.hadoop.util.QueueProcessingStatistics.State"
  41756. transient="false" volatile="false"
  41757. static="true" final="true" visibility="public"
  41758. deprecated="not deprecated">
  41759. </field>
  41760. <field name="DONE_FIRST_CYCLE" type="org.apache.hadoop.util.QueueProcessingStatistics.State"
  41761. transient="false" volatile="false"
  41762. static="true" final="true" visibility="public"
  41763. deprecated="not deprecated">
  41764. </field>
  41765. <field name="IN_LAST_CYCLE" type="org.apache.hadoop.util.QueueProcessingStatistics.State"
  41766. transient="false" volatile="false"
  41767. static="true" final="true" visibility="public"
  41768. deprecated="not deprecated">
  41769. </field>
  41770. <field name="DONE_COLLECTING" type="org.apache.hadoop.util.QueueProcessingStatistics.State"
  41771. transient="false" volatile="false"
  41772. static="true" final="true" visibility="public"
  41773. deprecated="not deprecated">
  41774. </field>
  41775. <doc>
  41776. <![CDATA[This enum provides the "states" of a state machine for
  41777. {@link QueueProcessingStatistics}.
  41778. The meanings of the states are: <ul>
  41779. <li> BEGIN_COLLECTING - Ready to begin.
  41780. <li> IN_FIRST_CYCLE - Started the first cycle.
  41781. <li> IN_SOLE_CYCLE - Still in first cycle, but already know there will be
  41782. no further cycles because this one will complete all
  41783. needed work. When done, will go straight to
  41784. "DONE_COLLECTING".
  41785. <li> DONE_FIRST_CYCLE - Done first cycle, doing subsequent cycles.
  41786. <li> IN_LAST_CYCLE - Started the last cycle.
  41787. <li> DONE_COLLECTING - Done with last cycle, finishing up.
  41788. </ul>]]>
  41789. </doc>
  41790. </class>
  41791. <!-- end class org.apache.hadoop.util.QueueProcessingStatistics.State -->
  41792. <!-- start class org.apache.hadoop.util.QuickSort -->
  41793. <class name="QuickSort" extends="java.lang.Object"
  41794. abstract="false"
  41795. static="false" final="true" visibility="public"
  41796. deprecated="not deprecated">
  41797. <implements name="org.apache.hadoop.util.IndexedSorter"/>
  41798. <constructor name="QuickSort"
  41799. static="false" final="false" visibility="public"
  41800. deprecated="not deprecated">
  41801. </constructor>
  41802. <method name="getMaxDepth" return="int"
  41803. abstract="false" native="false" synchronized="false"
  41804. static="true" final="false" visibility="protected"
  41805. deprecated="not deprecated">
  41806. <param name="x" type="int"/>
  41807. <doc>
  41808. <![CDATA[Deepest recursion before giving up and doing a heapsort.
  41809. Returns 2 * ceil(log(n)).]]>
  41810. </doc>
  41811. </method>
  41812. <method name="sort"
  41813. abstract="false" native="false" synchronized="false"
  41814. static="false" final="false" visibility="public"
  41815. deprecated="not deprecated">
  41816. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  41817. <param name="p" type="int"/>
  41818. <param name="r" type="int"/>
  41819. <doc>
  41820. <![CDATA[Sort the given range of items using quick sort.
  41821. {@inheritDoc} If the recursion depth falls below {@link #getMaxDepth},
  41822. then switch to {@link HeapSort}.]]>
  41823. </doc>
  41824. </method>
  41825. <method name="sort"
  41826. abstract="false" native="false" synchronized="false"
  41827. static="false" final="false" visibility="public"
  41828. deprecated="not deprecated">
  41829. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  41830. <param name="p" type="int"/>
  41831. <param name="r" type="int"/>
  41832. <param name="rep" type="org.apache.hadoop.util.Progressable"/>
  41833. <doc>
  41834. <![CDATA[{@inheritDoc}]]>
  41835. </doc>
  41836. </method>
  41837. <doc>
  41838. <![CDATA[An implementation of the core algorithm of QuickSort.]]>
  41839. </doc>
  41840. </class>
  41841. <!-- end class org.apache.hadoop.util.QuickSort -->
  41842. <!-- start class org.apache.hadoop.util.ReflectionUtils -->
  41843. <class name="ReflectionUtils" extends="java.lang.Object"
  41844. abstract="false"
  41845. static="false" final="false" visibility="public"
  41846. deprecated="not deprecated">
  41847. <constructor name="ReflectionUtils"
  41848. static="false" final="false" visibility="public"
  41849. deprecated="not deprecated">
  41850. </constructor>
  41851. <method name="setConf"
  41852. abstract="false" native="false" synchronized="false"
  41853. static="true" final="false" visibility="public"
  41854. deprecated="not deprecated">
  41855. <param name="theObject" type="java.lang.Object"/>
  41856. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  41857. <doc>
  41858. <![CDATA[Check and set 'configuration' if necessary.
  41859. @param theObject object for which to set configuration
  41860. @param conf Configuration]]>
  41861. </doc>
  41862. </method>
  41863. <method name="newInstance" return="java.lang.Object"
  41864. abstract="false" native="false" synchronized="false"
  41865. static="true" final="false" visibility="public"
  41866. deprecated="not deprecated">
  41867. <param name="theClass" type="java.lang.Class"/>
  41868. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  41869. <doc>
  41870. <![CDATA[Create an object for the given class and initialize it from conf
  41871. @param theClass class of which an object is created
  41872. @param conf Configuration
  41873. @return a new object]]>
  41874. </doc>
  41875. </method>
  41876. <method name="setContentionTracing"
  41877. abstract="false" native="false" synchronized="false"
  41878. static="true" final="false" visibility="public"
  41879. deprecated="not deprecated">
  41880. <param name="val" type="boolean"/>
  41881. </method>
  41882. <method name="printThreadInfo"
  41883. abstract="false" native="false" synchronized="false"
  41884. static="true" final="false" visibility="public"
  41885. deprecated="not deprecated">
  41886. <param name="stream" type="java.io.PrintWriter"/>
  41887. <param name="title" type="java.lang.String"/>
  41888. <doc>
  41889. <![CDATA[Print all of the thread's information and stack traces.
  41890. @param stream the stream to
  41891. @param title a string title for the stack trace]]>
  41892. </doc>
  41893. </method>
  41894. <method name="logThreadInfo"
  41895. abstract="false" native="false" synchronized="false"
  41896. static="true" final="false" visibility="public"
  41897. deprecated="not deprecated">
  41898. <param name="log" type="org.apache.commons.logging.Log"/>
  41899. <param name="title" type="java.lang.String"/>
  41900. <param name="minInterval" type="long"/>
  41901. <doc>
  41902. <![CDATA[Log the current thread stacks at INFO level.
  41903. @param log the logger that logs the stack trace
  41904. @param title a descriptive title for the call stacks
  41905. @param minInterval the minimum time from the last]]>
  41906. </doc>
  41907. </method>
  41908. <method name="getClass" return="java.lang.Class"
  41909. abstract="false" native="false" synchronized="false"
  41910. static="true" final="false" visibility="public"
  41911. deprecated="not deprecated">
  41912. <param name="o" type="java.lang.Object"/>
  41913. <doc>
  41914. <![CDATA[Return the correctly-typed {@link Class} of the given object.
  41915. @param o object whose correctly-typed <code>Class</code> is to be obtained
  41916. @return the correctly typed <code>Class</code> of the given object.]]>
  41917. </doc>
  41918. </method>
  41919. <method name="copy" return="java.lang.Object"
  41920. abstract="false" native="false" synchronized="false"
  41921. static="true" final="false" visibility="public"
  41922. deprecated="not deprecated">
  41923. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  41924. <param name="src" type="java.lang.Object"/>
  41925. <param name="dst" type="java.lang.Object"/>
  41926. <exception name="IOException" type="java.io.IOException"/>
  41927. <doc>
  41928. <![CDATA[Make a copy of the writable object using serialization to a buffer
  41929. @param dst the object to copy from
  41930. @param src the object to copy into, which is destroyed
  41931. @throws IOException]]>
  41932. </doc>
  41933. </method>
  41934. <method name="cloneWritableInto"
  41935. abstract="false" native="false" synchronized="false"
  41936. static="true" final="false" visibility="public"
  41937. deprecated="not deprecated">
  41938. <param name="dst" type="org.apache.hadoop.io.Writable"/>
  41939. <param name="src" type="org.apache.hadoop.io.Writable"/>
  41940. <exception name="IOException" type="java.io.IOException"/>
  41941. </method>
  41942. <doc>
  41943. <![CDATA[General reflection utils]]>
  41944. </doc>
  41945. </class>
  41946. <!-- end class org.apache.hadoop.util.ReflectionUtils -->
  41947. <!-- start class org.apache.hadoop.util.ResourceCalculatorPlugin -->
  41948. <class name="ResourceCalculatorPlugin" extends="org.apache.hadoop.conf.Configured"
  41949. abstract="true"
  41950. static="false" final="false" visibility="public"
  41951. deprecated="not deprecated">
  41952. <constructor name="ResourceCalculatorPlugin"
  41953. static="false" final="false" visibility="public"
  41954. deprecated="not deprecated">
  41955. </constructor>
  41956. <method name="getVirtualMemorySize" return="long"
  41957. abstract="true" native="false" synchronized="false"
  41958. static="false" final="false" visibility="public"
  41959. deprecated="not deprecated">
  41960. <doc>
  41961. <![CDATA[Obtain the total size of the virtual memory present in the system.
  41962. @return virtual memory size in bytes.]]>
  41963. </doc>
  41964. </method>
  41965. <method name="getPhysicalMemorySize" return="long"
  41966. abstract="true" native="false" synchronized="false"
  41967. static="false" final="false" visibility="public"
  41968. deprecated="not deprecated">
  41969. <doc>
  41970. <![CDATA[Obtain the total size of the physical memory present in the system.
  41971. @return physical memory size bytes.]]>
  41972. </doc>
  41973. </method>
  41974. <method name="getAvailableVirtualMemorySize" return="long"
  41975. abstract="true" native="false" synchronized="false"
  41976. static="false" final="false" visibility="public"
  41977. deprecated="not deprecated">
  41978. <doc>
  41979. <![CDATA[Obtain the total size of the available virtual memory present
  41980. in the system.
  41981. @return available virtual memory size in bytes.]]>
  41982. </doc>
  41983. </method>
  41984. <method name="getAvailablePhysicalMemorySize" return="long"
  41985. abstract="true" native="false" synchronized="false"
  41986. static="false" final="false" visibility="public"
  41987. deprecated="not deprecated">
  41988. <doc>
  41989. <![CDATA[Obtain the total size of the available physical memory present
  41990. in the system.
  41991. @return available physical memory size bytes.]]>
  41992. </doc>
  41993. </method>
  41994. <method name="getNumProcessors" return="int"
  41995. abstract="true" native="false" synchronized="false"
  41996. static="false" final="false" visibility="public"
  41997. deprecated="not deprecated">
  41998. <doc>
  41999. <![CDATA[Obtain the total number of processors present on the system.
  42000. @return number of processors]]>
  42001. </doc>
  42002. </method>
  42003. <method name="getCpuFrequency" return="long"
  42004. abstract="true" native="false" synchronized="false"
  42005. static="false" final="false" visibility="public"
  42006. deprecated="not deprecated">
  42007. <doc>
  42008. <![CDATA[Obtain the CPU frequency of on the system.
  42009. @return CPU frequency in kHz]]>
  42010. </doc>
  42011. </method>
  42012. <method name="getCumulativeCpuTime" return="long"
  42013. abstract="true" native="false" synchronized="false"
  42014. static="false" final="false" visibility="public"
  42015. deprecated="not deprecated">
  42016. <doc>
  42017. <![CDATA[Obtain the cumulative CPU time since the system is on.
  42018. @return cumulative CPU time in milliseconds]]>
  42019. </doc>
  42020. </method>
  42021. <method name="getCpuUsage" return="float"
  42022. abstract="true" native="false" synchronized="false"
  42023. static="false" final="false" visibility="public"
  42024. deprecated="not deprecated">
  42025. <doc>
  42026. <![CDATA[Obtain the CPU usage % of the machine. Return -1 if it is unavailable
  42027. @return CPU usage in %]]>
  42028. </doc>
  42029. </method>
  42030. <method name="getProcResourceValues" return="org.apache.hadoop.util.ResourceCalculatorPlugin.ProcResourceValues"
  42031. abstract="true" native="false" synchronized="false"
  42032. static="false" final="false" visibility="public"
  42033. deprecated="not deprecated">
  42034. <doc>
  42035. <![CDATA[Obtain resource status used by current process tree.]]>
  42036. </doc>
  42037. </method>
  42038. <method name="getResourceCalculatorPlugin" return="org.apache.hadoop.util.ResourceCalculatorPlugin"
  42039. abstract="false" native="false" synchronized="false"
  42040. static="true" final="false" visibility="public"
  42041. deprecated="not deprecated">
  42042. <param name="clazz" type="java.lang.Class"/>
  42043. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42044. <doc>
  42045. <![CDATA[Get the ResourceCalculatorPlugin from the class name and configure it. If
  42046. class name is null, this method will try and return a memory calculator
  42047. plugin available for this system.
  42048. @param clazz class-name
  42049. @param conf configure the plugin with this.
  42050. @return ResourceCalculatorPlugin]]>
  42051. </doc>
  42052. </method>
  42053. <doc>
  42054. <![CDATA[Plugin to calculate resource information on the system.]]>
  42055. </doc>
  42056. </class>
  42057. <!-- end class org.apache.hadoop.util.ResourceCalculatorPlugin -->
  42058. <!-- start class org.apache.hadoop.util.ResourceCalculatorPlugin.ProcResourceValues -->
  42059. <class name="ResourceCalculatorPlugin.ProcResourceValues" extends="java.lang.Object"
  42060. abstract="false"
  42061. static="true" final="false" visibility="public"
  42062. deprecated="not deprecated">
  42063. <constructor name="ResourceCalculatorPlugin.ProcResourceValues" type="long, long, long"
  42064. static="false" final="false" visibility="public"
  42065. deprecated="not deprecated">
  42066. </constructor>
  42067. <method name="getPhysicalMemorySize" return="long"
  42068. abstract="false" native="false" synchronized="false"
  42069. static="false" final="false" visibility="public"
  42070. deprecated="not deprecated">
  42071. <doc>
  42072. <![CDATA[Obtain the physical memory size used by current process tree.
  42073. @return physical memory size in bytes.]]>
  42074. </doc>
  42075. </method>
  42076. <method name="getVirtualMemorySize" return="long"
  42077. abstract="false" native="false" synchronized="false"
  42078. static="false" final="false" visibility="public"
  42079. deprecated="not deprecated">
  42080. <doc>
  42081. <![CDATA[Obtain the virtual memory size used by a current process tree.
  42082. @return virtual memory size in bytes.]]>
  42083. </doc>
  42084. </method>
  42085. <method name="getCumulativeCpuTime" return="long"
  42086. abstract="false" native="false" synchronized="false"
  42087. static="false" final="false" visibility="public"
  42088. deprecated="not deprecated">
  42089. <doc>
  42090. <![CDATA[Obtain the cumulative CPU time used by a current process tree.
  42091. @return cumulative CPU time in milliseconds]]>
  42092. </doc>
  42093. </method>
  42094. </class>
  42095. <!-- end class org.apache.hadoop.util.ResourceCalculatorPlugin.ProcResourceValues -->
  42096. <!-- start class org.apache.hadoop.util.RunJar -->
  42097. <class name="RunJar" extends="java.lang.Object"
  42098. abstract="false"
  42099. static="false" final="false" visibility="public"
  42100. deprecated="not deprecated">
  42101. <constructor name="RunJar"
  42102. static="false" final="false" visibility="public"
  42103. deprecated="not deprecated">
  42104. </constructor>
  42105. <method name="unJar"
  42106. abstract="false" native="false" synchronized="false"
  42107. static="true" final="false" visibility="public"
  42108. deprecated="not deprecated">
  42109. <param name="jarFile" type="java.io.File"/>
  42110. <param name="toDir" type="java.io.File"/>
  42111. <exception name="IOException" type="java.io.IOException"/>
  42112. <doc>
  42113. <![CDATA[Unpack a jar file into a directory.]]>
  42114. </doc>
  42115. </method>
  42116. <method name="main"
  42117. abstract="false" native="false" synchronized="false"
  42118. static="true" final="false" visibility="public"
  42119. deprecated="not deprecated">
  42120. <param name="args" type="java.lang.String[]"/>
  42121. <exception name="Throwable" type="java.lang.Throwable"/>
  42122. <doc>
  42123. <![CDATA[Run a Hadoop job jar. If the main class is not in the jar's manifest,
  42124. then it must be provided on the command line.]]>
  42125. </doc>
  42126. </method>
  42127. <doc>
  42128. <![CDATA[Run a Hadoop job jar.]]>
  42129. </doc>
  42130. </class>
  42131. <!-- end class org.apache.hadoop.util.RunJar -->
  42132. <!-- start interface org.apache.hadoop.util.ServicePlugin -->
  42133. <interface name="ServicePlugin" abstract="true"
  42134. static="false" final="false" visibility="public"
  42135. deprecated="not deprecated">
  42136. <implements name="java.io.Closeable"/>
  42137. <method name="start"
  42138. abstract="false" native="false" synchronized="false"
  42139. static="false" final="false" visibility="public"
  42140. deprecated="not deprecated">
  42141. <param name="service" type="java.lang.Object"/>
  42142. <doc>
  42143. <![CDATA[This method is invoked when the service instance has been started.
  42144. @param service The service instance invoking this method]]>
  42145. </doc>
  42146. </method>
  42147. <method name="stop"
  42148. abstract="false" native="false" synchronized="false"
  42149. static="false" final="false" visibility="public"
  42150. deprecated="not deprecated">
  42151. <doc>
  42152. <![CDATA[This method is invoked when the service instance is about to be shut down.]]>
  42153. </doc>
  42154. </method>
  42155. <doc>
  42156. <![CDATA[Service plug-in interface.
  42157. Service plug-ins may be used to expose functionality of datanodes or
  42158. namenodes using arbitrary RPC protocols. Plug-ins are instantiated by the
  42159. service instance, and are notified of service life-cycle events using the
  42160. methods defined by this class.
  42161. Service plug-ins are started after the service instance is started, and
  42162. stopped before the service instance is stopped.]]>
  42163. </doc>
  42164. </interface>
  42165. <!-- end interface org.apache.hadoop.util.ServicePlugin -->
  42166. <!-- start class org.apache.hadoop.util.ServletUtil -->
  42167. <class name="ServletUtil" extends="java.lang.Object"
  42168. abstract="false"
  42169. static="false" final="false" visibility="public"
  42170. deprecated="not deprecated">
  42171. <constructor name="ServletUtil"
  42172. static="false" final="false" visibility="public"
  42173. deprecated="not deprecated">
  42174. </constructor>
  42175. <method name="initHTML" return="java.io.PrintWriter"
  42176. abstract="false" native="false" synchronized="false"
  42177. static="true" final="false" visibility="public"
  42178. deprecated="not deprecated">
  42179. <param name="response" type="javax.servlet.ServletResponse"/>
  42180. <param name="title" type="java.lang.String"/>
  42181. <exception name="IOException" type="java.io.IOException"/>
  42182. <doc>
  42183. <![CDATA[Initial HTML header]]>
  42184. </doc>
  42185. </method>
  42186. <method name="getParameter" return="java.lang.String"
  42187. abstract="false" native="false" synchronized="false"
  42188. static="true" final="false" visibility="public"
  42189. deprecated="not deprecated">
  42190. <param name="request" type="javax.servlet.ServletRequest"/>
  42191. <param name="name" type="java.lang.String"/>
  42192. <doc>
  42193. <![CDATA[Get a parameter from a ServletRequest.
  42194. Return null if the parameter contains only white spaces.]]>
  42195. </doc>
  42196. </method>
  42197. <method name="htmlFooter" return="java.lang.String"
  42198. abstract="false" native="false" synchronized="false"
  42199. static="true" final="false" visibility="public"
  42200. deprecated="not deprecated">
  42201. <doc>
  42202. <![CDATA[HTML footer to be added in the jsps.
  42203. @return the HTML footer.]]>
  42204. </doc>
  42205. </method>
  42206. <method name="percentageGraph" return="java.lang.String"
  42207. abstract="false" native="false" synchronized="false"
  42208. static="true" final="false" visibility="public"
  42209. deprecated="not deprecated">
  42210. <param name="perc" type="int"/>
  42211. <param name="width" type="int"/>
  42212. <exception name="IOException" type="java.io.IOException"/>
  42213. <doc>
  42214. <![CDATA[Generate the percentage graph and returns HTML representation string
  42215. of the same.
  42216. @param perc The percentage value for which graph is to be generated
  42217. @param width The width of the display table
  42218. @return HTML String representation of the percentage graph
  42219. @throws IOException]]>
  42220. </doc>
  42221. </method>
  42222. <method name="percentageGraph" return="java.lang.String"
  42223. abstract="false" native="false" synchronized="false"
  42224. static="true" final="false" visibility="public"
  42225. deprecated="not deprecated">
  42226. <param name="perc" type="float"/>
  42227. <param name="width" type="int"/>
  42228. <exception name="IOException" type="java.io.IOException"/>
  42229. <doc>
  42230. <![CDATA[Generate the percentage graph and returns HTML representation string
  42231. of the same.
  42232. @param perc The percentage value for which graph is to be generated
  42233. @param width The width of the display table
  42234. @return HTML String representation of the percentage graph
  42235. @throws IOException]]>
  42236. </doc>
  42237. </method>
  42238. <field name="HTML_TAIL" type="java.lang.String"
  42239. transient="false" volatile="false"
  42240. static="true" final="true" visibility="public"
  42241. deprecated="not deprecated">
  42242. </field>
  42243. </class>
  42244. <!-- end class org.apache.hadoop.util.ServletUtil -->
  42245. <!-- start class org.apache.hadoop.util.Shell -->
  42246. <class name="Shell" extends="java.lang.Object"
  42247. abstract="true"
  42248. static="false" final="false" visibility="public"
  42249. deprecated="not deprecated">
  42250. <constructor name="Shell"
  42251. static="false" final="false" visibility="public"
  42252. deprecated="not deprecated">
  42253. </constructor>
  42254. <constructor name="Shell" type="long"
  42255. static="false" final="false" visibility="public"
  42256. deprecated="not deprecated">
  42257. <doc>
  42258. <![CDATA[@param interval the minimum duration to wait before re-executing the
  42259. command.]]>
  42260. </doc>
  42261. </constructor>
  42262. <method name="getGroupsCommand" return="java.lang.String[]"
  42263. abstract="false" native="false" synchronized="false"
  42264. static="true" final="false" visibility="public"
  42265. deprecated="not deprecated">
  42266. <doc>
  42267. <![CDATA[a Unix command to get the current user's groups list]]>
  42268. </doc>
  42269. </method>
  42270. <method name="getGroupsForUserCommand" return="java.lang.String[]"
  42271. abstract="false" native="false" synchronized="false"
  42272. static="true" final="false" visibility="public"
  42273. deprecated="not deprecated">
  42274. <param name="user" type="java.lang.String"/>
  42275. <doc>
  42276. <![CDATA[a Unix command to get a given user's groups list]]>
  42277. </doc>
  42278. </method>
  42279. <method name="getUsersForNetgroupCommand" return="java.lang.String[]"
  42280. abstract="false" native="false" synchronized="false"
  42281. static="true" final="false" visibility="public"
  42282. deprecated="not deprecated">
  42283. <param name="netgroup" type="java.lang.String"/>
  42284. <doc>
  42285. <![CDATA[a Unix command to get a given netgroup's user list]]>
  42286. </doc>
  42287. </method>
  42288. <method name="getGET_PERMISSION_COMMAND" return="java.lang.String[]"
  42289. abstract="false" native="false" synchronized="false"
  42290. static="true" final="false" visibility="public"
  42291. deprecated="not deprecated">
  42292. <doc>
  42293. <![CDATA[Return a Unix command to get permission information.]]>
  42294. </doc>
  42295. </method>
  42296. <method name="getUlimitMemoryCommand" return="java.lang.String[]"
  42297. abstract="false" native="false" synchronized="false"
  42298. static="true" final="false" visibility="public"
  42299. deprecated="not deprecated">
  42300. <param name="memoryLimit" type="int"/>
  42301. <doc>
  42302. <![CDATA[Get the Unix command for setting the maximum virtual memory available
  42303. to a given child process. This is only relevant when we are forking a
  42304. process from within the Mapper or the Reducer implementations.
  42305. Also see Hadoop Pipes and Hadoop Streaming.
  42306. It also checks to ensure that we are running on a *nix platform else
  42307. (e.g. in Cygwin/Windows) it returns <code>null</code>.
  42308. @param memoryLimit virtual memory limit
  42309. @return a <code>String[]</code> with the ulimit command arguments or
  42310. <code>null</code> if we are running on a non *nix platform or
  42311. if the limit is unspecified.]]>
  42312. </doc>
  42313. </method>
  42314. <method name="getUlimitMemoryCommand" return="java.lang.String[]"
  42315. abstract="false" native="false" synchronized="false"
  42316. static="true" final="false" visibility="public"
  42317. deprecated="Use {@link #getUlimitMemoryCommand(int)}">
  42318. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42319. <doc>
  42320. <![CDATA[Get the Unix command for setting the maximum virtual memory available
  42321. to a given child process. This is only relevant when we are forking a
  42322. process from within the {@link org.apache.hadoop.mapred.Mapper} or the
  42323. {@link org.apache.hadoop.mapred.Reducer} implementations
  42324. e.g. <a href="{@docRoot}/org/apache/hadoop/mapred/pipes/package-summary.html">Hadoop Pipes</a>
  42325. or <a href="{@docRoot}/org/apache/hadoop/streaming/package-summary.html">Hadoop Streaming</a>.
  42326. It also checks to ensure that we are running on a *nix platform else
  42327. (e.g. in Cygwin/Windows) it returns <code>null</code>.
  42328. @param conf configuration
  42329. @return a <code>String[]</code> with the ulimit command arguments or
  42330. <code>null</code> if we are running on a non *nix platform or
  42331. if the limit is unspecified.
  42332. @deprecated Use {@link #getUlimitMemoryCommand(int)}]]>
  42333. </doc>
  42334. </method>
  42335. <method name="setEnvironment"
  42336. abstract="false" native="false" synchronized="false"
  42337. static="false" final="false" visibility="protected"
  42338. deprecated="not deprecated">
  42339. <param name="env" type="java.util.Map"/>
  42340. <doc>
  42341. <![CDATA[set the environment for the command
  42342. @param env Mapping of environment variables]]>
  42343. </doc>
  42344. </method>
  42345. <method name="setWorkingDirectory"
  42346. abstract="false" native="false" synchronized="false"
  42347. static="false" final="false" visibility="protected"
  42348. deprecated="not deprecated">
  42349. <param name="dir" type="java.io.File"/>
  42350. <doc>
  42351. <![CDATA[set the working directory
  42352. @param dir The directory where the command would be executed]]>
  42353. </doc>
  42354. </method>
  42355. <method name="run"
  42356. abstract="false" native="false" synchronized="false"
  42357. static="false" final="false" visibility="protected"
  42358. deprecated="not deprecated">
  42359. <exception name="IOException" type="java.io.IOException"/>
  42360. <doc>
  42361. <![CDATA[check to see if a command needs to be executed and execute if needed]]>
  42362. </doc>
  42363. </method>
  42364. <method name="getExecString" return="java.lang.String[]"
  42365. abstract="true" native="false" synchronized="false"
  42366. static="false" final="false" visibility="protected"
  42367. deprecated="not deprecated">
  42368. <doc>
  42369. <![CDATA[return an array containing the command name & its parameters]]>
  42370. </doc>
  42371. </method>
  42372. <method name="parseExecResult"
  42373. abstract="true" native="false" synchronized="false"
  42374. static="false" final="false" visibility="protected"
  42375. deprecated="not deprecated">
  42376. <param name="lines" type="java.io.BufferedReader"/>
  42377. <exception name="IOException" type="java.io.IOException"/>
  42378. <doc>
  42379. <![CDATA[Parse the execution result]]>
  42380. </doc>
  42381. </method>
  42382. <method name="getProcess" return="java.lang.Process"
  42383. abstract="false" native="false" synchronized="false"
  42384. static="false" final="false" visibility="public"
  42385. deprecated="not deprecated">
  42386. <doc>
  42387. <![CDATA[get the current sub-process executing the given command
  42388. @return process executing the command]]>
  42389. </doc>
  42390. </method>
  42391. <method name="getExitCode" return="int"
  42392. abstract="false" native="false" synchronized="false"
  42393. static="false" final="false" visibility="public"
  42394. deprecated="not deprecated">
  42395. <doc>
  42396. <![CDATA[get the exit code
  42397. @return the exit code of the process]]>
  42398. </doc>
  42399. </method>
  42400. <method name="isTimedOut" return="boolean"
  42401. abstract="false" native="false" synchronized="false"
  42402. static="false" final="false" visibility="public"
  42403. deprecated="not deprecated">
  42404. <doc>
  42405. <![CDATA[To check if the passed script to shell command executor timed out or
  42406. not.
  42407. @return if the script timed out.]]>
  42408. </doc>
  42409. </method>
  42410. <method name="execCommand" return="java.lang.String"
  42411. abstract="false" native="false" synchronized="false"
  42412. static="true" final="false" visibility="public"
  42413. deprecated="not deprecated">
  42414. <param name="cmd" type="java.lang.String[]"/>
  42415. <exception name="IOException" type="java.io.IOException"/>
  42416. <doc>
  42417. <![CDATA[Static method to execute a shell command.
  42418. Covers most of the simple cases without requiring the user to implement
  42419. the <code>Shell</code> interface.
  42420. @param cmd shell command to execute.
  42421. @return the output of the executed command.]]>
  42422. </doc>
  42423. </method>
  42424. <method name="execCommand" return="java.lang.String"
  42425. abstract="false" native="false" synchronized="false"
  42426. static="true" final="false" visibility="public"
  42427. deprecated="not deprecated">
  42428. <param name="env" type="java.util.Map"/>
  42429. <param name="cmd" type="java.lang.String[]"/>
  42430. <param name="timeout" type="long"/>
  42431. <exception name="IOException" type="java.io.IOException"/>
  42432. <doc>
  42433. <![CDATA[Static method to execute a shell command.
  42434. Covers most of the simple cases without requiring the user to implement
  42435. the <code>Shell</code> interface.
  42436. @param env the map of environment key=value
  42437. @param cmd shell command to execute.
  42438. @param timeout time in milliseconds after which script should be marked timeout
  42439. @return the output of the executed command.o]]>
  42440. </doc>
  42441. </method>
  42442. <method name="execCommand" return="java.lang.String"
  42443. abstract="false" native="false" synchronized="false"
  42444. static="true" final="false" visibility="public"
  42445. deprecated="not deprecated">
  42446. <param name="env" type="java.util.Map"/>
  42447. <param name="cmd" type="java.lang.String[]"/>
  42448. <exception name="IOException" type="java.io.IOException"/>
  42449. <doc>
  42450. <![CDATA[Static method to execute a shell command.
  42451. Covers most of the simple cases without requiring the user to implement
  42452. the <code>Shell</code> interface.
  42453. @param env the map of environment key=value
  42454. @param cmd shell command to execute.
  42455. @return the output of the executed command.]]>
  42456. </doc>
  42457. </method>
  42458. <field name="LOG" type="org.apache.commons.logging.Log"
  42459. transient="false" volatile="false"
  42460. static="true" final="true" visibility="public"
  42461. deprecated="not deprecated">
  42462. </field>
  42463. <field name="USER_NAME_COMMAND" type="java.lang.String"
  42464. transient="false" volatile="false"
  42465. static="true" final="true" visibility="public"
  42466. deprecated="not deprecated">
  42467. <doc>
  42468. <![CDATA[a Unix command to get the current user's name]]>
  42469. </doc>
  42470. </field>
  42471. <field name="SET_PERMISSION_COMMAND" type="java.lang.String"
  42472. transient="false" volatile="false"
  42473. static="true" final="true" visibility="public"
  42474. deprecated="not deprecated">
  42475. <doc>
  42476. <![CDATA[a Unix command to set permission]]>
  42477. </doc>
  42478. </field>
  42479. <field name="SET_OWNER_COMMAND" type="java.lang.String"
  42480. transient="false" volatile="false"
  42481. static="true" final="true" visibility="public"
  42482. deprecated="not deprecated">
  42483. <doc>
  42484. <![CDATA[a Unix command to set owner]]>
  42485. </doc>
  42486. </field>
  42487. <field name="SET_GROUP_COMMAND" type="java.lang.String"
  42488. transient="false" volatile="false"
  42489. static="true" final="true" visibility="public"
  42490. deprecated="not deprecated">
  42491. </field>
  42492. <field name="timeOutInterval" type="long"
  42493. transient="false" volatile="false"
  42494. static="false" final="false" visibility="protected"
  42495. deprecated="not deprecated">
  42496. <doc>
  42497. <![CDATA[Time after which the executing script would be timedout]]>
  42498. </doc>
  42499. </field>
  42500. <field name="ULIMIT_COMMAND" type="java.lang.String"
  42501. transient="false" volatile="false"
  42502. static="true" final="true" visibility="public"
  42503. deprecated="not deprecated">
  42504. <doc>
  42505. <![CDATA[a Unix command to get ulimit of a process.]]>
  42506. </doc>
  42507. </field>
  42508. <field name="WINDOWS" type="boolean"
  42509. transient="false" volatile="false"
  42510. static="true" final="true" visibility="public"
  42511. deprecated="not deprecated">
  42512. <doc>
  42513. <![CDATA[Set to true on Windows platforms]]>
  42514. </doc>
  42515. </field>
  42516. <doc>
  42517. <![CDATA[A base class for running a Unix command.
  42518. <code>Shell</code> can be used to run unix commands like <code>du</code> or
  42519. <code>df</code>. It also offers facilities to gate commands by
  42520. time-intervals.]]>
  42521. </doc>
  42522. </class>
  42523. <!-- end class org.apache.hadoop.util.Shell -->
  42524. <!-- start class org.apache.hadoop.util.Shell.ExitCodeException -->
  42525. <class name="Shell.ExitCodeException" extends="java.io.IOException"
  42526. abstract="false"
  42527. static="true" final="false" visibility="public"
  42528. deprecated="not deprecated">
  42529. <constructor name="Shell.ExitCodeException" type="int, java.lang.String"
  42530. static="false" final="false" visibility="public"
  42531. deprecated="not deprecated">
  42532. </constructor>
  42533. <method name="getExitCode" return="int"
  42534. abstract="false" native="false" synchronized="false"
  42535. static="false" final="false" visibility="public"
  42536. deprecated="not deprecated">
  42537. </method>
  42538. <doc>
  42539. <![CDATA[This is an IOException with exit code added.]]>
  42540. </doc>
  42541. </class>
  42542. <!-- end class org.apache.hadoop.util.Shell.ExitCodeException -->
  42543. <!-- start class org.apache.hadoop.util.Shell.ShellCommandExecutor -->
  42544. <class name="Shell.ShellCommandExecutor" extends="org.apache.hadoop.util.Shell"
  42545. abstract="false"
  42546. static="true" final="false" visibility="public"
  42547. deprecated="not deprecated">
  42548. <constructor name="Shell.ShellCommandExecutor" type="java.lang.String[]"
  42549. static="false" final="false" visibility="public"
  42550. deprecated="not deprecated">
  42551. </constructor>
  42552. <constructor name="Shell.ShellCommandExecutor" type="java.lang.String[], java.io.File"
  42553. static="false" final="false" visibility="public"
  42554. deprecated="not deprecated">
  42555. </constructor>
  42556. <constructor name="Shell.ShellCommandExecutor" type="java.lang.String[], java.io.File, java.util.Map"
  42557. static="false" final="false" visibility="public"
  42558. deprecated="not deprecated">
  42559. </constructor>
  42560. <constructor name="Shell.ShellCommandExecutor" type="java.lang.String[], java.io.File, java.util.Map, long"
  42561. static="false" final="false" visibility="public"
  42562. deprecated="not deprecated">
  42563. <doc>
  42564. <![CDATA[Create a new instance of the ShellCommandExecutor to execute a command.
  42565. @param execString The command to execute with arguments
  42566. @param dir If not-null, specifies the directory which should be set
  42567. as the current working directory for the command.
  42568. If null, the current working directory is not modified.
  42569. @param env If not-null, environment of the command will include the
  42570. key-value pairs specified in the map. If null, the current
  42571. environment is not modified.
  42572. @param timeout Specifies the time in milliseconds, after which the
  42573. command will be killed and the status marked as timedout.
  42574. If 0, the command will not be timed out.]]>
  42575. </doc>
  42576. </constructor>
  42577. <method name="execute"
  42578. abstract="false" native="false" synchronized="false"
  42579. static="false" final="false" visibility="public"
  42580. deprecated="not deprecated">
  42581. <exception name="IOException" type="java.io.IOException"/>
  42582. <doc>
  42583. <![CDATA[Execute the shell command.]]>
  42584. </doc>
  42585. </method>
  42586. <method name="getExecString" return="java.lang.String[]"
  42587. abstract="false" native="false" synchronized="false"
  42588. static="false" final="false" visibility="protected"
  42589. deprecated="not deprecated">
  42590. </method>
  42591. <method name="parseExecResult"
  42592. abstract="false" native="false" synchronized="false"
  42593. static="false" final="false" visibility="protected"
  42594. deprecated="not deprecated">
  42595. <param name="lines" type="java.io.BufferedReader"/>
  42596. <exception name="IOException" type="java.io.IOException"/>
  42597. </method>
  42598. <method name="getOutput" return="java.lang.String"
  42599. abstract="false" native="false" synchronized="false"
  42600. static="false" final="false" visibility="public"
  42601. deprecated="not deprecated">
  42602. <doc>
  42603. <![CDATA[Get the output of the shell command.]]>
  42604. </doc>
  42605. </method>
  42606. <method name="toString" return="java.lang.String"
  42607. abstract="false" native="false" synchronized="false"
  42608. static="false" final="false" visibility="public"
  42609. deprecated="not deprecated">
  42610. <doc>
  42611. <![CDATA[Returns the commands of this instance.
  42612. Arguments with spaces in are presented with quotes round; other
  42613. arguments are presented raw
  42614. @return a string representation of the object.]]>
  42615. </doc>
  42616. </method>
  42617. <doc>
  42618. <![CDATA[A simple shell command executor.
  42619. <code>ShellCommandExecutor</code>should be used in cases where the output
  42620. of the command needs no explicit parsing and where the command, working
  42621. directory and the environment remains unchanged. The output of the command
  42622. is stored as-is and is expected to be small.]]>
  42623. </doc>
  42624. </class>
  42625. <!-- end class org.apache.hadoop.util.Shell.ShellCommandExecutor -->
  42626. <!-- start class org.apache.hadoop.util.StringUtils -->
  42627. <class name="StringUtils" extends="java.lang.Object"
  42628. abstract="false"
  42629. static="false" final="false" visibility="public"
  42630. deprecated="not deprecated">
  42631. <constructor name="StringUtils"
  42632. static="false" final="false" visibility="public"
  42633. deprecated="not deprecated">
  42634. </constructor>
  42635. <method name="stringifyException" return="java.lang.String"
  42636. abstract="false" native="false" synchronized="false"
  42637. static="true" final="false" visibility="public"
  42638. deprecated="not deprecated">
  42639. <param name="e" type="java.lang.Throwable"/>
  42640. <doc>
  42641. <![CDATA[Make a string representation of the exception.
  42642. @param e The exception to stringify
  42643. @return A string with exception name and call stack.]]>
  42644. </doc>
  42645. </method>
  42646. <method name="simpleHostname" return="java.lang.String"
  42647. abstract="false" native="false" synchronized="false"
  42648. static="true" final="false" visibility="public"
  42649. deprecated="not deprecated">
  42650. <param name="fullHostname" type="java.lang.String"/>
  42651. <doc>
  42652. <![CDATA[Given a full hostname, return the word upto the first dot.
  42653. @param fullHostname the full hostname
  42654. @return the hostname to the first dot]]>
  42655. </doc>
  42656. </method>
  42657. <method name="humanReadableInt" return="java.lang.String"
  42658. abstract="false" native="false" synchronized="false"
  42659. static="true" final="false" visibility="public"
  42660. deprecated="not deprecated">
  42661. <param name="number" type="long"/>
  42662. <doc>
  42663. <![CDATA[Given an integer, return a string that is in an approximate, but human
  42664. readable format.
  42665. It uses the bases 'k', 'm', and 'g' for 1024, 1024**2, and 1024**3.
  42666. @param number the number to format
  42667. @return a human readable form of the integer]]>
  42668. </doc>
  42669. </method>
  42670. <method name="formatPercent" return="java.lang.String"
  42671. abstract="false" native="false" synchronized="false"
  42672. static="true" final="false" visibility="public"
  42673. deprecated="not deprecated">
  42674. <param name="done" type="double"/>
  42675. <param name="digits" type="int"/>
  42676. <doc>
  42677. <![CDATA[Format a percentage for presentation to the user.
  42678. @param done the percentage to format (0.0 to 1.0)
  42679. @param digits the number of digits past the decimal point
  42680. @return a string representation of the percentage]]>
  42681. </doc>
  42682. </method>
  42683. <method name="arrayToString" return="java.lang.String"
  42684. abstract="false" native="false" synchronized="false"
  42685. static="true" final="false" visibility="public"
  42686. deprecated="not deprecated">
  42687. <param name="strs" type="java.lang.String[]"/>
  42688. <doc>
  42689. <![CDATA[Given an array of strings, return a comma-separated list of its elements.
  42690. @param strs Array of strings
  42691. @return Empty string if strs.length is 0, comma separated list of strings
  42692. otherwise]]>
  42693. </doc>
  42694. </method>
  42695. <method name="byteToHexString" return="java.lang.String"
  42696. abstract="false" native="false" synchronized="false"
  42697. static="true" final="false" visibility="public"
  42698. deprecated="not deprecated">
  42699. <param name="bytes" type="byte[]"/>
  42700. <param name="start" type="int"/>
  42701. <param name="end" type="int"/>
  42702. <doc>
  42703. <![CDATA[Given an array of bytes it will convert the bytes to a hex string
  42704. representation of the bytes
  42705. @param bytes
  42706. @param start start index, inclusively
  42707. @param end end index, exclusively
  42708. @return hex string representation of the byte array]]>
  42709. </doc>
  42710. </method>
  42711. <method name="byteToHexString" return="java.lang.String"
  42712. abstract="false" native="false" synchronized="false"
  42713. static="true" final="false" visibility="public"
  42714. deprecated="not deprecated">
  42715. <param name="bytes" type="byte[]"/>
  42716. <doc>
  42717. <![CDATA[Same as byteToHexString(bytes, 0, bytes.length).]]>
  42718. </doc>
  42719. </method>
  42720. <method name="hexStringToByte" return="byte[]"
  42721. abstract="false" native="false" synchronized="false"
  42722. static="true" final="false" visibility="public"
  42723. deprecated="not deprecated">
  42724. <param name="hex" type="java.lang.String"/>
  42725. <doc>
  42726. <![CDATA[Given a hexstring this will return the byte array corresponding to the
  42727. string
  42728. @param hex the hex String array
  42729. @return a byte array that is a hex string representation of the given
  42730. string. The size of the byte array is therefore hex.length/2]]>
  42731. </doc>
  42732. </method>
  42733. <method name="uriToString" return="java.lang.String"
  42734. abstract="false" native="false" synchronized="false"
  42735. static="true" final="false" visibility="public"
  42736. deprecated="not deprecated">
  42737. <param name="uris" type="java.net.URI[]"/>
  42738. <doc>
  42739. <![CDATA[@param uris]]>
  42740. </doc>
  42741. </method>
  42742. <method name="stringToURI" return="java.net.URI[]"
  42743. abstract="false" native="false" synchronized="false"
  42744. static="true" final="false" visibility="public"
  42745. deprecated="not deprecated">
  42746. <param name="str" type="java.lang.String[]"/>
  42747. <doc>
  42748. <![CDATA[@param str]]>
  42749. </doc>
  42750. </method>
  42751. <method name="stringToPath" return="org.apache.hadoop.fs.Path[]"
  42752. abstract="false" native="false" synchronized="false"
  42753. static="true" final="false" visibility="public"
  42754. deprecated="not deprecated">
  42755. <param name="str" type="java.lang.String[]"/>
  42756. <doc>
  42757. <![CDATA[@param str]]>
  42758. </doc>
  42759. </method>
  42760. <method name="formatTimeDiff" return="java.lang.String"
  42761. abstract="false" native="false" synchronized="false"
  42762. static="true" final="false" visibility="public"
  42763. deprecated="not deprecated">
  42764. <param name="finishTime" type="long"/>
  42765. <param name="startTime" type="long"/>
  42766. <doc>
  42767. <![CDATA[Given a finish and start time in long milliseconds, returns a
  42768. String in the format Xhrs, Ymins, Z sec, for the time difference between two times.
  42769. If finish time comes before start time then negative valeus of X, Y and Z wil return.
  42770. @param finishTime finish time
  42771. @param startTime start time]]>
  42772. </doc>
  42773. </method>
  42774. <method name="formatTime" return="java.lang.String"
  42775. abstract="false" native="false" synchronized="false"
  42776. static="true" final="false" visibility="public"
  42777. deprecated="not deprecated">
  42778. <param name="timeDiff" type="long"/>
  42779. <doc>
  42780. <![CDATA[Given the time in long milliseconds, returns a
  42781. String in the format Xhrs, Ymins, Z sec.
  42782. @param timeDiff The time difference to format]]>
  42783. </doc>
  42784. </method>
  42785. <method name="getFormattedTimeWithDiff" return="java.lang.String"
  42786. abstract="false" native="false" synchronized="false"
  42787. static="true" final="false" visibility="public"
  42788. deprecated="not deprecated">
  42789. <param name="dateFormat" type="java.text.DateFormat"/>
  42790. <param name="finishTime" type="long"/>
  42791. <param name="startTime" type="long"/>
  42792. <doc>
  42793. <![CDATA[Formats time in ms and appends difference (finishTime - startTime)
  42794. as returned by formatTimeDiff().
  42795. If finish time is 0, empty string is returned, if start time is 0
  42796. then difference is not appended to return value.
  42797. @param dateFormat date format to use
  42798. @param finishTime fnish time
  42799. @param startTime start time
  42800. @return formatted value.]]>
  42801. </doc>
  42802. </method>
  42803. <method name="getStrings" return="java.lang.String[]"
  42804. abstract="false" native="false" synchronized="false"
  42805. static="true" final="false" visibility="public"
  42806. deprecated="not deprecated">
  42807. <param name="str" type="java.lang.String"/>
  42808. <doc>
  42809. <![CDATA[Returns an arraylist of strings.
  42810. @param str the comma seperated string values
  42811. @return the arraylist of the comma seperated string values]]>
  42812. </doc>
  42813. </method>
  42814. <method name="getStringCollection" return="java.util.Collection"
  42815. abstract="false" native="false" synchronized="false"
  42816. static="true" final="false" visibility="public"
  42817. deprecated="not deprecated">
  42818. <param name="str" type="java.lang.String"/>
  42819. <doc>
  42820. <![CDATA[Returns a collection of strings.
  42821. @param str comma seperated string values
  42822. @return an <code>ArrayList</code> of string values]]>
  42823. </doc>
  42824. </method>
  42825. <method name="split" return="java.lang.String[]"
  42826. abstract="false" native="false" synchronized="false"
  42827. static="true" final="false" visibility="public"
  42828. deprecated="not deprecated">
  42829. <param name="str" type="java.lang.String"/>
  42830. <doc>
  42831. <![CDATA[Split a string using the default separator
  42832. @param str a string that may have escaped separator
  42833. @return an array of strings]]>
  42834. </doc>
  42835. </method>
  42836. <method name="split" return="java.lang.String[]"
  42837. abstract="false" native="false" synchronized="false"
  42838. static="true" final="false" visibility="public"
  42839. deprecated="not deprecated">
  42840. <param name="str" type="java.lang.String"/>
  42841. <param name="escapeChar" type="char"/>
  42842. <param name="separator" type="char"/>
  42843. <doc>
  42844. <![CDATA[Split a string using the given separator
  42845. @param str a string that may have escaped separator
  42846. @param escapeChar a char that be used to escape the separator
  42847. @param separator a separator char
  42848. @return an array of strings]]>
  42849. </doc>
  42850. </method>
  42851. <method name="findNext" return="int"
  42852. abstract="false" native="false" synchronized="false"
  42853. static="true" final="false" visibility="public"
  42854. deprecated="not deprecated">
  42855. <param name="str" type="java.lang.String"/>
  42856. <param name="separator" type="char"/>
  42857. <param name="escapeChar" type="char"/>
  42858. <param name="start" type="int"/>
  42859. <param name="split" type="java.lang.StringBuilder"/>
  42860. <doc>
  42861. <![CDATA[Finds the first occurrence of the separator character ignoring the escaped
  42862. separators starting from the index. Note the substring between the index
  42863. and the position of the separator is passed.
  42864. @param str the source string
  42865. @param separator the character to find
  42866. @param escapeChar character used to escape
  42867. @param start from where to search
  42868. @param split used to pass back the extracted string]]>
  42869. </doc>
  42870. </method>
  42871. <method name="escapeString" return="java.lang.String"
  42872. abstract="false" native="false" synchronized="false"
  42873. static="true" final="false" visibility="public"
  42874. deprecated="not deprecated">
  42875. <param name="str" type="java.lang.String"/>
  42876. <doc>
  42877. <![CDATA[Escape commas in the string using the default escape char
  42878. @param str a string
  42879. @return an escaped string]]>
  42880. </doc>
  42881. </method>
  42882. <method name="escapeString" return="java.lang.String"
  42883. abstract="false" native="false" synchronized="false"
  42884. static="true" final="false" visibility="public"
  42885. deprecated="not deprecated">
  42886. <param name="str" type="java.lang.String"/>
  42887. <param name="escapeChar" type="char"/>
  42888. <param name="charToEscape" type="char"/>
  42889. <doc>
  42890. <![CDATA[Escape <code>charToEscape</code> in the string
  42891. with the escape char <code>escapeChar</code>
  42892. @param str string
  42893. @param escapeChar escape char
  42894. @param charToEscape the char to be escaped
  42895. @return an escaped string]]>
  42896. </doc>
  42897. </method>
  42898. <method name="escapeString" return="java.lang.String"
  42899. abstract="false" native="false" synchronized="false"
  42900. static="true" final="false" visibility="public"
  42901. deprecated="not deprecated">
  42902. <param name="str" type="java.lang.String"/>
  42903. <param name="escapeChar" type="char"/>
  42904. <param name="charsToEscape" type="char[]"/>
  42905. <doc>
  42906. <![CDATA[@param charsToEscape array of characters to be escaped]]>
  42907. </doc>
  42908. </method>
  42909. <method name="unEscapeString" return="java.lang.String"
  42910. abstract="false" native="false" synchronized="false"
  42911. static="true" final="false" visibility="public"
  42912. deprecated="not deprecated">
  42913. <param name="str" type="java.lang.String"/>
  42914. <doc>
  42915. <![CDATA[Unescape commas in the string using the default escape char
  42916. @param str a string
  42917. @return an unescaped string]]>
  42918. </doc>
  42919. </method>
  42920. <method name="unEscapeString" return="java.lang.String"
  42921. abstract="false" native="false" synchronized="false"
  42922. static="true" final="false" visibility="public"
  42923. deprecated="not deprecated">
  42924. <param name="str" type="java.lang.String"/>
  42925. <param name="escapeChar" type="char"/>
  42926. <param name="charToEscape" type="char"/>
  42927. <doc>
  42928. <![CDATA[Unescape <code>charToEscape</code> in the string
  42929. with the escape char <code>escapeChar</code>
  42930. @param str string
  42931. @param escapeChar escape char
  42932. @param charToEscape the escaped char
  42933. @return an unescaped string]]>
  42934. </doc>
  42935. </method>
  42936. <method name="unEscapeString" return="java.lang.String"
  42937. abstract="false" native="false" synchronized="false"
  42938. static="true" final="false" visibility="public"
  42939. deprecated="not deprecated">
  42940. <param name="str" type="java.lang.String"/>
  42941. <param name="escapeChar" type="char"/>
  42942. <param name="charsToEscape" type="char[]"/>
  42943. <doc>
  42944. <![CDATA[@param charsToEscape array of characters to unescape]]>
  42945. </doc>
  42946. </method>
  42947. <method name="getHostname" return="java.lang.String"
  42948. abstract="false" native="false" synchronized="false"
  42949. static="true" final="false" visibility="public"
  42950. deprecated="not deprecated">
  42951. <doc>
  42952. <![CDATA[Return hostname without throwing exception.
  42953. @return hostname]]>
  42954. </doc>
  42955. </method>
  42956. <method name="startupShutdownMessage"
  42957. abstract="false" native="false" synchronized="false"
  42958. static="true" final="false" visibility="public"
  42959. deprecated="not deprecated">
  42960. <param name="clazz" type="java.lang.Class"/>
  42961. <param name="args" type="java.lang.String[]"/>
  42962. <param name="LOG" type="org.apache.commons.logging.Log"/>
  42963. <doc>
  42964. <![CDATA[Print a log message for starting up and shutting down
  42965. @param clazz the class of the server
  42966. @param args arguments
  42967. @param LOG the target log object]]>
  42968. </doc>
  42969. </method>
  42970. <method name="escapeHTML" return="java.lang.String"
  42971. abstract="false" native="false" synchronized="false"
  42972. static="true" final="false" visibility="public"
  42973. deprecated="not deprecated">
  42974. <param name="string" type="java.lang.String"/>
  42975. <doc>
  42976. <![CDATA[Escapes HTML Special characters present in the string.
  42977. @param string
  42978. @return HTML Escaped String representation]]>
  42979. </doc>
  42980. </method>
  42981. <method name="byteDesc" return="java.lang.String"
  42982. abstract="false" native="false" synchronized="false"
  42983. static="true" final="false" visibility="public"
  42984. deprecated="not deprecated">
  42985. <param name="len" type="long"/>
  42986. <doc>
  42987. <![CDATA[Return an abbreviated English-language desc of the byte length]]>
  42988. </doc>
  42989. </method>
  42990. <method name="limitDecimalTo2" return="java.lang.String"
  42991. abstract="false" native="false" synchronized="true"
  42992. static="true" final="false" visibility="public"
  42993. deprecated="not deprecated">
  42994. <param name="d" type="double"/>
  42995. </method>
  42996. <method name="join" return="java.lang.String"
  42997. abstract="false" native="false" synchronized="false"
  42998. static="true" final="false" visibility="public"
  42999. deprecated="not deprecated">
  43000. <param name="separator" type="java.lang.CharSequence"/>
  43001. <param name="strings" type="java.lang.Iterable"/>
  43002. <doc>
  43003. <![CDATA[Concatenates strings, using a separator.
  43004. @param separator Separator to join with.
  43005. @param strings Strings to join.
  43006. @return the joined string]]>
  43007. </doc>
  43008. </method>
  43009. <method name="join" return="java.lang.String"
  43010. abstract="false" native="false" synchronized="false"
  43011. static="true" final="false" visibility="public"
  43012. deprecated="not deprecated">
  43013. <param name="separator" type="java.lang.CharSequence"/>
  43014. <param name="strings" type="java.lang.String[]"/>
  43015. <doc>
  43016. <![CDATA[Concatenates strings, using a separator.
  43017. @param separator to join with
  43018. @param strings to join
  43019. @return the joined string]]>
  43020. </doc>
  43021. </method>
  43022. <method name="join" return="java.lang.String"
  43023. abstract="false" native="false" synchronized="false"
  43024. static="true" final="false" visibility="public"
  43025. deprecated="not deprecated">
  43026. <param name="separator" type="java.lang.CharSequence"/>
  43027. <param name="objects" type="java.lang.Object[]"/>
  43028. <doc>
  43029. <![CDATA[Concatenates objects, using a separator.
  43030. @param separator to join with
  43031. @param objects to join
  43032. @return the joined string]]>
  43033. </doc>
  43034. </method>
  43035. <method name="capitalize" return="java.lang.String"
  43036. abstract="false" native="false" synchronized="false"
  43037. static="true" final="false" visibility="public"
  43038. deprecated="not deprecated">
  43039. <param name="s" type="java.lang.String"/>
  43040. <doc>
  43041. <![CDATA[Capitalize a word
  43042. @param s the input string
  43043. @return capitalized string]]>
  43044. </doc>
  43045. </method>
  43046. <method name="camelize" return="java.lang.String"
  43047. abstract="false" native="false" synchronized="false"
  43048. static="true" final="false" visibility="public"
  43049. deprecated="not deprecated">
  43050. <param name="s" type="java.lang.String"/>
  43051. <doc>
  43052. <![CDATA[Convert SOME_STUFF to SomeStuff
  43053. @param s input string
  43054. @return camelized string]]>
  43055. </doc>
  43056. </method>
  43057. <field name="COMMA" type="char"
  43058. transient="false" volatile="false"
  43059. static="true" final="true" visibility="public"
  43060. deprecated="not deprecated">
  43061. </field>
  43062. <field name="COMMA_STR" type="java.lang.String"
  43063. transient="false" volatile="false"
  43064. static="true" final="true" visibility="public"
  43065. deprecated="not deprecated">
  43066. </field>
  43067. <field name="ESCAPE_CHAR" type="char"
  43068. transient="false" volatile="false"
  43069. static="true" final="true" visibility="public"
  43070. deprecated="not deprecated">
  43071. </field>
  43072. <doc>
  43073. <![CDATA[General string utils]]>
  43074. </doc>
  43075. </class>
  43076. <!-- end class org.apache.hadoop.util.StringUtils -->
  43077. <!-- start class org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix -->
  43078. <class name="StringUtils.TraditionalBinaryPrefix" extends="java.lang.Enum"
  43079. abstract="false"
  43080. static="true" final="true" visibility="public"
  43081. deprecated="not deprecated">
  43082. <method name="values" return="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix[]"
  43083. abstract="false" native="false" synchronized="false"
  43084. static="true" final="false" visibility="public"
  43085. deprecated="not deprecated">
  43086. </method>
  43087. <method name="valueOf" return="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  43088. abstract="false" native="false" synchronized="false"
  43089. static="true" final="false" visibility="public"
  43090. deprecated="not deprecated">
  43091. <param name="name" type="java.lang.String"/>
  43092. </method>
  43093. <method name="valueOf" return="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  43094. abstract="false" native="false" synchronized="false"
  43095. static="true" final="false" visibility="public"
  43096. deprecated="not deprecated">
  43097. <param name="symbol" type="char"/>
  43098. <doc>
  43099. <![CDATA[@return The TraditionalBinaryPrefix object corresponding to the symbol.]]>
  43100. </doc>
  43101. </method>
  43102. <method name="string2long" return="long"
  43103. abstract="false" native="false" synchronized="false"
  43104. static="true" final="false" visibility="public"
  43105. deprecated="not deprecated">
  43106. <param name="s" type="java.lang.String"/>
  43107. <doc>
  43108. <![CDATA[Convert a string to long.
  43109. The input string is first be trimmed
  43110. and then it is parsed with traditional binary prefix.
  43111. For example,
  43112. "-1230k" will be converted to -1230 * 1024 = -1259520;
  43113. "891g" will be converted to 891 * 1024^3 = 956703965184;
  43114. @param s input string
  43115. @return a long value represented by the input string.]]>
  43116. </doc>
  43117. </method>
  43118. <field name="KILO" type="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  43119. transient="false" volatile="false"
  43120. static="true" final="true" visibility="public"
  43121. deprecated="not deprecated">
  43122. </field>
  43123. <field name="MEGA" type="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  43124. transient="false" volatile="false"
  43125. static="true" final="true" visibility="public"
  43126. deprecated="not deprecated">
  43127. </field>
  43128. <field name="GIGA" type="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  43129. transient="false" volatile="false"
  43130. static="true" final="true" visibility="public"
  43131. deprecated="not deprecated">
  43132. </field>
  43133. <field name="TERA" type="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  43134. transient="false" volatile="false"
  43135. static="true" final="true" visibility="public"
  43136. deprecated="not deprecated">
  43137. </field>
  43138. <field name="PETA" type="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  43139. transient="false" volatile="false"
  43140. static="true" final="true" visibility="public"
  43141. deprecated="not deprecated">
  43142. </field>
  43143. <field name="EXA" type="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  43144. transient="false" volatile="false"
  43145. static="true" final="true" visibility="public"
  43146. deprecated="not deprecated">
  43147. </field>
  43148. <field name="value" type="long"
  43149. transient="false" volatile="false"
  43150. static="false" final="true" visibility="public"
  43151. deprecated="not deprecated">
  43152. </field>
  43153. <field name="symbol" type="char"
  43154. transient="false" volatile="false"
  43155. static="false" final="true" visibility="public"
  43156. deprecated="not deprecated">
  43157. </field>
  43158. <doc>
  43159. <![CDATA[The traditional binary prefixes, kilo, mega, ..., exa,
  43160. which can be represented by a 64-bit integer.
  43161. TraditionalBinaryPrefix symbol are case insensitive.]]>
  43162. </doc>
  43163. </class>
  43164. <!-- end class org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix -->
  43165. <!-- start interface org.apache.hadoop.util.Tool -->
  43166. <interface name="Tool" abstract="true"
  43167. static="false" final="false" visibility="public"
  43168. deprecated="not deprecated">
  43169. <implements name="org.apache.hadoop.conf.Configurable"/>
  43170. <method name="run" return="int"
  43171. abstract="false" native="false" synchronized="false"
  43172. static="false" final="false" visibility="public"
  43173. deprecated="not deprecated">
  43174. <param name="args" type="java.lang.String[]"/>
  43175. <exception name="Exception" type="java.lang.Exception"/>
  43176. <doc>
  43177. <![CDATA[Execute the command with the given arguments.
  43178. @param args command specific arguments.
  43179. @return exit code.
  43180. @throws Exception]]>
  43181. </doc>
  43182. </method>
  43183. <doc>
  43184. <![CDATA[A tool interface that supports handling of generic command-line options.
  43185. <p><code>Tool</code>, is the standard for any Map-Reduce tool/application.
  43186. The tool/application should delegate the handling of
  43187. <a href="{@docRoot}/org/apache/hadoop/util/GenericOptionsParser.html#GenericOptions">
  43188. standard command-line options</a> to {@link ToolRunner#run(Tool, String[])}
  43189. and only handle its custom arguments.</p>
  43190. <p>Here is how a typical <code>Tool</code> is implemented:</p>
  43191. <p><blockquote><pre>
  43192. public class MyApp extends Configured implements Tool {
  43193. public int run(String[] args) throws Exception {
  43194. // <code>Configuration</code> processed by <code>ToolRunner</code>
  43195. Configuration conf = getConf();
  43196. // Create a JobConf using the processed <code>conf</code>
  43197. JobConf job = new JobConf(conf, MyApp.class);
  43198. // Process custom command-line options
  43199. Path in = new Path(args[1]);
  43200. Path out = new Path(args[2]);
  43201. // Specify various job-specific parameters
  43202. job.setJobName("my-app");
  43203. job.setInputPath(in);
  43204. job.setOutputPath(out);
  43205. job.setMapperClass(MyApp.MyMapper.class);
  43206. job.setReducerClass(MyApp.MyReducer.class);
  43207. // Submit the job, then poll for progress until the job is complete
  43208. JobClient.runJob(job);
  43209. }
  43210. public static void main(String[] args) throws Exception {
  43211. // Let <code>ToolRunner</code> handle generic command-line options
  43212. int res = ToolRunner.run(new Configuration(), new Sort(), args);
  43213. System.exit(res);
  43214. }
  43215. }
  43216. </pre></blockquote></p>
  43217. @see GenericOptionsParser
  43218. @see ToolRunner]]>
  43219. </doc>
  43220. </interface>
  43221. <!-- end interface org.apache.hadoop.util.Tool -->
  43222. <!-- start class org.apache.hadoop.util.ToolRunner -->
  43223. <class name="ToolRunner" extends="java.lang.Object"
  43224. abstract="false"
  43225. static="false" final="false" visibility="public"
  43226. deprecated="not deprecated">
  43227. <constructor name="ToolRunner"
  43228. static="false" final="false" visibility="public"
  43229. deprecated="not deprecated">
  43230. </constructor>
  43231. <method name="run" return="int"
  43232. abstract="false" native="false" synchronized="false"
  43233. static="true" final="false" visibility="public"
  43234. deprecated="not deprecated">
  43235. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43236. <param name="tool" type="org.apache.hadoop.util.Tool"/>
  43237. <param name="args" type="java.lang.String[]"/>
  43238. <exception name="Exception" type="java.lang.Exception"/>
  43239. <doc>
  43240. <![CDATA[Runs the given <code>Tool</code> by {@link Tool#run(String[])}, after
  43241. parsing with the given generic arguments. Uses the given
  43242. <code>Configuration</code>, or builds one if null.
  43243. Sets the <code>Tool</code>'s configuration with the possibly modified
  43244. version of the <code>conf</code>.
  43245. @param conf <code>Configuration</code> for the <code>Tool</code>.
  43246. @param tool <code>Tool</code> to run.
  43247. @param args command-line arguments to the tool.
  43248. @return exit code of the {@link Tool#run(String[])} method.]]>
  43249. </doc>
  43250. </method>
  43251. <method name="run" return="int"
  43252. abstract="false" native="false" synchronized="false"
  43253. static="true" final="false" visibility="public"
  43254. deprecated="not deprecated">
  43255. <param name="tool" type="org.apache.hadoop.util.Tool"/>
  43256. <param name="args" type="java.lang.String[]"/>
  43257. <exception name="Exception" type="java.lang.Exception"/>
  43258. <doc>
  43259. <![CDATA[Runs the <code>Tool</code> with its <code>Configuration</code>.
  43260. Equivalent to <code>run(tool.getConf(), tool, args)</code>.
  43261. @param tool <code>Tool</code> to run.
  43262. @param args command-line arguments to the tool.
  43263. @return exit code of the {@link Tool#run(String[])} method.]]>
  43264. </doc>
  43265. </method>
  43266. <method name="printGenericCommandUsage"
  43267. abstract="false" native="false" synchronized="false"
  43268. static="true" final="false" visibility="public"
  43269. deprecated="not deprecated">
  43270. <param name="out" type="java.io.PrintStream"/>
  43271. <doc>
  43272. <![CDATA[Prints generic command-line argurments and usage information.
  43273. @param out stream to write usage information to.]]>
  43274. </doc>
  43275. </method>
  43276. <doc>
  43277. <![CDATA[A utility to help run {@link Tool}s.
  43278. <p><code>ToolRunner</code> can be used to run classes implementing
  43279. <code>Tool</code> interface. It works in conjunction with
  43280. {@link GenericOptionsParser} to parse the
  43281. <a href="{@docRoot}/org/apache/hadoop/util/GenericOptionsParser.html#GenericOptions">
  43282. generic hadoop command line arguments</a> and modifies the
  43283. <code>Configuration</code> of the <code>Tool</code>. The
  43284. application-specific options are passed along without being modified.
  43285. </p>
  43286. @see Tool
  43287. @see GenericOptionsParser]]>
  43288. </doc>
  43289. </class>
  43290. <!-- end class org.apache.hadoop.util.ToolRunner -->
  43291. <!-- start class org.apache.hadoop.util.UTF8ByteArrayUtils -->
  43292. <class name="UTF8ByteArrayUtils" extends="java.lang.Object"
  43293. abstract="false"
  43294. static="false" final="false" visibility="public"
  43295. deprecated="not deprecated">
  43296. <constructor name="UTF8ByteArrayUtils"
  43297. static="false" final="false" visibility="public"
  43298. deprecated="not deprecated">
  43299. </constructor>
  43300. <method name="findByte" return="int"
  43301. abstract="false" native="false" synchronized="false"
  43302. static="true" final="false" visibility="public"
  43303. deprecated="not deprecated">
  43304. <param name="utf" type="byte[]"/>
  43305. <param name="start" type="int"/>
  43306. <param name="end" type="int"/>
  43307. <param name="b" type="byte"/>
  43308. <doc>
  43309. <![CDATA[Find the first occurrence of the given byte b in a UTF-8 encoded string
  43310. @param utf a byte array containing a UTF-8 encoded string
  43311. @param start starting offset
  43312. @param end ending position
  43313. @param b the byte to find
  43314. @return position that first byte occures otherwise -1]]>
  43315. </doc>
  43316. </method>
  43317. <method name="findBytes" return="int"
  43318. abstract="false" native="false" synchronized="false"
  43319. static="true" final="false" visibility="public"
  43320. deprecated="not deprecated">
  43321. <param name="utf" type="byte[]"/>
  43322. <param name="start" type="int"/>
  43323. <param name="end" type="int"/>
  43324. <param name="b" type="byte[]"/>
  43325. <doc>
  43326. <![CDATA[Find the first occurrence of the given bytes b in a UTF-8 encoded string
  43327. @param utf a byte array containing a UTF-8 encoded string
  43328. @param start starting offset
  43329. @param end ending position
  43330. @param b the bytes to find
  43331. @return position that first byte occures otherwise -1]]>
  43332. </doc>
  43333. </method>
  43334. <method name="findNthByte" return="int"
  43335. abstract="false" native="false" synchronized="false"
  43336. static="true" final="false" visibility="public"
  43337. deprecated="not deprecated">
  43338. <param name="utf" type="byte[]"/>
  43339. <param name="start" type="int"/>
  43340. <param name="length" type="int"/>
  43341. <param name="b" type="byte"/>
  43342. <param name="n" type="int"/>
  43343. <doc>
  43344. <![CDATA[Find the nth occurrence of the given byte b in a UTF-8 encoded string
  43345. @param utf a byte array containing a UTF-8 encoded string
  43346. @param start starting offset
  43347. @param length the length of byte array
  43348. @param b the byte to find
  43349. @param n the desired occurrence of the given byte
  43350. @return position that nth occurrence of the given byte if exists; otherwise -1]]>
  43351. </doc>
  43352. </method>
  43353. <method name="findNthByte" return="int"
  43354. abstract="false" native="false" synchronized="false"
  43355. static="true" final="false" visibility="public"
  43356. deprecated="not deprecated">
  43357. <param name="utf" type="byte[]"/>
  43358. <param name="b" type="byte"/>
  43359. <param name="n" type="int"/>
  43360. <doc>
  43361. <![CDATA[Find the nth occurrence of the given byte b in a UTF-8 encoded string
  43362. @param utf a byte array containing a UTF-8 encoded string
  43363. @param b the byte to find
  43364. @param n the desired occurrence of the given byte
  43365. @return position that nth occurrence of the given byte if exists; otherwise -1]]>
  43366. </doc>
  43367. </method>
  43368. </class>
  43369. <!-- end class org.apache.hadoop.util.UTF8ByteArrayUtils -->
  43370. <!-- start class org.apache.hadoop.util.VersionInfo -->
  43371. <class name="VersionInfo" extends="java.lang.Object"
  43372. abstract="false"
  43373. static="false" final="false" visibility="public"
  43374. deprecated="not deprecated">
  43375. <constructor name="VersionInfo"
  43376. static="false" final="false" visibility="public"
  43377. deprecated="not deprecated">
  43378. </constructor>
  43379. <method name="getVersion" return="java.lang.String"
  43380. abstract="false" native="false" synchronized="false"
  43381. static="true" final="false" visibility="public"
  43382. deprecated="not deprecated">
  43383. <doc>
  43384. <![CDATA[Get the Hadoop version.
  43385. @return the Hadoop version string, eg. "0.6.3-dev"]]>
  43386. </doc>
  43387. </method>
  43388. <method name="getRevision" return="java.lang.String"
  43389. abstract="false" native="false" synchronized="false"
  43390. static="true" final="false" visibility="public"
  43391. deprecated="not deprecated">
  43392. <doc>
  43393. <![CDATA[Get the subversion revision number for the root directory
  43394. @return the revision number, eg. "451451"]]>
  43395. </doc>
  43396. </method>
  43397. <method name="getDate" return="java.lang.String"
  43398. abstract="false" native="false" synchronized="false"
  43399. static="true" final="false" visibility="public"
  43400. deprecated="not deprecated">
  43401. <doc>
  43402. <![CDATA[The date that Hadoop was compiled.
  43403. @return the compilation date in unix date format]]>
  43404. </doc>
  43405. </method>
  43406. <method name="getUser" return="java.lang.String"
  43407. abstract="false" native="false" synchronized="false"
  43408. static="true" final="false" visibility="public"
  43409. deprecated="not deprecated">
  43410. <doc>
  43411. <![CDATA[The user that compiled Hadoop.
  43412. @return the username of the user]]>
  43413. </doc>
  43414. </method>
  43415. <method name="getUrl" return="java.lang.String"
  43416. abstract="false" native="false" synchronized="false"
  43417. static="true" final="false" visibility="public"
  43418. deprecated="not deprecated">
  43419. <doc>
  43420. <![CDATA[Get the subversion URL for the root Hadoop directory.]]>
  43421. </doc>
  43422. </method>
  43423. <method name="getSrcChecksum" return="java.lang.String"
  43424. abstract="false" native="false" synchronized="false"
  43425. static="true" final="false" visibility="public"
  43426. deprecated="not deprecated">
  43427. <doc>
  43428. <![CDATA[Get the checksum of the source files from which Hadoop was
  43429. built.]]>
  43430. </doc>
  43431. </method>
  43432. <method name="getBuildVersion" return="java.lang.String"
  43433. abstract="false" native="false" synchronized="false"
  43434. static="true" final="false" visibility="public"
  43435. deprecated="not deprecated">
  43436. <doc>
  43437. <![CDATA[Returns the full version string containing version,
  43438. revision, user and source checksum.]]>
  43439. </doc>
  43440. </method>
  43441. <method name="main"
  43442. abstract="false" native="false" synchronized="false"
  43443. static="true" final="false" visibility="public"
  43444. deprecated="not deprecated">
  43445. <param name="args" type="java.lang.String[]"/>
  43446. </method>
  43447. <doc>
  43448. <![CDATA[This class finds the package info for Hadoop and the HadoopVersionAnnotation
  43449. information.]]>
  43450. </doc>
  43451. </class>
  43452. <!-- end class org.apache.hadoop.util.VersionInfo -->
  43453. <!-- start class org.apache.hadoop.util.XMLUtils -->
  43454. <class name="XMLUtils" extends="java.lang.Object"
  43455. abstract="false"
  43456. static="false" final="false" visibility="public"
  43457. deprecated="not deprecated">
  43458. <constructor name="XMLUtils"
  43459. static="false" final="false" visibility="public"
  43460. deprecated="not deprecated">
  43461. </constructor>
  43462. <method name="transform"
  43463. abstract="false" native="false" synchronized="false"
  43464. static="true" final="false" visibility="public"
  43465. deprecated="not deprecated">
  43466. <param name="styleSheet" type="java.io.InputStream"/>
  43467. <param name="xml" type="java.io.InputStream"/>
  43468. <param name="out" type="java.io.Writer"/>
  43469. <exception name="TransformerConfigurationException" type="javax.xml.transform.TransformerConfigurationException"/>
  43470. <exception name="TransformerException" type="javax.xml.transform.TransformerException"/>
  43471. <doc>
  43472. <![CDATA[Transform input xml given a stylesheet.
  43473. @param styleSheet the style-sheet
  43474. @param xml input xml data
  43475. @param out output
  43476. @throws TransformerConfigurationException
  43477. @throws TransformerException]]>
  43478. </doc>
  43479. </method>
  43480. <doc>
  43481. <![CDATA[General xml utilities.]]>
  43482. </doc>
  43483. </class>
  43484. <!-- end class org.apache.hadoop.util.XMLUtils -->
  43485. </package>
  43486. <package name="org.apache.hadoop.util.bloom">
  43487. <!-- start class org.apache.hadoop.util.bloom.BloomFilter -->
  43488. <class name="BloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  43489. abstract="false"
  43490. static="false" final="false" visibility="public"
  43491. deprecated="not deprecated">
  43492. <constructor name="BloomFilter"
  43493. static="false" final="false" visibility="public"
  43494. deprecated="not deprecated">
  43495. <doc>
  43496. <![CDATA[Default constructor - use with readFields]]>
  43497. </doc>
  43498. </constructor>
  43499. <constructor name="BloomFilter" type="int, int, int"
  43500. static="false" final="false" visibility="public"
  43501. deprecated="not deprecated">
  43502. <doc>
  43503. <![CDATA[Constructor
  43504. @param vectorSize The vector size of <i>this</i> filter.
  43505. @param nbHash The number of hash function to consider.
  43506. @param hashType type of the hashing function (see
  43507. {@link org.apache.hadoop.util.hash.Hash}).]]>
  43508. </doc>
  43509. </constructor>
  43510. <method name="add"
  43511. abstract="false" native="false" synchronized="false"
  43512. static="false" final="false" visibility="public"
  43513. deprecated="not deprecated">
  43514. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  43515. </method>
  43516. <method name="and"
  43517. abstract="false" native="false" synchronized="false"
  43518. static="false" final="false" visibility="public"
  43519. deprecated="not deprecated">
  43520. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  43521. </method>
  43522. <method name="membershipTest" return="boolean"
  43523. abstract="false" native="false" synchronized="false"
  43524. static="false" final="false" visibility="public"
  43525. deprecated="not deprecated">
  43526. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  43527. </method>
  43528. <method name="not"
  43529. abstract="false" native="false" synchronized="false"
  43530. static="false" final="false" visibility="public"
  43531. deprecated="not deprecated">
  43532. </method>
  43533. <method name="or"
  43534. abstract="false" native="false" synchronized="false"
  43535. static="false" final="false" visibility="public"
  43536. deprecated="not deprecated">
  43537. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  43538. </method>
  43539. <method name="xor"
  43540. abstract="false" native="false" synchronized="false"
  43541. static="false" final="false" visibility="public"
  43542. deprecated="not deprecated">
  43543. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  43544. </method>
  43545. <method name="toString" return="java.lang.String"
  43546. abstract="false" native="false" synchronized="false"
  43547. static="false" final="false" visibility="public"
  43548. deprecated="not deprecated">
  43549. </method>
  43550. <method name="getVectorSize" return="int"
  43551. abstract="false" native="false" synchronized="false"
  43552. static="false" final="false" visibility="public"
  43553. deprecated="not deprecated">
  43554. <doc>
  43555. <![CDATA[@return size of the the bloomfilter]]>
  43556. </doc>
  43557. </method>
  43558. <method name="write"
  43559. abstract="false" native="false" synchronized="false"
  43560. static="false" final="false" visibility="public"
  43561. deprecated="not deprecated">
  43562. <param name="out" type="java.io.DataOutput"/>
  43563. <exception name="IOException" type="java.io.IOException"/>
  43564. </method>
  43565. <method name="readFields"
  43566. abstract="false" native="false" synchronized="false"
  43567. static="false" final="false" visibility="public"
  43568. deprecated="not deprecated">
  43569. <param name="in" type="java.io.DataInput"/>
  43570. <exception name="IOException" type="java.io.IOException"/>
  43571. </method>
  43572. <doc>
  43573. <![CDATA[Implements a <i>Bloom filter</i>, as defined by Bloom in 1970.
  43574. <p>
  43575. The Bloom filter is a data structure that was introduced in 1970 and that has been adopted by
  43576. the networking research community in the past decade thanks to the bandwidth efficiencies that it
  43577. offers for the transmission of set membership information between networked hosts. A sender encodes
  43578. the information into a bit vector, the Bloom filter, that is more compact than a conventional
  43579. representation. Computation and space costs for construction are linear in the number of elements.
  43580. The receiver uses the filter to test whether various elements are members of the set. Though the
  43581. filter will occasionally return a false positive, it will never return a false negative. When creating
  43582. the filter, the sender can choose its desired point in a trade-off between the false positive rate and the size.
  43583. <p>
  43584. Originally created by
  43585. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  43586. @see Filter The general behavior of a filter
  43587. @see <a href="http://portal.acm.org/citation.cfm?id=362692&dl=ACM&coll=portal">Space/Time Trade-Offs in Hash Coding with Allowable Errors</a>]]>
  43588. </doc>
  43589. </class>
  43590. <!-- end class org.apache.hadoop.util.bloom.BloomFilter -->
  43591. <!-- start class org.apache.hadoop.util.bloom.CountingBloomFilter -->
  43592. <class name="CountingBloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  43593. abstract="false"
  43594. static="false" final="true" visibility="public"
  43595. deprecated="not deprecated">
  43596. <constructor name="CountingBloomFilter"
  43597. static="false" final="false" visibility="public"
  43598. deprecated="not deprecated">
  43599. <doc>
  43600. <![CDATA[Default constructor - use with readFields]]>
  43601. </doc>
  43602. </constructor>
  43603. <constructor name="CountingBloomFilter" type="int, int, int"
  43604. static="false" final="false" visibility="public"
  43605. deprecated="not deprecated">
  43606. <doc>
  43607. <![CDATA[Constructor
  43608. @param vectorSize The vector size of <i>this</i> filter.
  43609. @param nbHash The number of hash function to consider.
  43610. @param hashType type of the hashing function (see
  43611. {@link org.apache.hadoop.util.hash.Hash}).]]>
  43612. </doc>
  43613. </constructor>
  43614. <method name="add"
  43615. abstract="false" native="false" synchronized="false"
  43616. static="false" final="false" visibility="public"
  43617. deprecated="not deprecated">
  43618. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  43619. </method>
  43620. <method name="delete"
  43621. abstract="false" native="false" synchronized="false"
  43622. static="false" final="false" visibility="public"
  43623. deprecated="not deprecated">
  43624. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  43625. <doc>
  43626. <![CDATA[Removes a specified key from <i>this</i> counting Bloom filter.
  43627. <p>
  43628. <b>Invariant</b>: nothing happens if the specified key does not belong to <i>this</i> counter Bloom filter.
  43629. @param key The key to remove.]]>
  43630. </doc>
  43631. </method>
  43632. <method name="and"
  43633. abstract="false" native="false" synchronized="false"
  43634. static="false" final="false" visibility="public"
  43635. deprecated="not deprecated">
  43636. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  43637. </method>
  43638. <method name="membershipTest" return="boolean"
  43639. abstract="false" native="false" synchronized="false"
  43640. static="false" final="false" visibility="public"
  43641. deprecated="not deprecated">
  43642. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  43643. </method>
  43644. <method name="approximateCount" return="int"
  43645. abstract="false" native="false" synchronized="false"
  43646. static="false" final="false" visibility="public"
  43647. deprecated="not deprecated">
  43648. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  43649. <doc>
  43650. <![CDATA[This method calculates an approximate count of the key, i.e. how many
  43651. times the key was added to the filter. This allows the filter to be
  43652. used as an approximate <code>key -&gt; count</code> map.
  43653. <p>NOTE: due to the bucket size of this filter, inserting the same
  43654. key more than 15 times will cause an overflow at all filter positions
  43655. associated with this key, and it will significantly increase the error
  43656. rate for this and other keys. For this reason the filter can only be
  43657. used to store small count values <code>0 &lt;= N &lt;&lt; 15</code>.
  43658. @param key key to be tested
  43659. @return 0 if the key is not present. Otherwise, a positive value v will
  43660. be returned such that <code>v == count</code> with probability equal to the
  43661. error rate of this filter, and <code>v &gt; count</code> otherwise.
  43662. Additionally, if the filter experienced an underflow as a result of
  43663. {@link #delete(Key)} operation, the return value may be lower than the
  43664. <code>count</code> with the probability of the false negative rate of such
  43665. filter.]]>
  43666. </doc>
  43667. </method>
  43668. <method name="not"
  43669. abstract="false" native="false" synchronized="false"
  43670. static="false" final="false" visibility="public"
  43671. deprecated="not deprecated">
  43672. </method>
  43673. <method name="or"
  43674. abstract="false" native="false" synchronized="false"
  43675. static="false" final="false" visibility="public"
  43676. deprecated="not deprecated">
  43677. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  43678. </method>
  43679. <method name="xor"
  43680. abstract="false" native="false" synchronized="false"
  43681. static="false" final="false" visibility="public"
  43682. deprecated="not deprecated">
  43683. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  43684. </method>
  43685. <method name="toString" return="java.lang.String"
  43686. abstract="false" native="false" synchronized="false"
  43687. static="false" final="false" visibility="public"
  43688. deprecated="not deprecated">
  43689. </method>
  43690. <method name="write"
  43691. abstract="false" native="false" synchronized="false"
  43692. static="false" final="false" visibility="public"
  43693. deprecated="not deprecated">
  43694. <param name="out" type="java.io.DataOutput"/>
  43695. <exception name="IOException" type="java.io.IOException"/>
  43696. </method>
  43697. <method name="readFields"
  43698. abstract="false" native="false" synchronized="false"
  43699. static="false" final="false" visibility="public"
  43700. deprecated="not deprecated">
  43701. <param name="in" type="java.io.DataInput"/>
  43702. <exception name="IOException" type="java.io.IOException"/>
  43703. </method>
  43704. <doc>
  43705. <![CDATA[Implements a <i>counting Bloom filter</i>, as defined by Fan et al. in a ToN
  43706. 2000 paper.
  43707. <p>
  43708. A counting Bloom filter is an improvement to standard a Bloom filter as it
  43709. allows dynamic additions and deletions of set membership information. This
  43710. is achieved through the use of a counting vector instead of a bit vector.
  43711. <p>
  43712. Originally created by
  43713. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  43714. @see Filter The general behavior of a filter
  43715. @see <a href="http://portal.acm.org/citation.cfm?id=343571.343572">Summary cache: a scalable wide-area web cache sharing protocol</a>]]>
  43716. </doc>
  43717. </class>
  43718. <!-- end class org.apache.hadoop.util.bloom.CountingBloomFilter -->
  43719. <!-- start class org.apache.hadoop.util.bloom.DynamicBloomFilter -->
  43720. <class name="DynamicBloomFilter" extends="org.apache.hadoop.util.bloom.Filter"
  43721. abstract="false"
  43722. static="false" final="false" visibility="public"
  43723. deprecated="not deprecated">
  43724. <constructor name="DynamicBloomFilter"
  43725. static="false" final="false" visibility="public"
  43726. deprecated="not deprecated">
  43727. <doc>
  43728. <![CDATA[Zero-args constructor for the serialization.]]>
  43729. </doc>
  43730. </constructor>
  43731. <constructor name="DynamicBloomFilter" type="int, int, int, int"
  43732. static="false" final="false" visibility="public"
  43733. deprecated="not deprecated">
  43734. <doc>
  43735. <![CDATA[Constructor.
  43736. <p>
  43737. Builds an empty Dynamic Bloom filter.
  43738. @param vectorSize The number of bits in the vector.
  43739. @param nbHash The number of hash function to consider.
  43740. @param hashType type of the hashing function (see
  43741. {@link org.apache.hadoop.util.hash.Hash}).
  43742. @param nr The threshold for the maximum number of keys to record in a
  43743. dynamic Bloom filter row.]]>
  43744. </doc>
  43745. </constructor>
  43746. <method name="add"
  43747. abstract="false" native="false" synchronized="false"
  43748. static="false" final="false" visibility="public"
  43749. deprecated="not deprecated">
  43750. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  43751. </method>
  43752. <method name="and"
  43753. abstract="false" native="false" synchronized="false"
  43754. static="false" final="false" visibility="public"
  43755. deprecated="not deprecated">
  43756. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  43757. </method>
  43758. <method name="membershipTest" return="boolean"
  43759. abstract="false" native="false" synchronized="false"
  43760. static="false" final="false" visibility="public"
  43761. deprecated="not deprecated">
  43762. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  43763. </method>
  43764. <method name="not"
  43765. abstract="false" native="false" synchronized="false"
  43766. static="false" final="false" visibility="public"
  43767. deprecated="not deprecated">
  43768. </method>
  43769. <method name="or"
  43770. abstract="false" native="false" synchronized="false"
  43771. static="false" final="false" visibility="public"
  43772. deprecated="not deprecated">
  43773. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  43774. </method>
  43775. <method name="xor"
  43776. abstract="false" native="false" synchronized="false"
  43777. static="false" final="false" visibility="public"
  43778. deprecated="not deprecated">
  43779. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  43780. </method>
  43781. <method name="toString" return="java.lang.String"
  43782. abstract="false" native="false" synchronized="false"
  43783. static="false" final="false" visibility="public"
  43784. deprecated="not deprecated">
  43785. </method>
  43786. <method name="write"
  43787. abstract="false" native="false" synchronized="false"
  43788. static="false" final="false" visibility="public"
  43789. deprecated="not deprecated">
  43790. <param name="out" type="java.io.DataOutput"/>
  43791. <exception name="IOException" type="java.io.IOException"/>
  43792. </method>
  43793. <method name="readFields"
  43794. abstract="false" native="false" synchronized="false"
  43795. static="false" final="false" visibility="public"
  43796. deprecated="not deprecated">
  43797. <param name="in" type="java.io.DataInput"/>
  43798. <exception name="IOException" type="java.io.IOException"/>
  43799. </method>
  43800. <doc>
  43801. <![CDATA[Implements a <i>dynamic Bloom filter</i>, as defined in the INFOCOM 2006 paper.
  43802. <p>
  43803. A dynamic Bloom filter (DBF) makes use of a <code>s * m</code> bit matrix but
  43804. each of the <code>s</code> rows is a standard Bloom filter. The creation
  43805. process of a DBF is iterative. At the start, the DBF is a <code>1 * m</code>
  43806. bit matrix, i.e., it is composed of a single standard Bloom filter.
  43807. It assumes that <code>n<sub>r</sub></code> elements are recorded in the
  43808. initial bit vector, where <code>n<sub>r</sub> <= n</code> (<code>n</code> is
  43809. the cardinality of the set <code>A</code> to record in the filter).
  43810. <p>
  43811. As the size of <code>A</code> grows during the execution of the application,
  43812. several keys must be inserted in the DBF. When inserting a key into the DBF,
  43813. one must first get an active Bloom filter in the matrix. A Bloom filter is
  43814. active when the number of recorded keys, <code>n<sub>r</sub></code>, is
  43815. strictly less than the current cardinality of <code>A</code>, <code>n</code>.
  43816. If an active Bloom filter is found, the key is inserted and
  43817. <code>n<sub>r</sub></code> is incremented by one. On the other hand, if there
  43818. is no active Bloom filter, a new one is created (i.e., a new row is added to
  43819. the matrix) according to the current size of <code>A</code> and the element
  43820. is added in this new Bloom filter and the <code>n<sub>r</sub></code> value of
  43821. this new Bloom filter is set to one. A given key is said to belong to the
  43822. DBF if the <code>k</code> positions are set to one in one of the matrix rows.
  43823. <p>
  43824. Originally created by
  43825. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  43826. @see Filter The general behavior of a filter
  43827. @see BloomFilter A Bloom filter
  43828. @see <a href="http://www.cse.fau.edu/~jie/research/publications/Publication_files/infocom2006.pdf">Theory and Network Applications of Dynamic Bloom Filters</a>]]>
  43829. </doc>
  43830. </class>
  43831. <!-- end class org.apache.hadoop.util.bloom.DynamicBloomFilter -->
  43832. <!-- start class org.apache.hadoop.util.bloom.Filter -->
  43833. <class name="Filter" extends="java.lang.Object"
  43834. abstract="true"
  43835. static="false" final="false" visibility="public"
  43836. deprecated="not deprecated">
  43837. <implements name="org.apache.hadoop.io.Writable"/>
  43838. <constructor name="Filter"
  43839. static="false" final="false" visibility="protected"
  43840. deprecated="not deprecated">
  43841. </constructor>
  43842. <constructor name="Filter" type="int, int, int"
  43843. static="false" final="false" visibility="protected"
  43844. deprecated="not deprecated">
  43845. <doc>
  43846. <![CDATA[Constructor.
  43847. @param vectorSize The vector size of <i>this</i> filter.
  43848. @param nbHash The number of hash functions to consider.
  43849. @param hashType type of the hashing function (see {@link Hash}).]]>
  43850. </doc>
  43851. </constructor>
  43852. <method name="add"
  43853. abstract="true" native="false" synchronized="false"
  43854. static="false" final="false" visibility="public"
  43855. deprecated="not deprecated">
  43856. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  43857. <doc>
  43858. <![CDATA[Adds a key to <i>this</i> filter.
  43859. @param key The key to add.]]>
  43860. </doc>
  43861. </method>
  43862. <method name="membershipTest" return="boolean"
  43863. abstract="true" native="false" synchronized="false"
  43864. static="false" final="false" visibility="public"
  43865. deprecated="not deprecated">
  43866. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  43867. <doc>
  43868. <![CDATA[Determines wether a specified key belongs to <i>this</i> filter.
  43869. @param key The key to test.
  43870. @return boolean True if the specified key belongs to <i>this</i> filter.
  43871. False otherwise.]]>
  43872. </doc>
  43873. </method>
  43874. <method name="and"
  43875. abstract="true" native="false" synchronized="false"
  43876. static="false" final="false" visibility="public"
  43877. deprecated="not deprecated">
  43878. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  43879. <doc>
  43880. <![CDATA[Peforms a logical AND between <i>this</i> filter and a specified filter.
  43881. <p>
  43882. <b>Invariant</b>: The result is assigned to <i>this</i> filter.
  43883. @param filter The filter to AND with.]]>
  43884. </doc>
  43885. </method>
  43886. <method name="or"
  43887. abstract="true" native="false" synchronized="false"
  43888. static="false" final="false" visibility="public"
  43889. deprecated="not deprecated">
  43890. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  43891. <doc>
  43892. <![CDATA[Peforms a logical OR between <i>this</i> filter and a specified filter.
  43893. <p>
  43894. <b>Invariant</b>: The result is assigned to <i>this</i> filter.
  43895. @param filter The filter to OR with.]]>
  43896. </doc>
  43897. </method>
  43898. <method name="xor"
  43899. abstract="true" native="false" synchronized="false"
  43900. static="false" final="false" visibility="public"
  43901. deprecated="not deprecated">
  43902. <param name="filter" type="org.apache.hadoop.util.bloom.Filter"/>
  43903. <doc>
  43904. <![CDATA[Peforms a logical XOR between <i>this</i> filter and a specified filter.
  43905. <p>
  43906. <b>Invariant</b>: The result is assigned to <i>this</i> filter.
  43907. @param filter The filter to XOR with.]]>
  43908. </doc>
  43909. </method>
  43910. <method name="not"
  43911. abstract="true" native="false" synchronized="false"
  43912. static="false" final="false" visibility="public"
  43913. deprecated="not deprecated">
  43914. <doc>
  43915. <![CDATA[Performs a logical NOT on <i>this</i> filter.
  43916. <p>
  43917. The result is assigned to <i>this</i> filter.]]>
  43918. </doc>
  43919. </method>
  43920. <method name="add"
  43921. abstract="false" native="false" synchronized="false"
  43922. static="false" final="false" visibility="public"
  43923. deprecated="not deprecated">
  43924. <param name="keys" type="java.util.List"/>
  43925. <doc>
  43926. <![CDATA[Adds a list of keys to <i>this</i> filter.
  43927. @param keys The list of keys.]]>
  43928. </doc>
  43929. </method>
  43930. <method name="add"
  43931. abstract="false" native="false" synchronized="false"
  43932. static="false" final="false" visibility="public"
  43933. deprecated="not deprecated">
  43934. <param name="keys" type="java.util.Collection"/>
  43935. <doc>
  43936. <![CDATA[Adds a collection of keys to <i>this</i> filter.
  43937. @param keys The collection of keys.]]>
  43938. </doc>
  43939. </method>
  43940. <method name="add"
  43941. abstract="false" native="false" synchronized="false"
  43942. static="false" final="false" visibility="public"
  43943. deprecated="not deprecated">
  43944. <param name="keys" type="org.apache.hadoop.util.bloom.Key[]"/>
  43945. <doc>
  43946. <![CDATA[Adds an array of keys to <i>this</i> filter.
  43947. @param keys The array of keys.]]>
  43948. </doc>
  43949. </method>
  43950. <method name="write"
  43951. abstract="false" native="false" synchronized="false"
  43952. static="false" final="false" visibility="public"
  43953. deprecated="not deprecated">
  43954. <param name="out" type="java.io.DataOutput"/>
  43955. <exception name="IOException" type="java.io.IOException"/>
  43956. </method>
  43957. <method name="readFields"
  43958. abstract="false" native="false" synchronized="false"
  43959. static="false" final="false" visibility="public"
  43960. deprecated="not deprecated">
  43961. <param name="in" type="java.io.DataInput"/>
  43962. <exception name="IOException" type="java.io.IOException"/>
  43963. </method>
  43964. <field name="vectorSize" type="int"
  43965. transient="false" volatile="false"
  43966. static="false" final="false" visibility="protected"
  43967. deprecated="not deprecated">
  43968. <doc>
  43969. <![CDATA[The vector size of <i>this</i> filter.]]>
  43970. </doc>
  43971. </field>
  43972. <field name="hash" type="org.apache.hadoop.util.bloom.HashFunction"
  43973. transient="false" volatile="false"
  43974. static="false" final="false" visibility="protected"
  43975. deprecated="not deprecated">
  43976. <doc>
  43977. <![CDATA[The hash function used to map a key to several positions in the vector.]]>
  43978. </doc>
  43979. </field>
  43980. <field name="nbHash" type="int"
  43981. transient="false" volatile="false"
  43982. static="false" final="false" visibility="protected"
  43983. deprecated="not deprecated">
  43984. <doc>
  43985. <![CDATA[The number of hash function to consider.]]>
  43986. </doc>
  43987. </field>
  43988. <field name="hashType" type="int"
  43989. transient="false" volatile="false"
  43990. static="false" final="false" visibility="protected"
  43991. deprecated="not deprecated">
  43992. <doc>
  43993. <![CDATA[Type of hashing function to use.]]>
  43994. </doc>
  43995. </field>
  43996. <doc>
  43997. <![CDATA[Defines the general behavior of a filter.
  43998. <p>
  43999. A filter is a data structure which aims at offering a lossy summary of a set <code>A</code>. The
  44000. key idea is to map entries of <code>A</code> (also called <i>keys</i>) into several positions
  44001. in a vector through the use of several hash functions.
  44002. <p>
  44003. Typically, a filter will be implemented as a Bloom filter (or a Bloom filter extension).
  44004. <p>
  44005. It must be extended in order to define the real behavior.
  44006. @see Key The general behavior of a key
  44007. @see HashFunction A hash function]]>
  44008. </doc>
  44009. </class>
  44010. <!-- end class org.apache.hadoop.util.bloom.Filter -->
  44011. <!-- start class org.apache.hadoop.util.bloom.HashFunction -->
  44012. <class name="HashFunction" extends="java.lang.Object"
  44013. abstract="false"
  44014. static="false" final="true" visibility="public"
  44015. deprecated="not deprecated">
  44016. <constructor name="HashFunction" type="int, int, int"
  44017. static="false" final="false" visibility="public"
  44018. deprecated="not deprecated">
  44019. <doc>
  44020. <![CDATA[Constructor.
  44021. <p>
  44022. Builds a hash function that must obey to a given maximum number of returned values and a highest value.
  44023. @param maxValue The maximum highest returned value.
  44024. @param nbHash The number of resulting hashed values.
  44025. @param hashType type of the hashing function (see {@link Hash}).]]>
  44026. </doc>
  44027. </constructor>
  44028. <method name="clear"
  44029. abstract="false" native="false" synchronized="false"
  44030. static="false" final="false" visibility="public"
  44031. deprecated="not deprecated">
  44032. <doc>
  44033. <![CDATA[Clears <i>this</i> hash function. A NOOP]]>
  44034. </doc>
  44035. </method>
  44036. <method name="hash" return="int[]"
  44037. abstract="false" native="false" synchronized="false"
  44038. static="false" final="false" visibility="public"
  44039. deprecated="not deprecated">
  44040. <param name="k" type="org.apache.hadoop.util.bloom.Key"/>
  44041. <doc>
  44042. <![CDATA[Hashes a specified key into several integers.
  44043. @param k The specified key.
  44044. @return The array of hashed values.]]>
  44045. </doc>
  44046. </method>
  44047. <doc>
  44048. <![CDATA[Implements a hash object that returns a certain number of hashed values.
  44049. @see Key The general behavior of a key being stored in a filter
  44050. @see Filter The general behavior of a filter]]>
  44051. </doc>
  44052. </class>
  44053. <!-- end class org.apache.hadoop.util.bloom.HashFunction -->
  44054. <!-- start class org.apache.hadoop.util.bloom.Key -->
  44055. <class name="Key" extends="java.lang.Object"
  44056. abstract="false"
  44057. static="false" final="false" visibility="public"
  44058. deprecated="not deprecated">
  44059. <implements name="org.apache.hadoop.io.WritableComparable"/>
  44060. <constructor name="Key"
  44061. static="false" final="false" visibility="public"
  44062. deprecated="not deprecated">
  44063. <doc>
  44064. <![CDATA[default constructor - use with readFields]]>
  44065. </doc>
  44066. </constructor>
  44067. <constructor name="Key" type="byte[]"
  44068. static="false" final="false" visibility="public"
  44069. deprecated="not deprecated">
  44070. <doc>
  44071. <![CDATA[Constructor.
  44072. <p>
  44073. Builds a key with a default weight.
  44074. @param value The byte value of <i>this</i> key.]]>
  44075. </doc>
  44076. </constructor>
  44077. <constructor name="Key" type="byte[], double"
  44078. static="false" final="false" visibility="public"
  44079. deprecated="not deprecated">
  44080. <doc>
  44081. <![CDATA[Constructor.
  44082. <p>
  44083. Builds a key with a specified weight.
  44084. @param value The value of <i>this</i> key.
  44085. @param weight The weight associated to <i>this</i> key.]]>
  44086. </doc>
  44087. </constructor>
  44088. <method name="set"
  44089. abstract="false" native="false" synchronized="false"
  44090. static="false" final="false" visibility="public"
  44091. deprecated="not deprecated">
  44092. <param name="value" type="byte[]"/>
  44093. <param name="weight" type="double"/>
  44094. <doc>
  44095. <![CDATA[@param value
  44096. @param weight]]>
  44097. </doc>
  44098. </method>
  44099. <method name="getBytes" return="byte[]"
  44100. abstract="false" native="false" synchronized="false"
  44101. static="false" final="false" visibility="public"
  44102. deprecated="not deprecated">
  44103. <doc>
  44104. <![CDATA[@return byte[] The value of <i>this</i> key.]]>
  44105. </doc>
  44106. </method>
  44107. <method name="getWeight" return="double"
  44108. abstract="false" native="false" synchronized="false"
  44109. static="false" final="false" visibility="public"
  44110. deprecated="not deprecated">
  44111. <doc>
  44112. <![CDATA[@return Returns the weight associated to <i>this</i> key.]]>
  44113. </doc>
  44114. </method>
  44115. <method name="incrementWeight"
  44116. abstract="false" native="false" synchronized="false"
  44117. static="false" final="false" visibility="public"
  44118. deprecated="not deprecated">
  44119. <param name="weight" type="double"/>
  44120. <doc>
  44121. <![CDATA[Increments the weight of <i>this</i> key with a specified value.
  44122. @param weight The increment.]]>
  44123. </doc>
  44124. </method>
  44125. <method name="incrementWeight"
  44126. abstract="false" native="false" synchronized="false"
  44127. static="false" final="false" visibility="public"
  44128. deprecated="not deprecated">
  44129. <doc>
  44130. <![CDATA[Increments the weight of <i>this</i> key by one.]]>
  44131. </doc>
  44132. </method>
  44133. <method name="equals" return="boolean"
  44134. abstract="false" native="false" synchronized="false"
  44135. static="false" final="false" visibility="public"
  44136. deprecated="not deprecated">
  44137. <param name="o" type="java.lang.Object"/>
  44138. </method>
  44139. <method name="hashCode" return="int"
  44140. abstract="false" native="false" synchronized="false"
  44141. static="false" final="false" visibility="public"
  44142. deprecated="not deprecated">
  44143. </method>
  44144. <method name="write"
  44145. abstract="false" native="false" synchronized="false"
  44146. static="false" final="false" visibility="public"
  44147. deprecated="not deprecated">
  44148. <param name="out" type="java.io.DataOutput"/>
  44149. <exception name="IOException" type="java.io.IOException"/>
  44150. </method>
  44151. <method name="readFields"
  44152. abstract="false" native="false" synchronized="false"
  44153. static="false" final="false" visibility="public"
  44154. deprecated="not deprecated">
  44155. <param name="in" type="java.io.DataInput"/>
  44156. <exception name="IOException" type="java.io.IOException"/>
  44157. </method>
  44158. <method name="compareTo" return="int"
  44159. abstract="false" native="false" synchronized="false"
  44160. static="false" final="false" visibility="public"
  44161. deprecated="not deprecated">
  44162. <param name="other" type="org.apache.hadoop.util.bloom.Key"/>
  44163. </method>
  44164. <doc>
  44165. <![CDATA[The general behavior of a key that must be stored in a filter.
  44166. @see Filter The general behavior of a filter]]>
  44167. </doc>
  44168. </class>
  44169. <!-- end class org.apache.hadoop.util.bloom.Key -->
  44170. <!-- start interface org.apache.hadoop.util.bloom.RemoveScheme -->
  44171. <interface name="RemoveScheme" abstract="true"
  44172. static="false" final="false" visibility="public"
  44173. deprecated="not deprecated">
  44174. <field name="RANDOM" type="short"
  44175. transient="false" volatile="false"
  44176. static="true" final="true" visibility="public"
  44177. deprecated="not deprecated">
  44178. <doc>
  44179. <![CDATA[Random selection.
  44180. <p>
  44181. The idea is to randomly select a bit to reset.]]>
  44182. </doc>
  44183. </field>
  44184. <field name="MINIMUM_FN" type="short"
  44185. transient="false" volatile="false"
  44186. static="true" final="true" visibility="public"
  44187. deprecated="not deprecated">
  44188. <doc>
  44189. <![CDATA[MinimumFN Selection.
  44190. <p>
  44191. The idea is to select the bit to reset that will generate the minimum
  44192. number of false negative.]]>
  44193. </doc>
  44194. </field>
  44195. <field name="MAXIMUM_FP" type="short"
  44196. transient="false" volatile="false"
  44197. static="true" final="true" visibility="public"
  44198. deprecated="not deprecated">
  44199. <doc>
  44200. <![CDATA[MaximumFP Selection.
  44201. <p>
  44202. The idea is to select the bit to reset that will remove the maximum number
  44203. of false positive.]]>
  44204. </doc>
  44205. </field>
  44206. <field name="RATIO" type="short"
  44207. transient="false" volatile="false"
  44208. static="true" final="true" visibility="public"
  44209. deprecated="not deprecated">
  44210. <doc>
  44211. <![CDATA[Ratio Selection.
  44212. <p>
  44213. The idea is to select the bit to reset that will, at the same time, remove
  44214. the maximum number of false positve while minimizing the amount of false
  44215. negative generated.]]>
  44216. </doc>
  44217. </field>
  44218. <doc>
  44219. <![CDATA[Defines the different remove scheme for retouched Bloom filters.
  44220. <p>
  44221. Originally created by
  44222. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.]]>
  44223. </doc>
  44224. </interface>
  44225. <!-- end interface org.apache.hadoop.util.bloom.RemoveScheme -->
  44226. <!-- start class org.apache.hadoop.util.bloom.RetouchedBloomFilter -->
  44227. <class name="RetouchedBloomFilter" extends="org.apache.hadoop.util.bloom.BloomFilter"
  44228. abstract="false"
  44229. static="false" final="true" visibility="public"
  44230. deprecated="not deprecated">
  44231. <implements name="org.apache.hadoop.util.bloom.RemoveScheme"/>
  44232. <constructor name="RetouchedBloomFilter"
  44233. static="false" final="false" visibility="public"
  44234. deprecated="not deprecated">
  44235. <doc>
  44236. <![CDATA[Default constructor - use with readFields]]>
  44237. </doc>
  44238. </constructor>
  44239. <constructor name="RetouchedBloomFilter" type="int, int, int"
  44240. static="false" final="false" visibility="public"
  44241. deprecated="not deprecated">
  44242. <doc>
  44243. <![CDATA[Constructor
  44244. @param vectorSize The vector size of <i>this</i> filter.
  44245. @param nbHash The number of hash function to consider.
  44246. @param hashType type of the hashing function (see
  44247. {@link org.apache.hadoop.util.hash.Hash}).]]>
  44248. </doc>
  44249. </constructor>
  44250. <method name="add"
  44251. abstract="false" native="false" synchronized="false"
  44252. static="false" final="false" visibility="public"
  44253. deprecated="not deprecated">
  44254. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  44255. </method>
  44256. <method name="addFalsePositive"
  44257. abstract="false" native="false" synchronized="false"
  44258. static="false" final="false" visibility="public"
  44259. deprecated="not deprecated">
  44260. <param name="key" type="org.apache.hadoop.util.bloom.Key"/>
  44261. <doc>
  44262. <![CDATA[Adds a false positive information to <i>this</i> retouched Bloom filter.
  44263. <p>
  44264. <b>Invariant</b>: if the false positive is <code>null</code>, nothing happens.
  44265. @param key The false positive key to add.]]>
  44266. </doc>
  44267. </method>
  44268. <method name="addFalsePositive"
  44269. abstract="false" native="false" synchronized="false"
  44270. static="false" final="false" visibility="public"
  44271. deprecated="not deprecated">
  44272. <param name="coll" type="java.util.Collection"/>
  44273. <doc>
  44274. <![CDATA[Adds a collection of false positive information to <i>this</i> retouched Bloom filter.
  44275. @param coll The collection of false positive.]]>
  44276. </doc>
  44277. </method>
  44278. <method name="addFalsePositive"
  44279. abstract="false" native="false" synchronized="false"
  44280. static="false" final="false" visibility="public"
  44281. deprecated="not deprecated">
  44282. <param name="keys" type="java.util.List"/>
  44283. <doc>
  44284. <![CDATA[Adds a list of false positive information to <i>this</i> retouched Bloom filter.
  44285. @param keys The list of false positive.]]>
  44286. </doc>
  44287. </method>
  44288. <method name="addFalsePositive"
  44289. abstract="false" native="false" synchronized="false"
  44290. static="false" final="false" visibility="public"
  44291. deprecated="not deprecated">
  44292. <param name="keys" type="org.apache.hadoop.util.bloom.Key[]"/>
  44293. <doc>
  44294. <![CDATA[Adds an array of false positive information to <i>this</i> retouched Bloom filter.
  44295. @param keys The array of false positive.]]>
  44296. </doc>
  44297. </method>
  44298. <method name="selectiveClearing"
  44299. abstract="false" native="false" synchronized="false"
  44300. static="false" final="false" visibility="public"
  44301. deprecated="not deprecated">
  44302. <param name="k" type="org.apache.hadoop.util.bloom.Key"/>
  44303. <param name="scheme" type="short"/>
  44304. <doc>
  44305. <![CDATA[Performs the selective clearing for a given key.
  44306. @param k The false positive key to remove from <i>this</i> retouched Bloom filter.
  44307. @param scheme The selective clearing scheme to apply.]]>
  44308. </doc>
  44309. </method>
  44310. <method name="write"
  44311. abstract="false" native="false" synchronized="false"
  44312. static="false" final="false" visibility="public"
  44313. deprecated="not deprecated">
  44314. <param name="out" type="java.io.DataOutput"/>
  44315. <exception name="IOException" type="java.io.IOException"/>
  44316. </method>
  44317. <method name="readFields"
  44318. abstract="false" native="false" synchronized="false"
  44319. static="false" final="false" visibility="public"
  44320. deprecated="not deprecated">
  44321. <param name="in" type="java.io.DataInput"/>
  44322. <exception name="IOException" type="java.io.IOException"/>
  44323. </method>
  44324. <doc>
  44325. <![CDATA[Implements a <i>retouched Bloom filter</i>, as defined in the CoNEXT 2006 paper.
  44326. <p>
  44327. It allows the removal of selected false positives at the cost of introducing
  44328. random false negatives, and with the benefit of eliminating some random false
  44329. positives at the same time.
  44330. <p>
  44331. Originally created by
  44332. <a href="http://www.one-lab.org">European Commission One-Lab Project 034819</a>.
  44333. @see Filter The general behavior of a filter
  44334. @see BloomFilter A Bloom filter
  44335. @see RemoveScheme The different selective clearing algorithms
  44336. @see <a href="http://www-rp.lip6.fr/site_npa/site_rp/_publications/740-rbf_cameraready.pdf">Retouched Bloom Filters: Allowing Networked Applications to Trade Off Selected False Positives Against False Negatives</a>]]>
  44337. </doc>
  44338. </class>
  44339. <!-- end class org.apache.hadoop.util.bloom.RetouchedBloomFilter -->
  44340. </package>
  44341. <package name="org.apache.hadoop.util.hash">
  44342. <!-- start class org.apache.hadoop.util.hash.Hash -->
  44343. <class name="Hash" extends="java.lang.Object"
  44344. abstract="true"
  44345. static="false" final="false" visibility="public"
  44346. deprecated="not deprecated">
  44347. <constructor name="Hash"
  44348. static="false" final="false" visibility="public"
  44349. deprecated="not deprecated">
  44350. </constructor>
  44351. <method name="parseHashType" return="int"
  44352. abstract="false" native="false" synchronized="false"
  44353. static="true" final="false" visibility="public"
  44354. deprecated="not deprecated">
  44355. <param name="name" type="java.lang.String"/>
  44356. <doc>
  44357. <![CDATA[This utility method converts String representation of hash function name
  44358. to a symbolic constant. Currently two function types are supported,
  44359. "jenkins" and "murmur".
  44360. @param name hash function name
  44361. @return one of the predefined constants]]>
  44362. </doc>
  44363. </method>
  44364. <method name="getHashType" return="int"
  44365. abstract="false" native="false" synchronized="false"
  44366. static="true" final="false" visibility="public"
  44367. deprecated="not deprecated">
  44368. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44369. <doc>
  44370. <![CDATA[This utility method converts the name of the configured
  44371. hash type to a symbolic constant.
  44372. @param conf configuration
  44373. @return one of the predefined constants]]>
  44374. </doc>
  44375. </method>
  44376. <method name="getInstance" return="org.apache.hadoop.util.hash.Hash"
  44377. abstract="false" native="false" synchronized="false"
  44378. static="true" final="false" visibility="public"
  44379. deprecated="not deprecated">
  44380. <param name="type" type="int"/>
  44381. <doc>
  44382. <![CDATA[Get a singleton instance of hash function of a given type.
  44383. @param type predefined hash type
  44384. @return hash function instance, or null if type is invalid]]>
  44385. </doc>
  44386. </method>
  44387. <method name="getInstance" return="org.apache.hadoop.util.hash.Hash"
  44388. abstract="false" native="false" synchronized="false"
  44389. static="true" final="false" visibility="public"
  44390. deprecated="not deprecated">
  44391. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44392. <doc>
  44393. <![CDATA[Get a singleton instance of hash function of a type
  44394. defined in the configuration.
  44395. @param conf current configuration
  44396. @return defined hash type, or null if type is invalid]]>
  44397. </doc>
  44398. </method>
  44399. <method name="hash" return="int"
  44400. abstract="false" native="false" synchronized="false"
  44401. static="false" final="false" visibility="public"
  44402. deprecated="not deprecated">
  44403. <param name="bytes" type="byte[]"/>
  44404. <doc>
  44405. <![CDATA[Calculate a hash using all bytes from the input argument, and
  44406. a seed of -1.
  44407. @param bytes input bytes
  44408. @return hash value]]>
  44409. </doc>
  44410. </method>
  44411. <method name="hash" return="int"
  44412. abstract="false" native="false" synchronized="false"
  44413. static="false" final="false" visibility="public"
  44414. deprecated="not deprecated">
  44415. <param name="bytes" type="byte[]"/>
  44416. <param name="initval" type="int"/>
  44417. <doc>
  44418. <![CDATA[Calculate a hash using all bytes from the input argument,
  44419. and a provided seed value.
  44420. @param bytes input bytes
  44421. @param initval seed value
  44422. @return hash value]]>
  44423. </doc>
  44424. </method>
  44425. <method name="hash" return="int"
  44426. abstract="true" native="false" synchronized="false"
  44427. static="false" final="false" visibility="public"
  44428. deprecated="not deprecated">
  44429. <param name="bytes" type="byte[]"/>
  44430. <param name="length" type="int"/>
  44431. <param name="initval" type="int"/>
  44432. <doc>
  44433. <![CDATA[Calculate a hash using bytes from 0 to <code>length</code>, and
  44434. the provided seed value
  44435. @param bytes input bytes
  44436. @param length length of the valid bytes to consider
  44437. @param initval seed value
  44438. @return hash value]]>
  44439. </doc>
  44440. </method>
  44441. <field name="INVALID_HASH" type="int"
  44442. transient="false" volatile="false"
  44443. static="true" final="true" visibility="public"
  44444. deprecated="not deprecated">
  44445. <doc>
  44446. <![CDATA[Constant to denote invalid hash type.]]>
  44447. </doc>
  44448. </field>
  44449. <field name="JENKINS_HASH" type="int"
  44450. transient="false" volatile="false"
  44451. static="true" final="true" visibility="public"
  44452. deprecated="not deprecated">
  44453. <doc>
  44454. <![CDATA[Constant to denote {@link JenkinsHash}.]]>
  44455. </doc>
  44456. </field>
  44457. <field name="MURMUR_HASH" type="int"
  44458. transient="false" volatile="false"
  44459. static="true" final="true" visibility="public"
  44460. deprecated="not deprecated">
  44461. <doc>
  44462. <![CDATA[Constant to denote {@link MurmurHash}.]]>
  44463. </doc>
  44464. </field>
  44465. <doc>
  44466. <![CDATA[This class represents a common API for hashing functions.]]>
  44467. </doc>
  44468. </class>
  44469. <!-- end class org.apache.hadoop.util.hash.Hash -->
  44470. <!-- start class org.apache.hadoop.util.hash.JenkinsHash -->
  44471. <class name="JenkinsHash" extends="org.apache.hadoop.util.hash.Hash"
  44472. abstract="false"
  44473. static="false" final="false" visibility="public"
  44474. deprecated="not deprecated">
  44475. <constructor name="JenkinsHash"
  44476. static="false" final="false" visibility="public"
  44477. deprecated="not deprecated">
  44478. </constructor>
  44479. <method name="getInstance" return="org.apache.hadoop.util.hash.Hash"
  44480. abstract="false" native="false" synchronized="false"
  44481. static="true" final="false" visibility="public"
  44482. deprecated="not deprecated">
  44483. </method>
  44484. <method name="hash" return="int"
  44485. abstract="false" native="false" synchronized="false"
  44486. static="false" final="false" visibility="public"
  44487. deprecated="not deprecated">
  44488. <param name="key" type="byte[]"/>
  44489. <param name="nbytes" type="int"/>
  44490. <param name="initval" type="int"/>
  44491. <doc>
  44492. <![CDATA[taken from hashlittle() -- hash a variable-length key into a 32-bit value
  44493. @param key the key (the unaligned variable-length array of bytes)
  44494. @param nbytes number of bytes to include in hash
  44495. @param initval can be any integer value
  44496. @return a 32-bit value. Every bit of the key affects every bit of the
  44497. return value. Two keys differing by one or two bits will have totally
  44498. different hash values.
  44499. <p>The best hash table sizes are powers of 2. There is no need to do mod
  44500. a prime (mod is sooo slow!). If you need less than 32 bits, use a bitmask.
  44501. For example, if you need only 10 bits, do
  44502. <code>h = (h & hashmask(10));</code>
  44503. In which case, the hash table should have hashsize(10) elements.
  44504. <p>If you are hashing n strings byte[][] k, do it like this:
  44505. for (int i = 0, h = 0; i < n; ++i) h = hash( k[i], h);
  44506. <p>By Bob Jenkins, 2006. bob_jenkins@burtleburtle.net. You may use this
  44507. code any way you wish, private, educational, or commercial. It's free.
  44508. <p>Use for hash table lookup, or anything where one collision in 2^^32 is
  44509. acceptable. Do NOT use for cryptographic purposes.]]>
  44510. </doc>
  44511. </method>
  44512. <method name="main"
  44513. abstract="false" native="false" synchronized="false"
  44514. static="true" final="false" visibility="public"
  44515. deprecated="not deprecated">
  44516. <param name="args" type="java.lang.String[]"/>
  44517. <exception name="IOException" type="java.io.IOException"/>
  44518. <doc>
  44519. <![CDATA[Compute the hash of the specified file
  44520. @param args name of file to compute hash of.
  44521. @throws IOException]]>
  44522. </doc>
  44523. </method>
  44524. <doc>
  44525. <![CDATA[Produces 32-bit hash for hash table lookup.
  44526. <pre>lookup3.c, by Bob Jenkins, May 2006, Public Domain.
  44527. You can use this free for any purpose. It's in the public domain.
  44528. It has no warranty.
  44529. </pre>
  44530. @see <a href="http://burtleburtle.net/bob/c/lookup3.c">lookup3.c</a>
  44531. @see <a href="http://www.ddj.com/184410284">Hash Functions (and how this
  44532. function compares to others such as CRC, MD?, etc</a>
  44533. @see <a href="http://burtleburtle.net/bob/hash/doobs.html">Has update on the
  44534. Dr. Dobbs Article</a>]]>
  44535. </doc>
  44536. </class>
  44537. <!-- end class org.apache.hadoop.util.hash.JenkinsHash -->
  44538. <!-- start class org.apache.hadoop.util.hash.MurmurHash -->
  44539. <class name="MurmurHash" extends="org.apache.hadoop.util.hash.Hash"
  44540. abstract="false"
  44541. static="false" final="false" visibility="public"
  44542. deprecated="not deprecated">
  44543. <constructor name="MurmurHash"
  44544. static="false" final="false" visibility="public"
  44545. deprecated="not deprecated">
  44546. </constructor>
  44547. <method name="getInstance" return="org.apache.hadoop.util.hash.Hash"
  44548. abstract="false" native="false" synchronized="false"
  44549. static="true" final="false" visibility="public"
  44550. deprecated="not deprecated">
  44551. </method>
  44552. <method name="hash" return="int"
  44553. abstract="false" native="false" synchronized="false"
  44554. static="false" final="false" visibility="public"
  44555. deprecated="not deprecated">
  44556. <param name="data" type="byte[]"/>
  44557. <param name="length" type="int"/>
  44558. <param name="seed" type="int"/>
  44559. </method>
  44560. <doc>
  44561. <![CDATA[This is a very fast, non-cryptographic hash suitable for general hash-based
  44562. lookup. See http://murmurhash.googlepages.com/ for more details.
  44563. <p>The C version of MurmurHash 2.0 found at that site was ported
  44564. to Java by Andrzej Bialecki (ab at getopt org).</p>]]>
  44565. </doc>
  44566. </class>
  44567. <!-- end class org.apache.hadoop.util.hash.MurmurHash -->
  44568. </package>
  44569. <package name="org.apache.hadoop.filecache">
  44570. <!-- start class org.apache.hadoop.filecache.DistributedCache -->
  44571. <class name="DistributedCache" extends="java.lang.Object"
  44572. abstract="false"
  44573. static="false" final="false" visibility="public"
  44574. deprecated="not deprecated">
  44575. <constructor name="DistributedCache"
  44576. static="false" final="false" visibility="public"
  44577. deprecated="not deprecated">
  44578. </constructor>
  44579. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  44580. abstract="false" native="false" synchronized="false"
  44581. static="true" final="false" visibility="public"
  44582. deprecated="not deprecated">
  44583. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44584. <param name="cache" type="java.net.URI"/>
  44585. <exception name="IOException" type="java.io.IOException"/>
  44586. <doc>
  44587. <![CDATA[Returns {@link FileStatus} of a given cache file on hdfs. Internal to
  44588. MapReduce.
  44589. @param conf configuration
  44590. @param cache cache file
  44591. @return <code>FileStatus</code> of a given cache file on hdfs
  44592. @throws IOException]]>
  44593. </doc>
  44594. </method>
  44595. <method name="getTimestamp" return="long"
  44596. abstract="false" native="false" synchronized="false"
  44597. static="true" final="false" visibility="public"
  44598. deprecated="not deprecated">
  44599. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44600. <param name="cache" type="java.net.URI"/>
  44601. <exception name="IOException" type="java.io.IOException"/>
  44602. <doc>
  44603. <![CDATA[Returns mtime of a given cache file on hdfs. Internal to MapReduce.
  44604. @param conf configuration
  44605. @param cache cache file
  44606. @return mtime of a given cache file on hdfs
  44607. @throws IOException]]>
  44608. </doc>
  44609. </method>
  44610. <method name="createAllSymlink"
  44611. abstract="false" native="false" synchronized="false"
  44612. static="true" final="false" visibility="public"
  44613. deprecated="Internal to MapReduce framework. Use DistributedCacheManager
  44614. instead.">
  44615. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44616. <param name="jobCacheDir" type="java.io.File"/>
  44617. <param name="workDir" type="java.io.File"/>
  44618. <exception name="IOException" type="java.io.IOException"/>
  44619. <doc>
  44620. <![CDATA[This method create symlinks for all files in a given dir in another directory
  44621. @param conf the configuration
  44622. @param jobCacheDir the target directory for creating symlinks
  44623. @param workDir the directory in which the symlinks are created
  44624. @throws IOException
  44625. @deprecated Internal to MapReduce framework. Use DistributedCacheManager
  44626. instead.]]>
  44627. </doc>
  44628. </method>
  44629. <method name="setCacheArchives"
  44630. abstract="false" native="false" synchronized="false"
  44631. static="true" final="false" visibility="public"
  44632. deprecated="not deprecated">
  44633. <param name="archives" type="java.net.URI[]"/>
  44634. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44635. <doc>
  44636. <![CDATA[Set the configuration with the given set of archives. Intended
  44637. to be used by user code.
  44638. @param archives The list of archives that need to be localized
  44639. @param conf Configuration which will be changed]]>
  44640. </doc>
  44641. </method>
  44642. <method name="setCacheFiles"
  44643. abstract="false" native="false" synchronized="false"
  44644. static="true" final="false" visibility="public"
  44645. deprecated="not deprecated">
  44646. <param name="files" type="java.net.URI[]"/>
  44647. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44648. <doc>
  44649. <![CDATA[Set the configuration with the given set of files. Intended to be
  44650. used by user code.
  44651. @param files The list of files that need to be localized
  44652. @param conf Configuration which will be changed]]>
  44653. </doc>
  44654. </method>
  44655. <method name="getCacheArchives" return="java.net.URI[]"
  44656. abstract="false" native="false" synchronized="false"
  44657. static="true" final="false" visibility="public"
  44658. deprecated="not deprecated">
  44659. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44660. <exception name="IOException" type="java.io.IOException"/>
  44661. <doc>
  44662. <![CDATA[Get cache archives set in the Configuration. Used by
  44663. internal DistributedCache and MapReduce code.
  44664. @param conf The configuration which contains the archives
  44665. @return An array of the caches set in the Configuration
  44666. @throws IOException]]>
  44667. </doc>
  44668. </method>
  44669. <method name="getCacheFiles" return="java.net.URI[]"
  44670. abstract="false" native="false" synchronized="false"
  44671. static="true" final="false" visibility="public"
  44672. deprecated="not deprecated">
  44673. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44674. <exception name="IOException" type="java.io.IOException"/>
  44675. <doc>
  44676. <![CDATA[Get cache files set in the Configuration. Used by internal
  44677. DistributedCache and MapReduce code.
  44678. @param conf The configuration which contains the files
  44679. @return Am array of the files set in the Configuration
  44680. @throws IOException]]>
  44681. </doc>
  44682. </method>
  44683. <method name="getLocalCacheArchives" return="org.apache.hadoop.fs.Path[]"
  44684. abstract="false" native="false" synchronized="false"
  44685. static="true" final="false" visibility="public"
  44686. deprecated="not deprecated">
  44687. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44688. <exception name="IOException" type="java.io.IOException"/>
  44689. <doc>
  44690. <![CDATA[Return the path array of the localized caches. Intended to be used
  44691. by user code.
  44692. @param conf Configuration that contains the localized archives
  44693. @return A path array of localized caches
  44694. @throws IOException]]>
  44695. </doc>
  44696. </method>
  44697. <method name="getLocalCacheFiles" return="org.apache.hadoop.fs.Path[]"
  44698. abstract="false" native="false" synchronized="false"
  44699. static="true" final="false" visibility="public"
  44700. deprecated="not deprecated">
  44701. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44702. <exception name="IOException" type="java.io.IOException"/>
  44703. <doc>
  44704. <![CDATA[Return the path array of the localized files. Intended to be used
  44705. by user code.
  44706. @param conf Configuration that contains the localized files
  44707. @return A path array of localized files
  44708. @throws IOException]]>
  44709. </doc>
  44710. </method>
  44711. <method name="getArchiveTimestamps" return="long[]"
  44712. abstract="false" native="false" synchronized="false"
  44713. static="true" final="false" visibility="public"
  44714. deprecated="not deprecated">
  44715. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44716. <doc>
  44717. <![CDATA[Get the timestamps of the archives. Used by internal
  44718. DistributedCache and MapReduce code.
  44719. @param conf The configuration which stored the timestamps
  44720. @return a long array of timestamps
  44721. @throws IOException]]>
  44722. </doc>
  44723. </method>
  44724. <method name="getFileTimestamps" return="long[]"
  44725. abstract="false" native="false" synchronized="false"
  44726. static="true" final="false" visibility="public"
  44727. deprecated="not deprecated">
  44728. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44729. <doc>
  44730. <![CDATA[Get the timestamps of the files. Used by internal
  44731. DistributedCache and MapReduce code.
  44732. @param conf The configuration which stored the timestamps
  44733. @return a long array of timestamps
  44734. @throws IOException]]>
  44735. </doc>
  44736. </method>
  44737. <method name="setArchiveTimestamps"
  44738. abstract="false" native="false" synchronized="false"
  44739. static="true" final="false" visibility="public"
  44740. deprecated="not deprecated">
  44741. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44742. <param name="timestamps" type="java.lang.String"/>
  44743. <doc>
  44744. <![CDATA[This is to check the timestamp of the archives to be localized.
  44745. Used by internal MapReduce code.
  44746. @param conf Configuration which stores the timestamp's
  44747. @param timestamps comma separated list of timestamps of archives.
  44748. The order should be the same as the order in which the archives are added.]]>
  44749. </doc>
  44750. </method>
  44751. <method name="setFileTimestamps"
  44752. abstract="false" native="false" synchronized="false"
  44753. static="true" final="false" visibility="public"
  44754. deprecated="not deprecated">
  44755. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44756. <param name="timestamps" type="java.lang.String"/>
  44757. <doc>
  44758. <![CDATA[This is to check the timestamp of the files to be localized.
  44759. Used by internal MapReduce code.
  44760. @param conf Configuration which stores the timestamp's
  44761. @param timestamps comma separated list of timestamps of files.
  44762. The order should be the same as the order in which the files are added.]]>
  44763. </doc>
  44764. </method>
  44765. <method name="setLocalArchives"
  44766. abstract="false" native="false" synchronized="false"
  44767. static="true" final="false" visibility="public"
  44768. deprecated="not deprecated">
  44769. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44770. <param name="str" type="java.lang.String"/>
  44771. <doc>
  44772. <![CDATA[Set the conf to contain the location for localized archives. Used
  44773. by internal DistributedCache code.
  44774. @param conf The conf to modify to contain the localized caches
  44775. @param str a comma separated list of local archives]]>
  44776. </doc>
  44777. </method>
  44778. <method name="setLocalFiles"
  44779. abstract="false" native="false" synchronized="false"
  44780. static="true" final="false" visibility="public"
  44781. deprecated="not deprecated">
  44782. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44783. <param name="str" type="java.lang.String"/>
  44784. <doc>
  44785. <![CDATA[Set the conf to contain the location for localized files. Used
  44786. by internal DistributedCache code.
  44787. @param conf The conf to modify to contain the localized caches
  44788. @param str a comma separated list of local files]]>
  44789. </doc>
  44790. </method>
  44791. <method name="addLocalArchives"
  44792. abstract="false" native="false" synchronized="false"
  44793. static="true" final="false" visibility="public"
  44794. deprecated="not deprecated">
  44795. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44796. <param name="str" type="java.lang.String"/>
  44797. <doc>
  44798. <![CDATA[Add a archive that has been localized to the conf. Used
  44799. by internal DistributedCache code.
  44800. @param conf The conf to modify to contain the localized caches
  44801. @param str a comma separated list of local archives]]>
  44802. </doc>
  44803. </method>
  44804. <method name="addLocalFiles"
  44805. abstract="false" native="false" synchronized="false"
  44806. static="true" final="false" visibility="public"
  44807. deprecated="not deprecated">
  44808. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44809. <param name="str" type="java.lang.String"/>
  44810. <doc>
  44811. <![CDATA[Add a file that has been localized to the conf.. Used
  44812. by internal DistributedCache code.
  44813. @param conf The conf to modify to contain the localized caches
  44814. @param str a comma separated list of local files]]>
  44815. </doc>
  44816. </method>
  44817. <method name="addCacheArchive"
  44818. abstract="false" native="false" synchronized="false"
  44819. static="true" final="false" visibility="public"
  44820. deprecated="not deprecated">
  44821. <param name="uri" type="java.net.URI"/>
  44822. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44823. <doc>
  44824. <![CDATA[Add a archives to be localized to the conf. Intended to
  44825. be used by user code.
  44826. @param uri The uri of the cache to be localized
  44827. @param conf Configuration to add the cache to]]>
  44828. </doc>
  44829. </method>
  44830. <method name="addCacheFile"
  44831. abstract="false" native="false" synchronized="false"
  44832. static="true" final="false" visibility="public"
  44833. deprecated="not deprecated">
  44834. <param name="uri" type="java.net.URI"/>
  44835. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44836. <doc>
  44837. <![CDATA[Add a file to be localized to the conf. Intended
  44838. to be used by user code.
  44839. @param uri The uri of the cache to be localized
  44840. @param conf Configuration to add the cache to]]>
  44841. </doc>
  44842. </method>
  44843. <method name="addFileToClassPath"
  44844. abstract="false" native="false" synchronized="false"
  44845. static="true" final="false" visibility="public"
  44846. deprecated="Please use {@link #addFileToClassPath(Path, Configuration, FileSystem)}
  44847. instead. The {@code FileSystem} should be obtained within an
  44848. appropriate {@code doAs}.">
  44849. <param name="file" type="org.apache.hadoop.fs.Path"/>
  44850. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44851. <exception name="IOException" type="java.io.IOException"/>
  44852. <doc>
  44853. <![CDATA[Add a file path to the current set of classpath entries. It adds the file
  44854. to cache as well. Intended to be used by user code.
  44855. @deprecated
  44856. Please use {@link #addFileToClassPath(Path, Configuration, FileSystem)}
  44857. instead. The {@code FileSystem} should be obtained within an
  44858. appropriate {@code doAs}.
  44859. @param file Path of the file to be added
  44860. @param conf Configuration that contains the classpath setting]]>
  44861. </doc>
  44862. </method>
  44863. <method name="addFileToClassPath"
  44864. abstract="false" native="false" synchronized="false"
  44865. static="true" final="false" visibility="public"
  44866. deprecated="not deprecated">
  44867. <param name="file" type="org.apache.hadoop.fs.Path"/>
  44868. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44869. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  44870. <exception name="IOException" type="java.io.IOException"/>
  44871. <doc>
  44872. <![CDATA[Add a file path to the current set of classpath entries. It adds the file
  44873. to cache as well. Intended to be used by user code.
  44874. @param file Path of the file to be added
  44875. @param conf Configuration that contains the classpath setting
  44876. @param fs FileSystem with respect to which {@code archivefile} should
  44877. be interpreted.]]>
  44878. </doc>
  44879. </method>
  44880. <method name="getFileClassPaths" return="org.apache.hadoop.fs.Path[]"
  44881. abstract="false" native="false" synchronized="false"
  44882. static="true" final="false" visibility="public"
  44883. deprecated="not deprecated">
  44884. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44885. <doc>
  44886. <![CDATA[Get the file entries in classpath as an array of Path.
  44887. Used by internal DistributedCache code.
  44888. @param conf Configuration that contains the classpath setting]]>
  44889. </doc>
  44890. </method>
  44891. <method name="addArchiveToClassPath"
  44892. abstract="false" native="false" synchronized="false"
  44893. static="true" final="false" visibility="public"
  44894. deprecated="Please use {@link #addArchiveToClassPath(Path, Configuration, FileSystem)}
  44895. instead. The {@code FileSystem} should be obtained within an
  44896. appropriate {@code doAs}.">
  44897. <param name="archive" type="org.apache.hadoop.fs.Path"/>
  44898. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44899. <exception name="IOException" type="java.io.IOException"/>
  44900. <doc>
  44901. <![CDATA[Add an archive path to the current set of classpath entries. It adds the
  44902. archive to cache as well. Intended to be used by user code.
  44903. @deprecated
  44904. Please use {@link #addArchiveToClassPath(Path, Configuration, FileSystem)}
  44905. instead. The {@code FileSystem} should be obtained within an
  44906. appropriate {@code doAs}.
  44907. @param archive Path of the archive to be added
  44908. @param conf Configuration that contains the classpath setting]]>
  44909. </doc>
  44910. </method>
  44911. <method name="addArchiveToClassPath"
  44912. abstract="false" native="false" synchronized="false"
  44913. static="true" final="false" visibility="public"
  44914. deprecated="not deprecated">
  44915. <param name="archive" type="org.apache.hadoop.fs.Path"/>
  44916. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44917. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  44918. <exception name="IOException" type="java.io.IOException"/>
  44919. <doc>
  44920. <![CDATA[Add an archive path to the current set of classpath entries. It adds the
  44921. archive to cache as well. Intended to be used by user code.
  44922. @param archive Path of the archive to be added
  44923. @param conf Configuration that contains the classpath setting
  44924. @param fs FileSystem with respect to which {@code archive} should be interpreted.]]>
  44925. </doc>
  44926. </method>
  44927. <method name="getArchiveClassPaths" return="org.apache.hadoop.fs.Path[]"
  44928. abstract="false" native="false" synchronized="false"
  44929. static="true" final="false" visibility="public"
  44930. deprecated="not deprecated">
  44931. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44932. <doc>
  44933. <![CDATA[Get the archive entries in classpath as an array of Path.
  44934. Used by internal DistributedCache code.
  44935. @param conf Configuration that contains the classpath setting]]>
  44936. </doc>
  44937. </method>
  44938. <method name="createSymlink"
  44939. abstract="false" native="false" synchronized="false"
  44940. static="true" final="false" visibility="public"
  44941. deprecated="not deprecated">
  44942. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44943. <doc>
  44944. <![CDATA[This method allows you to create symlinks in the current working directory
  44945. of the task to all the cache files/archives.
  44946. Intended to be used by user code.
  44947. @param conf the jobconf]]>
  44948. </doc>
  44949. </method>
  44950. <method name="getSymlink" return="boolean"
  44951. abstract="false" native="false" synchronized="false"
  44952. static="true" final="false" visibility="public"
  44953. deprecated="not deprecated">
  44954. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  44955. <doc>
  44956. <![CDATA[This method checks to see if symlinks are to be create for the
  44957. localized cache files in the current working directory
  44958. Used by internal DistributedCache code.
  44959. @param conf the jobconf
  44960. @return true if symlinks are to be created- else return false]]>
  44961. </doc>
  44962. </method>
  44963. <method name="checkURIs" return="boolean"
  44964. abstract="false" native="false" synchronized="false"
  44965. static="true" final="false" visibility="public"
  44966. deprecated="not deprecated">
  44967. <param name="uriFiles" type="java.net.URI[]"/>
  44968. <param name="uriArchives" type="java.net.URI[]"/>
  44969. <doc>
  44970. <![CDATA[This method checks if there is a conflict in the fragment names
  44971. of the uris. Also makes sure that each uri has a fragment. It
  44972. is only to be called if you want to create symlinks for
  44973. the various archives and files. May be used by user code.
  44974. @param uriFiles The uri array of urifiles
  44975. @param uriArchives the uri array of uri archives]]>
  44976. </doc>
  44977. </method>
  44978. <field name="CACHE_FILES_SIZES" type="java.lang.String"
  44979. transient="false" volatile="false"
  44980. static="true" final="true" visibility="public"
  44981. deprecated="not deprecated">
  44982. <doc>
  44983. <![CDATA[Warning: {@link #CACHE_FILES_SIZES} is not a *public* constant.]]>
  44984. </doc>
  44985. </field>
  44986. <field name="CACHE_ARCHIVES_SIZES" type="java.lang.String"
  44987. transient="false" volatile="false"
  44988. static="true" final="true" visibility="public"
  44989. deprecated="not deprecated">
  44990. <doc>
  44991. <![CDATA[Warning: {@link #CACHE_ARCHIVES_SIZES} is not a *public* constant.]]>
  44992. </doc>
  44993. </field>
  44994. <field name="CACHE_ARCHIVES_TIMESTAMPS" type="java.lang.String"
  44995. transient="false" volatile="false"
  44996. static="true" final="true" visibility="public"
  44997. deprecated="not deprecated">
  44998. <doc>
  44999. <![CDATA[Warning: {@link #CACHE_ARCHIVES_TIMESTAMPS} is not a *public* constant.]]>
  45000. </doc>
  45001. </field>
  45002. <field name="CACHE_FILES_TIMESTAMPS" type="java.lang.String"
  45003. transient="false" volatile="false"
  45004. static="true" final="true" visibility="public"
  45005. deprecated="not deprecated">
  45006. <doc>
  45007. <![CDATA[Warning: {@link #CACHE_FILES_TIMESTAMPS} is not a *public* constant.]]>
  45008. </doc>
  45009. </field>
  45010. <field name="CACHE_ARCHIVES" type="java.lang.String"
  45011. transient="false" volatile="false"
  45012. static="true" final="true" visibility="public"
  45013. deprecated="not deprecated">
  45014. <doc>
  45015. <![CDATA[Warning: {@link #CACHE_ARCHIVES} is not a *public* constant.]]>
  45016. </doc>
  45017. </field>
  45018. <field name="CACHE_FILES" type="java.lang.String"
  45019. transient="false" volatile="false"
  45020. static="true" final="true" visibility="public"
  45021. deprecated="not deprecated">
  45022. <doc>
  45023. <![CDATA[Warning: {@link #CACHE_FILES} is not a *public* constant.]]>
  45024. </doc>
  45025. </field>
  45026. <field name="CACHE_LOCALARCHIVES" type="java.lang.String"
  45027. transient="false" volatile="false"
  45028. static="true" final="true" visibility="public"
  45029. deprecated="not deprecated">
  45030. <doc>
  45031. <![CDATA[Warning: {@link #CACHE_LOCALARCHIVES} is not a *public* constant.]]>
  45032. </doc>
  45033. </field>
  45034. <field name="CACHE_LOCALFILES" type="java.lang.String"
  45035. transient="false" volatile="false"
  45036. static="true" final="true" visibility="public"
  45037. deprecated="not deprecated">
  45038. <doc>
  45039. <![CDATA[Warning: {@link #CACHE_LOCALFILES} is not a *public* constant.]]>
  45040. </doc>
  45041. </field>
  45042. <field name="CACHE_SYMLINK" type="java.lang.String"
  45043. transient="false" volatile="false"
  45044. static="true" final="true" visibility="public"
  45045. deprecated="not deprecated">
  45046. <doc>
  45047. <![CDATA[Warning: {@link #CACHE_SYMLINK} is not a *public* constant.]]>
  45048. </doc>
  45049. </field>
  45050. <doc>
  45051. <![CDATA[Distribute application-specific large, read-only files efficiently.
  45052. <p><code>DistributedCache</code> is a facility provided by the Map-Reduce
  45053. framework to cache files (text, archives, jars etc.) needed by applications.
  45054. </p>
  45055. <p>Applications specify the files, via urls (hdfs:// or http://) to be cached
  45056. via the {@link org.apache.hadoop.mapred.JobConf}.
  45057. The <code>DistributedCache</code> assumes that the
  45058. files specified via hdfs:// urls are already present on the
  45059. {@link FileSystem} at the path specified by the url.</p>
  45060. <p>The framework will copy the necessary files on to the slave node before
  45061. any tasks for the job are executed on that node. Its efficiency stems from
  45062. the fact that the files are only copied once per job and the ability to
  45063. cache archives which are un-archived on the slaves.</p>
  45064. <p><code>DistributedCache</code> can be used to distribute simple, read-only
  45065. data/text files and/or more complex types such as archives, jars etc.
  45066. Archives (zip, tar and tgz/tar.gz files) are un-archived at the slave nodes.
  45067. Jars may be optionally added to the classpath of the tasks, a rudimentary
  45068. software distribution mechanism. Files have execution permissions.
  45069. Optionally users can also direct it to symlink the distributed cache file(s)
  45070. into the working directory of the task.</p>
  45071. <p><code>DistributedCache</code> tracks modification timestamps of the cache
  45072. files. Clearly the cache files should not be modified by the application
  45073. or externally while the job is executing.</p>
  45074. <p>Here is an illustrative example on how to use the
  45075. <code>DistributedCache</code>:</p>
  45076. <p><blockquote><pre>
  45077. // Setting up the cache for the application
  45078. 1. Copy the requisite files to the <code>FileSystem</code>:
  45079. $ bin/hadoop fs -copyFromLocal lookup.dat /myapp/lookup.dat
  45080. $ bin/hadoop fs -copyFromLocal map.zip /myapp/map.zip
  45081. $ bin/hadoop fs -copyFromLocal mylib.jar /myapp/mylib.jar
  45082. $ bin/hadoop fs -copyFromLocal mytar.tar /myapp/mytar.tar
  45083. $ bin/hadoop fs -copyFromLocal mytgz.tgz /myapp/mytgz.tgz
  45084. $ bin/hadoop fs -copyFromLocal mytargz.tar.gz /myapp/mytargz.tar.gz
  45085. 2. Setup the application's <code>JobConf</code>:
  45086. JobConf job = new JobConf();
  45087. DistributedCache.addCacheFile(new URI("/myapp/lookup.dat#lookup.dat"),
  45088. job);
  45089. DistributedCache.addCacheArchive(new URI("/myapp/map.zip", job);
  45090. DistributedCache.addFileToClassPath(new Path("/myapp/mylib.jar"), job);
  45091. DistributedCache.addCacheArchive(new URI("/myapp/mytar.tar", job);
  45092. DistributedCache.addCacheArchive(new URI("/myapp/mytgz.tgz", job);
  45093. DistributedCache.addCacheArchive(new URI("/myapp/mytargz.tar.gz", job);
  45094. 3. Use the cached files in the {@link org.apache.hadoop.mapred.Mapper}
  45095. or {@link org.apache.hadoop.mapred.Reducer}:
  45096. public static class MapClass extends MapReduceBase
  45097. implements Mapper&lt;K, V, K, V&gt; {
  45098. private Path[] localArchives;
  45099. private Path[] localFiles;
  45100. public void configure(JobConf job) {
  45101. // Get the cached archives/files
  45102. localArchives = DistributedCache.getLocalCacheArchives(job);
  45103. localFiles = DistributedCache.getLocalCacheFiles(job);
  45104. }
  45105. public void map(K key, V value,
  45106. OutputCollector&lt;K, V&gt; output, Reporter reporter)
  45107. throws IOException {
  45108. // Use data from the cached archives/files here
  45109. // ...
  45110. // ...
  45111. output.collect(k, v);
  45112. }
  45113. }
  45114. </pre></blockquote></p>
  45115. It is also very common to use the DistributedCache by using
  45116. {@link org.apache.hadoop.util.GenericOptionsParser}.
  45117. This class includes methods that should be used by users
  45118. (specifically those mentioned in the example above, as well
  45119. as {@link DistributedCache#addArchiveToClassPath(Path, Configuration)}),
  45120. as well as methods intended for use by the MapReduce framework
  45121. (e.g., {@link org.apache.hadoop.mapred.JobClient}). For implementation
  45122. details, see {@link TrackerDistributedCacheManager} and
  45123. {@link TaskDistributedCacheManager}.
  45124. @see TrackerDistributedCacheManager
  45125. @see TaskDistributedCacheManager
  45126. @see org.apache.hadoop.mapred.JobConf
  45127. @see org.apache.hadoop.mapred.JobClient]]>
  45128. </doc>
  45129. </class>
  45130. <!-- end class org.apache.hadoop.filecache.DistributedCache -->
  45131. <!-- start class org.apache.hadoop.filecache.TaskDistributedCacheManager -->
  45132. <class name="TaskDistributedCacheManager" extends="java.lang.Object"
  45133. abstract="false"
  45134. static="false" final="false" visibility="public"
  45135. deprecated="not deprecated">
  45136. <method name="setupCache"
  45137. abstract="false" native="false" synchronized="false"
  45138. static="false" final="false" visibility="public"
  45139. deprecated="not deprecated">
  45140. <param name="taskConf" type="org.apache.hadoop.conf.Configuration"/>
  45141. <param name="publicCacheSubdir" type="java.lang.String"/>
  45142. <param name="privateCacheSubdir" type="java.lang.String"/>
  45143. <exception name="IOException" type="java.io.IOException"/>
  45144. <doc>
  45145. <![CDATA[Retrieve public distributed cache files into the local cache and updates
  45146. the task configuration (which has been passed in via the constructor).
  45147. The private distributed cache is just looked at and the paths where the
  45148. files/archives should go to is decided here. The actual localization is
  45149. done by {@link JobLocalizer}.
  45150. It is the caller's responsibility to re-write the task configuration XML
  45151. file, if necessary.]]>
  45152. </doc>
  45153. </method>
  45154. <method name="getClassPaths" return="java.util.List"
  45155. abstract="false" native="false" synchronized="false"
  45156. static="false" final="false" visibility="public"
  45157. deprecated="not deprecated">
  45158. <exception name="IOException" type="java.io.IOException"/>
  45159. <doc>
  45160. <![CDATA[Retrieves class paths (as local references) to add.
  45161. Should be called after setup().]]>
  45162. </doc>
  45163. </method>
  45164. <method name="release"
  45165. abstract="false" native="false" synchronized="false"
  45166. static="false" final="false" visibility="public"
  45167. deprecated="not deprecated">
  45168. <exception name="IOException" type="java.io.IOException"/>
  45169. <doc>
  45170. <![CDATA[Releases the cached files/archives, so that space
  45171. can be reclaimed by the {@link TrackerDistributedCacheManager}.]]>
  45172. </doc>
  45173. </method>
  45174. <method name="setSizes"
  45175. abstract="false" native="false" synchronized="false"
  45176. static="false" final="false" visibility="public"
  45177. deprecated="not deprecated">
  45178. <param name="sizes" type="long[]"/>
  45179. <exception name="IOException" type="java.io.IOException"/>
  45180. </method>
  45181. <method name="makeClassLoader" return="java.lang.ClassLoader"
  45182. abstract="false" native="false" synchronized="false"
  45183. static="false" final="false" visibility="public"
  45184. deprecated="not deprecated">
  45185. <param name="parent" type="java.lang.ClassLoader"/>
  45186. <exception name="MalformedURLException" type="java.net.MalformedURLException"/>
  45187. <doc>
  45188. <![CDATA[Creates a class loader that includes the designated
  45189. files and archives.]]>
  45190. </doc>
  45191. </method>
  45192. <doc>
  45193. <![CDATA[Helper class of {@link TrackerDistributedCacheManager} that represents
  45194. the cached files of a single job.
  45195. <b>This class is internal to Hadoop, and should not be treated as a public
  45196. interface.</b>]]>
  45197. </doc>
  45198. </class>
  45199. <!-- end class org.apache.hadoop.filecache.TaskDistributedCacheManager -->
  45200. <!-- start class org.apache.hadoop.filecache.TrackerDistributedCacheManager -->
  45201. <class name="TrackerDistributedCacheManager" extends="java.lang.Object"
  45202. abstract="false"
  45203. static="false" final="false" visibility="public"
  45204. deprecated="not deprecated">
  45205. <constructor name="TrackerDistributedCacheManager" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.TaskController"
  45206. static="false" final="false" visibility="public"
  45207. deprecated="not deprecated">
  45208. <exception name="IOException" type="java.io.IOException"/>
  45209. </constructor>
  45210. <method name="downloadCacheObject" return="long"
  45211. abstract="false" native="false" synchronized="false"
  45212. static="true" final="false" visibility="public"
  45213. deprecated="not deprecated">
  45214. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  45215. <param name="source" type="java.net.URI"/>
  45216. <param name="destination" type="org.apache.hadoop.fs.Path"/>
  45217. <param name="desiredTimestamp" type="long"/>
  45218. <param name="isArchive" type="boolean"/>
  45219. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  45220. <exception name="IOException" type="java.io.IOException"/>
  45221. <doc>
  45222. <![CDATA[Download a given path to the local file system.
  45223. @param conf the job's configuration
  45224. @param source the source to copy from
  45225. @param destination where to copy the file. must be local fs
  45226. @param desiredTimestamp the required modification timestamp of the source
  45227. @param isArchive is this an archive that should be expanded
  45228. @param permission the desired permissions of the file.
  45229. @return for archives, the number of bytes in the unpacked directory
  45230. @throws IOException]]>
  45231. </doc>
  45232. </method>
  45233. <method name="createAllSymlink"
  45234. abstract="false" native="false" synchronized="false"
  45235. static="true" final="false" visibility="public"
  45236. deprecated="not deprecated">
  45237. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  45238. <param name="jobCacheDir" type="java.io.File"/>
  45239. <param name="workDir" type="java.io.File"/>
  45240. <exception name="IOException" type="java.io.IOException"/>
  45241. <doc>
  45242. <![CDATA[This method create symlinks for all files in a given dir in another
  45243. directory.
  45244. Should not be used outside of DistributedCache code.
  45245. @param conf the configuration
  45246. @param jobCacheDir the target directory for creating symlinks
  45247. @param workDir the directory in which the symlinks are created
  45248. @throws IOException]]>
  45249. </doc>
  45250. </method>
  45251. <method name="purgeCache"
  45252. abstract="false" native="false" synchronized="false"
  45253. static="false" final="false" visibility="public"
  45254. deprecated="not deprecated">
  45255. <doc>
  45256. <![CDATA[Clear the entire contents of the cache and delete the backing files. This
  45257. should only be used when the server is reinitializing, because the users
  45258. are going to lose their files.]]>
  45259. </doc>
  45260. </method>
  45261. <method name="newTaskDistributedCacheManager" return="org.apache.hadoop.filecache.TaskDistributedCacheManager"
  45262. abstract="false" native="false" synchronized="false"
  45263. static="false" final="false" visibility="public"
  45264. deprecated="not deprecated">
  45265. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  45266. <param name="taskConf" type="org.apache.hadoop.conf.Configuration"/>
  45267. <exception name="IOException" type="java.io.IOException"/>
  45268. </method>
  45269. <method name="setArchiveSizes"
  45270. abstract="false" native="false" synchronized="false"
  45271. static="false" final="false" visibility="public"
  45272. deprecated="not deprecated">
  45273. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  45274. <param name="sizes" type="long[]"/>
  45275. <exception name="IOException" type="java.io.IOException"/>
  45276. <doc>
  45277. <![CDATA[Set the sizes for any archives, files, or directories in the private
  45278. distributed cache.]]>
  45279. </doc>
  45280. </method>
  45281. <method name="removeTaskDistributedCacheManager"
  45282. abstract="false" native="false" synchronized="false"
  45283. static="false" final="false" visibility="public"
  45284. deprecated="not deprecated">
  45285. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  45286. </method>
  45287. <method name="getTaskDistributedCacheManager" return="org.apache.hadoop.filecache.TaskDistributedCacheManager"
  45288. abstract="false" native="false" synchronized="false"
  45289. static="false" final="false" visibility="protected"
  45290. deprecated="not deprecated">
  45291. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  45292. </method>
  45293. <method name="determineTimestampsAndCacheVisibilities"
  45294. abstract="false" native="false" synchronized="false"
  45295. static="true" final="false" visibility="public"
  45296. deprecated="not deprecated">
  45297. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  45298. <exception name="IOException" type="java.io.IOException"/>
  45299. <doc>
  45300. <![CDATA[Determines timestamps of files to be cached, and stores those
  45301. in the configuration. Determines the visibilities of the distributed cache
  45302. files and archives. The visibility of a cache path is "public" if the leaf
  45303. component has READ permissions for others, and the parent subdirs have
  45304. EXECUTE permissions for others.
  45305. This is an internal method!
  45306. @param job
  45307. @throws IOException]]>
  45308. </doc>
  45309. </method>
  45310. <method name="getFileVisibilities" return="boolean[]"
  45311. abstract="false" native="false" synchronized="false"
  45312. static="true" final="false" visibility="public"
  45313. deprecated="not deprecated">
  45314. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  45315. <doc>
  45316. <![CDATA[Get the booleans on whether the files are public or not. Used by
  45317. internal DistributedCache and MapReduce code.
  45318. @param conf The configuration which stored the timestamps
  45319. @return array of booleans
  45320. @throws IOException]]>
  45321. </doc>
  45322. </method>
  45323. <method name="getArchiveVisibilities" return="boolean[]"
  45324. abstract="false" native="false" synchronized="false"
  45325. static="true" final="false" visibility="public"
  45326. deprecated="not deprecated">
  45327. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  45328. <doc>
  45329. <![CDATA[Get the booleans on whether the archives are public or not. Used by
  45330. internal DistributedCache and MapReduce code.
  45331. @param conf The configuration which stored the timestamps
  45332. @return array of booleans]]>
  45333. </doc>
  45334. </method>
  45335. <method name="getDelegationTokens"
  45336. abstract="false" native="false" synchronized="false"
  45337. static="true" final="false" visibility="public"
  45338. deprecated="not deprecated">
  45339. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  45340. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  45341. <exception name="IOException" type="java.io.IOException"/>
  45342. <doc>
  45343. <![CDATA[For each archive or cache file - get the corresponding delegation token
  45344. @param job
  45345. @param credentials
  45346. @throws IOException]]>
  45347. </doc>
  45348. </method>
  45349. <method name="validate"
  45350. abstract="false" native="false" synchronized="false"
  45351. static="true" final="false" visibility="public"
  45352. deprecated="not deprecated">
  45353. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  45354. <exception name="InvalidJobConfException" type="org.apache.hadoop.mapred.InvalidJobConfException"/>
  45355. <doc>
  45356. <![CDATA[This is part of the framework API. It's called within the job
  45357. submission code only, not by users. In the non-error case it has
  45358. no side effects and returns normally. If there's a URI in both
  45359. mapred.cache.files and mapred.cache.archives, it throws its
  45360. exception.
  45361. @param conf a {@link Configuration} to be cheked for duplication
  45362. in cached URIs
  45363. @throws InvalidJobConfException]]>
  45364. </doc>
  45365. </method>
  45366. <method name="startCleanupThread"
  45367. abstract="false" native="false" synchronized="false"
  45368. static="false" final="false" visibility="public"
  45369. deprecated="not deprecated">
  45370. <doc>
  45371. <![CDATA[Start the background thread]]>
  45372. </doc>
  45373. </method>
  45374. <method name="stopCleanupThread"
  45375. abstract="false" native="false" synchronized="false"
  45376. static="false" final="false" visibility="public"
  45377. deprecated="not deprecated">
  45378. <doc>
  45379. <![CDATA[Stop the background thread]]>
  45380. </doc>
  45381. </method>
  45382. <field name="baseDirManager" type="org.apache.hadoop.filecache.TrackerDistributedCacheManager.BaseDirManager"
  45383. transient="false" volatile="false"
  45384. static="false" final="false" visibility="protected"
  45385. deprecated="not deprecated">
  45386. </field>
  45387. <field name="cleanupThread" type="org.apache.hadoop.filecache.TrackerDistributedCacheManager.CleanupThread"
  45388. transient="false" volatile="false"
  45389. static="false" final="false" visibility="protected"
  45390. deprecated="not deprecated">
  45391. </field>
  45392. <doc>
  45393. <![CDATA[Manages a single machine's instance of a cross-job
  45394. cache. This class would typically be instantiated
  45395. by a TaskTracker (or something that emulates it,
  45396. like LocalJobRunner).
  45397. <b>This class is internal to Hadoop, and should not be treated as a public
  45398. interface.</b>]]>
  45399. </doc>
  45400. </class>
  45401. <!-- end class org.apache.hadoop.filecache.TrackerDistributedCacheManager -->
  45402. <!-- start class org.apache.hadoop.filecache.TrackerDistributedCacheManager.BaseDirManager -->
  45403. <class name="TrackerDistributedCacheManager.BaseDirManager" extends="java.lang.Object"
  45404. abstract="false"
  45405. static="false" final="false" visibility="protected"
  45406. deprecated="not deprecated">
  45407. <constructor name="TrackerDistributedCacheManager.BaseDirManager"
  45408. static="false" final="false" visibility="protected"
  45409. deprecated="not deprecated">
  45410. </constructor>
  45411. <method name="deleteCacheInfoUpdate"
  45412. abstract="false" native="false" synchronized="false"
  45413. static="false" final="false" visibility="public"
  45414. deprecated="not deprecated">
  45415. <param name="cacheStatus" type="org.apache.hadoop.filecache.TrackerDistributedCacheManager.CacheStatus"/>
  45416. <doc>
  45417. <![CDATA[Decrement the size and sub directory count of the cache from baseDirSize
  45418. and baseDirNumberSubDir. Have to lock lcacheStatus before calling this.
  45419. @param cacheStatus cache status of the cache is deleted]]>
  45420. </doc>
  45421. </method>
  45422. <method name="addCacheInfoUpdate"
  45423. abstract="false" native="false" synchronized="false"
  45424. static="false" final="false" visibility="public"
  45425. deprecated="not deprecated">
  45426. <param name="cacheStatus" type="org.apache.hadoop.filecache.TrackerDistributedCacheManager.CacheStatus"/>
  45427. <doc>
  45428. <![CDATA[Update the maps baseDirSize and baseDirNumberSubDir when adding cache.
  45429. Increase the size and sub directory count of the cache from baseDirSize
  45430. and baseDirNumberSubDir. Have to lock lcacheStatus before calling this.
  45431. @param cacheStatus cache status of the cache is added]]>
  45432. </doc>
  45433. </method>
  45434. <doc>
  45435. <![CDATA[This class holds properties of each base directories and is responsible
  45436. for clean up unused cache files in base directories.]]>
  45437. </doc>
  45438. </class>
  45439. <!-- end class org.apache.hadoop.filecache.TrackerDistributedCacheManager.BaseDirManager -->
  45440. <!-- start class org.apache.hadoop.filecache.TrackerDistributedCacheManager.CleanupThread -->
  45441. <class name="TrackerDistributedCacheManager.CleanupThread" extends="java.lang.Thread"
  45442. abstract="false"
  45443. static="false" final="false" visibility="protected"
  45444. deprecated="not deprecated">
  45445. <constructor name="TrackerDistributedCacheManager.CleanupThread" type="org.apache.hadoop.conf.Configuration"
  45446. static="false" final="false" visibility="public"
  45447. deprecated="not deprecated">
  45448. </constructor>
  45449. <method name="stopRunning"
  45450. abstract="false" native="false" synchronized="false"
  45451. static="false" final="false" visibility="public"
  45452. deprecated="not deprecated">
  45453. </method>
  45454. <method name="run"
  45455. abstract="false" native="false" synchronized="false"
  45456. static="false" final="false" visibility="public"
  45457. deprecated="not deprecated">
  45458. </method>
  45459. <method name="exitTaskTracker"
  45460. abstract="false" native="false" synchronized="false"
  45461. static="false" final="false" visibility="protected"
  45462. deprecated="not deprecated">
  45463. <param name="t" type="java.lang.Throwable"/>
  45464. <doc>
  45465. <![CDATA[Exit the task tracker because of a fatal error.]]>
  45466. </doc>
  45467. </method>
  45468. <doc>
  45469. <![CDATA[A thread to check and cleanup the unused files periodically]]>
  45470. </doc>
  45471. </class>
  45472. <!-- end class org.apache.hadoop.filecache.TrackerDistributedCacheManager.CleanupThread -->
  45473. </package>
  45474. <package name="org.apache.hadoop.mapred">
  45475. <!-- start interface org.apache.hadoop.mapred.AdminOperationsProtocol -->
  45476. <interface name="AdminOperationsProtocol" abstract="true"
  45477. static="false" final="false" visibility="public"
  45478. deprecated="not deprecated">
  45479. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  45480. <method name="refreshQueues"
  45481. abstract="false" native="false" synchronized="false"
  45482. static="false" final="false" visibility="public"
  45483. deprecated="not deprecated">
  45484. <exception name="IOException" type="java.io.IOException"/>
  45485. <doc>
  45486. <![CDATA[Refresh the queue acls in use currently.
  45487. Refresh the queues used by the jobtracker and scheduler.
  45488. Access control lists and queue states are refreshed.]]>
  45489. </doc>
  45490. </method>
  45491. <method name="refreshNodes"
  45492. abstract="false" native="false" synchronized="false"
  45493. static="false" final="false" visibility="public"
  45494. deprecated="not deprecated">
  45495. <exception name="IOException" type="java.io.IOException"/>
  45496. <doc>
  45497. <![CDATA[Refresh the node list at the {@link JobTracker}]]>
  45498. </doc>
  45499. </method>
  45500. <method name="setSafeMode" return="boolean"
  45501. abstract="false" native="false" synchronized="false"
  45502. static="false" final="false" visibility="public"
  45503. deprecated="not deprecated">
  45504. <param name="safeModeAction" type="org.apache.hadoop.mapred.JobTracker.SafeModeAction"/>
  45505. <exception name="IOException" type="java.io.IOException"/>
  45506. <doc>
  45507. <![CDATA[Set safe mode for the JobTracker.
  45508. @param safeModeAction safe mode action
  45509. @return current safemode
  45510. @throws IOException]]>
  45511. </doc>
  45512. </method>
  45513. <field name="versionID" type="long"
  45514. transient="false" volatile="false"
  45515. static="true" final="true" visibility="public"
  45516. deprecated="not deprecated">
  45517. <doc>
  45518. <![CDATA[Version 1: Initial version. Added refreshQueueAcls.
  45519. Version 2: Added node refresh facility
  45520. Version 3: Changed refreshQueueAcls to refreshQueues]]>
  45521. </doc>
  45522. </field>
  45523. <doc>
  45524. <![CDATA[Protocol for admin operations. This is a framework-public interface and is
  45525. NOT_TO_BE_USED_BY_USERS_DIRECTLY.]]>
  45526. </doc>
  45527. </interface>
  45528. <!-- end interface org.apache.hadoop.mapred.AdminOperationsProtocol -->
  45529. <!-- start class org.apache.hadoop.mapred.CleanupQueue -->
  45530. <class name="CleanupQueue" extends="java.lang.Object"
  45531. abstract="false"
  45532. static="false" final="false" visibility="public"
  45533. deprecated="not deprecated">
  45534. <constructor name="CleanupQueue"
  45535. static="false" final="false" visibility="protected"
  45536. deprecated="not deprecated">
  45537. <doc>
  45538. <![CDATA[Create a singleton path-clean-up queue. It can be used to delete
  45539. paths(directories/files) in a separate thread. This constructor creates a
  45540. clean-up thread and also starts it as a daemon. Callers can instantiate one
  45541. CleanupQueue per JVM and can use it for deleting paths. Use
  45542. {@link CleanupQueue#addToQueue(PathDeletionContext...)} to add paths for
  45543. deletion.]]>
  45544. </doc>
  45545. </constructor>
  45546. <method name="getInstance" return="org.apache.hadoop.mapred.CleanupQueue"
  45547. abstract="false" native="false" synchronized="false"
  45548. static="true" final="false" visibility="public"
  45549. deprecated="not deprecated">
  45550. </method>
  45551. <method name="addToQueue"
  45552. abstract="false" native="false" synchronized="false"
  45553. static="false" final="false" visibility="public"
  45554. deprecated="not deprecated">
  45555. <param name="contexts" type="org.apache.hadoop.mapred.CleanupQueue.PathDeletionContext[]"/>
  45556. <doc>
  45557. <![CDATA[Adds the paths to the queue of paths to be deleted by cleanupThread.]]>
  45558. </doc>
  45559. </method>
  45560. <method name="isQueueEmpty" return="boolean"
  45561. abstract="false" native="false" synchronized="false"
  45562. static="false" final="false" visibility="protected"
  45563. deprecated="not deprecated">
  45564. </method>
  45565. <field name="LOG" type="org.apache.commons.logging.Log"
  45566. transient="false" volatile="false"
  45567. static="true" final="true" visibility="public"
  45568. deprecated="not deprecated">
  45569. </field>
  45570. </class>
  45571. <!-- end class org.apache.hadoop.mapred.CleanupQueue -->
  45572. <!-- start class org.apache.hadoop.mapred.ClusterStatus -->
  45573. <class name="ClusterStatus" extends="java.lang.Object"
  45574. abstract="false"
  45575. static="false" final="false" visibility="public"
  45576. deprecated="not deprecated">
  45577. <implements name="org.apache.hadoop.io.Writable"/>
  45578. <method name="getTaskTrackers" return="int"
  45579. abstract="false" native="false" synchronized="false"
  45580. static="false" final="false" visibility="public"
  45581. deprecated="not deprecated">
  45582. <doc>
  45583. <![CDATA[Get the number of active task trackers in the cluster. Includes
  45584. graylisted but not blacklisted trackers.
  45585. @return the number of active task trackers in the cluster.]]>
  45586. </doc>
  45587. </method>
  45588. <method name="getActiveTrackerNames" return="java.util.Collection"
  45589. abstract="false" native="false" synchronized="false"
  45590. static="false" final="false" visibility="public"
  45591. deprecated="not deprecated">
  45592. <doc>
  45593. <![CDATA[Get the names of active task trackers in the cluster. Includes
  45594. graylisted but not blacklisted trackers.
  45595. @return the active task trackers in the cluster.]]>
  45596. </doc>
  45597. </method>
  45598. <method name="getBlacklistedTrackerNames" return="java.util.Collection"
  45599. abstract="false" native="false" synchronized="false"
  45600. static="false" final="false" visibility="public"
  45601. deprecated="not deprecated">
  45602. <doc>
  45603. <![CDATA[Get the names of blacklisted task trackers in the cluster.
  45604. @return the blacklisted task trackers in the cluster.]]>
  45605. </doc>
  45606. </method>
  45607. <method name="getBlacklistedTrackers" return="int"
  45608. abstract="false" native="false" synchronized="false"
  45609. static="false" final="false" visibility="public"
  45610. deprecated="not deprecated">
  45611. <doc>
  45612. <![CDATA[Get the number of blacklisted task trackers in the cluster.
  45613. @return the number of blacklisted task trackers in the cluster.]]>
  45614. </doc>
  45615. </method>
  45616. <method name="getGraylistedTrackerNames" return="java.util.Collection"
  45617. abstract="false" native="false" synchronized="false"
  45618. static="false" final="false" visibility="public"
  45619. deprecated="not deprecated">
  45620. <doc>
  45621. <![CDATA[Get the names of graylisted task trackers in the cluster.
  45622. @return the graylisted task trackers in the cluster.]]>
  45623. </doc>
  45624. </method>
  45625. <method name="getGraylistedTrackers" return="int"
  45626. abstract="false" native="false" synchronized="false"
  45627. static="false" final="false" visibility="public"
  45628. deprecated="not deprecated">
  45629. <doc>
  45630. <![CDATA[Get the number of graylisted task trackers in the cluster.
  45631. @return the number of graylisted task trackers in the cluster.]]>
  45632. </doc>
  45633. </method>
  45634. <method name="getNumExcludedNodes" return="int"
  45635. abstract="false" native="false" synchronized="false"
  45636. static="false" final="false" visibility="public"
  45637. deprecated="not deprecated">
  45638. <doc>
  45639. <![CDATA[Get the number of excluded hosts in the cluster.
  45640. @return the number of excluded hosts in the cluster.]]>
  45641. </doc>
  45642. </method>
  45643. <method name="getTTExpiryInterval" return="long"
  45644. abstract="false" native="false" synchronized="false"
  45645. static="false" final="false" visibility="public"
  45646. deprecated="not deprecated">
  45647. <doc>
  45648. <![CDATA[Get the tasktracker expiry interval for the cluster
  45649. @return the expiry interval in msec]]>
  45650. </doc>
  45651. </method>
  45652. <method name="getMapTasks" return="int"
  45653. abstract="false" native="false" synchronized="false"
  45654. static="false" final="false" visibility="public"
  45655. deprecated="not deprecated">
  45656. <doc>
  45657. <![CDATA[Get the number of currently running map tasks in the cluster.
  45658. @return the number of currently running map tasks in the cluster.]]>
  45659. </doc>
  45660. </method>
  45661. <method name="getReduceTasks" return="int"
  45662. abstract="false" native="false" synchronized="false"
  45663. static="false" final="false" visibility="public"
  45664. deprecated="not deprecated">
  45665. <doc>
  45666. <![CDATA[Get the number of currently running reduce tasks in the cluster.
  45667. @return the number of currently running reduce tasks in the cluster.]]>
  45668. </doc>
  45669. </method>
  45670. <method name="getMaxMapTasks" return="int"
  45671. abstract="false" native="false" synchronized="false"
  45672. static="false" final="false" visibility="public"
  45673. deprecated="not deprecated">
  45674. <doc>
  45675. <![CDATA[Get the maximum capacity for running map tasks in the cluster.
  45676. @return the maximum capacity for running map tasks in the cluster.]]>
  45677. </doc>
  45678. </method>
  45679. <method name="getMaxReduceTasks" return="int"
  45680. abstract="false" native="false" synchronized="false"
  45681. static="false" final="false" visibility="public"
  45682. deprecated="not deprecated">
  45683. <doc>
  45684. <![CDATA[Get the maximum capacity for running reduce tasks in the cluster.
  45685. @return the maximum capacity for running reduce tasks in the cluster.]]>
  45686. </doc>
  45687. </method>
  45688. <method name="getJobTrackerState" return="org.apache.hadoop.mapred.JobTracker.State"
  45689. abstract="false" native="false" synchronized="false"
  45690. static="false" final="false" visibility="public"
  45691. deprecated="not deprecated">
  45692. <doc>
  45693. <![CDATA[Get the current state of the <code>JobTracker</code>,
  45694. as {@link JobTracker.State}
  45695. @return the current state of the <code>JobTracker</code>.]]>
  45696. </doc>
  45697. </method>
  45698. <method name="getUsedMemory" return="long"
  45699. abstract="false" native="false" synchronized="false"
  45700. static="false" final="false" visibility="public"
  45701. deprecated="not deprecated">
  45702. <doc>
  45703. <![CDATA[Get the total heap memory used by the <code>JobTracker</code>
  45704. @return the size of heap memory used by the <code>JobTracker</code>]]>
  45705. </doc>
  45706. </method>
  45707. <method name="getMaxMemory" return="long"
  45708. abstract="false" native="false" synchronized="false"
  45709. static="false" final="false" visibility="public"
  45710. deprecated="not deprecated">
  45711. <doc>
  45712. <![CDATA[Get the maximum configured heap memory that can be used by the <code>JobTracker</code>
  45713. @return the configured size of max heap memory that can be used by the <code>JobTracker</code>]]>
  45714. </doc>
  45715. </method>
  45716. <method name="write"
  45717. abstract="false" native="false" synchronized="false"
  45718. static="false" final="false" visibility="public"
  45719. deprecated="not deprecated">
  45720. <param name="out" type="java.io.DataOutput"/>
  45721. <exception name="IOException" type="java.io.IOException"/>
  45722. </method>
  45723. <method name="readFields"
  45724. abstract="false" native="false" synchronized="false"
  45725. static="false" final="false" visibility="public"
  45726. deprecated="not deprecated">
  45727. <param name="in" type="java.io.DataInput"/>
  45728. <exception name="IOException" type="java.io.IOException"/>
  45729. </method>
  45730. <field name="UNINITIALIZED_MEMORY_VALUE" type="long"
  45731. transient="false" volatile="false"
  45732. static="true" final="true" visibility="public"
  45733. deprecated="not deprecated">
  45734. </field>
  45735. <doc>
  45736. <![CDATA[Status information on the current state of the Map-Reduce cluster.
  45737. <p><code>ClusterStatus</code> provides clients with information such as:
  45738. <ol>
  45739. <li>
  45740. Size of the cluster.
  45741. </li>
  45742. <li>
  45743. Name of the trackers.
  45744. </li>
  45745. <li>
  45746. Task capacity of the cluster.
  45747. </li>
  45748. <li>
  45749. The number of currently running map & reduce tasks.
  45750. </li>
  45751. <li>
  45752. State of the <code>JobTracker</code>.
  45753. </li>
  45754. </ol></p>
  45755. <p>Clients can query for the latest <code>ClusterStatus</code>, via
  45756. {@link JobClient#getClusterStatus()}.</p>
  45757. @see JobClient]]>
  45758. </doc>
  45759. </class>
  45760. <!-- end class org.apache.hadoop.mapred.ClusterStatus -->
  45761. <!-- start class org.apache.hadoop.mapred.Counters -->
  45762. <class name="Counters" extends="java.lang.Object"
  45763. abstract="false"
  45764. static="false" final="false" visibility="public"
  45765. deprecated="not deprecated">
  45766. <implements name="org.apache.hadoop.io.Writable"/>
  45767. <implements name="java.lang.Iterable"/>
  45768. <constructor name="Counters"
  45769. static="false" final="false" visibility="public"
  45770. deprecated="not deprecated">
  45771. </constructor>
  45772. <method name="getGroupNames" return="java.util.Collection"
  45773. abstract="false" native="false" synchronized="true"
  45774. static="false" final="false" visibility="public"
  45775. deprecated="not deprecated">
  45776. <doc>
  45777. <![CDATA[Returns the names of all counter classes.
  45778. @return Set of counter names.]]>
  45779. </doc>
  45780. </method>
  45781. <method name="iterator" return="java.util.Iterator"
  45782. abstract="false" native="false" synchronized="true"
  45783. static="false" final="false" visibility="public"
  45784. deprecated="not deprecated">
  45785. </method>
  45786. <method name="getGroup" return="org.apache.hadoop.mapred.Counters.Group"
  45787. abstract="false" native="false" synchronized="true"
  45788. static="false" final="false" visibility="public"
  45789. deprecated="not deprecated">
  45790. <param name="groupName" type="java.lang.String"/>
  45791. <doc>
  45792. <![CDATA[Returns the named counter group, or an empty group if there is none
  45793. with the specified name.]]>
  45794. </doc>
  45795. </method>
  45796. <method name="findCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  45797. abstract="false" native="false" synchronized="true"
  45798. static="false" final="false" visibility="public"
  45799. deprecated="not deprecated">
  45800. <param name="key" type="java.lang.Enum"/>
  45801. <doc>
  45802. <![CDATA[Find the counter for the given enum. The same enum will always return the
  45803. same counter.
  45804. @param key the counter key
  45805. @return the matching counter object]]>
  45806. </doc>
  45807. </method>
  45808. <method name="findCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  45809. abstract="false" native="false" synchronized="true"
  45810. static="false" final="false" visibility="public"
  45811. deprecated="not deprecated">
  45812. <param name="group" type="java.lang.String"/>
  45813. <param name="name" type="java.lang.String"/>
  45814. <doc>
  45815. <![CDATA[Find a counter given the group and the name.
  45816. @param group the name of the group
  45817. @param name the internal name of the counter
  45818. @return the counter for that name]]>
  45819. </doc>
  45820. </method>
  45821. <method name="findCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  45822. abstract="false" native="false" synchronized="true"
  45823. static="false" final="false" visibility="public"
  45824. deprecated="deprecated, no comment">
  45825. <param name="group" type="java.lang.String"/>
  45826. <param name="id" type="int"/>
  45827. <param name="name" type="java.lang.String"/>
  45828. <doc>
  45829. <![CDATA[Find a counter by using strings
  45830. @param group the name of the group
  45831. @param id the id of the counter within the group (0 to N-1)
  45832. @param name the internal name of the counter
  45833. @return the counter for that name
  45834. @deprecated]]>
  45835. </doc>
  45836. </method>
  45837. <method name="incrCounter"
  45838. abstract="false" native="false" synchronized="true"
  45839. static="false" final="false" visibility="public"
  45840. deprecated="not deprecated">
  45841. <param name="key" type="java.lang.Enum"/>
  45842. <param name="amount" type="long"/>
  45843. <doc>
  45844. <![CDATA[Increments the specified counter by the specified amount, creating it if
  45845. it didn't already exist.
  45846. @param key identifies a counter
  45847. @param amount amount by which counter is to be incremented]]>
  45848. </doc>
  45849. </method>
  45850. <method name="incrCounter"
  45851. abstract="false" native="false" synchronized="true"
  45852. static="false" final="false" visibility="public"
  45853. deprecated="not deprecated">
  45854. <param name="group" type="java.lang.String"/>
  45855. <param name="counter" type="java.lang.String"/>
  45856. <param name="amount" type="long"/>
  45857. <doc>
  45858. <![CDATA[Increments the specified counter by the specified amount, creating it if
  45859. it didn't already exist.
  45860. @param group the name of the group
  45861. @param counter the internal name of the counter
  45862. @param amount amount by which counter is to be incremented]]>
  45863. </doc>
  45864. </method>
  45865. <method name="getCounter" return="long"
  45866. abstract="false" native="false" synchronized="true"
  45867. static="false" final="false" visibility="public"
  45868. deprecated="not deprecated">
  45869. <param name="key" type="java.lang.Enum"/>
  45870. <doc>
  45871. <![CDATA[Returns current value of the specified counter, or 0 if the counter
  45872. does not exist.]]>
  45873. </doc>
  45874. </method>
  45875. <method name="incrAllCounters"
  45876. abstract="false" native="false" synchronized="true"
  45877. static="false" final="false" visibility="public"
  45878. deprecated="not deprecated">
  45879. <param name="other" type="org.apache.hadoop.mapred.Counters"/>
  45880. <doc>
  45881. <![CDATA[Increments multiple counters by their amounts in another Counters
  45882. instance.
  45883. @param other the other Counters instance]]>
  45884. </doc>
  45885. </method>
  45886. <method name="sum" return="org.apache.hadoop.mapred.Counters"
  45887. abstract="false" native="false" synchronized="false"
  45888. static="true" final="false" visibility="public"
  45889. deprecated="not deprecated">
  45890. <param name="a" type="org.apache.hadoop.mapred.Counters"/>
  45891. <param name="b" type="org.apache.hadoop.mapred.Counters"/>
  45892. <doc>
  45893. <![CDATA[Convenience method for computing the sum of two sets of counters.]]>
  45894. </doc>
  45895. </method>
  45896. <method name="size" return="int"
  45897. abstract="false" native="false" synchronized="true"
  45898. static="false" final="false" visibility="public"
  45899. deprecated="not deprecated">
  45900. <doc>
  45901. <![CDATA[Returns the total number of counters, by summing the number of counters
  45902. in each group.]]>
  45903. </doc>
  45904. </method>
  45905. <method name="write"
  45906. abstract="false" native="false" synchronized="true"
  45907. static="false" final="false" visibility="public"
  45908. deprecated="not deprecated">
  45909. <param name="out" type="java.io.DataOutput"/>
  45910. <exception name="IOException" type="java.io.IOException"/>
  45911. <doc>
  45912. <![CDATA[Write the set of groups.
  45913. The external format is:
  45914. #groups (groupName group)*
  45915. i.e. the number of groups followed by 0 or more groups, where each
  45916. group is of the form:
  45917. groupDisplayName #counters (false | true counter)*
  45918. where each counter is of the form:
  45919. name (false | true displayName) value]]>
  45920. </doc>
  45921. </method>
  45922. <method name="readFields"
  45923. abstract="false" native="false" synchronized="true"
  45924. static="false" final="false" visibility="public"
  45925. deprecated="not deprecated">
  45926. <param name="in" type="java.io.DataInput"/>
  45927. <exception name="IOException" type="java.io.IOException"/>
  45928. <doc>
  45929. <![CDATA[Read a set of groups.]]>
  45930. </doc>
  45931. </method>
  45932. <method name="log"
  45933. abstract="false" native="false" synchronized="false"
  45934. static="false" final="false" visibility="public"
  45935. deprecated="not deprecated">
  45936. <param name="log" type="org.apache.commons.logging.Log"/>
  45937. <doc>
  45938. <![CDATA[Logs the current counter values.
  45939. @param log The log to use.]]>
  45940. </doc>
  45941. </method>
  45942. <method name="toString" return="java.lang.String"
  45943. abstract="false" native="false" synchronized="true"
  45944. static="false" final="false" visibility="public"
  45945. deprecated="not deprecated">
  45946. <doc>
  45947. <![CDATA[Return textual representation of the counter values.]]>
  45948. </doc>
  45949. </method>
  45950. <method name="makeCompactString" return="java.lang.String"
  45951. abstract="false" native="false" synchronized="true"
  45952. static="false" final="false" visibility="public"
  45953. deprecated="not deprecated">
  45954. <doc>
  45955. <![CDATA[Convert a counters object into a single line that is easy to parse.
  45956. @return the string with "name=value" for each counter and separated by ","]]>
  45957. </doc>
  45958. </method>
  45959. <method name="makeEscapedCompactString" return="java.lang.String"
  45960. abstract="false" native="false" synchronized="true"
  45961. static="false" final="false" visibility="public"
  45962. deprecated="not deprecated">
  45963. <doc>
  45964. <![CDATA[Represent the counter in a textual format that can be converted back to
  45965. its object form
  45966. @return the string in the following format
  45967. {(groupname)(group-displayname)[(countername)(displayname)(value)][][]}{}{}]]>
  45968. </doc>
  45969. </method>
  45970. <method name="fromEscapedCompactString" return="org.apache.hadoop.mapred.Counters"
  45971. abstract="false" native="false" synchronized="false"
  45972. static="true" final="false" visibility="public"
  45973. deprecated="not deprecated">
  45974. <param name="compactString" type="java.lang.String"/>
  45975. <exception name="ParseException" type="java.text.ParseException"/>
  45976. <doc>
  45977. <![CDATA[Convert a stringified counter representation into a counter object. Note
  45978. that the counter can be recovered if its stringified using
  45979. {@link #makeEscapedCompactString()}.
  45980. @return a Counter]]>
  45981. </doc>
  45982. </method>
  45983. <method name="hashCode" return="int"
  45984. abstract="false" native="false" synchronized="true"
  45985. static="false" final="false" visibility="public"
  45986. deprecated="not deprecated">
  45987. </method>
  45988. <method name="equals" return="boolean"
  45989. abstract="false" native="false" synchronized="true"
  45990. static="false" final="false" visibility="public"
  45991. deprecated="not deprecated">
  45992. <param name="obj" type="java.lang.Object"/>
  45993. </method>
  45994. <field name="MAX_COUNTER_LIMIT" type="int"
  45995. transient="false" volatile="false"
  45996. static="true" final="false" visibility="public"
  45997. deprecated="not deprecated">
  45998. <doc>
  45999. <![CDATA[limit on counters]]>
  46000. </doc>
  46001. </field>
  46002. <field name="MAX_GROUP_LIMIT" type="int"
  46003. transient="false" volatile="false"
  46004. static="true" final="true" visibility="public"
  46005. deprecated="not deprecated">
  46006. <doc>
  46007. <![CDATA[the max groups allowed]]>
  46008. </doc>
  46009. </field>
  46010. <doc>
  46011. <![CDATA[A set of named counters.
  46012. <p><code>Counters</code> represent global counters, defined either by the
  46013. Map-Reduce framework or applications. Each <code>Counter</code> can be of
  46014. any {@link Enum} type.</p>
  46015. <p><code>Counters</code> are bunched into {@link Group}s, each comprising of
  46016. counters from a particular <code>Enum</code> class.]]>
  46017. </doc>
  46018. </class>
  46019. <!-- end class org.apache.hadoop.mapred.Counters -->
  46020. <!-- start class org.apache.hadoop.mapred.Counters.Counter -->
  46021. <class name="Counters.Counter" extends="org.apache.hadoop.mapreduce.Counter"
  46022. abstract="false"
  46023. static="true" final="false" visibility="public"
  46024. deprecated="not deprecated">
  46025. <method name="setDisplayName"
  46026. abstract="false" native="false" synchronized="false"
  46027. static="false" final="false" visibility="public"
  46028. deprecated="not deprecated">
  46029. <param name="newName" type="java.lang.String"/>
  46030. </method>
  46031. <method name="makeEscapedCompactString" return="java.lang.String"
  46032. abstract="false" native="false" synchronized="true"
  46033. static="false" final="false" visibility="public"
  46034. deprecated="not deprecated">
  46035. <doc>
  46036. <![CDATA[Returns the compact stringified version of the counter in the format
  46037. [(actual-name)(display-name)(value)]]]>
  46038. </doc>
  46039. </method>
  46040. <method name="getCounter" return="long"
  46041. abstract="false" native="false" synchronized="true"
  46042. static="false" final="false" visibility="public"
  46043. deprecated="not deprecated">
  46044. <doc>
  46045. <![CDATA[What is the current value of this counter?
  46046. @return the current value]]>
  46047. </doc>
  46048. </method>
  46049. <doc>
  46050. <![CDATA[A counter record, comprising its name and value.]]>
  46051. </doc>
  46052. </class>
  46053. <!-- end class org.apache.hadoop.mapred.Counters.Counter -->
  46054. <!-- start class org.apache.hadoop.mapred.Counters.CountersExceededException -->
  46055. <class name="Counters.CountersExceededException" extends="java.lang.RuntimeException"
  46056. abstract="false"
  46057. static="true" final="false" visibility="public"
  46058. deprecated="not deprecated">
  46059. <constructor name="Counters.CountersExceededException" type="java.lang.String"
  46060. static="false" final="false" visibility="public"
  46061. deprecated="not deprecated">
  46062. </constructor>
  46063. <doc>
  46064. <![CDATA[Counter exception thrown when the number of counters exceed
  46065. the limit]]>
  46066. </doc>
  46067. </class>
  46068. <!-- end class org.apache.hadoop.mapred.Counters.CountersExceededException -->
  46069. <!-- start class org.apache.hadoop.mapred.Counters.Group -->
  46070. <class name="Counters.Group" extends="java.lang.Object"
  46071. abstract="false"
  46072. static="false" final="false" visibility="public"
  46073. deprecated="not deprecated">
  46074. <implements name="org.apache.hadoop.io.Writable"/>
  46075. <implements name="java.lang.Iterable"/>
  46076. <method name="getName" return="java.lang.String"
  46077. abstract="false" native="false" synchronized="false"
  46078. static="false" final="false" visibility="public"
  46079. deprecated="not deprecated">
  46080. <doc>
  46081. <![CDATA[Returns raw name of the group. This is the name of the enum class
  46082. for this group of counters.]]>
  46083. </doc>
  46084. </method>
  46085. <method name="getDisplayName" return="java.lang.String"
  46086. abstract="false" native="false" synchronized="false"
  46087. static="false" final="false" visibility="public"
  46088. deprecated="not deprecated">
  46089. <doc>
  46090. <![CDATA[Returns localized name of the group. This is the same as getName() by
  46091. default, but different if an appropriate ResourceBundle is found.]]>
  46092. </doc>
  46093. </method>
  46094. <method name="setDisplayName"
  46095. abstract="false" native="false" synchronized="false"
  46096. static="false" final="false" visibility="public"
  46097. deprecated="not deprecated">
  46098. <param name="displayName" type="java.lang.String"/>
  46099. <doc>
  46100. <![CDATA[Set the display name]]>
  46101. </doc>
  46102. </method>
  46103. <method name="makeEscapedCompactString" return="java.lang.String"
  46104. abstract="false" native="false" synchronized="false"
  46105. static="false" final="false" visibility="public"
  46106. deprecated="not deprecated">
  46107. <doc>
  46108. <![CDATA[Returns the compact stringified version of the group in the format
  46109. {(actual-name)(display-name)(value)[][][]} where [] are compact strings for the
  46110. counters within.]]>
  46111. </doc>
  46112. </method>
  46113. <method name="hashCode" return="int"
  46114. abstract="false" native="false" synchronized="false"
  46115. static="false" final="false" visibility="public"
  46116. deprecated="not deprecated">
  46117. </method>
  46118. <method name="equals" return="boolean"
  46119. abstract="false" native="false" synchronized="true"
  46120. static="false" final="false" visibility="public"
  46121. deprecated="not deprecated">
  46122. <param name="obj" type="java.lang.Object"/>
  46123. <doc>
  46124. <![CDATA[Checks for (content) equality of Groups]]>
  46125. </doc>
  46126. </method>
  46127. <method name="getCounter" return="long"
  46128. abstract="false" native="false" synchronized="true"
  46129. static="false" final="false" visibility="public"
  46130. deprecated="not deprecated">
  46131. <param name="counterName" type="java.lang.String"/>
  46132. <doc>
  46133. <![CDATA[Returns the value of the specified counter, or 0 if the counter does
  46134. not exist.]]>
  46135. </doc>
  46136. </method>
  46137. <method name="getCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  46138. abstract="false" native="false" synchronized="false"
  46139. static="false" final="false" visibility="public"
  46140. deprecated="use {@link #getCounter(String)} instead">
  46141. <param name="id" type="int"/>
  46142. <param name="name" type="java.lang.String"/>
  46143. <doc>
  46144. <![CDATA[Get the counter for the given id and create it if it doesn't exist.
  46145. @param id the numeric id of the counter within the group
  46146. @param name the internal counter name
  46147. @return the counter
  46148. @deprecated use {@link #getCounter(String)} instead]]>
  46149. </doc>
  46150. </method>
  46151. <method name="getCounterForName" return="org.apache.hadoop.mapred.Counters.Counter"
  46152. abstract="false" native="false" synchronized="false"
  46153. static="false" final="false" visibility="public"
  46154. deprecated="not deprecated">
  46155. <param name="name" type="java.lang.String"/>
  46156. <doc>
  46157. <![CDATA[Get the counter for the given name and create it if it doesn't exist.
  46158. @param name the internal counter name
  46159. @return the counter]]>
  46160. </doc>
  46161. </method>
  46162. <method name="size" return="int"
  46163. abstract="false" native="false" synchronized="true"
  46164. static="false" final="false" visibility="public"
  46165. deprecated="not deprecated">
  46166. <doc>
  46167. <![CDATA[Returns the number of counters in this group.]]>
  46168. </doc>
  46169. </method>
  46170. <method name="write"
  46171. abstract="false" native="false" synchronized="true"
  46172. static="false" final="false" visibility="public"
  46173. deprecated="not deprecated">
  46174. <param name="out" type="java.io.DataOutput"/>
  46175. <exception name="IOException" type="java.io.IOException"/>
  46176. </method>
  46177. <method name="readFields"
  46178. abstract="false" native="false" synchronized="true"
  46179. static="false" final="false" visibility="public"
  46180. deprecated="not deprecated">
  46181. <param name="in" type="java.io.DataInput"/>
  46182. <exception name="IOException" type="java.io.IOException"/>
  46183. </method>
  46184. <method name="iterator" return="java.util.Iterator"
  46185. abstract="false" native="false" synchronized="true"
  46186. static="false" final="false" visibility="public"
  46187. deprecated="not deprecated">
  46188. </method>
  46189. <doc>
  46190. <![CDATA[<code>Group</code> of counters, comprising of counters from a particular
  46191. counter {@link Enum} class.
  46192. <p><code>Group</code>handles localization of the class name and the
  46193. counter names.</p>]]>
  46194. </doc>
  46195. </class>
  46196. <!-- end class org.apache.hadoop.mapred.Counters.Group -->
  46197. <!-- start class org.apache.hadoop.mapred.DefaultJobHistoryParser -->
  46198. <class name="DefaultJobHistoryParser" extends="java.lang.Object"
  46199. abstract="false"
  46200. static="false" final="false" visibility="public"
  46201. deprecated="not deprecated">
  46202. <constructor name="DefaultJobHistoryParser"
  46203. static="false" final="false" visibility="public"
  46204. deprecated="not deprecated">
  46205. </constructor>
  46206. <method name="parseJobTasks"
  46207. abstract="false" native="false" synchronized="false"
  46208. static="true" final="false" visibility="public"
  46209. deprecated="not deprecated">
  46210. <param name="jobHistoryFile" type="java.lang.String"/>
  46211. <param name="job" type="org.apache.hadoop.mapred.JobHistory.JobInfo"/>
  46212. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  46213. <exception name="IOException" type="java.io.IOException"/>
  46214. <doc>
  46215. <![CDATA[Populates a JobInfo object from the job's history log file.
  46216. @param jobHistoryFile history file for this job.
  46217. @param job a precreated JobInfo object, should be non-null.
  46218. @param fs FileSystem where historyFile is present.
  46219. @throws IOException]]>
  46220. </doc>
  46221. </method>
  46222. <doc>
  46223. <![CDATA[Default parser for job history files. It creates object model from
  46224. job history file.]]>
  46225. </doc>
  46226. </class>
  46227. <!-- end class org.apache.hadoop.mapred.DefaultJobHistoryParser -->
  46228. <!-- start class org.apache.hadoop.mapred.DefaultTaskController -->
  46229. <class name="DefaultTaskController" extends="org.apache.hadoop.mapred.TaskController"
  46230. abstract="false"
  46231. static="false" final="false" visibility="public"
  46232. deprecated="not deprecated">
  46233. <constructor name="DefaultTaskController"
  46234. static="false" final="false" visibility="public"
  46235. deprecated="not deprecated">
  46236. </constructor>
  46237. <method name="setConf"
  46238. abstract="false" native="false" synchronized="false"
  46239. static="false" final="false" visibility="public"
  46240. deprecated="not deprecated">
  46241. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  46242. </method>
  46243. <method name="createLogDir"
  46244. abstract="false" native="false" synchronized="false"
  46245. static="false" final="false" visibility="public"
  46246. deprecated="not deprecated">
  46247. <param name="taskID" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  46248. <param name="isCleanup" type="boolean"/>
  46249. <exception name="IOException" type="java.io.IOException"/>
  46250. </method>
  46251. <method name="launchTask" return="int"
  46252. abstract="false" native="false" synchronized="false"
  46253. static="false" final="false" visibility="public"
  46254. deprecated="not deprecated">
  46255. <param name="user" type="java.lang.String"/>
  46256. <param name="jobId" type="java.lang.String"/>
  46257. <param name="attemptId" type="java.lang.String"/>
  46258. <param name="setup" type="java.util.List"/>
  46259. <param name="jvmArguments" type="java.util.List"/>
  46260. <param name="currentWorkDirectory" type="java.io.File"/>
  46261. <param name="stdout" type="java.lang.String"/>
  46262. <param name="stderr" type="java.lang.String"/>
  46263. <exception name="IOException" type="java.io.IOException"/>
  46264. <doc>
  46265. <![CDATA[Create all of the directories for the task and launches the child jvm.
  46266. @param user the user name
  46267. @param attemptId the attempt id
  46268. @throws IOException]]>
  46269. </doc>
  46270. </method>
  46271. <method name="initializeJob"
  46272. abstract="false" native="false" synchronized="false"
  46273. static="false" final="false" visibility="public"
  46274. deprecated="not deprecated">
  46275. <param name="user" type="java.lang.String"/>
  46276. <param name="jobid" type="java.lang.String"/>
  46277. <param name="credentials" type="org.apache.hadoop.fs.Path"/>
  46278. <param name="jobConf" type="org.apache.hadoop.fs.Path"/>
  46279. <param name="taskTracker" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  46280. <param name="ttAddr" type="java.net.InetSocketAddress"/>
  46281. <exception name="IOException" type="java.io.IOException"/>
  46282. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  46283. <doc>
  46284. <![CDATA[This routine initializes the local file system for running a job.
  46285. Details:
  46286. <ul>
  46287. <li>Copies the credentials file from the TaskTracker's private space to
  46288. the job's private space </li>
  46289. <li>Creates the job work directory and set
  46290. {@link TaskTracker#JOB_LOCAL_DIR} in the configuration</li>
  46291. <li>Downloads the job.jar, unjars it, and updates the configuration to
  46292. reflect the localized path of the job.jar</li>
  46293. <li>Creates a base JobConf in the job's private space</li>
  46294. <li>Sets up the distributed cache</li>
  46295. <li>Sets up the user logs directory for the job</li>
  46296. </ul>
  46297. This method must be invoked in the access control context of the job owner
  46298. user. This is because the distributed cache is also setup here and the
  46299. access to the hdfs files requires authentication tokens in case where
  46300. security is enabled.
  46301. @param user the user in question (the job owner)
  46302. @param jobid the ID of the job in question
  46303. @param credentials the path to the credentials file that the TaskTracker
  46304. downloaded
  46305. @param jobConf the path to the job configuration file that the TaskTracker
  46306. downloaded
  46307. @param taskTracker the connection to the task tracker
  46308. @throws IOException
  46309. @throws InterruptedException]]>
  46310. </doc>
  46311. </method>
  46312. <method name="signalTask"
  46313. abstract="false" native="false" synchronized="false"
  46314. static="false" final="false" visibility="public"
  46315. deprecated="not deprecated">
  46316. <param name="user" type="java.lang.String"/>
  46317. <param name="taskPid" type="int"/>
  46318. <param name="signal" type="org.apache.hadoop.util.ProcessTree.Signal"/>
  46319. </method>
  46320. <method name="deleteAsUser"
  46321. abstract="false" native="false" synchronized="false"
  46322. static="false" final="false" visibility="public"
  46323. deprecated="not deprecated">
  46324. <param name="user" type="java.lang.String"/>
  46325. <param name="subDir" type="java.lang.String"/>
  46326. <exception name="IOException" type="java.io.IOException"/>
  46327. <doc>
  46328. <![CDATA[Delete the user's files under all of the task tracker root directories.
  46329. @param user the user name
  46330. @param subDir the path relative to the user's subdirectory under
  46331. the task tracker root directories.
  46332. @throws IOException]]>
  46333. </doc>
  46334. </method>
  46335. <method name="deleteLogAsUser"
  46336. abstract="false" native="false" synchronized="false"
  46337. static="false" final="false" visibility="public"
  46338. deprecated="not deprecated">
  46339. <param name="user" type="java.lang.String"/>
  46340. <param name="subDir" type="java.lang.String"/>
  46341. <exception name="IOException" type="java.io.IOException"/>
  46342. <doc>
  46343. <![CDATA[Delete the user's files under the userlogs directory.
  46344. @param user the user to work as
  46345. @param subDir the path under the userlogs directory.
  46346. @throws IOException]]>
  46347. </doc>
  46348. </method>
  46349. <method name="truncateLogsAsUser"
  46350. abstract="false" native="false" synchronized="false"
  46351. static="false" final="false" visibility="public"
  46352. deprecated="not deprecated">
  46353. <param name="user" type="java.lang.String"/>
  46354. <param name="allAttempts" type="java.util.List"/>
  46355. <exception name="IOException" type="java.io.IOException"/>
  46356. </method>
  46357. <method name="setup"
  46358. abstract="false" native="false" synchronized="false"
  46359. static="false" final="false" visibility="public"
  46360. deprecated="not deprecated">
  46361. <param name="allocator" type="org.apache.hadoop.fs.LocalDirAllocator"/>
  46362. <param name="localStorage" type="org.apache.hadoop.mapred.TaskTracker.LocalStorage"/>
  46363. </method>
  46364. <doc>
  46365. <![CDATA[The default implementation for controlling tasks.
  46366. This class provides an implementation for launching and killing
  46367. tasks that need to be run as the tasktracker itself. Hence,
  46368. many of the initializing or cleanup methods are not required here.
  46369. <br/>
  46370. NOTE: This class is internal only class and not intended for users!!]]>
  46371. </doc>
  46372. </class>
  46373. <!-- end class org.apache.hadoop.mapred.DefaultTaskController -->
  46374. <!-- start class org.apache.hadoop.mapred.FileAlreadyExistsException -->
  46375. <class name="FileAlreadyExistsException" extends="java.io.IOException"
  46376. abstract="false"
  46377. static="false" final="false" visibility="public"
  46378. deprecated="not deprecated">
  46379. <constructor name="FileAlreadyExistsException"
  46380. static="false" final="false" visibility="public"
  46381. deprecated="not deprecated">
  46382. </constructor>
  46383. <constructor name="FileAlreadyExistsException" type="java.lang.String"
  46384. static="false" final="false" visibility="public"
  46385. deprecated="not deprecated">
  46386. </constructor>
  46387. <doc>
  46388. <![CDATA[Used when target file already exists for any operation and
  46389. is not configured to be overwritten.]]>
  46390. </doc>
  46391. </class>
  46392. <!-- end class org.apache.hadoop.mapred.FileAlreadyExistsException -->
  46393. <!-- start class org.apache.hadoop.mapred.FileInputFormat -->
  46394. <class name="FileInputFormat" extends="java.lang.Object"
  46395. abstract="true"
  46396. static="false" final="false" visibility="public"
  46397. deprecated="not deprecated">
  46398. <implements name="org.apache.hadoop.mapred.InputFormat"/>
  46399. <constructor name="FileInputFormat"
  46400. static="false" final="false" visibility="public"
  46401. deprecated="not deprecated">
  46402. </constructor>
  46403. <method name="setMinSplitSize"
  46404. abstract="false" native="false" synchronized="false"
  46405. static="false" final="false" visibility="protected"
  46406. deprecated="not deprecated">
  46407. <param name="minSplitSize" type="long"/>
  46408. </method>
  46409. <method name="isSplitable" return="boolean"
  46410. abstract="false" native="false" synchronized="false"
  46411. static="false" final="false" visibility="protected"
  46412. deprecated="not deprecated">
  46413. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  46414. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  46415. <doc>
  46416. <![CDATA[Is the given filename splitable? Usually, true, but if the file is
  46417. stream compressed, it will not be.
  46418. <code>FileInputFormat</code> implementations can override this and return
  46419. <code>false</code> to ensure that individual input files are never split-up
  46420. so that {@link Mapper}s process entire files.
  46421. @param fs the file system that the file is on
  46422. @param filename the file name to check
  46423. @return is this file splitable?]]>
  46424. </doc>
  46425. </method>
  46426. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  46427. abstract="true" native="false" synchronized="false"
  46428. static="false" final="false" visibility="public"
  46429. deprecated="not deprecated">
  46430. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  46431. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  46432. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  46433. <exception name="IOException" type="java.io.IOException"/>
  46434. </method>
  46435. <method name="setInputPathFilter"
  46436. abstract="false" native="false" synchronized="false"
  46437. static="true" final="false" visibility="public"
  46438. deprecated="not deprecated">
  46439. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46440. <param name="filter" type="java.lang.Class"/>
  46441. <doc>
  46442. <![CDATA[Set a PathFilter to be applied to the input paths for the map-reduce job.
  46443. @param filter the PathFilter class use for filtering the input paths.]]>
  46444. </doc>
  46445. </method>
  46446. <method name="getInputPathFilter" return="org.apache.hadoop.fs.PathFilter"
  46447. abstract="false" native="false" synchronized="false"
  46448. static="true" final="false" visibility="public"
  46449. deprecated="not deprecated">
  46450. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46451. <doc>
  46452. <![CDATA[Get a PathFilter instance of the filter set for the input paths.
  46453. @return the PathFilter instance set for the job, NULL if none has been set.]]>
  46454. </doc>
  46455. </method>
  46456. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  46457. abstract="false" native="false" synchronized="false"
  46458. static="false" final="false" visibility="protected"
  46459. deprecated="not deprecated">
  46460. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  46461. <exception name="IOException" type="java.io.IOException"/>
  46462. <doc>
  46463. <![CDATA[List input directories.
  46464. Subclasses may override to, e.g., select only files matching a regular
  46465. expression.
  46466. @param job the job to list input paths for
  46467. @return array of FileStatus objects
  46468. @throws IOException if zero items.]]>
  46469. </doc>
  46470. </method>
  46471. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  46472. abstract="false" native="false" synchronized="false"
  46473. static="false" final="false" visibility="public"
  46474. deprecated="not deprecated">
  46475. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  46476. <param name="numSplits" type="int"/>
  46477. <exception name="IOException" type="java.io.IOException"/>
  46478. <doc>
  46479. <![CDATA[Splits files returned by {@link #listStatus(JobConf)} when
  46480. they're too big.]]>
  46481. </doc>
  46482. </method>
  46483. <method name="computeSplitSize" return="long"
  46484. abstract="false" native="false" synchronized="false"
  46485. static="false" final="false" visibility="protected"
  46486. deprecated="not deprecated">
  46487. <param name="goalSize" type="long"/>
  46488. <param name="minSize" type="long"/>
  46489. <param name="blockSize" type="long"/>
  46490. </method>
  46491. <method name="getBlockIndex" return="int"
  46492. abstract="false" native="false" synchronized="false"
  46493. static="false" final="false" visibility="protected"
  46494. deprecated="not deprecated">
  46495. <param name="blkLocations" type="org.apache.hadoop.fs.BlockLocation[]"/>
  46496. <param name="offset" type="long"/>
  46497. </method>
  46498. <method name="setInputPaths"
  46499. abstract="false" native="false" synchronized="false"
  46500. static="true" final="false" visibility="public"
  46501. deprecated="not deprecated">
  46502. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46503. <param name="commaSeparatedPaths" type="java.lang.String"/>
  46504. <doc>
  46505. <![CDATA[Sets the given comma separated paths as the list of inputs
  46506. for the map-reduce job.
  46507. @param conf Configuration of the job
  46508. @param commaSeparatedPaths Comma separated paths to be set as
  46509. the list of inputs for the map-reduce job.]]>
  46510. </doc>
  46511. </method>
  46512. <method name="addInputPaths"
  46513. abstract="false" native="false" synchronized="false"
  46514. static="true" final="false" visibility="public"
  46515. deprecated="not deprecated">
  46516. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46517. <param name="commaSeparatedPaths" type="java.lang.String"/>
  46518. <doc>
  46519. <![CDATA[Add the given comma separated paths to the list of inputs for
  46520. the map-reduce job.
  46521. @param conf The configuration of the job
  46522. @param commaSeparatedPaths Comma separated paths to be added to
  46523. the list of inputs for the map-reduce job.]]>
  46524. </doc>
  46525. </method>
  46526. <method name="setInputPaths"
  46527. abstract="false" native="false" synchronized="false"
  46528. static="true" final="false" visibility="public"
  46529. deprecated="not deprecated">
  46530. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46531. <param name="inputPaths" type="org.apache.hadoop.fs.Path[]"/>
  46532. <doc>
  46533. <![CDATA[Set the array of {@link Path}s as the list of inputs
  46534. for the map-reduce job.
  46535. @param conf Configuration of the job.
  46536. @param inputPaths the {@link Path}s of the input directories/files
  46537. for the map-reduce job.]]>
  46538. </doc>
  46539. </method>
  46540. <method name="addInputPath"
  46541. abstract="false" native="false" synchronized="false"
  46542. static="true" final="false" visibility="public"
  46543. deprecated="not deprecated">
  46544. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46545. <param name="path" type="org.apache.hadoop.fs.Path"/>
  46546. <doc>
  46547. <![CDATA[Add a {@link Path} to the list of inputs for the map-reduce job.
  46548. @param conf The configuration of the job
  46549. @param path {@link Path} to be added to the list of inputs for
  46550. the map-reduce job.]]>
  46551. </doc>
  46552. </method>
  46553. <method name="getInputPaths" return="org.apache.hadoop.fs.Path[]"
  46554. abstract="false" native="false" synchronized="false"
  46555. static="true" final="false" visibility="public"
  46556. deprecated="not deprecated">
  46557. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46558. <doc>
  46559. <![CDATA[Get the list of input {@link Path}s for the map-reduce job.
  46560. @param conf The configuration of the job
  46561. @return the list of input {@link Path}s for the map-reduce job.]]>
  46562. </doc>
  46563. </method>
  46564. <method name="getSplitHosts" return="java.lang.String[]"
  46565. abstract="false" native="false" synchronized="false"
  46566. static="false" final="false" visibility="protected"
  46567. deprecated="not deprecated">
  46568. <param name="blkLocations" type="org.apache.hadoop.fs.BlockLocation[]"/>
  46569. <param name="offset" type="long"/>
  46570. <param name="splitSize" type="long"/>
  46571. <param name="clusterMap" type="org.apache.hadoop.net.NetworkTopology"/>
  46572. <exception name="IOException" type="java.io.IOException"/>
  46573. <doc>
  46574. <![CDATA[This function identifies and returns the hosts that contribute
  46575. most for a given split. For calculating the contribution, rack
  46576. locality is treated on par with host locality, so hosts from racks
  46577. that contribute the most are preferred over hosts on racks that
  46578. contribute less
  46579. @param blkLocations The list of block locations
  46580. @param offset
  46581. @param splitSize
  46582. @return array of hosts that contribute most to this split
  46583. @throws IOException]]>
  46584. </doc>
  46585. </method>
  46586. <field name="LOG" type="org.apache.commons.logging.Log"
  46587. transient="false" volatile="false"
  46588. static="true" final="true" visibility="public"
  46589. deprecated="not deprecated">
  46590. </field>
  46591. <doc>
  46592. <![CDATA[A base class for file-based {@link InputFormat}.
  46593. <p><code>FileInputFormat</code> is the base class for all file-based
  46594. <code>InputFormat</code>s. This provides a generic implementation of
  46595. {@link #getSplits(JobConf, int)}.
  46596. Subclasses of <code>FileInputFormat</code> can also override the
  46597. {@link #isSplitable(FileSystem, Path)} method to ensure input-files are
  46598. not split-up and are processed as a whole by {@link Mapper}s.]]>
  46599. </doc>
  46600. </class>
  46601. <!-- end class org.apache.hadoop.mapred.FileInputFormat -->
  46602. <!-- start class org.apache.hadoop.mapred.FileInputFormat.Counter -->
  46603. <class name="FileInputFormat.Counter" extends="java.lang.Enum"
  46604. abstract="false"
  46605. static="true" final="true" visibility="public"
  46606. deprecated="not deprecated">
  46607. <method name="values" return="org.apache.hadoop.mapred.FileInputFormat.Counter[]"
  46608. abstract="false" native="false" synchronized="false"
  46609. static="true" final="false" visibility="public"
  46610. deprecated="not deprecated">
  46611. </method>
  46612. <method name="valueOf" return="org.apache.hadoop.mapred.FileInputFormat.Counter"
  46613. abstract="false" native="false" synchronized="false"
  46614. static="true" final="false" visibility="public"
  46615. deprecated="not deprecated">
  46616. <param name="name" type="java.lang.String"/>
  46617. </method>
  46618. <field name="BYTES_READ" type="org.apache.hadoop.mapred.FileInputFormat.Counter"
  46619. transient="false" volatile="false"
  46620. static="true" final="true" visibility="public"
  46621. deprecated="not deprecated">
  46622. </field>
  46623. </class>
  46624. <!-- end class org.apache.hadoop.mapred.FileInputFormat.Counter -->
  46625. <!-- start class org.apache.hadoop.mapred.FileOutputCommitter -->
  46626. <class name="FileOutputCommitter" extends="org.apache.hadoop.mapred.OutputCommitter"
  46627. abstract="false"
  46628. static="false" final="false" visibility="public"
  46629. deprecated="not deprecated">
  46630. <constructor name="FileOutputCommitter"
  46631. static="false" final="false" visibility="public"
  46632. deprecated="not deprecated">
  46633. </constructor>
  46634. <method name="setupJob"
  46635. abstract="false" native="false" synchronized="false"
  46636. static="false" final="false" visibility="public"
  46637. deprecated="not deprecated">
  46638. <param name="context" type="org.apache.hadoop.mapred.JobContext"/>
  46639. <exception name="IOException" type="java.io.IOException"/>
  46640. </method>
  46641. <method name="commitJob"
  46642. abstract="false" native="false" synchronized="false"
  46643. static="false" final="false" visibility="public"
  46644. deprecated="not deprecated">
  46645. <param name="context" type="org.apache.hadoop.mapred.JobContext"/>
  46646. <exception name="IOException" type="java.io.IOException"/>
  46647. </method>
  46648. <method name="cleanupJob"
  46649. abstract="false" native="false" synchronized="false"
  46650. static="false" final="false" visibility="public"
  46651. deprecated="not deprecated">
  46652. <param name="context" type="org.apache.hadoop.mapred.JobContext"/>
  46653. <exception name="IOException" type="java.io.IOException"/>
  46654. </method>
  46655. <method name="abortJob"
  46656. abstract="false" native="false" synchronized="false"
  46657. static="false" final="false" visibility="public"
  46658. deprecated="not deprecated">
  46659. <param name="context" type="org.apache.hadoop.mapred.JobContext"/>
  46660. <param name="runState" type="int"/>
  46661. <exception name="IOException" type="java.io.IOException"/>
  46662. <doc>
  46663. <![CDATA[Delete the temporary directory, including all of the work directories.
  46664. @param context the job's context
  46665. @param runState final run state of the job, should be
  46666. {@link JobStatus#KILLED} or {@link JobStatus#FAILED}]]>
  46667. </doc>
  46668. </method>
  46669. <method name="setupTask"
  46670. abstract="false" native="false" synchronized="false"
  46671. static="false" final="false" visibility="public"
  46672. deprecated="not deprecated">
  46673. <param name="context" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  46674. <exception name="IOException" type="java.io.IOException"/>
  46675. </method>
  46676. <method name="commitTask"
  46677. abstract="false" native="false" synchronized="false"
  46678. static="false" final="false" visibility="public"
  46679. deprecated="not deprecated">
  46680. <param name="context" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  46681. <exception name="IOException" type="java.io.IOException"/>
  46682. </method>
  46683. <method name="abortTask"
  46684. abstract="false" native="false" synchronized="false"
  46685. static="false" final="false" visibility="public"
  46686. deprecated="not deprecated">
  46687. <param name="context" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  46688. <exception name="IOException" type="java.io.IOException"/>
  46689. </method>
  46690. <method name="needsTaskCommit" return="boolean"
  46691. abstract="false" native="false" synchronized="false"
  46692. static="false" final="false" visibility="public"
  46693. deprecated="not deprecated">
  46694. <param name="context" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  46695. <exception name="IOException" type="java.io.IOException"/>
  46696. </method>
  46697. <field name="LOG" type="org.apache.commons.logging.Log"
  46698. transient="false" volatile="false"
  46699. static="true" final="true" visibility="public"
  46700. deprecated="not deprecated">
  46701. </field>
  46702. <field name="TEMP_DIR_NAME" type="java.lang.String"
  46703. transient="false" volatile="false"
  46704. static="true" final="true" visibility="public"
  46705. deprecated="not deprecated">
  46706. <doc>
  46707. <![CDATA[Temporary directory name]]>
  46708. </doc>
  46709. </field>
  46710. <field name="SUCCEEDED_FILE_NAME" type="java.lang.String"
  46711. transient="false" volatile="false"
  46712. static="true" final="true" visibility="public"
  46713. deprecated="not deprecated">
  46714. </field>
  46715. <doc>
  46716. <![CDATA[An {@link OutputCommitter} that commits files specified
  46717. in job output directory i.e. ${mapred.output.dir}.]]>
  46718. </doc>
  46719. </class>
  46720. <!-- end class org.apache.hadoop.mapred.FileOutputCommitter -->
  46721. <!-- start class org.apache.hadoop.mapred.FileOutputFormat -->
  46722. <class name="FileOutputFormat" extends="java.lang.Object"
  46723. abstract="true"
  46724. static="false" final="false" visibility="public"
  46725. deprecated="not deprecated">
  46726. <implements name="org.apache.hadoop.mapred.OutputFormat"/>
  46727. <constructor name="FileOutputFormat"
  46728. static="false" final="false" visibility="public"
  46729. deprecated="not deprecated">
  46730. </constructor>
  46731. <method name="setCompressOutput"
  46732. abstract="false" native="false" synchronized="false"
  46733. static="true" final="false" visibility="public"
  46734. deprecated="not deprecated">
  46735. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46736. <param name="compress" type="boolean"/>
  46737. <doc>
  46738. <![CDATA[Set whether the output of the job is compressed.
  46739. @param conf the {@link JobConf} to modify
  46740. @param compress should the output of the job be compressed?]]>
  46741. </doc>
  46742. </method>
  46743. <method name="getCompressOutput" return="boolean"
  46744. abstract="false" native="false" synchronized="false"
  46745. static="true" final="false" visibility="public"
  46746. deprecated="not deprecated">
  46747. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46748. <doc>
  46749. <![CDATA[Is the job output compressed?
  46750. @param conf the {@link JobConf} to look in
  46751. @return <code>true</code> if the job output should be compressed,
  46752. <code>false</code> otherwise]]>
  46753. </doc>
  46754. </method>
  46755. <method name="setOutputCompressorClass"
  46756. abstract="false" native="false" synchronized="false"
  46757. static="true" final="false" visibility="public"
  46758. deprecated="not deprecated">
  46759. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46760. <param name="codecClass" type="java.lang.Class"/>
  46761. <doc>
  46762. <![CDATA[Set the {@link CompressionCodec} to be used to compress job outputs.
  46763. @param conf the {@link JobConf} to modify
  46764. @param codecClass the {@link CompressionCodec} to be used to
  46765. compress the job outputs]]>
  46766. </doc>
  46767. </method>
  46768. <method name="getOutputCompressorClass" return="java.lang.Class"
  46769. abstract="false" native="false" synchronized="false"
  46770. static="true" final="false" visibility="public"
  46771. deprecated="not deprecated">
  46772. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46773. <param name="defaultValue" type="java.lang.Class"/>
  46774. <doc>
  46775. <![CDATA[Get the {@link CompressionCodec} for compressing the job outputs.
  46776. @param conf the {@link JobConf} to look in
  46777. @param defaultValue the {@link CompressionCodec} to return if not set
  46778. @return the {@link CompressionCodec} to be used to compress the
  46779. job outputs
  46780. @throws IllegalArgumentException if the class was specified, but not found]]>
  46781. </doc>
  46782. </method>
  46783. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  46784. abstract="true" native="false" synchronized="false"
  46785. static="false" final="false" visibility="public"
  46786. deprecated="not deprecated">
  46787. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  46788. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  46789. <param name="name" type="java.lang.String"/>
  46790. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  46791. <exception name="IOException" type="java.io.IOException"/>
  46792. </method>
  46793. <method name="checkOutputSpecs"
  46794. abstract="false" native="false" synchronized="false"
  46795. static="false" final="false" visibility="public"
  46796. deprecated="not deprecated">
  46797. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  46798. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  46799. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.mapred.FileAlreadyExistsException"/>
  46800. <exception name="InvalidJobConfException" type="org.apache.hadoop.mapred.InvalidJobConfException"/>
  46801. <exception name="IOException" type="java.io.IOException"/>
  46802. </method>
  46803. <method name="setOutputPath"
  46804. abstract="false" native="false" synchronized="false"
  46805. static="true" final="false" visibility="public"
  46806. deprecated="not deprecated">
  46807. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46808. <param name="outputDir" type="org.apache.hadoop.fs.Path"/>
  46809. <doc>
  46810. <![CDATA[Set the {@link Path} of the output directory for the map-reduce job.
  46811. @param conf The configuration of the job.
  46812. @param outputDir the {@link Path} of the output directory for
  46813. the map-reduce job.]]>
  46814. </doc>
  46815. </method>
  46816. <method name="getOutputPath" return="org.apache.hadoop.fs.Path"
  46817. abstract="false" native="false" synchronized="false"
  46818. static="true" final="false" visibility="public"
  46819. deprecated="not deprecated">
  46820. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46821. <doc>
  46822. <![CDATA[Get the {@link Path} to the output directory for the map-reduce job.
  46823. @return the {@link Path} to the output directory for the map-reduce job.
  46824. @see FileOutputFormat#getWorkOutputPath(JobConf)]]>
  46825. </doc>
  46826. </method>
  46827. <method name="getWorkOutputPath" return="org.apache.hadoop.fs.Path"
  46828. abstract="false" native="false" synchronized="false"
  46829. static="true" final="false" visibility="public"
  46830. deprecated="not deprecated">
  46831. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46832. <doc>
  46833. <![CDATA[Get the {@link Path} to the task's temporary output directory
  46834. for the map-reduce job
  46835. <h4 id="SideEffectFiles">Tasks' Side-Effect Files</h4>
  46836. <p><i>Note:</i> The following is valid only if the {@link OutputCommitter}
  46837. is {@link FileOutputCommitter}. If <code>OutputCommitter</code> is not
  46838. a <code>FileOutputCommitter</code>, the task's temporary output
  46839. directory is same as {@link #getOutputPath(JobConf)} i.e.
  46840. <tt>${mapred.output.dir}$</tt></p>
  46841. <p>Some applications need to create/write-to side-files, which differ from
  46842. the actual job-outputs.
  46843. <p>In such cases there could be issues with 2 instances of the same TIP
  46844. (running simultaneously e.g. speculative tasks) trying to open/write-to the
  46845. same file (path) on HDFS. Hence the application-writer will have to pick
  46846. unique names per task-attempt (e.g. using the attemptid, say
  46847. <tt>attempt_200709221812_0001_m_000000_0</tt>), not just per TIP.</p>
  46848. <p>To get around this the Map-Reduce framework helps the application-writer
  46849. out by maintaining a special
  46850. <tt>${mapred.output.dir}/_temporary/_${taskid}</tt>
  46851. sub-directory for each task-attempt on HDFS where the output of the
  46852. task-attempt goes. On successful completion of the task-attempt the files
  46853. in the <tt>${mapred.output.dir}/_temporary/_${taskid}</tt> (only)
  46854. are <i>promoted</i> to <tt>${mapred.output.dir}</tt>. Of course, the
  46855. framework discards the sub-directory of unsuccessful task-attempts. This
  46856. is completely transparent to the application.</p>
  46857. <p>The application-writer can take advantage of this by creating any
  46858. side-files required in <tt>${mapred.work.output.dir}</tt> during execution
  46859. of his reduce-task i.e. via {@link #getWorkOutputPath(JobConf)}, and the
  46860. framework will move them out similarly - thus she doesn't have to pick
  46861. unique paths per task-attempt.</p>
  46862. <p><i>Note</i>: the value of <tt>${mapred.work.output.dir}</tt> during
  46863. execution of a particular task-attempt is actually
  46864. <tt>${mapred.output.dir}/_temporary/_{$taskid}</tt>, and this value is
  46865. set by the map-reduce framework. So, just create any side-files in the
  46866. path returned by {@link #getWorkOutputPath(JobConf)} from map/reduce
  46867. task to take advantage of this feature.</p>
  46868. <p>The entire discussion holds true for maps of jobs with
  46869. reducer=NONE (i.e. 0 reduces) since output of the map, in that case,
  46870. goes directly to HDFS.</p>
  46871. @return the {@link Path} to the task's temporary output directory
  46872. for the map-reduce job.]]>
  46873. </doc>
  46874. </method>
  46875. <method name="getTaskOutputPath" return="org.apache.hadoop.fs.Path"
  46876. abstract="false" native="false" synchronized="false"
  46877. static="true" final="false" visibility="public"
  46878. deprecated="not deprecated">
  46879. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46880. <param name="name" type="java.lang.String"/>
  46881. <exception name="IOException" type="java.io.IOException"/>
  46882. <doc>
  46883. <![CDATA[Helper function to create the task's temporary output directory and
  46884. return the path to the task's output file.
  46885. @param conf job-configuration
  46886. @param name temporary task-output filename
  46887. @return path to the task's temporary output file
  46888. @throws IOException]]>
  46889. </doc>
  46890. </method>
  46891. <method name="getUniqueName" return="java.lang.String"
  46892. abstract="false" native="false" synchronized="false"
  46893. static="true" final="false" visibility="public"
  46894. deprecated="not deprecated">
  46895. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46896. <param name="name" type="java.lang.String"/>
  46897. <doc>
  46898. <![CDATA[Helper function to generate a name that is unique for the task.
  46899. <p>The generated name can be used to create custom files from within the
  46900. different tasks for the job, the names for different tasks will not collide
  46901. with each other.</p>
  46902. <p>The given name is postfixed with the task type, 'm' for maps, 'r' for
  46903. reduces and the task partition number. For example, give a name 'test'
  46904. running on the first map o the job the generated name will be
  46905. 'test-m-00000'.</p>
  46906. @param conf the configuration for the job.
  46907. @param name the name to make unique.
  46908. @return a unique name accross all tasks of the job.]]>
  46909. </doc>
  46910. </method>
  46911. <method name="getPathForCustomFile" return="org.apache.hadoop.fs.Path"
  46912. abstract="false" native="false" synchronized="false"
  46913. static="true" final="false" visibility="public"
  46914. deprecated="not deprecated">
  46915. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  46916. <param name="name" type="java.lang.String"/>
  46917. <doc>
  46918. <![CDATA[Helper function to generate a {@link Path} for a file that is unique for
  46919. the task within the job output directory.
  46920. <p>The path can be used to create custom files from within the map and
  46921. reduce tasks. The path name will be unique for each task. The path parent
  46922. will be the job output directory.</p>ls
  46923. <p>This method uses the {@link #getUniqueName} method to make the file name
  46924. unique for the task.</p>
  46925. @param conf the configuration for the job.
  46926. @param name the name for the file.
  46927. @return a unique path accross all tasks of the job.]]>
  46928. </doc>
  46929. </method>
  46930. <doc>
  46931. <![CDATA[A base class for {@link OutputFormat}.]]>
  46932. </doc>
  46933. </class>
  46934. <!-- end class org.apache.hadoop.mapred.FileOutputFormat -->
  46935. <!-- start class org.apache.hadoop.mapred.FileOutputFormat.Counter -->
  46936. <class name="FileOutputFormat.Counter" extends="java.lang.Enum"
  46937. abstract="false"
  46938. static="true" final="true" visibility="public"
  46939. deprecated="not deprecated">
  46940. <method name="values" return="org.apache.hadoop.mapred.FileOutputFormat.Counter[]"
  46941. abstract="false" native="false" synchronized="false"
  46942. static="true" final="false" visibility="public"
  46943. deprecated="not deprecated">
  46944. </method>
  46945. <method name="valueOf" return="org.apache.hadoop.mapred.FileOutputFormat.Counter"
  46946. abstract="false" native="false" synchronized="false"
  46947. static="true" final="false" visibility="public"
  46948. deprecated="not deprecated">
  46949. <param name="name" type="java.lang.String"/>
  46950. </method>
  46951. <field name="BYTES_WRITTEN" type="org.apache.hadoop.mapred.FileOutputFormat.Counter"
  46952. transient="false" volatile="false"
  46953. static="true" final="true" visibility="public"
  46954. deprecated="not deprecated">
  46955. </field>
  46956. </class>
  46957. <!-- end class org.apache.hadoop.mapred.FileOutputFormat.Counter -->
  46958. <!-- start class org.apache.hadoop.mapred.FileSplit -->
  46959. <class name="FileSplit" extends="org.apache.hadoop.mapreduce.InputSplit"
  46960. abstract="false"
  46961. static="false" final="false" visibility="public"
  46962. deprecated="not deprecated">
  46963. <implements name="org.apache.hadoop.mapred.InputSplit"/>
  46964. <constructor name="FileSplit" type="org.apache.hadoop.fs.Path, long, long, org.apache.hadoop.mapred.JobConf"
  46965. static="false" final="false" visibility="public"
  46966. deprecated="deprecated, no comment">
  46967. <doc>
  46968. <![CDATA[Constructs a split.
  46969. @deprecated
  46970. @param file the file name
  46971. @param start the position of the first byte in the file to process
  46972. @param length the number of bytes in the file to process]]>
  46973. </doc>
  46974. </constructor>
  46975. <constructor name="FileSplit" type="org.apache.hadoop.fs.Path, long, long, java.lang.String[]"
  46976. static="false" final="false" visibility="public"
  46977. deprecated="not deprecated">
  46978. <doc>
  46979. <![CDATA[Constructs a split with host information
  46980. @param file the file name
  46981. @param start the position of the first byte in the file to process
  46982. @param length the number of bytes in the file to process
  46983. @param hosts the list of hosts containing the block, possibly null]]>
  46984. </doc>
  46985. </constructor>
  46986. <method name="getPath" return="org.apache.hadoop.fs.Path"
  46987. abstract="false" native="false" synchronized="false"
  46988. static="false" final="false" visibility="public"
  46989. deprecated="not deprecated">
  46990. <doc>
  46991. <![CDATA[The file containing this split's data.]]>
  46992. </doc>
  46993. </method>
  46994. <method name="getStart" return="long"
  46995. abstract="false" native="false" synchronized="false"
  46996. static="false" final="false" visibility="public"
  46997. deprecated="not deprecated">
  46998. <doc>
  46999. <![CDATA[The position of the first byte in the file to process.]]>
  47000. </doc>
  47001. </method>
  47002. <method name="getLength" return="long"
  47003. abstract="false" native="false" synchronized="false"
  47004. static="false" final="false" visibility="public"
  47005. deprecated="not deprecated">
  47006. <doc>
  47007. <![CDATA[The number of bytes in the file to process.]]>
  47008. </doc>
  47009. </method>
  47010. <method name="toString" return="java.lang.String"
  47011. abstract="false" native="false" synchronized="false"
  47012. static="false" final="false" visibility="public"
  47013. deprecated="not deprecated">
  47014. </method>
  47015. <method name="write"
  47016. abstract="false" native="false" synchronized="false"
  47017. static="false" final="false" visibility="public"
  47018. deprecated="not deprecated">
  47019. <param name="out" type="java.io.DataOutput"/>
  47020. <exception name="IOException" type="java.io.IOException"/>
  47021. </method>
  47022. <method name="readFields"
  47023. abstract="false" native="false" synchronized="false"
  47024. static="false" final="false" visibility="public"
  47025. deprecated="not deprecated">
  47026. <param name="in" type="java.io.DataInput"/>
  47027. <exception name="IOException" type="java.io.IOException"/>
  47028. </method>
  47029. <method name="getLocations" return="java.lang.String[]"
  47030. abstract="false" native="false" synchronized="false"
  47031. static="false" final="false" visibility="public"
  47032. deprecated="not deprecated">
  47033. <exception name="IOException" type="java.io.IOException"/>
  47034. </method>
  47035. <doc>
  47036. <![CDATA[A section of an input file. Returned by {@link
  47037. InputFormat#getSplits(JobConf, int)} and passed to
  47038. {@link InputFormat#getRecordReader(InputSplit,JobConf,Reporter)}.]]>
  47039. </doc>
  47040. </class>
  47041. <!-- end class org.apache.hadoop.mapred.FileSplit -->
  47042. <!-- start class org.apache.hadoop.mapred.HDFSMonitorThread -->
  47043. <class name="HDFSMonitorThread" extends="java.lang.Thread"
  47044. abstract="false"
  47045. static="false" final="false" visibility="public"
  47046. deprecated="not deprecated">
  47047. <constructor name="HDFSMonitorThread" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.JobTracker, org.apache.hadoop.fs.FileSystem"
  47048. static="false" final="false" visibility="public"
  47049. deprecated="not deprecated">
  47050. </constructor>
  47051. <method name="run"
  47052. abstract="false" native="false" synchronized="false"
  47053. static="false" final="false" visibility="public"
  47054. deprecated="not deprecated">
  47055. </method>
  47056. <field name="LOG" type="org.apache.commons.logging.Log"
  47057. transient="false" volatile="false"
  47058. static="true" final="true" visibility="public"
  47059. deprecated="not deprecated">
  47060. </field>
  47061. </class>
  47062. <!-- end class org.apache.hadoop.mapred.HDFSMonitorThread -->
  47063. <!-- start class org.apache.hadoop.mapred.ID -->
  47064. <class name="ID" extends="org.apache.hadoop.mapreduce.ID"
  47065. abstract="true"
  47066. static="false" final="false" visibility="public"
  47067. deprecated="not deprecated">
  47068. <constructor name="ID" type="int"
  47069. static="false" final="false" visibility="public"
  47070. deprecated="not deprecated">
  47071. <doc>
  47072. <![CDATA[constructs an ID object from the given int]]>
  47073. </doc>
  47074. </constructor>
  47075. <constructor name="ID"
  47076. static="false" final="false" visibility="protected"
  47077. deprecated="not deprecated">
  47078. </constructor>
  47079. <doc>
  47080. <![CDATA[A general identifier, which internally stores the id
  47081. as an integer. This is the super class of {@link JobID},
  47082. {@link TaskID} and {@link TaskAttemptID}.
  47083. @see JobID
  47084. @see TaskID
  47085. @see TaskAttemptID]]>
  47086. </doc>
  47087. </class>
  47088. <!-- end class org.apache.hadoop.mapred.ID -->
  47089. <!-- start interface org.apache.hadoop.mapred.InputFormat -->
  47090. <interface name="InputFormat" abstract="true"
  47091. static="false" final="false" visibility="public"
  47092. deprecated="not deprecated">
  47093. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  47094. abstract="false" native="false" synchronized="false"
  47095. static="false" final="false" visibility="public"
  47096. deprecated="not deprecated">
  47097. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  47098. <param name="numSplits" type="int"/>
  47099. <exception name="IOException" type="java.io.IOException"/>
  47100. <doc>
  47101. <![CDATA[Logically split the set of input files for the job.
  47102. <p>Each {@link InputSplit} is then assigned to an individual {@link Mapper}
  47103. for processing.</p>
  47104. <p><i>Note</i>: The split is a <i>logical</i> split of the inputs and the
  47105. input files are not physically split into chunks. For e.g. a split could
  47106. be <i>&lt;input-file-path, start, offset&gt;</i> tuple.
  47107. @param job job configuration.
  47108. @param numSplits the desired number of splits, a hint.
  47109. @return an array of {@link InputSplit}s for the job.]]>
  47110. </doc>
  47111. </method>
  47112. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  47113. abstract="false" native="false" synchronized="false"
  47114. static="false" final="false" visibility="public"
  47115. deprecated="not deprecated">
  47116. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  47117. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  47118. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  47119. <exception name="IOException" type="java.io.IOException"/>
  47120. <doc>
  47121. <![CDATA[Get the {@link RecordReader} for the given {@link InputSplit}.
  47122. <p>It is the responsibility of the <code>RecordReader</code> to respect
  47123. record boundaries while processing the logical split to present a
  47124. record-oriented view to the individual task.</p>
  47125. @param split the {@link InputSplit}
  47126. @param job the job that this split belongs to
  47127. @return a {@link RecordReader}]]>
  47128. </doc>
  47129. </method>
  47130. <doc>
  47131. <![CDATA[<code>InputFormat</code> describes the input-specification for a
  47132. Map-Reduce job.
  47133. <p>The Map-Reduce framework relies on the <code>InputFormat</code> of the
  47134. job to:<p>
  47135. <ol>
  47136. <li>
  47137. Validate the input-specification of the job.
  47138. <li>
  47139. Split-up the input file(s) into logical {@link InputSplit}s, each of
  47140. which is then assigned to an individual {@link Mapper}.
  47141. </li>
  47142. <li>
  47143. Provide the {@link RecordReader} implementation to be used to glean
  47144. input records from the logical <code>InputSplit</code> for processing by
  47145. the {@link Mapper}.
  47146. </li>
  47147. </ol>
  47148. <p>The default behavior of file-based {@link InputFormat}s, typically
  47149. sub-classes of {@link FileInputFormat}, is to split the
  47150. input into <i>logical</i> {@link InputSplit}s based on the total size, in
  47151. bytes, of the input files. However, the {@link FileSystem} blocksize of
  47152. the input files is treated as an upper bound for input splits. A lower bound
  47153. on the split size can be set via
  47154. <a href="{@docRoot}/../mapred-default.html#mapred.min.split.size">
  47155. mapred.min.split.size</a>.</p>
  47156. <p>Clearly, logical splits based on input-size is insufficient for many
  47157. applications since record boundaries are to respected. In such cases, the
  47158. application has to also implement a {@link RecordReader} on whom lies the
  47159. responsibilty to respect record-boundaries and present a record-oriented
  47160. view of the logical <code>InputSplit</code> to the individual task.
  47161. @see InputSplit
  47162. @see RecordReader
  47163. @see JobClient
  47164. @see FileInputFormat]]>
  47165. </doc>
  47166. </interface>
  47167. <!-- end interface org.apache.hadoop.mapred.InputFormat -->
  47168. <!-- start interface org.apache.hadoop.mapred.InputSplit -->
  47169. <interface name="InputSplit" abstract="true"
  47170. static="false" final="false" visibility="public"
  47171. deprecated="not deprecated">
  47172. <implements name="org.apache.hadoop.io.Writable"/>
  47173. <method name="getLength" return="long"
  47174. abstract="false" native="false" synchronized="false"
  47175. static="false" final="false" visibility="public"
  47176. deprecated="not deprecated">
  47177. <exception name="IOException" type="java.io.IOException"/>
  47178. <doc>
  47179. <![CDATA[Get the total number of bytes in the data of the <code>InputSplit</code>.
  47180. @return the number of bytes in the input split.
  47181. @throws IOException]]>
  47182. </doc>
  47183. </method>
  47184. <method name="getLocations" return="java.lang.String[]"
  47185. abstract="false" native="false" synchronized="false"
  47186. static="false" final="false" visibility="public"
  47187. deprecated="not deprecated">
  47188. <exception name="IOException" type="java.io.IOException"/>
  47189. <doc>
  47190. <![CDATA[Get the list of hostnames where the input split is located.
  47191. @return list of hostnames where data of the <code>InputSplit</code> is
  47192. located as an array of <code>String</code>s.
  47193. @throws IOException]]>
  47194. </doc>
  47195. </method>
  47196. <doc>
  47197. <![CDATA[<code>InputSplit</code> represents the data to be processed by an
  47198. individual {@link Mapper}.
  47199. <p>Typically, it presents a byte-oriented view on the input and is the
  47200. responsibility of {@link RecordReader} of the job to process this and present
  47201. a record-oriented view.
  47202. @see InputFormat
  47203. @see RecordReader]]>
  47204. </doc>
  47205. </interface>
  47206. <!-- end interface org.apache.hadoop.mapred.InputSplit -->
  47207. <!-- start class org.apache.hadoop.mapred.InvalidFileTypeException -->
  47208. <class name="InvalidFileTypeException" extends="java.io.IOException"
  47209. abstract="false"
  47210. static="false" final="false" visibility="public"
  47211. deprecated="not deprecated">
  47212. <constructor name="InvalidFileTypeException"
  47213. static="false" final="false" visibility="public"
  47214. deprecated="not deprecated">
  47215. </constructor>
  47216. <constructor name="InvalidFileTypeException" type="java.lang.String"
  47217. static="false" final="false" visibility="public"
  47218. deprecated="not deprecated">
  47219. </constructor>
  47220. <doc>
  47221. <![CDATA[Used when file type differs from the desired file type. like
  47222. getting a file when a directory is expected. Or a wrong file type.]]>
  47223. </doc>
  47224. </class>
  47225. <!-- end class org.apache.hadoop.mapred.InvalidFileTypeException -->
  47226. <!-- start class org.apache.hadoop.mapred.InvalidInputException -->
  47227. <class name="InvalidInputException" extends="java.io.IOException"
  47228. abstract="false"
  47229. static="false" final="false" visibility="public"
  47230. deprecated="not deprecated">
  47231. <constructor name="InvalidInputException" type="java.util.List"
  47232. static="false" final="false" visibility="public"
  47233. deprecated="not deprecated">
  47234. <doc>
  47235. <![CDATA[Create the exception with the given list.
  47236. @param probs the list of problems to report. this list is not copied.]]>
  47237. </doc>
  47238. </constructor>
  47239. <method name="getProblems" return="java.util.List"
  47240. abstract="false" native="false" synchronized="false"
  47241. static="false" final="false" visibility="public"
  47242. deprecated="not deprecated">
  47243. <doc>
  47244. <![CDATA[Get the complete list of the problems reported.
  47245. @return the list of problems, which must not be modified]]>
  47246. </doc>
  47247. </method>
  47248. <method name="getMessage" return="java.lang.String"
  47249. abstract="false" native="false" synchronized="false"
  47250. static="false" final="false" visibility="public"
  47251. deprecated="not deprecated">
  47252. <doc>
  47253. <![CDATA[Get a summary message of the problems found.
  47254. @return the concatenated messages from all of the problems.]]>
  47255. </doc>
  47256. </method>
  47257. <doc>
  47258. <![CDATA[This class wraps a list of problems with the input, so that the user
  47259. can get a list of problems together instead of finding and fixing them one
  47260. by one.]]>
  47261. </doc>
  47262. </class>
  47263. <!-- end class org.apache.hadoop.mapred.InvalidInputException -->
  47264. <!-- start class org.apache.hadoop.mapred.InvalidJobConfException -->
  47265. <class name="InvalidJobConfException" extends="java.io.IOException"
  47266. abstract="false"
  47267. static="false" final="false" visibility="public"
  47268. deprecated="not deprecated">
  47269. <constructor name="InvalidJobConfException"
  47270. static="false" final="false" visibility="public"
  47271. deprecated="not deprecated">
  47272. </constructor>
  47273. <constructor name="InvalidJobConfException" type="java.lang.String"
  47274. static="false" final="false" visibility="public"
  47275. deprecated="not deprecated">
  47276. </constructor>
  47277. <constructor name="InvalidJobConfException" type="java.lang.String, java.lang.Throwable"
  47278. static="false" final="false" visibility="public"
  47279. deprecated="not deprecated">
  47280. </constructor>
  47281. <constructor name="InvalidJobConfException" type="java.lang.Throwable"
  47282. static="false" final="false" visibility="public"
  47283. deprecated="not deprecated">
  47284. </constructor>
  47285. <doc>
  47286. <![CDATA[This exception is thrown when jobconf misses some mendatory attributes
  47287. or value of some attributes is invalid.]]>
  47288. </doc>
  47289. </class>
  47290. <!-- end class org.apache.hadoop.mapred.InvalidJobConfException -->
  47291. <!-- start class org.apache.hadoop.mapred.IsolationRunner -->
  47292. <class name="IsolationRunner" extends="java.lang.Object"
  47293. abstract="false"
  47294. static="false" final="false" visibility="public"
  47295. deprecated="not deprecated">
  47296. <constructor name="IsolationRunner"
  47297. static="false" final="false" visibility="public"
  47298. deprecated="not deprecated">
  47299. </constructor>
  47300. <method name="main"
  47301. abstract="false" native="false" synchronized="false"
  47302. static="true" final="false" visibility="public"
  47303. deprecated="not deprecated">
  47304. <param name="args" type="java.lang.String[]"/>
  47305. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  47306. <exception name="IOException" type="java.io.IOException"/>
  47307. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  47308. <doc>
  47309. <![CDATA[Run a single task.
  47310. @param args the first argument is the task directory]]>
  47311. </doc>
  47312. </method>
  47313. <doc>
  47314. <![CDATA[IsolationRunner is intended to facilitate debugging by re-running a specific
  47315. task, given left-over task files for a (typically failed) past job.
  47316. Currently, it is limited to re-running map tasks.
  47317. Users may coerce MapReduce to keep task files around by setting
  47318. keep.failed.task.files. See mapred_tutorial.xml for more documentation.]]>
  47319. </doc>
  47320. </class>
  47321. <!-- end class org.apache.hadoop.mapred.IsolationRunner -->
  47322. <!-- start class org.apache.hadoop.mapred.JobClient -->
  47323. <class name="JobClient" extends="org.apache.hadoop.conf.Configured"
  47324. abstract="false"
  47325. static="false" final="false" visibility="public"
  47326. deprecated="not deprecated">
  47327. <implements name="org.apache.hadoop.mapred.MRConstants"/>
  47328. <implements name="org.apache.hadoop.util.Tool"/>
  47329. <constructor name="JobClient"
  47330. static="false" final="false" visibility="public"
  47331. deprecated="not deprecated">
  47332. <doc>
  47333. <![CDATA[Create a job client.]]>
  47334. </doc>
  47335. </constructor>
  47336. <constructor name="JobClient" type="org.apache.hadoop.mapred.JobConf"
  47337. static="false" final="false" visibility="public"
  47338. deprecated="not deprecated">
  47339. <exception name="IOException" type="java.io.IOException"/>
  47340. <doc>
  47341. <![CDATA[Build a job client with the given {@link JobConf}, and connect to the
  47342. default {@link JobTracker}.
  47343. @param conf the job configuration.
  47344. @throws IOException]]>
  47345. </doc>
  47346. </constructor>
  47347. <constructor name="JobClient" type="java.net.InetSocketAddress, org.apache.hadoop.conf.Configuration"
  47348. static="false" final="false" visibility="public"
  47349. deprecated="not deprecated">
  47350. <exception name="IOException" type="java.io.IOException"/>
  47351. <doc>
  47352. <![CDATA[Build a job client, connect to the indicated job tracker.
  47353. @param jobTrackAddr the job tracker to connect to.
  47354. @param conf configuration.]]>
  47355. </doc>
  47356. </constructor>
  47357. <method name="init"
  47358. abstract="false" native="false" synchronized="false"
  47359. static="false" final="false" visibility="public"
  47360. deprecated="not deprecated">
  47361. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  47362. <exception name="IOException" type="java.io.IOException"/>
  47363. <doc>
  47364. <![CDATA[Connect to the default {@link JobTracker}.
  47365. @param conf the job configuration.
  47366. @throws IOException]]>
  47367. </doc>
  47368. </method>
  47369. <method name="close"
  47370. abstract="false" native="false" synchronized="true"
  47371. static="false" final="false" visibility="public"
  47372. deprecated="not deprecated">
  47373. <exception name="IOException" type="java.io.IOException"/>
  47374. <doc>
  47375. <![CDATA[Close the <code>JobClient</code>.]]>
  47376. </doc>
  47377. </method>
  47378. <method name="getFs" return="org.apache.hadoop.fs.FileSystem"
  47379. abstract="false" native="false" synchronized="true"
  47380. static="false" final="false" visibility="public"
  47381. deprecated="not deprecated">
  47382. <exception name="IOException" type="java.io.IOException"/>
  47383. <doc>
  47384. <![CDATA[Get a filesystem handle. We need this to prepare jobs
  47385. for submission to the MapReduce system.
  47386. @return the filesystem handle.
  47387. @throws IOException]]>
  47388. </doc>
  47389. </method>
  47390. <method name="submitJob" return="org.apache.hadoop.mapred.RunningJob"
  47391. abstract="false" native="false" synchronized="false"
  47392. static="false" final="false" visibility="public"
  47393. deprecated="not deprecated">
  47394. <param name="jobFile" type="java.lang.String"/>
  47395. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  47396. <exception name="InvalidJobConfException" type="org.apache.hadoop.mapred.InvalidJobConfException"/>
  47397. <exception name="IOException" type="java.io.IOException"/>
  47398. <doc>
  47399. <![CDATA[Submit a job to the MR system.
  47400. This returns a handle to the {@link RunningJob} which can be used to track
  47401. the running-job.
  47402. @param jobFile the job configuration.
  47403. @return a handle to the {@link RunningJob} which can be used to track the
  47404. running-job.
  47405. @throws FileNotFoundException
  47406. @throws InvalidJobConfException
  47407. @throws IOException]]>
  47408. </doc>
  47409. </method>
  47410. <method name="submitJob" return="org.apache.hadoop.mapred.RunningJob"
  47411. abstract="false" native="false" synchronized="false"
  47412. static="false" final="false" visibility="public"
  47413. deprecated="not deprecated">
  47414. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  47415. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  47416. <exception name="IOException" type="java.io.IOException"/>
  47417. <doc>
  47418. <![CDATA[Submit a job to the MR system.
  47419. This returns a handle to the {@link RunningJob} which can be used to track
  47420. the running-job.
  47421. @param job the job configuration.
  47422. @return a handle to the {@link RunningJob} which can be used to track the
  47423. running-job.
  47424. @throws FileNotFoundException
  47425. @throws IOException]]>
  47426. </doc>
  47427. </method>
  47428. <method name="submitJobInternal" return="org.apache.hadoop.mapred.RunningJob"
  47429. abstract="false" native="false" synchronized="false"
  47430. static="false" final="false" visibility="public"
  47431. deprecated="not deprecated">
  47432. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  47433. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  47434. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  47435. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  47436. <exception name="IOException" type="java.io.IOException"/>
  47437. <doc>
  47438. <![CDATA[Internal method for submitting jobs to the system.
  47439. @param job the configuration to submit
  47440. @return a proxy object for the running job
  47441. @throws FileNotFoundException
  47442. @throws ClassNotFoundException
  47443. @throws InterruptedException
  47444. @throws IOException]]>
  47445. </doc>
  47446. </method>
  47447. <method name="isJobDirValid" return="boolean"
  47448. abstract="false" native="false" synchronized="false"
  47449. static="true" final="false" visibility="public"
  47450. deprecated="not deprecated">
  47451. <param name="jobDirPath" type="org.apache.hadoop.fs.Path"/>
  47452. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  47453. <exception name="IOException" type="java.io.IOException"/>
  47454. <doc>
  47455. <![CDATA[Checks if the job directory is clean and has all the required components
  47456. for (re) starting the job]]>
  47457. </doc>
  47458. </method>
  47459. <method name="getJob" return="org.apache.hadoop.mapred.RunningJob"
  47460. abstract="false" native="false" synchronized="false"
  47461. static="false" final="false" visibility="public"
  47462. deprecated="not deprecated">
  47463. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  47464. <exception name="IOException" type="java.io.IOException"/>
  47465. <doc>
  47466. <![CDATA[Get an {@link RunningJob} object to track an ongoing job. Returns
  47467. null if the id does not correspond to any known job.
  47468. @param jobid the jobid of the job.
  47469. @return the {@link RunningJob} handle to track the job, null if the
  47470. <code>jobid</code> doesn't correspond to any known job.
  47471. @throws IOException]]>
  47472. </doc>
  47473. </method>
  47474. <method name="getJob" return="org.apache.hadoop.mapred.RunningJob"
  47475. abstract="false" native="false" synchronized="false"
  47476. static="false" final="false" visibility="public"
  47477. deprecated="Applications should rather use {@link #getJob(JobID)}.">
  47478. <param name="jobid" type="java.lang.String"/>
  47479. <exception name="IOException" type="java.io.IOException"/>
  47480. <doc>
  47481. <![CDATA[@deprecated Applications should rather use {@link #getJob(JobID)}.]]>
  47482. </doc>
  47483. </method>
  47484. <method name="getMapTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  47485. abstract="false" native="false" synchronized="false"
  47486. static="false" final="false" visibility="public"
  47487. deprecated="not deprecated">
  47488. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  47489. <exception name="IOException" type="java.io.IOException"/>
  47490. <doc>
  47491. <![CDATA[Get the information of the current state of the map tasks of a job.
  47492. @param jobId the job to query.
  47493. @return the list of all of the map tips.
  47494. @throws IOException]]>
  47495. </doc>
  47496. </method>
  47497. <method name="getMapTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  47498. abstract="false" native="false" synchronized="false"
  47499. static="false" final="false" visibility="public"
  47500. deprecated="Applications should rather use {@link #getMapTaskReports(JobID)}">
  47501. <param name="jobId" type="java.lang.String"/>
  47502. <exception name="IOException" type="java.io.IOException"/>
  47503. <doc>
  47504. <![CDATA[@deprecated Applications should rather use {@link #getMapTaskReports(JobID)}]]>
  47505. </doc>
  47506. </method>
  47507. <method name="getReduceTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  47508. abstract="false" native="false" synchronized="false"
  47509. static="false" final="false" visibility="public"
  47510. deprecated="not deprecated">
  47511. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  47512. <exception name="IOException" type="java.io.IOException"/>
  47513. <doc>
  47514. <![CDATA[Get the information of the current state of the reduce tasks of a job.
  47515. @param jobId the job to query.
  47516. @return the list of all of the reduce tips.
  47517. @throws IOException]]>
  47518. </doc>
  47519. </method>
  47520. <method name="getCleanupTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  47521. abstract="false" native="false" synchronized="false"
  47522. static="false" final="false" visibility="public"
  47523. deprecated="not deprecated">
  47524. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  47525. <exception name="IOException" type="java.io.IOException"/>
  47526. <doc>
  47527. <![CDATA[Get the information of the current state of the cleanup tasks of a job.
  47528. @param jobId the job to query.
  47529. @return the list of all of the cleanup tips.
  47530. @throws IOException]]>
  47531. </doc>
  47532. </method>
  47533. <method name="getSetupTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  47534. abstract="false" native="false" synchronized="false"
  47535. static="false" final="false" visibility="public"
  47536. deprecated="not deprecated">
  47537. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  47538. <exception name="IOException" type="java.io.IOException"/>
  47539. <doc>
  47540. <![CDATA[Get the information of the current state of the setup tasks of a job.
  47541. @param jobId the job to query.
  47542. @return the list of all of the setup tips.
  47543. @throws IOException]]>
  47544. </doc>
  47545. </method>
  47546. <method name="getReduceTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  47547. abstract="false" native="false" synchronized="false"
  47548. static="false" final="false" visibility="public"
  47549. deprecated="Applications should rather use {@link #getReduceTaskReports(JobID)}">
  47550. <param name="jobId" type="java.lang.String"/>
  47551. <exception name="IOException" type="java.io.IOException"/>
  47552. <doc>
  47553. <![CDATA[@deprecated Applications should rather use {@link #getReduceTaskReports(JobID)}]]>
  47554. </doc>
  47555. </method>
  47556. <method name="displayTasks"
  47557. abstract="false" native="false" synchronized="false"
  47558. static="false" final="false" visibility="public"
  47559. deprecated="not deprecated">
  47560. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  47561. <param name="type" type="java.lang.String"/>
  47562. <param name="state" type="java.lang.String"/>
  47563. <exception name="IOException" type="java.io.IOException"/>
  47564. <doc>
  47565. <![CDATA[Display the information about a job's tasks, of a particular type and
  47566. in a particular state
  47567. @param jobId the ID of the job
  47568. @param type the type of the task (map/reduce/setup/cleanup)
  47569. @param state the state of the task
  47570. (pending/running/completed/failed/killed)]]>
  47571. </doc>
  47572. </method>
  47573. <method name="getClusterStatus" return="org.apache.hadoop.mapred.ClusterStatus"
  47574. abstract="false" native="false" synchronized="false"
  47575. static="false" final="false" visibility="public"
  47576. deprecated="not deprecated">
  47577. <exception name="IOException" type="java.io.IOException"/>
  47578. <doc>
  47579. <![CDATA[Get status information about the Map-Reduce cluster.
  47580. @return the status information about the Map-Reduce cluster as an object
  47581. of {@link ClusterStatus}.
  47582. @throws IOException]]>
  47583. </doc>
  47584. </method>
  47585. <method name="getClusterStatus" return="org.apache.hadoop.mapred.ClusterStatus"
  47586. abstract="false" native="false" synchronized="false"
  47587. static="false" final="false" visibility="public"
  47588. deprecated="not deprecated">
  47589. <param name="detailed" type="boolean"/>
  47590. <exception name="IOException" type="java.io.IOException"/>
  47591. <doc>
  47592. <![CDATA[Get status information about the Map-Reduce cluster.
  47593. @param detailed if true then get a detailed status including the
  47594. tracker names and memory usage of the JobTracker
  47595. @return the status information about the Map-Reduce cluster as an object
  47596. of {@link ClusterStatus}.
  47597. @throws IOException]]>
  47598. </doc>
  47599. </method>
  47600. <method name="getStagingAreaDir" return="org.apache.hadoop.fs.Path"
  47601. abstract="false" native="false" synchronized="false"
  47602. static="false" final="false" visibility="public"
  47603. deprecated="not deprecated">
  47604. <exception name="IOException" type="java.io.IOException"/>
  47605. <doc>
  47606. <![CDATA[Grab the jobtracker's view of the staging directory path where
  47607. job-specific files will be placed.
  47608. @return the staging directory where job-specific files are to be placed.]]>
  47609. </doc>
  47610. </method>
  47611. <method name="jobsToComplete" return="org.apache.hadoop.mapred.JobStatus[]"
  47612. abstract="false" native="false" synchronized="false"
  47613. static="false" final="false" visibility="public"
  47614. deprecated="not deprecated">
  47615. <exception name="IOException" type="java.io.IOException"/>
  47616. <doc>
  47617. <![CDATA[Get the jobs that are not completed and not failed.
  47618. @return array of {@link JobStatus} for the running/to-be-run jobs.
  47619. @throws IOException]]>
  47620. </doc>
  47621. </method>
  47622. <method name="getAllJobs" return="org.apache.hadoop.mapred.JobStatus[]"
  47623. abstract="false" native="false" synchronized="false"
  47624. static="false" final="false" visibility="public"
  47625. deprecated="not deprecated">
  47626. <exception name="IOException" type="java.io.IOException"/>
  47627. <doc>
  47628. <![CDATA[Get the jobs that are submitted.
  47629. @return array of {@link JobStatus} for the submitted jobs.
  47630. @throws IOException]]>
  47631. </doc>
  47632. </method>
  47633. <method name="runJob" return="org.apache.hadoop.mapred.RunningJob"
  47634. abstract="false" native="false" synchronized="false"
  47635. static="true" final="false" visibility="public"
  47636. deprecated="not deprecated">
  47637. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  47638. <exception name="IOException" type="java.io.IOException"/>
  47639. <doc>
  47640. <![CDATA[Utility that submits a job, then polls for progress until the job is
  47641. complete.
  47642. @param job the job configuration.
  47643. @throws IOException if the job fails]]>
  47644. </doc>
  47645. </method>
  47646. <method name="monitorAndPrintJob" return="boolean"
  47647. abstract="false" native="false" synchronized="false"
  47648. static="false" final="false" visibility="public"
  47649. deprecated="not deprecated">
  47650. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  47651. <param name="job" type="org.apache.hadoop.mapred.RunningJob"/>
  47652. <exception name="IOException" type="java.io.IOException"/>
  47653. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  47654. <doc>
  47655. <![CDATA[Monitor a job and print status in real-time as progress is made and tasks
  47656. fail.
  47657. @param conf the job's configuration
  47658. @param job the job to track
  47659. @return true if the job succeeded
  47660. @throws IOException if communication to the JobTracker fails]]>
  47661. </doc>
  47662. </method>
  47663. <method name="setTaskOutputFilter"
  47664. abstract="false" native="false" synchronized="false"
  47665. static="false" final="false" visibility="public"
  47666. deprecated="not deprecated">
  47667. <param name="newValue" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"/>
  47668. <doc>
  47669. <![CDATA[Sets the output filter for tasks. only those tasks are printed whose
  47670. output matches the filter.
  47671. @param newValue task filter.]]>
  47672. </doc>
  47673. </method>
  47674. <method name="getTaskOutputFilter" return="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  47675. abstract="false" native="false" synchronized="false"
  47676. static="true" final="false" visibility="public"
  47677. deprecated="not deprecated">
  47678. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  47679. <doc>
  47680. <![CDATA[Get the task output filter out of the JobConf.
  47681. @param job the JobConf to examine.
  47682. @return the filter level.]]>
  47683. </doc>
  47684. </method>
  47685. <method name="setTaskOutputFilter"
  47686. abstract="false" native="false" synchronized="false"
  47687. static="true" final="false" visibility="public"
  47688. deprecated="not deprecated">
  47689. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  47690. <param name="newValue" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"/>
  47691. <doc>
  47692. <![CDATA[Modify the JobConf to set the task output filter.
  47693. @param job the JobConf to modify.
  47694. @param newValue the value to set.]]>
  47695. </doc>
  47696. </method>
  47697. <method name="getTaskOutputFilter" return="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  47698. abstract="false" native="false" synchronized="false"
  47699. static="false" final="false" visibility="public"
  47700. deprecated="not deprecated">
  47701. <doc>
  47702. <![CDATA[Returns task output filter.
  47703. @return task filter.]]>
  47704. </doc>
  47705. </method>
  47706. <method name="run" return="int"
  47707. abstract="false" native="false" synchronized="false"
  47708. static="false" final="false" visibility="public"
  47709. deprecated="not deprecated">
  47710. <param name="argv" type="java.lang.String[]"/>
  47711. <exception name="Exception" type="java.lang.Exception"/>
  47712. </method>
  47713. <method name="getDefaultMaps" return="int"
  47714. abstract="false" native="false" synchronized="false"
  47715. static="false" final="false" visibility="public"
  47716. deprecated="not deprecated">
  47717. <exception name="IOException" type="java.io.IOException"/>
  47718. <doc>
  47719. <![CDATA[Get status information about the max available Maps in the cluster.
  47720. @return the max available Maps in the cluster
  47721. @throws IOException]]>
  47722. </doc>
  47723. </method>
  47724. <method name="getDefaultReduces" return="int"
  47725. abstract="false" native="false" synchronized="false"
  47726. static="false" final="false" visibility="public"
  47727. deprecated="not deprecated">
  47728. <exception name="IOException" type="java.io.IOException"/>
  47729. <doc>
  47730. <![CDATA[Get status information about the max available Reduces in the cluster.
  47731. @return the max available Reduces in the cluster
  47732. @throws IOException]]>
  47733. </doc>
  47734. </method>
  47735. <method name="getSystemDir" return="org.apache.hadoop.fs.Path"
  47736. abstract="false" native="false" synchronized="false"
  47737. static="false" final="false" visibility="public"
  47738. deprecated="not deprecated">
  47739. <doc>
  47740. <![CDATA[Grab the jobtracker system directory path where job-specific files are to be placed.
  47741. @return the system directory where job-specific files are to be placed.]]>
  47742. </doc>
  47743. </method>
  47744. <method name="getQueues" return="org.apache.hadoop.mapred.JobQueueInfo[]"
  47745. abstract="false" native="false" synchronized="false"
  47746. static="false" final="false" visibility="public"
  47747. deprecated="not deprecated">
  47748. <exception name="IOException" type="java.io.IOException"/>
  47749. <doc>
  47750. <![CDATA[Return an array of queue information objects about all the Job Queues
  47751. configured.
  47752. @return Array of JobQueueInfo objects
  47753. @throws IOException]]>
  47754. </doc>
  47755. </method>
  47756. <method name="getJobsFromQueue" return="org.apache.hadoop.mapred.JobStatus[]"
  47757. abstract="false" native="false" synchronized="false"
  47758. static="false" final="false" visibility="public"
  47759. deprecated="not deprecated">
  47760. <param name="queueName" type="java.lang.String"/>
  47761. <exception name="IOException" type="java.io.IOException"/>
  47762. <doc>
  47763. <![CDATA[Gets all the jobs which were added to particular Job Queue
  47764. @param queueName name of the Job Queue
  47765. @return Array of jobs present in the job queue
  47766. @throws IOException]]>
  47767. </doc>
  47768. </method>
  47769. <method name="getQueueInfo" return="org.apache.hadoop.mapred.JobQueueInfo"
  47770. abstract="false" native="false" synchronized="false"
  47771. static="false" final="false" visibility="public"
  47772. deprecated="not deprecated">
  47773. <param name="queueName" type="java.lang.String"/>
  47774. <exception name="IOException" type="java.io.IOException"/>
  47775. <doc>
  47776. <![CDATA[Gets the queue information associated to a particular Job Queue
  47777. @param queueName name of the job queue.
  47778. @return Queue information associated to particular queue.
  47779. @throws IOException]]>
  47780. </doc>
  47781. </method>
  47782. <method name="getQueueAclsForCurrentUser" return="org.apache.hadoop.mapred.QueueAclsInfo[]"
  47783. abstract="false" native="false" synchronized="false"
  47784. static="false" final="false" visibility="public"
  47785. deprecated="not deprecated">
  47786. <exception name="IOException" type="java.io.IOException"/>
  47787. <doc>
  47788. <![CDATA[Gets the Queue ACLs for current user
  47789. @return array of QueueAclsInfo object for current user.
  47790. @throws IOException]]>
  47791. </doc>
  47792. </method>
  47793. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  47794. abstract="false" native="false" synchronized="false"
  47795. static="false" final="false" visibility="public"
  47796. deprecated="not deprecated">
  47797. <param name="renewer" type="org.apache.hadoop.io.Text"/>
  47798. <exception name="IOException" type="java.io.IOException"/>
  47799. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  47800. </method>
  47801. <method name="renewDelegationToken" return="long"
  47802. abstract="false" native="false" synchronized="false"
  47803. static="false" final="false" visibility="public"
  47804. deprecated="not deprecated">
  47805. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  47806. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  47807. <exception name="IOException" type="java.io.IOException"/>
  47808. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  47809. <doc>
  47810. <![CDATA[Renew a delegation token
  47811. @param token the token to renew
  47812. @return the new expiration time
  47813. @throws InvalidToken
  47814. @throws IOException]]>
  47815. </doc>
  47816. </method>
  47817. <method name="cancelDelegationToken"
  47818. abstract="false" native="false" synchronized="false"
  47819. static="false" final="false" visibility="public"
  47820. deprecated="not deprecated">
  47821. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  47822. <exception name="IOException" type="java.io.IOException"/>
  47823. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  47824. <doc>
  47825. <![CDATA[Cancel a delegation token from the JobTracker
  47826. @param token the token to cancel
  47827. @throws IOException]]>
  47828. </doc>
  47829. </method>
  47830. <method name="main"
  47831. abstract="false" native="false" synchronized="false"
  47832. static="true" final="false" visibility="public"
  47833. deprecated="not deprecated">
  47834. <param name="argv" type="java.lang.String[]"/>
  47835. <exception name="Exception" type="java.lang.Exception"/>
  47836. </method>
  47837. <field name="MAPREDUCE_CLIENT_RETRY_POLICY_ENABLED_KEY" type="java.lang.String"
  47838. transient="false" volatile="false"
  47839. static="true" final="true" visibility="public"
  47840. deprecated="not deprecated">
  47841. </field>
  47842. <field name="MAPREDUCE_CLIENT_RETRY_POLICY_ENABLED_DEFAULT" type="boolean"
  47843. transient="false" volatile="false"
  47844. static="true" final="true" visibility="public"
  47845. deprecated="not deprecated">
  47846. </field>
  47847. <field name="MAPREDUCE_CLIENT_RETRY_POLICY_SPEC_KEY" type="java.lang.String"
  47848. transient="false" volatile="false"
  47849. static="true" final="true" visibility="public"
  47850. deprecated="not deprecated">
  47851. </field>
  47852. <field name="MAPREDUCE_CLIENT_RETRY_POLICY_SPEC_DEFAULT" type="java.lang.String"
  47853. transient="false" volatile="false"
  47854. static="true" final="true" visibility="public"
  47855. deprecated="not deprecated">
  47856. </field>
  47857. <doc>
  47858. <![CDATA[<code>JobClient</code> is the primary interface for the user-job to interact
  47859. with the {@link JobTracker}.
  47860. <code>JobClient</code> provides facilities to submit jobs, track their
  47861. progress, access component-tasks' reports/logs, get the Map-Reduce cluster
  47862. status information etc.
  47863. <p>The job submission process involves:
  47864. <ol>
  47865. <li>
  47866. Checking the input and output specifications of the job.
  47867. </li>
  47868. <li>
  47869. Computing the {@link InputSplit}s for the job.
  47870. </li>
  47871. <li>
  47872. Setup the requisite accounting information for the {@link DistributedCache}
  47873. of the job, if necessary.
  47874. </li>
  47875. <li>
  47876. Copying the job's jar and configuration to the map-reduce system directory
  47877. on the distributed file-system.
  47878. </li>
  47879. <li>
  47880. Submitting the job to the <code>JobTracker</code> and optionally monitoring
  47881. it's status.
  47882. </li>
  47883. </ol></p>
  47884. Normally the user creates the application, describes various facets of the
  47885. job via {@link JobConf} and then uses the <code>JobClient</code> to submit
  47886. the job and monitor its progress.
  47887. <p>Here is an example on how to use <code>JobClient</code>:</p>
  47888. <p><blockquote><pre>
  47889. // Create a new JobConf
  47890. JobConf job = new JobConf(new Configuration(), MyJob.class);
  47891. // Specify various job-specific parameters
  47892. job.setJobName("myjob");
  47893. job.setInputPath(new Path("in"));
  47894. job.setOutputPath(new Path("out"));
  47895. job.setMapperClass(MyJob.MyMapper.class);
  47896. job.setReducerClass(MyJob.MyReducer.class);
  47897. // Submit the job, then poll for progress until the job is complete
  47898. JobClient.runJob(job);
  47899. </pre></blockquote></p>
  47900. <h4 id="JobControl">Job Control</h4>
  47901. <p>At times clients would chain map-reduce jobs to accomplish complex tasks
  47902. which cannot be done via a single map-reduce job. This is fairly easy since
  47903. the output of the job, typically, goes to distributed file-system and that
  47904. can be used as the input for the next job.</p>
  47905. <p>However, this also means that the onus on ensuring jobs are complete
  47906. (success/failure) lies squarely on the clients. In such situations the
  47907. various job-control options are:
  47908. <ol>
  47909. <li>
  47910. {@link #runJob(JobConf)} : submits the job and returns only after
  47911. the job has completed.
  47912. </li>
  47913. <li>
  47914. {@link #submitJob(JobConf)} : only submits the job, then poll the
  47915. returned handle to the {@link RunningJob} to query status and make
  47916. scheduling decisions.
  47917. </li>
  47918. <li>
  47919. {@link JobConf#setJobEndNotificationURI(String)} : setup a notification
  47920. on job-completion, thus avoiding polling.
  47921. </li>
  47922. </ol></p>
  47923. @see JobConf
  47924. @see ClusterStatus
  47925. @see Tool
  47926. @see DistributedCache]]>
  47927. </doc>
  47928. </class>
  47929. <!-- end class org.apache.hadoop.mapred.JobClient -->
  47930. <!-- start class org.apache.hadoop.mapred.JobClient.Renewer -->
  47931. <class name="JobClient.Renewer" extends="org.apache.hadoop.security.token.TokenRenewer"
  47932. abstract="false"
  47933. static="true" final="false" visibility="public"
  47934. deprecated="not deprecated">
  47935. <constructor name="JobClient.Renewer"
  47936. static="false" final="false" visibility="public"
  47937. deprecated="not deprecated">
  47938. </constructor>
  47939. <method name="handleKind" return="boolean"
  47940. abstract="false" native="false" synchronized="false"
  47941. static="false" final="false" visibility="public"
  47942. deprecated="not deprecated">
  47943. <param name="kind" type="org.apache.hadoop.io.Text"/>
  47944. </method>
  47945. <method name="renew" return="long"
  47946. abstract="false" native="false" synchronized="false"
  47947. static="false" final="false" visibility="public"
  47948. deprecated="not deprecated">
  47949. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  47950. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  47951. <exception name="IOException" type="java.io.IOException"/>
  47952. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  47953. </method>
  47954. <method name="cancel"
  47955. abstract="false" native="false" synchronized="false"
  47956. static="false" final="false" visibility="public"
  47957. deprecated="not deprecated">
  47958. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  47959. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  47960. <exception name="IOException" type="java.io.IOException"/>
  47961. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  47962. </method>
  47963. <method name="isManaged" return="boolean"
  47964. abstract="false" native="false" synchronized="false"
  47965. static="false" final="false" visibility="public"
  47966. deprecated="not deprecated">
  47967. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  47968. <exception name="IOException" type="java.io.IOException"/>
  47969. </method>
  47970. </class>
  47971. <!-- end class org.apache.hadoop.mapred.JobClient.Renewer -->
  47972. <!-- start class org.apache.hadoop.mapred.JobClient.TaskStatusFilter -->
  47973. <class name="JobClient.TaskStatusFilter" extends="java.lang.Enum"
  47974. abstract="false"
  47975. static="true" final="true" visibility="public"
  47976. deprecated="not deprecated">
  47977. <method name="values" return="org.apache.hadoop.mapred.JobClient.TaskStatusFilter[]"
  47978. abstract="false" native="false" synchronized="false"
  47979. static="true" final="false" visibility="public"
  47980. deprecated="not deprecated">
  47981. </method>
  47982. <method name="valueOf" return="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  47983. abstract="false" native="false" synchronized="false"
  47984. static="true" final="false" visibility="public"
  47985. deprecated="not deprecated">
  47986. <param name="name" type="java.lang.String"/>
  47987. </method>
  47988. <field name="NONE" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  47989. transient="false" volatile="false"
  47990. static="true" final="true" visibility="public"
  47991. deprecated="not deprecated">
  47992. </field>
  47993. <field name="KILLED" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  47994. transient="false" volatile="false"
  47995. static="true" final="true" visibility="public"
  47996. deprecated="not deprecated">
  47997. </field>
  47998. <field name="FAILED" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  47999. transient="false" volatile="false"
  48000. static="true" final="true" visibility="public"
  48001. deprecated="not deprecated">
  48002. </field>
  48003. <field name="SUCCEEDED" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  48004. transient="false" volatile="false"
  48005. static="true" final="true" visibility="public"
  48006. deprecated="not deprecated">
  48007. </field>
  48008. <field name="ALL" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  48009. transient="false" volatile="false"
  48010. static="true" final="true" visibility="public"
  48011. deprecated="not deprecated">
  48012. </field>
  48013. </class>
  48014. <!-- end class org.apache.hadoop.mapred.JobClient.TaskStatusFilter -->
  48015. <!-- start class org.apache.hadoop.mapred.JobConf -->
  48016. <class name="JobConf" extends="org.apache.hadoop.conf.Configuration"
  48017. abstract="false"
  48018. static="false" final="false" visibility="public"
  48019. deprecated="not deprecated">
  48020. <constructor name="JobConf"
  48021. static="false" final="false" visibility="public"
  48022. deprecated="not deprecated">
  48023. <doc>
  48024. <![CDATA[Construct a map/reduce job configuration.]]>
  48025. </doc>
  48026. </constructor>
  48027. <constructor name="JobConf" type="java.lang.Class"
  48028. static="false" final="false" visibility="public"
  48029. deprecated="not deprecated">
  48030. <doc>
  48031. <![CDATA[Construct a map/reduce job configuration.
  48032. @param exampleClass a class whose containing jar is used as the job's jar.]]>
  48033. </doc>
  48034. </constructor>
  48035. <constructor name="JobConf" type="org.apache.hadoop.conf.Configuration"
  48036. static="false" final="false" visibility="public"
  48037. deprecated="not deprecated">
  48038. <doc>
  48039. <![CDATA[Construct a map/reduce job configuration.
  48040. @param conf a Configuration whose settings will be inherited.]]>
  48041. </doc>
  48042. </constructor>
  48043. <constructor name="JobConf" type="org.apache.hadoop.conf.Configuration, java.lang.Class"
  48044. static="false" final="false" visibility="public"
  48045. deprecated="not deprecated">
  48046. <doc>
  48047. <![CDATA[Construct a map/reduce job configuration.
  48048. @param conf a Configuration whose settings will be inherited.
  48049. @param exampleClass a class whose containing jar is used as the job's jar.]]>
  48050. </doc>
  48051. </constructor>
  48052. <constructor name="JobConf" type="java.lang.String"
  48053. static="false" final="false" visibility="public"
  48054. deprecated="not deprecated">
  48055. <doc>
  48056. <![CDATA[Construct a map/reduce configuration.
  48057. @param config a Configuration-format XML job description file.]]>
  48058. </doc>
  48059. </constructor>
  48060. <constructor name="JobConf" type="org.apache.hadoop.fs.Path"
  48061. static="false" final="false" visibility="public"
  48062. deprecated="not deprecated">
  48063. <doc>
  48064. <![CDATA[Construct a map/reduce configuration.
  48065. @param config a Configuration-format XML job description file.]]>
  48066. </doc>
  48067. </constructor>
  48068. <constructor name="JobConf" type="boolean"
  48069. static="false" final="false" visibility="public"
  48070. deprecated="not deprecated">
  48071. <doc>
  48072. <![CDATA[A new map/reduce configuration where the behavior of reading from the
  48073. default resources can be turned off.
  48074. <p/>
  48075. If the parameter {@code loadDefaults} is false, the new instance
  48076. will not load resources from the default files.
  48077. @param loadDefaults specifies whether to load from the default files]]>
  48078. </doc>
  48079. </constructor>
  48080. <method name="getCredentials" return="org.apache.hadoop.security.Credentials"
  48081. abstract="false" native="false" synchronized="false"
  48082. static="false" final="false" visibility="public"
  48083. deprecated="not deprecated">
  48084. <doc>
  48085. <![CDATA[Get credentials for the job.
  48086. @return credentials for the job]]>
  48087. </doc>
  48088. </method>
  48089. <method name="getJar" return="java.lang.String"
  48090. abstract="false" native="false" synchronized="false"
  48091. static="false" final="false" visibility="public"
  48092. deprecated="not deprecated">
  48093. <doc>
  48094. <![CDATA[Get the user jar for the map-reduce job.
  48095. @return the user jar for the map-reduce job.]]>
  48096. </doc>
  48097. </method>
  48098. <method name="setJar"
  48099. abstract="false" native="false" synchronized="false"
  48100. static="false" final="false" visibility="public"
  48101. deprecated="not deprecated">
  48102. <param name="jar" type="java.lang.String"/>
  48103. <doc>
  48104. <![CDATA[Set the user jar for the map-reduce job.
  48105. @param jar the user jar for the map-reduce job.]]>
  48106. </doc>
  48107. </method>
  48108. <method name="setJarByClass"
  48109. abstract="false" native="false" synchronized="false"
  48110. static="false" final="false" visibility="public"
  48111. deprecated="not deprecated">
  48112. <param name="cls" type="java.lang.Class"/>
  48113. <doc>
  48114. <![CDATA[Set the job's jar file by finding an example class location.
  48115. @param cls the example class.]]>
  48116. </doc>
  48117. </method>
  48118. <method name="getLocalDirs" return="java.lang.String[]"
  48119. abstract="false" native="false" synchronized="false"
  48120. static="false" final="false" visibility="public"
  48121. deprecated="not deprecated">
  48122. <exception name="IOException" type="java.io.IOException"/>
  48123. </method>
  48124. <method name="deleteLocalFiles"
  48125. abstract="false" native="false" synchronized="false"
  48126. static="false" final="false" visibility="public"
  48127. deprecated="not deprecated">
  48128. <exception name="IOException" type="java.io.IOException"/>
  48129. </method>
  48130. <method name="deleteLocalFiles"
  48131. abstract="false" native="false" synchronized="false"
  48132. static="false" final="false" visibility="public"
  48133. deprecated="not deprecated">
  48134. <param name="subdir" type="java.lang.String"/>
  48135. <exception name="IOException" type="java.io.IOException"/>
  48136. </method>
  48137. <method name="getLocalPath" return="org.apache.hadoop.fs.Path"
  48138. abstract="false" native="false" synchronized="false"
  48139. static="false" final="false" visibility="public"
  48140. deprecated="not deprecated">
  48141. <param name="pathString" type="java.lang.String"/>
  48142. <exception name="IOException" type="java.io.IOException"/>
  48143. <doc>
  48144. <![CDATA[Constructs a local file name. Files are distributed among configured
  48145. local directories.]]>
  48146. </doc>
  48147. </method>
  48148. <method name="getUser" return="java.lang.String"
  48149. abstract="false" native="false" synchronized="false"
  48150. static="false" final="false" visibility="public"
  48151. deprecated="not deprecated">
  48152. <doc>
  48153. <![CDATA[Get the reported username for this job.
  48154. @return the username]]>
  48155. </doc>
  48156. </method>
  48157. <method name="setUser"
  48158. abstract="false" native="false" synchronized="false"
  48159. static="false" final="false" visibility="public"
  48160. deprecated="not deprecated">
  48161. <param name="user" type="java.lang.String"/>
  48162. <doc>
  48163. <![CDATA[Set the reported username for this job.
  48164. @param user the username for this job.]]>
  48165. </doc>
  48166. </method>
  48167. <method name="setKeepFailedTaskFiles"
  48168. abstract="false" native="false" synchronized="false"
  48169. static="false" final="false" visibility="public"
  48170. deprecated="not deprecated">
  48171. <param name="keep" type="boolean"/>
  48172. <doc>
  48173. <![CDATA[Set whether the framework should keep the intermediate files for
  48174. failed tasks.
  48175. @param keep <code>true</code> if framework should keep the intermediate files
  48176. for failed tasks, <code>false</code> otherwise.]]>
  48177. </doc>
  48178. </method>
  48179. <method name="getKeepFailedTaskFiles" return="boolean"
  48180. abstract="false" native="false" synchronized="false"
  48181. static="false" final="false" visibility="public"
  48182. deprecated="not deprecated">
  48183. <doc>
  48184. <![CDATA[Should the temporary files for failed tasks be kept?
  48185. @return should the files be kept?]]>
  48186. </doc>
  48187. </method>
  48188. <method name="setKeepTaskFilesPattern"
  48189. abstract="false" native="false" synchronized="false"
  48190. static="false" final="false" visibility="public"
  48191. deprecated="not deprecated">
  48192. <param name="pattern" type="java.lang.String"/>
  48193. <doc>
  48194. <![CDATA[Set a regular expression for task names that should be kept.
  48195. The regular expression ".*_m_000123_0" would keep the files
  48196. for the first instance of map 123 that ran.
  48197. @param pattern the java.util.regex.Pattern to match against the
  48198. task names.]]>
  48199. </doc>
  48200. </method>
  48201. <method name="getKeepTaskFilesPattern" return="java.lang.String"
  48202. abstract="false" native="false" synchronized="false"
  48203. static="false" final="false" visibility="public"
  48204. deprecated="not deprecated">
  48205. <doc>
  48206. <![CDATA[Get the regular expression that is matched against the task names
  48207. to see if we need to keep the files.
  48208. @return the pattern as a string, if it was set, othewise null.]]>
  48209. </doc>
  48210. </method>
  48211. <method name="setWorkingDirectory"
  48212. abstract="false" native="false" synchronized="false"
  48213. static="false" final="false" visibility="public"
  48214. deprecated="not deprecated">
  48215. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  48216. <doc>
  48217. <![CDATA[Set the current working directory for the default file system.
  48218. @param dir the new current working directory.]]>
  48219. </doc>
  48220. </method>
  48221. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  48222. abstract="false" native="false" synchronized="false"
  48223. static="false" final="false" visibility="public"
  48224. deprecated="not deprecated">
  48225. <doc>
  48226. <![CDATA[Get the current working directory for the default file system.
  48227. @return the directory name.]]>
  48228. </doc>
  48229. </method>
  48230. <method name="setNumTasksToExecutePerJvm"
  48231. abstract="false" native="false" synchronized="false"
  48232. static="false" final="false" visibility="public"
  48233. deprecated="not deprecated">
  48234. <param name="numTasks" type="int"/>
  48235. <doc>
  48236. <![CDATA[Sets the number of tasks that a spawned task JVM should run
  48237. before it exits
  48238. @param numTasks the number of tasks to execute; defaults to 1;
  48239. -1 signifies no limit]]>
  48240. </doc>
  48241. </method>
  48242. <method name="getNumTasksToExecutePerJvm" return="int"
  48243. abstract="false" native="false" synchronized="false"
  48244. static="false" final="false" visibility="public"
  48245. deprecated="not deprecated">
  48246. <doc>
  48247. <![CDATA[Get the number of tasks that a spawned JVM should execute]]>
  48248. </doc>
  48249. </method>
  48250. <method name="getInputFormat" return="org.apache.hadoop.mapred.InputFormat"
  48251. abstract="false" native="false" synchronized="false"
  48252. static="false" final="false" visibility="public"
  48253. deprecated="not deprecated">
  48254. <doc>
  48255. <![CDATA[Get the {@link InputFormat} implementation for the map-reduce job,
  48256. defaults to {@link TextInputFormat} if not specified explicity.
  48257. @return the {@link InputFormat} implementation for the map-reduce job.]]>
  48258. </doc>
  48259. </method>
  48260. <method name="setInputFormat"
  48261. abstract="false" native="false" synchronized="false"
  48262. static="false" final="false" visibility="public"
  48263. deprecated="not deprecated">
  48264. <param name="theClass" type="java.lang.Class"/>
  48265. <doc>
  48266. <![CDATA[Set the {@link InputFormat} implementation for the map-reduce job.
  48267. @param theClass the {@link InputFormat} implementation for the map-reduce
  48268. job.]]>
  48269. </doc>
  48270. </method>
  48271. <method name="getOutputFormat" return="org.apache.hadoop.mapred.OutputFormat"
  48272. abstract="false" native="false" synchronized="false"
  48273. static="false" final="false" visibility="public"
  48274. deprecated="not deprecated">
  48275. <doc>
  48276. <![CDATA[Get the {@link OutputFormat} implementation for the map-reduce job,
  48277. defaults to {@link TextOutputFormat} if not specified explicity.
  48278. @return the {@link OutputFormat} implementation for the map-reduce job.]]>
  48279. </doc>
  48280. </method>
  48281. <method name="getOutputCommitter" return="org.apache.hadoop.mapred.OutputCommitter"
  48282. abstract="false" native="false" synchronized="false"
  48283. static="false" final="false" visibility="public"
  48284. deprecated="not deprecated">
  48285. <doc>
  48286. <![CDATA[Get the {@link OutputCommitter} implementation for the map-reduce job,
  48287. defaults to {@link FileOutputCommitter} if not specified explicitly.
  48288. @return the {@link OutputCommitter} implementation for the map-reduce job.]]>
  48289. </doc>
  48290. </method>
  48291. <method name="setOutputCommitter"
  48292. abstract="false" native="false" synchronized="false"
  48293. static="false" final="false" visibility="public"
  48294. deprecated="not deprecated">
  48295. <param name="theClass" type="java.lang.Class"/>
  48296. <doc>
  48297. <![CDATA[Set the {@link OutputCommitter} implementation for the map-reduce job.
  48298. @param theClass the {@link OutputCommitter} implementation for the map-reduce
  48299. job.]]>
  48300. </doc>
  48301. </method>
  48302. <method name="setOutputFormat"
  48303. abstract="false" native="false" synchronized="false"
  48304. static="false" final="false" visibility="public"
  48305. deprecated="not deprecated">
  48306. <param name="theClass" type="java.lang.Class"/>
  48307. <doc>
  48308. <![CDATA[Set the {@link OutputFormat} implementation for the map-reduce job.
  48309. @param theClass the {@link OutputFormat} implementation for the map-reduce
  48310. job.]]>
  48311. </doc>
  48312. </method>
  48313. <method name="setCompressMapOutput"
  48314. abstract="false" native="false" synchronized="false"
  48315. static="false" final="false" visibility="public"
  48316. deprecated="not deprecated">
  48317. <param name="compress" type="boolean"/>
  48318. <doc>
  48319. <![CDATA[Should the map outputs be compressed before transfer?
  48320. Uses the SequenceFile compression.
  48321. @param compress should the map outputs be compressed?]]>
  48322. </doc>
  48323. </method>
  48324. <method name="getCompressMapOutput" return="boolean"
  48325. abstract="false" native="false" synchronized="false"
  48326. static="false" final="false" visibility="public"
  48327. deprecated="not deprecated">
  48328. <doc>
  48329. <![CDATA[Are the outputs of the maps be compressed?
  48330. @return <code>true</code> if the outputs of the maps are to be compressed,
  48331. <code>false</code> otherwise.]]>
  48332. </doc>
  48333. </method>
  48334. <method name="setMapOutputCompressorClass"
  48335. abstract="false" native="false" synchronized="false"
  48336. static="false" final="false" visibility="public"
  48337. deprecated="not deprecated">
  48338. <param name="codecClass" type="java.lang.Class"/>
  48339. <doc>
  48340. <![CDATA[Set the given class as the {@link CompressionCodec} for the map outputs.
  48341. @param codecClass the {@link CompressionCodec} class that will compress
  48342. the map outputs.]]>
  48343. </doc>
  48344. </method>
  48345. <method name="getMapOutputCompressorClass" return="java.lang.Class"
  48346. abstract="false" native="false" synchronized="false"
  48347. static="false" final="false" visibility="public"
  48348. deprecated="not deprecated">
  48349. <param name="defaultValue" type="java.lang.Class"/>
  48350. <doc>
  48351. <![CDATA[Get the {@link CompressionCodec} for compressing the map outputs.
  48352. @param defaultValue the {@link CompressionCodec} to return if not set
  48353. @return the {@link CompressionCodec} class that should be used to compress the
  48354. map outputs.
  48355. @throws IllegalArgumentException if the class was specified, but not found]]>
  48356. </doc>
  48357. </method>
  48358. <method name="getMapOutputKeyClass" return="java.lang.Class"
  48359. abstract="false" native="false" synchronized="false"
  48360. static="false" final="false" visibility="public"
  48361. deprecated="not deprecated">
  48362. <doc>
  48363. <![CDATA[Get the key class for the map output data. If it is not set, use the
  48364. (final) output key class. This allows the map output key class to be
  48365. different than the final output key class.
  48366. @return the map output key class.]]>
  48367. </doc>
  48368. </method>
  48369. <method name="setMapOutputKeyClass"
  48370. abstract="false" native="false" synchronized="false"
  48371. static="false" final="false" visibility="public"
  48372. deprecated="not deprecated">
  48373. <param name="theClass" type="java.lang.Class"/>
  48374. <doc>
  48375. <![CDATA[Set the key class for the map output data. This allows the user to
  48376. specify the map output key class to be different than the final output
  48377. value class.
  48378. @param theClass the map output key class.]]>
  48379. </doc>
  48380. </method>
  48381. <method name="getMapOutputValueClass" return="java.lang.Class"
  48382. abstract="false" native="false" synchronized="false"
  48383. static="false" final="false" visibility="public"
  48384. deprecated="not deprecated">
  48385. <doc>
  48386. <![CDATA[Get the value class for the map output data. If it is not set, use the
  48387. (final) output value class This allows the map output value class to be
  48388. different than the final output value class.
  48389. @return the map output value class.]]>
  48390. </doc>
  48391. </method>
  48392. <method name="setMapOutputValueClass"
  48393. abstract="false" native="false" synchronized="false"
  48394. static="false" final="false" visibility="public"
  48395. deprecated="not deprecated">
  48396. <param name="theClass" type="java.lang.Class"/>
  48397. <doc>
  48398. <![CDATA[Set the value class for the map output data. This allows the user to
  48399. specify the map output value class to be different than the final output
  48400. value class.
  48401. @param theClass the map output value class.]]>
  48402. </doc>
  48403. </method>
  48404. <method name="getOutputKeyClass" return="java.lang.Class"
  48405. abstract="false" native="false" synchronized="false"
  48406. static="false" final="false" visibility="public"
  48407. deprecated="not deprecated">
  48408. <doc>
  48409. <![CDATA[Get the key class for the job output data.
  48410. @return the key class for the job output data.]]>
  48411. </doc>
  48412. </method>
  48413. <method name="setOutputKeyClass"
  48414. abstract="false" native="false" synchronized="false"
  48415. static="false" final="false" visibility="public"
  48416. deprecated="not deprecated">
  48417. <param name="theClass" type="java.lang.Class"/>
  48418. <doc>
  48419. <![CDATA[Set the key class for the job output data.
  48420. @param theClass the key class for the job output data.]]>
  48421. </doc>
  48422. </method>
  48423. <method name="getOutputKeyComparator" return="org.apache.hadoop.io.RawComparator"
  48424. abstract="false" native="false" synchronized="false"
  48425. static="false" final="false" visibility="public"
  48426. deprecated="not deprecated">
  48427. <doc>
  48428. <![CDATA[Get the {@link RawComparator} comparator used to compare keys.
  48429. @return the {@link RawComparator} comparator used to compare keys.]]>
  48430. </doc>
  48431. </method>
  48432. <method name="setOutputKeyComparatorClass"
  48433. abstract="false" native="false" synchronized="false"
  48434. static="false" final="false" visibility="public"
  48435. deprecated="not deprecated">
  48436. <param name="theClass" type="java.lang.Class"/>
  48437. <doc>
  48438. <![CDATA[Set the {@link RawComparator} comparator used to compare keys.
  48439. @param theClass the {@link RawComparator} comparator used to
  48440. compare keys.
  48441. @see #setOutputValueGroupingComparator(Class)]]>
  48442. </doc>
  48443. </method>
  48444. <method name="setKeyFieldComparatorOptions"
  48445. abstract="false" native="false" synchronized="false"
  48446. static="false" final="false" visibility="public"
  48447. deprecated="not deprecated">
  48448. <param name="keySpec" type="java.lang.String"/>
  48449. <doc>
  48450. <![CDATA[Set the {@link KeyFieldBasedComparator} options used to compare keys.
  48451. @param keySpec the key specification of the form -k pos1[,pos2], where,
  48452. pos is of the form f[.c][opts], where f is the number
  48453. of the key field to use, and c is the number of the first character from
  48454. the beginning of the field. Fields and character posns are numbered
  48455. starting with 1; a character position of zero in pos2 indicates the
  48456. field's last character. If '.c' is omitted from pos1, it defaults to 1
  48457. (the beginning of the field); if omitted from pos2, it defaults to 0
  48458. (the end of the field). opts are ordering options. The supported options
  48459. are:
  48460. -n, (Sort numerically)
  48461. -r, (Reverse the result of comparison)]]>
  48462. </doc>
  48463. </method>
  48464. <method name="getKeyFieldComparatorOption" return="java.lang.String"
  48465. abstract="false" native="false" synchronized="false"
  48466. static="false" final="false" visibility="public"
  48467. deprecated="not deprecated">
  48468. <doc>
  48469. <![CDATA[Get the {@link KeyFieldBasedComparator} options]]>
  48470. </doc>
  48471. </method>
  48472. <method name="setKeyFieldPartitionerOptions"
  48473. abstract="false" native="false" synchronized="false"
  48474. static="false" final="false" visibility="public"
  48475. deprecated="not deprecated">
  48476. <param name="keySpec" type="java.lang.String"/>
  48477. <doc>
  48478. <![CDATA[Set the {@link KeyFieldBasedPartitioner} options used for
  48479. {@link Partitioner}
  48480. @param keySpec the key specification of the form -k pos1[,pos2], where,
  48481. pos is of the form f[.c][opts], where f is the number
  48482. of the key field to use, and c is the number of the first character from
  48483. the beginning of the field. Fields and character posns are numbered
  48484. starting with 1; a character position of zero in pos2 indicates the
  48485. field's last character. If '.c' is omitted from pos1, it defaults to 1
  48486. (the beginning of the field); if omitted from pos2, it defaults to 0
  48487. (the end of the field).]]>
  48488. </doc>
  48489. </method>
  48490. <method name="getKeyFieldPartitionerOption" return="java.lang.String"
  48491. abstract="false" native="false" synchronized="false"
  48492. static="false" final="false" visibility="public"
  48493. deprecated="not deprecated">
  48494. <doc>
  48495. <![CDATA[Get the {@link KeyFieldBasedPartitioner} options]]>
  48496. </doc>
  48497. </method>
  48498. <method name="getOutputValueGroupingComparator" return="org.apache.hadoop.io.RawComparator"
  48499. abstract="false" native="false" synchronized="false"
  48500. static="false" final="false" visibility="public"
  48501. deprecated="not deprecated">
  48502. <doc>
  48503. <![CDATA[Get the user defined {@link WritableComparable} comparator for
  48504. grouping keys of inputs to the reduce.
  48505. @return comparator set by the user for grouping values.
  48506. @see #setOutputValueGroupingComparator(Class) for details.]]>
  48507. </doc>
  48508. </method>
  48509. <method name="setOutputValueGroupingComparator"
  48510. abstract="false" native="false" synchronized="false"
  48511. static="false" final="false" visibility="public"
  48512. deprecated="not deprecated">
  48513. <param name="theClass" type="java.lang.Class"/>
  48514. <doc>
  48515. <![CDATA[Set the user defined {@link RawComparator} comparator for
  48516. grouping keys in the input to the reduce.
  48517. <p>This comparator should be provided if the equivalence rules for keys
  48518. for sorting the intermediates are different from those for grouping keys
  48519. before each call to
  48520. {@link Reducer#reduce(Object, java.util.Iterator, OutputCollector, Reporter)}.</p>
  48521. <p>For key-value pairs (K1,V1) and (K2,V2), the values (V1, V2) are passed
  48522. in a single call to the reduce function if K1 and K2 compare as equal.</p>
  48523. <p>Since {@link #setOutputKeyComparatorClass(Class)} can be used to control
  48524. how keys are sorted, this can be used in conjunction to simulate
  48525. <i>secondary sort on values</i>.</p>
  48526. <p><i>Note</i>: This is not a guarantee of the reduce sort being
  48527. <i>stable</i> in any sense. (In any case, with the order of available
  48528. map-outputs to the reduce being non-deterministic, it wouldn't make
  48529. that much sense.)</p>
  48530. @param theClass the comparator class to be used for grouping keys.
  48531. It should implement <code>RawComparator</code>.
  48532. @see #setOutputKeyComparatorClass(Class)]]>
  48533. </doc>
  48534. </method>
  48535. <method name="getUseNewMapper" return="boolean"
  48536. abstract="false" native="false" synchronized="false"
  48537. static="false" final="false" visibility="public"
  48538. deprecated="not deprecated">
  48539. <doc>
  48540. <![CDATA[Should the framework use the new context-object code for running
  48541. the mapper?
  48542. @return true, if the new api should be used]]>
  48543. </doc>
  48544. </method>
  48545. <method name="setUseNewMapper"
  48546. abstract="false" native="false" synchronized="false"
  48547. static="false" final="false" visibility="public"
  48548. deprecated="not deprecated">
  48549. <param name="flag" type="boolean"/>
  48550. <doc>
  48551. <![CDATA[Set whether the framework should use the new api for the mapper.
  48552. This is the default for jobs submitted with the new Job api.
  48553. @param flag true, if the new api should be used]]>
  48554. </doc>
  48555. </method>
  48556. <method name="getUseNewReducer" return="boolean"
  48557. abstract="false" native="false" synchronized="false"
  48558. static="false" final="false" visibility="public"
  48559. deprecated="not deprecated">
  48560. <doc>
  48561. <![CDATA[Should the framework use the new context-object code for running
  48562. the reducer?
  48563. @return true, if the new api should be used]]>
  48564. </doc>
  48565. </method>
  48566. <method name="setUseNewReducer"
  48567. abstract="false" native="false" synchronized="false"
  48568. static="false" final="false" visibility="public"
  48569. deprecated="not deprecated">
  48570. <param name="flag" type="boolean"/>
  48571. <doc>
  48572. <![CDATA[Set whether the framework should use the new api for the reducer.
  48573. This is the default for jobs submitted with the new Job api.
  48574. @param flag true, if the new api should be used]]>
  48575. </doc>
  48576. </method>
  48577. <method name="getOutputValueClass" return="java.lang.Class"
  48578. abstract="false" native="false" synchronized="false"
  48579. static="false" final="false" visibility="public"
  48580. deprecated="not deprecated">
  48581. <doc>
  48582. <![CDATA[Get the value class for job outputs.
  48583. @return the value class for job outputs.]]>
  48584. </doc>
  48585. </method>
  48586. <method name="setOutputValueClass"
  48587. abstract="false" native="false" synchronized="false"
  48588. static="false" final="false" visibility="public"
  48589. deprecated="not deprecated">
  48590. <param name="theClass" type="java.lang.Class"/>
  48591. <doc>
  48592. <![CDATA[Set the value class for job outputs.
  48593. @param theClass the value class for job outputs.]]>
  48594. </doc>
  48595. </method>
  48596. <method name="getMapperClass" return="java.lang.Class"
  48597. abstract="false" native="false" synchronized="false"
  48598. static="false" final="false" visibility="public"
  48599. deprecated="not deprecated">
  48600. <doc>
  48601. <![CDATA[Get the {@link Mapper} class for the job.
  48602. @return the {@link Mapper} class for the job.]]>
  48603. </doc>
  48604. </method>
  48605. <method name="setMapperClass"
  48606. abstract="false" native="false" synchronized="false"
  48607. static="false" final="false" visibility="public"
  48608. deprecated="not deprecated">
  48609. <param name="theClass" type="java.lang.Class"/>
  48610. <doc>
  48611. <![CDATA[Set the {@link Mapper} class for the job.
  48612. @param theClass the {@link Mapper} class for the job.]]>
  48613. </doc>
  48614. </method>
  48615. <method name="getMapRunnerClass" return="java.lang.Class"
  48616. abstract="false" native="false" synchronized="false"
  48617. static="false" final="false" visibility="public"
  48618. deprecated="not deprecated">
  48619. <doc>
  48620. <![CDATA[Get the {@link MapRunnable} class for the job.
  48621. @return the {@link MapRunnable} class for the job.]]>
  48622. </doc>
  48623. </method>
  48624. <method name="setMapRunnerClass"
  48625. abstract="false" native="false" synchronized="false"
  48626. static="false" final="false" visibility="public"
  48627. deprecated="not deprecated">
  48628. <param name="theClass" type="java.lang.Class"/>
  48629. <doc>
  48630. <![CDATA[Expert: Set the {@link MapRunnable} class for the job.
  48631. Typically used to exert greater control on {@link Mapper}s.
  48632. @param theClass the {@link MapRunnable} class for the job.]]>
  48633. </doc>
  48634. </method>
  48635. <method name="getPartitionerClass" return="java.lang.Class"
  48636. abstract="false" native="false" synchronized="false"
  48637. static="false" final="false" visibility="public"
  48638. deprecated="not deprecated">
  48639. <doc>
  48640. <![CDATA[Get the {@link Partitioner} used to partition {@link Mapper}-outputs
  48641. to be sent to the {@link Reducer}s.
  48642. @return the {@link Partitioner} used to partition map-outputs.]]>
  48643. </doc>
  48644. </method>
  48645. <method name="setPartitionerClass"
  48646. abstract="false" native="false" synchronized="false"
  48647. static="false" final="false" visibility="public"
  48648. deprecated="not deprecated">
  48649. <param name="theClass" type="java.lang.Class"/>
  48650. <doc>
  48651. <![CDATA[Set the {@link Partitioner} class used to partition
  48652. {@link Mapper}-outputs to be sent to the {@link Reducer}s.
  48653. @param theClass the {@link Partitioner} used to partition map-outputs.]]>
  48654. </doc>
  48655. </method>
  48656. <method name="getReducerClass" return="java.lang.Class"
  48657. abstract="false" native="false" synchronized="false"
  48658. static="false" final="false" visibility="public"
  48659. deprecated="not deprecated">
  48660. <doc>
  48661. <![CDATA[Get the {@link Reducer} class for the job.
  48662. @return the {@link Reducer} class for the job.]]>
  48663. </doc>
  48664. </method>
  48665. <method name="setReducerClass"
  48666. abstract="false" native="false" synchronized="false"
  48667. static="false" final="false" visibility="public"
  48668. deprecated="not deprecated">
  48669. <param name="theClass" type="java.lang.Class"/>
  48670. <doc>
  48671. <![CDATA[Set the {@link Reducer} class for the job.
  48672. @param theClass the {@link Reducer} class for the job.]]>
  48673. </doc>
  48674. </method>
  48675. <method name="getCombinerClass" return="java.lang.Class"
  48676. abstract="false" native="false" synchronized="false"
  48677. static="false" final="false" visibility="public"
  48678. deprecated="not deprecated">
  48679. <doc>
  48680. <![CDATA[Get the user-defined <i>combiner</i> class used to combine map-outputs
  48681. before being sent to the reducers. Typically the combiner is same as the
  48682. the {@link Reducer} for the job i.e. {@link #getReducerClass()}.
  48683. @return the user-defined combiner class used to combine map-outputs.]]>
  48684. </doc>
  48685. </method>
  48686. <method name="setCombinerClass"
  48687. abstract="false" native="false" synchronized="false"
  48688. static="false" final="false" visibility="public"
  48689. deprecated="not deprecated">
  48690. <param name="theClass" type="java.lang.Class"/>
  48691. <doc>
  48692. <![CDATA[Set the user-defined <i>combiner</i> class used to combine map-outputs
  48693. before being sent to the reducers.
  48694. <p>The combiner is an application-specified aggregation operation, which
  48695. can help cut down the amount of data transferred between the
  48696. {@link Mapper} and the {@link Reducer}, leading to better performance.</p>
  48697. <p>The framework may invoke the combiner 0, 1, or multiple times, in both
  48698. the mapper and reducer tasks. In general, the combiner is called as the
  48699. sort/merge result is written to disk. The combiner must:
  48700. <ul>
  48701. <li> be side-effect free</li>
  48702. <li> have the same input and output key types and the same input and
  48703. output value types</li>
  48704. </ul></p>
  48705. <p>Typically the combiner is same as the <code>Reducer</code> for the
  48706. job i.e. {@link #setReducerClass(Class)}.</p>
  48707. @param theClass the user-defined combiner class used to combine
  48708. map-outputs.]]>
  48709. </doc>
  48710. </method>
  48711. <method name="getSpeculativeExecution" return="boolean"
  48712. abstract="false" native="false" synchronized="false"
  48713. static="false" final="false" visibility="public"
  48714. deprecated="not deprecated">
  48715. <doc>
  48716. <![CDATA[Should speculative execution be used for this job?
  48717. Defaults to <code>true</code>.
  48718. @return <code>true</code> if speculative execution be used for this job,
  48719. <code>false</code> otherwise.]]>
  48720. </doc>
  48721. </method>
  48722. <method name="setSpeculativeExecution"
  48723. abstract="false" native="false" synchronized="false"
  48724. static="false" final="false" visibility="public"
  48725. deprecated="not deprecated">
  48726. <param name="speculativeExecution" type="boolean"/>
  48727. <doc>
  48728. <![CDATA[Turn speculative execution on or off for this job.
  48729. @param speculativeExecution <code>true</code> if speculative execution
  48730. should be turned on, else <code>false</code>.]]>
  48731. </doc>
  48732. </method>
  48733. <method name="getMapSpeculativeExecution" return="boolean"
  48734. abstract="false" native="false" synchronized="false"
  48735. static="false" final="false" visibility="public"
  48736. deprecated="not deprecated">
  48737. <doc>
  48738. <![CDATA[Should speculative execution be used for this job for map tasks?
  48739. Defaults to <code>true</code>.
  48740. @return <code>true</code> if speculative execution be
  48741. used for this job for map tasks,
  48742. <code>false</code> otherwise.]]>
  48743. </doc>
  48744. </method>
  48745. <method name="setMapSpeculativeExecution"
  48746. abstract="false" native="false" synchronized="false"
  48747. static="false" final="false" visibility="public"
  48748. deprecated="not deprecated">
  48749. <param name="speculativeExecution" type="boolean"/>
  48750. <doc>
  48751. <![CDATA[Turn speculative execution on or off for this job for map tasks.
  48752. @param speculativeExecution <code>true</code> if speculative execution
  48753. should be turned on for map tasks,
  48754. else <code>false</code>.]]>
  48755. </doc>
  48756. </method>
  48757. <method name="getReduceSpeculativeExecution" return="boolean"
  48758. abstract="false" native="false" synchronized="false"
  48759. static="false" final="false" visibility="public"
  48760. deprecated="not deprecated">
  48761. <doc>
  48762. <![CDATA[Should speculative execution be used for this job for reduce tasks?
  48763. Defaults to <code>true</code>.
  48764. @return <code>true</code> if speculative execution be used
  48765. for reduce tasks for this job,
  48766. <code>false</code> otherwise.]]>
  48767. </doc>
  48768. </method>
  48769. <method name="setReduceSpeculativeExecution"
  48770. abstract="false" native="false" synchronized="false"
  48771. static="false" final="false" visibility="public"
  48772. deprecated="not deprecated">
  48773. <param name="speculativeExecution" type="boolean"/>
  48774. <doc>
  48775. <![CDATA[Turn speculative execution on or off for this job for reduce tasks.
  48776. @param speculativeExecution <code>true</code> if speculative execution
  48777. should be turned on for reduce tasks,
  48778. else <code>false</code>.]]>
  48779. </doc>
  48780. </method>
  48781. <method name="getNumMapTasks" return="int"
  48782. abstract="false" native="false" synchronized="false"
  48783. static="false" final="false" visibility="public"
  48784. deprecated="not deprecated">
  48785. <doc>
  48786. <![CDATA[Get configured the number of reduce tasks for this job.
  48787. Defaults to <code>1</code>.
  48788. @return the number of reduce tasks for this job.]]>
  48789. </doc>
  48790. </method>
  48791. <method name="setNumMapTasks"
  48792. abstract="false" native="false" synchronized="false"
  48793. static="false" final="false" visibility="public"
  48794. deprecated="not deprecated">
  48795. <param name="n" type="int"/>
  48796. <doc>
  48797. <![CDATA[Set the number of map tasks for this job.
  48798. <p><i>Note</i>: This is only a <i>hint</i> to the framework. The actual
  48799. number of spawned map tasks depends on the number of {@link InputSplit}s
  48800. generated by the job's {@link InputFormat#getSplits(JobConf, int)}.
  48801. A custom {@link InputFormat} is typically used to accurately control
  48802. the number of map tasks for the job.</p>
  48803. <h4 id="NoOfMaps">How many maps?</h4>
  48804. <p>The number of maps is usually driven by the total size of the inputs
  48805. i.e. total number of blocks of the input files.</p>
  48806. <p>The right level of parallelism for maps seems to be around 10-100 maps
  48807. per-node, although it has been set up to 300 or so for very cpu-light map
  48808. tasks. Task setup takes awhile, so it is best if the maps take at least a
  48809. minute to execute.</p>
  48810. <p>The default behavior of file-based {@link InputFormat}s is to split the
  48811. input into <i>logical</i> {@link InputSplit}s based on the total size, in
  48812. bytes, of input files. However, the {@link FileSystem} blocksize of the
  48813. input files is treated as an upper bound for input splits. A lower bound
  48814. on the split size can be set via
  48815. <a href="{@docRoot}/../mapred-default.html#mapred.min.split.size">
  48816. mapred.min.split.size</a>.</p>
  48817. <p>Thus, if you expect 10TB of input data and have a blocksize of 128MB,
  48818. you'll end up with 82,000 maps, unless {@link #setNumMapTasks(int)} is
  48819. used to set it even higher.</p>
  48820. @param n the number of map tasks for this job.
  48821. @see InputFormat#getSplits(JobConf, int)
  48822. @see FileInputFormat
  48823. @see FileSystem#getDefaultBlockSize()
  48824. @see FileStatus#getBlockSize()]]>
  48825. </doc>
  48826. </method>
  48827. <method name="getNumReduceTasks" return="int"
  48828. abstract="false" native="false" synchronized="false"
  48829. static="false" final="false" visibility="public"
  48830. deprecated="not deprecated">
  48831. <doc>
  48832. <![CDATA[Get configured the number of reduce tasks for this job. Defaults to
  48833. <code>1</code>.
  48834. @return the number of reduce tasks for this job.]]>
  48835. </doc>
  48836. </method>
  48837. <method name="setNumReduceTasks"
  48838. abstract="false" native="false" synchronized="false"
  48839. static="false" final="false" visibility="public"
  48840. deprecated="not deprecated">
  48841. <param name="n" type="int"/>
  48842. <doc>
  48843. <![CDATA[Set the requisite number of reduce tasks for this job.
  48844. <h4 id="NoOfReduces">How many reduces?</h4>
  48845. <p>The right number of reduces seems to be <code>0.95</code> or
  48846. <code>1.75</code> multiplied by (&lt;<i>no. of nodes</i>&gt; *
  48847. <a href="{@docRoot}/../mapred-default.html#mapred.tasktracker.reduce.tasks.maximum">
  48848. mapred.tasktracker.reduce.tasks.maximum</a>).
  48849. </p>
  48850. <p>With <code>0.95</code> all of the reduces can launch immediately and
  48851. start transfering map outputs as the maps finish. With <code>1.75</code>
  48852. the faster nodes will finish their first round of reduces and launch a
  48853. second wave of reduces doing a much better job of load balancing.</p>
  48854. <p>Increasing the number of reduces increases the framework overhead, but
  48855. increases load balancing and lowers the cost of failures.</p>
  48856. <p>The scaling factors above are slightly less than whole numbers to
  48857. reserve a few reduce slots in the framework for speculative-tasks, failures
  48858. etc.</p>
  48859. <h4 id="ReducerNone">Reducer NONE</h4>
  48860. <p>It is legal to set the number of reduce-tasks to <code>zero</code>.</p>
  48861. <p>In this case the output of the map-tasks directly go to distributed
  48862. file-system, to the path set by
  48863. {@link FileOutputFormat#setOutputPath(JobConf, Path)}. Also, the
  48864. framework doesn't sort the map-outputs before writing it out to HDFS.</p>
  48865. @param n the number of reduce tasks for this job.]]>
  48866. </doc>
  48867. </method>
  48868. <method name="getMaxMapAttempts" return="int"
  48869. abstract="false" native="false" synchronized="false"
  48870. static="false" final="false" visibility="public"
  48871. deprecated="not deprecated">
  48872. <doc>
  48873. <![CDATA[Get the configured number of maximum attempts that will be made to run a
  48874. map task, as specified by the <code>mapred.map.max.attempts</code>
  48875. property. If this property is not already set, the default is 4 attempts.
  48876. @return the max number of attempts per map task.]]>
  48877. </doc>
  48878. </method>
  48879. <method name="setMaxMapAttempts"
  48880. abstract="false" native="false" synchronized="false"
  48881. static="false" final="false" visibility="public"
  48882. deprecated="not deprecated">
  48883. <param name="n" type="int"/>
  48884. <doc>
  48885. <![CDATA[Expert: Set the number of maximum attempts that will be made to run a
  48886. map task.
  48887. @param n the number of attempts per map task.]]>
  48888. </doc>
  48889. </method>
  48890. <method name="getMaxReduceAttempts" return="int"
  48891. abstract="false" native="false" synchronized="false"
  48892. static="false" final="false" visibility="public"
  48893. deprecated="not deprecated">
  48894. <doc>
  48895. <![CDATA[Get the configured number of maximum attempts that will be made to run a
  48896. reduce task, as specified by the <code>mapred.reduce.max.attempts</code>
  48897. property. If this property is not already set, the default is 4 attempts.
  48898. @return the max number of attempts per reduce task.]]>
  48899. </doc>
  48900. </method>
  48901. <method name="setMaxReduceAttempts"
  48902. abstract="false" native="false" synchronized="false"
  48903. static="false" final="false" visibility="public"
  48904. deprecated="not deprecated">
  48905. <param name="n" type="int"/>
  48906. <doc>
  48907. <![CDATA[Expert: Set the number of maximum attempts that will be made to run a
  48908. reduce task.
  48909. @param n the number of attempts per reduce task.]]>
  48910. </doc>
  48911. </method>
  48912. <method name="getJobName" return="java.lang.String"
  48913. abstract="false" native="false" synchronized="false"
  48914. static="false" final="false" visibility="public"
  48915. deprecated="not deprecated">
  48916. <doc>
  48917. <![CDATA[Get the user-specified job name. This is only used to identify the
  48918. job to the user.
  48919. @return the job's name, defaulting to "".]]>
  48920. </doc>
  48921. </method>
  48922. <method name="setJobName"
  48923. abstract="false" native="false" synchronized="false"
  48924. static="false" final="false" visibility="public"
  48925. deprecated="not deprecated">
  48926. <param name="name" type="java.lang.String"/>
  48927. <doc>
  48928. <![CDATA[Set the user-specified job name.
  48929. @param name the job's new name.]]>
  48930. </doc>
  48931. </method>
  48932. <method name="getSessionId" return="java.lang.String"
  48933. abstract="false" native="false" synchronized="false"
  48934. static="false" final="false" visibility="public"
  48935. deprecated="not deprecated">
  48936. <doc>
  48937. <![CDATA[Get the user-specified session identifier. The default is the empty string.
  48938. The session identifier is used to tag metric data that is reported to some
  48939. performance metrics system via the org.apache.hadoop.metrics API. The
  48940. session identifier is intended, in particular, for use by Hadoop-On-Demand
  48941. (HOD) which allocates a virtual Hadoop cluster dynamically and transiently.
  48942. HOD will set the session identifier by modifying the mapred-site.xml file
  48943. before starting the cluster.
  48944. When not running under HOD, this identifer is expected to remain set to
  48945. the empty string.
  48946. @return the session identifier, defaulting to "".]]>
  48947. </doc>
  48948. </method>
  48949. <method name="setSessionId"
  48950. abstract="false" native="false" synchronized="false"
  48951. static="false" final="false" visibility="public"
  48952. deprecated="not deprecated">
  48953. <param name="sessionId" type="java.lang.String"/>
  48954. <doc>
  48955. <![CDATA[Set the user-specified session identifier.
  48956. @param sessionId the new session id.]]>
  48957. </doc>
  48958. </method>
  48959. <method name="setMaxTaskFailuresPerTracker"
  48960. abstract="false" native="false" synchronized="false"
  48961. static="false" final="false" visibility="public"
  48962. deprecated="not deprecated">
  48963. <param name="noFailures" type="int"/>
  48964. <doc>
  48965. <![CDATA[Set the maximum no. of failures of a given job per tasktracker.
  48966. If the no. of task failures exceeds <code>noFailures</code>, the
  48967. tasktracker is <i>blacklisted</i> for this job.
  48968. @param noFailures maximum no. of failures of a given job per tasktracker.]]>
  48969. </doc>
  48970. </method>
  48971. <method name="getMaxTaskFailuresPerTracker" return="int"
  48972. abstract="false" native="false" synchronized="false"
  48973. static="false" final="false" visibility="public"
  48974. deprecated="not deprecated">
  48975. <doc>
  48976. <![CDATA[Expert: Get the maximum no. of failures of a given job per tasktracker.
  48977. If the no. of task failures exceeds this, the tasktracker is
  48978. <i>blacklisted</i> for this job.
  48979. @return the maximum no. of failures of a given job per tasktracker.]]>
  48980. </doc>
  48981. </method>
  48982. <method name="getMaxMapTaskFailuresPercent" return="int"
  48983. abstract="false" native="false" synchronized="false"
  48984. static="false" final="false" visibility="public"
  48985. deprecated="not deprecated">
  48986. <doc>
  48987. <![CDATA[Get the maximum percentage of map tasks that can fail without
  48988. the job being aborted.
  48989. Each map task is executed a minimum of {@link #getMaxMapAttempts()}
  48990. attempts before being declared as <i>failed</i>.
  48991. Defaults to <code>zero</code>, i.e. <i>any</i> failed map-task results in
  48992. the job being declared as {@link JobStatus#FAILED}.
  48993. @return the maximum percentage of map tasks that can fail without
  48994. the job being aborted.]]>
  48995. </doc>
  48996. </method>
  48997. <method name="setMaxMapTaskFailuresPercent"
  48998. abstract="false" native="false" synchronized="false"
  48999. static="false" final="false" visibility="public"
  49000. deprecated="not deprecated">
  49001. <param name="percent" type="int"/>
  49002. <doc>
  49003. <![CDATA[Expert: Set the maximum percentage of map tasks that can fail without the
  49004. job being aborted.
  49005. Each map task is executed a minimum of {@link #getMaxMapAttempts} attempts
  49006. before being declared as <i>failed</i>.
  49007. @param percent the maximum percentage of map tasks that can fail without
  49008. the job being aborted.]]>
  49009. </doc>
  49010. </method>
  49011. <method name="getMaxReduceTaskFailuresPercent" return="int"
  49012. abstract="false" native="false" synchronized="false"
  49013. static="false" final="false" visibility="public"
  49014. deprecated="not deprecated">
  49015. <doc>
  49016. <![CDATA[Get the maximum percentage of reduce tasks that can fail without
  49017. the job being aborted.
  49018. Each reduce task is executed a minimum of {@link #getMaxReduceAttempts()}
  49019. attempts before being declared as <i>failed</i>.
  49020. Defaults to <code>zero</code>, i.e. <i>any</i> failed reduce-task results
  49021. in the job being declared as {@link JobStatus#FAILED}.
  49022. @return the maximum percentage of reduce tasks that can fail without
  49023. the job being aborted.]]>
  49024. </doc>
  49025. </method>
  49026. <method name="setMaxReduceTaskFailuresPercent"
  49027. abstract="false" native="false" synchronized="false"
  49028. static="false" final="false" visibility="public"
  49029. deprecated="not deprecated">
  49030. <param name="percent" type="int"/>
  49031. <doc>
  49032. <![CDATA[Set the maximum percentage of reduce tasks that can fail without the job
  49033. being aborted.
  49034. Each reduce task is executed a minimum of {@link #getMaxReduceAttempts()}
  49035. attempts before being declared as <i>failed</i>.
  49036. @param percent the maximum percentage of reduce tasks that can fail without
  49037. the job being aborted.]]>
  49038. </doc>
  49039. </method>
  49040. <method name="setJobPriority"
  49041. abstract="false" native="false" synchronized="false"
  49042. static="false" final="false" visibility="public"
  49043. deprecated="not deprecated">
  49044. <param name="prio" type="org.apache.hadoop.mapred.JobPriority"/>
  49045. <doc>
  49046. <![CDATA[Set {@link JobPriority} for this job.
  49047. @param prio the {@link JobPriority} for this job.]]>
  49048. </doc>
  49049. </method>
  49050. <method name="getJobPriority" return="org.apache.hadoop.mapred.JobPriority"
  49051. abstract="false" native="false" synchronized="false"
  49052. static="false" final="false" visibility="public"
  49053. deprecated="not deprecated">
  49054. <doc>
  49055. <![CDATA[Get the {@link JobPriority} for this job.
  49056. @return the {@link JobPriority} for this job.]]>
  49057. </doc>
  49058. </method>
  49059. <method name="getProfileEnabled" return="boolean"
  49060. abstract="false" native="false" synchronized="false"
  49061. static="false" final="false" visibility="public"
  49062. deprecated="not deprecated">
  49063. <doc>
  49064. <![CDATA[Get whether the task profiling is enabled.
  49065. @return true if some tasks will be profiled]]>
  49066. </doc>
  49067. </method>
  49068. <method name="setProfileEnabled"
  49069. abstract="false" native="false" synchronized="false"
  49070. static="false" final="false" visibility="public"
  49071. deprecated="not deprecated">
  49072. <param name="newValue" type="boolean"/>
  49073. <doc>
  49074. <![CDATA[Set whether the system should collect profiler information for some of
  49075. the tasks in this job? The information is stored in the user log
  49076. directory.
  49077. @param newValue true means it should be gathered]]>
  49078. </doc>
  49079. </method>
  49080. <method name="getProfileParams" return="java.lang.String"
  49081. abstract="false" native="false" synchronized="false"
  49082. static="false" final="false" visibility="public"
  49083. deprecated="not deprecated">
  49084. <doc>
  49085. <![CDATA[Get the profiler configuration arguments.
  49086. The default value for this property is
  49087. "-agentlib:hprof=cpu=samples,heap=sites,force=n,thread=y,verbose=n,file=%s"
  49088. @return the parameters to pass to the task child to configure profiling]]>
  49089. </doc>
  49090. </method>
  49091. <method name="setProfileParams"
  49092. abstract="false" native="false" synchronized="false"
  49093. static="false" final="false" visibility="public"
  49094. deprecated="not deprecated">
  49095. <param name="value" type="java.lang.String"/>
  49096. <doc>
  49097. <![CDATA[Set the profiler configuration arguments. If the string contains a '%s' it
  49098. will be replaced with the name of the profiling output file when the task
  49099. runs.
  49100. This value is passed to the task child JVM on the command line.
  49101. @param value the configuration string]]>
  49102. </doc>
  49103. </method>
  49104. <method name="getProfileTaskRange" return="org.apache.hadoop.conf.Configuration.IntegerRanges"
  49105. abstract="false" native="false" synchronized="false"
  49106. static="false" final="false" visibility="public"
  49107. deprecated="not deprecated">
  49108. <param name="isMap" type="boolean"/>
  49109. <doc>
  49110. <![CDATA[Get the range of maps or reduces to profile.
  49111. @param isMap is the task a map?
  49112. @return the task ranges]]>
  49113. </doc>
  49114. </method>
  49115. <method name="setProfileTaskRange"
  49116. abstract="false" native="false" synchronized="false"
  49117. static="false" final="false" visibility="public"
  49118. deprecated="not deprecated">
  49119. <param name="isMap" type="boolean"/>
  49120. <param name="newValue" type="java.lang.String"/>
  49121. <doc>
  49122. <![CDATA[Set the ranges of maps or reduces to profile. setProfileEnabled(true)
  49123. must also be called.
  49124. @param newValue a set of integer ranges of the map ids]]>
  49125. </doc>
  49126. </method>
  49127. <method name="setMapDebugScript"
  49128. abstract="false" native="false" synchronized="false"
  49129. static="false" final="false" visibility="public"
  49130. deprecated="not deprecated">
  49131. <param name="mDbgScript" type="java.lang.String"/>
  49132. <doc>
  49133. <![CDATA[Set the debug script to run when the map tasks fail.
  49134. <p>The debug script can aid debugging of failed map tasks. The script is
  49135. given task's stdout, stderr, syslog, jobconf files as arguments.</p>
  49136. <p>The debug command, run on the node where the map failed, is:</p>
  49137. <p><pre><blockquote>
  49138. $script $stdout $stderr $syslog $jobconf.
  49139. </blockquote></pre></p>
  49140. <p> The script file is distributed through {@link DistributedCache}
  49141. APIs. The script needs to be symlinked. </p>
  49142. <p>Here is an example on how to submit a script
  49143. <p><blockquote><pre>
  49144. job.setMapDebugScript("./myscript");
  49145. DistributedCache.createSymlink(job);
  49146. DistributedCache.addCacheFile("/debug/scripts/myscript#myscript");
  49147. </pre></blockquote></p>
  49148. @param mDbgScript the script name]]>
  49149. </doc>
  49150. </method>
  49151. <method name="getMapDebugScript" return="java.lang.String"
  49152. abstract="false" native="false" synchronized="false"
  49153. static="false" final="false" visibility="public"
  49154. deprecated="not deprecated">
  49155. <doc>
  49156. <![CDATA[Get the map task's debug script.
  49157. @return the debug Script for the mapred job for failed map tasks.
  49158. @see #setMapDebugScript(String)]]>
  49159. </doc>
  49160. </method>
  49161. <method name="setReduceDebugScript"
  49162. abstract="false" native="false" synchronized="false"
  49163. static="false" final="false" visibility="public"
  49164. deprecated="not deprecated">
  49165. <param name="rDbgScript" type="java.lang.String"/>
  49166. <doc>
  49167. <![CDATA[Set the debug script to run when the reduce tasks fail.
  49168. <p>The debug script can aid debugging of failed reduce tasks. The script
  49169. is given task's stdout, stderr, syslog, jobconf files as arguments.</p>
  49170. <p>The debug command, run on the node where the map failed, is:</p>
  49171. <p><pre><blockquote>
  49172. $script $stdout $stderr $syslog $jobconf.
  49173. </blockquote></pre></p>
  49174. <p> The script file is distributed through {@link DistributedCache}
  49175. APIs. The script file needs to be symlinked </p>
  49176. <p>Here is an example on how to submit a script
  49177. <p><blockquote><pre>
  49178. job.setReduceDebugScript("./myscript");
  49179. DistributedCache.createSymlink(job);
  49180. DistributedCache.addCacheFile("/debug/scripts/myscript#myscript");
  49181. </pre></blockquote></p>
  49182. @param rDbgScript the script name]]>
  49183. </doc>
  49184. </method>
  49185. <method name="getReduceDebugScript" return="java.lang.String"
  49186. abstract="false" native="false" synchronized="false"
  49187. static="false" final="false" visibility="public"
  49188. deprecated="not deprecated">
  49189. <doc>
  49190. <![CDATA[Get the reduce task's debug Script
  49191. @return the debug script for the mapred job for failed reduce tasks.
  49192. @see #setReduceDebugScript(String)]]>
  49193. </doc>
  49194. </method>
  49195. <method name="getJobEndNotificationURI" return="java.lang.String"
  49196. abstract="false" native="false" synchronized="false"
  49197. static="false" final="false" visibility="public"
  49198. deprecated="not deprecated">
  49199. <doc>
  49200. <![CDATA[Get the uri to be invoked in-order to send a notification after the job
  49201. has completed (success/failure).
  49202. @return the job end notification uri, <code>null</code> if it hasn't
  49203. been set.
  49204. @see #setJobEndNotificationURI(String)]]>
  49205. </doc>
  49206. </method>
  49207. <method name="setJobEndNotificationURI"
  49208. abstract="false" native="false" synchronized="false"
  49209. static="false" final="false" visibility="public"
  49210. deprecated="not deprecated">
  49211. <param name="uri" type="java.lang.String"/>
  49212. <doc>
  49213. <![CDATA[Set the uri to be invoked in-order to send a notification after the job
  49214. has completed (success/failure).
  49215. <p>The uri can contain 2 special parameters: <tt>$jobId</tt> and
  49216. <tt>$jobStatus</tt>. Those, if present, are replaced by the job's
  49217. identifier and completion-status respectively.</p>
  49218. <p>This is typically used by application-writers to implement chaining of
  49219. Map-Reduce jobs in an <i>asynchronous manner</i>.</p>
  49220. @param uri the job end notification uri
  49221. @see JobStatus
  49222. @see <a href="{@docRoot}/org/apache/hadoop/mapred/JobClient.html#
  49223. JobCompletionAndChaining">Job Completion and Chaining</a>]]>
  49224. </doc>
  49225. </method>
  49226. <method name="getJobLocalDir" return="java.lang.String"
  49227. abstract="false" native="false" synchronized="false"
  49228. static="false" final="false" visibility="public"
  49229. deprecated="not deprecated">
  49230. <doc>
  49231. <![CDATA[Get job-specific shared directory for use as scratch space
  49232. <p>
  49233. When a job starts, a shared directory is created at location
  49234. <code>
  49235. ${mapred.local.dir}/taskTracker/$user/jobcache/$jobid/work/ </code>.
  49236. This directory is exposed to the users through
  49237. <code>job.local.dir </code>.
  49238. So, the tasks can use this space
  49239. as scratch space and share files among them. </p>
  49240. This value is available as System property also.
  49241. @return The localized job specific shared directory]]>
  49242. </doc>
  49243. </method>
  49244. <method name="getMemoryForMapTask" return="long"
  49245. abstract="false" native="false" synchronized="false"
  49246. static="false" final="false" visibility="public"
  49247. deprecated="not deprecated">
  49248. <doc>
  49249. <![CDATA[Get memory required to run a map task of the job, in MB.
  49250. If a value is specified in the configuration, it is returned.
  49251. Else, it returns {@link #DISABLED_MEMORY_LIMIT}.
  49252. <p/>
  49253. For backward compatibility, if the job configuration sets the
  49254. key {@link #MAPRED_TASK_MAXVMEM_PROPERTY} to a value different
  49255. from {@link #DISABLED_MEMORY_LIMIT}, that value will be used
  49256. after converting it from bytes to MB.
  49257. @return memory required to run a map task of the job, in MB,
  49258. or {@link #DISABLED_MEMORY_LIMIT} if unset.]]>
  49259. </doc>
  49260. </method>
  49261. <method name="setMemoryForMapTask"
  49262. abstract="false" native="false" synchronized="false"
  49263. static="false" final="false" visibility="public"
  49264. deprecated="not deprecated">
  49265. <param name="mem" type="long"/>
  49266. </method>
  49267. <method name="getMemoryForReduceTask" return="long"
  49268. abstract="false" native="false" synchronized="false"
  49269. static="false" final="false" visibility="public"
  49270. deprecated="not deprecated">
  49271. <doc>
  49272. <![CDATA[Get memory required to run a reduce task of the job, in MB.
  49273. If a value is specified in the configuration, it is returned.
  49274. Else, it returns {@link #DISABLED_MEMORY_LIMIT}.
  49275. <p/>
  49276. For backward compatibility, if the job configuration sets the
  49277. key {@link #MAPRED_TASK_MAXVMEM_PROPERTY} to a value different
  49278. from {@link #DISABLED_MEMORY_LIMIT}, that value will be used
  49279. after converting it from bytes to MB.
  49280. @return memory required to run a reduce task of the job, in MB,
  49281. or {@link #DISABLED_MEMORY_LIMIT} if unset.]]>
  49282. </doc>
  49283. </method>
  49284. <method name="setMemoryForReduceTask"
  49285. abstract="false" native="false" synchronized="false"
  49286. static="false" final="false" visibility="public"
  49287. deprecated="not deprecated">
  49288. <param name="mem" type="long"/>
  49289. </method>
  49290. <method name="getQueueName" return="java.lang.String"
  49291. abstract="false" native="false" synchronized="false"
  49292. static="false" final="false" visibility="public"
  49293. deprecated="not deprecated">
  49294. <doc>
  49295. <![CDATA[Return the name of the queue to which this job is submitted.
  49296. Defaults to 'default'.
  49297. @return name of the queue]]>
  49298. </doc>
  49299. </method>
  49300. <method name="setQueueName"
  49301. abstract="false" native="false" synchronized="false"
  49302. static="false" final="false" visibility="public"
  49303. deprecated="not deprecated">
  49304. <param name="queueName" type="java.lang.String"/>
  49305. <doc>
  49306. <![CDATA[Set the name of the queue to which this job should be submitted.
  49307. @param queueName Name of the queue]]>
  49308. </doc>
  49309. </method>
  49310. <method name="normalizeMemoryConfigValue" return="long"
  49311. abstract="false" native="false" synchronized="false"
  49312. static="true" final="false" visibility="public"
  49313. deprecated="not deprecated">
  49314. <param name="val" type="long"/>
  49315. <doc>
  49316. <![CDATA[Normalize the negative values in configuration
  49317. @param val
  49318. @return normalized value]]>
  49319. </doc>
  49320. </method>
  49321. <method name="getMaxVirtualMemoryForTask" return="long"
  49322. abstract="false" native="false" synchronized="false"
  49323. static="false" final="false" visibility="public"
  49324. deprecated="Use {@link #getMemoryForMapTask()} and
  49325. {@link #getMemoryForReduceTask()}">
  49326. <doc>
  49327. <![CDATA[Get the memory required to run a task of this job, in bytes. See
  49328. {@link #MAPRED_TASK_MAXVMEM_PROPERTY}
  49329. <p/>
  49330. This method is deprecated. Now, different memory limits can be
  49331. set for map and reduce tasks of a job, in MB.
  49332. <p/>
  49333. For backward compatibility, if the job configuration sets the
  49334. key {@link #MAPRED_TASK_MAXVMEM_PROPERTY} to a value different
  49335. from {@link #DISABLED_MEMORY_LIMIT}, that value is returned.
  49336. Otherwise, this method will return the larger of the values returned by
  49337. {@link #getMemoryForMapTask()} and {@link #getMemoryForReduceTask()}
  49338. after converting them into bytes.
  49339. @return Memory required to run a task of this job, in bytes,
  49340. or {@link #DISABLED_MEMORY_LIMIT}, if unset.
  49341. @see #setMaxVirtualMemoryForTask(long)
  49342. @deprecated Use {@link #getMemoryForMapTask()} and
  49343. {@link #getMemoryForReduceTask()}]]>
  49344. </doc>
  49345. </method>
  49346. <method name="setMaxVirtualMemoryForTask"
  49347. abstract="false" native="false" synchronized="false"
  49348. static="false" final="false" visibility="public"
  49349. deprecated="Use {@link #setMemoryForMapTask(long mem)} and
  49350. Use {@link #setMemoryForReduceTask(long mem)}">
  49351. <param name="vmem" type="long"/>
  49352. <doc>
  49353. <![CDATA[Set the maximum amount of memory any task of this job can use. See
  49354. {@link #MAPRED_TASK_MAXVMEM_PROPERTY}
  49355. <p/>
  49356. mapred.task.maxvmem is split into
  49357. mapred.job.map.memory.mb
  49358. and mapred.job.map.memory.mb,mapred
  49359. each of the new key are set
  49360. as mapred.task.maxvmem / 1024
  49361. as new values are in MB
  49362. @param vmem Maximum amount of virtual memory in bytes any task of this job
  49363. can use.
  49364. @see #getMaxVirtualMemoryForTask()
  49365. @deprecated
  49366. Use {@link #setMemoryForMapTask(long mem)} and
  49367. Use {@link #setMemoryForReduceTask(long mem)}]]>
  49368. </doc>
  49369. </method>
  49370. <method name="getMaxPhysicalMemoryForTask" return="long"
  49371. abstract="false" native="false" synchronized="false"
  49372. static="false" final="false" visibility="public"
  49373. deprecated="this variable is deprecated and nolonger in use.">
  49374. <doc>
  49375. <![CDATA[@deprecated this variable is deprecated and nolonger in use.]]>
  49376. </doc>
  49377. </method>
  49378. <method name="setMaxPhysicalMemoryForTask"
  49379. abstract="false" native="false" synchronized="false"
  49380. static="false" final="false" visibility="public"
  49381. deprecated="not deprecated">
  49382. <param name="mem" type="long"/>
  49383. </method>
  49384. <field name="MAPRED_TASK_MAXVMEM_PROPERTY" type="java.lang.String"
  49385. transient="false" volatile="false"
  49386. static="true" final="true" visibility="public"
  49387. deprecated="Use {@link #MAPRED_JOB_MAP_MEMORY_MB_PROPERTY} and
  49388. {@link #MAPRED_JOB_REDUCE_MEMORY_MB_PROPERTY}">
  49389. <doc>
  49390. <![CDATA[@deprecated Use {@link #MAPRED_JOB_MAP_MEMORY_MB_PROPERTY} and
  49391. {@link #MAPRED_JOB_REDUCE_MEMORY_MB_PROPERTY}]]>
  49392. </doc>
  49393. </field>
  49394. <field name="UPPER_LIMIT_ON_TASK_VMEM_PROPERTY" type="java.lang.String"
  49395. transient="false" volatile="false"
  49396. static="true" final="true" visibility="public"
  49397. deprecated="deprecated, no comment">
  49398. <doc>
  49399. <![CDATA[@deprecated]]>
  49400. </doc>
  49401. </field>
  49402. <field name="MAPRED_TASK_DEFAULT_MAXVMEM_PROPERTY" type="java.lang.String"
  49403. transient="false" volatile="false"
  49404. static="true" final="true" visibility="public"
  49405. deprecated="deprecated, no comment">
  49406. <doc>
  49407. <![CDATA[@deprecated]]>
  49408. </doc>
  49409. </field>
  49410. <field name="MAPRED_TASK_MAXPMEM_PROPERTY" type="java.lang.String"
  49411. transient="false" volatile="false"
  49412. static="true" final="true" visibility="public"
  49413. deprecated="deprecated, no comment">
  49414. <doc>
  49415. <![CDATA[@deprecated]]>
  49416. </doc>
  49417. </field>
  49418. <field name="DISABLED_MEMORY_LIMIT" type="long"
  49419. transient="false" volatile="false"
  49420. static="true" final="true" visibility="public"
  49421. deprecated="not deprecated">
  49422. <doc>
  49423. <![CDATA[A value which if set for memory related configuration options,
  49424. indicates that the options are turned off.]]>
  49425. </doc>
  49426. </field>
  49427. <field name="MAPRED_LOCAL_DIR_PROPERTY" type="java.lang.String"
  49428. transient="false" volatile="false"
  49429. static="true" final="true" visibility="public"
  49430. deprecated="not deprecated">
  49431. <doc>
  49432. <![CDATA[Property name for the configuration property mapred.local.dir]]>
  49433. </doc>
  49434. </field>
  49435. <field name="DEFAULT_QUEUE_NAME" type="java.lang.String"
  49436. transient="false" volatile="false"
  49437. static="true" final="true" visibility="public"
  49438. deprecated="not deprecated">
  49439. <doc>
  49440. <![CDATA[Name of the queue to which jobs will be submitted, if no queue
  49441. name is mentioned.]]>
  49442. </doc>
  49443. </field>
  49444. <field name="MAPRED_JOB_MAP_MEMORY_MB_PROPERTY" type="java.lang.String"
  49445. transient="false" volatile="false"
  49446. static="true" final="true" visibility="public"
  49447. deprecated="not deprecated">
  49448. </field>
  49449. <field name="MAPRED_JOB_REDUCE_MEMORY_MB_PROPERTY" type="java.lang.String"
  49450. transient="false" volatile="false"
  49451. static="true" final="true" visibility="public"
  49452. deprecated="not deprecated">
  49453. </field>
  49454. <field name="MAPRED_TASK_JAVA_OPTS" type="java.lang.String"
  49455. transient="false" volatile="false"
  49456. static="true" final="true" visibility="public"
  49457. deprecated="Use {@link #MAPRED_MAP_TASK_JAVA_OPTS} or
  49458. {@link #MAPRED_REDUCE_TASK_JAVA_OPTS}">
  49459. <doc>
  49460. <![CDATA[Configuration key to set the java command line options for the child
  49461. map and reduce tasks.
  49462. Java opts for the task tracker child processes.
  49463. The following symbol, if present, will be interpolated: @taskid@.
  49464. It is replaced by current TaskID. Any other occurrences of '@' will go
  49465. unchanged.
  49466. For example, to enable verbose gc logging to a file named for the taskid in
  49467. /tmp and to set the heap maximum to be a gigabyte, pass a 'value' of:
  49468. -Xmx1024m -verbose:gc -Xloggc:/tmp/@taskid@.gc
  49469. The configuration variable {@link #MAPRED_TASK_ULIMIT} can be used to
  49470. control the maximum virtual memory of the child processes.
  49471. The configuration variable {@link #MAPRED_TASK_ENV} can be used to pass
  49472. other environment variables to the child processes.
  49473. @deprecated Use {@link #MAPRED_MAP_TASK_JAVA_OPTS} or
  49474. {@link #MAPRED_REDUCE_TASK_JAVA_OPTS}]]>
  49475. </doc>
  49476. </field>
  49477. <field name="MAPRED_MAP_TASK_JAVA_OPTS" type="java.lang.String"
  49478. transient="false" volatile="false"
  49479. static="true" final="true" visibility="public"
  49480. deprecated="not deprecated">
  49481. <doc>
  49482. <![CDATA[Configuration key to set the java command line options for the map tasks.
  49483. Java opts for the task tracker child map processes.
  49484. The following symbol, if present, will be interpolated: @taskid@.
  49485. It is replaced by current TaskID. Any other occurrences of '@' will go
  49486. unchanged.
  49487. For example, to enable verbose gc logging to a file named for the taskid in
  49488. /tmp and to set the heap maximum to be a gigabyte, pass a 'value' of:
  49489. -Xmx1024m -verbose:gc -Xloggc:/tmp/@taskid@.gc
  49490. The configuration variable {@link #MAPRED_MAP_TASK_ULIMIT} can be used to
  49491. control the maximum virtual memory of the map processes.
  49492. The configuration variable {@link #MAPRED_MAP_TASK_ENV} can be used to pass
  49493. other environment variables to the map processes.]]>
  49494. </doc>
  49495. </field>
  49496. <field name="MAPRED_REDUCE_TASK_JAVA_OPTS" type="java.lang.String"
  49497. transient="false" volatile="false"
  49498. static="true" final="true" visibility="public"
  49499. deprecated="not deprecated">
  49500. <doc>
  49501. <![CDATA[Configuration key to set the java command line options for the reduce tasks.
  49502. Java opts for the task tracker child reduce processes.
  49503. The following symbol, if present, will be interpolated: @taskid@.
  49504. It is replaced by current TaskID. Any other occurrences of '@' will go
  49505. unchanged.
  49506. For example, to enable verbose gc logging to a file named for the taskid in
  49507. /tmp and to set the heap maximum to be a gigabyte, pass a 'value' of:
  49508. -Xmx1024m -verbose:gc -Xloggc:/tmp/@taskid@.gc
  49509. The configuration variable {@link #MAPRED_REDUCE_TASK_ULIMIT} can be used
  49510. to control the maximum virtual memory of the reduce processes.
  49511. The configuration variable {@link #MAPRED_REDUCE_TASK_ENV} can be used to
  49512. pass process environment variables to the reduce processes.]]>
  49513. </doc>
  49514. </field>
  49515. <field name="DEFAULT_MAPRED_TASK_JAVA_OPTS" type="java.lang.String"
  49516. transient="false" volatile="false"
  49517. static="true" final="true" visibility="public"
  49518. deprecated="not deprecated">
  49519. </field>
  49520. <field name="MAPRED_TASK_ULIMIT" type="java.lang.String"
  49521. transient="false" volatile="false"
  49522. static="true" final="true" visibility="public"
  49523. deprecated="Use {@link #MAPRED_MAP_TASK_ULIMIT} or
  49524. {@link #MAPRED_REDUCE_TASK_ULIMIT}">
  49525. <doc>
  49526. <![CDATA[Configuration key to set the maximum virutal memory available to the child
  49527. map and reduce tasks (in kilo-bytes).
  49528. Note: This must be greater than or equal to the -Xmx passed to the JavaVM
  49529. via {@link #MAPRED_TASK_JAVA_OPTS}, else the VM might not start.
  49530. @deprecated Use {@link #MAPRED_MAP_TASK_ULIMIT} or
  49531. {@link #MAPRED_REDUCE_TASK_ULIMIT}]]>
  49532. </doc>
  49533. </field>
  49534. <field name="MAPRED_MAP_TASK_ULIMIT" type="java.lang.String"
  49535. transient="false" volatile="false"
  49536. static="true" final="true" visibility="public"
  49537. deprecated="not deprecated">
  49538. <doc>
  49539. <![CDATA[Configuration key to set the maximum virutal memory available to the
  49540. map tasks (in kilo-bytes).
  49541. Note: This must be greater than or equal to the -Xmx passed to the JavaVM
  49542. via {@link #MAPRED_MAP_TASK_JAVA_OPTS}, else the VM might not start.]]>
  49543. </doc>
  49544. </field>
  49545. <field name="MAPRED_REDUCE_TASK_ULIMIT" type="java.lang.String"
  49546. transient="false" volatile="false"
  49547. static="true" final="true" visibility="public"
  49548. deprecated="not deprecated">
  49549. <doc>
  49550. <![CDATA[Configuration key to set the maximum virutal memory available to the
  49551. reduce tasks (in kilo-bytes).
  49552. Note: This must be greater than or equal to the -Xmx passed to the JavaVM
  49553. via {@link #MAPRED_REDUCE_TASK_JAVA_OPTS}, else the VM might not start.]]>
  49554. </doc>
  49555. </field>
  49556. <field name="MAPRED_TASK_ENV" type="java.lang.String"
  49557. transient="false" volatile="false"
  49558. static="true" final="true" visibility="public"
  49559. deprecated="Use {@link #MAPRED_MAP_TASK_ENV} or
  49560. {@link #MAPRED_REDUCE_TASK_ENV}">
  49561. <doc>
  49562. <![CDATA[Configuration key to set the environment of the child map/reduce tasks.
  49563. The format of the value is <code>k1=v1,k2=v2</code>. Further it can
  49564. reference existing environment variables via <code>$key</code>.
  49565. Example:
  49566. <ul>
  49567. <li> A=foo - This will set the env variable A to foo. </li>
  49568. <li> B=$X:c This is inherit tasktracker's X env variable. </li>
  49569. </ul>
  49570. @deprecated Use {@link #MAPRED_MAP_TASK_ENV} or
  49571. {@link #MAPRED_REDUCE_TASK_ENV}]]>
  49572. </doc>
  49573. </field>
  49574. <field name="MAPRED_MAP_TASK_ENV" type="java.lang.String"
  49575. transient="false" volatile="false"
  49576. static="true" final="true" visibility="public"
  49577. deprecated="not deprecated">
  49578. <doc>
  49579. <![CDATA[Configuration key to set the maximum virutal memory available to the
  49580. map tasks.
  49581. The format of the value is <code>k1=v1,k2=v2</code>. Further it can
  49582. reference existing environment variables via <code>$key</code>.
  49583. Example:
  49584. <ul>
  49585. <li> A=foo - This will set the env variable A to foo. </li>
  49586. <li> B=$X:c This is inherit tasktracker's X env variable. </li>
  49587. </ul>]]>
  49588. </doc>
  49589. </field>
  49590. <field name="MAPRED_REDUCE_TASK_ENV" type="java.lang.String"
  49591. transient="false" volatile="false"
  49592. static="true" final="true" visibility="public"
  49593. deprecated="not deprecated">
  49594. <doc>
  49595. <![CDATA[Configuration key to set the maximum virutal memory available to the
  49596. reduce tasks.
  49597. The format of the value is <code>k1=v1,k2=v2</code>. Further it can
  49598. reference existing environment variables via <code>$key</code>.
  49599. Example:
  49600. <ul>
  49601. <li> A=foo - This will set the env variable A to foo. </li>
  49602. <li> B=$X:c This is inherit tasktracker's X env variable. </li>
  49603. </ul>]]>
  49604. </doc>
  49605. </field>
  49606. <field name="WORKFLOW_ID" type="java.lang.String"
  49607. transient="false" volatile="false"
  49608. static="true" final="true" visibility="public"
  49609. deprecated="not deprecated">
  49610. </field>
  49611. <field name="WORKFLOW_NAME" type="java.lang.String"
  49612. transient="false" volatile="false"
  49613. static="true" final="true" visibility="public"
  49614. deprecated="not deprecated">
  49615. </field>
  49616. <field name="WORKFLOW_NODE_NAME" type="java.lang.String"
  49617. transient="false" volatile="false"
  49618. static="true" final="true" visibility="public"
  49619. deprecated="not deprecated">
  49620. </field>
  49621. <field name="WORKFLOW_ADJACENCY_PREFIX_STRING" type="java.lang.String"
  49622. transient="false" volatile="false"
  49623. static="true" final="true" visibility="public"
  49624. deprecated="not deprecated">
  49625. </field>
  49626. <field name="WORKFLOW_ADJACENCY_PREFIX_PATTERN" type="java.lang.String"
  49627. transient="false" volatile="false"
  49628. static="true" final="true" visibility="public"
  49629. deprecated="not deprecated">
  49630. </field>
  49631. <field name="WORKFLOW_TAGS" type="java.lang.String"
  49632. transient="false" volatile="false"
  49633. static="true" final="true" visibility="public"
  49634. deprecated="not deprecated">
  49635. </field>
  49636. <field name="MAPREDUCE_RECOVER_JOB" type="java.lang.String"
  49637. transient="false" volatile="false"
  49638. static="true" final="true" visibility="public"
  49639. deprecated="not deprecated">
  49640. </field>
  49641. <field name="DEFAULT_MAPREDUCE_RECOVER_JOB" type="boolean"
  49642. transient="false" volatile="false"
  49643. static="true" final="true" visibility="public"
  49644. deprecated="not deprecated">
  49645. </field>
  49646. <doc>
  49647. <![CDATA[A map/reduce job configuration.
  49648. <p><code>JobConf</code> is the primary interface for a user to describe a
  49649. map-reduce job to the Hadoop framework for execution. The framework tries to
  49650. faithfully execute the job as-is described by <code>JobConf</code>, however:
  49651. <ol>
  49652. <li>
  49653. Some configuration parameters might have been marked as
  49654. <a href="{@docRoot}/org/apache/hadoop/conf/Configuration.html#FinalParams">
  49655. final</a> by administrators and hence cannot be altered.
  49656. </li>
  49657. <li>
  49658. While some job parameters are straight-forward to set
  49659. (e.g. {@link #setNumReduceTasks(int)}), some parameters interact subtly
  49660. rest of the framework and/or job-configuration and is relatively more
  49661. complex for the user to control finely (e.g. {@link #setNumMapTasks(int)}).
  49662. </li>
  49663. </ol></p>
  49664. <p><code>JobConf</code> typically specifies the {@link Mapper}, combiner
  49665. (if any), {@link Partitioner}, {@link Reducer}, {@link InputFormat} and
  49666. {@link OutputFormat} implementations to be used etc.
  49667. <p>Optionally <code>JobConf</code> is used to specify other advanced facets
  49668. of the job such as <code>Comparator</code>s to be used, files to be put in
  49669. the {@link DistributedCache}, whether or not intermediate and/or job outputs
  49670. are to be compressed (and how), debugability via user-provided scripts
  49671. ( {@link #setMapDebugScript(String)}/{@link #setReduceDebugScript(String)}),
  49672. for doing post-processing on task logs, task's stdout, stderr, syslog.
  49673. and etc.</p>
  49674. <p>Here is an example on how to configure a job via <code>JobConf</code>:</p>
  49675. <p><blockquote><pre>
  49676. // Create a new JobConf
  49677. JobConf job = new JobConf(new Configuration(), MyJob.class);
  49678. // Specify various job-specific parameters
  49679. job.setJobName("myjob");
  49680. FileInputFormat.setInputPaths(job, new Path("in"));
  49681. FileOutputFormat.setOutputPath(job, new Path("out"));
  49682. job.setMapperClass(MyJob.MyMapper.class);
  49683. job.setCombinerClass(MyJob.MyReducer.class);
  49684. job.setReducerClass(MyJob.MyReducer.class);
  49685. job.setInputFormat(SequenceFileInputFormat.class);
  49686. job.setOutputFormat(SequenceFileOutputFormat.class);
  49687. </pre></blockquote></p>
  49688. @see JobClient
  49689. @see ClusterStatus
  49690. @see Tool
  49691. @see DistributedCache]]>
  49692. </doc>
  49693. </class>
  49694. <!-- end class org.apache.hadoop.mapred.JobConf -->
  49695. <!-- start interface org.apache.hadoop.mapred.JobConfigurable -->
  49696. <interface name="JobConfigurable" abstract="true"
  49697. static="false" final="false" visibility="public"
  49698. deprecated="not deprecated">
  49699. <method name="configure"
  49700. abstract="false" native="false" synchronized="false"
  49701. static="false" final="false" visibility="public"
  49702. deprecated="not deprecated">
  49703. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  49704. <doc>
  49705. <![CDATA[Initializes a new instance from a {@link JobConf}.
  49706. @param job the configuration]]>
  49707. </doc>
  49708. </method>
  49709. <doc>
  49710. <![CDATA[That what may be configured.]]>
  49711. </doc>
  49712. </interface>
  49713. <!-- end interface org.apache.hadoop.mapred.JobConfigurable -->
  49714. <!-- start class org.apache.hadoop.mapred.JobContext -->
  49715. <class name="JobContext" extends="org.apache.hadoop.mapreduce.JobContext"
  49716. abstract="false"
  49717. static="false" final="false" visibility="public"
  49718. deprecated="not deprecated">
  49719. <method name="getJobConf" return="org.apache.hadoop.mapred.JobConf"
  49720. abstract="false" native="false" synchronized="false"
  49721. static="false" final="false" visibility="public"
  49722. deprecated="not deprecated">
  49723. <doc>
  49724. <![CDATA[Get the job Configuration
  49725. @return JobConf]]>
  49726. </doc>
  49727. </method>
  49728. <method name="getProgressible" return="org.apache.hadoop.util.Progressable"
  49729. abstract="false" native="false" synchronized="false"
  49730. static="false" final="false" visibility="public"
  49731. deprecated="not deprecated">
  49732. <doc>
  49733. <![CDATA[Get the progress mechanism for reporting progress.
  49734. @return progress mechanism]]>
  49735. </doc>
  49736. </method>
  49737. </class>
  49738. <!-- end class org.apache.hadoop.mapred.JobContext -->
  49739. <!-- start class org.apache.hadoop.mapred.JobEndNotifier -->
  49740. <class name="JobEndNotifier" extends="java.lang.Object"
  49741. abstract="false"
  49742. static="false" final="false" visibility="public"
  49743. deprecated="not deprecated">
  49744. <constructor name="JobEndNotifier"
  49745. static="false" final="false" visibility="public"
  49746. deprecated="not deprecated">
  49747. </constructor>
  49748. <method name="startNotifier"
  49749. abstract="false" native="false" synchronized="false"
  49750. static="true" final="false" visibility="public"
  49751. deprecated="not deprecated">
  49752. </method>
  49753. <method name="stopNotifier"
  49754. abstract="false" native="false" synchronized="false"
  49755. static="true" final="false" visibility="public"
  49756. deprecated="not deprecated">
  49757. </method>
  49758. <method name="registerNotification"
  49759. abstract="false" native="false" synchronized="false"
  49760. static="true" final="false" visibility="public"
  49761. deprecated="not deprecated">
  49762. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  49763. <param name="status" type="org.apache.hadoop.mapred.JobStatus"/>
  49764. </method>
  49765. <method name="localRunnerNotification"
  49766. abstract="false" native="false" synchronized="false"
  49767. static="true" final="false" visibility="public"
  49768. deprecated="not deprecated">
  49769. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  49770. <param name="status" type="org.apache.hadoop.mapred.JobStatus"/>
  49771. </method>
  49772. <field name="MAPREDUCE_JOBEND_NOTIFICATION_TIMEOUT_DEFAULT" type="int"
  49773. transient="false" volatile="false"
  49774. static="true" final="true" visibility="public"
  49775. deprecated="not deprecated">
  49776. </field>
  49777. </class>
  49778. <!-- end class org.apache.hadoop.mapred.JobEndNotifier -->
  49779. <!-- start class org.apache.hadoop.mapred.JobHistory -->
  49780. <class name="JobHistory" extends="java.lang.Object"
  49781. abstract="false"
  49782. static="false" final="false" visibility="public"
  49783. deprecated="not deprecated">
  49784. <constructor name="JobHistory"
  49785. static="false" final="false" visibility="public"
  49786. deprecated="not deprecated">
  49787. </constructor>
  49788. <method name="getHistoryFilePath" return="java.lang.String"
  49789. abstract="false" native="false" synchronized="false"
  49790. static="true" final="false" visibility="public"
  49791. deprecated="not deprecated">
  49792. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  49793. <doc>
  49794. <![CDATA[Given the job id, return the history file path from the cache]]>
  49795. </doc>
  49796. </method>
  49797. <method name="init"
  49798. abstract="false" native="false" synchronized="false"
  49799. static="true" final="false" visibility="public"
  49800. deprecated="not deprecated">
  49801. <param name="jobTracker" type="org.apache.hadoop.mapred.JobTracker"/>
  49802. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  49803. <param name="hostname" type="java.lang.String"/>
  49804. <param name="jobTrackerStartTime" type="long"/>
  49805. <exception name="IOException" type="java.io.IOException"/>
  49806. <doc>
  49807. <![CDATA[Initialize JobHistory files.
  49808. @param conf Jobconf of the job tracker.
  49809. @param hostname jobtracker's hostname
  49810. @param jobTrackerStartTime jobtracker's start time]]>
  49811. </doc>
  49812. </method>
  49813. <method name="parseHistoryFromFS"
  49814. abstract="false" native="false" synchronized="false"
  49815. static="true" final="false" visibility="public"
  49816. deprecated="not deprecated">
  49817. <param name="path" type="java.lang.String"/>
  49818. <param name="l" type="org.apache.hadoop.mapred.JobHistory.Listener"/>
  49819. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  49820. <exception name="IOException" type="java.io.IOException"/>
  49821. <doc>
  49822. <![CDATA[Parses history file and invokes Listener.handle() for
  49823. each line of history. It can be used for looking through history
  49824. files for specific items without having to keep whole history in memory.
  49825. @param path path to history file
  49826. @param l Listener for history events
  49827. @param fs FileSystem where history file is present
  49828. @throws IOException]]>
  49829. </doc>
  49830. </method>
  49831. <method name="getTaskLogsUrl" return="java.lang.String"
  49832. abstract="false" native="false" synchronized="false"
  49833. static="true" final="false" visibility="public"
  49834. deprecated="not deprecated">
  49835. <param name="attempt" type="org.apache.hadoop.mapred.JobHistory.TaskAttempt"/>
  49836. <doc>
  49837. <![CDATA[Return the TaskLogsUrl of a particular TaskAttempt
  49838. @param attempt
  49839. @return the taskLogsUrl. null if http-port or tracker-name or
  49840. task-attempt-id are unavailable.]]>
  49841. </doc>
  49842. </method>
  49843. <field name="LOG" type="org.apache.commons.logging.Log"
  49844. transient="false" volatile="false"
  49845. static="true" final="true" visibility="public"
  49846. deprecated="not deprecated">
  49847. </field>
  49848. <field name="JOB_NAME_TRIM_LENGTH" type="int"
  49849. transient="false" volatile="false"
  49850. static="true" final="true" visibility="public"
  49851. deprecated="not deprecated">
  49852. </field>
  49853. <field name="DONEDIR_FS" type="org.apache.hadoop.fs.FileSystem"
  49854. transient="false" volatile="false"
  49855. static="true" final="false" visibility="protected"
  49856. deprecated="not deprecated">
  49857. </field>
  49858. <field name="DONE" type="org.apache.hadoop.fs.Path"
  49859. transient="false" volatile="false"
  49860. static="true" final="false" visibility="protected"
  49861. deprecated="not deprecated">
  49862. </field>
  49863. <field name="JOBHISTORY_FILENAME_REGEX" type="java.util.regex.Pattern"
  49864. transient="false" volatile="false"
  49865. static="true" final="true" visibility="public"
  49866. deprecated="not deprecated">
  49867. </field>
  49868. <field name="CONF_FILENAME_REGEX" type="java.util.regex.Pattern"
  49869. transient="false" volatile="false"
  49870. static="true" final="true" visibility="public"
  49871. deprecated="not deprecated">
  49872. </field>
  49873. <doc>
  49874. <![CDATA[Provides methods for writing to and reading from job history.
  49875. Job History works in an append mode, JobHistory and its inner classes provide methods
  49876. to log job events.
  49877. JobHistory is split into multiple files, format of each file is plain text where each line
  49878. is of the format [type (key=value)*], where type identifies the type of the record.
  49879. Type maps to UID of one of the inner classes of this class.
  49880. Job history is maintained in a master index which contains star/stop times of all jobs with
  49881. a few other job level properties. Apart from this each job's history is maintained in a seperate history
  49882. file. name of job history files follows the format jobtrackerId_jobid
  49883. For parsing the job history it supports a listener based interface where each line is parsed
  49884. and passed to listener. The listener can create an object model of history or look for specific
  49885. events and discard rest of the history.
  49886. CHANGE LOG :
  49887. Version 0 : The history has the following format :
  49888. TAG KEY1="VALUE1" KEY2="VALUE2" and so on.
  49889. TAG can be Job, Task, MapAttempt or ReduceAttempt.
  49890. Note that a '"' is the line delimiter.
  49891. Version 1 : Changes the line delimiter to '.'
  49892. Values are now escaped for unambiguous parsing.
  49893. Added the Meta tag to store version info.]]>
  49894. </doc>
  49895. </class>
  49896. <!-- end class org.apache.hadoop.mapred.JobHistory -->
  49897. <!-- start class org.apache.hadoop.mapred.JobHistory.HistoryCleaner -->
  49898. <class name="JobHistory.HistoryCleaner" extends="java.lang.Object"
  49899. abstract="false"
  49900. static="true" final="false" visibility="public"
  49901. deprecated="not deprecated">
  49902. <implements name="java.lang.Runnable"/>
  49903. <constructor name="JobHistory.HistoryCleaner"
  49904. static="false" final="false" visibility="public"
  49905. deprecated="not deprecated">
  49906. </constructor>
  49907. <method name="run"
  49908. abstract="false" native="false" synchronized="false"
  49909. static="false" final="false" visibility="public"
  49910. deprecated="not deprecated">
  49911. <doc>
  49912. <![CDATA[Cleans up history data.]]>
  49913. </doc>
  49914. </method>
  49915. <method name="clean"
  49916. abstract="false" native="false" synchronized="false"
  49917. static="false" final="false" visibility="public"
  49918. deprecated="not deprecated">
  49919. <param name="now" type="long"/>
  49920. </method>
  49921. <doc>
  49922. <![CDATA[Delete history files older than one month. Update master index and remove all
  49923. jobs older than one month. Also if a job tracker has no jobs in last one month
  49924. remove reference to the job tracker.]]>
  49925. </doc>
  49926. </class>
  49927. <!-- end class org.apache.hadoop.mapred.JobHistory.HistoryCleaner -->
  49928. <!-- start class org.apache.hadoop.mapred.JobHistory.JobInfo -->
  49929. <class name="JobHistory.JobInfo" extends="org.apache.hadoop.mapred.JobHistory.KeyValuePair"
  49930. abstract="false"
  49931. static="true" final="false" visibility="public"
  49932. deprecated="not deprecated">
  49933. <constructor name="JobHistory.JobInfo" type="java.lang.String"
  49934. static="false" final="false" visibility="public"
  49935. deprecated="not deprecated">
  49936. <doc>
  49937. <![CDATA[Create new JobInfo]]>
  49938. </doc>
  49939. </constructor>
  49940. <method name="getAllTasks" return="java.util.Map"
  49941. abstract="false" native="false" synchronized="false"
  49942. static="false" final="false" visibility="public"
  49943. deprecated="not deprecated">
  49944. <doc>
  49945. <![CDATA[Returns all map and reduce tasks <taskid-Task>.]]>
  49946. </doc>
  49947. </method>
  49948. <method name="getJobACLs" return="java.util.Map"
  49949. abstract="false" native="false" synchronized="false"
  49950. static="false" final="false" visibility="public"
  49951. deprecated="not deprecated">
  49952. <doc>
  49953. <![CDATA[Get the job acls.
  49954. @return a {@link Map} from {@link JobACL} to {@link AccessControlList}]]>
  49955. </doc>
  49956. </method>
  49957. <method name="handle"
  49958. abstract="false" native="false" synchronized="true"
  49959. static="false" final="false" visibility="public"
  49960. deprecated="not deprecated">
  49961. <param name="values" type="java.util.Map"/>
  49962. </method>
  49963. <method name="getLocalJobFilePath" return="java.lang.String"
  49964. abstract="false" native="false" synchronized="false"
  49965. static="true" final="false" visibility="public"
  49966. deprecated="not deprecated">
  49967. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  49968. <doc>
  49969. <![CDATA[Get the path of the locally stored job file
  49970. @param jobId id of the job
  49971. @return the path of the job file on the local file system]]>
  49972. </doc>
  49973. </method>
  49974. <method name="encodeJobHistoryFilePath" return="java.lang.String"
  49975. abstract="false" native="false" synchronized="false"
  49976. static="true" final="false" visibility="public"
  49977. deprecated="not deprecated">
  49978. <param name="logFile" type="java.lang.String"/>
  49979. <exception name="IOException" type="java.io.IOException"/>
  49980. <doc>
  49981. <![CDATA[Helper function to encode the URL of the path of the job-history
  49982. log file.
  49983. @param logFile path of the job-history file
  49984. @return URL encoded path
  49985. @throws IOException]]>
  49986. </doc>
  49987. </method>
  49988. <method name="encodeJobHistoryFileName" return="java.lang.String"
  49989. abstract="false" native="false" synchronized="false"
  49990. static="true" final="false" visibility="public"
  49991. deprecated="not deprecated">
  49992. <param name="logFileName" type="java.lang.String"/>
  49993. <exception name="IOException" type="java.io.IOException"/>
  49994. <doc>
  49995. <![CDATA[Helper function to encode the URL of the filename of the job-history
  49996. log file.
  49997. @param logFileName file name of the job-history file
  49998. @return URL encoded filename
  49999. @throws IOException]]>
  50000. </doc>
  50001. </method>
  50002. <method name="decodeJobHistoryFileName" return="java.lang.String"
  50003. abstract="false" native="false" synchronized="false"
  50004. static="true" final="false" visibility="public"
  50005. deprecated="not deprecated">
  50006. <param name="logFileName" type="java.lang.String"/>
  50007. <exception name="IOException" type="java.io.IOException"/>
  50008. <doc>
  50009. <![CDATA[Helper function to decode the URL of the filename of the job-history
  50010. log file.
  50011. @param logFileName file name of the job-history file
  50012. @return URL decoded filename
  50013. @throws IOException]]>
  50014. </doc>
  50015. </method>
  50016. <method name="getUserName" return="java.lang.String"
  50017. abstract="false" native="false" synchronized="false"
  50018. static="true" final="false" visibility="public"
  50019. deprecated="not deprecated">
  50020. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  50021. <doc>
  50022. <![CDATA[Get the user name from the job conf]]>
  50023. </doc>
  50024. </method>
  50025. <method name="getWorkflowAdjacencies" return="java.lang.String"
  50026. abstract="false" native="false" synchronized="false"
  50027. static="true" final="false" visibility="public"
  50028. deprecated="not deprecated">
  50029. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  50030. <doc>
  50031. <![CDATA[Get the workflow adjacencies from the job conf
  50032. The string returned is of the form "key"="value" "key"="value" ...]]>
  50033. </doc>
  50034. </method>
  50035. <method name="getJobHistoryLogLocation" return="org.apache.hadoop.fs.Path"
  50036. abstract="false" native="false" synchronized="false"
  50037. static="true" final="false" visibility="public"
  50038. deprecated="not deprecated">
  50039. <param name="logFileName" type="java.lang.String"/>
  50040. <doc>
  50041. <![CDATA[Get the job history file path given the history filename]]>
  50042. </doc>
  50043. </method>
  50044. <method name="getJobHistoryLogLocationForUser" return="org.apache.hadoop.fs.Path"
  50045. abstract="false" native="false" synchronized="false"
  50046. static="true" final="false" visibility="public"
  50047. deprecated="not deprecated">
  50048. <param name="logFileName" type="java.lang.String"/>
  50049. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  50050. <doc>
  50051. <![CDATA[Get the user job history file path]]>
  50052. </doc>
  50053. </method>
  50054. <method name="getJobHistoryFileName" return="java.lang.String"
  50055. abstract="false" native="false" synchronized="true"
  50056. static="true" final="false" visibility="public"
  50057. deprecated="not deprecated">
  50058. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  50059. <param name="id" type="org.apache.hadoop.mapred.JobID"/>
  50060. <exception name="IOException" type="java.io.IOException"/>
  50061. <doc>
  50062. <![CDATA[Recover the job history filename from the history folder.
  50063. Uses the following pattern
  50064. $jt-hostname_[0-9]*_$job-id_$user_$job-name*
  50065. @param jobConf the job conf
  50066. @param id job id]]>
  50067. </doc>
  50068. </method>
  50069. <method name="recoverJobHistoryFile" return="org.apache.hadoop.fs.Path"
  50070. abstract="false" native="false" synchronized="true"
  50071. static="true" final="false" visibility="public"
  50072. deprecated="not deprecated">
  50073. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  50074. <param name="logFilePath" type="org.apache.hadoop.fs.Path"/>
  50075. <exception name="IOException" type="java.io.IOException"/>
  50076. <doc>
  50077. <![CDATA[Selects one of the two files generated as a part of recovery.
  50078. The thumb rule is that always select the oldest file.
  50079. This call makes sure that only one file is left in the end.
  50080. @param conf job conf
  50081. @param logFilePath Path of the log file
  50082. @throws IOException]]>
  50083. </doc>
  50084. </method>
  50085. <method name="logSubmitted"
  50086. abstract="false" native="false" synchronized="false"
  50087. static="true" final="false" visibility="public"
  50088. deprecated="Use
  50089. {@link #logSubmitted(JobID, JobConf, String, long, boolean)} instead.">
  50090. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  50091. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  50092. <param name="jobConfPath" type="java.lang.String"/>
  50093. <param name="submitTime" type="long"/>
  50094. <exception name="IOException" type="java.io.IOException"/>
  50095. <doc>
  50096. <![CDATA[Log job submitted event to history. Creates a new file in history
  50097. for the job. if history file creation fails, it disables history
  50098. for all other events.
  50099. @param jobId job id assigned by job tracker.
  50100. @param jobConf job conf of the job
  50101. @param jobConfPath path to job conf xml file in HDFS.
  50102. @param submitTime time when job tracker received the job
  50103. @throws IOException
  50104. @deprecated Use
  50105. {@link #logSubmitted(JobID, JobConf, String, long, boolean)} instead.]]>
  50106. </doc>
  50107. </method>
  50108. <method name="logSubmitted"
  50109. abstract="false" native="false" synchronized="false"
  50110. static="true" final="false" visibility="public"
  50111. deprecated="not deprecated">
  50112. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  50113. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  50114. <param name="jobConfPath" type="java.lang.String"/>
  50115. <param name="submitTime" type="long"/>
  50116. <param name="restarted" type="boolean"/>
  50117. <exception name="IOException" type="java.io.IOException"/>
  50118. </method>
  50119. <method name="logInited"
  50120. abstract="false" native="false" synchronized="false"
  50121. static="true" final="false" visibility="public"
  50122. deprecated="not deprecated">
  50123. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  50124. <param name="startTime" type="long"/>
  50125. <param name="totalMaps" type="int"/>
  50126. <param name="totalReduces" type="int"/>
  50127. <doc>
  50128. <![CDATA[Logs launch time of job.
  50129. @param jobId job id, assigned by jobtracker.
  50130. @param startTime start time of job.
  50131. @param totalMaps total maps assigned by jobtracker.
  50132. @param totalReduces total reduces.]]>
  50133. </doc>
  50134. </method>
  50135. <method name="logStarted"
  50136. abstract="false" native="false" synchronized="false"
  50137. static="true" final="false" visibility="public"
  50138. deprecated="Use {@link #logInited(JobID, long, int, int)} and
  50139. {@link #logStarted(JobID)}">
  50140. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  50141. <param name="startTime" type="long"/>
  50142. <param name="totalMaps" type="int"/>
  50143. <param name="totalReduces" type="int"/>
  50144. <doc>
  50145. <![CDATA[Logs the job as RUNNING.
  50146. @param jobId job id, assigned by jobtracker.
  50147. @param startTime start time of job.
  50148. @param totalMaps total maps assigned by jobtracker.
  50149. @param totalReduces total reduces.
  50150. @deprecated Use {@link #logInited(JobID, long, int, int)} and
  50151. {@link #logStarted(JobID)}]]>
  50152. </doc>
  50153. </method>
  50154. <method name="logStarted"
  50155. abstract="false" native="false" synchronized="false"
  50156. static="true" final="false" visibility="public"
  50157. deprecated="not deprecated">
  50158. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  50159. <doc>
  50160. <![CDATA[Logs job as running
  50161. @param jobId job id, assigned by jobtracker.]]>
  50162. </doc>
  50163. </method>
  50164. <method name="logFinished"
  50165. abstract="false" native="false" synchronized="false"
  50166. static="true" final="false" visibility="public"
  50167. deprecated="not deprecated">
  50168. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  50169. <param name="finishTime" type="long"/>
  50170. <param name="finishedMaps" type="int"/>
  50171. <param name="finishedReduces" type="int"/>
  50172. <param name="failedMaps" type="int"/>
  50173. <param name="failedReduces" type="int"/>
  50174. <param name="mapCounters" type="org.apache.hadoop.mapred.Counters"/>
  50175. <param name="reduceCounters" type="org.apache.hadoop.mapred.Counters"/>
  50176. <param name="counters" type="org.apache.hadoop.mapred.Counters"/>
  50177. <doc>
  50178. <![CDATA[Log job finished. closes the job file in history.
  50179. @param jobId job id, assigned by jobtracker.
  50180. @param finishTime finish time of job in ms.
  50181. @param finishedMaps no of maps successfully finished.
  50182. @param finishedReduces no of reduces finished sucessfully.
  50183. @param failedMaps no of failed map tasks.
  50184. @param failedReduces no of failed reduce tasks.
  50185. @param counters the counters from the job]]>
  50186. </doc>
  50187. </method>
  50188. <method name="logFailed"
  50189. abstract="false" native="false" synchronized="false"
  50190. static="true" final="false" visibility="public"
  50191. deprecated="not deprecated">
  50192. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  50193. <param name="timestamp" type="long"/>
  50194. <param name="finishedMaps" type="int"/>
  50195. <param name="finishedReduces" type="int"/>
  50196. <param name="failReason" type="java.lang.String"/>
  50197. <doc>
  50198. <![CDATA[Logs job failed event. Closes the job history log file.
  50199. @param jobid job id
  50200. @param timestamp time when job failure was detected in ms.
  50201. @param finishedMaps no finished map tasks.
  50202. @param finishedReduces no of finished reduce tasks.]]>
  50203. </doc>
  50204. </method>
  50205. <method name="logKilled"
  50206. abstract="false" native="false" synchronized="false"
  50207. static="true" final="false" visibility="public"
  50208. deprecated="not deprecated">
  50209. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  50210. <param name="timestamp" type="long"/>
  50211. <param name="finishedMaps" type="int"/>
  50212. <param name="finishedReduces" type="int"/>
  50213. <doc>
  50214. <![CDATA[Logs job killed event. Closes the job history log file.
  50215. @param jobid
  50216. job id
  50217. @param timestamp
  50218. time when job killed was issued in ms.
  50219. @param finishedMaps
  50220. no finished map tasks.
  50221. @param finishedReduces
  50222. no of finished reduce tasks.]]>
  50223. </doc>
  50224. </method>
  50225. <method name="logJobPriority"
  50226. abstract="false" native="false" synchronized="false"
  50227. static="true" final="false" visibility="public"
  50228. deprecated="not deprecated">
  50229. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  50230. <param name="priority" type="org.apache.hadoop.mapred.JobPriority"/>
  50231. <doc>
  50232. <![CDATA[Log job's priority.
  50233. @param jobid job id
  50234. @param priority Jobs priority]]>
  50235. </doc>
  50236. </method>
  50237. <method name="logJobInfo"
  50238. abstract="false" native="false" synchronized="false"
  50239. static="true" final="false" visibility="public"
  50240. deprecated="Use {@link #logJobInfo(JobID, long, long)} instead.">
  50241. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  50242. <param name="submitTime" type="long"/>
  50243. <param name="launchTime" type="long"/>
  50244. <param name="restartCount" type="int"/>
  50245. <doc>
  50246. <![CDATA[Log job's submit-time/launch-time
  50247. @param jobid job id
  50248. @param submitTime job's submit time
  50249. @param launchTime job's launch time
  50250. @param restartCount number of times the job got restarted
  50251. @deprecated Use {@link #logJobInfo(JobID, long, long)} instead.]]>
  50252. </doc>
  50253. </method>
  50254. <method name="logJobInfo"
  50255. abstract="false" native="false" synchronized="false"
  50256. static="true" final="false" visibility="public"
  50257. deprecated="not deprecated">
  50258. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  50259. <param name="submitTime" type="long"/>
  50260. <param name="launchTime" type="long"/>
  50261. </method>
  50262. <doc>
  50263. <![CDATA[Helper class for logging or reading back events related to job start, finish or failure.]]>
  50264. </doc>
  50265. </class>
  50266. <!-- end class org.apache.hadoop.mapred.JobHistory.JobInfo -->
  50267. <!-- start class org.apache.hadoop.mapred.JobHistory.Keys -->
  50268. <class name="JobHistory.Keys" extends="java.lang.Enum"
  50269. abstract="false"
  50270. static="true" final="true" visibility="public"
  50271. deprecated="not deprecated">
  50272. <method name="values" return="org.apache.hadoop.mapred.JobHistory.Keys[]"
  50273. abstract="false" native="false" synchronized="false"
  50274. static="true" final="false" visibility="public"
  50275. deprecated="not deprecated">
  50276. </method>
  50277. <method name="valueOf" return="org.apache.hadoop.mapred.JobHistory.Keys"
  50278. abstract="false" native="false" synchronized="false"
  50279. static="true" final="false" visibility="public"
  50280. deprecated="not deprecated">
  50281. <param name="name" type="java.lang.String"/>
  50282. </method>
  50283. <field name="JOBTRACKERID" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50284. transient="false" volatile="false"
  50285. static="true" final="true" visibility="public"
  50286. deprecated="not deprecated">
  50287. </field>
  50288. <field name="START_TIME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50289. transient="false" volatile="false"
  50290. static="true" final="true" visibility="public"
  50291. deprecated="not deprecated">
  50292. </field>
  50293. <field name="FINISH_TIME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50294. transient="false" volatile="false"
  50295. static="true" final="true" visibility="public"
  50296. deprecated="not deprecated">
  50297. </field>
  50298. <field name="JOBID" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50299. transient="false" volatile="false"
  50300. static="true" final="true" visibility="public"
  50301. deprecated="not deprecated">
  50302. </field>
  50303. <field name="JOBNAME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50304. transient="false" volatile="false"
  50305. static="true" final="true" visibility="public"
  50306. deprecated="not deprecated">
  50307. </field>
  50308. <field name="USER" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50309. transient="false" volatile="false"
  50310. static="true" final="true" visibility="public"
  50311. deprecated="not deprecated">
  50312. </field>
  50313. <field name="JOBCONF" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50314. transient="false" volatile="false"
  50315. static="true" final="true" visibility="public"
  50316. deprecated="not deprecated">
  50317. </field>
  50318. <field name="SUBMIT_TIME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50319. transient="false" volatile="false"
  50320. static="true" final="true" visibility="public"
  50321. deprecated="not deprecated">
  50322. </field>
  50323. <field name="LAUNCH_TIME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50324. transient="false" volatile="false"
  50325. static="true" final="true" visibility="public"
  50326. deprecated="not deprecated">
  50327. </field>
  50328. <field name="TOTAL_MAPS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50329. transient="false" volatile="false"
  50330. static="true" final="true" visibility="public"
  50331. deprecated="not deprecated">
  50332. </field>
  50333. <field name="TOTAL_REDUCES" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50334. transient="false" volatile="false"
  50335. static="true" final="true" visibility="public"
  50336. deprecated="not deprecated">
  50337. </field>
  50338. <field name="FAILED_MAPS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50339. transient="false" volatile="false"
  50340. static="true" final="true" visibility="public"
  50341. deprecated="not deprecated">
  50342. </field>
  50343. <field name="FAILED_REDUCES" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50344. transient="false" volatile="false"
  50345. static="true" final="true" visibility="public"
  50346. deprecated="not deprecated">
  50347. </field>
  50348. <field name="FINISHED_MAPS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50349. transient="false" volatile="false"
  50350. static="true" final="true" visibility="public"
  50351. deprecated="not deprecated">
  50352. </field>
  50353. <field name="FINISHED_REDUCES" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50354. transient="false" volatile="false"
  50355. static="true" final="true" visibility="public"
  50356. deprecated="not deprecated">
  50357. </field>
  50358. <field name="JOB_STATUS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50359. transient="false" volatile="false"
  50360. static="true" final="true" visibility="public"
  50361. deprecated="not deprecated">
  50362. </field>
  50363. <field name="TASKID" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50364. transient="false" volatile="false"
  50365. static="true" final="true" visibility="public"
  50366. deprecated="not deprecated">
  50367. </field>
  50368. <field name="HOSTNAME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50369. transient="false" volatile="false"
  50370. static="true" final="true" visibility="public"
  50371. deprecated="not deprecated">
  50372. </field>
  50373. <field name="TASK_TYPE" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50374. transient="false" volatile="false"
  50375. static="true" final="true" visibility="public"
  50376. deprecated="not deprecated">
  50377. </field>
  50378. <field name="ERROR" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50379. transient="false" volatile="false"
  50380. static="true" final="true" visibility="public"
  50381. deprecated="not deprecated">
  50382. </field>
  50383. <field name="TASK_ATTEMPT_ID" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50384. transient="false" volatile="false"
  50385. static="true" final="true" visibility="public"
  50386. deprecated="not deprecated">
  50387. </field>
  50388. <field name="TASK_STATUS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50389. transient="false" volatile="false"
  50390. static="true" final="true" visibility="public"
  50391. deprecated="not deprecated">
  50392. </field>
  50393. <field name="COPY_PHASE" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50394. transient="false" volatile="false"
  50395. static="true" final="true" visibility="public"
  50396. deprecated="not deprecated">
  50397. </field>
  50398. <field name="SORT_PHASE" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50399. transient="false" volatile="false"
  50400. static="true" final="true" visibility="public"
  50401. deprecated="not deprecated">
  50402. </field>
  50403. <field name="REDUCE_PHASE" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50404. transient="false" volatile="false"
  50405. static="true" final="true" visibility="public"
  50406. deprecated="not deprecated">
  50407. </field>
  50408. <field name="SHUFFLE_FINISHED" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50409. transient="false" volatile="false"
  50410. static="true" final="true" visibility="public"
  50411. deprecated="not deprecated">
  50412. </field>
  50413. <field name="SORT_FINISHED" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50414. transient="false" volatile="false"
  50415. static="true" final="true" visibility="public"
  50416. deprecated="not deprecated">
  50417. </field>
  50418. <field name="COUNTERS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50419. transient="false" volatile="false"
  50420. static="true" final="true" visibility="public"
  50421. deprecated="not deprecated">
  50422. </field>
  50423. <field name="SPLITS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50424. transient="false" volatile="false"
  50425. static="true" final="true" visibility="public"
  50426. deprecated="not deprecated">
  50427. </field>
  50428. <field name="JOB_PRIORITY" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50429. transient="false" volatile="false"
  50430. static="true" final="true" visibility="public"
  50431. deprecated="not deprecated">
  50432. </field>
  50433. <field name="HTTP_PORT" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50434. transient="false" volatile="false"
  50435. static="true" final="true" visibility="public"
  50436. deprecated="not deprecated">
  50437. </field>
  50438. <field name="TRACKER_NAME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50439. transient="false" volatile="false"
  50440. static="true" final="true" visibility="public"
  50441. deprecated="not deprecated">
  50442. </field>
  50443. <field name="STATE_STRING" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50444. transient="false" volatile="false"
  50445. static="true" final="true" visibility="public"
  50446. deprecated="not deprecated">
  50447. </field>
  50448. <field name="VERSION" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50449. transient="false" volatile="false"
  50450. static="true" final="true" visibility="public"
  50451. deprecated="not deprecated">
  50452. </field>
  50453. <field name="MAP_COUNTERS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50454. transient="false" volatile="false"
  50455. static="true" final="true" visibility="public"
  50456. deprecated="not deprecated">
  50457. </field>
  50458. <field name="REDUCE_COUNTERS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50459. transient="false" volatile="false"
  50460. static="true" final="true" visibility="public"
  50461. deprecated="not deprecated">
  50462. </field>
  50463. <field name="VIEW_JOB" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50464. transient="false" volatile="false"
  50465. static="true" final="true" visibility="public"
  50466. deprecated="not deprecated">
  50467. </field>
  50468. <field name="MODIFY_JOB" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50469. transient="false" volatile="false"
  50470. static="true" final="true" visibility="public"
  50471. deprecated="not deprecated">
  50472. </field>
  50473. <field name="JOB_QUEUE" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50474. transient="false" volatile="false"
  50475. static="true" final="true" visibility="public"
  50476. deprecated="not deprecated">
  50477. </field>
  50478. <field name="FAIL_REASON" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50479. transient="false" volatile="false"
  50480. static="true" final="true" visibility="public"
  50481. deprecated="not deprecated">
  50482. </field>
  50483. <field name="LOCALITY" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50484. transient="false" volatile="false"
  50485. static="true" final="true" visibility="public"
  50486. deprecated="not deprecated">
  50487. </field>
  50488. <field name="AVATAAR" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50489. transient="false" volatile="false"
  50490. static="true" final="true" visibility="public"
  50491. deprecated="not deprecated">
  50492. </field>
  50493. <field name="WORKFLOW_ID" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50494. transient="false" volatile="false"
  50495. static="true" final="true" visibility="public"
  50496. deprecated="not deprecated">
  50497. </field>
  50498. <field name="WORKFLOW_NAME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50499. transient="false" volatile="false"
  50500. static="true" final="true" visibility="public"
  50501. deprecated="not deprecated">
  50502. </field>
  50503. <field name="WORKFLOW_NODE_NAME" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50504. transient="false" volatile="false"
  50505. static="true" final="true" visibility="public"
  50506. deprecated="not deprecated">
  50507. </field>
  50508. <field name="WORKFLOW_ADJACENCIES" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50509. transient="false" volatile="false"
  50510. static="true" final="true" visibility="public"
  50511. deprecated="not deprecated">
  50512. </field>
  50513. <field name="WORKFLOW_TAGS" type="org.apache.hadoop.mapred.JobHistory.Keys"
  50514. transient="false" volatile="false"
  50515. static="true" final="true" visibility="public"
  50516. deprecated="not deprecated">
  50517. </field>
  50518. <doc>
  50519. <![CDATA[Job history files contain key="value" pairs, where keys belong to this enum.
  50520. It acts as a global namespace for all keys.]]>
  50521. </doc>
  50522. </class>
  50523. <!-- end class org.apache.hadoop.mapred.JobHistory.Keys -->
  50524. <!-- start interface org.apache.hadoop.mapred.JobHistory.Listener -->
  50525. <interface name="JobHistory.Listener" abstract="true"
  50526. static="true" final="false" visibility="public"
  50527. deprecated="not deprecated">
  50528. <method name="handle"
  50529. abstract="false" native="false" synchronized="false"
  50530. static="false" final="false" visibility="public"
  50531. deprecated="not deprecated">
  50532. <param name="recType" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"/>
  50533. <param name="values" type="java.util.Map"/>
  50534. <exception name="IOException" type="java.io.IOException"/>
  50535. <doc>
  50536. <![CDATA[Callback method for history parser.
  50537. @param recType type of record, which is the first entry in the line.
  50538. @param values a map of key-value pairs as thry appear in history.
  50539. @throws IOException]]>
  50540. </doc>
  50541. </method>
  50542. <doc>
  50543. <![CDATA[Callback interface for reading back log events from JobHistory. This interface
  50544. should be implemented and passed to JobHistory.parseHistory()]]>
  50545. </doc>
  50546. </interface>
  50547. <!-- end interface org.apache.hadoop.mapred.JobHistory.Listener -->
  50548. <!-- start class org.apache.hadoop.mapred.JobHistory.MapAttempt -->
  50549. <class name="JobHistory.MapAttempt" extends="org.apache.hadoop.mapred.JobHistory.TaskAttempt"
  50550. abstract="false"
  50551. static="true" final="false" visibility="public"
  50552. deprecated="not deprecated">
  50553. <constructor name="JobHistory.MapAttempt"
  50554. static="false" final="false" visibility="public"
  50555. deprecated="not deprecated">
  50556. </constructor>
  50557. <method name="logStarted"
  50558. abstract="false" native="false" synchronized="false"
  50559. static="true" final="false" visibility="public"
  50560. deprecated="Use
  50561. {@link #logStarted(TaskAttemptID, long, String, int, String)}">
  50562. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  50563. <param name="startTime" type="long"/>
  50564. <param name="hostName" type="java.lang.String"/>
  50565. <doc>
  50566. <![CDATA[Log start time of this map task attempt.
  50567. @param taskAttemptId task attempt id
  50568. @param startTime start time of task attempt as reported by task tracker.
  50569. @param hostName host name of the task attempt.
  50570. @deprecated Use
  50571. {@link #logStarted(TaskAttemptID, long, String, int, String)}]]>
  50572. </doc>
  50573. </method>
  50574. <method name="logStarted"
  50575. abstract="false" native="false" synchronized="false"
  50576. static="true" final="false" visibility="public"
  50577. deprecated="not deprecated">
  50578. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  50579. <param name="startTime" type="long"/>
  50580. <param name="trackerName" type="java.lang.String"/>
  50581. <param name="httpPort" type="int"/>
  50582. <param name="taskType" type="java.lang.String"/>
  50583. </method>
  50584. <method name="logStarted"
  50585. abstract="false" native="false" synchronized="false"
  50586. static="true" final="false" visibility="public"
  50587. deprecated="not deprecated">
  50588. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  50589. <param name="startTime" type="long"/>
  50590. <param name="trackerName" type="java.lang.String"/>
  50591. <param name="httpPort" type="int"/>
  50592. <param name="taskType" type="java.lang.String"/>
  50593. <param name="locality" type="org.apache.hadoop.mapred.Locality"/>
  50594. <param name="avataar" type="org.apache.hadoop.mapred.Avataar"/>
  50595. <doc>
  50596. <![CDATA[Log start time of this map task attempt.
  50597. @param taskAttemptId task attempt id
  50598. @param startTime start time of task attempt as reported by task tracker.
  50599. @param trackerName name of the tracker executing the task attempt.
  50600. @param httpPort http port of the task tracker executing the task attempt
  50601. @param taskType Whether the attempt is cleanup or setup or map
  50602. @param locality the data locality of the task attempt
  50603. @param Avataar the avataar of the task attempt]]>
  50604. </doc>
  50605. </method>
  50606. <method name="logFinished"
  50607. abstract="false" native="false" synchronized="false"
  50608. static="true" final="false" visibility="public"
  50609. deprecated="Use
  50610. {@link #logFinished(TaskAttemptID, long, String, String, String, Counters)}">
  50611. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  50612. <param name="finishTime" type="long"/>
  50613. <param name="hostName" type="java.lang.String"/>
  50614. <doc>
  50615. <![CDATA[Log finish time of map task attempt.
  50616. @param taskAttemptId task attempt id
  50617. @param finishTime finish time
  50618. @param hostName host name
  50619. @deprecated Use
  50620. {@link #logFinished(TaskAttemptID, long, String, String, String, Counters)}]]>
  50621. </doc>
  50622. </method>
  50623. <method name="logFinished"
  50624. abstract="false" native="false" synchronized="false"
  50625. static="true" final="false" visibility="public"
  50626. deprecated="not deprecated">
  50627. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  50628. <param name="finishTime" type="long"/>
  50629. <param name="hostName" type="java.lang.String"/>
  50630. <param name="taskType" type="java.lang.String"/>
  50631. <param name="stateString" type="java.lang.String"/>
  50632. <param name="counter" type="org.apache.hadoop.mapred.Counters"/>
  50633. <doc>
  50634. <![CDATA[Log finish time of map task attempt.
  50635. @param taskAttemptId task attempt id
  50636. @param finishTime finish time
  50637. @param hostName host name
  50638. @param taskType Whether the attempt is cleanup or setup or map
  50639. @param stateString state string of the task attempt
  50640. @param counter counters of the task attempt]]>
  50641. </doc>
  50642. </method>
  50643. <method name="logFailed"
  50644. abstract="false" native="false" synchronized="false"
  50645. static="true" final="false" visibility="public"
  50646. deprecated="Use
  50647. {@link #logFailed(TaskAttemptID, long, String, String, String)}">
  50648. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  50649. <param name="timestamp" type="long"/>
  50650. <param name="hostName" type="java.lang.String"/>
  50651. <param name="error" type="java.lang.String"/>
  50652. <doc>
  50653. <![CDATA[Log task attempt failed event.
  50654. @param taskAttemptId task attempt id
  50655. @param timestamp timestamp
  50656. @param hostName hostname of this task attempt.
  50657. @param error error message if any for this task attempt.
  50658. @deprecated Use
  50659. {@link #logFailed(TaskAttemptID, long, String, String, String)}]]>
  50660. </doc>
  50661. </method>
  50662. <method name="logFailed"
  50663. abstract="false" native="false" synchronized="false"
  50664. static="true" final="false" visibility="public"
  50665. deprecated="not deprecated">
  50666. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  50667. <param name="timestamp" type="long"/>
  50668. <param name="hostName" type="java.lang.String"/>
  50669. <param name="error" type="java.lang.String"/>
  50670. <param name="taskType" type="java.lang.String"/>
  50671. <doc>
  50672. <![CDATA[Log task attempt failed event.
  50673. @param taskAttemptId task attempt id
  50674. @param timestamp timestamp
  50675. @param hostName hostname of this task attempt.
  50676. @param error error message if any for this task attempt.
  50677. @param taskType Whether the attempt is cleanup or setup or map]]>
  50678. </doc>
  50679. </method>
  50680. <method name="logKilled"
  50681. abstract="false" native="false" synchronized="false"
  50682. static="true" final="false" visibility="public"
  50683. deprecated="Use
  50684. {@link #logKilled(TaskAttemptID, long, String, String, String)}">
  50685. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  50686. <param name="timestamp" type="long"/>
  50687. <param name="hostName" type="java.lang.String"/>
  50688. <param name="error" type="java.lang.String"/>
  50689. <doc>
  50690. <![CDATA[Log task attempt killed event.
  50691. @param taskAttemptId task attempt id
  50692. @param timestamp timestamp
  50693. @param hostName hostname of this task attempt.
  50694. @param error error message if any for this task attempt.
  50695. @deprecated Use
  50696. {@link #logKilled(TaskAttemptID, long, String, String, String)}]]>
  50697. </doc>
  50698. </method>
  50699. <method name="logKilled"
  50700. abstract="false" native="false" synchronized="false"
  50701. static="true" final="false" visibility="public"
  50702. deprecated="not deprecated">
  50703. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  50704. <param name="timestamp" type="long"/>
  50705. <param name="hostName" type="java.lang.String"/>
  50706. <param name="error" type="java.lang.String"/>
  50707. <param name="taskType" type="java.lang.String"/>
  50708. <doc>
  50709. <![CDATA[Log task attempt killed event.
  50710. @param taskAttemptId task attempt id
  50711. @param timestamp timestamp
  50712. @param hostName hostname of this task attempt.
  50713. @param error error message if any for this task attempt.
  50714. @param taskType Whether the attempt is cleanup or setup or map]]>
  50715. </doc>
  50716. </method>
  50717. <doc>
  50718. <![CDATA[Helper class for logging or reading back events related to start, finish or failure of
  50719. a Map Attempt on a node.]]>
  50720. </doc>
  50721. </class>
  50722. <!-- end class org.apache.hadoop.mapred.JobHistory.MapAttempt -->
  50723. <!-- start class org.apache.hadoop.mapred.JobHistory.RecordTypes -->
  50724. <class name="JobHistory.RecordTypes" extends="java.lang.Enum"
  50725. abstract="false"
  50726. static="true" final="true" visibility="public"
  50727. deprecated="not deprecated">
  50728. <method name="values" return="org.apache.hadoop.mapred.JobHistory.RecordTypes[]"
  50729. abstract="false" native="false" synchronized="false"
  50730. static="true" final="false" visibility="public"
  50731. deprecated="not deprecated">
  50732. </method>
  50733. <method name="valueOf" return="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  50734. abstract="false" native="false" synchronized="false"
  50735. static="true" final="false" visibility="public"
  50736. deprecated="not deprecated">
  50737. <param name="name" type="java.lang.String"/>
  50738. </method>
  50739. <field name="Jobtracker" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  50740. transient="false" volatile="false"
  50741. static="true" final="true" visibility="public"
  50742. deprecated="not deprecated">
  50743. </field>
  50744. <field name="Job" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  50745. transient="false" volatile="false"
  50746. static="true" final="true" visibility="public"
  50747. deprecated="not deprecated">
  50748. </field>
  50749. <field name="Task" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  50750. transient="false" volatile="false"
  50751. static="true" final="true" visibility="public"
  50752. deprecated="not deprecated">
  50753. </field>
  50754. <field name="MapAttempt" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  50755. transient="false" volatile="false"
  50756. static="true" final="true" visibility="public"
  50757. deprecated="not deprecated">
  50758. </field>
  50759. <field name="ReduceAttempt" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  50760. transient="false" volatile="false"
  50761. static="true" final="true" visibility="public"
  50762. deprecated="not deprecated">
  50763. </field>
  50764. <field name="Meta" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  50765. transient="false" volatile="false"
  50766. static="true" final="true" visibility="public"
  50767. deprecated="not deprecated">
  50768. </field>
  50769. <doc>
  50770. <![CDATA[Record types are identifiers for each line of log in history files.
  50771. A record type appears as the first token in a single line of log.]]>
  50772. </doc>
  50773. </class>
  50774. <!-- end class org.apache.hadoop.mapred.JobHistory.RecordTypes -->
  50775. <!-- start class org.apache.hadoop.mapred.JobHistory.ReduceAttempt -->
  50776. <class name="JobHistory.ReduceAttempt" extends="org.apache.hadoop.mapred.JobHistory.TaskAttempt"
  50777. abstract="false"
  50778. static="true" final="false" visibility="public"
  50779. deprecated="not deprecated">
  50780. <constructor name="JobHistory.ReduceAttempt"
  50781. static="false" final="false" visibility="public"
  50782. deprecated="not deprecated">
  50783. </constructor>
  50784. <method name="logStarted"
  50785. abstract="false" native="false" synchronized="false"
  50786. static="true" final="false" visibility="public"
  50787. deprecated="Use
  50788. {@link #logStarted(TaskAttemptID, long, String, int, String)}">
  50789. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  50790. <param name="startTime" type="long"/>
  50791. <param name="hostName" type="java.lang.String"/>
  50792. <doc>
  50793. <![CDATA[Log start time of Reduce task attempt.
  50794. @param taskAttemptId task attempt id
  50795. @param startTime start time
  50796. @param hostName host name
  50797. @deprecated Use
  50798. {@link #logStarted(TaskAttemptID, long, String, int, String)}]]>
  50799. </doc>
  50800. </method>
  50801. <method name="logStarted"
  50802. abstract="false" native="false" synchronized="false"
  50803. static="true" final="false" visibility="public"
  50804. deprecated="not deprecated">
  50805. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  50806. <param name="startTime" type="long"/>
  50807. <param name="trackerName" type="java.lang.String"/>
  50808. <param name="httpPort" type="int"/>
  50809. <param name="taskType" type="java.lang.String"/>
  50810. </method>
  50811. <method name="logStarted"
  50812. abstract="false" native="false" synchronized="false"
  50813. static="true" final="false" visibility="public"
  50814. deprecated="not deprecated">
  50815. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  50816. <param name="startTime" type="long"/>
  50817. <param name="trackerName" type="java.lang.String"/>
  50818. <param name="httpPort" type="int"/>
  50819. <param name="taskType" type="java.lang.String"/>
  50820. <param name="locality" type="org.apache.hadoop.mapred.Locality"/>
  50821. <param name="avataar" type="org.apache.hadoop.mapred.Avataar"/>
  50822. <doc>
  50823. <![CDATA[Log start time of Reduce task attempt.
  50824. @param taskAttemptId task attempt id
  50825. @param startTime start time
  50826. @param trackerName tracker name
  50827. @param httpPort the http port of the tracker executing the task attempt
  50828. @param taskType Whether the attempt is cleanup or setup or reduce
  50829. @param locality the data locality of the task attempt
  50830. @param Avataar the avataar of the task attempt]]>
  50831. </doc>
  50832. </method>
  50833. <method name="logFinished"
  50834. abstract="false" native="false" synchronized="false"
  50835. static="true" final="false" visibility="public"
  50836. deprecated="Use
  50837. {@link #logFinished(TaskAttemptID, long, long, long, String, String, String, Counters)}">
  50838. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  50839. <param name="shuffleFinished" type="long"/>
  50840. <param name="sortFinished" type="long"/>
  50841. <param name="finishTime" type="long"/>
  50842. <param name="hostName" type="java.lang.String"/>
  50843. <doc>
  50844. <![CDATA[Log finished event of this task.
  50845. @param taskAttemptId task attempt id
  50846. @param shuffleFinished shuffle finish time
  50847. @param sortFinished sort finish time
  50848. @param finishTime finish time of task
  50849. @param hostName host name where task attempt executed
  50850. @deprecated Use
  50851. {@link #logFinished(TaskAttemptID, long, long, long, String, String, String, Counters)}]]>
  50852. </doc>
  50853. </method>
  50854. <method name="logFinished"
  50855. abstract="false" native="false" synchronized="false"
  50856. static="true" final="false" visibility="public"
  50857. deprecated="not deprecated">
  50858. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  50859. <param name="shuffleFinished" type="long"/>
  50860. <param name="sortFinished" type="long"/>
  50861. <param name="finishTime" type="long"/>
  50862. <param name="hostName" type="java.lang.String"/>
  50863. <param name="taskType" type="java.lang.String"/>
  50864. <param name="stateString" type="java.lang.String"/>
  50865. <param name="counter" type="org.apache.hadoop.mapred.Counters"/>
  50866. <doc>
  50867. <![CDATA[Log finished event of this task.
  50868. @param taskAttemptId task attempt id
  50869. @param shuffleFinished shuffle finish time
  50870. @param sortFinished sort finish time
  50871. @param finishTime finish time of task
  50872. @param hostName host name where task attempt executed
  50873. @param taskType Whether the attempt is cleanup or setup or reduce
  50874. @param stateString the state string of the attempt
  50875. @param counter counters of the attempt]]>
  50876. </doc>
  50877. </method>
  50878. <method name="logFailed"
  50879. abstract="false" native="false" synchronized="false"
  50880. static="true" final="false" visibility="public"
  50881. deprecated="Use
  50882. {@link #logFailed(TaskAttemptID, long, String, String, String)}">
  50883. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  50884. <param name="timestamp" type="long"/>
  50885. <param name="hostName" type="java.lang.String"/>
  50886. <param name="error" type="java.lang.String"/>
  50887. <doc>
  50888. <![CDATA[Log failed reduce task attempt.
  50889. @param taskAttemptId task attempt id
  50890. @param timestamp time stamp when task failed
  50891. @param hostName host name of the task attempt.
  50892. @param error error message of the task.
  50893. @deprecated Use
  50894. {@link #logFailed(TaskAttemptID, long, String, String, String)}]]>
  50895. </doc>
  50896. </method>
  50897. <method name="logFailed"
  50898. abstract="false" native="false" synchronized="false"
  50899. static="true" final="false" visibility="public"
  50900. deprecated="not deprecated">
  50901. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  50902. <param name="timestamp" type="long"/>
  50903. <param name="hostName" type="java.lang.String"/>
  50904. <param name="error" type="java.lang.String"/>
  50905. <param name="taskType" type="java.lang.String"/>
  50906. <doc>
  50907. <![CDATA[Log failed reduce task attempt.
  50908. @param taskAttemptId task attempt id
  50909. @param timestamp time stamp when task failed
  50910. @param hostName host name of the task attempt.
  50911. @param error error message of the task.
  50912. @param taskType Whether the attempt is cleanup or setup or reduce]]>
  50913. </doc>
  50914. </method>
  50915. <method name="logKilled"
  50916. abstract="false" native="false" synchronized="false"
  50917. static="true" final="false" visibility="public"
  50918. deprecated="Use
  50919. {@link #logKilled(TaskAttemptID, long, String, String, String)}">
  50920. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  50921. <param name="timestamp" type="long"/>
  50922. <param name="hostName" type="java.lang.String"/>
  50923. <param name="error" type="java.lang.String"/>
  50924. <doc>
  50925. <![CDATA[Log killed reduce task attempt.
  50926. @param taskAttemptId task attempt id
  50927. @param timestamp time stamp when task failed
  50928. @param hostName host name of the task attempt.
  50929. @param error error message of the task.
  50930. @deprecated Use
  50931. {@link #logKilled(TaskAttemptID, long, String, String, String)}]]>
  50932. </doc>
  50933. </method>
  50934. <method name="logKilled"
  50935. abstract="false" native="false" synchronized="false"
  50936. static="true" final="false" visibility="public"
  50937. deprecated="not deprecated">
  50938. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  50939. <param name="timestamp" type="long"/>
  50940. <param name="hostName" type="java.lang.String"/>
  50941. <param name="error" type="java.lang.String"/>
  50942. <param name="taskType" type="java.lang.String"/>
  50943. <doc>
  50944. <![CDATA[Log killed reduce task attempt.
  50945. @param taskAttemptId task attempt id
  50946. @param timestamp time stamp when task failed
  50947. @param hostName host name of the task attempt.
  50948. @param error error message of the task.
  50949. @param taskType Whether the attempt is cleanup or setup or reduce]]>
  50950. </doc>
  50951. </method>
  50952. <doc>
  50953. <![CDATA[Helper class for logging or reading back events related to start, finish or failure of
  50954. a Map Attempt on a node.]]>
  50955. </doc>
  50956. </class>
  50957. <!-- end class org.apache.hadoop.mapred.JobHistory.ReduceAttempt -->
  50958. <!-- start class org.apache.hadoop.mapred.JobHistory.Task -->
  50959. <class name="JobHistory.Task" extends="org.apache.hadoop.mapred.JobHistory.KeyValuePair"
  50960. abstract="false"
  50961. static="true" final="false" visibility="public"
  50962. deprecated="not deprecated">
  50963. <constructor name="JobHistory.Task"
  50964. static="false" final="false" visibility="public"
  50965. deprecated="not deprecated">
  50966. </constructor>
  50967. <method name="logStarted"
  50968. abstract="false" native="false" synchronized="false"
  50969. static="true" final="false" visibility="public"
  50970. deprecated="not deprecated">
  50971. <param name="taskId" type="org.apache.hadoop.mapred.TaskID"/>
  50972. <param name="taskType" type="java.lang.String"/>
  50973. <param name="startTime" type="long"/>
  50974. <param name="splitLocations" type="java.lang.String"/>
  50975. <doc>
  50976. <![CDATA[Log start time of task (TIP).
  50977. @param taskId task id
  50978. @param taskType MAP or REDUCE
  50979. @param startTime startTime of tip.]]>
  50980. </doc>
  50981. </method>
  50982. <method name="logFinished"
  50983. abstract="false" native="false" synchronized="false"
  50984. static="true" final="false" visibility="public"
  50985. deprecated="not deprecated">
  50986. <param name="taskId" type="org.apache.hadoop.mapred.TaskID"/>
  50987. <param name="taskType" type="java.lang.String"/>
  50988. <param name="finishTime" type="long"/>
  50989. <param name="counters" type="org.apache.hadoop.mapred.Counters"/>
  50990. <doc>
  50991. <![CDATA[Log finish time of task.
  50992. @param taskId task id
  50993. @param taskType MAP or REDUCE
  50994. @param finishTime finish timeof task in ms]]>
  50995. </doc>
  50996. </method>
  50997. <method name="logUpdates"
  50998. abstract="false" native="false" synchronized="false"
  50999. static="true" final="false" visibility="public"
  51000. deprecated="not deprecated">
  51001. <param name="taskId" type="org.apache.hadoop.mapred.TaskID"/>
  51002. <param name="finishTime" type="long"/>
  51003. <doc>
  51004. <![CDATA[Update the finish time of task.
  51005. @param taskId task id
  51006. @param finishTime finish time of task in ms]]>
  51007. </doc>
  51008. </method>
  51009. <method name="logFailed"
  51010. abstract="false" native="false" synchronized="false"
  51011. static="true" final="false" visibility="public"
  51012. deprecated="not deprecated">
  51013. <param name="taskId" type="org.apache.hadoop.mapred.TaskID"/>
  51014. <param name="taskType" type="java.lang.String"/>
  51015. <param name="time" type="long"/>
  51016. <param name="error" type="java.lang.String"/>
  51017. <doc>
  51018. <![CDATA[Log job failed event.
  51019. @param taskId task id
  51020. @param taskType MAP or REDUCE.
  51021. @param time timestamp when job failed detected.
  51022. @param error error message for failure.]]>
  51023. </doc>
  51024. </method>
  51025. <method name="logFailed"
  51026. abstract="false" native="false" synchronized="false"
  51027. static="true" final="false" visibility="public"
  51028. deprecated="not deprecated">
  51029. <param name="taskId" type="org.apache.hadoop.mapred.TaskID"/>
  51030. <param name="taskType" type="java.lang.String"/>
  51031. <param name="time" type="long"/>
  51032. <param name="error" type="java.lang.String"/>
  51033. <param name="failedDueToAttempt" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  51034. <doc>
  51035. <![CDATA[@param failedDueToAttempt The attempt that caused the failure, if any]]>
  51036. </doc>
  51037. </method>
  51038. <method name="getTaskAttempts" return="java.util.Map"
  51039. abstract="false" native="false" synchronized="false"
  51040. static="false" final="false" visibility="public"
  51041. deprecated="not deprecated">
  51042. <doc>
  51043. <![CDATA[Returns all task attempts for this task. <task attempt id - TaskAttempt>]]>
  51044. </doc>
  51045. </method>
  51046. <doc>
  51047. <![CDATA[Helper class for logging or reading back events related to Task's start, finish or failure.
  51048. All events logged by this class are logged in a separate file per job in
  51049. job tracker history. These events map to TIPs in jobtracker.]]>
  51050. </doc>
  51051. </class>
  51052. <!-- end class org.apache.hadoop.mapred.JobHistory.Task -->
  51053. <!-- start class org.apache.hadoop.mapred.JobHistory.TaskAttempt -->
  51054. <class name="JobHistory.TaskAttempt" extends="org.apache.hadoop.mapred.JobHistory.Task"
  51055. abstract="false"
  51056. static="true" final="false" visibility="public"
  51057. deprecated="not deprecated">
  51058. <constructor name="JobHistory.TaskAttempt"
  51059. static="false" final="false" visibility="public"
  51060. deprecated="not deprecated">
  51061. </constructor>
  51062. <doc>
  51063. <![CDATA[Base class for Map and Reduce TaskAttempts.]]>
  51064. </doc>
  51065. </class>
  51066. <!-- end class org.apache.hadoop.mapred.JobHistory.TaskAttempt -->
  51067. <!-- start class org.apache.hadoop.mapred.JobHistory.Values -->
  51068. <class name="JobHistory.Values" extends="java.lang.Enum"
  51069. abstract="false"
  51070. static="true" final="true" visibility="public"
  51071. deprecated="not deprecated">
  51072. <method name="values" return="org.apache.hadoop.mapred.JobHistory.Values[]"
  51073. abstract="false" native="false" synchronized="false"
  51074. static="true" final="false" visibility="public"
  51075. deprecated="not deprecated">
  51076. </method>
  51077. <method name="valueOf" return="org.apache.hadoop.mapred.JobHistory.Values"
  51078. abstract="false" native="false" synchronized="false"
  51079. static="true" final="false" visibility="public"
  51080. deprecated="not deprecated">
  51081. <param name="name" type="java.lang.String"/>
  51082. </method>
  51083. <field name="SUCCESS" type="org.apache.hadoop.mapred.JobHistory.Values"
  51084. transient="false" volatile="false"
  51085. static="true" final="true" visibility="public"
  51086. deprecated="not deprecated">
  51087. </field>
  51088. <field name="FAILED" type="org.apache.hadoop.mapred.JobHistory.Values"
  51089. transient="false" volatile="false"
  51090. static="true" final="true" visibility="public"
  51091. deprecated="not deprecated">
  51092. </field>
  51093. <field name="KILLED" type="org.apache.hadoop.mapred.JobHistory.Values"
  51094. transient="false" volatile="false"
  51095. static="true" final="true" visibility="public"
  51096. deprecated="not deprecated">
  51097. </field>
  51098. <field name="MAP" type="org.apache.hadoop.mapred.JobHistory.Values"
  51099. transient="false" volatile="false"
  51100. static="true" final="true" visibility="public"
  51101. deprecated="not deprecated">
  51102. </field>
  51103. <field name="REDUCE" type="org.apache.hadoop.mapred.JobHistory.Values"
  51104. transient="false" volatile="false"
  51105. static="true" final="true" visibility="public"
  51106. deprecated="not deprecated">
  51107. </field>
  51108. <field name="CLEANUP" type="org.apache.hadoop.mapred.JobHistory.Values"
  51109. transient="false" volatile="false"
  51110. static="true" final="true" visibility="public"
  51111. deprecated="not deprecated">
  51112. </field>
  51113. <field name="RUNNING" type="org.apache.hadoop.mapred.JobHistory.Values"
  51114. transient="false" volatile="false"
  51115. static="true" final="true" visibility="public"
  51116. deprecated="not deprecated">
  51117. </field>
  51118. <field name="PREP" type="org.apache.hadoop.mapred.JobHistory.Values"
  51119. transient="false" volatile="false"
  51120. static="true" final="true" visibility="public"
  51121. deprecated="not deprecated">
  51122. </field>
  51123. <field name="SETUP" type="org.apache.hadoop.mapred.JobHistory.Values"
  51124. transient="false" volatile="false"
  51125. static="true" final="true" visibility="public"
  51126. deprecated="not deprecated">
  51127. </field>
  51128. <doc>
  51129. <![CDATA[This enum contains some of the values commonly used by history log events.
  51130. since values in history can only be strings - Values.name() is used in
  51131. most places in history file.]]>
  51132. </doc>
  51133. </class>
  51134. <!-- end class org.apache.hadoop.mapred.JobHistory.Values -->
  51135. <!-- start class org.apache.hadoop.mapred.JobHistoryServer -->
  51136. <class name="JobHistoryServer" extends="java.lang.Object"
  51137. abstract="false"
  51138. static="false" final="false" visibility="public"
  51139. deprecated="not deprecated">
  51140. <constructor name="JobHistoryServer" type="org.apache.hadoop.mapred.JobConf"
  51141. static="false" final="false" visibility="public"
  51142. deprecated="not deprecated">
  51143. <exception name="IOException" type="java.io.IOException"/>
  51144. <doc>
  51145. <![CDATA[Starts job history server as a independent process
  51146. * Initializes ACL Manager
  51147. * Starts a webapp to service history requests
  51148. @param conf - Mr Cluster configuration
  51149. @throws IOException - any exception starting history server]]>
  51150. </doc>
  51151. </constructor>
  51152. <constructor name="JobHistoryServer" type="org.apache.hadoop.mapred.JobConf, org.apache.hadoop.mapred.ACLsManager, org.apache.hadoop.http.HttpServer"
  51153. static="false" final="false" visibility="public"
  51154. deprecated="not deprecated">
  51155. <exception name="IOException" type="java.io.IOException"/>
  51156. <doc>
  51157. <![CDATA[Starts job history server as a embedded server within job tracker
  51158. * Starts a webapp to service history requests
  51159. @param conf - MR Cluster configuration
  51160. @param aclsManager - ACLs Manager for user authentication
  51161. @param httpServer - Http Server instance
  51162. @throws IOException - any exception starting history server]]>
  51163. </doc>
  51164. </constructor>
  51165. <method name="start"
  51166. abstract="false" native="false" synchronized="false"
  51167. static="false" final="false" visibility="public"
  51168. deprecated="not deprecated">
  51169. <exception name="IOException" type="java.io.IOException"/>
  51170. </method>
  51171. <method name="join"
  51172. abstract="false" native="false" synchronized="false"
  51173. static="false" final="false" visibility="public"
  51174. deprecated="not deprecated">
  51175. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  51176. </method>
  51177. <method name="shutdown"
  51178. abstract="false" native="false" synchronized="false"
  51179. static="false" final="false" visibility="public"
  51180. deprecated="not deprecated">
  51181. <exception name="Exception" type="java.lang.Exception"/>
  51182. <doc>
  51183. <![CDATA[Shutsdown the history server if already initialized
  51184. @throws Exception - Any exception during shutdown]]>
  51185. </doc>
  51186. </method>
  51187. <method name="main"
  51188. abstract="false" native="false" synchronized="false"
  51189. static="true" final="false" visibility="public"
  51190. deprecated="not deprecated">
  51191. <param name="args" type="java.lang.String[]"/>
  51192. <doc>
  51193. <![CDATA[Start job history server as an independent process
  51194. @param args - Command line arguments]]>
  51195. </doc>
  51196. </method>
  51197. <field name="MAPRED_HISTORY_SERVER_HTTP_ADDRESS" type="java.lang.String"
  51198. transient="false" volatile="false"
  51199. static="true" final="true" visibility="public"
  51200. deprecated="not deprecated">
  51201. </field>
  51202. <field name="MAPRED_HISTORY_SERVER_EMBEDDED" type="java.lang.String"
  51203. transient="false" volatile="false"
  51204. static="true" final="true" visibility="public"
  51205. deprecated="not deprecated">
  51206. </field>
  51207. <doc>
  51208. <![CDATA[{@link JobHistoryServer} is responsible for servicing all job history
  51209. related requests from client.
  51210. History Server can be initialized in one of two modes
  51211. * Emdedded within {@link JobTracker}
  51212. * External daemon, can either be run on the job tracker node or outside
  51213. Two {@link Configuration} entries in mapred-site.xml govern the functioning
  51214. of the history server
  51215. mapred.job.history.server.http.address is address to which history web
  51216. server is bound to. If operating in embedded mode, the hostname on
  51217. history address has to be same as the job tracker host name
  51218. mapred.job.history.server.embedded (default is true) will cause job tracker
  51219. to init history server, else the server need to be started as a
  51220. separate daemon process]]>
  51221. </doc>
  51222. </class>
  51223. <!-- end class org.apache.hadoop.mapred.JobHistoryServer -->
  51224. <!-- start class org.apache.hadoop.mapred.JobID -->
  51225. <class name="JobID" extends="org.apache.hadoop.mapreduce.JobID"
  51226. abstract="false"
  51227. static="false" final="false" visibility="public"
  51228. deprecated="not deprecated">
  51229. <constructor name="JobID" type="java.lang.String, int"
  51230. static="false" final="false" visibility="public"
  51231. deprecated="not deprecated">
  51232. <doc>
  51233. <![CDATA[Constructs a JobID object
  51234. @param jtIdentifier jobTracker identifier
  51235. @param id job number]]>
  51236. </doc>
  51237. </constructor>
  51238. <constructor name="JobID"
  51239. static="false" final="false" visibility="public"
  51240. deprecated="not deprecated">
  51241. </constructor>
  51242. <method name="downgrade" return="org.apache.hadoop.mapred.JobID"
  51243. abstract="false" native="false" synchronized="false"
  51244. static="true" final="false" visibility="public"
  51245. deprecated="not deprecated">
  51246. <param name="old" type="org.apache.hadoop.mapreduce.JobID"/>
  51247. <doc>
  51248. <![CDATA[Downgrade a new JobID to an old one
  51249. @param old a new or old JobID
  51250. @return either old or a new JobID build to match old]]>
  51251. </doc>
  51252. </method>
  51253. <method name="read" return="org.apache.hadoop.mapred.JobID"
  51254. abstract="false" native="false" synchronized="false"
  51255. static="true" final="false" visibility="public"
  51256. deprecated="not deprecated">
  51257. <param name="in" type="java.io.DataInput"/>
  51258. <exception name="IOException" type="java.io.IOException"/>
  51259. </method>
  51260. <method name="forName" return="org.apache.hadoop.mapred.JobID"
  51261. abstract="false" native="false" synchronized="false"
  51262. static="true" final="false" visibility="public"
  51263. deprecated="not deprecated">
  51264. <param name="str" type="java.lang.String"/>
  51265. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  51266. <doc>
  51267. <![CDATA[Construct a JobId object from given string
  51268. @return constructed JobId object or null if the given String is null
  51269. @throws IllegalArgumentException if the given string is malformed]]>
  51270. </doc>
  51271. </method>
  51272. <method name="getJobIDsPattern" return="java.lang.String"
  51273. abstract="false" native="false" synchronized="false"
  51274. static="true" final="false" visibility="public"
  51275. deprecated="not deprecated">
  51276. <param name="jtIdentifier" type="java.lang.String"/>
  51277. <param name="jobId" type="java.lang.Integer"/>
  51278. <doc>
  51279. <![CDATA[Returns a regex pattern which matches task IDs. Arguments can
  51280. be given null, in which case that part of the regex will be generic.
  51281. For example to obtain a regex matching <i>any job</i>
  51282. run on the jobtracker started at <i>200707121733</i>, we would use :
  51283. <pre>
  51284. JobID.getTaskIDsPattern("200707121733", null);
  51285. </pre>
  51286. which will return :
  51287. <pre> "job_200707121733_[0-9]*" </pre>
  51288. @param jtIdentifier jobTracker identifier, or null
  51289. @param jobId job number, or null
  51290. @return a regex pattern matching JobIDs]]>
  51291. </doc>
  51292. </method>
  51293. <doc>
  51294. <![CDATA[JobID represents the immutable and unique identifier for
  51295. the job. JobID consists of two parts. First part
  51296. represents the jobtracker identifier, so that jobID to jobtracker map
  51297. is defined. For cluster setup this string is the jobtracker
  51298. start time, for local setting, it is "local".
  51299. Second part of the JobID is the job number. <br>
  51300. An example JobID is :
  51301. <code>job_200707121733_0003</code> , which represents the third job
  51302. running at the jobtracker started at <code>200707121733</code>.
  51303. <p>
  51304. Applications should never construct or parse JobID strings, but rather
  51305. use appropriate constructors or {@link #forName(String)} method.
  51306. @see TaskID
  51307. @see TaskAttemptID]]>
  51308. </doc>
  51309. </class>
  51310. <!-- end class org.apache.hadoop.mapred.JobID -->
  51311. <!-- start class org.apache.hadoop.mapred.JobInProgress -->
  51312. <class name="JobInProgress" extends="java.lang.Object"
  51313. abstract="false"
  51314. static="false" final="false" visibility="public"
  51315. deprecated="not deprecated">
  51316. <constructor name="JobInProgress" type="org.apache.hadoop.mapred.JobID, org.apache.hadoop.mapred.JobConf, org.apache.hadoop.mapred.JobTracker"
  51317. static="false" final="false" visibility="protected"
  51318. deprecated="not deprecated">
  51319. <exception name="IOException" type="java.io.IOException"/>
  51320. <doc>
  51321. <![CDATA[Create an almost empty JobInProgress, which can be used only for tests]]>
  51322. </doc>
  51323. </constructor>
  51324. <method name="getQueueMetrics" return="org.apache.hadoop.mapred.QueueMetrics"
  51325. abstract="false" native="false" synchronized="false"
  51326. static="false" final="false" visibility="public"
  51327. deprecated="not deprecated">
  51328. <doc>
  51329. <![CDATA[Get the QueueMetrics object associated with this job
  51330. @return QueueMetrics]]>
  51331. </doc>
  51332. </method>
  51333. <method name="cleanUpMetrics"
  51334. abstract="false" native="false" synchronized="false"
  51335. static="false" final="false" visibility="public"
  51336. deprecated="not deprecated">
  51337. <doc>
  51338. <![CDATA[Called when the job is complete]]>
  51339. </doc>
  51340. </method>
  51341. <method name="inited" return="boolean"
  51342. abstract="false" native="false" synchronized="false"
  51343. static="false" final="false" visibility="public"
  51344. deprecated="not deprecated">
  51345. <doc>
  51346. <![CDATA[Check if the job has been initialized.
  51347. @return <code>true</code> if the job has been initialized,
  51348. <code>false</code> otherwise]]>
  51349. </doc>
  51350. </method>
  51351. <method name="getUser" return="java.lang.String"
  51352. abstract="false" native="false" synchronized="false"
  51353. static="false" final="false" visibility="public"
  51354. deprecated="not deprecated">
  51355. <doc>
  51356. <![CDATA[Get the user for the job]]>
  51357. </doc>
  51358. </method>
  51359. <method name="initTasks"
  51360. abstract="false" native="false" synchronized="true"
  51361. static="false" final="false" visibility="public"
  51362. deprecated="not deprecated">
  51363. <exception name="IOException" type="java.io.IOException"/>
  51364. <exception name="JobInProgress.KillInterruptedException" type="org.apache.hadoop.mapred.JobInProgress.KillInterruptedException"/>
  51365. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  51366. <doc>
  51367. <![CDATA[Construct the splits, etc. This is invoked from an async
  51368. thread so that split-computation doesn't block anyone.]]>
  51369. </doc>
  51370. </method>
  51371. <method name="getProfile" return="org.apache.hadoop.mapred.JobProfile"
  51372. abstract="false" native="false" synchronized="false"
  51373. static="false" final="false" visibility="public"
  51374. deprecated="not deprecated">
  51375. </method>
  51376. <method name="getStatus" return="org.apache.hadoop.mapred.JobStatus"
  51377. abstract="false" native="false" synchronized="false"
  51378. static="false" final="false" visibility="public"
  51379. deprecated="not deprecated">
  51380. </method>
  51381. <method name="getLaunchTime" return="long"
  51382. abstract="false" native="false" synchronized="true"
  51383. static="false" final="false" visibility="public"
  51384. deprecated="not deprecated">
  51385. </method>
  51386. <method name="getStartTime" return="long"
  51387. abstract="false" native="false" synchronized="false"
  51388. static="false" final="false" visibility="public"
  51389. deprecated="not deprecated">
  51390. </method>
  51391. <method name="getFinishTime" return="long"
  51392. abstract="false" native="false" synchronized="false"
  51393. static="false" final="false" visibility="public"
  51394. deprecated="not deprecated">
  51395. </method>
  51396. <method name="desiredMaps" return="int"
  51397. abstract="false" native="false" synchronized="false"
  51398. static="false" final="false" visibility="public"
  51399. deprecated="not deprecated">
  51400. </method>
  51401. <method name="finishedMaps" return="int"
  51402. abstract="false" native="false" synchronized="true"
  51403. static="false" final="false" visibility="public"
  51404. deprecated="not deprecated">
  51405. </method>
  51406. <method name="desiredReduces" return="int"
  51407. abstract="false" native="false" synchronized="false"
  51408. static="false" final="false" visibility="public"
  51409. deprecated="not deprecated">
  51410. </method>
  51411. <method name="runningMaps" return="int"
  51412. abstract="false" native="false" synchronized="true"
  51413. static="false" final="false" visibility="public"
  51414. deprecated="not deprecated">
  51415. </method>
  51416. <method name="runningReduces" return="int"
  51417. abstract="false" native="false" synchronized="true"
  51418. static="false" final="false" visibility="public"
  51419. deprecated="not deprecated">
  51420. </method>
  51421. <method name="finishedReduces" return="int"
  51422. abstract="false" native="false" synchronized="true"
  51423. static="false" final="false" visibility="public"
  51424. deprecated="not deprecated">
  51425. </method>
  51426. <method name="pendingMaps" return="int"
  51427. abstract="false" native="false" synchronized="true"
  51428. static="false" final="false" visibility="public"
  51429. deprecated="not deprecated">
  51430. </method>
  51431. <method name="pendingReduces" return="int"
  51432. abstract="false" native="false" synchronized="true"
  51433. static="false" final="false" visibility="public"
  51434. deprecated="not deprecated">
  51435. </method>
  51436. <method name="desiredTasks" return="int"
  51437. abstract="false" native="false" synchronized="false"
  51438. static="false" final="false" visibility="public"
  51439. deprecated="not deprecated">
  51440. <doc>
  51441. <![CDATA[Return total number of map and reduce tasks desired by the job.
  51442. @return total number of map and reduce tasks desired by the job]]>
  51443. </doc>
  51444. </method>
  51445. <method name="getNumSlotsPerTask" return="int"
  51446. abstract="false" native="false" synchronized="false"
  51447. static="false" final="false" visibility="public"
  51448. deprecated="not deprecated">
  51449. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  51450. </method>
  51451. <method name="getPriority" return="org.apache.hadoop.mapred.JobPriority"
  51452. abstract="false" native="false" synchronized="false"
  51453. static="false" final="false" visibility="public"
  51454. deprecated="not deprecated">
  51455. </method>
  51456. <method name="setPriority"
  51457. abstract="false" native="false" synchronized="false"
  51458. static="false" final="false" visibility="public"
  51459. deprecated="not deprecated">
  51460. <param name="priority" type="org.apache.hadoop.mapred.JobPriority"/>
  51461. </method>
  51462. <method name="reportTasksInProgress" return="java.util.Vector"
  51463. abstract="false" native="false" synchronized="true"
  51464. static="false" final="false" visibility="public"
  51465. deprecated="not deprecated">
  51466. <param name="shouldBeMap" type="boolean"/>
  51467. <param name="shouldBeComplete" type="boolean"/>
  51468. <doc>
  51469. <![CDATA[Return a vector of completed TaskInProgress objects]]>
  51470. </doc>
  51471. </method>
  51472. <method name="reportCleanupTIPs" return="java.util.Vector"
  51473. abstract="false" native="false" synchronized="true"
  51474. static="false" final="false" visibility="public"
  51475. deprecated="not deprecated">
  51476. <param name="shouldBeComplete" type="boolean"/>
  51477. <doc>
  51478. <![CDATA[Return a vector of cleanup TaskInProgress objects]]>
  51479. </doc>
  51480. </method>
  51481. <method name="reportSetupTIPs" return="java.util.Vector"
  51482. abstract="false" native="false" synchronized="true"
  51483. static="false" final="false" visibility="public"
  51484. deprecated="not deprecated">
  51485. <param name="shouldBeComplete" type="boolean"/>
  51486. <doc>
  51487. <![CDATA[Return a vector of setup TaskInProgress objects]]>
  51488. </doc>
  51489. </method>
  51490. <method name="updateTaskStatus"
  51491. abstract="false" native="false" synchronized="true"
  51492. static="false" final="false" visibility="public"
  51493. deprecated="not deprecated">
  51494. <param name="tip" type="org.apache.hadoop.mapred.TaskInProgress"/>
  51495. <param name="status" type="org.apache.hadoop.mapred.TaskStatus"/>
  51496. <doc>
  51497. <![CDATA[Assuming {@link JobTracker} is locked on entry.]]>
  51498. </doc>
  51499. </method>
  51500. <method name="getJobCounters" return="org.apache.hadoop.mapred.Counters"
  51501. abstract="false" native="false" synchronized="true"
  51502. static="false" final="false" visibility="public"
  51503. deprecated="not deprecated">
  51504. <doc>
  51505. <![CDATA[Returns the job-level counters.
  51506. @return the job-level counters.]]>
  51507. </doc>
  51508. </method>
  51509. <method name="getMapCounters" return="boolean"
  51510. abstract="false" native="false" synchronized="true"
  51511. static="false" final="false" visibility="public"
  51512. deprecated="not deprecated">
  51513. <param name="counters" type="org.apache.hadoop.mapred.Counters"/>
  51514. <doc>
  51515. <![CDATA[Returns map phase counters by summing over all map tasks in progress.
  51516. This method returns true if counters are within limit or false.]]>
  51517. </doc>
  51518. </method>
  51519. <method name="getReduceCounters" return="boolean"
  51520. abstract="false" native="false" synchronized="true"
  51521. static="false" final="false" visibility="public"
  51522. deprecated="not deprecated">
  51523. <param name="counters" type="org.apache.hadoop.mapred.Counters"/>
  51524. <doc>
  51525. <![CDATA[Returns map phase counters by summing over all map tasks in progress.
  51526. This method returns true if counters are within limits and false otherwise.]]>
  51527. </doc>
  51528. </method>
  51529. <method name="getCounters" return="boolean"
  51530. abstract="false" native="false" synchronized="true"
  51531. static="false" final="false" visibility="public"
  51532. deprecated="not deprecated">
  51533. <param name="result" type="org.apache.hadoop.mapred.Counters"/>
  51534. <doc>
  51535. <![CDATA[Returns the total job counters, by adding together the job,
  51536. the map and the reduce counters. This method returns true if
  51537. counters are within limits and false otherwise.]]>
  51538. </doc>
  51539. </method>
  51540. <method name="obtainNewMapTask" return="org.apache.hadoop.mapred.Task"
  51541. abstract="false" native="false" synchronized="true"
  51542. static="false" final="false" visibility="public"
  51543. deprecated="not deprecated">
  51544. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  51545. <param name="clusterSize" type="int"/>
  51546. <param name="numUniqueHosts" type="int"/>
  51547. <exception name="IOException" type="java.io.IOException"/>
  51548. <doc>
  51549. <![CDATA[Return a MapTask, if appropriate, to run on the given tasktracker]]>
  51550. </doc>
  51551. </method>
  51552. <method name="obtainNewMapTaskCommon" return="org.apache.hadoop.mapred.Task"
  51553. abstract="false" native="false" synchronized="true"
  51554. static="false" final="false" visibility="public"
  51555. deprecated="not deprecated">
  51556. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  51557. <param name="clusterSize" type="int"/>
  51558. <param name="numUniqueHosts" type="int"/>
  51559. <param name="maxCacheLevel" type="int"/>
  51560. <exception name="IOException" type="java.io.IOException"/>
  51561. <doc>
  51562. <![CDATA[Return a MapTask with locality level that smaller or equal than a given
  51563. locality level to tasktracker.
  51564. @param tts The task tracker that is asking for a task
  51565. @param clusterSize The number of task trackers in the cluster
  51566. @param numUniqueHosts The number of hosts that run task trackers
  51567. @param avgProgress The average progress of this kind of task in this job
  51568. @param maxCacheLevel The maximum topology level until which to schedule
  51569. maps.
  51570. @return the index in tasks of the selected task (or -1 for no task)
  51571. @throws IOException]]>
  51572. </doc>
  51573. </method>
  51574. <method name="obtainTaskCleanupTask" return="org.apache.hadoop.mapred.Task"
  51575. abstract="false" native="false" synchronized="false"
  51576. static="false" final="false" visibility="public"
  51577. deprecated="not deprecated">
  51578. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  51579. <param name="isMapSlot" type="boolean"/>
  51580. <exception name="IOException" type="java.io.IOException"/>
  51581. </method>
  51582. <method name="obtainNewNodeLocalMapTask" return="org.apache.hadoop.mapred.Task"
  51583. abstract="false" native="false" synchronized="true"
  51584. static="false" final="false" visibility="public"
  51585. deprecated="not deprecated">
  51586. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  51587. <param name="clusterSize" type="int"/>
  51588. <param name="numUniqueHosts" type="int"/>
  51589. <exception name="IOException" type="java.io.IOException"/>
  51590. </method>
  51591. <method name="obtainNewNodeOrRackLocalMapTask" return="org.apache.hadoop.mapred.Task"
  51592. abstract="false" native="false" synchronized="true"
  51593. static="false" final="false" visibility="public"
  51594. deprecated="not deprecated">
  51595. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  51596. <param name="clusterSize" type="int"/>
  51597. <param name="numUniqueHosts" type="int"/>
  51598. <exception name="IOException" type="java.io.IOException"/>
  51599. </method>
  51600. <method name="obtainNewNonLocalMapTask" return="org.apache.hadoop.mapred.Task"
  51601. abstract="false" native="false" synchronized="true"
  51602. static="false" final="false" visibility="public"
  51603. deprecated="not deprecated">
  51604. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  51605. <param name="clusterSize" type="int"/>
  51606. <param name="numUniqueHosts" type="int"/>
  51607. <exception name="IOException" type="java.io.IOException"/>
  51608. </method>
  51609. <method name="schedulingOpportunity"
  51610. abstract="false" native="false" synchronized="false"
  51611. static="false" final="false" visibility="public"
  51612. deprecated="not deprecated">
  51613. </method>
  51614. <method name="resetSchedulingOpportunities"
  51615. abstract="false" native="false" synchronized="false"
  51616. static="false" final="false" visibility="public"
  51617. deprecated="not deprecated">
  51618. </method>
  51619. <method name="getNumSchedulingOpportunities" return="long"
  51620. abstract="false" native="false" synchronized="false"
  51621. static="false" final="false" visibility="public"
  51622. deprecated="not deprecated">
  51623. </method>
  51624. <method name="overrideSchedulingOpportunities"
  51625. abstract="false" native="false" synchronized="false"
  51626. static="false" final="false" visibility="public"
  51627. deprecated="not deprecated">
  51628. </method>
  51629. <method name="scheduleOffSwitch" return="boolean"
  51630. abstract="false" native="false" synchronized="false"
  51631. static="false" final="false" visibility="public"
  51632. deprecated="not deprecated">
  51633. <param name="numTaskTrackers" type="int"/>
  51634. <doc>
  51635. <![CDATA[Check if we can schedule an off-switch task for this job.
  51636. @param numTaskTrackers number of tasktrackers
  51637. @return <code>true</code> if we can schedule off-switch,
  51638. <code>false</code> otherwise
  51639. We check the number of missed opportunities for the job.
  51640. If it has 'waited' long enough we go ahead and schedule.]]>
  51641. </doc>
  51642. </method>
  51643. <method name="obtainJobCleanupTask" return="org.apache.hadoop.mapred.Task"
  51644. abstract="false" native="false" synchronized="false"
  51645. static="false" final="false" visibility="public"
  51646. deprecated="not deprecated">
  51647. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  51648. <param name="clusterSize" type="int"/>
  51649. <param name="numUniqueHosts" type="int"/>
  51650. <param name="isMapSlot" type="boolean"/>
  51651. <exception name="IOException" type="java.io.IOException"/>
  51652. <doc>
  51653. <![CDATA[Return a CleanupTask, if appropriate, to run on the given tasktracker]]>
  51654. </doc>
  51655. </method>
  51656. <method name="obtainJobSetupTask" return="org.apache.hadoop.mapred.Task"
  51657. abstract="false" native="false" synchronized="false"
  51658. static="false" final="false" visibility="public"
  51659. deprecated="not deprecated">
  51660. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  51661. <param name="clusterSize" type="int"/>
  51662. <param name="numUniqueHosts" type="int"/>
  51663. <param name="isMapSlot" type="boolean"/>
  51664. <exception name="IOException" type="java.io.IOException"/>
  51665. <doc>
  51666. <![CDATA[Return a SetupTask, if appropriate, to run on the given tasktracker]]>
  51667. </doc>
  51668. </method>
  51669. <method name="scheduleReduces" return="boolean"
  51670. abstract="false" native="false" synchronized="true"
  51671. static="false" final="false" visibility="public"
  51672. deprecated="not deprecated">
  51673. </method>
  51674. <method name="obtainNewReduceTask" return="org.apache.hadoop.mapred.Task"
  51675. abstract="false" native="false" synchronized="true"
  51676. static="false" final="false" visibility="public"
  51677. deprecated="not deprecated">
  51678. <param name="tts" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  51679. <param name="clusterSize" type="int"/>
  51680. <param name="numUniqueHosts" type="int"/>
  51681. <exception name="IOException" type="java.io.IOException"/>
  51682. <doc>
  51683. <![CDATA[Return a ReduceTask, if appropriate, to run on the given tasktracker.
  51684. We don't have cache-sensitivity for reduce tasks, as they
  51685. work on temporary MapRed files.]]>
  51686. </doc>
  51687. </method>
  51688. <method name="reserveTaskTracker"
  51689. abstract="false" native="false" synchronized="true"
  51690. static="false" final="false" visibility="public"
  51691. deprecated="not deprecated">
  51692. <param name="taskTracker" type="org.apache.hadoop.mapreduce.server.jobtracker.TaskTracker"/>
  51693. <param name="type" type="org.apache.hadoop.mapreduce.TaskType"/>
  51694. <param name="numSlots" type="int"/>
  51695. </method>
  51696. <method name="unreserveTaskTracker"
  51697. abstract="false" native="false" synchronized="true"
  51698. static="false" final="false" visibility="public"
  51699. deprecated="not deprecated">
  51700. <param name="taskTracker" type="org.apache.hadoop.mapreduce.server.jobtracker.TaskTracker"/>
  51701. <param name="type" type="org.apache.hadoop.mapreduce.TaskType"/>
  51702. </method>
  51703. <method name="getNumReservedTaskTrackersForMaps" return="int"
  51704. abstract="false" native="false" synchronized="false"
  51705. static="false" final="false" visibility="public"
  51706. deprecated="not deprecated">
  51707. </method>
  51708. <method name="getNumReservedTaskTrackersForReduces" return="int"
  51709. abstract="false" native="false" synchronized="false"
  51710. static="false" final="false" visibility="public"
  51711. deprecated="not deprecated">
  51712. </method>
  51713. <method name="scheduleMap"
  51714. abstract="false" native="false" synchronized="true"
  51715. static="false" final="false" visibility="protected"
  51716. deprecated="not deprecated">
  51717. <param name="tip" type="org.apache.hadoop.mapred.TaskInProgress"/>
  51718. <doc>
  51719. <![CDATA[Adds a map tip to the list of running maps.
  51720. @param tip the tip that needs to be scheduled as running]]>
  51721. </doc>
  51722. </method>
  51723. <method name="scheduleReduce"
  51724. abstract="false" native="false" synchronized="true"
  51725. static="false" final="false" visibility="protected"
  51726. deprecated="not deprecated">
  51727. <param name="tip" type="org.apache.hadoop.mapred.TaskInProgress"/>
  51728. <doc>
  51729. <![CDATA[Adds a reduce tip to the list of running reduces
  51730. @param tip the tip that needs to be scheduled as running]]>
  51731. </doc>
  51732. </method>
  51733. <method name="findSpeculativeTask" return="org.apache.hadoop.mapred.TaskInProgress"
  51734. abstract="false" native="false" synchronized="true"
  51735. static="false" final="false" visibility="protected"
  51736. deprecated="not deprecated">
  51737. <param name="list" type="java.util.Collection"/>
  51738. <param name="ttStatus" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  51739. <param name="avgProgress" type="double"/>
  51740. <param name="currentTime" type="long"/>
  51741. <param name="shouldRemove" type="boolean"/>
  51742. <doc>
  51743. <![CDATA[Find a speculative task
  51744. @param list a list of tips
  51745. @param ttStatus status of the tracker that has requested a tip
  51746. @param avgProgress the average progress for speculation
  51747. @param currentTime current time in milliseconds
  51748. @param shouldRemove whether to remove the tips
  51749. @return a tip that can be speculated on the tracker]]>
  51750. </doc>
  51751. </method>
  51752. <method name="completedTask" return="boolean"
  51753. abstract="false" native="false" synchronized="true"
  51754. static="false" final="false" visibility="public"
  51755. deprecated="not deprecated">
  51756. <param name="tip" type="org.apache.hadoop.mapred.TaskInProgress"/>
  51757. <param name="status" type="org.apache.hadoop.mapred.TaskStatus"/>
  51758. <doc>
  51759. <![CDATA[A taskid assigned to this JobInProgress has reported in successfully.]]>
  51760. </doc>
  51761. </method>
  51762. <method name="kill"
  51763. abstract="false" native="false" synchronized="false"
  51764. static="false" final="false" visibility="public"
  51765. deprecated="not deprecated">
  51766. <doc>
  51767. <![CDATA[Kill the job and all its component tasks. This method should be called from
  51768. jobtracker and should return fast as it locks the jobtracker.]]>
  51769. </doc>
  51770. </method>
  51771. <method name="failedTask"
  51772. abstract="false" native="false" synchronized="false"
  51773. static="false" final="false" visibility="public"
  51774. deprecated="not deprecated">
  51775. <param name="tip" type="org.apache.hadoop.mapred.TaskInProgress"/>
  51776. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  51777. <param name="reason" type="java.lang.String"/>
  51778. <param name="phase" type="org.apache.hadoop.mapred.TaskStatus.Phase"/>
  51779. <param name="state" type="org.apache.hadoop.mapred.TaskStatus.State"/>
  51780. <param name="trackerName" type="java.lang.String"/>
  51781. <doc>
  51782. <![CDATA[Fail a task with a given reason, but without a status object.
  51783. Assuming {@link JobTracker} is locked on entry.
  51784. @param tip The task's tip
  51785. @param taskid The task id
  51786. @param reason The reason that the task failed
  51787. @param trackerName The task tracker the task failed on]]>
  51788. </doc>
  51789. </method>
  51790. <method name="getTaskInProgress" return="org.apache.hadoop.mapred.TaskInProgress"
  51791. abstract="false" native="false" synchronized="true"
  51792. static="false" final="false" visibility="public"
  51793. deprecated="not deprecated">
  51794. <param name="tipid" type="org.apache.hadoop.mapred.TaskID"/>
  51795. <doc>
  51796. <![CDATA[Return the TaskInProgress that matches the tipid.]]>
  51797. </doc>
  51798. </method>
  51799. <method name="findFinishedMap" return="org.apache.hadoop.mapred.TaskStatus"
  51800. abstract="false" native="false" synchronized="true"
  51801. static="false" final="false" visibility="public"
  51802. deprecated="not deprecated">
  51803. <param name="mapId" type="int"/>
  51804. <doc>
  51805. <![CDATA[Find the details of someplace where a map has finished
  51806. @param mapId the id of the map
  51807. @return the task status of the completed task]]>
  51808. </doc>
  51809. </method>
  51810. <method name="getTaskCompletionEvents" return="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  51811. abstract="false" native="false" synchronized="true"
  51812. static="false" final="false" visibility="public"
  51813. deprecated="not deprecated">
  51814. <param name="fromEventId" type="int"/>
  51815. <param name="maxEvents" type="int"/>
  51816. </method>
  51817. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  51818. abstract="false" native="false" synchronized="false"
  51819. static="false" final="false" visibility="public"
  51820. deprecated="not deprecated">
  51821. <doc>
  51822. <![CDATA[@return The JobID of this JobInProgress.]]>
  51823. </doc>
  51824. </method>
  51825. <method name="getJobSubmitHostName" return="java.lang.String"
  51826. abstract="false" native="false" synchronized="false"
  51827. static="false" final="false" visibility="public"
  51828. deprecated="not deprecated">
  51829. <doc>
  51830. <![CDATA[@return submitHostName of this JobInProgress.]]>
  51831. </doc>
  51832. </method>
  51833. <method name="getJobSubmitHostAddress" return="java.lang.String"
  51834. abstract="false" native="false" synchronized="false"
  51835. static="false" final="false" visibility="public"
  51836. deprecated="not deprecated">
  51837. <doc>
  51838. <![CDATA[@return submitHostAddress of this JobInProgress.]]>
  51839. </doc>
  51840. </method>
  51841. <method name="getSchedulingInfo" return="java.lang.Object"
  51842. abstract="false" native="false" synchronized="true"
  51843. static="false" final="false" visibility="public"
  51844. deprecated="not deprecated">
  51845. </method>
  51846. <method name="setSchedulingInfo"
  51847. abstract="false" native="false" synchronized="true"
  51848. static="false" final="false" visibility="public"
  51849. deprecated="not deprecated">
  51850. <param name="schedulingInfo" type="java.lang.Object"/>
  51851. </method>
  51852. <field name="tokenStorage" type="org.apache.hadoop.security.Credentials"
  51853. transient="false" volatile="false"
  51854. static="false" final="false" visibility="protected"
  51855. deprecated="not deprecated">
  51856. </field>
  51857. <doc>
  51858. <![CDATA[JobInProgress maintains all the info for keeping
  51859. a Job on the straight and narrow. It keeps its JobProfile
  51860. and its latest JobStatus, plus a set of tables for
  51861. doing bookkeeping of its Tasks.
  51862. ***********************************************************]]>
  51863. </doc>
  51864. </class>
  51865. <!-- end class org.apache.hadoop.mapred.JobInProgress -->
  51866. <!-- start class org.apache.hadoop.mapred.JobInProgress.Counter -->
  51867. <class name="JobInProgress.Counter" extends="java.lang.Enum"
  51868. abstract="false"
  51869. static="true" final="true" visibility="public"
  51870. deprecated="not deprecated">
  51871. <method name="values" return="org.apache.hadoop.mapred.JobInProgress.Counter[]"
  51872. abstract="false" native="false" synchronized="false"
  51873. static="true" final="false" visibility="public"
  51874. deprecated="not deprecated">
  51875. </method>
  51876. <method name="valueOf" return="org.apache.hadoop.mapred.JobInProgress.Counter"
  51877. abstract="false" native="false" synchronized="false"
  51878. static="true" final="false" visibility="public"
  51879. deprecated="not deprecated">
  51880. <param name="name" type="java.lang.String"/>
  51881. </method>
  51882. <field name="NUM_FAILED_MAPS" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  51883. transient="false" volatile="false"
  51884. static="true" final="true" visibility="public"
  51885. deprecated="not deprecated">
  51886. </field>
  51887. <field name="NUM_FAILED_REDUCES" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  51888. transient="false" volatile="false"
  51889. static="true" final="true" visibility="public"
  51890. deprecated="not deprecated">
  51891. </field>
  51892. <field name="TOTAL_LAUNCHED_MAPS" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  51893. transient="false" volatile="false"
  51894. static="true" final="true" visibility="public"
  51895. deprecated="not deprecated">
  51896. </field>
  51897. <field name="TOTAL_LAUNCHED_REDUCES" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  51898. transient="false" volatile="false"
  51899. static="true" final="true" visibility="public"
  51900. deprecated="not deprecated">
  51901. </field>
  51902. <field name="OTHER_LOCAL_MAPS" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  51903. transient="false" volatile="false"
  51904. static="true" final="true" visibility="public"
  51905. deprecated="not deprecated">
  51906. </field>
  51907. <field name="DATA_LOCAL_MAPS" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  51908. transient="false" volatile="false"
  51909. static="true" final="true" visibility="public"
  51910. deprecated="not deprecated">
  51911. </field>
  51912. <field name="NODEGROUP_LOCAL_MAPS" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  51913. transient="false" volatile="false"
  51914. static="true" final="true" visibility="public"
  51915. deprecated="not deprecated">
  51916. </field>
  51917. <field name="RACK_LOCAL_MAPS" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  51918. transient="false" volatile="false"
  51919. static="true" final="true" visibility="public"
  51920. deprecated="not deprecated">
  51921. </field>
  51922. <field name="SLOTS_MILLIS_MAPS" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  51923. transient="false" volatile="false"
  51924. static="true" final="true" visibility="public"
  51925. deprecated="not deprecated">
  51926. </field>
  51927. <field name="SLOTS_MILLIS_REDUCES" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  51928. transient="false" volatile="false"
  51929. static="true" final="true" visibility="public"
  51930. deprecated="not deprecated">
  51931. </field>
  51932. <field name="FALLOW_SLOTS_MILLIS_MAPS" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  51933. transient="false" volatile="false"
  51934. static="true" final="true" visibility="public"
  51935. deprecated="not deprecated">
  51936. </field>
  51937. <field name="FALLOW_SLOTS_MILLIS_REDUCES" type="org.apache.hadoop.mapred.JobInProgress.Counter"
  51938. transient="false" volatile="false"
  51939. static="true" final="true" visibility="public"
  51940. deprecated="not deprecated">
  51941. </field>
  51942. </class>
  51943. <!-- end class org.apache.hadoop.mapred.JobInProgress.Counter -->
  51944. <!-- start class org.apache.hadoop.mapred.JobLocalizer -->
  51945. <class name="JobLocalizer" extends="java.lang.Object"
  51946. abstract="false"
  51947. static="false" final="false" visibility="public"
  51948. deprecated="not deprecated">
  51949. <constructor name="JobLocalizer" type="org.apache.hadoop.mapred.JobConf, java.lang.String, java.lang.String"
  51950. static="false" final="false" visibility="public"
  51951. deprecated="not deprecated">
  51952. <exception name="IOException" type="java.io.IOException"/>
  51953. </constructor>
  51954. <constructor name="JobLocalizer" type="org.apache.hadoop.mapred.JobConf, java.lang.String, java.lang.String, java.lang.String[]"
  51955. static="false" final="false" visibility="public"
  51956. deprecated="not deprecated">
  51957. <exception name="IOException" type="java.io.IOException"/>
  51958. </constructor>
  51959. <method name="createLocalDirs"
  51960. abstract="false" native="false" synchronized="false"
  51961. static="false" final="false" visibility="public"
  51962. deprecated="not deprecated">
  51963. <exception name="IOException" type="java.io.IOException"/>
  51964. </method>
  51965. <method name="createUserDirs"
  51966. abstract="false" native="false" synchronized="false"
  51967. static="false" final="false" visibility="public"
  51968. deprecated="not deprecated">
  51969. <exception name="IOException" type="java.io.IOException"/>
  51970. <doc>
  51971. <![CDATA[Initialize the local directories for a particular user on this TT. This
  51972. involves creation and setting permissions of the following directories
  51973. <ul>
  51974. <li>$mapred.local.dir/taskTracker/$user</li>
  51975. <li>$mapred.local.dir/taskTracker/$user/jobcache</li>
  51976. <li>$mapred.local.dir/taskTracker/$user/distcache</li>
  51977. </ul>]]>
  51978. </doc>
  51979. </method>
  51980. <method name="createJobDirs"
  51981. abstract="false" native="false" synchronized="false"
  51982. static="false" final="false" visibility="public"
  51983. deprecated="not deprecated">
  51984. <exception name="IOException" type="java.io.IOException"/>
  51985. <doc>
  51986. <![CDATA[Prepare the job directories for a given job. To be called by the job
  51987. localization code, only if the job is not already localized.
  51988. <br>
  51989. Here, we set 700 permissions on the job directories created on all disks.
  51990. This we do so as to avoid any misuse by other users till the time
  51991. {@link TaskController#initializeJob} is run at a
  51992. later time to set proper private permissions on the job directories. <br>]]>
  51993. </doc>
  51994. </method>
  51995. <method name="initializeJobLogDir"
  51996. abstract="false" native="false" synchronized="false"
  51997. static="false" final="false" visibility="public"
  51998. deprecated="not deprecated">
  51999. <exception name="IOException" type="java.io.IOException"/>
  52000. <doc>
  52001. <![CDATA[Create job log directory and set appropriate permissions for the directory.]]>
  52002. </doc>
  52003. </method>
  52004. <method name="downloadPrivateCache" return="long[]"
  52005. abstract="false" native="false" synchronized="false"
  52006. static="true" final="false" visibility="public"
  52007. deprecated="not deprecated">
  52008. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  52009. <exception name="IOException" type="java.io.IOException"/>
  52010. <doc>
  52011. <![CDATA[Download the parts of the distributed cache that are private.
  52012. @param conf the job's configuration
  52013. @throws IOException
  52014. @return the size of the archive objects]]>
  52015. </doc>
  52016. </method>
  52017. <method name="localizeJobFiles"
  52018. abstract="false" native="false" synchronized="false"
  52019. static="false" final="false" visibility="public"
  52020. deprecated="not deprecated">
  52021. <param name="jobid" type="org.apache.hadoop.mapreduce.JobID"/>
  52022. <param name="jConf" type="org.apache.hadoop.mapred.JobConf"/>
  52023. <param name="localJobTokenFile" type="org.apache.hadoop.fs.Path"/>
  52024. <param name="taskTracker" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  52025. <exception name="IOException" type="java.io.IOException"/>
  52026. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  52027. </method>
  52028. <method name="localizeJobFiles"
  52029. abstract="false" native="false" synchronized="false"
  52030. static="false" final="false" visibility="public"
  52031. deprecated="not deprecated">
  52032. <param name="jobid" type="org.apache.hadoop.mapreduce.JobID"/>
  52033. <param name="jConf" type="org.apache.hadoop.mapred.JobConf"/>
  52034. <param name="localJobFile" type="org.apache.hadoop.fs.Path"/>
  52035. <param name="localJobTokenFile" type="org.apache.hadoop.fs.Path"/>
  52036. <param name="taskTracker" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  52037. <exception name="IOException" type="java.io.IOException"/>
  52038. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  52039. </method>
  52040. <method name="createWorkDir"
  52041. abstract="false" native="false" synchronized="false"
  52042. static="false" final="false" visibility="public"
  52043. deprecated="not deprecated">
  52044. <param name="jConf" type="org.apache.hadoop.mapred.JobConf"/>
  52045. <exception name="IOException" type="java.io.IOException"/>
  52046. </method>
  52047. <method name="findCredentials" return="org.apache.hadoop.fs.Path"
  52048. abstract="false" native="false" synchronized="false"
  52049. static="false" final="false" visibility="public"
  52050. deprecated="not deprecated">
  52051. <exception name="IOException" type="java.io.IOException"/>
  52052. </method>
  52053. <method name="runSetup" return="int"
  52054. abstract="false" native="false" synchronized="false"
  52055. static="false" final="false" visibility="public"
  52056. deprecated="not deprecated">
  52057. <param name="user" type="java.lang.String"/>
  52058. <param name="jobid" type="java.lang.String"/>
  52059. <param name="localJobTokenFile" type="org.apache.hadoop.fs.Path"/>
  52060. <param name="taskTracker" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  52061. <exception name="IOException" type="java.io.IOException"/>
  52062. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  52063. </method>
  52064. <method name="main"
  52065. abstract="false" native="false" synchronized="false"
  52066. static="true" final="false" visibility="public"
  52067. deprecated="not deprecated">
  52068. <param name="argv" type="java.lang.String[]"/>
  52069. <exception name="IOException" type="java.io.IOException"/>
  52070. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  52071. </method>
  52072. <method name="writeLocalJobFile"
  52073. abstract="false" native="false" synchronized="false"
  52074. static="true" final="false" visibility="public"
  52075. deprecated="not deprecated">
  52076. <param name="jobFile" type="org.apache.hadoop.fs.Path"/>
  52077. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  52078. <exception name="IOException" type="java.io.IOException"/>
  52079. <doc>
  52080. <![CDATA[Write the task specific job-configuration file.
  52081. @throws IOException]]>
  52082. </doc>
  52083. </method>
  52084. <field name="ttConf" type="org.apache.hadoop.mapred.JobConf"
  52085. transient="false" volatile="false"
  52086. static="false" final="true" visibility="protected"
  52087. deprecated="not deprecated">
  52088. </field>
  52089. <field name="JOB_LOCAL_CTXT" type="java.lang.String"
  52090. transient="false" volatile="false"
  52091. static="true" final="true" visibility="protected"
  52092. deprecated="not deprecated">
  52093. </field>
  52094. <doc>
  52095. <![CDATA[Internal class responsible for initializing the job, not intended for users.
  52096. Creates the following hierarchy:
  52097. <li>$mapred.local.dir/taskTracker/$user</li>
  52098. <li>$mapred.local.dir/taskTracker/$user/jobcache</li>
  52099. <li>$mapred.local.dir/taskTracker/$user/jobcache/$jobid/work</li>
  52100. <li>$mapred.local.dir/taskTracker/$user/jobcache/$jobid/jars</li>
  52101. <li>$mapred.local.dir/taskTracker/$user/jobcache/$jobid/jars/job.jar</li>
  52102. <li>$mapred.local.dir/taskTracker/$user/jobcache/$jobid/job.xml</li>
  52103. <li>$mapred.local.dir/taskTracker/$user/jobcache/$jobid/jobToken</li>
  52104. <li>$mapred.local.dir/taskTracker/$user/distcache</li>]]>
  52105. </doc>
  52106. </class>
  52107. <!-- end class org.apache.hadoop.mapred.JobLocalizer -->
  52108. <!-- start class org.apache.hadoop.mapred.JobPriority -->
  52109. <class name="JobPriority" extends="java.lang.Enum"
  52110. abstract="false"
  52111. static="false" final="true" visibility="public"
  52112. deprecated="not deprecated">
  52113. <method name="values" return="org.apache.hadoop.mapred.JobPriority[]"
  52114. abstract="false" native="false" synchronized="false"
  52115. static="true" final="false" visibility="public"
  52116. deprecated="not deprecated">
  52117. </method>
  52118. <method name="valueOf" return="org.apache.hadoop.mapred.JobPriority"
  52119. abstract="false" native="false" synchronized="false"
  52120. static="true" final="false" visibility="public"
  52121. deprecated="not deprecated">
  52122. <param name="name" type="java.lang.String"/>
  52123. </method>
  52124. <field name="VERY_HIGH" type="org.apache.hadoop.mapred.JobPriority"
  52125. transient="false" volatile="false"
  52126. static="true" final="true" visibility="public"
  52127. deprecated="not deprecated">
  52128. </field>
  52129. <field name="HIGH" type="org.apache.hadoop.mapred.JobPriority"
  52130. transient="false" volatile="false"
  52131. static="true" final="true" visibility="public"
  52132. deprecated="not deprecated">
  52133. </field>
  52134. <field name="NORMAL" type="org.apache.hadoop.mapred.JobPriority"
  52135. transient="false" volatile="false"
  52136. static="true" final="true" visibility="public"
  52137. deprecated="not deprecated">
  52138. </field>
  52139. <field name="LOW" type="org.apache.hadoop.mapred.JobPriority"
  52140. transient="false" volatile="false"
  52141. static="true" final="true" visibility="public"
  52142. deprecated="not deprecated">
  52143. </field>
  52144. <field name="VERY_LOW" type="org.apache.hadoop.mapred.JobPriority"
  52145. transient="false" volatile="false"
  52146. static="true" final="true" visibility="public"
  52147. deprecated="not deprecated">
  52148. </field>
  52149. <doc>
  52150. <![CDATA[Used to describe the priority of the running job.]]>
  52151. </doc>
  52152. </class>
  52153. <!-- end class org.apache.hadoop.mapred.JobPriority -->
  52154. <!-- start class org.apache.hadoop.mapred.JobProfile -->
  52155. <class name="JobProfile" extends="java.lang.Object"
  52156. abstract="false"
  52157. static="false" final="false" visibility="public"
  52158. deprecated="not deprecated">
  52159. <implements name="org.apache.hadoop.io.Writable"/>
  52160. <constructor name="JobProfile"
  52161. static="false" final="false" visibility="public"
  52162. deprecated="not deprecated">
  52163. <doc>
  52164. <![CDATA[Construct an empty {@link JobProfile}.]]>
  52165. </doc>
  52166. </constructor>
  52167. <constructor name="JobProfile" type="java.lang.String, org.apache.hadoop.mapreduce.JobID, java.lang.String, java.lang.String, java.lang.String"
  52168. static="false" final="false" visibility="public"
  52169. deprecated="not deprecated">
  52170. <doc>
  52171. <![CDATA[Construct a {@link JobProfile} the userid, jobid,
  52172. job config-file, job-details url and job name.
  52173. @param user userid of the person who submitted the job.
  52174. @param jobid id of the job.
  52175. @param jobFile job configuration file.
  52176. @param url link to the web-ui for details of the job.
  52177. @param name user-specified job name.]]>
  52178. </doc>
  52179. </constructor>
  52180. <constructor name="JobProfile" type="java.lang.String, org.apache.hadoop.mapreduce.JobID, java.lang.String, java.lang.String, java.lang.String, java.lang.String"
  52181. static="false" final="false" visibility="public"
  52182. deprecated="not deprecated">
  52183. <doc>
  52184. <![CDATA[Construct a {@link JobProfile} the userid, jobid,
  52185. job config-file, job-details url and job name.
  52186. @param user userid of the person who submitted the job.
  52187. @param jobid id of the job.
  52188. @param jobFile job configuration file.
  52189. @param url link to the web-ui for details of the job.
  52190. @param name user-specified job name.
  52191. @param queueName name of the queue to which the job is submitted]]>
  52192. </doc>
  52193. </constructor>
  52194. <constructor name="JobProfile" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String"
  52195. static="false" final="false" visibility="public"
  52196. deprecated="use JobProfile(String, JobID, String, String, String) instead">
  52197. <doc>
  52198. <![CDATA[@deprecated use JobProfile(String, JobID, String, String, String) instead]]>
  52199. </doc>
  52200. </constructor>
  52201. <method name="getUser" return="java.lang.String"
  52202. abstract="false" native="false" synchronized="false"
  52203. static="false" final="false" visibility="public"
  52204. deprecated="not deprecated">
  52205. <doc>
  52206. <![CDATA[Get the user id.]]>
  52207. </doc>
  52208. </method>
  52209. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  52210. abstract="false" native="false" synchronized="false"
  52211. static="false" final="false" visibility="public"
  52212. deprecated="not deprecated">
  52213. <doc>
  52214. <![CDATA[Get the job id.]]>
  52215. </doc>
  52216. </method>
  52217. <method name="getJobId" return="java.lang.String"
  52218. abstract="false" native="false" synchronized="false"
  52219. static="false" final="false" visibility="public"
  52220. deprecated="use getJobID() instead">
  52221. <doc>
  52222. <![CDATA[@deprecated use getJobID() instead]]>
  52223. </doc>
  52224. </method>
  52225. <method name="getJobFile" return="java.lang.String"
  52226. abstract="false" native="false" synchronized="false"
  52227. static="false" final="false" visibility="public"
  52228. deprecated="not deprecated">
  52229. <doc>
  52230. <![CDATA[Get the configuration file for the job.]]>
  52231. </doc>
  52232. </method>
  52233. <method name="getURL" return="java.net.URL"
  52234. abstract="false" native="false" synchronized="false"
  52235. static="false" final="false" visibility="public"
  52236. deprecated="not deprecated">
  52237. <doc>
  52238. <![CDATA[Get the link to the web-ui for details of the job.]]>
  52239. </doc>
  52240. </method>
  52241. <method name="getJobName" return="java.lang.String"
  52242. abstract="false" native="false" synchronized="false"
  52243. static="false" final="false" visibility="public"
  52244. deprecated="not deprecated">
  52245. <doc>
  52246. <![CDATA[Get the user-specified job name.]]>
  52247. </doc>
  52248. </method>
  52249. <method name="getQueueName" return="java.lang.String"
  52250. abstract="false" native="false" synchronized="false"
  52251. static="false" final="false" visibility="public"
  52252. deprecated="not deprecated">
  52253. <doc>
  52254. <![CDATA[Get the name of the queue to which the job is submitted.
  52255. @return name of the queue.]]>
  52256. </doc>
  52257. </method>
  52258. <method name="write"
  52259. abstract="false" native="false" synchronized="false"
  52260. static="false" final="false" visibility="public"
  52261. deprecated="not deprecated">
  52262. <param name="out" type="java.io.DataOutput"/>
  52263. <exception name="IOException" type="java.io.IOException"/>
  52264. </method>
  52265. <method name="readFields"
  52266. abstract="false" native="false" synchronized="false"
  52267. static="false" final="false" visibility="public"
  52268. deprecated="not deprecated">
  52269. <param name="in" type="java.io.DataInput"/>
  52270. <exception name="IOException" type="java.io.IOException"/>
  52271. </method>
  52272. <doc>
  52273. <![CDATA[A JobProfile is a MapReduce primitive. Tracks a job,
  52274. whether living or dead.]]>
  52275. </doc>
  52276. </class>
  52277. <!-- end class org.apache.hadoop.mapred.JobProfile -->
  52278. <!-- start class org.apache.hadoop.mapred.JobQueueInfo -->
  52279. <class name="JobQueueInfo" extends="java.lang.Object"
  52280. abstract="false"
  52281. static="false" final="false" visibility="public"
  52282. deprecated="not deprecated">
  52283. <implements name="org.apache.hadoop.io.Writable"/>
  52284. <constructor name="JobQueueInfo"
  52285. static="false" final="false" visibility="public"
  52286. deprecated="not deprecated">
  52287. </constructor>
  52288. <constructor name="JobQueueInfo" type="java.lang.String, java.lang.String"
  52289. static="false" final="false" visibility="public"
  52290. deprecated="not deprecated">
  52291. <doc>
  52292. <![CDATA[Construct a new JobQueueInfo object using the queue name and the
  52293. scheduling information passed.
  52294. @param queueName Name of the job queue
  52295. @param schedulingInfo Scheduling Information associated with the job
  52296. queue]]>
  52297. </doc>
  52298. </constructor>
  52299. <method name="setQueueName"
  52300. abstract="false" native="false" synchronized="false"
  52301. static="false" final="false" visibility="public"
  52302. deprecated="not deprecated">
  52303. <param name="queueName" type="java.lang.String"/>
  52304. <doc>
  52305. <![CDATA[Set the queue name of the JobQueueInfo
  52306. @param queueName Name of the job queue.]]>
  52307. </doc>
  52308. </method>
  52309. <method name="getQueueName" return="java.lang.String"
  52310. abstract="false" native="false" synchronized="false"
  52311. static="false" final="false" visibility="public"
  52312. deprecated="not deprecated">
  52313. <doc>
  52314. <![CDATA[Get the queue name from JobQueueInfo
  52315. @return queue name]]>
  52316. </doc>
  52317. </method>
  52318. <method name="setSchedulingInfo"
  52319. abstract="false" native="false" synchronized="false"
  52320. static="false" final="false" visibility="public"
  52321. deprecated="not deprecated">
  52322. <param name="schedulingInfo" type="java.lang.String"/>
  52323. <doc>
  52324. <![CDATA[Set the scheduling information associated to particular job queue
  52325. @param schedulingInfo]]>
  52326. </doc>
  52327. </method>
  52328. <method name="getSchedulingInfo" return="java.lang.String"
  52329. abstract="false" native="false" synchronized="false"
  52330. static="false" final="false" visibility="public"
  52331. deprecated="not deprecated">
  52332. <doc>
  52333. <![CDATA[Gets the scheduling information associated to particular job queue.
  52334. If nothing is set would return <b>"N/A"</b>
  52335. @return Scheduling information associated to particular Job Queue]]>
  52336. </doc>
  52337. </method>
  52338. <method name="setQueueState"
  52339. abstract="false" native="false" synchronized="false"
  52340. static="false" final="false" visibility="public"
  52341. deprecated="not deprecated">
  52342. <param name="state" type="java.lang.String"/>
  52343. <doc>
  52344. <![CDATA[Set the state of the queue
  52345. @param state state of the queue.]]>
  52346. </doc>
  52347. </method>
  52348. <method name="getQueueState" return="java.lang.String"
  52349. abstract="false" native="false" synchronized="false"
  52350. static="false" final="false" visibility="public"
  52351. deprecated="not deprecated">
  52352. <doc>
  52353. <![CDATA[Return the queue state
  52354. @return the queue state.]]>
  52355. </doc>
  52356. </method>
  52357. <method name="readFields"
  52358. abstract="false" native="false" synchronized="false"
  52359. static="false" final="false" visibility="public"
  52360. deprecated="not deprecated">
  52361. <param name="in" type="java.io.DataInput"/>
  52362. <exception name="IOException" type="java.io.IOException"/>
  52363. </method>
  52364. <method name="write"
  52365. abstract="false" native="false" synchronized="false"
  52366. static="false" final="false" visibility="public"
  52367. deprecated="not deprecated">
  52368. <param name="out" type="java.io.DataOutput"/>
  52369. <exception name="IOException" type="java.io.IOException"/>
  52370. </method>
  52371. <doc>
  52372. <![CDATA[Class that contains the information regarding the Job Queues which are
  52373. maintained by the Hadoop Map/Reduce framework.]]>
  52374. </doc>
  52375. </class>
  52376. <!-- end class org.apache.hadoop.mapred.JobQueueInfo -->
  52377. <!-- start class org.apache.hadoop.mapred.JobStatus -->
  52378. <class name="JobStatus" extends="java.lang.Object"
  52379. abstract="false"
  52380. static="false" final="false" visibility="public"
  52381. deprecated="not deprecated">
  52382. <implements name="org.apache.hadoop.io.Writable"/>
  52383. <implements name="java.lang.Cloneable"/>
  52384. <constructor name="JobStatus"
  52385. static="false" final="false" visibility="public"
  52386. deprecated="not deprecated">
  52387. </constructor>
  52388. <constructor name="JobStatus" type="org.apache.hadoop.mapred.JobID, float, float, float, int"
  52389. static="false" final="false" visibility="public"
  52390. deprecated="not deprecated">
  52391. <doc>
  52392. <![CDATA[Create a job status object for a given jobid.
  52393. @param jobid The jobid of the job
  52394. @param mapProgress The progress made on the maps
  52395. @param reduceProgress The progress made on the reduces
  52396. @param cleanupProgress The progress made on cleanup
  52397. @param runState The current state of the job]]>
  52398. </doc>
  52399. </constructor>
  52400. <constructor name="JobStatus" type="org.apache.hadoop.mapred.JobID, float, float, int"
  52401. static="false" final="false" visibility="public"
  52402. deprecated="not deprecated">
  52403. <doc>
  52404. <![CDATA[Create a job status object for a given jobid.
  52405. @param jobid The jobid of the job
  52406. @param mapProgress The progress made on the maps
  52407. @param reduceProgress The progress made on the reduces
  52408. @param runState The current state of the job]]>
  52409. </doc>
  52410. </constructor>
  52411. <constructor name="JobStatus" type="org.apache.hadoop.mapred.JobID, float, float, float, int, org.apache.hadoop.mapred.JobPriority"
  52412. static="false" final="false" visibility="public"
  52413. deprecated="not deprecated">
  52414. <doc>
  52415. <![CDATA[Create a job status object for a given jobid.
  52416. @param jobid The jobid of the job
  52417. @param mapProgress The progress made on the maps
  52418. @param reduceProgress The progress made on the reduces
  52419. @param runState The current state of the job
  52420. @param jp Priority of the job.]]>
  52421. </doc>
  52422. </constructor>
  52423. <constructor name="JobStatus" type="org.apache.hadoop.mapred.JobID, float, float, float, float, int, org.apache.hadoop.mapred.JobPriority"
  52424. static="false" final="false" visibility="public"
  52425. deprecated="not deprecated">
  52426. <doc>
  52427. <![CDATA[Create a job status object for a given jobid.
  52428. @param jobid The jobid of the job
  52429. @param setupProgress The progress made on the setup
  52430. @param mapProgress The progress made on the maps
  52431. @param reduceProgress The progress made on the reduces
  52432. @param cleanupProgress The progress made on the cleanup
  52433. @param runState The current state of the job
  52434. @param jp Priority of the job.]]>
  52435. </doc>
  52436. </constructor>
  52437. <method name="getJobRunState" return="java.lang.String"
  52438. abstract="false" native="false" synchronized="false"
  52439. static="true" final="false" visibility="public"
  52440. deprecated="not deprecated">
  52441. <param name="state" type="int"/>
  52442. <doc>
  52443. <![CDATA[Helper method to get human-readable state of the job.
  52444. @param state job state
  52445. @return human-readable state of the job]]>
  52446. </doc>
  52447. </method>
  52448. <method name="getJobId" return="java.lang.String"
  52449. abstract="false" native="false" synchronized="false"
  52450. static="false" final="false" visibility="public"
  52451. deprecated="use getJobID instead">
  52452. <doc>
  52453. <![CDATA[@deprecated use getJobID instead]]>
  52454. </doc>
  52455. </method>
  52456. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  52457. abstract="false" native="false" synchronized="false"
  52458. static="false" final="false" visibility="public"
  52459. deprecated="not deprecated">
  52460. <doc>
  52461. <![CDATA[@return The jobid of the Job]]>
  52462. </doc>
  52463. </method>
  52464. <method name="mapProgress" return="float"
  52465. abstract="false" native="false" synchronized="true"
  52466. static="false" final="false" visibility="public"
  52467. deprecated="not deprecated">
  52468. <doc>
  52469. <![CDATA[@return Percentage of progress in maps]]>
  52470. </doc>
  52471. </method>
  52472. <method name="setJobACLs"
  52473. abstract="false" native="false" synchronized="true"
  52474. static="false" final="false" visibility="protected"
  52475. deprecated="not deprecated">
  52476. <param name="acls" type="java.util.Map"/>
  52477. <doc>
  52478. <![CDATA[Set the job acls
  52479. @param acls {@link Map} from {@link JobACL} to {@link AccessControlList}]]>
  52480. </doc>
  52481. </method>
  52482. <method name="cleanupProgress" return="float"
  52483. abstract="false" native="false" synchronized="true"
  52484. static="false" final="false" visibility="public"
  52485. deprecated="not deprecated">
  52486. <doc>
  52487. <![CDATA[@return Percentage of progress in cleanup]]>
  52488. </doc>
  52489. </method>
  52490. <method name="setupProgress" return="float"
  52491. abstract="false" native="false" synchronized="true"
  52492. static="false" final="false" visibility="public"
  52493. deprecated="not deprecated">
  52494. <doc>
  52495. <![CDATA[@return Percentage of progress in setup]]>
  52496. </doc>
  52497. </method>
  52498. <method name="reduceProgress" return="float"
  52499. abstract="false" native="false" synchronized="true"
  52500. static="false" final="false" visibility="public"
  52501. deprecated="not deprecated">
  52502. <doc>
  52503. <![CDATA[@return Percentage of progress in reduce]]>
  52504. </doc>
  52505. </method>
  52506. <method name="getRunState" return="int"
  52507. abstract="false" native="false" synchronized="true"
  52508. static="false" final="false" visibility="public"
  52509. deprecated="not deprecated">
  52510. <doc>
  52511. <![CDATA[@return running state of the job]]>
  52512. </doc>
  52513. </method>
  52514. <method name="setRunState"
  52515. abstract="false" native="false" synchronized="true"
  52516. static="false" final="false" visibility="public"
  52517. deprecated="not deprecated">
  52518. <param name="state" type="int"/>
  52519. <doc>
  52520. <![CDATA[Change the current run state of the job.]]>
  52521. </doc>
  52522. </method>
  52523. <method name="getStartTime" return="long"
  52524. abstract="false" native="false" synchronized="true"
  52525. static="false" final="false" visibility="public"
  52526. deprecated="not deprecated">
  52527. <doc>
  52528. <![CDATA[@return start time of the job]]>
  52529. </doc>
  52530. </method>
  52531. <method name="clone" return="java.lang.Object"
  52532. abstract="false" native="false" synchronized="false"
  52533. static="false" final="false" visibility="public"
  52534. deprecated="not deprecated">
  52535. </method>
  52536. <method name="getUsername" return="java.lang.String"
  52537. abstract="false" native="false" synchronized="true"
  52538. static="false" final="false" visibility="public"
  52539. deprecated="not deprecated">
  52540. <doc>
  52541. <![CDATA[@return the username of the job]]>
  52542. </doc>
  52543. </method>
  52544. <method name="getSchedulingInfo" return="java.lang.String"
  52545. abstract="false" native="false" synchronized="true"
  52546. static="false" final="false" visibility="public"
  52547. deprecated="not deprecated">
  52548. <doc>
  52549. <![CDATA[Gets the Scheduling information associated to a particular Job.
  52550. @return the scheduling information of the job]]>
  52551. </doc>
  52552. </method>
  52553. <method name="getFailureInfo" return="java.lang.String"
  52554. abstract="false" native="false" synchronized="true"
  52555. static="false" final="false" visibility="public"
  52556. deprecated="not deprecated">
  52557. <doc>
  52558. <![CDATA[gets any available info on the reason of failure of the job.
  52559. @return diagnostic information on why a job might have failed.]]>
  52560. </doc>
  52561. </method>
  52562. <method name="setFailureInfo"
  52563. abstract="false" native="false" synchronized="true"
  52564. static="false" final="false" visibility="public"
  52565. deprecated="not deprecated">
  52566. <param name="failureInfo" type="java.lang.String"/>
  52567. <doc>
  52568. <![CDATA[set the reason for failuire of this job
  52569. @param failureInfo the reason for failure of this job.]]>
  52570. </doc>
  52571. </method>
  52572. <method name="setSchedulingInfo"
  52573. abstract="false" native="false" synchronized="true"
  52574. static="false" final="false" visibility="public"
  52575. deprecated="not deprecated">
  52576. <param name="schedulingInfo" type="java.lang.String"/>
  52577. <doc>
  52578. <![CDATA[Used to set the scheduling information associated to a particular Job.
  52579. @param schedulingInfo Scheduling information of the job]]>
  52580. </doc>
  52581. </method>
  52582. <method name="getJobACLs" return="java.util.Map"
  52583. abstract="false" native="false" synchronized="true"
  52584. static="false" final="false" visibility="public"
  52585. deprecated="not deprecated">
  52586. <doc>
  52587. <![CDATA[Get the acls for Job.
  52588. @return a {@link Map} from {@link JobACL} to {@link AccessControlList}]]>
  52589. </doc>
  52590. </method>
  52591. <method name="getJobPriority" return="org.apache.hadoop.mapred.JobPriority"
  52592. abstract="false" native="false" synchronized="true"
  52593. static="false" final="false" visibility="public"
  52594. deprecated="not deprecated">
  52595. <doc>
  52596. <![CDATA[Return the priority of the job
  52597. @return job priority]]>
  52598. </doc>
  52599. </method>
  52600. <method name="setJobPriority"
  52601. abstract="false" native="false" synchronized="true"
  52602. static="false" final="false" visibility="public"
  52603. deprecated="not deprecated">
  52604. <param name="jp" type="org.apache.hadoop.mapred.JobPriority"/>
  52605. <doc>
  52606. <![CDATA[Set the priority of the job, defaulting to NORMAL.
  52607. @param jp new job priority]]>
  52608. </doc>
  52609. </method>
  52610. <method name="isJobComplete" return="boolean"
  52611. abstract="false" native="false" synchronized="true"
  52612. static="false" final="false" visibility="public"
  52613. deprecated="not deprecated">
  52614. <doc>
  52615. <![CDATA[Returns true if the status is for a completed job.]]>
  52616. </doc>
  52617. </method>
  52618. <method name="write"
  52619. abstract="false" native="false" synchronized="true"
  52620. static="false" final="false" visibility="public"
  52621. deprecated="not deprecated">
  52622. <param name="out" type="java.io.DataOutput"/>
  52623. <exception name="IOException" type="java.io.IOException"/>
  52624. </method>
  52625. <method name="readFields"
  52626. abstract="false" native="false" synchronized="true"
  52627. static="false" final="false" visibility="public"
  52628. deprecated="not deprecated">
  52629. <param name="in" type="java.io.DataInput"/>
  52630. <exception name="IOException" type="java.io.IOException"/>
  52631. </method>
  52632. <field name="RUNNING" type="int"
  52633. transient="false" volatile="false"
  52634. static="true" final="true" visibility="public"
  52635. deprecated="not deprecated">
  52636. </field>
  52637. <field name="SUCCEEDED" type="int"
  52638. transient="false" volatile="false"
  52639. static="true" final="true" visibility="public"
  52640. deprecated="not deprecated">
  52641. </field>
  52642. <field name="FAILED" type="int"
  52643. transient="false" volatile="false"
  52644. static="true" final="true" visibility="public"
  52645. deprecated="not deprecated">
  52646. </field>
  52647. <field name="PREP" type="int"
  52648. transient="false" volatile="false"
  52649. static="true" final="true" visibility="public"
  52650. deprecated="not deprecated">
  52651. </field>
  52652. <field name="KILLED" type="int"
  52653. transient="false" volatile="false"
  52654. static="true" final="true" visibility="public"
  52655. deprecated="not deprecated">
  52656. </field>
  52657. <doc>
  52658. <![CDATA[Describes the current status of a job.
  52659. @see JobProfile for some more information.]]>
  52660. </doc>
  52661. </class>
  52662. <!-- end class org.apache.hadoop.mapred.JobStatus -->
  52663. <!-- start class org.apache.hadoop.mapred.JobTracker -->
  52664. <class name="JobTracker" extends="java.lang.Object"
  52665. abstract="false"
  52666. static="false" final="false" visibility="public"
  52667. deprecated="not deprecated">
  52668. <implements name="org.apache.hadoop.mapred.MRConstants"/>
  52669. <implements name="org.apache.hadoop.mapred.InterTrackerProtocol"/>
  52670. <implements name="org.apache.hadoop.mapred.JobSubmissionProtocol"/>
  52671. <implements name="org.apache.hadoop.mapred.TaskTrackerManager"/>
  52672. <implements name="org.apache.hadoop.security.RefreshUserMappingsProtocol"/>
  52673. <implements name="org.apache.hadoop.security.authorize.RefreshAuthorizationPolicyProtocol"/>
  52674. <implements name="org.apache.hadoop.mapred.AdminOperationsProtocol"/>
  52675. <implements name="org.apache.hadoop.mapred.JobTrackerMXBean"/>
  52676. <method name="getClock" return="org.apache.hadoop.mapred.Clock"
  52677. abstract="false" native="false" synchronized="false"
  52678. static="false" final="false" visibility="public"
  52679. deprecated="not deprecated">
  52680. </method>
  52681. <method name="startTracker" return="org.apache.hadoop.mapred.JobTracker"
  52682. abstract="false" native="false" synchronized="false"
  52683. static="true" final="false" visibility="public"
  52684. deprecated="not deprecated">
  52685. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  52686. <exception name="IOException" type="java.io.IOException"/>
  52687. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  52688. <doc>
  52689. <![CDATA[Start the JobTracker with given configuration.
  52690. The conf will be modified to reflect the actual ports on which
  52691. the JobTracker is up and running if the user passes the port as
  52692. <code>zero</code>.
  52693. @param conf configuration for the JobTracker.
  52694. @throws IOException]]>
  52695. </doc>
  52696. </method>
  52697. <method name="startTracker" return="org.apache.hadoop.mapred.JobTracker"
  52698. abstract="false" native="false" synchronized="false"
  52699. static="true" final="false" visibility="public"
  52700. deprecated="not deprecated">
  52701. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  52702. <param name="identifier" type="java.lang.String"/>
  52703. <exception name="IOException" type="java.io.IOException"/>
  52704. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  52705. </method>
  52706. <method name="startTracker" return="org.apache.hadoop.mapred.JobTracker"
  52707. abstract="false" native="false" synchronized="false"
  52708. static="true" final="false" visibility="public"
  52709. deprecated="not deprecated">
  52710. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  52711. <param name="identifier" type="java.lang.String"/>
  52712. <param name="initialize" type="boolean"/>
  52713. <exception name="IOException" type="java.io.IOException"/>
  52714. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  52715. </method>
  52716. <method name="stopTracker"
  52717. abstract="false" native="false" synchronized="false"
  52718. static="false" final="false" visibility="public"
  52719. deprecated="not deprecated">
  52720. <exception name="IOException" type="java.io.IOException"/>
  52721. </method>
  52722. <method name="getProtocolVersion" return="long"
  52723. abstract="false" native="false" synchronized="false"
  52724. static="false" final="false" visibility="public"
  52725. deprecated="not deprecated">
  52726. <param name="protocol" type="java.lang.String"/>
  52727. <param name="clientVersion" type="long"/>
  52728. <exception name="IOException" type="java.io.IOException"/>
  52729. </method>
  52730. <method name="getDelegationTokenSecretManager" return="org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenSecretManager"
  52731. abstract="false" native="false" synchronized="false"
  52732. static="false" final="false" visibility="public"
  52733. deprecated="not deprecated">
  52734. </method>
  52735. <method name="hasRestarted" return="boolean"
  52736. abstract="false" native="false" synchronized="false"
  52737. static="false" final="false" visibility="public"
  52738. deprecated="not deprecated">
  52739. <doc>
  52740. <![CDATA[Whether the JT has restarted]]>
  52741. </doc>
  52742. </method>
  52743. <method name="hasRecovered" return="boolean"
  52744. abstract="false" native="false" synchronized="false"
  52745. static="false" final="false" visibility="public"
  52746. deprecated="not deprecated">
  52747. <doc>
  52748. <![CDATA[Whether the JT has recovered upon restart]]>
  52749. </doc>
  52750. </method>
  52751. <method name="getRecoveryDuration" return="long"
  52752. abstract="false" native="false" synchronized="false"
  52753. static="false" final="false" visibility="public"
  52754. deprecated="not deprecated">
  52755. <doc>
  52756. <![CDATA[How long the jobtracker took to recover from restart.]]>
  52757. </doc>
  52758. </method>
  52759. <method name="getAddress" return="java.net.InetSocketAddress"
  52760. abstract="false" native="false" synchronized="false"
  52761. static="true" final="false" visibility="public"
  52762. deprecated="not deprecated">
  52763. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  52764. </method>
  52765. <method name="offerService"
  52766. abstract="false" native="false" synchronized="false"
  52767. static="false" final="false" visibility="public"
  52768. deprecated="not deprecated">
  52769. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  52770. <exception name="IOException" type="java.io.IOException"/>
  52771. <doc>
  52772. <![CDATA[Run forever]]>
  52773. </doc>
  52774. </method>
  52775. <method name="getTotalSubmissions" return="int"
  52776. abstract="false" native="false" synchronized="false"
  52777. static="false" final="false" visibility="public"
  52778. deprecated="not deprecated">
  52779. </method>
  52780. <method name="getJobTrackerMachine" return="java.lang.String"
  52781. abstract="false" native="false" synchronized="false"
  52782. static="false" final="false" visibility="public"
  52783. deprecated="not deprecated">
  52784. </method>
  52785. <method name="getTrackerIdentifier" return="java.lang.String"
  52786. abstract="false" native="false" synchronized="false"
  52787. static="false" final="false" visibility="public"
  52788. deprecated="not deprecated">
  52789. <doc>
  52790. <![CDATA[Get the unique identifier (ie. timestamp) of this job tracker start.
  52791. @return a string with a unique identifier]]>
  52792. </doc>
  52793. </method>
  52794. <method name="getTrackerPort" return="int"
  52795. abstract="false" native="false" synchronized="false"
  52796. static="false" final="false" visibility="public"
  52797. deprecated="not deprecated">
  52798. </method>
  52799. <method name="getInfoPort" return="int"
  52800. abstract="false" native="false" synchronized="false"
  52801. static="false" final="false" visibility="public"
  52802. deprecated="not deprecated">
  52803. </method>
  52804. <method name="getStartTime" return="long"
  52805. abstract="false" native="false" synchronized="false"
  52806. static="false" final="false" visibility="public"
  52807. deprecated="not deprecated">
  52808. </method>
  52809. <method name="runningJobs" return="java.util.Vector"
  52810. abstract="false" native="false" synchronized="false"
  52811. static="false" final="false" visibility="public"
  52812. deprecated="not deprecated">
  52813. </method>
  52814. <method name="getRunningJobs" return="java.util.List"
  52815. abstract="false" native="false" synchronized="true"
  52816. static="false" final="false" visibility="public"
  52817. deprecated="not deprecated">
  52818. <doc>
  52819. <![CDATA[Version that is called from a timer thread, and therefore needs to be
  52820. careful to synchronize.]]>
  52821. </doc>
  52822. </method>
  52823. <method name="failedJobs" return="java.util.Vector"
  52824. abstract="false" native="false" synchronized="false"
  52825. static="false" final="false" visibility="public"
  52826. deprecated="not deprecated">
  52827. </method>
  52828. <method name="completedJobs" return="java.util.Vector"
  52829. abstract="false" native="false" synchronized="false"
  52830. static="false" final="false" visibility="public"
  52831. deprecated="not deprecated">
  52832. </method>
  52833. <method name="taskTrackers" return="java.util.Collection"
  52834. abstract="false" native="false" synchronized="true"
  52835. static="false" final="false" visibility="public"
  52836. deprecated="not deprecated">
  52837. <doc>
  52838. <![CDATA[Get all the task trackers in the cluster
  52839. @return {@link Collection} of {@link TaskTrackerStatus}]]>
  52840. </doc>
  52841. </method>
  52842. <method name="activeTaskTrackers" return="java.util.Collection"
  52843. abstract="false" native="false" synchronized="true"
  52844. static="false" final="false" visibility="public"
  52845. deprecated="not deprecated">
  52846. <doc>
  52847. <![CDATA[Get the active task tracker statuses in the cluster
  52848. @return {@link Collection} of active {@link TaskTrackerStatus}]]>
  52849. </doc>
  52850. </method>
  52851. <method name="taskTrackerNames" return="java.util.List"
  52852. abstract="false" native="false" synchronized="true"
  52853. static="false" final="false" visibility="public"
  52854. deprecated="not deprecated">
  52855. <doc>
  52856. <![CDATA[Get the active, blacklisted, and graylisted task tracker names in the
  52857. cluster. The first element in the returned list contains the list of
  52858. active tracker names; the second element in the returned list contains
  52859. the list of blacklisted tracker names; and the third contains the list
  52860. of graylisted tracker names. Note that the blacklist is disjoint
  52861. from the active list, but the graylist is not: initially, graylisted
  52862. trackers are still active and therefore will appear in both lists.
  52863. (Graylisted trackers can later be blacklisted, in which case they'll
  52864. be removed from the active list and added to the blacklist, but they
  52865. remain on the graylist in this case. Blacklisting comes about via the
  52866. health-check script, while graylisting is heuristically based on the
  52867. number of per-job blacklistings in a specified time interval.)]]>
  52868. </doc>
  52869. </method>
  52870. <method name="blacklistedTaskTrackers" return="java.util.Collection"
  52871. abstract="false" native="false" synchronized="false"
  52872. static="false" final="false" visibility="public"
  52873. deprecated="not deprecated">
  52874. <doc>
  52875. <![CDATA[Get the statuses of the blacklisted task trackers in the cluster.
  52876. @return {@link Collection} of blacklisted {@link TaskTrackerStatus}]]>
  52877. </doc>
  52878. </method>
  52879. <method name="graylistedTaskTrackers" return="java.util.Collection"
  52880. abstract="false" native="false" synchronized="false"
  52881. static="false" final="false" visibility="public"
  52882. deprecated="not deprecated">
  52883. <doc>
  52884. <![CDATA[Get the statuses of the graylisted task trackers in the cluster.
  52885. @return {@link Collection} of graylisted {@link TaskTrackerStatus}]]>
  52886. </doc>
  52887. </method>
  52888. <method name="isBlacklisted" return="boolean"
  52889. abstract="false" native="false" synchronized="true"
  52890. static="false" final="false" visibility="public"
  52891. deprecated="not deprecated">
  52892. <param name="trackerID" type="java.lang.String"/>
  52893. <doc>
  52894. <![CDATA[Whether the tracker is blacklisted or not
  52895. @param trackerID
  52896. @return true if blacklisted, false otherwise]]>
  52897. </doc>
  52898. </method>
  52899. <method name="isGraylisted" return="boolean"
  52900. abstract="false" native="false" synchronized="true"
  52901. static="false" final="false" visibility="public"
  52902. deprecated="not deprecated">
  52903. <param name="trackerID" type="java.lang.String"/>
  52904. <doc>
  52905. <![CDATA[Whether the tracker is graylisted or not
  52906. @param trackerID
  52907. @return true if graylisted, false otherwise]]>
  52908. </doc>
  52909. </method>
  52910. <method name="getTaskTrackerStatus" return="org.apache.hadoop.mapred.TaskTrackerStatus"
  52911. abstract="false" native="false" synchronized="true"
  52912. static="false" final="false" visibility="public"
  52913. deprecated="not deprecated">
  52914. <param name="trackerID" type="java.lang.String"/>
  52915. </method>
  52916. <method name="getTaskTracker" return="org.apache.hadoop.mapreduce.server.jobtracker.TaskTracker"
  52917. abstract="false" native="false" synchronized="true"
  52918. static="false" final="false" visibility="public"
  52919. deprecated="not deprecated">
  52920. <param name="trackerID" type="java.lang.String"/>
  52921. </method>
  52922. <method name="resolveAndAddToTopology" return="org.apache.hadoop.net.Node"
  52923. abstract="false" native="false" synchronized="false"
  52924. static="false" final="false" visibility="public"
  52925. deprecated="not deprecated">
  52926. <param name="name" type="java.lang.String"/>
  52927. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  52928. </method>
  52929. <method name="getNodesAtMaxLevel" return="java.util.Collection"
  52930. abstract="false" native="false" synchronized="false"
  52931. static="false" final="false" visibility="public"
  52932. deprecated="not deprecated">
  52933. <doc>
  52934. <![CDATA[Returns a collection of nodes at the max level]]>
  52935. </doc>
  52936. </method>
  52937. <method name="getParentNode" return="org.apache.hadoop.net.Node"
  52938. abstract="false" native="false" synchronized="false"
  52939. static="true" final="false" visibility="public"
  52940. deprecated="not deprecated">
  52941. <param name="node" type="org.apache.hadoop.net.Node"/>
  52942. <param name="level" type="int"/>
  52943. </method>
  52944. <method name="getNode" return="org.apache.hadoop.net.Node"
  52945. abstract="false" native="false" synchronized="false"
  52946. static="false" final="false" visibility="public"
  52947. deprecated="not deprecated">
  52948. <param name="name" type="java.lang.String"/>
  52949. <doc>
  52950. <![CDATA[Return the Node in the network topology that corresponds to the hostname]]>
  52951. </doc>
  52952. </method>
  52953. <method name="getNumTaskCacheLevels" return="int"
  52954. abstract="false" native="false" synchronized="false"
  52955. static="false" final="false" visibility="public"
  52956. deprecated="not deprecated">
  52957. </method>
  52958. <method name="getNumResolvedTaskTrackers" return="int"
  52959. abstract="false" native="false" synchronized="false"
  52960. static="false" final="false" visibility="public"
  52961. deprecated="not deprecated">
  52962. </method>
  52963. <method name="getNumberOfUniqueHosts" return="int"
  52964. abstract="false" native="false" synchronized="false"
  52965. static="false" final="false" visibility="public"
  52966. deprecated="not deprecated">
  52967. </method>
  52968. <method name="isNodeGroupAware" return="boolean"
  52969. abstract="false" native="false" synchronized="false"
  52970. static="false" final="false" visibility="public"
  52971. deprecated="not deprecated">
  52972. </method>
  52973. <method name="addJobInProgressListener"
  52974. abstract="false" native="false" synchronized="false"
  52975. static="false" final="false" visibility="public"
  52976. deprecated="not deprecated">
  52977. <param name="listener" type="org.apache.hadoop.mapred.JobInProgressListener"/>
  52978. </method>
  52979. <method name="removeJobInProgressListener"
  52980. abstract="false" native="false" synchronized="false"
  52981. static="false" final="false" visibility="public"
  52982. deprecated="not deprecated">
  52983. <param name="listener" type="org.apache.hadoop.mapred.JobInProgressListener"/>
  52984. </method>
  52985. <method name="getQueueManager" return="org.apache.hadoop.mapred.QueueManager"
  52986. abstract="false" native="false" synchronized="false"
  52987. static="false" final="false" visibility="public"
  52988. deprecated="not deprecated">
  52989. <doc>
  52990. <![CDATA[Return the {@link QueueManager} associated with the JobTracker.]]>
  52991. </doc>
  52992. </method>
  52993. <method name="getVIVersion" return="java.lang.String"
  52994. abstract="false" native="false" synchronized="false"
  52995. static="false" final="false" visibility="public"
  52996. deprecated="not deprecated">
  52997. <exception name="IOException" type="java.io.IOException"/>
  52998. </method>
  52999. <method name="getBuildVersion" return="java.lang.String"
  53000. abstract="false" native="false" synchronized="false"
  53001. static="false" final="false" visibility="public"
  53002. deprecated="not deprecated">
  53003. <exception name="IOException" type="java.io.IOException"/>
  53004. </method>
  53005. <method name="heartbeat" return="org.apache.hadoop.mapred.HeartbeatResponse"
  53006. abstract="false" native="false" synchronized="true"
  53007. static="false" final="false" visibility="public"
  53008. deprecated="not deprecated">
  53009. <param name="status" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  53010. <param name="restarted" type="boolean"/>
  53011. <param name="initialContact" type="boolean"/>
  53012. <param name="acceptNewTasks" type="boolean"/>
  53013. <param name="responseId" type="short"/>
  53014. <exception name="IOException" type="java.io.IOException"/>
  53015. <doc>
  53016. <![CDATA[The periodic heartbeat mechanism between the {@link TaskTracker} and
  53017. the {@link JobTracker}.
  53018. The {@link JobTracker} processes the status information sent by the
  53019. {@link TaskTracker} and responds with instructions to start/stop
  53020. tasks or jobs, and also 'reset' instructions during contingencies.]]>
  53021. </doc>
  53022. </method>
  53023. <method name="getNextHeartbeatInterval" return="int"
  53024. abstract="false" native="false" synchronized="false"
  53025. static="false" final="false" visibility="public"
  53026. deprecated="not deprecated">
  53027. <doc>
  53028. <![CDATA[Calculates next heartbeat interval using cluster size.
  53029. Heartbeat interval is incremented by 1 second for every 100 nodes by default.
  53030. @return next heartbeat interval.]]>
  53031. </doc>
  53032. </method>
  53033. <method name="getFilesystemName" return="java.lang.String"
  53034. abstract="false" native="false" synchronized="true"
  53035. static="false" final="false" visibility="public"
  53036. deprecated="not deprecated">
  53037. <exception name="IOException" type="java.io.IOException"/>
  53038. <doc>
  53039. <![CDATA[Grab the local fs name]]>
  53040. </doc>
  53041. </method>
  53042. <method name="getConf" return="org.apache.hadoop.mapred.JobConf"
  53043. abstract="false" native="false" synchronized="false"
  53044. static="false" final="false" visibility="public"
  53045. deprecated="not deprecated">
  53046. <doc>
  53047. <![CDATA[Returns a handle to the JobTracker's Configuration]]>
  53048. </doc>
  53049. </method>
  53050. <method name="reportTaskTrackerError"
  53051. abstract="false" native="false" synchronized="false"
  53052. static="false" final="false" visibility="public"
  53053. deprecated="not deprecated">
  53054. <param name="taskTracker" type="java.lang.String"/>
  53055. <param name="errorClass" type="java.lang.String"/>
  53056. <param name="errorMessage" type="java.lang.String"/>
  53057. <exception name="IOException" type="java.io.IOException"/>
  53058. </method>
  53059. <method name="getNewJobId" return="org.apache.hadoop.mapred.JobID"
  53060. abstract="false" native="false" synchronized="true"
  53061. static="false" final="false" visibility="public"
  53062. deprecated="not deprecated">
  53063. <exception name="IOException" type="java.io.IOException"/>
  53064. <doc>
  53065. <![CDATA[Allocates a new JobId string.]]>
  53066. </doc>
  53067. </method>
  53068. <method name="submitJob" return="org.apache.hadoop.mapred.JobStatus"
  53069. abstract="false" native="false" synchronized="false"
  53070. static="false" final="false" visibility="public"
  53071. deprecated="not deprecated">
  53072. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  53073. <param name="jobSubmitDir" type="java.lang.String"/>
  53074. <param name="ts" type="org.apache.hadoop.security.Credentials"/>
  53075. <exception name="IOException" type="java.io.IOException"/>
  53076. <doc>
  53077. <![CDATA[JobTracker.submitJob() kicks off a new job.
  53078. Create a 'JobInProgress' object, which contains both JobProfile
  53079. and JobStatus. Those two sub-objects are sometimes shipped outside
  53080. of the JobTracker. But JobInProgress adds info that's useful for
  53081. the JobTracker alone.]]>
  53082. </doc>
  53083. </method>
  53084. <method name="getStagingAreaDir" return="java.lang.String"
  53085. abstract="false" native="false" synchronized="false"
  53086. static="false" final="false" visibility="public"
  53087. deprecated="not deprecated">
  53088. <exception name="IOException" type="java.io.IOException"/>
  53089. <doc>
  53090. <![CDATA[@see org.apache.hadoop.mapred.JobSubmissionProtocol#getStagingAreaDir()]]>
  53091. </doc>
  53092. </method>
  53093. <method name="getClusterStatus" return="org.apache.hadoop.mapred.ClusterStatus"
  53094. abstract="false" native="false" synchronized="true"
  53095. static="false" final="false" visibility="public"
  53096. deprecated="use {@link #getClusterStatus(boolean)}">
  53097. <doc>
  53098. <![CDATA[@deprecated use {@link #getClusterStatus(boolean)}]]>
  53099. </doc>
  53100. </method>
  53101. <method name="getClusterStatus" return="org.apache.hadoop.mapred.ClusterStatus"
  53102. abstract="false" native="false" synchronized="true"
  53103. static="false" final="false" visibility="public"
  53104. deprecated="not deprecated">
  53105. <param name="detailed" type="boolean"/>
  53106. </method>
  53107. <method name="getClusterMetrics" return="org.apache.hadoop.mapreduce.ClusterMetrics"
  53108. abstract="false" native="false" synchronized="true"
  53109. static="false" final="false" visibility="public"
  53110. deprecated="not deprecated">
  53111. </method>
  53112. <method name="killJob"
  53113. abstract="false" native="false" synchronized="true"
  53114. static="false" final="false" visibility="public"
  53115. deprecated="not deprecated">
  53116. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  53117. <exception name="IOException" type="java.io.IOException"/>
  53118. <doc>
  53119. <![CDATA[@see JobSubmissionProtocol#killJob]]>
  53120. </doc>
  53121. </method>
  53122. <method name="cancelDelegationToken"
  53123. abstract="false" native="false" synchronized="false"
  53124. static="false" final="false" visibility="public"
  53125. deprecated="not deprecated">
  53126. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  53127. <exception name="IOException" type="java.io.IOException"/>
  53128. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  53129. <doc>
  53130. <![CDATA[Discard a current delegation token.]]>
  53131. </doc>
  53132. </method>
  53133. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  53134. abstract="false" native="false" synchronized="false"
  53135. static="false" final="false" visibility="public"
  53136. deprecated="not deprecated">
  53137. <param name="renewer" type="org.apache.hadoop.io.Text"/>
  53138. <exception name="IOException" type="java.io.IOException"/>
  53139. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  53140. <doc>
  53141. <![CDATA[Get a new delegation token.]]>
  53142. </doc>
  53143. </method>
  53144. <method name="renewDelegationToken" return="long"
  53145. abstract="false" native="false" synchronized="false"
  53146. static="false" final="false" visibility="public"
  53147. deprecated="not deprecated">
  53148. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  53149. <exception name="IOException" type="java.io.IOException"/>
  53150. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  53151. <doc>
  53152. <![CDATA[Renew a delegation token to extend its lifetime.]]>
  53153. </doc>
  53154. </method>
  53155. <method name="initJob"
  53156. abstract="false" native="false" synchronized="false"
  53157. static="false" final="false" visibility="public"
  53158. deprecated="not deprecated">
  53159. <param name="job" type="org.apache.hadoop.mapred.JobInProgress"/>
  53160. </method>
  53161. <method name="failJob"
  53162. abstract="false" native="false" synchronized="true"
  53163. static="false" final="false" visibility="public"
  53164. deprecated="not deprecated">
  53165. <param name="job" type="org.apache.hadoop.mapred.JobInProgress"/>
  53166. <doc>
  53167. <![CDATA[Fail a job and inform the listeners. Other components in the framework
  53168. should use this to fail a job.]]>
  53169. </doc>
  53170. </method>
  53171. <method name="setJobPriority"
  53172. abstract="false" native="false" synchronized="true"
  53173. static="false" final="false" visibility="public"
  53174. deprecated="not deprecated">
  53175. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  53176. <param name="priority" type="java.lang.String"/>
  53177. <exception name="IOException" type="java.io.IOException"/>
  53178. </method>
  53179. <method name="getJobProfile" return="org.apache.hadoop.mapred.JobProfile"
  53180. abstract="false" native="false" synchronized="false"
  53181. static="false" final="false" visibility="public"
  53182. deprecated="not deprecated">
  53183. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  53184. <exception name="IOException" type="java.io.IOException"/>
  53185. </method>
  53186. <method name="getJobStatus" return="org.apache.hadoop.mapred.JobStatus"
  53187. abstract="false" native="false" synchronized="false"
  53188. static="false" final="false" visibility="public"
  53189. deprecated="not deprecated">
  53190. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  53191. <exception name="IOException" type="java.io.IOException"/>
  53192. </method>
  53193. <method name="getJobCounters" return="org.apache.hadoop.mapred.Counters"
  53194. abstract="false" native="false" synchronized="false"
  53195. static="false" final="false" visibility="public"
  53196. deprecated="not deprecated">
  53197. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  53198. <exception name="IOException" type="java.io.IOException"/>
  53199. </method>
  53200. <method name="getMapTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  53201. abstract="false" native="false" synchronized="true"
  53202. static="false" final="false" visibility="public"
  53203. deprecated="not deprecated">
  53204. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  53205. <exception name="IOException" type="java.io.IOException"/>
  53206. </method>
  53207. <method name="getReduceTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  53208. abstract="false" native="false" synchronized="true"
  53209. static="false" final="false" visibility="public"
  53210. deprecated="not deprecated">
  53211. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  53212. <exception name="IOException" type="java.io.IOException"/>
  53213. </method>
  53214. <method name="getCleanupTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  53215. abstract="false" native="false" synchronized="true"
  53216. static="false" final="false" visibility="public"
  53217. deprecated="not deprecated">
  53218. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  53219. <exception name="IOException" type="java.io.IOException"/>
  53220. </method>
  53221. <method name="getSetupTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  53222. abstract="false" native="false" synchronized="true"
  53223. static="false" final="false" visibility="public"
  53224. deprecated="not deprecated">
  53225. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  53226. <exception name="IOException" type="java.io.IOException"/>
  53227. </method>
  53228. <method name="getTaskCompletionEvents" return="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  53229. abstract="false" native="false" synchronized="false"
  53230. static="false" final="false" visibility="public"
  53231. deprecated="not deprecated">
  53232. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  53233. <param name="fromEventId" type="int"/>
  53234. <param name="maxEvents" type="int"/>
  53235. <exception name="IOException" type="java.io.IOException"/>
  53236. </method>
  53237. <method name="getTaskDiagnostics" return="java.lang.String[]"
  53238. abstract="false" native="false" synchronized="true"
  53239. static="false" final="false" visibility="public"
  53240. deprecated="not deprecated">
  53241. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  53242. <exception name="IOException" type="java.io.IOException"/>
  53243. <doc>
  53244. <![CDATA[Get the diagnostics for a given task
  53245. @param taskId the id of the task
  53246. @return an array of the diagnostic messages]]>
  53247. </doc>
  53248. </method>
  53249. <method name="getTip" return="org.apache.hadoop.mapred.TaskInProgress"
  53250. abstract="false" native="false" synchronized="false"
  53251. static="false" final="false" visibility="public"
  53252. deprecated="not deprecated">
  53253. <param name="tipid" type="org.apache.hadoop.mapred.TaskID"/>
  53254. <doc>
  53255. <![CDATA[Returns specified TaskInProgress, or null.]]>
  53256. </doc>
  53257. </method>
  53258. <method name="killTask" return="boolean"
  53259. abstract="false" native="false" synchronized="true"
  53260. static="false" final="false" visibility="public"
  53261. deprecated="not deprecated">
  53262. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  53263. <param name="shouldFail" type="boolean"/>
  53264. <exception name="IOException" type="java.io.IOException"/>
  53265. <doc>
  53266. <![CDATA[@see JobSubmissionProtocol#killTask(TaskAttemptID, boolean)]]>
  53267. </doc>
  53268. </method>
  53269. <method name="getAssignedTracker" return="java.lang.String"
  53270. abstract="false" native="false" synchronized="true"
  53271. static="false" final="false" visibility="public"
  53272. deprecated="not deprecated">
  53273. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  53274. <doc>
  53275. <![CDATA[Get tracker name for a given task id.
  53276. @param taskId the name of the task
  53277. @return The name of the task tracker]]>
  53278. </doc>
  53279. </method>
  53280. <method name="jobsToComplete" return="org.apache.hadoop.mapred.JobStatus[]"
  53281. abstract="false" native="false" synchronized="false"
  53282. static="false" final="false" visibility="public"
  53283. deprecated="not deprecated">
  53284. </method>
  53285. <method name="getAllJobs" return="org.apache.hadoop.mapred.JobStatus[]"
  53286. abstract="false" native="false" synchronized="false"
  53287. static="false" final="false" visibility="public"
  53288. deprecated="not deprecated">
  53289. <doc>
  53290. <![CDATA[@see JobSubmissionProtocol#getAllJobs()]]>
  53291. </doc>
  53292. </method>
  53293. <method name="getSystemDir" return="java.lang.String"
  53294. abstract="false" native="false" synchronized="false"
  53295. static="false" final="false" visibility="public"
  53296. deprecated="not deprecated">
  53297. <doc>
  53298. <![CDATA[@see org.apache.hadoop.mapred.JobSubmissionProtocol#getSystemDir()]]>
  53299. </doc>
  53300. </method>
  53301. <method name="getQueueAdmins" return="org.apache.hadoop.security.authorize.AccessControlList"
  53302. abstract="false" native="false" synchronized="false"
  53303. static="false" final="false" visibility="public"
  53304. deprecated="not deprecated">
  53305. <param name="queueName" type="java.lang.String"/>
  53306. <exception name="IOException" type="java.io.IOException"/>
  53307. <doc>
  53308. <![CDATA[@see org.apache.hadoop.mapred.JobSubmissionProtocol#getQueueAdmins(String)]]>
  53309. </doc>
  53310. </method>
  53311. <method name="getJob" return="org.apache.hadoop.mapred.JobInProgress"
  53312. abstract="false" native="false" synchronized="false"
  53313. static="false" final="false" visibility="public"
  53314. deprecated="not deprecated">
  53315. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  53316. </method>
  53317. <method name="refreshNodes"
  53318. abstract="false" native="false" synchronized="true"
  53319. static="false" final="false" visibility="public"
  53320. deprecated="not deprecated">
  53321. <exception name="IOException" type="java.io.IOException"/>
  53322. <doc>
  53323. <![CDATA[Rereads the config to get hosts and exclude list file names.
  53324. Rereads the files to update the hosts and exclude lists.]]>
  53325. </doc>
  53326. </method>
  53327. <method name="getLocalJobFilePath" return="java.lang.String"
  53328. abstract="false" native="false" synchronized="false"
  53329. static="true" final="false" visibility="public"
  53330. deprecated="not deprecated">
  53331. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  53332. <doc>
  53333. <![CDATA[Get the localized job file path on the job trackers local file system
  53334. @param jobId id of the job
  53335. @return the path of the job conf file on the local file system]]>
  53336. </doc>
  53337. </method>
  53338. <method name="main"
  53339. abstract="false" native="false" synchronized="false"
  53340. static="true" final="false" visibility="public"
  53341. deprecated="not deprecated">
  53342. <param name="argv" type="java.lang.String[]"/>
  53343. <exception name="IOException" type="java.io.IOException"/>
  53344. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  53345. <doc>
  53346. <![CDATA[Start the JobTracker process. This is used only for debugging. As a rule,
  53347. JobTracker should be run as part of the DFS Namenode process.]]>
  53348. </doc>
  53349. </method>
  53350. <method name="getQueues" return="org.apache.hadoop.mapred.JobQueueInfo[]"
  53351. abstract="false" native="false" synchronized="false"
  53352. static="false" final="false" visibility="public"
  53353. deprecated="not deprecated">
  53354. <exception name="IOException" type="java.io.IOException"/>
  53355. </method>
  53356. <method name="getQueueInfo" return="org.apache.hadoop.mapred.JobQueueInfo"
  53357. abstract="false" native="false" synchronized="false"
  53358. static="false" final="false" visibility="public"
  53359. deprecated="not deprecated">
  53360. <param name="queue" type="java.lang.String"/>
  53361. <exception name="IOException" type="java.io.IOException"/>
  53362. </method>
  53363. <method name="getJobsFromQueue" return="org.apache.hadoop.mapred.JobStatus[]"
  53364. abstract="false" native="false" synchronized="false"
  53365. static="false" final="false" visibility="public"
  53366. deprecated="not deprecated">
  53367. <param name="queue" type="java.lang.String"/>
  53368. <exception name="IOException" type="java.io.IOException"/>
  53369. </method>
  53370. <method name="getQueueAclsForCurrentUser" return="org.apache.hadoop.mapred.QueueAclsInfo[]"
  53371. abstract="false" native="false" synchronized="false"
  53372. static="false" final="false" visibility="public"
  53373. deprecated="not deprecated">
  53374. <exception name="IOException" type="java.io.IOException"/>
  53375. </method>
  53376. <method name="refreshServiceAcl"
  53377. abstract="false" native="false" synchronized="false"
  53378. static="false" final="false" visibility="public"
  53379. deprecated="not deprecated">
  53380. <exception name="IOException" type="java.io.IOException"/>
  53381. </method>
  53382. <method name="refreshSuperUserGroupsConfiguration"
  53383. abstract="false" native="false" synchronized="false"
  53384. static="false" final="false" visibility="public"
  53385. deprecated="not deprecated">
  53386. </method>
  53387. <method name="refreshUserToGroupsMappings"
  53388. abstract="false" native="false" synchronized="false"
  53389. static="false" final="false" visibility="public"
  53390. deprecated="not deprecated">
  53391. <exception name="IOException" type="java.io.IOException"/>
  53392. </method>
  53393. <method name="refreshQueues"
  53394. abstract="false" native="false" synchronized="false"
  53395. static="false" final="false" visibility="public"
  53396. deprecated="not deprecated">
  53397. <exception name="IOException" type="java.io.IOException"/>
  53398. </method>
  53399. <method name="getReasonsForBlacklisting" return="java.lang.String"
  53400. abstract="false" native="false" synchronized="false"
  53401. static="false" final="false" visibility="public"
  53402. deprecated="not deprecated">
  53403. <param name="host" type="java.lang.String"/>
  53404. </method>
  53405. <method name="getReasonsForGraylisting" return="java.lang.String"
  53406. abstract="false" native="false" synchronized="false"
  53407. static="false" final="false" visibility="public"
  53408. deprecated="not deprecated">
  53409. <param name="host" type="java.lang.String"/>
  53410. </method>
  53411. <method name="getHostname" return="java.lang.String"
  53412. abstract="false" native="false" synchronized="false"
  53413. static="false" final="false" visibility="public"
  53414. deprecated="not deprecated">
  53415. </method>
  53416. <method name="getVersion" return="java.lang.String"
  53417. abstract="false" native="false" synchronized="false"
  53418. static="false" final="false" visibility="public"
  53419. deprecated="not deprecated">
  53420. </method>
  53421. <method name="getConfigVersion" return="java.lang.String"
  53422. abstract="false" native="false" synchronized="false"
  53423. static="false" final="false" visibility="public"
  53424. deprecated="not deprecated">
  53425. </method>
  53426. <method name="getThreadCount" return="int"
  53427. abstract="false" native="false" synchronized="false"
  53428. static="false" final="false" visibility="public"
  53429. deprecated="not deprecated">
  53430. </method>
  53431. <method name="getSummaryJson" return="java.lang.String"
  53432. abstract="false" native="false" synchronized="false"
  53433. static="false" final="false" visibility="public"
  53434. deprecated="not deprecated">
  53435. </method>
  53436. <method name="getAliveNodesInfoJson" return="java.lang.String"
  53437. abstract="false" native="false" synchronized="false"
  53438. static="false" final="false" visibility="public"
  53439. deprecated="not deprecated">
  53440. </method>
  53441. <method name="getBlacklistedNodesInfoJson" return="java.lang.String"
  53442. abstract="false" native="false" synchronized="false"
  53443. static="false" final="false" visibility="public"
  53444. deprecated="not deprecated">
  53445. </method>
  53446. <method name="getGraylistedNodesInfoJson" return="java.lang.String"
  53447. abstract="false" native="false" synchronized="false"
  53448. static="false" final="false" visibility="public"
  53449. deprecated="not deprecated">
  53450. </method>
  53451. <method name="getQueueInfoJson" return="java.lang.String"
  53452. abstract="false" native="false" synchronized="false"
  53453. static="false" final="false" visibility="public"
  53454. deprecated="not deprecated">
  53455. </method>
  53456. <method name="setSafeMode" return="boolean"
  53457. abstract="false" native="false" synchronized="false"
  53458. static="false" final="false" visibility="public"
  53459. deprecated="not deprecated">
  53460. <param name="safeModeAction" type="org.apache.hadoop.mapred.JobTracker.SafeModeAction"/>
  53461. <exception name="IOException" type="java.io.IOException"/>
  53462. </method>
  53463. <method name="isInSafeMode" return="boolean"
  53464. abstract="false" native="false" synchronized="false"
  53465. static="false" final="false" visibility="public"
  53466. deprecated="not deprecated">
  53467. </method>
  53468. <field name="MAX_USER_JOBCONF_SIZE_KEY" type="java.lang.String"
  53469. transient="false" volatile="false"
  53470. static="true" final="true" visibility="public"
  53471. deprecated="not deprecated">
  53472. <doc>
  53473. <![CDATA[the config key for max user jobconf size]]>
  53474. </doc>
  53475. </field>
  53476. <field name="DELEGATION_KEY_UPDATE_INTERVAL_KEY" type="java.lang.String"
  53477. transient="false" volatile="false"
  53478. static="true" final="true" visibility="public"
  53479. deprecated="not deprecated">
  53480. </field>
  53481. <field name="DELEGATION_KEY_UPDATE_INTERVAL_DEFAULT" type="long"
  53482. transient="false" volatile="false"
  53483. static="true" final="true" visibility="public"
  53484. deprecated="not deprecated">
  53485. </field>
  53486. <field name="DELEGATION_TOKEN_RENEW_INTERVAL_KEY" type="java.lang.String"
  53487. transient="false" volatile="false"
  53488. static="true" final="true" visibility="public"
  53489. deprecated="not deprecated">
  53490. </field>
  53491. <field name="DELEGATION_TOKEN_RENEW_INTERVAL_DEFAULT" type="long"
  53492. transient="false" volatile="false"
  53493. static="true" final="true" visibility="public"
  53494. deprecated="not deprecated">
  53495. </field>
  53496. <field name="DELEGATION_TOKEN_MAX_LIFETIME_KEY" type="java.lang.String"
  53497. transient="false" volatile="false"
  53498. static="true" final="true" visibility="public"
  53499. deprecated="not deprecated">
  53500. </field>
  53501. <field name="DELEGATION_TOKEN_MAX_LIFETIME_DEFAULT" type="long"
  53502. transient="false" volatile="false"
  53503. static="true" final="true" visibility="public"
  53504. deprecated="not deprecated">
  53505. </field>
  53506. <field name="LOG" type="org.apache.commons.logging.Log"
  53507. transient="false" volatile="false"
  53508. static="true" final="true" visibility="public"
  53509. deprecated="not deprecated">
  53510. </field>
  53511. <field name="JT_USER_NAME" type="java.lang.String"
  53512. transient="false" volatile="false"
  53513. static="true" final="true" visibility="public"
  53514. deprecated="not deprecated">
  53515. </field>
  53516. <field name="JT_KEYTAB_FILE" type="java.lang.String"
  53517. transient="false" volatile="false"
  53518. static="true" final="true" visibility="public"
  53519. deprecated="not deprecated">
  53520. </field>
  53521. <field name="MAPRED_CLUSTER_MAP_MEMORY_MB_PROPERTY" type="java.lang.String"
  53522. transient="false" volatile="false"
  53523. static="true" final="true" visibility="public"
  53524. deprecated="not deprecated">
  53525. </field>
  53526. <field name="MAPRED_CLUSTER_REDUCE_MEMORY_MB_PROPERTY" type="java.lang.String"
  53527. transient="false" volatile="false"
  53528. static="true" final="true" visibility="public"
  53529. deprecated="not deprecated">
  53530. </field>
  53531. <field name="MAPRED_CLUSTER_MAX_MAP_MEMORY_MB_PROPERTY" type="java.lang.String"
  53532. transient="false" volatile="false"
  53533. static="true" final="true" visibility="public"
  53534. deprecated="not deprecated">
  53535. </field>
  53536. <field name="MAPRED_CLUSTER_MAX_REDUCE_MEMORY_MB_PROPERTY" type="java.lang.String"
  53537. transient="false" volatile="false"
  53538. static="true" final="true" visibility="public"
  53539. deprecated="not deprecated">
  53540. </field>
  53541. <doc>
  53542. <![CDATA[JobTracker is the central location for submitting and
  53543. tracking MR jobs in a network environment.]]>
  53544. </doc>
  53545. </class>
  53546. <!-- end class org.apache.hadoop.mapred.JobTracker -->
  53547. <!-- start class org.apache.hadoop.mapred.JobTracker.IllegalStateException -->
  53548. <class name="JobTracker.IllegalStateException" extends="java.io.IOException"
  53549. abstract="false"
  53550. static="true" final="false" visibility="public"
  53551. deprecated="not deprecated">
  53552. <constructor name="JobTracker.IllegalStateException" type="java.lang.String"
  53553. static="false" final="false" visibility="public"
  53554. deprecated="not deprecated">
  53555. </constructor>
  53556. <doc>
  53557. <![CDATA[A client tried to submit a job before the Job Tracker was ready.]]>
  53558. </doc>
  53559. </class>
  53560. <!-- end class org.apache.hadoop.mapred.JobTracker.IllegalStateException -->
  53561. <!-- start class org.apache.hadoop.mapred.JobTracker.SafeModeAction -->
  53562. <class name="JobTracker.SafeModeAction" extends="java.lang.Enum"
  53563. abstract="false"
  53564. static="true" final="true" visibility="public"
  53565. deprecated="not deprecated">
  53566. <method name="values" return="org.apache.hadoop.mapred.JobTracker.SafeModeAction[]"
  53567. abstract="false" native="false" synchronized="false"
  53568. static="true" final="false" visibility="public"
  53569. deprecated="not deprecated">
  53570. </method>
  53571. <method name="valueOf" return="org.apache.hadoop.mapred.JobTracker.SafeModeAction"
  53572. abstract="false" native="false" synchronized="false"
  53573. static="true" final="false" visibility="public"
  53574. deprecated="not deprecated">
  53575. <param name="name" type="java.lang.String"/>
  53576. </method>
  53577. <field name="SAFEMODE_LEAVE" type="org.apache.hadoop.mapred.JobTracker.SafeModeAction"
  53578. transient="false" volatile="false"
  53579. static="true" final="true" visibility="public"
  53580. deprecated="not deprecated">
  53581. </field>
  53582. <field name="SAFEMODE_ENTER" type="org.apache.hadoop.mapred.JobTracker.SafeModeAction"
  53583. transient="false" volatile="false"
  53584. static="true" final="true" visibility="public"
  53585. deprecated="not deprecated">
  53586. </field>
  53587. <field name="SAFEMODE_GET" type="org.apache.hadoop.mapred.JobTracker.SafeModeAction"
  53588. transient="false" volatile="false"
  53589. static="true" final="true" visibility="public"
  53590. deprecated="not deprecated">
  53591. </field>
  53592. <doc>
  53593. <![CDATA[JobTracker SafeMode]]>
  53594. </doc>
  53595. </class>
  53596. <!-- end class org.apache.hadoop.mapred.JobTracker.SafeModeAction -->
  53597. <!-- start class org.apache.hadoop.mapred.JobTracker.State -->
  53598. <class name="JobTracker.State" extends="java.lang.Enum"
  53599. abstract="false"
  53600. static="true" final="true" visibility="public"
  53601. deprecated="not deprecated">
  53602. <method name="values" return="org.apache.hadoop.mapred.JobTracker.State[]"
  53603. abstract="false" native="false" synchronized="false"
  53604. static="true" final="false" visibility="public"
  53605. deprecated="not deprecated">
  53606. </method>
  53607. <method name="valueOf" return="org.apache.hadoop.mapred.JobTracker.State"
  53608. abstract="false" native="false" synchronized="false"
  53609. static="true" final="false" visibility="public"
  53610. deprecated="not deprecated">
  53611. <param name="name" type="java.lang.String"/>
  53612. </method>
  53613. <field name="INITIALIZING" type="org.apache.hadoop.mapred.JobTracker.State"
  53614. transient="false" volatile="false"
  53615. static="true" final="true" visibility="public"
  53616. deprecated="not deprecated">
  53617. </field>
  53618. <field name="RUNNING" type="org.apache.hadoop.mapred.JobTracker.State"
  53619. transient="false" volatile="false"
  53620. static="true" final="true" visibility="public"
  53621. deprecated="not deprecated">
  53622. </field>
  53623. </class>
  53624. <!-- end class org.apache.hadoop.mapred.JobTracker.State -->
  53625. <!-- start interface org.apache.hadoop.mapred.JobTrackerMXBean -->
  53626. <interface name="JobTrackerMXBean" abstract="true"
  53627. static="false" final="false" visibility="public"
  53628. deprecated="not deprecated">
  53629. <method name="getHostname" return="java.lang.String"
  53630. abstract="false" native="false" synchronized="false"
  53631. static="false" final="false" visibility="public"
  53632. deprecated="not deprecated">
  53633. <doc>
  53634. <![CDATA[@return hostname of the jobtracker]]>
  53635. </doc>
  53636. </method>
  53637. <method name="getVersion" return="java.lang.String"
  53638. abstract="false" native="false" synchronized="false"
  53639. static="false" final="false" visibility="public"
  53640. deprecated="not deprecated">
  53641. <doc>
  53642. <![CDATA[@return version of the code base]]>
  53643. </doc>
  53644. </method>
  53645. <method name="getConfigVersion" return="java.lang.String"
  53646. abstract="false" native="false" synchronized="false"
  53647. static="false" final="false" visibility="public"
  53648. deprecated="not deprecated">
  53649. <doc>
  53650. <![CDATA[@return the config version (from a config property)]]>
  53651. </doc>
  53652. </method>
  53653. <method name="getThreadCount" return="int"
  53654. abstract="false" native="false" synchronized="false"
  53655. static="false" final="false" visibility="public"
  53656. deprecated="not deprecated">
  53657. <doc>
  53658. <![CDATA[@return number of threads of the jobtracker jvm]]>
  53659. </doc>
  53660. </method>
  53661. <method name="getSummaryJson" return="java.lang.String"
  53662. abstract="false" native="false" synchronized="false"
  53663. static="false" final="false" visibility="public"
  53664. deprecated="not deprecated">
  53665. <doc>
  53666. <![CDATA[@return the summary info in json]]>
  53667. </doc>
  53668. </method>
  53669. <method name="getAliveNodesInfoJson" return="java.lang.String"
  53670. abstract="false" native="false" synchronized="false"
  53671. static="false" final="false" visibility="public"
  53672. deprecated="not deprecated">
  53673. <doc>
  53674. <![CDATA[@return the alive nodes info in json]]>
  53675. </doc>
  53676. </method>
  53677. <method name="getBlacklistedNodesInfoJson" return="java.lang.String"
  53678. abstract="false" native="false" synchronized="false"
  53679. static="false" final="false" visibility="public"
  53680. deprecated="not deprecated">
  53681. <doc>
  53682. <![CDATA[@return the blacklisted nodes info in json]]>
  53683. </doc>
  53684. </method>
  53685. <method name="getGraylistedNodesInfoJson" return="java.lang.String"
  53686. abstract="false" native="false" synchronized="false"
  53687. static="false" final="false" visibility="public"
  53688. deprecated="not deprecated">
  53689. <doc>
  53690. <![CDATA[@return the graylisted nodes info in json]]>
  53691. </doc>
  53692. </method>
  53693. <method name="getQueueInfoJson" return="java.lang.String"
  53694. abstract="false" native="false" synchronized="false"
  53695. static="false" final="false" visibility="public"
  53696. deprecated="not deprecated">
  53697. <doc>
  53698. <![CDATA[@return the queue info json]]>
  53699. </doc>
  53700. </method>
  53701. <doc>
  53702. <![CDATA[The MXBean interface for JobTrackerInfo]]>
  53703. </doc>
  53704. </interface>
  53705. <!-- end interface org.apache.hadoop.mapred.JobTrackerMXBean -->
  53706. <!-- start class org.apache.hadoop.mapred.JobTrackerNotYetInitializedException -->
  53707. <class name="JobTrackerNotYetInitializedException" extends="java.io.IOException"
  53708. abstract="false"
  53709. static="false" final="false" visibility="public"
  53710. deprecated="not deprecated">
  53711. <constructor name="JobTrackerNotYetInitializedException"
  53712. static="false" final="false" visibility="public"
  53713. deprecated="not deprecated">
  53714. </constructor>
  53715. <doc>
  53716. <![CDATA[This exception is thrown when the JobTracker is still initializing and
  53717. not yet operational.]]>
  53718. </doc>
  53719. </class>
  53720. <!-- end class org.apache.hadoop.mapred.JobTrackerNotYetInitializedException -->
  53721. <!-- start class org.apache.hadoop.mapred.JvmTask -->
  53722. <class name="JvmTask" extends="java.lang.Object"
  53723. abstract="false"
  53724. static="false" final="false" visibility="public"
  53725. deprecated="not deprecated">
  53726. <implements name="org.apache.hadoop.io.Writable"/>
  53727. <constructor name="JvmTask" type="org.apache.hadoop.mapred.Task, boolean"
  53728. static="false" final="false" visibility="public"
  53729. deprecated="not deprecated">
  53730. </constructor>
  53731. <constructor name="JvmTask"
  53732. static="false" final="false" visibility="public"
  53733. deprecated="not deprecated">
  53734. </constructor>
  53735. <method name="getTask" return="org.apache.hadoop.mapred.Task"
  53736. abstract="false" native="false" synchronized="false"
  53737. static="false" final="false" visibility="public"
  53738. deprecated="not deprecated">
  53739. </method>
  53740. <method name="shouldDie" return="boolean"
  53741. abstract="false" native="false" synchronized="false"
  53742. static="false" final="false" visibility="public"
  53743. deprecated="not deprecated">
  53744. </method>
  53745. <method name="write"
  53746. abstract="false" native="false" synchronized="false"
  53747. static="false" final="false" visibility="public"
  53748. deprecated="not deprecated">
  53749. <param name="out" type="java.io.DataOutput"/>
  53750. <exception name="IOException" type="java.io.IOException"/>
  53751. </method>
  53752. <method name="readFields"
  53753. abstract="false" native="false" synchronized="false"
  53754. static="false" final="false" visibility="public"
  53755. deprecated="not deprecated">
  53756. <param name="in" type="java.io.DataInput"/>
  53757. <exception name="IOException" type="java.io.IOException"/>
  53758. </method>
  53759. </class>
  53760. <!-- end class org.apache.hadoop.mapred.JvmTask -->
  53761. <!-- start class org.apache.hadoop.mapred.KeyValueLineRecordReader -->
  53762. <class name="KeyValueLineRecordReader" extends="java.lang.Object"
  53763. abstract="false"
  53764. static="false" final="false" visibility="public"
  53765. deprecated="not deprecated">
  53766. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  53767. <constructor name="KeyValueLineRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  53768. static="false" final="false" visibility="public"
  53769. deprecated="not deprecated">
  53770. <exception name="IOException" type="java.io.IOException"/>
  53771. </constructor>
  53772. <method name="getKeyClass" return="java.lang.Class"
  53773. abstract="false" native="false" synchronized="false"
  53774. static="false" final="false" visibility="public"
  53775. deprecated="not deprecated">
  53776. </method>
  53777. <method name="createKey" return="org.apache.hadoop.io.Text"
  53778. abstract="false" native="false" synchronized="false"
  53779. static="false" final="false" visibility="public"
  53780. deprecated="not deprecated">
  53781. </method>
  53782. <method name="createValue" return="org.apache.hadoop.io.Text"
  53783. abstract="false" native="false" synchronized="false"
  53784. static="false" final="false" visibility="public"
  53785. deprecated="not deprecated">
  53786. </method>
  53787. <method name="findSeparator" return="int"
  53788. abstract="false" native="false" synchronized="false"
  53789. static="true" final="false" visibility="public"
  53790. deprecated="not deprecated">
  53791. <param name="utf" type="byte[]"/>
  53792. <param name="start" type="int"/>
  53793. <param name="length" type="int"/>
  53794. <param name="sep" type="byte"/>
  53795. </method>
  53796. <method name="next" return="boolean"
  53797. abstract="false" native="false" synchronized="true"
  53798. static="false" final="false" visibility="public"
  53799. deprecated="not deprecated">
  53800. <param name="key" type="org.apache.hadoop.io.Text"/>
  53801. <param name="value" type="org.apache.hadoop.io.Text"/>
  53802. <exception name="IOException" type="java.io.IOException"/>
  53803. <doc>
  53804. <![CDATA[Read key/value pair in a line.]]>
  53805. </doc>
  53806. </method>
  53807. <method name="getProgress" return="float"
  53808. abstract="false" native="false" synchronized="false"
  53809. static="false" final="false" visibility="public"
  53810. deprecated="not deprecated">
  53811. <exception name="IOException" type="java.io.IOException"/>
  53812. </method>
  53813. <method name="getPos" return="long"
  53814. abstract="false" native="false" synchronized="true"
  53815. static="false" final="false" visibility="public"
  53816. deprecated="not deprecated">
  53817. <exception name="IOException" type="java.io.IOException"/>
  53818. </method>
  53819. <method name="close"
  53820. abstract="false" native="false" synchronized="true"
  53821. static="false" final="false" visibility="public"
  53822. deprecated="not deprecated">
  53823. <exception name="IOException" type="java.io.IOException"/>
  53824. </method>
  53825. <doc>
  53826. <![CDATA[This class treats a line in the input as a key/value pair separated by a
  53827. separator character. The separator can be specified in config file
  53828. under the attribute name key.value.separator.in.input.line. The default
  53829. separator is the tab character ('\t').]]>
  53830. </doc>
  53831. </class>
  53832. <!-- end class org.apache.hadoop.mapred.KeyValueLineRecordReader -->
  53833. <!-- start class org.apache.hadoop.mapred.KeyValueTextInputFormat -->
  53834. <class name="KeyValueTextInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat"
  53835. abstract="false"
  53836. static="false" final="false" visibility="public"
  53837. deprecated="not deprecated">
  53838. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  53839. <constructor name="KeyValueTextInputFormat"
  53840. static="false" final="false" visibility="public"
  53841. deprecated="not deprecated">
  53842. </constructor>
  53843. <method name="configure"
  53844. abstract="false" native="false" synchronized="false"
  53845. static="false" final="false" visibility="public"
  53846. deprecated="not deprecated">
  53847. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  53848. </method>
  53849. <method name="isSplitable" return="boolean"
  53850. abstract="false" native="false" synchronized="false"
  53851. static="false" final="false" visibility="protected"
  53852. deprecated="not deprecated">
  53853. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  53854. <param name="file" type="org.apache.hadoop.fs.Path"/>
  53855. </method>
  53856. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  53857. abstract="false" native="false" synchronized="false"
  53858. static="false" final="false" visibility="public"
  53859. deprecated="not deprecated">
  53860. <param name="genericSplit" type="org.apache.hadoop.mapred.InputSplit"/>
  53861. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  53862. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  53863. <exception name="IOException" type="java.io.IOException"/>
  53864. </method>
  53865. <doc>
  53866. <![CDATA[An {@link InputFormat} for plain text files. Files are broken into lines.
  53867. Either linefeed or carriage-return are used to signal end of line. Each line
  53868. is divided into key and value parts by a separator byte. If no such a byte
  53869. exists, the key will be the entire line and value will be empty.]]>
  53870. </doc>
  53871. </class>
  53872. <!-- end class org.apache.hadoop.mapred.KeyValueTextInputFormat -->
  53873. <!-- start class org.apache.hadoop.mapred.LineRecordReader -->
  53874. <class name="LineRecordReader" extends="java.lang.Object"
  53875. abstract="false"
  53876. static="false" final="false" visibility="public"
  53877. deprecated="not deprecated">
  53878. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  53879. <constructor name="LineRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  53880. static="false" final="false" visibility="public"
  53881. deprecated="not deprecated">
  53882. <exception name="IOException" type="java.io.IOException"/>
  53883. </constructor>
  53884. <constructor name="LineRecordReader" type="java.io.InputStream, long, long, int"
  53885. static="false" final="false" visibility="public"
  53886. deprecated="not deprecated">
  53887. </constructor>
  53888. <constructor name="LineRecordReader" type="java.io.InputStream, long, long, org.apache.hadoop.conf.Configuration"
  53889. static="false" final="false" visibility="public"
  53890. deprecated="not deprecated">
  53891. <exception name="IOException" type="java.io.IOException"/>
  53892. </constructor>
  53893. <method name="createKey" return="org.apache.hadoop.io.LongWritable"
  53894. abstract="false" native="false" synchronized="false"
  53895. static="false" final="false" visibility="public"
  53896. deprecated="not deprecated">
  53897. </method>
  53898. <method name="createValue" return="org.apache.hadoop.io.Text"
  53899. abstract="false" native="false" synchronized="false"
  53900. static="false" final="false" visibility="public"
  53901. deprecated="not deprecated">
  53902. </method>
  53903. <method name="next" return="boolean"
  53904. abstract="false" native="false" synchronized="true"
  53905. static="false" final="false" visibility="public"
  53906. deprecated="not deprecated">
  53907. <param name="key" type="org.apache.hadoop.io.LongWritable"/>
  53908. <param name="value" type="org.apache.hadoop.io.Text"/>
  53909. <exception name="IOException" type="java.io.IOException"/>
  53910. <doc>
  53911. <![CDATA[Read a line.]]>
  53912. </doc>
  53913. </method>
  53914. <method name="getProgress" return="float"
  53915. abstract="false" native="false" synchronized="false"
  53916. static="false" final="false" visibility="public"
  53917. deprecated="not deprecated">
  53918. <exception name="IOException" type="java.io.IOException"/>
  53919. <doc>
  53920. <![CDATA[Get the progress within the split]]>
  53921. </doc>
  53922. </method>
  53923. <method name="getPos" return="long"
  53924. abstract="false" native="false" synchronized="true"
  53925. static="false" final="false" visibility="public"
  53926. deprecated="not deprecated">
  53927. <exception name="IOException" type="java.io.IOException"/>
  53928. </method>
  53929. <method name="close"
  53930. abstract="false" native="false" synchronized="true"
  53931. static="false" final="false" visibility="public"
  53932. deprecated="not deprecated">
  53933. <exception name="IOException" type="java.io.IOException"/>
  53934. </method>
  53935. <doc>
  53936. <![CDATA[Treats keys as offset in file and value as line.]]>
  53937. </doc>
  53938. </class>
  53939. <!-- end class org.apache.hadoop.mapred.LineRecordReader -->
  53940. <!-- start class org.apache.hadoop.mapred.LineRecordReader.LineReader -->
  53941. <class name="LineRecordReader.LineReader" extends="org.apache.hadoop.util.LineReader"
  53942. abstract="false"
  53943. static="true" final="false" visibility="public"
  53944. deprecated="Use {@link org.apache.hadoop.util.LineReader} instead.">
  53945. <constructor name="LineRecordReader.LineReader" type="java.io.InputStream, org.apache.hadoop.conf.Configuration"
  53946. static="false" final="false" visibility="public"
  53947. deprecated="not deprecated">
  53948. <exception name="IOException" type="java.io.IOException"/>
  53949. </constructor>
  53950. <doc>
  53951. <![CDATA[A class that provides a line reader from an input stream.
  53952. @deprecated Use {@link org.apache.hadoop.util.LineReader} instead.]]>
  53953. </doc>
  53954. </class>
  53955. <!-- end class org.apache.hadoop.mapred.LineRecordReader.LineReader -->
  53956. <!-- start class org.apache.hadoop.mapred.LocalJobRunner -->
  53957. <class name="LocalJobRunner" extends="java.lang.Object"
  53958. abstract="false"
  53959. static="false" final="false" visibility="public"
  53960. deprecated="not deprecated">
  53961. <implements name="org.apache.hadoop.mapred.JobSubmissionProtocol"/>
  53962. <constructor name="LocalJobRunner" type="org.apache.hadoop.mapred.JobConf"
  53963. static="false" final="false" visibility="public"
  53964. deprecated="not deprecated">
  53965. <exception name="IOException" type="java.io.IOException"/>
  53966. </constructor>
  53967. <method name="getProtocolVersion" return="long"
  53968. abstract="false" native="false" synchronized="false"
  53969. static="false" final="false" visibility="public"
  53970. deprecated="not deprecated">
  53971. <param name="protocol" type="java.lang.String"/>
  53972. <param name="clientVersion" type="long"/>
  53973. </method>
  53974. <method name="getNewJobId" return="org.apache.hadoop.mapred.JobID"
  53975. abstract="false" native="false" synchronized="true"
  53976. static="false" final="false" visibility="public"
  53977. deprecated="not deprecated">
  53978. </method>
  53979. <method name="submitJob" return="org.apache.hadoop.mapred.JobStatus"
  53980. abstract="false" native="false" synchronized="false"
  53981. static="false" final="false" visibility="public"
  53982. deprecated="not deprecated">
  53983. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  53984. <param name="jobSubmitDir" type="java.lang.String"/>
  53985. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  53986. <exception name="IOException" type="java.io.IOException"/>
  53987. </method>
  53988. <method name="killJob"
  53989. abstract="false" native="false" synchronized="false"
  53990. static="false" final="false" visibility="public"
  53991. deprecated="not deprecated">
  53992. <param name="id" type="org.apache.hadoop.mapred.JobID"/>
  53993. </method>
  53994. <method name="setJobPriority"
  53995. abstract="false" native="false" synchronized="false"
  53996. static="false" final="false" visibility="public"
  53997. deprecated="not deprecated">
  53998. <param name="id" type="org.apache.hadoop.mapred.JobID"/>
  53999. <param name="jp" type="java.lang.String"/>
  54000. <exception name="IOException" type="java.io.IOException"/>
  54001. </method>
  54002. <method name="killTask" return="boolean"
  54003. abstract="false" native="false" synchronized="false"
  54004. static="false" final="false" visibility="public"
  54005. deprecated="not deprecated">
  54006. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  54007. <param name="shouldFail" type="boolean"/>
  54008. <exception name="IOException" type="java.io.IOException"/>
  54009. <doc>
  54010. <![CDATA[Throws {@link UnsupportedOperationException}]]>
  54011. </doc>
  54012. </method>
  54013. <method name="getJobProfile" return="org.apache.hadoop.mapred.JobProfile"
  54014. abstract="false" native="false" synchronized="false"
  54015. static="false" final="false" visibility="public"
  54016. deprecated="not deprecated">
  54017. <param name="id" type="org.apache.hadoop.mapred.JobID"/>
  54018. </method>
  54019. <method name="getMapTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  54020. abstract="false" native="false" synchronized="false"
  54021. static="false" final="false" visibility="public"
  54022. deprecated="not deprecated">
  54023. <param name="id" type="org.apache.hadoop.mapred.JobID"/>
  54024. </method>
  54025. <method name="getReduceTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  54026. abstract="false" native="false" synchronized="false"
  54027. static="false" final="false" visibility="public"
  54028. deprecated="not deprecated">
  54029. <param name="id" type="org.apache.hadoop.mapred.JobID"/>
  54030. </method>
  54031. <method name="getCleanupTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  54032. abstract="false" native="false" synchronized="false"
  54033. static="false" final="false" visibility="public"
  54034. deprecated="not deprecated">
  54035. <param name="id" type="org.apache.hadoop.mapred.JobID"/>
  54036. </method>
  54037. <method name="getSetupTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  54038. abstract="false" native="false" synchronized="false"
  54039. static="false" final="false" visibility="public"
  54040. deprecated="not deprecated">
  54041. <param name="id" type="org.apache.hadoop.mapred.JobID"/>
  54042. </method>
  54043. <method name="getJobStatus" return="org.apache.hadoop.mapred.JobStatus"
  54044. abstract="false" native="false" synchronized="false"
  54045. static="false" final="false" visibility="public"
  54046. deprecated="not deprecated">
  54047. <param name="id" type="org.apache.hadoop.mapred.JobID"/>
  54048. </method>
  54049. <method name="getJobCounters" return="org.apache.hadoop.mapred.Counters"
  54050. abstract="false" native="false" synchronized="false"
  54051. static="false" final="false" visibility="public"
  54052. deprecated="not deprecated">
  54053. <param name="id" type="org.apache.hadoop.mapred.JobID"/>
  54054. </method>
  54055. <method name="getFilesystemName" return="java.lang.String"
  54056. abstract="false" native="false" synchronized="false"
  54057. static="false" final="false" visibility="public"
  54058. deprecated="not deprecated">
  54059. <exception name="IOException" type="java.io.IOException"/>
  54060. </method>
  54061. <method name="getClusterStatus" return="org.apache.hadoop.mapred.ClusterStatus"
  54062. abstract="false" native="false" synchronized="false"
  54063. static="false" final="false" visibility="public"
  54064. deprecated="not deprecated">
  54065. <param name="detailed" type="boolean"/>
  54066. </method>
  54067. <method name="jobsToComplete" return="org.apache.hadoop.mapred.JobStatus[]"
  54068. abstract="false" native="false" synchronized="false"
  54069. static="false" final="false" visibility="public"
  54070. deprecated="not deprecated">
  54071. </method>
  54072. <method name="getTaskCompletionEvents" return="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  54073. abstract="false" native="false" synchronized="false"
  54074. static="false" final="false" visibility="public"
  54075. deprecated="not deprecated">
  54076. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  54077. <param name="fromEventId" type="int"/>
  54078. <param name="maxEvents" type="int"/>
  54079. <exception name="IOException" type="java.io.IOException"/>
  54080. </method>
  54081. <method name="getAllJobs" return="org.apache.hadoop.mapred.JobStatus[]"
  54082. abstract="false" native="false" synchronized="false"
  54083. static="false" final="false" visibility="public"
  54084. deprecated="not deprecated">
  54085. </method>
  54086. <method name="getTaskDiagnostics" return="java.lang.String[]"
  54087. abstract="false" native="false" synchronized="false"
  54088. static="false" final="false" visibility="public"
  54089. deprecated="not deprecated">
  54090. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  54091. <exception name="IOException" type="java.io.IOException"/>
  54092. <doc>
  54093. <![CDATA[Returns the diagnostic information for a particular task in the given job.
  54094. To be implemented]]>
  54095. </doc>
  54096. </method>
  54097. <method name="getSystemDir" return="java.lang.String"
  54098. abstract="false" native="false" synchronized="false"
  54099. static="false" final="false" visibility="public"
  54100. deprecated="not deprecated">
  54101. <doc>
  54102. <![CDATA[@see org.apache.hadoop.mapred.JobSubmissionProtocol#getSystemDir()]]>
  54103. </doc>
  54104. </method>
  54105. <method name="getQueueAdmins" return="org.apache.hadoop.security.authorize.AccessControlList"
  54106. abstract="false" native="false" synchronized="false"
  54107. static="false" final="false" visibility="public"
  54108. deprecated="not deprecated">
  54109. <param name="queueName" type="java.lang.String"/>
  54110. <exception name="IOException" type="java.io.IOException"/>
  54111. <doc>
  54112. <![CDATA[@see org.apache.hadoop.mapred.JobSubmissionProtocol#getQueueAdmins()]]>
  54113. </doc>
  54114. </method>
  54115. <method name="getStagingAreaDir" return="java.lang.String"
  54116. abstract="false" native="false" synchronized="false"
  54117. static="false" final="false" visibility="public"
  54118. deprecated="not deprecated">
  54119. <exception name="IOException" type="java.io.IOException"/>
  54120. <doc>
  54121. <![CDATA[@see org.apache.hadoop.mapred.JobSubmissionProtocol#getStagingAreaDir()]]>
  54122. </doc>
  54123. </method>
  54124. <method name="getJobsFromQueue" return="org.apache.hadoop.mapred.JobStatus[]"
  54125. abstract="false" native="false" synchronized="false"
  54126. static="false" final="false" visibility="public"
  54127. deprecated="not deprecated">
  54128. <param name="queue" type="java.lang.String"/>
  54129. <exception name="IOException" type="java.io.IOException"/>
  54130. </method>
  54131. <method name="getQueues" return="org.apache.hadoop.mapred.JobQueueInfo[]"
  54132. abstract="false" native="false" synchronized="false"
  54133. static="false" final="false" visibility="public"
  54134. deprecated="not deprecated">
  54135. <exception name="IOException" type="java.io.IOException"/>
  54136. </method>
  54137. <method name="getQueueInfo" return="org.apache.hadoop.mapred.JobQueueInfo"
  54138. abstract="false" native="false" synchronized="false"
  54139. static="false" final="false" visibility="public"
  54140. deprecated="not deprecated">
  54141. <param name="queue" type="java.lang.String"/>
  54142. <exception name="IOException" type="java.io.IOException"/>
  54143. </method>
  54144. <method name="getQueueAclsForCurrentUser" return="org.apache.hadoop.mapred.QueueAclsInfo[]"
  54145. abstract="false" native="false" synchronized="false"
  54146. static="false" final="false" visibility="public"
  54147. deprecated="not deprecated">
  54148. <exception name="IOException" type="java.io.IOException"/>
  54149. </method>
  54150. <method name="setLocalMaxRunningMaps"
  54151. abstract="false" native="false" synchronized="false"
  54152. static="true" final="false" visibility="public"
  54153. deprecated="not deprecated">
  54154. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  54155. <param name="maxMaps" type="int"/>
  54156. <doc>
  54157. <![CDATA[Set the max number of map tasks to run concurrently in the LocalJobRunner.
  54158. @param job the job to configure
  54159. @param maxMaps the maximum number of map tasks to allow.]]>
  54160. </doc>
  54161. </method>
  54162. <method name="getLocalMaxRunningMaps" return="int"
  54163. abstract="false" native="false" synchronized="false"
  54164. static="true" final="false" visibility="public"
  54165. deprecated="not deprecated">
  54166. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  54167. <doc>
  54168. <![CDATA[@return the max number of map tasks to run concurrently in the
  54169. LocalJobRunner.]]>
  54170. </doc>
  54171. </method>
  54172. <method name="cancelDelegationToken"
  54173. abstract="false" native="false" synchronized="false"
  54174. static="false" final="false" visibility="public"
  54175. deprecated="not deprecated">
  54176. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  54177. <exception name="IOException" type="java.io.IOException"/>
  54178. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  54179. </method>
  54180. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  54181. abstract="false" native="false" synchronized="false"
  54182. static="false" final="false" visibility="public"
  54183. deprecated="not deprecated">
  54184. <param name="renewer" type="org.apache.hadoop.io.Text"/>
  54185. <exception name="IOException" type="java.io.IOException"/>
  54186. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  54187. </method>
  54188. <method name="renewDelegationToken" return="long"
  54189. abstract="false" native="false" synchronized="false"
  54190. static="false" final="false" visibility="public"
  54191. deprecated="not deprecated">
  54192. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  54193. <exception name="IOException" type="java.io.IOException"/>
  54194. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  54195. </method>
  54196. <field name="LOG" type="org.apache.commons.logging.Log"
  54197. transient="false" volatile="false"
  54198. static="true" final="true" visibility="public"
  54199. deprecated="not deprecated">
  54200. </field>
  54201. <field name="LOCAL_MAX_MAPS" type="java.lang.String"
  54202. transient="false" volatile="false"
  54203. static="true" final="true" visibility="public"
  54204. deprecated="not deprecated">
  54205. </field>
  54206. <doc>
  54207. <![CDATA[Implements MapReduce locally, in-process, for debugging.]]>
  54208. </doc>
  54209. </class>
  54210. <!-- end class org.apache.hadoop.mapred.LocalJobRunner -->
  54211. <!-- start class org.apache.hadoop.mapred.MapFileOutputFormat -->
  54212. <class name="MapFileOutputFormat" extends="org.apache.hadoop.mapred.FileOutputFormat"
  54213. abstract="false"
  54214. static="false" final="false" visibility="public"
  54215. deprecated="not deprecated">
  54216. <constructor name="MapFileOutputFormat"
  54217. static="false" final="false" visibility="public"
  54218. deprecated="not deprecated">
  54219. </constructor>
  54220. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  54221. abstract="false" native="false" synchronized="false"
  54222. static="false" final="false" visibility="public"
  54223. deprecated="not deprecated">
  54224. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  54225. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  54226. <param name="name" type="java.lang.String"/>
  54227. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  54228. <exception name="IOException" type="java.io.IOException"/>
  54229. </method>
  54230. <method name="getReaders" return="org.apache.hadoop.io.MapFile.Reader[]"
  54231. abstract="false" native="false" synchronized="false"
  54232. static="true" final="false" visibility="public"
  54233. deprecated="not deprecated">
  54234. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  54235. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  54236. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  54237. <exception name="IOException" type="java.io.IOException"/>
  54238. <doc>
  54239. <![CDATA[Open the output generated by this format.]]>
  54240. </doc>
  54241. </method>
  54242. <method name="getEntry" return="org.apache.hadoop.io.Writable"
  54243. abstract="false" native="false" synchronized="false"
  54244. static="true" final="false" visibility="public"
  54245. deprecated="not deprecated">
  54246. <param name="readers" type="org.apache.hadoop.io.MapFile.Reader[]"/>
  54247. <param name="partitioner" type="org.apache.hadoop.mapred.Partitioner"/>
  54248. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  54249. <param name="value" type="org.apache.hadoop.io.Writable"/>
  54250. <exception name="IOException" type="java.io.IOException"/>
  54251. <doc>
  54252. <![CDATA[Get an entry from output generated by this class.]]>
  54253. </doc>
  54254. </method>
  54255. <doc>
  54256. <![CDATA[An {@link OutputFormat} that writes {@link MapFile}s.]]>
  54257. </doc>
  54258. </class>
  54259. <!-- end class org.apache.hadoop.mapred.MapFileOutputFormat -->
  54260. <!-- start interface org.apache.hadoop.mapred.Mapper -->
  54261. <interface name="Mapper" abstract="true"
  54262. static="false" final="false" visibility="public"
  54263. deprecated="not deprecated">
  54264. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  54265. <implements name="org.apache.hadoop.io.Closeable"/>
  54266. <method name="map"
  54267. abstract="false" native="false" synchronized="false"
  54268. static="false" final="false" visibility="public"
  54269. deprecated="not deprecated">
  54270. <param name="key" type="java.lang.Object"/>
  54271. <param name="value" type="java.lang.Object"/>
  54272. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  54273. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  54274. <exception name="IOException" type="java.io.IOException"/>
  54275. <doc>
  54276. <![CDATA[Maps a single input key/value pair into an intermediate key/value pair.
  54277. <p>Output pairs need not be of the same types as input pairs. A given
  54278. input pair may map to zero or many output pairs. Output pairs are
  54279. collected with calls to
  54280. {@link OutputCollector#collect(Object,Object)}.</p>
  54281. <p>Applications can use the {@link Reporter} provided to report progress
  54282. or just indicate that they are alive. In scenarios where the application
  54283. takes an insignificant amount of time to process individual key/value
  54284. pairs, this is crucial since the framework might assume that the task has
  54285. timed-out and kill that task. The other way of avoiding this is to set
  54286. <a href="{@docRoot}/../mapred-default.html#mapred.task.timeout">
  54287. mapred.task.timeout</a> to a high-enough value (or even zero for no
  54288. time-outs).</p>
  54289. @param key the input key.
  54290. @param value the input value.
  54291. @param output collects mapped keys and values.
  54292. @param reporter facility to report progress.]]>
  54293. </doc>
  54294. </method>
  54295. <doc>
  54296. <![CDATA[Maps input key/value pairs to a set of intermediate key/value pairs.
  54297. <p>Maps are the individual tasks which transform input records into a
  54298. intermediate records. The transformed intermediate records need not be of
  54299. the same type as the input records. A given input pair may map to zero or
  54300. many output pairs.</p>
  54301. <p>The Hadoop Map-Reduce framework spawns one map task for each
  54302. {@link InputSplit} generated by the {@link InputFormat} for the job.
  54303. <code>Mapper</code> implementations can access the {@link JobConf} for the
  54304. job via the {@link JobConfigurable#configure(JobConf)} and initialize
  54305. themselves. Similarly they can use the {@link Closeable#close()} method for
  54306. de-initialization.</p>
  54307. <p>The framework then calls
  54308. {@link #map(Object, Object, OutputCollector, Reporter)}
  54309. for each key/value pair in the <code>InputSplit</code> for that task.</p>
  54310. <p>All intermediate values associated with a given output key are
  54311. subsequently grouped by the framework, and passed to a {@link Reducer} to
  54312. determine the final output. Users can control the grouping by specifying
  54313. a <code>Comparator</code> via
  54314. {@link JobConf#setOutputKeyComparatorClass(Class)}.</p>
  54315. <p>The grouped <code>Mapper</code> outputs are partitioned per
  54316. <code>Reducer</code>. Users can control which keys (and hence records) go to
  54317. which <code>Reducer</code> by implementing a custom {@link Partitioner}.
  54318. <p>Users can optionally specify a <code>combiner</code>, via
  54319. {@link JobConf#setCombinerClass(Class)}, to perform local aggregation of the
  54320. intermediate outputs, which helps to cut down the amount of data transferred
  54321. from the <code>Mapper</code> to the <code>Reducer</code>.
  54322. <p>The intermediate, grouped outputs are always stored in
  54323. {@link SequenceFile}s. Applications can specify if and how the intermediate
  54324. outputs are to be compressed and which {@link CompressionCodec}s are to be
  54325. used via the <code>JobConf</code>.</p>
  54326. <p>If the job has
  54327. <a href="{@docRoot}/org/apache/hadoop/mapred/JobConf.html#ReducerNone">zero
  54328. reduces</a> then the output of the <code>Mapper</code> is directly written
  54329. to the {@link FileSystem} without grouping by keys.</p>
  54330. <p>Example:</p>
  54331. <p><blockquote><pre>
  54332. public class MyMapper&lt;K extends WritableComparable, V extends Writable&gt;
  54333. extends MapReduceBase implements Mapper&lt;K, V, K, V&gt; {
  54334. static enum MyCounters { NUM_RECORDS }
  54335. private String mapTaskId;
  54336. private String inputFile;
  54337. private int noRecords = 0;
  54338. public void configure(JobConf job) {
  54339. mapTaskId = job.get("mapred.task.id");
  54340. inputFile = job.get("map.input.file");
  54341. }
  54342. public void map(K key, V val,
  54343. OutputCollector&lt;K, V&gt; output, Reporter reporter)
  54344. throws IOException {
  54345. // Process the &lt;key, value&gt; pair (assume this takes a while)
  54346. // ...
  54347. // ...
  54348. // Let the framework know that we are alive, and kicking!
  54349. // reporter.progress();
  54350. // Process some more
  54351. // ...
  54352. // ...
  54353. // Increment the no. of &lt;key, value&gt; pairs processed
  54354. ++noRecords;
  54355. // Increment counters
  54356. reporter.incrCounter(NUM_RECORDS, 1);
  54357. // Every 100 records update application-level status
  54358. if ((noRecords%100) == 0) {
  54359. reporter.setStatus(mapTaskId + " processed " + noRecords +
  54360. " from input-file: " + inputFile);
  54361. }
  54362. // Output the result
  54363. output.collect(key, val);
  54364. }
  54365. }
  54366. </pre></blockquote></p>
  54367. <p>Applications may write a custom {@link MapRunnable} to exert greater
  54368. control on map processing e.g. multi-threaded <code>Mapper</code>s etc.</p>
  54369. @see JobConf
  54370. @see InputFormat
  54371. @see Partitioner
  54372. @see Reducer
  54373. @see MapReduceBase
  54374. @see MapRunnable
  54375. @see SequenceFile]]>
  54376. </doc>
  54377. </interface>
  54378. <!-- end interface org.apache.hadoop.mapred.Mapper -->
  54379. <!-- start class org.apache.hadoop.mapred.MapReduceBase -->
  54380. <class name="MapReduceBase" extends="java.lang.Object"
  54381. abstract="false"
  54382. static="false" final="false" visibility="public"
  54383. deprecated="not deprecated">
  54384. <implements name="org.apache.hadoop.io.Closeable"/>
  54385. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  54386. <constructor name="MapReduceBase"
  54387. static="false" final="false" visibility="public"
  54388. deprecated="not deprecated">
  54389. </constructor>
  54390. <method name="close"
  54391. abstract="false" native="false" synchronized="false"
  54392. static="false" final="false" visibility="public"
  54393. deprecated="not deprecated">
  54394. <exception name="IOException" type="java.io.IOException"/>
  54395. <doc>
  54396. <![CDATA[Default implementation that does nothing.]]>
  54397. </doc>
  54398. </method>
  54399. <method name="configure"
  54400. abstract="false" native="false" synchronized="false"
  54401. static="false" final="false" visibility="public"
  54402. deprecated="not deprecated">
  54403. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  54404. <doc>
  54405. <![CDATA[Default implementation that does nothing.]]>
  54406. </doc>
  54407. </method>
  54408. <doc>
  54409. <![CDATA[Base class for {@link Mapper} and {@link Reducer} implementations.
  54410. <p>Provides default no-op implementations for a few methods, most non-trivial
  54411. applications need to override some of them.</p>]]>
  54412. </doc>
  54413. </class>
  54414. <!-- end class org.apache.hadoop.mapred.MapReduceBase -->
  54415. <!-- start class org.apache.hadoop.mapred.MapReducePolicyProvider -->
  54416. <class name="MapReducePolicyProvider" extends="org.apache.hadoop.security.authorize.PolicyProvider"
  54417. abstract="false"
  54418. static="false" final="false" visibility="public"
  54419. deprecated="not deprecated">
  54420. <constructor name="MapReducePolicyProvider"
  54421. static="false" final="false" visibility="public"
  54422. deprecated="not deprecated">
  54423. </constructor>
  54424. <method name="getServices" return="org.apache.hadoop.security.authorize.Service[]"
  54425. abstract="false" native="false" synchronized="false"
  54426. static="false" final="false" visibility="public"
  54427. deprecated="not deprecated">
  54428. </method>
  54429. <doc>
  54430. <![CDATA[{@link PolicyProvider} for Map-Reduce protocols.]]>
  54431. </doc>
  54432. </class>
  54433. <!-- end class org.apache.hadoop.mapred.MapReducePolicyProvider -->
  54434. <!-- start interface org.apache.hadoop.mapred.MapRunnable -->
  54435. <interface name="MapRunnable" abstract="true"
  54436. static="false" final="false" visibility="public"
  54437. deprecated="not deprecated">
  54438. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  54439. <method name="run"
  54440. abstract="false" native="false" synchronized="false"
  54441. static="false" final="false" visibility="public"
  54442. deprecated="not deprecated">
  54443. <param name="input" type="org.apache.hadoop.mapred.RecordReader"/>
  54444. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  54445. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  54446. <exception name="IOException" type="java.io.IOException"/>
  54447. <doc>
  54448. <![CDATA[Start mapping input <tt>&lt;key, value&gt;</tt> pairs.
  54449. <p>Mapping of input records to output records is complete when this method
  54450. returns.</p>
  54451. @param input the {@link RecordReader} to read the input records.
  54452. @param output the {@link OutputCollector} to collect the outputrecords.
  54453. @param reporter {@link Reporter} to report progress, status-updates etc.
  54454. @throws IOException]]>
  54455. </doc>
  54456. </method>
  54457. <doc>
  54458. <![CDATA[Expert: Generic interface for {@link Mapper}s.
  54459. <p>Custom implementations of <code>MapRunnable</code> can exert greater
  54460. control on map processing e.g. multi-threaded, asynchronous mappers etc.</p>
  54461. @see Mapper]]>
  54462. </doc>
  54463. </interface>
  54464. <!-- end interface org.apache.hadoop.mapred.MapRunnable -->
  54465. <!-- start class org.apache.hadoop.mapred.MapRunner -->
  54466. <class name="MapRunner" extends="java.lang.Object"
  54467. abstract="false"
  54468. static="false" final="false" visibility="public"
  54469. deprecated="not deprecated">
  54470. <implements name="org.apache.hadoop.mapred.MapRunnable"/>
  54471. <constructor name="MapRunner"
  54472. static="false" final="false" visibility="public"
  54473. deprecated="not deprecated">
  54474. </constructor>
  54475. <method name="configure"
  54476. abstract="false" native="false" synchronized="false"
  54477. static="false" final="false" visibility="public"
  54478. deprecated="not deprecated">
  54479. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  54480. </method>
  54481. <method name="run"
  54482. abstract="false" native="false" synchronized="false"
  54483. static="false" final="false" visibility="public"
  54484. deprecated="not deprecated">
  54485. <param name="input" type="org.apache.hadoop.mapred.RecordReader"/>
  54486. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  54487. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  54488. <exception name="IOException" type="java.io.IOException"/>
  54489. </method>
  54490. <method name="getMapper" return="org.apache.hadoop.mapred.Mapper"
  54491. abstract="false" native="false" synchronized="false"
  54492. static="false" final="false" visibility="protected"
  54493. deprecated="not deprecated">
  54494. </method>
  54495. <doc>
  54496. <![CDATA[Default {@link MapRunnable} implementation.]]>
  54497. </doc>
  54498. </class>
  54499. <!-- end class org.apache.hadoop.mapred.MapRunner -->
  54500. <!-- start class org.apache.hadoop.mapred.MapTaskCompletionEventsUpdate -->
  54501. <class name="MapTaskCompletionEventsUpdate" extends="java.lang.Object"
  54502. abstract="false"
  54503. static="false" final="false" visibility="public"
  54504. deprecated="not deprecated">
  54505. <implements name="org.apache.hadoop.io.Writable"/>
  54506. <constructor name="MapTaskCompletionEventsUpdate"
  54507. static="false" final="false" visibility="public"
  54508. deprecated="not deprecated">
  54509. </constructor>
  54510. <constructor name="MapTaskCompletionEventsUpdate" type="org.apache.hadoop.mapred.TaskCompletionEvent[], boolean"
  54511. static="false" final="false" visibility="public"
  54512. deprecated="not deprecated">
  54513. </constructor>
  54514. <method name="shouldReset" return="boolean"
  54515. abstract="false" native="false" synchronized="false"
  54516. static="false" final="false" visibility="public"
  54517. deprecated="not deprecated">
  54518. </method>
  54519. <method name="getMapTaskCompletionEvents" return="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  54520. abstract="false" native="false" synchronized="false"
  54521. static="false" final="false" visibility="public"
  54522. deprecated="not deprecated">
  54523. </method>
  54524. <method name="write"
  54525. abstract="false" native="false" synchronized="false"
  54526. static="false" final="false" visibility="public"
  54527. deprecated="not deprecated">
  54528. <param name="out" type="java.io.DataOutput"/>
  54529. <exception name="IOException" type="java.io.IOException"/>
  54530. </method>
  54531. <method name="readFields"
  54532. abstract="false" native="false" synchronized="false"
  54533. static="false" final="false" visibility="public"
  54534. deprecated="not deprecated">
  54535. <param name="in" type="java.io.DataInput"/>
  54536. <exception name="IOException" type="java.io.IOException"/>
  54537. </method>
  54538. <doc>
  54539. <![CDATA[A class that represents the communication between the tasktracker and child
  54540. tasks w.r.t the map task completion events. It also indicates whether the
  54541. child task should reset its events index.]]>
  54542. </doc>
  54543. </class>
  54544. <!-- end class org.apache.hadoop.mapred.MapTaskCompletionEventsUpdate -->
  54545. <!-- start class org.apache.hadoop.mapred.MultiFileInputFormat -->
  54546. <class name="MultiFileInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat"
  54547. abstract="true"
  54548. static="false" final="false" visibility="public"
  54549. deprecated="Use {@link org.apache.hadoop.mapred.lib.CombineFileInputFormat} instead">
  54550. <constructor name="MultiFileInputFormat"
  54551. static="false" final="false" visibility="public"
  54552. deprecated="not deprecated">
  54553. </constructor>
  54554. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  54555. abstract="false" native="false" synchronized="false"
  54556. static="false" final="false" visibility="public"
  54557. deprecated="not deprecated">
  54558. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  54559. <param name="numSplits" type="int"/>
  54560. <exception name="IOException" type="java.io.IOException"/>
  54561. </method>
  54562. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  54563. abstract="true" native="false" synchronized="false"
  54564. static="false" final="false" visibility="public"
  54565. deprecated="not deprecated">
  54566. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  54567. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  54568. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  54569. <exception name="IOException" type="java.io.IOException"/>
  54570. </method>
  54571. <doc>
  54572. <![CDATA[An abstract {@link InputFormat} that returns {@link MultiFileSplit}'s
  54573. in {@link #getSplits(JobConf, int)} method. Splits are constructed from
  54574. the files under the input paths. Each split returned contains <i>nearly</i>
  54575. equal content length. <br>
  54576. Subclasses implement {@link #getRecordReader(InputSplit, JobConf, Reporter)}
  54577. to construct <code>RecordReader</code>'s for <code>MultiFileSplit</code>'s.
  54578. @see MultiFileSplit
  54579. @deprecated Use {@link org.apache.hadoop.mapred.lib.CombineFileInputFormat} instead]]>
  54580. </doc>
  54581. </class>
  54582. <!-- end class org.apache.hadoop.mapred.MultiFileInputFormat -->
  54583. <!-- start class org.apache.hadoop.mapred.MultiFileSplit -->
  54584. <class name="MultiFileSplit" extends="org.apache.hadoop.mapred.lib.CombineFileSplit"
  54585. abstract="false"
  54586. static="false" final="false" visibility="public"
  54587. deprecated="Use {@link org.apache.hadoop.mapred.lib.CombineFileSplit} instead">
  54588. <constructor name="MultiFileSplit" type="org.apache.hadoop.mapred.JobConf, org.apache.hadoop.fs.Path[], long[]"
  54589. static="false" final="false" visibility="public"
  54590. deprecated="not deprecated">
  54591. </constructor>
  54592. <method name="getLocations" return="java.lang.String[]"
  54593. abstract="false" native="false" synchronized="false"
  54594. static="false" final="false" visibility="public"
  54595. deprecated="not deprecated">
  54596. <exception name="IOException" type="java.io.IOException"/>
  54597. </method>
  54598. <method name="toString" return="java.lang.String"
  54599. abstract="false" native="false" synchronized="false"
  54600. static="false" final="false" visibility="public"
  54601. deprecated="not deprecated">
  54602. </method>
  54603. <doc>
  54604. <![CDATA[A sub-collection of input files. Unlike {@link FileSplit}, MultiFileSplit
  54605. class does not represent a split of a file, but a split of input files
  54606. into smaller sets. The atomic unit of split is a file. <br>
  54607. MultiFileSplit can be used to implement {@link RecordReader}'s, with
  54608. reading one record per file.
  54609. @see FileSplit
  54610. @see MultiFileInputFormat
  54611. @deprecated Use {@link org.apache.hadoop.mapred.lib.CombineFileSplit} instead]]>
  54612. </doc>
  54613. </class>
  54614. <!-- end class org.apache.hadoop.mapred.MultiFileSplit -->
  54615. <!-- start class org.apache.hadoop.mapred.Operation -->
  54616. <class name="Operation" extends="java.lang.Enum"
  54617. abstract="false"
  54618. static="false" final="true" visibility="public"
  54619. deprecated="not deprecated">
  54620. <method name="values" return="org.apache.hadoop.mapred.Operation[]"
  54621. abstract="false" native="false" synchronized="false"
  54622. static="true" final="false" visibility="public"
  54623. deprecated="not deprecated">
  54624. </method>
  54625. <method name="valueOf" return="org.apache.hadoop.mapred.Operation"
  54626. abstract="false" native="false" synchronized="false"
  54627. static="true" final="false" visibility="public"
  54628. deprecated="not deprecated">
  54629. <param name="name" type="java.lang.String"/>
  54630. </method>
  54631. <field name="VIEW_JOB_COUNTERS" type="org.apache.hadoop.mapred.Operation"
  54632. transient="false" volatile="false"
  54633. static="true" final="true" visibility="public"
  54634. deprecated="not deprecated">
  54635. </field>
  54636. <field name="VIEW_JOB_DETAILS" type="org.apache.hadoop.mapred.Operation"
  54637. transient="false" volatile="false"
  54638. static="true" final="true" visibility="public"
  54639. deprecated="not deprecated">
  54640. </field>
  54641. <field name="VIEW_TASK_LOGS" type="org.apache.hadoop.mapred.Operation"
  54642. transient="false" volatile="false"
  54643. static="true" final="true" visibility="public"
  54644. deprecated="not deprecated">
  54645. </field>
  54646. <field name="KILL_JOB" type="org.apache.hadoop.mapred.Operation"
  54647. transient="false" volatile="false"
  54648. static="true" final="true" visibility="public"
  54649. deprecated="not deprecated">
  54650. </field>
  54651. <field name="FAIL_TASK" type="org.apache.hadoop.mapred.Operation"
  54652. transient="false" volatile="false"
  54653. static="true" final="true" visibility="public"
  54654. deprecated="not deprecated">
  54655. </field>
  54656. <field name="KILL_TASK" type="org.apache.hadoop.mapred.Operation"
  54657. transient="false" volatile="false"
  54658. static="true" final="true" visibility="public"
  54659. deprecated="not deprecated">
  54660. </field>
  54661. <field name="SET_JOB_PRIORITY" type="org.apache.hadoop.mapred.Operation"
  54662. transient="false" volatile="false"
  54663. static="true" final="true" visibility="public"
  54664. deprecated="not deprecated">
  54665. </field>
  54666. <field name="SUBMIT_JOB" type="org.apache.hadoop.mapred.Operation"
  54667. transient="false" volatile="false"
  54668. static="true" final="true" visibility="public"
  54669. deprecated="not deprecated">
  54670. </field>
  54671. <field name="qACLNeeded" type="org.apache.hadoop.mapred.QueueManager.QueueACL"
  54672. transient="false" volatile="false"
  54673. static="false" final="false" visibility="public"
  54674. deprecated="not deprecated">
  54675. </field>
  54676. <field name="jobACLNeeded" type="org.apache.hadoop.mapreduce.JobACL"
  54677. transient="false" volatile="false"
  54678. static="false" final="false" visibility="public"
  54679. deprecated="not deprecated">
  54680. </field>
  54681. <doc>
  54682. <![CDATA[Generic operation that maps to the dependent set of ACLs that drive the
  54683. authorization of the operation.]]>
  54684. </doc>
  54685. </class>
  54686. <!-- end class org.apache.hadoop.mapred.Operation -->
  54687. <!-- start interface org.apache.hadoop.mapred.OutputCollector -->
  54688. <interface name="OutputCollector" abstract="true"
  54689. static="false" final="false" visibility="public"
  54690. deprecated="not deprecated">
  54691. <method name="collect"
  54692. abstract="false" native="false" synchronized="false"
  54693. static="false" final="false" visibility="public"
  54694. deprecated="not deprecated">
  54695. <param name="key" type="java.lang.Object"/>
  54696. <param name="value" type="java.lang.Object"/>
  54697. <exception name="IOException" type="java.io.IOException"/>
  54698. <doc>
  54699. <![CDATA[Adds a key/value pair to the output.
  54700. @param key the key to collect.
  54701. @param value to value to collect.
  54702. @throws IOException]]>
  54703. </doc>
  54704. </method>
  54705. <doc>
  54706. <![CDATA[Collects the <code>&lt;key, value&gt;</code> pairs output by {@link Mapper}s
  54707. and {@link Reducer}s.
  54708. <p><code>OutputCollector</code> is the generalization of the facility
  54709. provided by the Map-Reduce framework to collect data output by either the
  54710. <code>Mapper</code> or the <code>Reducer</code> i.e. intermediate outputs
  54711. or the output of the job.</p>]]>
  54712. </doc>
  54713. </interface>
  54714. <!-- end interface org.apache.hadoop.mapred.OutputCollector -->
  54715. <!-- start class org.apache.hadoop.mapred.OutputCommitter -->
  54716. <class name="OutputCommitter" extends="org.apache.hadoop.mapreduce.OutputCommitter"
  54717. abstract="true"
  54718. static="false" final="false" visibility="public"
  54719. deprecated="not deprecated">
  54720. <constructor name="OutputCommitter"
  54721. static="false" final="false" visibility="public"
  54722. deprecated="not deprecated">
  54723. </constructor>
  54724. <method name="setupJob"
  54725. abstract="true" native="false" synchronized="false"
  54726. static="false" final="false" visibility="public"
  54727. deprecated="not deprecated">
  54728. <param name="jobContext" type="org.apache.hadoop.mapred.JobContext"/>
  54729. <exception name="IOException" type="java.io.IOException"/>
  54730. <doc>
  54731. <![CDATA[For the framework to setup the job output during initialization
  54732. @param jobContext Context of the job whose output is being written.
  54733. @throws IOException if temporary output could not be created]]>
  54734. </doc>
  54735. </method>
  54736. <method name="cleanupJob"
  54737. abstract="false" native="false" synchronized="false"
  54738. static="false" final="false" visibility="public"
  54739. deprecated="use {@link #commitJob(JobContext)} or
  54740. {@link #abortJob(JobContext, int)} instead">
  54741. <param name="jobContext" type="org.apache.hadoop.mapred.JobContext"/>
  54742. <exception name="IOException" type="java.io.IOException"/>
  54743. <doc>
  54744. <![CDATA[For cleaning up the job's output after job completion
  54745. @deprecated use {@link #commitJob(JobContext)} or
  54746. {@link #abortJob(JobContext, int)} instead]]>
  54747. </doc>
  54748. </method>
  54749. <method name="commitJob"
  54750. abstract="false" native="false" synchronized="false"
  54751. static="false" final="false" visibility="public"
  54752. deprecated="not deprecated">
  54753. <param name="jobContext" type="org.apache.hadoop.mapred.JobContext"/>
  54754. <exception name="IOException" type="java.io.IOException"/>
  54755. <doc>
  54756. <![CDATA[For committing job's output after successful job completion. Note that this
  54757. is invoked for jobs with final run state as {@link JobStatus#SUCCEEDED}.
  54758. @param jobContext Context of the job whose output is being written.
  54759. @throws IOException]]>
  54760. </doc>
  54761. </method>
  54762. <method name="abortJob"
  54763. abstract="false" native="false" synchronized="false"
  54764. static="false" final="false" visibility="public"
  54765. deprecated="not deprecated">
  54766. <param name="jobContext" type="org.apache.hadoop.mapred.JobContext"/>
  54767. <param name="status" type="int"/>
  54768. <exception name="IOException" type="java.io.IOException"/>
  54769. <doc>
  54770. <![CDATA[For cleaning up the job's output after job failure.
  54771. @param jobContext Context of the job whose output is being written.
  54772. @param status Final run state of the job, should be
  54773. {@link JobStatus#KILLED} or {@link JobStatus#FAILED}
  54774. @throws IOException]]>
  54775. </doc>
  54776. </method>
  54777. <method name="setupTask"
  54778. abstract="true" native="false" synchronized="false"
  54779. static="false" final="false" visibility="public"
  54780. deprecated="not deprecated">
  54781. <param name="taskContext" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  54782. <exception name="IOException" type="java.io.IOException"/>
  54783. <doc>
  54784. <![CDATA[Sets up output for the task.
  54785. @param taskContext Context of the task whose output is being written.
  54786. @throws IOException]]>
  54787. </doc>
  54788. </method>
  54789. <method name="needsTaskCommit" return="boolean"
  54790. abstract="true" native="false" synchronized="false"
  54791. static="false" final="false" visibility="public"
  54792. deprecated="not deprecated">
  54793. <param name="taskContext" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  54794. <exception name="IOException" type="java.io.IOException"/>
  54795. <doc>
  54796. <![CDATA[Check whether task needs a commit
  54797. @param taskContext
  54798. @return true/false
  54799. @throws IOException]]>
  54800. </doc>
  54801. </method>
  54802. <method name="commitTask"
  54803. abstract="true" native="false" synchronized="false"
  54804. static="false" final="false" visibility="public"
  54805. deprecated="not deprecated">
  54806. <param name="taskContext" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  54807. <exception name="IOException" type="java.io.IOException"/>
  54808. <doc>
  54809. <![CDATA[To promote the task's temporary output to final output location
  54810. The task's output is moved to the job's output directory.
  54811. @param taskContext Context of the task whose output is being written.
  54812. @throws IOException if commit is not]]>
  54813. </doc>
  54814. </method>
  54815. <method name="abortTask"
  54816. abstract="true" native="false" synchronized="false"
  54817. static="false" final="false" visibility="public"
  54818. deprecated="not deprecated">
  54819. <param name="taskContext" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  54820. <exception name="IOException" type="java.io.IOException"/>
  54821. <doc>
  54822. <![CDATA[Discard the task output
  54823. @param taskContext
  54824. @throws IOException]]>
  54825. </doc>
  54826. </method>
  54827. <method name="setupJob"
  54828. abstract="false" native="false" synchronized="false"
  54829. static="false" final="true" visibility="public"
  54830. deprecated="not deprecated">
  54831. <param name="jobContext" type="org.apache.hadoop.mapreduce.JobContext"/>
  54832. <exception name="IOException" type="java.io.IOException"/>
  54833. <doc>
  54834. <![CDATA[This method implements the new interface by calling the old method. Note
  54835. that the input types are different between the new and old apis and this
  54836. is a bridge between the two.]]>
  54837. </doc>
  54838. </method>
  54839. <method name="cleanupJob"
  54840. abstract="false" native="false" synchronized="false"
  54841. static="false" final="true" visibility="public"
  54842. deprecated="not deprecated">
  54843. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  54844. <exception name="IOException" type="java.io.IOException"/>
  54845. <doc>
  54846. <![CDATA[This method implements the new interface by calling the old method. Note
  54847. that the input types are different between the new and old apis and this
  54848. is a bridge between the two.]]>
  54849. </doc>
  54850. </method>
  54851. <method name="commitJob"
  54852. abstract="false" native="false" synchronized="false"
  54853. static="false" final="true" visibility="public"
  54854. deprecated="not deprecated">
  54855. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  54856. <exception name="IOException" type="java.io.IOException"/>
  54857. <doc>
  54858. <![CDATA[This method implements the new interface by calling the old method. Note
  54859. that the input types are different between the new and old apis and this
  54860. is a bridge between the two.]]>
  54861. </doc>
  54862. </method>
  54863. <method name="abortJob"
  54864. abstract="false" native="false" synchronized="false"
  54865. static="false" final="true" visibility="public"
  54866. deprecated="not deprecated">
  54867. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  54868. <param name="runState" type="org.apache.hadoop.mapreduce.JobStatus.State"/>
  54869. <exception name="IOException" type="java.io.IOException"/>
  54870. <doc>
  54871. <![CDATA[This method implements the new interface by calling the old method. Note
  54872. that the input types are different between the new and old apis and this
  54873. is a bridge between the two.]]>
  54874. </doc>
  54875. </method>
  54876. <method name="setupTask"
  54877. abstract="false" native="false" synchronized="false"
  54878. static="false" final="true" visibility="public"
  54879. deprecated="not deprecated">
  54880. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  54881. <exception name="IOException" type="java.io.IOException"/>
  54882. <doc>
  54883. <![CDATA[This method implements the new interface by calling the old method. Note
  54884. that the input types are different between the new and old apis and this
  54885. is a bridge between the two.]]>
  54886. </doc>
  54887. </method>
  54888. <method name="needsTaskCommit" return="boolean"
  54889. abstract="false" native="false" synchronized="false"
  54890. static="false" final="true" visibility="public"
  54891. deprecated="not deprecated">
  54892. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  54893. <exception name="IOException" type="java.io.IOException"/>
  54894. <doc>
  54895. <![CDATA[This method implements the new interface by calling the old method. Note
  54896. that the input types are different between the new and old apis and this
  54897. is a bridge between the two.]]>
  54898. </doc>
  54899. </method>
  54900. <method name="commitTask"
  54901. abstract="false" native="false" synchronized="false"
  54902. static="false" final="true" visibility="public"
  54903. deprecated="not deprecated">
  54904. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  54905. <exception name="IOException" type="java.io.IOException"/>
  54906. <doc>
  54907. <![CDATA[This method implements the new interface by calling the old method. Note
  54908. that the input types are different between the new and old apis and this
  54909. is a bridge between the two.]]>
  54910. </doc>
  54911. </method>
  54912. <method name="abortTask"
  54913. abstract="false" native="false" synchronized="false"
  54914. static="false" final="true" visibility="public"
  54915. deprecated="not deprecated">
  54916. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  54917. <exception name="IOException" type="java.io.IOException"/>
  54918. <doc>
  54919. <![CDATA[This method implements the new interface by calling the old method. Note
  54920. that the input types are different between the new and old apis and this
  54921. is a bridge between the two.]]>
  54922. </doc>
  54923. </method>
  54924. <doc>
  54925. <![CDATA[<code>OutputCommitter</code> describes the commit of task output for a
  54926. Map-Reduce job.
  54927. <p>The Map-Reduce framework relies on the <code>OutputCommitter</code> of
  54928. the job to:<p>
  54929. <ol>
  54930. <li>
  54931. Setup the job during initialization. For example, create the temporary
  54932. output directory for the job during the initialization of the job.
  54933. </li>
  54934. <li>
  54935. Cleanup the job after the job completion. For example, remove the
  54936. temporary output directory after the job completion.
  54937. </li>
  54938. <li>
  54939. Setup the task temporary output.
  54940. </li>
  54941. <li>
  54942. Check whether a task needs a commit. This is to avoid the commit
  54943. procedure if a task does not need commit.
  54944. </li>
  54945. <li>
  54946. Commit of the task output.
  54947. </li>
  54948. <li>
  54949. Discard the task commit.
  54950. </li>
  54951. </ol>
  54952. @see FileOutputCommitter
  54953. @see JobContext
  54954. @see TaskAttemptContext]]>
  54955. </doc>
  54956. </class>
  54957. <!-- end class org.apache.hadoop.mapred.OutputCommitter -->
  54958. <!-- start interface org.apache.hadoop.mapred.OutputFormat -->
  54959. <interface name="OutputFormat" abstract="true"
  54960. static="false" final="false" visibility="public"
  54961. deprecated="not deprecated">
  54962. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  54963. abstract="false" native="false" synchronized="false"
  54964. static="false" final="false" visibility="public"
  54965. deprecated="not deprecated">
  54966. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  54967. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  54968. <param name="name" type="java.lang.String"/>
  54969. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  54970. <exception name="IOException" type="java.io.IOException"/>
  54971. <doc>
  54972. <![CDATA[Get the {@link RecordWriter} for the given job.
  54973. @param ignored
  54974. @param job configuration for the job whose output is being written.
  54975. @param name the unique name for this part of the output.
  54976. @param progress mechanism for reporting progress while writing to file.
  54977. @return a {@link RecordWriter} to write the output for the job.
  54978. @throws IOException]]>
  54979. </doc>
  54980. </method>
  54981. <method name="checkOutputSpecs"
  54982. abstract="false" native="false" synchronized="false"
  54983. static="false" final="false" visibility="public"
  54984. deprecated="not deprecated">
  54985. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  54986. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  54987. <exception name="IOException" type="java.io.IOException"/>
  54988. <doc>
  54989. <![CDATA[Check for validity of the output-specification for the job.
  54990. <p>This is to validate the output specification for the job when it is
  54991. a job is submitted. Typically checks that it does not already exist,
  54992. throwing an exception when it already exists, so that output is not
  54993. overwritten.</p>
  54994. @param ignored
  54995. @param job job configuration.
  54996. @throws IOException when output should not be attempted]]>
  54997. </doc>
  54998. </method>
  54999. <doc>
  55000. <![CDATA[<code>OutputFormat</code> describes the output-specification for a
  55001. Map-Reduce job.
  55002. <p>The Map-Reduce framework relies on the <code>OutputFormat</code> of the
  55003. job to:<p>
  55004. <ol>
  55005. <li>
  55006. Validate the output-specification of the job. For e.g. check that the
  55007. output directory doesn't already exist.
  55008. <li>
  55009. Provide the {@link RecordWriter} implementation to be used to write out
  55010. the output files of the job. Output files are stored in a
  55011. {@link FileSystem}.
  55012. </li>
  55013. </ol>
  55014. @see RecordWriter
  55015. @see JobConf]]>
  55016. </doc>
  55017. </interface>
  55018. <!-- end interface org.apache.hadoop.mapred.OutputFormat -->
  55019. <!-- start class org.apache.hadoop.mapred.OutputLogFilter -->
  55020. <class name="OutputLogFilter" extends="java.lang.Object"
  55021. abstract="false"
  55022. static="false" final="false" visibility="public"
  55023. deprecated="Use
  55024. {@link org.apache.hadoop.mapred.Utils.OutputFileUtils.OutputLogFilter}
  55025. instead.">
  55026. <implements name="org.apache.hadoop.fs.PathFilter"/>
  55027. <constructor name="OutputLogFilter"
  55028. static="false" final="false" visibility="public"
  55029. deprecated="not deprecated">
  55030. </constructor>
  55031. <method name="accept" return="boolean"
  55032. abstract="false" native="false" synchronized="false"
  55033. static="false" final="false" visibility="public"
  55034. deprecated="not deprecated">
  55035. <param name="path" type="org.apache.hadoop.fs.Path"/>
  55036. </method>
  55037. <doc>
  55038. <![CDATA[This class filters log files from directory given
  55039. It doesnt accept paths having _logs.
  55040. This can be used to list paths of output directory as follows:
  55041. Path[] fileList = FileUtil.stat2Paths(fs.listStatus(outDir,
  55042. new OutputLogFilter()));
  55043. @deprecated Use
  55044. {@link org.apache.hadoop.mapred.Utils.OutputFileUtils.OutputLogFilter}
  55045. instead.]]>
  55046. </doc>
  55047. </class>
  55048. <!-- end class org.apache.hadoop.mapred.OutputLogFilter -->
  55049. <!-- start interface org.apache.hadoop.mapred.Partitioner -->
  55050. <interface name="Partitioner" abstract="true"
  55051. static="false" final="false" visibility="public"
  55052. deprecated="not deprecated">
  55053. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  55054. <method name="getPartition" return="int"
  55055. abstract="false" native="false" synchronized="false"
  55056. static="false" final="false" visibility="public"
  55057. deprecated="not deprecated">
  55058. <param name="key" type="java.lang.Object"/>
  55059. <param name="value" type="java.lang.Object"/>
  55060. <param name="numPartitions" type="int"/>
  55061. <doc>
  55062. <![CDATA[Get the paritition number for a given key (hence record) given the total
  55063. number of partitions i.e. number of reduce-tasks for the job.
  55064. <p>Typically a hash function on a all or a subset of the key.</p>
  55065. @param key the key to be paritioned.
  55066. @param value the entry value.
  55067. @param numPartitions the total number of partitions.
  55068. @return the partition number for the <code>key</code>.]]>
  55069. </doc>
  55070. </method>
  55071. <doc>
  55072. <![CDATA[Partitions the key space.
  55073. <p><code>Partitioner</code> controls the partitioning of the keys of the
  55074. intermediate map-outputs. The key (or a subset of the key) is used to derive
  55075. the partition, typically by a hash function. The total number of partitions
  55076. is the same as the number of reduce tasks for the job. Hence this controls
  55077. which of the <code>m</code> reduce tasks the intermediate key (and hence the
  55078. record) is sent for reduction.</p>
  55079. @see Reducer]]>
  55080. </doc>
  55081. </interface>
  55082. <!-- end interface org.apache.hadoop.mapred.Partitioner -->
  55083. <!-- start class org.apache.hadoop.mapred.QueueAclsInfo -->
  55084. <class name="QueueAclsInfo" extends="java.lang.Object"
  55085. abstract="false"
  55086. static="false" final="false" visibility="public"
  55087. deprecated="not deprecated">
  55088. <implements name="org.apache.hadoop.io.Writable"/>
  55089. <constructor name="QueueAclsInfo"
  55090. static="false" final="false" visibility="public"
  55091. deprecated="not deprecated">
  55092. <doc>
  55093. <![CDATA[Default constructor for QueueAclsInfo.]]>
  55094. </doc>
  55095. </constructor>
  55096. <constructor name="QueueAclsInfo" type="java.lang.String, java.lang.String[]"
  55097. static="false" final="false" visibility="public"
  55098. deprecated="not deprecated">
  55099. <doc>
  55100. <![CDATA[Construct a new QueueAclsInfo object using the queue name and the
  55101. queue operations array
  55102. @param queueName Name of the job queue
  55103. @param operations queue operations]]>
  55104. </doc>
  55105. </constructor>
  55106. <method name="getQueueName" return="java.lang.String"
  55107. abstract="false" native="false" synchronized="false"
  55108. static="false" final="false" visibility="public"
  55109. deprecated="not deprecated">
  55110. </method>
  55111. <method name="setQueueName"
  55112. abstract="false" native="false" synchronized="false"
  55113. static="false" final="false" visibility="protected"
  55114. deprecated="not deprecated">
  55115. <param name="queueName" type="java.lang.String"/>
  55116. </method>
  55117. <method name="getOperations" return="java.lang.String[]"
  55118. abstract="false" native="false" synchronized="false"
  55119. static="false" final="false" visibility="public"
  55120. deprecated="not deprecated">
  55121. </method>
  55122. <method name="readFields"
  55123. abstract="false" native="false" synchronized="false"
  55124. static="false" final="false" visibility="public"
  55125. deprecated="not deprecated">
  55126. <param name="in" type="java.io.DataInput"/>
  55127. <exception name="IOException" type="java.io.IOException"/>
  55128. </method>
  55129. <method name="write"
  55130. abstract="false" native="false" synchronized="false"
  55131. static="false" final="false" visibility="public"
  55132. deprecated="not deprecated">
  55133. <param name="out" type="java.io.DataOutput"/>
  55134. <exception name="IOException" type="java.io.IOException"/>
  55135. </method>
  55136. <doc>
  55137. <![CDATA[Class to encapsulate Queue ACLs for a particular
  55138. user.]]>
  55139. </doc>
  55140. </class>
  55141. <!-- end class org.apache.hadoop.mapred.QueueAclsInfo -->
  55142. <!-- start class org.apache.hadoop.mapred.RawHistoryFileServlet -->
  55143. <class name="RawHistoryFileServlet" extends="javax.servlet.http.HttpServlet"
  55144. abstract="false"
  55145. static="false" final="false" visibility="public"
  55146. deprecated="not deprecated">
  55147. <constructor name="RawHistoryFileServlet"
  55148. static="false" final="false" visibility="public"
  55149. deprecated="not deprecated">
  55150. </constructor>
  55151. <method name="init"
  55152. abstract="false" native="false" synchronized="false"
  55153. static="false" final="false" visibility="public"
  55154. deprecated="not deprecated">
  55155. <param name="servletConfig" type="javax.servlet.ServletConfig"/>
  55156. <exception name="ServletException" type="javax.servlet.ServletException"/>
  55157. </method>
  55158. <method name="doGet"
  55159. abstract="false" native="false" synchronized="false"
  55160. static="false" final="false" visibility="protected"
  55161. deprecated="not deprecated">
  55162. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  55163. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  55164. <exception name="ServletException" type="javax.servlet.ServletException"/>
  55165. <exception name="IOException" type="java.io.IOException"/>
  55166. </method>
  55167. </class>
  55168. <!-- end class org.apache.hadoop.mapred.RawHistoryFileServlet -->
  55169. <!-- start interface org.apache.hadoop.mapred.RawKeyValueIterator -->
  55170. <interface name="RawKeyValueIterator" abstract="true"
  55171. static="false" final="false" visibility="public"
  55172. deprecated="not deprecated">
  55173. <method name="getKey" return="org.apache.hadoop.io.DataInputBuffer"
  55174. abstract="false" native="false" synchronized="false"
  55175. static="false" final="false" visibility="public"
  55176. deprecated="not deprecated">
  55177. <exception name="IOException" type="java.io.IOException"/>
  55178. <doc>
  55179. <![CDATA[Gets the current raw key.
  55180. @return Gets the current raw key as a DataInputBuffer
  55181. @throws IOException]]>
  55182. </doc>
  55183. </method>
  55184. <method name="getValue" return="org.apache.hadoop.io.DataInputBuffer"
  55185. abstract="false" native="false" synchronized="false"
  55186. static="false" final="false" visibility="public"
  55187. deprecated="not deprecated">
  55188. <exception name="IOException" type="java.io.IOException"/>
  55189. <doc>
  55190. <![CDATA[Gets the current raw value.
  55191. @return Gets the current raw value as a DataInputBuffer
  55192. @throws IOException]]>
  55193. </doc>
  55194. </method>
  55195. <method name="next" return="boolean"
  55196. abstract="false" native="false" synchronized="false"
  55197. static="false" final="false" visibility="public"
  55198. deprecated="not deprecated">
  55199. <exception name="IOException" type="java.io.IOException"/>
  55200. <doc>
  55201. <![CDATA[Sets up the current key and value (for getKey and getValue).
  55202. @return <code>true</code> if there exists a key/value,
  55203. <code>false</code> otherwise.
  55204. @throws IOException]]>
  55205. </doc>
  55206. </method>
  55207. <method name="close"
  55208. abstract="false" native="false" synchronized="false"
  55209. static="false" final="false" visibility="public"
  55210. deprecated="not deprecated">
  55211. <exception name="IOException" type="java.io.IOException"/>
  55212. <doc>
  55213. <![CDATA[Closes the iterator so that the underlying streams can be closed.
  55214. @throws IOException]]>
  55215. </doc>
  55216. </method>
  55217. <method name="getProgress" return="org.apache.hadoop.util.Progress"
  55218. abstract="false" native="false" synchronized="false"
  55219. static="false" final="false" visibility="public"
  55220. deprecated="not deprecated">
  55221. <doc>
  55222. <![CDATA[Gets the Progress object; this has a float (0.0 - 1.0)
  55223. indicating the bytes processed by the iterator so far]]>
  55224. </doc>
  55225. </method>
  55226. <doc>
  55227. <![CDATA[<code>RawKeyValueIterator</code> is an iterator used to iterate over
  55228. the raw keys and values during sort/merge of intermediate data.]]>
  55229. </doc>
  55230. </interface>
  55231. <!-- end interface org.apache.hadoop.mapred.RawKeyValueIterator -->
  55232. <!-- start interface org.apache.hadoop.mapred.RecordReader -->
  55233. <interface name="RecordReader" abstract="true"
  55234. static="false" final="false" visibility="public"
  55235. deprecated="not deprecated">
  55236. <method name="next" return="boolean"
  55237. abstract="false" native="false" synchronized="false"
  55238. static="false" final="false" visibility="public"
  55239. deprecated="not deprecated">
  55240. <param name="key" type="java.lang.Object"/>
  55241. <param name="value" type="java.lang.Object"/>
  55242. <exception name="IOException" type="java.io.IOException"/>
  55243. <doc>
  55244. <![CDATA[Reads the next key/value pair from the input for processing.
  55245. @param key the key to read data into
  55246. @param value the value to read data into
  55247. @return true iff a key/value was read, false if at EOF]]>
  55248. </doc>
  55249. </method>
  55250. <method name="createKey" return="java.lang.Object"
  55251. abstract="false" native="false" synchronized="false"
  55252. static="false" final="false" visibility="public"
  55253. deprecated="not deprecated">
  55254. <doc>
  55255. <![CDATA[Create an object of the appropriate type to be used as a key.
  55256. @return a new key object.]]>
  55257. </doc>
  55258. </method>
  55259. <method name="createValue" return="java.lang.Object"
  55260. abstract="false" native="false" synchronized="false"
  55261. static="false" final="false" visibility="public"
  55262. deprecated="not deprecated">
  55263. <doc>
  55264. <![CDATA[Create an object of the appropriate type to be used as a value.
  55265. @return a new value object.]]>
  55266. </doc>
  55267. </method>
  55268. <method name="getPos" return="long"
  55269. abstract="false" native="false" synchronized="false"
  55270. static="false" final="false" visibility="public"
  55271. deprecated="not deprecated">
  55272. <exception name="IOException" type="java.io.IOException"/>
  55273. <doc>
  55274. <![CDATA[Returns the current position in the input.
  55275. @return the current position in the input.
  55276. @throws IOException]]>
  55277. </doc>
  55278. </method>
  55279. <method name="close"
  55280. abstract="false" native="false" synchronized="false"
  55281. static="false" final="false" visibility="public"
  55282. deprecated="not deprecated">
  55283. <exception name="IOException" type="java.io.IOException"/>
  55284. <doc>
  55285. <![CDATA[Close this {@link InputSplit} to future operations.
  55286. @throws IOException]]>
  55287. </doc>
  55288. </method>
  55289. <method name="getProgress" return="float"
  55290. abstract="false" native="false" synchronized="false"
  55291. static="false" final="false" visibility="public"
  55292. deprecated="not deprecated">
  55293. <exception name="IOException" type="java.io.IOException"/>
  55294. <doc>
  55295. <![CDATA[How much of the input has the {@link RecordReader} consumed i.e.
  55296. has been processed by?
  55297. @return progress from <code>0.0</code> to <code>1.0</code>.
  55298. @throws IOException]]>
  55299. </doc>
  55300. </method>
  55301. <doc>
  55302. <![CDATA[<code>RecordReader</code> reads &lt;key, value&gt; pairs from an
  55303. {@link InputSplit}.
  55304. <p><code>RecordReader</code>, typically, converts the byte-oriented view of
  55305. the input, provided by the <code>InputSplit</code>, and presents a
  55306. record-oriented view for the {@link Mapper} & {@link Reducer} tasks for
  55307. processing. It thus assumes the responsibility of processing record
  55308. boundaries and presenting the tasks with keys and values.</p>
  55309. @see InputSplit
  55310. @see InputFormat]]>
  55311. </doc>
  55312. </interface>
  55313. <!-- end interface org.apache.hadoop.mapred.RecordReader -->
  55314. <!-- start interface org.apache.hadoop.mapred.RecordWriter -->
  55315. <interface name="RecordWriter" abstract="true"
  55316. static="false" final="false" visibility="public"
  55317. deprecated="not deprecated">
  55318. <method name="write"
  55319. abstract="false" native="false" synchronized="false"
  55320. static="false" final="false" visibility="public"
  55321. deprecated="not deprecated">
  55322. <param name="key" type="java.lang.Object"/>
  55323. <param name="value" type="java.lang.Object"/>
  55324. <exception name="IOException" type="java.io.IOException"/>
  55325. <doc>
  55326. <![CDATA[Writes a key/value pair.
  55327. @param key the key to write.
  55328. @param value the value to write.
  55329. @throws IOException]]>
  55330. </doc>
  55331. </method>
  55332. <method name="close"
  55333. abstract="false" native="false" synchronized="false"
  55334. static="false" final="false" visibility="public"
  55335. deprecated="not deprecated">
  55336. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  55337. <exception name="IOException" type="java.io.IOException"/>
  55338. <doc>
  55339. <![CDATA[Close this <code>RecordWriter</code> to future operations.
  55340. @param reporter facility to report progress.
  55341. @throws IOException]]>
  55342. </doc>
  55343. </method>
  55344. <doc>
  55345. <![CDATA[<code>RecordWriter</code> writes the output &lt;key, value&gt; pairs
  55346. to an output file.
  55347. <p><code>RecordWriter</code> implementations write the job outputs to the
  55348. {@link FileSystem}.
  55349. @see OutputFormat]]>
  55350. </doc>
  55351. </interface>
  55352. <!-- end interface org.apache.hadoop.mapred.RecordWriter -->
  55353. <!-- start interface org.apache.hadoop.mapred.Reducer -->
  55354. <interface name="Reducer" abstract="true"
  55355. static="false" final="false" visibility="public"
  55356. deprecated="not deprecated">
  55357. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  55358. <implements name="org.apache.hadoop.io.Closeable"/>
  55359. <method name="reduce"
  55360. abstract="false" native="false" synchronized="false"
  55361. static="false" final="false" visibility="public"
  55362. deprecated="not deprecated">
  55363. <param name="key" type="java.lang.Object"/>
  55364. <param name="values" type="java.util.Iterator"/>
  55365. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  55366. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  55367. <exception name="IOException" type="java.io.IOException"/>
  55368. <doc>
  55369. <![CDATA[<i>Reduces</i> values for a given key.
  55370. <p>The framework calls this method for each
  55371. <code>&lt;key, (list of values)></code> pair in the grouped inputs.
  55372. Output values must be of the same type as input values. Input keys must
  55373. not be altered. The framework will <b>reuse</b> the key and value objects
  55374. that are passed into the reduce, therefore the application should clone
  55375. the objects they want to keep a copy of. In many cases, all values are
  55376. combined into zero or one value.
  55377. </p>
  55378. <p>Output pairs are collected with calls to
  55379. {@link OutputCollector#collect(Object,Object)}.</p>
  55380. <p>Applications can use the {@link Reporter} provided to report progress
  55381. or just indicate that they are alive. In scenarios where the application
  55382. takes an insignificant amount of time to process individual key/value
  55383. pairs, this is crucial since the framework might assume that the task has
  55384. timed-out and kill that task. The other way of avoiding this is to set
  55385. <a href="{@docRoot}/../mapred-default.html#mapred.task.timeout">
  55386. mapred.task.timeout</a> to a high-enough value (or even zero for no
  55387. time-outs).</p>
  55388. @param key the key.
  55389. @param values the list of values to reduce.
  55390. @param output to collect keys and combined values.
  55391. @param reporter facility to report progress.]]>
  55392. </doc>
  55393. </method>
  55394. <doc>
  55395. <![CDATA[Reduces a set of intermediate values which share a key to a smaller set of
  55396. values.
  55397. <p>The number of <code>Reducer</code>s for the job is set by the user via
  55398. {@link JobConf#setNumReduceTasks(int)}. <code>Reducer</code> implementations
  55399. can access the {@link JobConf} for the job via the
  55400. {@link JobConfigurable#configure(JobConf)} method and initialize themselves.
  55401. Similarly they can use the {@link Closeable#close()} method for
  55402. de-initialization.</p>
  55403. <p><code>Reducer</code> has 3 primary phases:</p>
  55404. <ol>
  55405. <li>
  55406. <h4 id="Shuffle">Shuffle</h4>
  55407. <p><code>Reducer</code> is input the grouped output of a {@link Mapper}.
  55408. In the phase the framework, for each <code>Reducer</code>, fetches the
  55409. relevant partition of the output of all the <code>Mapper</code>s, via HTTP.
  55410. </p>
  55411. </li>
  55412. <li>
  55413. <h4 id="Sort">Sort</h4>
  55414. <p>The framework groups <code>Reducer</code> inputs by <code>key</code>s
  55415. (since different <code>Mapper</code>s may have output the same key) in this
  55416. stage.</p>
  55417. <p>The shuffle and sort phases occur simultaneously i.e. while outputs are
  55418. being fetched they are merged.</p>
  55419. <h5 id="SecondarySort">SecondarySort</h5>
  55420. <p>If equivalence rules for keys while grouping the intermediates are
  55421. different from those for grouping keys before reduction, then one may
  55422. specify a <code>Comparator</code> via
  55423. {@link JobConf#setOutputValueGroupingComparator(Class)}.Since
  55424. {@link JobConf#setOutputKeyComparatorClass(Class)} can be used to
  55425. control how intermediate keys are grouped, these can be used in conjunction
  55426. to simulate <i>secondary sort on values</i>.</p>
  55427. For example, say that you want to find duplicate web pages and tag them
  55428. all with the url of the "best" known example. You would set up the job
  55429. like:
  55430. <ul>
  55431. <li>Map Input Key: url</li>
  55432. <li>Map Input Value: document</li>
  55433. <li>Map Output Key: document checksum, url pagerank</li>
  55434. <li>Map Output Value: url</li>
  55435. <li>Partitioner: by checksum</li>
  55436. <li>OutputKeyComparator: by checksum and then decreasing pagerank</li>
  55437. <li>OutputValueGroupingComparator: by checksum</li>
  55438. </ul>
  55439. </li>
  55440. <li>
  55441. <h4 id="Reduce">Reduce</h4>
  55442. <p>In this phase the
  55443. {@link #reduce(Object, Iterator, OutputCollector, Reporter)}
  55444. method is called for each <code>&lt;key, (list of values)></code> pair in
  55445. the grouped inputs.</p>
  55446. <p>The output of the reduce task is typically written to the
  55447. {@link FileSystem} via
  55448. {@link OutputCollector#collect(Object, Object)}.</p>
  55449. </li>
  55450. </ol>
  55451. <p>The output of the <code>Reducer</code> is <b>not re-sorted</b>.</p>
  55452. <p>Example:</p>
  55453. <p><blockquote><pre>
  55454. public class MyReducer&lt;K extends WritableComparable, V extends Writable&gt;
  55455. extends MapReduceBase implements Reducer&lt;K, V, K, V&gt; {
  55456. static enum MyCounters { NUM_RECORDS }
  55457. private String reduceTaskId;
  55458. private int noKeys = 0;
  55459. public void configure(JobConf job) {
  55460. reduceTaskId = job.get("mapred.task.id");
  55461. }
  55462. public void reduce(K key, Iterator&lt;V&gt; values,
  55463. OutputCollector&lt;K, V&gt; output,
  55464. Reporter reporter)
  55465. throws IOException {
  55466. // Process
  55467. int noValues = 0;
  55468. while (values.hasNext()) {
  55469. V value = values.next();
  55470. // Increment the no. of values for this key
  55471. ++noValues;
  55472. // Process the &lt;key, value&gt; pair (assume this takes a while)
  55473. // ...
  55474. // ...
  55475. // Let the framework know that we are alive, and kicking!
  55476. if ((noValues%10) == 0) {
  55477. reporter.progress();
  55478. }
  55479. // Process some more
  55480. // ...
  55481. // ...
  55482. // Output the &lt;key, value&gt;
  55483. output.collect(key, value);
  55484. }
  55485. // Increment the no. of &lt;key, list of values&gt; pairs processed
  55486. ++noKeys;
  55487. // Increment counters
  55488. reporter.incrCounter(NUM_RECORDS, 1);
  55489. // Every 100 keys update application-level status
  55490. if ((noKeys%100) == 0) {
  55491. reporter.setStatus(reduceTaskId + " processed " + noKeys);
  55492. }
  55493. }
  55494. }
  55495. </pre></blockquote></p>
  55496. @see Mapper
  55497. @see Partitioner
  55498. @see Reporter
  55499. @see MapReduceBase]]>
  55500. </doc>
  55501. </interface>
  55502. <!-- end interface org.apache.hadoop.mapred.Reducer -->
  55503. <!-- start interface org.apache.hadoop.mapred.Reporter -->
  55504. <interface name="Reporter" abstract="true"
  55505. static="false" final="false" visibility="public"
  55506. deprecated="not deprecated">
  55507. <implements name="org.apache.hadoop.util.Progressable"/>
  55508. <method name="setStatus"
  55509. abstract="false" native="false" synchronized="false"
  55510. static="false" final="false" visibility="public"
  55511. deprecated="not deprecated">
  55512. <param name="status" type="java.lang.String"/>
  55513. <doc>
  55514. <![CDATA[Set the status description for the task.
  55515. @param status brief description of the current status.]]>
  55516. </doc>
  55517. </method>
  55518. <method name="getCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  55519. abstract="false" native="false" synchronized="false"
  55520. static="false" final="false" visibility="public"
  55521. deprecated="not deprecated">
  55522. <param name="name" type="java.lang.Enum"/>
  55523. <doc>
  55524. <![CDATA[Get the {@link Counter} of the given group with the given name.
  55525. @param name counter name
  55526. @return the <code>Counter</code> of the given group/name.]]>
  55527. </doc>
  55528. </method>
  55529. <method name="getCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  55530. abstract="false" native="false" synchronized="false"
  55531. static="false" final="false" visibility="public"
  55532. deprecated="not deprecated">
  55533. <param name="group" type="java.lang.String"/>
  55534. <param name="name" type="java.lang.String"/>
  55535. <doc>
  55536. <![CDATA[Get the {@link Counter} of the given group with the given name.
  55537. @param group counter group
  55538. @param name counter name
  55539. @return the <code>Counter</code> of the given group/name.]]>
  55540. </doc>
  55541. </method>
  55542. <method name="incrCounter"
  55543. abstract="false" native="false" synchronized="false"
  55544. static="false" final="false" visibility="public"
  55545. deprecated="not deprecated">
  55546. <param name="key" type="java.lang.Enum"/>
  55547. <param name="amount" type="long"/>
  55548. <doc>
  55549. <![CDATA[Increments the counter identified by the key, which can be of
  55550. any {@link Enum} type, by the specified amount.
  55551. @param key key to identify the counter to be incremented. The key can be
  55552. be any <code>Enum</code>.
  55553. @param amount A non-negative amount by which the counter is to
  55554. be incremented.]]>
  55555. </doc>
  55556. </method>
  55557. <method name="incrCounter"
  55558. abstract="false" native="false" synchronized="false"
  55559. static="false" final="false" visibility="public"
  55560. deprecated="not deprecated">
  55561. <param name="group" type="java.lang.String"/>
  55562. <param name="counter" type="java.lang.String"/>
  55563. <param name="amount" type="long"/>
  55564. <doc>
  55565. <![CDATA[Increments the counter identified by the group and counter name
  55566. by the specified amount.
  55567. @param group name to identify the group of the counter to be incremented.
  55568. @param counter name to identify the counter within the group.
  55569. @param amount A non-negative amount by which the counter is to
  55570. be incremented.]]>
  55571. </doc>
  55572. </method>
  55573. <method name="getInputSplit" return="org.apache.hadoop.mapred.InputSplit"
  55574. abstract="false" native="false" synchronized="false"
  55575. static="false" final="false" visibility="public"
  55576. deprecated="not deprecated">
  55577. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  55578. <doc>
  55579. <![CDATA[Get the {@link InputSplit} object for a map.
  55580. @return the <code>InputSplit</code> that the map is reading from.
  55581. @throws UnsupportedOperationException if called outside a mapper]]>
  55582. </doc>
  55583. </method>
  55584. <method name="getProgress" return="float"
  55585. abstract="false" native="false" synchronized="false"
  55586. static="false" final="false" visibility="public"
  55587. deprecated="not deprecated">
  55588. <doc>
  55589. <![CDATA[Get the progress of the task. Progress is represented as a number between
  55590. 0 and 1 (inclusive).]]>
  55591. </doc>
  55592. </method>
  55593. <field name="NULL" type="org.apache.hadoop.mapred.Reporter"
  55594. transient="false" volatile="false"
  55595. static="true" final="true" visibility="public"
  55596. deprecated="not deprecated">
  55597. <doc>
  55598. <![CDATA[A constant of Reporter type that does nothing.]]>
  55599. </doc>
  55600. </field>
  55601. <doc>
  55602. <![CDATA[A facility for Map-Reduce applications to report progress and update
  55603. counters, status information etc.
  55604. <p>{@link Mapper} and {@link Reducer} can use the <code>Reporter</code>
  55605. provided to report progress or just indicate that they are alive. In
  55606. scenarios where the application takes an insignificant amount of time to
  55607. process individual key/value pairs, this is crucial since the framework
  55608. might assume that the task has timed-out and kill that task.
  55609. <p>Applications can also update {@link Counters} via the provided
  55610. <code>Reporter</code> .</p>
  55611. @see Progressable
  55612. @see Counters]]>
  55613. </doc>
  55614. </interface>
  55615. <!-- end interface org.apache.hadoop.mapred.Reporter -->
  55616. <!-- start interface org.apache.hadoop.mapred.RunningJob -->
  55617. <interface name="RunningJob" abstract="true"
  55618. static="false" final="false" visibility="public"
  55619. deprecated="not deprecated">
  55620. <method name="getID" return="org.apache.hadoop.mapred.JobID"
  55621. abstract="false" native="false" synchronized="false"
  55622. static="false" final="false" visibility="public"
  55623. deprecated="not deprecated">
  55624. <doc>
  55625. <![CDATA[Get the job identifier.
  55626. @return the job identifier.]]>
  55627. </doc>
  55628. </method>
  55629. <method name="getJobID" return="java.lang.String"
  55630. abstract="false" native="false" synchronized="false"
  55631. static="false" final="false" visibility="public"
  55632. deprecated="This method is deprecated and will be removed. Applications should
  55633. rather use {@link #getID()}.">
  55634. <doc>
  55635. <![CDATA[@deprecated This method is deprecated and will be removed. Applications should
  55636. rather use {@link #getID()}.]]>
  55637. </doc>
  55638. </method>
  55639. <method name="getJobName" return="java.lang.String"
  55640. abstract="false" native="false" synchronized="false"
  55641. static="false" final="false" visibility="public"
  55642. deprecated="not deprecated">
  55643. <doc>
  55644. <![CDATA[Get the name of the job.
  55645. @return the name of the job.]]>
  55646. </doc>
  55647. </method>
  55648. <method name="getJobFile" return="java.lang.String"
  55649. abstract="false" native="false" synchronized="false"
  55650. static="false" final="false" visibility="public"
  55651. deprecated="not deprecated">
  55652. <doc>
  55653. <![CDATA[Get the path of the submitted job configuration.
  55654. @return the path of the submitted job configuration.]]>
  55655. </doc>
  55656. </method>
  55657. <method name="getTrackingURL" return="java.lang.String"
  55658. abstract="false" native="false" synchronized="false"
  55659. static="false" final="false" visibility="public"
  55660. deprecated="not deprecated">
  55661. <doc>
  55662. <![CDATA[Get the URL where some job progress information will be displayed.
  55663. @return the URL where some job progress information will be displayed.]]>
  55664. </doc>
  55665. </method>
  55666. <method name="mapProgress" return="float"
  55667. abstract="false" native="false" synchronized="false"
  55668. static="false" final="false" visibility="public"
  55669. deprecated="not deprecated">
  55670. <exception name="IOException" type="java.io.IOException"/>
  55671. <doc>
  55672. <![CDATA[Get the <i>progress</i> of the job's map-tasks, as a float between 0.0
  55673. and 1.0. When all map tasks have completed, the function returns 1.0.
  55674. @return the progress of the job's map-tasks.
  55675. @throws IOException]]>
  55676. </doc>
  55677. </method>
  55678. <method name="reduceProgress" return="float"
  55679. abstract="false" native="false" synchronized="false"
  55680. static="false" final="false" visibility="public"
  55681. deprecated="not deprecated">
  55682. <exception name="IOException" type="java.io.IOException"/>
  55683. <doc>
  55684. <![CDATA[Get the <i>progress</i> of the job's reduce-tasks, as a float between 0.0
  55685. and 1.0. When all reduce tasks have completed, the function returns 1.0.
  55686. @return the progress of the job's reduce-tasks.
  55687. @throws IOException]]>
  55688. </doc>
  55689. </method>
  55690. <method name="cleanupProgress" return="float"
  55691. abstract="false" native="false" synchronized="false"
  55692. static="false" final="false" visibility="public"
  55693. deprecated="not deprecated">
  55694. <exception name="IOException" type="java.io.IOException"/>
  55695. <doc>
  55696. <![CDATA[Get the <i>progress</i> of the job's cleanup-tasks, as a float between 0.0
  55697. and 1.0. When all cleanup tasks have completed, the function returns 1.0.
  55698. @return the progress of the job's cleanup-tasks.
  55699. @throws IOException]]>
  55700. </doc>
  55701. </method>
  55702. <method name="setupProgress" return="float"
  55703. abstract="false" native="false" synchronized="false"
  55704. static="false" final="false" visibility="public"
  55705. deprecated="not deprecated">
  55706. <exception name="IOException" type="java.io.IOException"/>
  55707. <doc>
  55708. <![CDATA[Get the <i>progress</i> of the job's setup-tasks, as a float between 0.0
  55709. and 1.0. When all setup tasks have completed, the function returns 1.0.
  55710. @return the progress of the job's setup-tasks.
  55711. @throws IOException]]>
  55712. </doc>
  55713. </method>
  55714. <method name="isComplete" return="boolean"
  55715. abstract="false" native="false" synchronized="false"
  55716. static="false" final="false" visibility="public"
  55717. deprecated="not deprecated">
  55718. <exception name="IOException" type="java.io.IOException"/>
  55719. <doc>
  55720. <![CDATA[Check if the job is finished or not.
  55721. This is a non-blocking call.
  55722. @return <code>true</code> if the job is complete, else <code>false</code>.
  55723. @throws IOException]]>
  55724. </doc>
  55725. </method>
  55726. <method name="isSuccessful" return="boolean"
  55727. abstract="false" native="false" synchronized="false"
  55728. static="false" final="false" visibility="public"
  55729. deprecated="not deprecated">
  55730. <exception name="IOException" type="java.io.IOException"/>
  55731. <doc>
  55732. <![CDATA[Check if the job completed successfully.
  55733. @return <code>true</code> if the job succeeded, else <code>false</code>.
  55734. @throws IOException]]>
  55735. </doc>
  55736. </method>
  55737. <method name="waitForCompletion"
  55738. abstract="false" native="false" synchronized="false"
  55739. static="false" final="false" visibility="public"
  55740. deprecated="not deprecated">
  55741. <exception name="IOException" type="java.io.IOException"/>
  55742. <doc>
  55743. <![CDATA[Blocks until the job is complete.
  55744. @throws IOException]]>
  55745. </doc>
  55746. </method>
  55747. <method name="getJobState" return="int"
  55748. abstract="false" native="false" synchronized="false"
  55749. static="false" final="false" visibility="public"
  55750. deprecated="not deprecated">
  55751. <exception name="IOException" type="java.io.IOException"/>
  55752. <doc>
  55753. <![CDATA[Returns the current state of the Job.
  55754. @throws IOException]]>
  55755. </doc>
  55756. </method>
  55757. <method name="getJobStatus" return="org.apache.hadoop.mapred.JobStatus"
  55758. abstract="false" native="false" synchronized="false"
  55759. static="false" final="false" visibility="public"
  55760. deprecated="not deprecated">
  55761. <exception name="IOException" type="java.io.IOException"/>
  55762. <doc>
  55763. <![CDATA[Returns a snapshot of the current status, {@link JobStatus}, of the Job.
  55764. Need to call again for latest information.
  55765. @throws IOException]]>
  55766. </doc>
  55767. </method>
  55768. <method name="killJob"
  55769. abstract="false" native="false" synchronized="false"
  55770. static="false" final="false" visibility="public"
  55771. deprecated="not deprecated">
  55772. <exception name="IOException" type="java.io.IOException"/>
  55773. <doc>
  55774. <![CDATA[Kill the running job. Blocks until all job tasks have been killed as well.
  55775. If the job is no longer running, it simply returns.
  55776. @throws IOException]]>
  55777. </doc>
  55778. </method>
  55779. <method name="setJobPriority"
  55780. abstract="false" native="false" synchronized="false"
  55781. static="false" final="false" visibility="public"
  55782. deprecated="not deprecated">
  55783. <param name="priority" type="java.lang.String"/>
  55784. <exception name="IOException" type="java.io.IOException"/>
  55785. <doc>
  55786. <![CDATA[Set the priority of a running job.
  55787. @param priority the new priority for the job.
  55788. @throws IOException]]>
  55789. </doc>
  55790. </method>
  55791. <method name="getTaskCompletionEvents" return="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  55792. abstract="false" native="false" synchronized="false"
  55793. static="false" final="false" visibility="public"
  55794. deprecated="not deprecated">
  55795. <param name="startFrom" type="int"/>
  55796. <exception name="IOException" type="java.io.IOException"/>
  55797. <doc>
  55798. <![CDATA[Get events indicating completion (success/failure) of component tasks.
  55799. @param startFrom index to start fetching events from
  55800. @return an array of {@link TaskCompletionEvent}s
  55801. @throws IOException]]>
  55802. </doc>
  55803. </method>
  55804. <method name="killTask"
  55805. abstract="false" native="false" synchronized="false"
  55806. static="false" final="false" visibility="public"
  55807. deprecated="not deprecated">
  55808. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  55809. <param name="shouldFail" type="boolean"/>
  55810. <exception name="IOException" type="java.io.IOException"/>
  55811. <doc>
  55812. <![CDATA[Kill indicated task attempt.
  55813. @param taskId the id of the task to be terminated.
  55814. @param shouldFail if true the task is failed and added to failed tasks
  55815. list, otherwise it is just killed, w/o affecting
  55816. job failure status.
  55817. @throws IOException]]>
  55818. </doc>
  55819. </method>
  55820. <method name="killTask"
  55821. abstract="false" native="false" synchronized="false"
  55822. static="false" final="false" visibility="public"
  55823. deprecated="Applications should rather use {@link #killTask(TaskAttemptID, boolean)}">
  55824. <param name="taskId" type="java.lang.String"/>
  55825. <param name="shouldFail" type="boolean"/>
  55826. <exception name="IOException" type="java.io.IOException"/>
  55827. <doc>
  55828. <![CDATA[@deprecated Applications should rather use {@link #killTask(TaskAttemptID, boolean)}]]>
  55829. </doc>
  55830. </method>
  55831. <method name="getCounters" return="org.apache.hadoop.mapred.Counters"
  55832. abstract="false" native="false" synchronized="false"
  55833. static="false" final="false" visibility="public"
  55834. deprecated="not deprecated">
  55835. <exception name="IOException" type="java.io.IOException"/>
  55836. <doc>
  55837. <![CDATA[Gets the counters for this job.
  55838. @return the counters for this job.
  55839. @throws IOException]]>
  55840. </doc>
  55841. </method>
  55842. <method name="getFailureInfo" return="java.lang.String"
  55843. abstract="false" native="false" synchronized="false"
  55844. static="false" final="false" visibility="public"
  55845. deprecated="not deprecated">
  55846. <exception name="IOException" type="java.io.IOException"/>
  55847. <doc>
  55848. <![CDATA[Get failure info for the job.
  55849. @return the failure info for the job.
  55850. @throws IOException]]>
  55851. </doc>
  55852. </method>
  55853. <method name="getTaskDiagnostics" return="java.lang.String[]"
  55854. abstract="false" native="false" synchronized="false"
  55855. static="false" final="false" visibility="public"
  55856. deprecated="not deprecated">
  55857. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  55858. <exception name="IOException" type="java.io.IOException"/>
  55859. <doc>
  55860. <![CDATA[Gets the diagnostic messages for a given task attempt.
  55861. @param taskid
  55862. @return the list of diagnostic messages for the task
  55863. @throws IOException]]>
  55864. </doc>
  55865. </method>
  55866. <doc>
  55867. <![CDATA[<code>RunningJob</code> is the user-interface to query for details on a
  55868. running Map-Reduce job.
  55869. <p>Clients can get hold of <code>RunningJob</code> via the {@link JobClient}
  55870. and then query the running-job for details such as name, configuration,
  55871. progress etc.</p>
  55872. @see JobClient]]>
  55873. </doc>
  55874. </interface>
  55875. <!-- end interface org.apache.hadoop.mapred.RunningJob -->
  55876. <!-- start class org.apache.hadoop.mapred.SafeModeException -->
  55877. <class name="SafeModeException" extends="java.io.IOException"
  55878. abstract="false"
  55879. static="false" final="false" visibility="public"
  55880. deprecated="not deprecated">
  55881. <constructor name="SafeModeException" type="java.lang.String"
  55882. static="false" final="false" visibility="public"
  55883. deprecated="not deprecated">
  55884. <doc>
  55885. <![CDATA[SafeModeException
  55886. @param adminUser admin who put JobTracker in safe-mode,
  55887. <code>null</code> if it was automatic]]>
  55888. </doc>
  55889. </constructor>
  55890. <doc>
  55891. <![CDATA[This exception is thrown when the JobTracker is in safe mode.]]>
  55892. </doc>
  55893. </class>
  55894. <!-- end class org.apache.hadoop.mapred.SafeModeException -->
  55895. <!-- start class org.apache.hadoop.mapred.SequenceFileAsBinaryInputFormat -->
  55896. <class name="SequenceFileAsBinaryInputFormat" extends="org.apache.hadoop.mapred.SequenceFileInputFormat"
  55897. abstract="false"
  55898. static="false" final="false" visibility="public"
  55899. deprecated="not deprecated">
  55900. <constructor name="SequenceFileAsBinaryInputFormat"
  55901. static="false" final="false" visibility="public"
  55902. deprecated="not deprecated">
  55903. </constructor>
  55904. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  55905. abstract="false" native="false" synchronized="false"
  55906. static="false" final="false" visibility="public"
  55907. deprecated="not deprecated">
  55908. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  55909. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  55910. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  55911. <exception name="IOException" type="java.io.IOException"/>
  55912. </method>
  55913. <doc>
  55914. <![CDATA[InputFormat reading keys, values from SequenceFiles in binary (raw)
  55915. format.]]>
  55916. </doc>
  55917. </class>
  55918. <!-- end class org.apache.hadoop.mapred.SequenceFileAsBinaryInputFormat -->
  55919. <!-- start class org.apache.hadoop.mapred.SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader -->
  55920. <class name="SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader" extends="java.lang.Object"
  55921. abstract="false"
  55922. static="true" final="false" visibility="public"
  55923. deprecated="not deprecated">
  55924. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  55925. <constructor name="SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  55926. static="false" final="false" visibility="public"
  55927. deprecated="not deprecated">
  55928. <exception name="IOException" type="java.io.IOException"/>
  55929. </constructor>
  55930. <method name="createKey" return="org.apache.hadoop.io.BytesWritable"
  55931. abstract="false" native="false" synchronized="false"
  55932. static="false" final="false" visibility="public"
  55933. deprecated="not deprecated">
  55934. </method>
  55935. <method name="createValue" return="org.apache.hadoop.io.BytesWritable"
  55936. abstract="false" native="false" synchronized="false"
  55937. static="false" final="false" visibility="public"
  55938. deprecated="not deprecated">
  55939. </method>
  55940. <method name="getKeyClassName" return="java.lang.String"
  55941. abstract="false" native="false" synchronized="false"
  55942. static="false" final="false" visibility="public"
  55943. deprecated="not deprecated">
  55944. <doc>
  55945. <![CDATA[Retrieve the name of the key class for this SequenceFile.
  55946. @see org.apache.hadoop.io.SequenceFile.Reader#getKeyClassName]]>
  55947. </doc>
  55948. </method>
  55949. <method name="getValueClassName" return="java.lang.String"
  55950. abstract="false" native="false" synchronized="false"
  55951. static="false" final="false" visibility="public"
  55952. deprecated="not deprecated">
  55953. <doc>
  55954. <![CDATA[Retrieve the name of the value class for this SequenceFile.
  55955. @see org.apache.hadoop.io.SequenceFile.Reader#getValueClassName]]>
  55956. </doc>
  55957. </method>
  55958. <method name="next" return="boolean"
  55959. abstract="false" native="false" synchronized="true"
  55960. static="false" final="false" visibility="public"
  55961. deprecated="not deprecated">
  55962. <param name="key" type="org.apache.hadoop.io.BytesWritable"/>
  55963. <param name="val" type="org.apache.hadoop.io.BytesWritable"/>
  55964. <exception name="IOException" type="java.io.IOException"/>
  55965. <doc>
  55966. <![CDATA[Read raw bytes from a SequenceFile.]]>
  55967. </doc>
  55968. </method>
  55969. <method name="getPos" return="long"
  55970. abstract="false" native="false" synchronized="false"
  55971. static="false" final="false" visibility="public"
  55972. deprecated="not deprecated">
  55973. <exception name="IOException" type="java.io.IOException"/>
  55974. </method>
  55975. <method name="close"
  55976. abstract="false" native="false" synchronized="false"
  55977. static="false" final="false" visibility="public"
  55978. deprecated="not deprecated">
  55979. <exception name="IOException" type="java.io.IOException"/>
  55980. </method>
  55981. <method name="getProgress" return="float"
  55982. abstract="false" native="false" synchronized="false"
  55983. static="false" final="false" visibility="public"
  55984. deprecated="not deprecated">
  55985. <exception name="IOException" type="java.io.IOException"/>
  55986. <doc>
  55987. <![CDATA[Return the progress within the input split
  55988. @return 0.0 to 1.0 of the input byte range]]>
  55989. </doc>
  55990. </method>
  55991. <doc>
  55992. <![CDATA[Read records from a SequenceFile as binary (raw) bytes.]]>
  55993. </doc>
  55994. </class>
  55995. <!-- end class org.apache.hadoop.mapred.SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader -->
  55996. <!-- start class org.apache.hadoop.mapred.SequenceFileAsBinaryOutputFormat -->
  55997. <class name="SequenceFileAsBinaryOutputFormat" extends="org.apache.hadoop.mapred.SequenceFileOutputFormat"
  55998. abstract="false"
  55999. static="false" final="false" visibility="public"
  56000. deprecated="not deprecated">
  56001. <constructor name="SequenceFileAsBinaryOutputFormat"
  56002. static="false" final="false" visibility="public"
  56003. deprecated="not deprecated">
  56004. </constructor>
  56005. <method name="setSequenceFileOutputKeyClass"
  56006. abstract="false" native="false" synchronized="false"
  56007. static="true" final="false" visibility="public"
  56008. deprecated="not deprecated">
  56009. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  56010. <param name="theClass" type="java.lang.Class"/>
  56011. <doc>
  56012. <![CDATA[Set the key class for the {@link SequenceFile}
  56013. <p>This allows the user to specify the key class to be different
  56014. from the actual class ({@link BytesWritable}) used for writing </p>
  56015. @param conf the {@link JobConf} to modify
  56016. @param theClass the SequenceFile output key class.]]>
  56017. </doc>
  56018. </method>
  56019. <method name="setSequenceFileOutputValueClass"
  56020. abstract="false" native="false" synchronized="false"
  56021. static="true" final="false" visibility="public"
  56022. deprecated="not deprecated">
  56023. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  56024. <param name="theClass" type="java.lang.Class"/>
  56025. <doc>
  56026. <![CDATA[Set the value class for the {@link SequenceFile}
  56027. <p>This allows the user to specify the value class to be different
  56028. from the actual class ({@link BytesWritable}) used for writing </p>
  56029. @param conf the {@link JobConf} to modify
  56030. @param theClass the SequenceFile output key class.]]>
  56031. </doc>
  56032. </method>
  56033. <method name="getSequenceFileOutputKeyClass" return="java.lang.Class"
  56034. abstract="false" native="false" synchronized="false"
  56035. static="true" final="false" visibility="public"
  56036. deprecated="not deprecated">
  56037. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  56038. <doc>
  56039. <![CDATA[Get the key class for the {@link SequenceFile}
  56040. @return the key class of the {@link SequenceFile}]]>
  56041. </doc>
  56042. </method>
  56043. <method name="getSequenceFileOutputValueClass" return="java.lang.Class"
  56044. abstract="false" native="false" synchronized="false"
  56045. static="true" final="false" visibility="public"
  56046. deprecated="not deprecated">
  56047. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  56048. <doc>
  56049. <![CDATA[Get the value class for the {@link SequenceFile}
  56050. @return the value class of the {@link SequenceFile}]]>
  56051. </doc>
  56052. </method>
  56053. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  56054. abstract="false" native="false" synchronized="false"
  56055. static="false" final="false" visibility="public"
  56056. deprecated="not deprecated">
  56057. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  56058. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  56059. <param name="name" type="java.lang.String"/>
  56060. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  56061. <exception name="IOException" type="java.io.IOException"/>
  56062. </method>
  56063. <method name="checkOutputSpecs"
  56064. abstract="false" native="false" synchronized="false"
  56065. static="false" final="false" visibility="public"
  56066. deprecated="not deprecated">
  56067. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  56068. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  56069. <exception name="IOException" type="java.io.IOException"/>
  56070. </method>
  56071. <doc>
  56072. <![CDATA[An {@link OutputFormat} that writes keys, values to
  56073. {@link SequenceFile}s in binary(raw) format]]>
  56074. </doc>
  56075. </class>
  56076. <!-- end class org.apache.hadoop.mapred.SequenceFileAsBinaryOutputFormat -->
  56077. <!-- start class org.apache.hadoop.mapred.SequenceFileAsBinaryOutputFormat.WritableValueBytes -->
  56078. <class name="SequenceFileAsBinaryOutputFormat.WritableValueBytes" extends="java.lang.Object"
  56079. abstract="false"
  56080. static="true" final="false" visibility="protected"
  56081. deprecated="not deprecated">
  56082. <implements name="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  56083. <constructor name="SequenceFileAsBinaryOutputFormat.WritableValueBytes"
  56084. static="false" final="false" visibility="public"
  56085. deprecated="not deprecated">
  56086. </constructor>
  56087. <constructor name="SequenceFileAsBinaryOutputFormat.WritableValueBytes" type="org.apache.hadoop.io.BytesWritable"
  56088. static="false" final="false" visibility="public"
  56089. deprecated="not deprecated">
  56090. </constructor>
  56091. <method name="reset"
  56092. abstract="false" native="false" synchronized="false"
  56093. static="false" final="false" visibility="public"
  56094. deprecated="not deprecated">
  56095. <param name="value" type="org.apache.hadoop.io.BytesWritable"/>
  56096. </method>
  56097. <method name="writeUncompressedBytes"
  56098. abstract="false" native="false" synchronized="false"
  56099. static="false" final="false" visibility="public"
  56100. deprecated="not deprecated">
  56101. <param name="outStream" type="java.io.DataOutputStream"/>
  56102. <exception name="IOException" type="java.io.IOException"/>
  56103. </method>
  56104. <method name="writeCompressedBytes"
  56105. abstract="false" native="false" synchronized="false"
  56106. static="false" final="false" visibility="public"
  56107. deprecated="not deprecated">
  56108. <param name="outStream" type="java.io.DataOutputStream"/>
  56109. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  56110. <exception name="IOException" type="java.io.IOException"/>
  56111. </method>
  56112. <method name="getSize" return="int"
  56113. abstract="false" native="false" synchronized="false"
  56114. static="false" final="false" visibility="public"
  56115. deprecated="not deprecated">
  56116. </method>
  56117. <doc>
  56118. <![CDATA[Inner class used for appendRaw]]>
  56119. </doc>
  56120. </class>
  56121. <!-- end class org.apache.hadoop.mapred.SequenceFileAsBinaryOutputFormat.WritableValueBytes -->
  56122. <!-- start class org.apache.hadoop.mapred.SequenceFileAsTextInputFormat -->
  56123. <class name="SequenceFileAsTextInputFormat" extends="org.apache.hadoop.mapred.SequenceFileInputFormat"
  56124. abstract="false"
  56125. static="false" final="false" visibility="public"
  56126. deprecated="not deprecated">
  56127. <constructor name="SequenceFileAsTextInputFormat"
  56128. static="false" final="false" visibility="public"
  56129. deprecated="not deprecated">
  56130. </constructor>
  56131. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  56132. abstract="false" native="false" synchronized="false"
  56133. static="false" final="false" visibility="public"
  56134. deprecated="not deprecated">
  56135. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  56136. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  56137. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  56138. <exception name="IOException" type="java.io.IOException"/>
  56139. </method>
  56140. <doc>
  56141. <![CDATA[This class is similar to SequenceFileInputFormat, except it generates SequenceFileAsTextRecordReader
  56142. which converts the input keys and values to their String forms by calling toString() method.]]>
  56143. </doc>
  56144. </class>
  56145. <!-- end class org.apache.hadoop.mapred.SequenceFileAsTextInputFormat -->
  56146. <!-- start class org.apache.hadoop.mapred.SequenceFileAsTextRecordReader -->
  56147. <class name="SequenceFileAsTextRecordReader" extends="java.lang.Object"
  56148. abstract="false"
  56149. static="false" final="false" visibility="public"
  56150. deprecated="not deprecated">
  56151. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  56152. <constructor name="SequenceFileAsTextRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  56153. static="false" final="false" visibility="public"
  56154. deprecated="not deprecated">
  56155. <exception name="IOException" type="java.io.IOException"/>
  56156. </constructor>
  56157. <method name="createKey" return="org.apache.hadoop.io.Text"
  56158. abstract="false" native="false" synchronized="false"
  56159. static="false" final="false" visibility="public"
  56160. deprecated="not deprecated">
  56161. </method>
  56162. <method name="createValue" return="org.apache.hadoop.io.Text"
  56163. abstract="false" native="false" synchronized="false"
  56164. static="false" final="false" visibility="public"
  56165. deprecated="not deprecated">
  56166. </method>
  56167. <method name="next" return="boolean"
  56168. abstract="false" native="false" synchronized="true"
  56169. static="false" final="false" visibility="public"
  56170. deprecated="not deprecated">
  56171. <param name="key" type="org.apache.hadoop.io.Text"/>
  56172. <param name="value" type="org.apache.hadoop.io.Text"/>
  56173. <exception name="IOException" type="java.io.IOException"/>
  56174. <doc>
  56175. <![CDATA[Read key/value pair in a line.]]>
  56176. </doc>
  56177. </method>
  56178. <method name="getProgress" return="float"
  56179. abstract="false" native="false" synchronized="false"
  56180. static="false" final="false" visibility="public"
  56181. deprecated="not deprecated">
  56182. <exception name="IOException" type="java.io.IOException"/>
  56183. </method>
  56184. <method name="getPos" return="long"
  56185. abstract="false" native="false" synchronized="true"
  56186. static="false" final="false" visibility="public"
  56187. deprecated="not deprecated">
  56188. <exception name="IOException" type="java.io.IOException"/>
  56189. </method>
  56190. <method name="close"
  56191. abstract="false" native="false" synchronized="true"
  56192. static="false" final="false" visibility="public"
  56193. deprecated="not deprecated">
  56194. <exception name="IOException" type="java.io.IOException"/>
  56195. </method>
  56196. <doc>
  56197. <![CDATA[This class converts the input keys and values to their String forms by calling toString()
  56198. method. This class to SequenceFileAsTextInputFormat class is as LineRecordReader
  56199. class to TextInputFormat class.]]>
  56200. </doc>
  56201. </class>
  56202. <!-- end class org.apache.hadoop.mapred.SequenceFileAsTextRecordReader -->
  56203. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter -->
  56204. <class name="SequenceFileInputFilter" extends="org.apache.hadoop.mapred.SequenceFileInputFormat"
  56205. abstract="false"
  56206. static="false" final="false" visibility="public"
  56207. deprecated="not deprecated">
  56208. <constructor name="SequenceFileInputFilter"
  56209. static="false" final="false" visibility="public"
  56210. deprecated="not deprecated">
  56211. </constructor>
  56212. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  56213. abstract="false" native="false" synchronized="false"
  56214. static="false" final="false" visibility="public"
  56215. deprecated="not deprecated">
  56216. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  56217. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  56218. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  56219. <exception name="IOException" type="java.io.IOException"/>
  56220. <doc>
  56221. <![CDATA[Create a record reader for the given split
  56222. @param split file split
  56223. @param job job configuration
  56224. @param reporter reporter who sends report to task tracker
  56225. @return RecordReader]]>
  56226. </doc>
  56227. </method>
  56228. <method name="setFilterClass"
  56229. abstract="false" native="false" synchronized="false"
  56230. static="true" final="false" visibility="public"
  56231. deprecated="not deprecated">
  56232. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  56233. <param name="filterClass" type="java.lang.Class"/>
  56234. <doc>
  56235. <![CDATA[set the filter class
  56236. @param conf application configuration
  56237. @param filterClass filter class]]>
  56238. </doc>
  56239. </method>
  56240. <doc>
  56241. <![CDATA[A class that allows a map/red job to work on a sample of sequence files.
  56242. The sample is decided by the filter class set by the job.]]>
  56243. </doc>
  56244. </class>
  56245. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter -->
  56246. <!-- start interface org.apache.hadoop.mapred.SequenceFileInputFilter.Filter -->
  56247. <interface name="SequenceFileInputFilter.Filter" abstract="true"
  56248. static="true" final="false" visibility="public"
  56249. deprecated="not deprecated">
  56250. <implements name="org.apache.hadoop.conf.Configurable"/>
  56251. <method name="accept" return="boolean"
  56252. abstract="false" native="false" synchronized="false"
  56253. static="false" final="false" visibility="public"
  56254. deprecated="not deprecated">
  56255. <param name="key" type="java.lang.Object"/>
  56256. <doc>
  56257. <![CDATA[filter function
  56258. Decide if a record should be filtered or not
  56259. @param key record key
  56260. @return true if a record is accepted; return false otherwise]]>
  56261. </doc>
  56262. </method>
  56263. <doc>
  56264. <![CDATA[filter interface]]>
  56265. </doc>
  56266. </interface>
  56267. <!-- end interface org.apache.hadoop.mapred.SequenceFileInputFilter.Filter -->
  56268. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase -->
  56269. <class name="SequenceFileInputFilter.FilterBase" extends="java.lang.Object"
  56270. abstract="true"
  56271. static="true" final="false" visibility="public"
  56272. deprecated="not deprecated">
  56273. <implements name="org.apache.hadoop.mapred.SequenceFileInputFilter.Filter"/>
  56274. <constructor name="SequenceFileInputFilter.FilterBase"
  56275. static="false" final="false" visibility="public"
  56276. deprecated="not deprecated">
  56277. </constructor>
  56278. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  56279. abstract="false" native="false" synchronized="false"
  56280. static="false" final="false" visibility="public"
  56281. deprecated="not deprecated">
  56282. </method>
  56283. <doc>
  56284. <![CDATA[base class for Filters]]>
  56285. </doc>
  56286. </class>
  56287. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase -->
  56288. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter.MD5Filter -->
  56289. <class name="SequenceFileInputFilter.MD5Filter" extends="org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase"
  56290. abstract="false"
  56291. static="true" final="false" visibility="public"
  56292. deprecated="not deprecated">
  56293. <constructor name="SequenceFileInputFilter.MD5Filter"
  56294. static="false" final="false" visibility="public"
  56295. deprecated="not deprecated">
  56296. </constructor>
  56297. <method name="setFrequency"
  56298. abstract="false" native="false" synchronized="false"
  56299. static="true" final="false" visibility="public"
  56300. deprecated="not deprecated">
  56301. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  56302. <param name="frequency" type="int"/>
  56303. <doc>
  56304. <![CDATA[set the filtering frequency in configuration
  56305. @param conf configuration
  56306. @param frequency filtering frequency]]>
  56307. </doc>
  56308. </method>
  56309. <method name="setConf"
  56310. abstract="false" native="false" synchronized="false"
  56311. static="false" final="false" visibility="public"
  56312. deprecated="not deprecated">
  56313. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  56314. <doc>
  56315. <![CDATA[configure the filter according to configuration
  56316. @param conf configuration]]>
  56317. </doc>
  56318. </method>
  56319. <method name="accept" return="boolean"
  56320. abstract="false" native="false" synchronized="false"
  56321. static="false" final="false" visibility="public"
  56322. deprecated="not deprecated">
  56323. <param name="key" type="java.lang.Object"/>
  56324. <doc>
  56325. <![CDATA[Filtering method
  56326. If MD5(key) % frequency==0, return true; otherwise return false
  56327. @see org.apache.hadoop.mapred.SequenceFileInputFilter.Filter#accept(Object)]]>
  56328. </doc>
  56329. </method>
  56330. <field name="MD5_LEN" type="int"
  56331. transient="false" volatile="false"
  56332. static="true" final="true" visibility="public"
  56333. deprecated="not deprecated">
  56334. </field>
  56335. <doc>
  56336. <![CDATA[This class returns a set of records by examing the MD5 digest of its
  56337. key against a filtering frequency <i>f</i>. The filtering criteria is
  56338. MD5(key) % f == 0.]]>
  56339. </doc>
  56340. </class>
  56341. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter.MD5Filter -->
  56342. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter.PercentFilter -->
  56343. <class name="SequenceFileInputFilter.PercentFilter" extends="org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase"
  56344. abstract="false"
  56345. static="true" final="false" visibility="public"
  56346. deprecated="not deprecated">
  56347. <constructor name="SequenceFileInputFilter.PercentFilter"
  56348. static="false" final="false" visibility="public"
  56349. deprecated="not deprecated">
  56350. </constructor>
  56351. <method name="setFrequency"
  56352. abstract="false" native="false" synchronized="false"
  56353. static="true" final="false" visibility="public"
  56354. deprecated="not deprecated">
  56355. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  56356. <param name="frequency" type="int"/>
  56357. <doc>
  56358. <![CDATA[set the frequency and stores it in conf
  56359. @param conf configuration
  56360. @param frequency filtering frequencey]]>
  56361. </doc>
  56362. </method>
  56363. <method name="setConf"
  56364. abstract="false" native="false" synchronized="false"
  56365. static="false" final="false" visibility="public"
  56366. deprecated="not deprecated">
  56367. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  56368. <doc>
  56369. <![CDATA[configure the filter by checking the configuration
  56370. @param conf configuration]]>
  56371. </doc>
  56372. </method>
  56373. <method name="accept" return="boolean"
  56374. abstract="false" native="false" synchronized="false"
  56375. static="false" final="false" visibility="public"
  56376. deprecated="not deprecated">
  56377. <param name="key" type="java.lang.Object"/>
  56378. <doc>
  56379. <![CDATA[Filtering method
  56380. If record# % frequency==0, return true; otherwise return false
  56381. @see org.apache.hadoop.mapred.SequenceFileInputFilter.Filter#accept(Object)]]>
  56382. </doc>
  56383. </method>
  56384. <doc>
  56385. <![CDATA[This class returns a percentage of records
  56386. The percentage is determined by a filtering frequency <i>f</i> using
  56387. the criteria record# % f == 0.
  56388. For example, if the frequency is 10, one out of 10 records is returned.]]>
  56389. </doc>
  56390. </class>
  56391. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter.PercentFilter -->
  56392. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter.RegexFilter -->
  56393. <class name="SequenceFileInputFilter.RegexFilter" extends="org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase"
  56394. abstract="false"
  56395. static="true" final="false" visibility="public"
  56396. deprecated="not deprecated">
  56397. <constructor name="SequenceFileInputFilter.RegexFilter"
  56398. static="false" final="false" visibility="public"
  56399. deprecated="not deprecated">
  56400. </constructor>
  56401. <method name="setPattern"
  56402. abstract="false" native="false" synchronized="false"
  56403. static="true" final="false" visibility="public"
  56404. deprecated="not deprecated">
  56405. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  56406. <param name="regex" type="java.lang.String"/>
  56407. <exception name="PatternSyntaxException" type="java.util.regex.PatternSyntaxException"/>
  56408. <doc>
  56409. <![CDATA[Define the filtering regex and stores it in conf
  56410. @param conf where the regex is set
  56411. @param regex regex used as a filter]]>
  56412. </doc>
  56413. </method>
  56414. <method name="setConf"
  56415. abstract="false" native="false" synchronized="false"
  56416. static="false" final="false" visibility="public"
  56417. deprecated="not deprecated">
  56418. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  56419. <doc>
  56420. <![CDATA[configure the Filter by checking the configuration]]>
  56421. </doc>
  56422. </method>
  56423. <method name="accept" return="boolean"
  56424. abstract="false" native="false" synchronized="false"
  56425. static="false" final="false" visibility="public"
  56426. deprecated="not deprecated">
  56427. <param name="key" type="java.lang.Object"/>
  56428. <doc>
  56429. <![CDATA[Filtering method
  56430. If key matches the regex, return true; otherwise return false
  56431. @see org.apache.hadoop.mapred.SequenceFileInputFilter.Filter#accept(Object)]]>
  56432. </doc>
  56433. </method>
  56434. <doc>
  56435. <![CDATA[Records filter by matching key to regex]]>
  56436. </doc>
  56437. </class>
  56438. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter.RegexFilter -->
  56439. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFormat -->
  56440. <class name="SequenceFileInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat"
  56441. abstract="false"
  56442. static="false" final="false" visibility="public"
  56443. deprecated="not deprecated">
  56444. <constructor name="SequenceFileInputFormat"
  56445. static="false" final="false" visibility="public"
  56446. deprecated="not deprecated">
  56447. </constructor>
  56448. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  56449. abstract="false" native="false" synchronized="false"
  56450. static="false" final="false" visibility="protected"
  56451. deprecated="not deprecated">
  56452. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  56453. <exception name="IOException" type="java.io.IOException"/>
  56454. </method>
  56455. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  56456. abstract="false" native="false" synchronized="false"
  56457. static="false" final="false" visibility="public"
  56458. deprecated="not deprecated">
  56459. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  56460. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  56461. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  56462. <exception name="IOException" type="java.io.IOException"/>
  56463. </method>
  56464. <doc>
  56465. <![CDATA[An {@link InputFormat} for {@link SequenceFile}s.]]>
  56466. </doc>
  56467. </class>
  56468. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFormat -->
  56469. <!-- start class org.apache.hadoop.mapred.SequenceFileOutputFormat -->
  56470. <class name="SequenceFileOutputFormat" extends="org.apache.hadoop.mapred.FileOutputFormat"
  56471. abstract="false"
  56472. static="false" final="false" visibility="public"
  56473. deprecated="not deprecated">
  56474. <constructor name="SequenceFileOutputFormat"
  56475. static="false" final="false" visibility="public"
  56476. deprecated="not deprecated">
  56477. </constructor>
  56478. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  56479. abstract="false" native="false" synchronized="false"
  56480. static="false" final="false" visibility="public"
  56481. deprecated="not deprecated">
  56482. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  56483. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  56484. <param name="name" type="java.lang.String"/>
  56485. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  56486. <exception name="IOException" type="java.io.IOException"/>
  56487. </method>
  56488. <method name="getReaders" return="org.apache.hadoop.io.SequenceFile.Reader[]"
  56489. abstract="false" native="false" synchronized="false"
  56490. static="true" final="false" visibility="public"
  56491. deprecated="not deprecated">
  56492. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  56493. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  56494. <exception name="IOException" type="java.io.IOException"/>
  56495. <doc>
  56496. <![CDATA[Open the output generated by this format.]]>
  56497. </doc>
  56498. </method>
  56499. <method name="getOutputCompressionType" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  56500. abstract="false" native="false" synchronized="false"
  56501. static="true" final="false" visibility="public"
  56502. deprecated="not deprecated">
  56503. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  56504. <doc>
  56505. <![CDATA[Get the {@link CompressionType} for the output {@link SequenceFile}.
  56506. @param conf the {@link JobConf}
  56507. @return the {@link CompressionType} for the output {@link SequenceFile},
  56508. defaulting to {@link CompressionType#RECORD}]]>
  56509. </doc>
  56510. </method>
  56511. <method name="setOutputCompressionType"
  56512. abstract="false" native="false" synchronized="false"
  56513. static="true" final="false" visibility="public"
  56514. deprecated="not deprecated">
  56515. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  56516. <param name="style" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  56517. <doc>
  56518. <![CDATA[Set the {@link CompressionType} for the output {@link SequenceFile}.
  56519. @param conf the {@link JobConf} to modify
  56520. @param style the {@link CompressionType} for the output
  56521. {@link SequenceFile}]]>
  56522. </doc>
  56523. </method>
  56524. <doc>
  56525. <![CDATA[An {@link OutputFormat} that writes {@link SequenceFile}s.]]>
  56526. </doc>
  56527. </class>
  56528. <!-- end class org.apache.hadoop.mapred.SequenceFileOutputFormat -->
  56529. <!-- start class org.apache.hadoop.mapred.SequenceFileRecordReader -->
  56530. <class name="SequenceFileRecordReader" extends="java.lang.Object"
  56531. abstract="false"
  56532. static="false" final="false" visibility="public"
  56533. deprecated="not deprecated">
  56534. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  56535. <constructor name="SequenceFileRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  56536. static="false" final="false" visibility="public"
  56537. deprecated="not deprecated">
  56538. <exception name="IOException" type="java.io.IOException"/>
  56539. </constructor>
  56540. <method name="getKeyClass" return="java.lang.Class"
  56541. abstract="false" native="false" synchronized="false"
  56542. static="false" final="false" visibility="public"
  56543. deprecated="not deprecated">
  56544. <doc>
  56545. <![CDATA[The class of key that must be passed to {@link
  56546. #next(Object, Object)}..]]>
  56547. </doc>
  56548. </method>
  56549. <method name="getValueClass" return="java.lang.Class"
  56550. abstract="false" native="false" synchronized="false"
  56551. static="false" final="false" visibility="public"
  56552. deprecated="not deprecated">
  56553. <doc>
  56554. <![CDATA[The class of value that must be passed to {@link
  56555. #next(Object, Object)}..]]>
  56556. </doc>
  56557. </method>
  56558. <method name="createKey" return="java.lang.Object"
  56559. abstract="false" native="false" synchronized="false"
  56560. static="false" final="false" visibility="public"
  56561. deprecated="not deprecated">
  56562. </method>
  56563. <method name="createValue" return="java.lang.Object"
  56564. abstract="false" native="false" synchronized="false"
  56565. static="false" final="false" visibility="public"
  56566. deprecated="not deprecated">
  56567. </method>
  56568. <method name="next" return="boolean"
  56569. abstract="false" native="false" synchronized="true"
  56570. static="false" final="false" visibility="public"
  56571. deprecated="not deprecated">
  56572. <param name="key" type="java.lang.Object"/>
  56573. <param name="value" type="java.lang.Object"/>
  56574. <exception name="IOException" type="java.io.IOException"/>
  56575. </method>
  56576. <method name="next" return="boolean"
  56577. abstract="false" native="false" synchronized="true"
  56578. static="false" final="false" visibility="protected"
  56579. deprecated="not deprecated">
  56580. <param name="key" type="java.lang.Object"/>
  56581. <exception name="IOException" type="java.io.IOException"/>
  56582. </method>
  56583. <method name="getCurrentValue"
  56584. abstract="false" native="false" synchronized="true"
  56585. static="false" final="false" visibility="protected"
  56586. deprecated="not deprecated">
  56587. <param name="value" type="java.lang.Object"/>
  56588. <exception name="IOException" type="java.io.IOException"/>
  56589. </method>
  56590. <method name="getProgress" return="float"
  56591. abstract="false" native="false" synchronized="false"
  56592. static="false" final="false" visibility="public"
  56593. deprecated="not deprecated">
  56594. <exception name="IOException" type="java.io.IOException"/>
  56595. <doc>
  56596. <![CDATA[Return the progress within the input split
  56597. @return 0.0 to 1.0 of the input byte range]]>
  56598. </doc>
  56599. </method>
  56600. <method name="getPos" return="long"
  56601. abstract="false" native="false" synchronized="true"
  56602. static="false" final="false" visibility="public"
  56603. deprecated="not deprecated">
  56604. <exception name="IOException" type="java.io.IOException"/>
  56605. </method>
  56606. <method name="seek"
  56607. abstract="false" native="false" synchronized="true"
  56608. static="false" final="false" visibility="protected"
  56609. deprecated="not deprecated">
  56610. <param name="pos" type="long"/>
  56611. <exception name="IOException" type="java.io.IOException"/>
  56612. </method>
  56613. <method name="close"
  56614. abstract="false" native="false" synchronized="true"
  56615. static="false" final="false" visibility="public"
  56616. deprecated="not deprecated">
  56617. <exception name="IOException" type="java.io.IOException"/>
  56618. </method>
  56619. <field name="conf" type="org.apache.hadoop.conf.Configuration"
  56620. transient="false" volatile="false"
  56621. static="false" final="false" visibility="protected"
  56622. deprecated="not deprecated">
  56623. </field>
  56624. <doc>
  56625. <![CDATA[An {@link RecordReader} for {@link SequenceFile}s.]]>
  56626. </doc>
  56627. </class>
  56628. <!-- end class org.apache.hadoop.mapred.SequenceFileRecordReader -->
  56629. <!-- start class org.apache.hadoop.mapred.ShuffleExceptionTracker -->
  56630. <class name="ShuffleExceptionTracker" extends="java.lang.Object"
  56631. abstract="false"
  56632. static="false" final="false" visibility="public"
  56633. deprecated="not deprecated">
  56634. <method name="getNumRequests" return="int"
  56635. abstract="false" native="false" synchronized="false"
  56636. static="false" final="false" visibility="public"
  56637. deprecated="not deprecated">
  56638. <doc>
  56639. <![CDATA[Gets the number of requests we are tracking
  56640. @return number of requests]]>
  56641. </doc>
  56642. </method>
  56643. <method name="getPercentExceptions" return="float"
  56644. abstract="false" native="false" synchronized="true"
  56645. static="false" final="false" visibility="public"
  56646. deprecated="not deprecated">
  56647. <doc>
  56648. <![CDATA[Gets the percent of the requests that had exceptions occur.
  56649. @return percent failures as float]]>
  56650. </doc>
  56651. </method>
  56652. <method name="success"
  56653. abstract="false" native="false" synchronized="true"
  56654. static="false" final="false" visibility="public"
  56655. deprecated="not deprecated">
  56656. <doc>
  56657. <![CDATA[Mark the request as success.]]>
  56658. </doc>
  56659. </method>
  56660. <method name="exception"
  56661. abstract="false" native="false" synchronized="true"
  56662. static="false" final="false" visibility="public"
  56663. deprecated="not deprecated">
  56664. <doc>
  56665. <![CDATA[Mark the request as an exception occurred.]]>
  56666. </doc>
  56667. </method>
  56668. <method name="checkException" return="boolean"
  56669. abstract="false" native="false" synchronized="false"
  56670. static="false" final="false" visibility="public"
  56671. deprecated="not deprecated">
  56672. <param name="ie" type="java.io.IOException"/>
  56673. <doc>
  56674. <![CDATA[Parse the exception to see if it matches the regular expression you
  56675. configured. If both msgRegex and StackRegex are set then make sure both
  56676. match, otherwise only one has to match. Abort if the limit is hit.
  56677. @param ie - the shuffle exception that occurred
  56678. @return true if the exception matches, false otherwise]]>
  56679. </doc>
  56680. </method>
  56681. <method name="doAbort"
  56682. abstract="false" native="false" synchronized="false"
  56683. static="false" final="false" visibility="protected"
  56684. deprecated="not deprecated">
  56685. </method>
  56686. <field name="LOG" type="org.apache.commons.logging.Log"
  56687. transient="false" volatile="false"
  56688. static="true" final="true" visibility="public"
  56689. deprecated="not deprecated">
  56690. </field>
  56691. <doc>
  56692. <![CDATA[This class is used to track shuffle exceptions. It contains routines
  56693. to check an exception that occurred while fetching the Map output to see if it
  56694. matches what was configured. It also provides functions to keep track of
  56695. the number of exceptions that occurred and if a limit is set, it will
  56696. abort the TT. The limit is a percent of exceptions of the last X number of
  56697. requests.]]>
  56698. </doc>
  56699. </class>
  56700. <!-- end class org.apache.hadoop.mapred.ShuffleExceptionTracker -->
  56701. <!-- start class org.apache.hadoop.mapred.SkipBadRecords -->
  56702. <class name="SkipBadRecords" extends="java.lang.Object"
  56703. abstract="false"
  56704. static="false" final="false" visibility="public"
  56705. deprecated="not deprecated">
  56706. <constructor name="SkipBadRecords"
  56707. static="false" final="false" visibility="public"
  56708. deprecated="not deprecated">
  56709. </constructor>
  56710. <method name="getAttemptsToStartSkipping" return="int"
  56711. abstract="false" native="false" synchronized="false"
  56712. static="true" final="false" visibility="public"
  56713. deprecated="not deprecated">
  56714. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  56715. <doc>
  56716. <![CDATA[Get the number of Task attempts AFTER which skip mode
  56717. will be kicked off. When skip mode is kicked off, the
  56718. tasks reports the range of records which it will process
  56719. next to the TaskTracker. So that on failures, TT knows which
  56720. ones are possibly the bad records. On further executions,
  56721. those are skipped.
  56722. Default value is 2.
  56723. @param conf the configuration
  56724. @return attemptsToStartSkipping no of task attempts]]>
  56725. </doc>
  56726. </method>
  56727. <method name="setAttemptsToStartSkipping"
  56728. abstract="false" native="false" synchronized="false"
  56729. static="true" final="false" visibility="public"
  56730. deprecated="not deprecated">
  56731. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  56732. <param name="attemptsToStartSkipping" type="int"/>
  56733. <doc>
  56734. <![CDATA[Set the number of Task attempts AFTER which skip mode
  56735. will be kicked off. When skip mode is kicked off, the
  56736. tasks reports the range of records which it will process
  56737. next to the TaskTracker. So that on failures, TT knows which
  56738. ones are possibly the bad records. On further executions,
  56739. those are skipped.
  56740. Default value is 2.
  56741. @param conf the configuration
  56742. @param attemptsToStartSkipping no of task attempts]]>
  56743. </doc>
  56744. </method>
  56745. <method name="getAutoIncrMapperProcCount" return="boolean"
  56746. abstract="false" native="false" synchronized="false"
  56747. static="true" final="false" visibility="public"
  56748. deprecated="not deprecated">
  56749. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  56750. <doc>
  56751. <![CDATA[Get the flag which if set to true,
  56752. {@link SkipBadRecords#COUNTER_MAP_PROCESSED_RECORDS} is incremented
  56753. by MapRunner after invoking the map function. This value must be set to
  56754. false for applications which process the records asynchronously
  56755. or buffer the input records. For example streaming.
  56756. In such cases applications should increment this counter on their own.
  56757. Default value is true.
  56758. @param conf the configuration
  56759. @return <code>true</code> if auto increment
  56760. {@link SkipBadRecords#COUNTER_MAP_PROCESSED_RECORDS}.
  56761. <code>false</code> otherwise.]]>
  56762. </doc>
  56763. </method>
  56764. <method name="setAutoIncrMapperProcCount"
  56765. abstract="false" native="false" synchronized="false"
  56766. static="true" final="false" visibility="public"
  56767. deprecated="not deprecated">
  56768. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  56769. <param name="autoIncr" type="boolean"/>
  56770. <doc>
  56771. <![CDATA[Set the flag which if set to true,
  56772. {@link SkipBadRecords#COUNTER_MAP_PROCESSED_RECORDS} is incremented
  56773. by MapRunner after invoking the map function. This value must be set to
  56774. false for applications which process the records asynchronously
  56775. or buffer the input records. For example streaming.
  56776. In such cases applications should increment this counter on their own.
  56777. Default value is true.
  56778. @param conf the configuration
  56779. @param autoIncr whether to auto increment
  56780. {@link SkipBadRecords#COUNTER_MAP_PROCESSED_RECORDS}.]]>
  56781. </doc>
  56782. </method>
  56783. <method name="getAutoIncrReducerProcCount" return="boolean"
  56784. abstract="false" native="false" synchronized="false"
  56785. static="true" final="false" visibility="public"
  56786. deprecated="not deprecated">
  56787. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  56788. <doc>
  56789. <![CDATA[Get the flag which if set to true,
  56790. {@link SkipBadRecords#COUNTER_REDUCE_PROCESSED_GROUPS} is incremented
  56791. by framework after invoking the reduce function. This value must be set to
  56792. false for applications which process the records asynchronously
  56793. or buffer the input records. For example streaming.
  56794. In such cases applications should increment this counter on their own.
  56795. Default value is true.
  56796. @param conf the configuration
  56797. @return <code>true</code> if auto increment
  56798. {@link SkipBadRecords#COUNTER_REDUCE_PROCESSED_GROUPS}.
  56799. <code>false</code> otherwise.]]>
  56800. </doc>
  56801. </method>
  56802. <method name="setAutoIncrReducerProcCount"
  56803. abstract="false" native="false" synchronized="false"
  56804. static="true" final="false" visibility="public"
  56805. deprecated="not deprecated">
  56806. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  56807. <param name="autoIncr" type="boolean"/>
  56808. <doc>
  56809. <![CDATA[Set the flag which if set to true,
  56810. {@link SkipBadRecords#COUNTER_REDUCE_PROCESSED_GROUPS} is incremented
  56811. by framework after invoking the reduce function. This value must be set to
  56812. false for applications which process the records asynchronously
  56813. or buffer the input records. For example streaming.
  56814. In such cases applications should increment this counter on their own.
  56815. Default value is true.
  56816. @param conf the configuration
  56817. @param autoIncr whether to auto increment
  56818. {@link SkipBadRecords#COUNTER_REDUCE_PROCESSED_GROUPS}.]]>
  56819. </doc>
  56820. </method>
  56821. <method name="getSkipOutputPath" return="org.apache.hadoop.fs.Path"
  56822. abstract="false" native="false" synchronized="false"
  56823. static="true" final="false" visibility="public"
  56824. deprecated="not deprecated">
  56825. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  56826. <doc>
  56827. <![CDATA[Get the directory to which skipped records are written. By default it is
  56828. the sub directory of the output _logs directory.
  56829. User can stop writing skipped records by setting the value null.
  56830. @param conf the configuration.
  56831. @return path skip output directory. Null is returned if this is not set
  56832. and output directory is also not set.]]>
  56833. </doc>
  56834. </method>
  56835. <method name="setSkipOutputPath"
  56836. abstract="false" native="false" synchronized="false"
  56837. static="true" final="false" visibility="public"
  56838. deprecated="not deprecated">
  56839. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  56840. <param name="path" type="org.apache.hadoop.fs.Path"/>
  56841. <doc>
  56842. <![CDATA[Set the directory to which skipped records are written. By default it is
  56843. the sub directory of the output _logs directory.
  56844. User can stop writing skipped records by setting the value null.
  56845. @param conf the configuration.
  56846. @param path skip output directory path]]>
  56847. </doc>
  56848. </method>
  56849. <method name="getMapperMaxSkipRecords" return="long"
  56850. abstract="false" native="false" synchronized="false"
  56851. static="true" final="false" visibility="public"
  56852. deprecated="not deprecated">
  56853. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  56854. <doc>
  56855. <![CDATA[Get the number of acceptable skip records surrounding the bad record PER
  56856. bad record in mapper. The number includes the bad record as well.
  56857. To turn the feature of detection/skipping of bad records off, set the
  56858. value to 0.
  56859. The framework tries to narrow down the skipped range by retrying
  56860. until this threshold is met OR all attempts get exhausted for this task.
  56861. Set the value to Long.MAX_VALUE to indicate that framework need not try to
  56862. narrow down. Whatever records(depends on application) get skipped are
  56863. acceptable.
  56864. Default value is 0.
  56865. @param conf the configuration
  56866. @return maxSkipRecs acceptable skip records.]]>
  56867. </doc>
  56868. </method>
  56869. <method name="setMapperMaxSkipRecords"
  56870. abstract="false" native="false" synchronized="false"
  56871. static="true" final="false" visibility="public"
  56872. deprecated="not deprecated">
  56873. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  56874. <param name="maxSkipRecs" type="long"/>
  56875. <doc>
  56876. <![CDATA[Set the number of acceptable skip records surrounding the bad record PER
  56877. bad record in mapper. The number includes the bad record as well.
  56878. To turn the feature of detection/skipping of bad records off, set the
  56879. value to 0.
  56880. The framework tries to narrow down the skipped range by retrying
  56881. until this threshold is met OR all attempts get exhausted for this task.
  56882. Set the value to Long.MAX_VALUE to indicate that framework need not try to
  56883. narrow down. Whatever records(depends on application) get skipped are
  56884. acceptable.
  56885. Default value is 0.
  56886. @param conf the configuration
  56887. @param maxSkipRecs acceptable skip records.]]>
  56888. </doc>
  56889. </method>
  56890. <method name="getReducerMaxSkipGroups" return="long"
  56891. abstract="false" native="false" synchronized="false"
  56892. static="true" final="false" visibility="public"
  56893. deprecated="not deprecated">
  56894. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  56895. <doc>
  56896. <![CDATA[Get the number of acceptable skip groups surrounding the bad group PER
  56897. bad group in reducer. The number includes the bad group as well.
  56898. To turn the feature of detection/skipping of bad groups off, set the
  56899. value to 0.
  56900. The framework tries to narrow down the skipped range by retrying
  56901. until this threshold is met OR all attempts get exhausted for this task.
  56902. Set the value to Long.MAX_VALUE to indicate that framework need not try to
  56903. narrow down. Whatever groups(depends on application) get skipped are
  56904. acceptable.
  56905. Default value is 0.
  56906. @param conf the configuration
  56907. @return maxSkipGrps acceptable skip groups.]]>
  56908. </doc>
  56909. </method>
  56910. <method name="setReducerMaxSkipGroups"
  56911. abstract="false" native="false" synchronized="false"
  56912. static="true" final="false" visibility="public"
  56913. deprecated="not deprecated">
  56914. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  56915. <param name="maxSkipGrps" type="long"/>
  56916. <doc>
  56917. <![CDATA[Set the number of acceptable skip groups surrounding the bad group PER
  56918. bad group in reducer. The number includes the bad group as well.
  56919. To turn the feature of detection/skipping of bad groups off, set the
  56920. value to 0.
  56921. The framework tries to narrow down the skipped range by retrying
  56922. until this threshold is met OR all attempts get exhausted for this task.
  56923. Set the value to Long.MAX_VALUE to indicate that framework need not try to
  56924. narrow down. Whatever groups(depends on application) get skipped are
  56925. acceptable.
  56926. Default value is 0.
  56927. @param conf the configuration
  56928. @param maxSkipGrps acceptable skip groups.]]>
  56929. </doc>
  56930. </method>
  56931. <field name="COUNTER_GROUP" type="java.lang.String"
  56932. transient="false" volatile="false"
  56933. static="true" final="true" visibility="public"
  56934. deprecated="not deprecated">
  56935. <doc>
  56936. <![CDATA[Special counters which are written by the application and are
  56937. used by the framework for detecting bad records. For detecting bad records
  56938. these counters must be incremented by the application.]]>
  56939. </doc>
  56940. </field>
  56941. <field name="COUNTER_MAP_PROCESSED_RECORDS" type="java.lang.String"
  56942. transient="false" volatile="false"
  56943. static="true" final="true" visibility="public"
  56944. deprecated="not deprecated">
  56945. <doc>
  56946. <![CDATA[Number of processed map records.
  56947. @see SkipBadRecords#getAutoIncrMapperProcCount(Configuration)]]>
  56948. </doc>
  56949. </field>
  56950. <field name="COUNTER_REDUCE_PROCESSED_GROUPS" type="java.lang.String"
  56951. transient="false" volatile="false"
  56952. static="true" final="true" visibility="public"
  56953. deprecated="not deprecated">
  56954. <doc>
  56955. <![CDATA[Number of processed reduce groups.
  56956. @see SkipBadRecords#getAutoIncrReducerProcCount(Configuration)]]>
  56957. </doc>
  56958. </field>
  56959. <doc>
  56960. <![CDATA[Utility class for skip bad records functionality. It contains various
  56961. settings related to skipping of bad records.
  56962. <p>Hadoop provides an optional mode of execution in which the bad records
  56963. are detected and skipped in further attempts.
  56964. <p>This feature can be used when map/reduce tasks crashes deterministically on
  56965. certain input. This happens due to bugs in the map/reduce function. The usual
  56966. course would be to fix these bugs. But sometimes this is not possible;
  56967. perhaps the bug is in third party libraries for which the source code is
  56968. not available. Due to this, the task never reaches to completion even with
  56969. multiple attempts and complete data for that task is lost.</p>
  56970. <p>With this feature, only a small portion of data is lost surrounding
  56971. the bad record, which may be acceptable for some user applications.
  56972. see {@link SkipBadRecords#setMapperMaxSkipRecords(Configuration, long)}</p>
  56973. <p>The skipping mode gets kicked off after certain no of failures
  56974. see {@link SkipBadRecords#setAttemptsToStartSkipping(Configuration, int)}</p>
  56975. <p>In the skipping mode, the map/reduce task maintains the record range which
  56976. is getting processed at all times. Before giving the input to the
  56977. map/reduce function, it sends this record range to the Task tracker.
  56978. If task crashes, the Task tracker knows which one was the last reported
  56979. range. On further attempts that range get skipped.</p>]]>
  56980. </doc>
  56981. </class>
  56982. <!-- end class org.apache.hadoop.mapred.SkipBadRecords -->
  56983. <!-- start class org.apache.hadoop.mapred.Task -->
  56984. <class name="Task" extends="java.lang.Object"
  56985. abstract="true"
  56986. static="false" final="false" visibility="public"
  56987. deprecated="not deprecated">
  56988. <implements name="org.apache.hadoop.io.Writable"/>
  56989. <implements name="org.apache.hadoop.conf.Configurable"/>
  56990. <constructor name="Task"
  56991. static="false" final="false" visibility="public"
  56992. deprecated="not deprecated">
  56993. </constructor>
  56994. <constructor name="Task" type="java.lang.String, org.apache.hadoop.mapred.TaskAttemptID, int, int"
  56995. static="false" final="false" visibility="public"
  56996. deprecated="not deprecated">
  56997. </constructor>
  56998. <method name="getFileSystemCounterNames" return="java.lang.String[]"
  56999. abstract="false" native="false" synchronized="false"
  57000. static="true" final="false" visibility="protected"
  57001. deprecated="not deprecated">
  57002. <param name="uriScheme" type="java.lang.String"/>
  57003. <doc>
  57004. <![CDATA[Counters to measure the usage of the different file systems.
  57005. Always return the String array with two elements. First one is the name of
  57006. BYTES_READ counter and second one is of the BYTES_WRITTEN counter.]]>
  57007. </doc>
  57008. </method>
  57009. <method name="setJobFile"
  57010. abstract="false" native="false" synchronized="false"
  57011. static="false" final="false" visibility="public"
  57012. deprecated="not deprecated">
  57013. <param name="jobFile" type="java.lang.String"/>
  57014. </method>
  57015. <method name="getJobFile" return="java.lang.String"
  57016. abstract="false" native="false" synchronized="false"
  57017. static="false" final="false" visibility="public"
  57018. deprecated="not deprecated">
  57019. </method>
  57020. <method name="getTaskID" return="org.apache.hadoop.mapred.TaskAttemptID"
  57021. abstract="false" native="false" synchronized="false"
  57022. static="false" final="false" visibility="public"
  57023. deprecated="not deprecated">
  57024. </method>
  57025. <method name="getNumSlotsRequired" return="int"
  57026. abstract="false" native="false" synchronized="false"
  57027. static="false" final="false" visibility="public"
  57028. deprecated="not deprecated">
  57029. </method>
  57030. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  57031. abstract="false" native="false" synchronized="false"
  57032. static="false" final="false" visibility="public"
  57033. deprecated="not deprecated">
  57034. <doc>
  57035. <![CDATA[Get the job name for this task.
  57036. @return the job name]]>
  57037. </doc>
  57038. </method>
  57039. <method name="setJobTokenSecret"
  57040. abstract="false" native="false" synchronized="false"
  57041. static="false" final="false" visibility="public"
  57042. deprecated="not deprecated">
  57043. <param name="tokenSecret" type="javax.crypto.SecretKey"/>
  57044. <doc>
  57045. <![CDATA[Set the job token secret
  57046. @param tokenSecret the secret]]>
  57047. </doc>
  57048. </method>
  57049. <method name="getJobTokenSecret" return="javax.crypto.SecretKey"
  57050. abstract="false" native="false" synchronized="false"
  57051. static="false" final="false" visibility="public"
  57052. deprecated="not deprecated">
  57053. <doc>
  57054. <![CDATA[Get the job token secret
  57055. @return the token secret]]>
  57056. </doc>
  57057. </method>
  57058. <method name="setJvmContext"
  57059. abstract="false" native="false" synchronized="false"
  57060. static="false" final="false" visibility="public"
  57061. deprecated="not deprecated">
  57062. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  57063. <doc>
  57064. <![CDATA[Set the task JvmContext
  57065. @param jvmContext]]>
  57066. </doc>
  57067. </method>
  57068. <method name="getJvmContext" return="org.apache.hadoop.mapred.JvmContext"
  57069. abstract="false" native="false" synchronized="false"
  57070. static="false" final="false" visibility="public"
  57071. deprecated="not deprecated">
  57072. <doc>
  57073. <![CDATA[Gets the task JvmContext
  57074. @return the jvm context]]>
  57075. </doc>
  57076. </method>
  57077. <method name="getPartition" return="int"
  57078. abstract="false" native="false" synchronized="false"
  57079. static="false" final="false" visibility="public"
  57080. deprecated="not deprecated">
  57081. <doc>
  57082. <![CDATA[Get the index of this task within the job.
  57083. @return the integer part of the task id]]>
  57084. </doc>
  57085. </method>
  57086. <method name="getPhase" return="org.apache.hadoop.mapred.TaskStatus.Phase"
  57087. abstract="false" native="false" synchronized="true"
  57088. static="false" final="false" visibility="public"
  57089. deprecated="not deprecated">
  57090. <doc>
  57091. <![CDATA[Return current phase of the task.
  57092. needs to be synchronized as communication thread sends the phase every second
  57093. @return the curent phase of the task]]>
  57094. </doc>
  57095. </method>
  57096. <method name="setPhase"
  57097. abstract="false" native="false" synchronized="true"
  57098. static="false" final="false" visibility="protected"
  57099. deprecated="not deprecated">
  57100. <param name="phase" type="org.apache.hadoop.mapred.TaskStatus.Phase"/>
  57101. <doc>
  57102. <![CDATA[Set current phase of the task.
  57103. @param phase task phase]]>
  57104. </doc>
  57105. </method>
  57106. <method name="toWriteSkipRecs" return="boolean"
  57107. abstract="false" native="false" synchronized="false"
  57108. static="false" final="false" visibility="protected"
  57109. deprecated="not deprecated">
  57110. <doc>
  57111. <![CDATA[Get whether to write skip records.]]>
  57112. </doc>
  57113. </method>
  57114. <method name="setWriteSkipRecs"
  57115. abstract="false" native="false" synchronized="false"
  57116. static="false" final="false" visibility="protected"
  57117. deprecated="not deprecated">
  57118. <param name="writeSkipRecs" type="boolean"/>
  57119. <doc>
  57120. <![CDATA[Set whether to write skip records.]]>
  57121. </doc>
  57122. </method>
  57123. <method name="reportFatalError"
  57124. abstract="false" native="false" synchronized="false"
  57125. static="false" final="false" visibility="protected"
  57126. deprecated="not deprecated">
  57127. <param name="id" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  57128. <param name="throwable" type="java.lang.Throwable"/>
  57129. <param name="logMsg" type="java.lang.String"/>
  57130. <doc>
  57131. <![CDATA[Report a fatal error to the parent (task) tracker.]]>
  57132. </doc>
  57133. </method>
  57134. <method name="getSkipRanges" return="org.apache.hadoop.mapred.SortedRanges"
  57135. abstract="false" native="false" synchronized="false"
  57136. static="false" final="false" visibility="public"
  57137. deprecated="not deprecated">
  57138. <doc>
  57139. <![CDATA[Get skipRanges.]]>
  57140. </doc>
  57141. </method>
  57142. <method name="setSkipRanges"
  57143. abstract="false" native="false" synchronized="false"
  57144. static="false" final="false" visibility="public"
  57145. deprecated="not deprecated">
  57146. <param name="skipRanges" type="org.apache.hadoop.mapred.SortedRanges"/>
  57147. <doc>
  57148. <![CDATA[Set skipRanges.]]>
  57149. </doc>
  57150. </method>
  57151. <method name="isSkipping" return="boolean"
  57152. abstract="false" native="false" synchronized="false"
  57153. static="false" final="false" visibility="public"
  57154. deprecated="not deprecated">
  57155. <doc>
  57156. <![CDATA[Is Task in skipping mode.]]>
  57157. </doc>
  57158. </method>
  57159. <method name="setSkipping"
  57160. abstract="false" native="false" synchronized="false"
  57161. static="false" final="false" visibility="public"
  57162. deprecated="not deprecated">
  57163. <param name="skipping" type="boolean"/>
  57164. <doc>
  57165. <![CDATA[Sets whether to run Task in skipping mode.
  57166. @param skipping]]>
  57167. </doc>
  57168. </method>
  57169. <method name="getUser" return="java.lang.String"
  57170. abstract="false" native="false" synchronized="false"
  57171. static="false" final="false" visibility="public"
  57172. deprecated="not deprecated">
  57173. <doc>
  57174. <![CDATA[Get the name of the user running the job/task. TaskTracker needs task's
  57175. user name even before it's JobConf is localized. So we explicitly serialize
  57176. the user name.
  57177. @return user]]>
  57178. </doc>
  57179. </method>
  57180. <method name="write"
  57181. abstract="false" native="false" synchronized="false"
  57182. static="false" final="false" visibility="public"
  57183. deprecated="not deprecated">
  57184. <param name="out" type="java.io.DataOutput"/>
  57185. <exception name="IOException" type="java.io.IOException"/>
  57186. </method>
  57187. <method name="readFields"
  57188. abstract="false" native="false" synchronized="false"
  57189. static="false" final="false" visibility="public"
  57190. deprecated="not deprecated">
  57191. <param name="in" type="java.io.DataInput"/>
  57192. <exception name="IOException" type="java.io.IOException"/>
  57193. </method>
  57194. <method name="toString" return="java.lang.String"
  57195. abstract="false" native="false" synchronized="false"
  57196. static="false" final="false" visibility="public"
  57197. deprecated="not deprecated">
  57198. </method>
  57199. <method name="localizeConfiguration"
  57200. abstract="false" native="false" synchronized="false"
  57201. static="false" final="false" visibility="public"
  57202. deprecated="not deprecated">
  57203. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  57204. <exception name="IOException" type="java.io.IOException"/>
  57205. <doc>
  57206. <![CDATA[Localize the given JobConf to be specific for this task.]]>
  57207. </doc>
  57208. </method>
  57209. <method name="run"
  57210. abstract="true" native="false" synchronized="false"
  57211. static="false" final="false" visibility="public"
  57212. deprecated="not deprecated">
  57213. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  57214. <param name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  57215. <exception name="IOException" type="java.io.IOException"/>
  57216. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  57217. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  57218. <doc>
  57219. <![CDATA[Run this task as a part of the named job. This method is executed in the
  57220. child process and is what invokes user-supplied map, reduce, etc. methods.
  57221. @param umbilical for progress reports]]>
  57222. </doc>
  57223. </method>
  57224. <method name="createRunner" return="org.apache.hadoop.mapred.TaskRunner"
  57225. abstract="true" native="false" synchronized="false"
  57226. static="false" final="false" visibility="public"
  57227. deprecated="not deprecated">
  57228. <param name="tracker" type="org.apache.hadoop.mapred.TaskTracker"/>
  57229. <param name="tip" type="org.apache.hadoop.mapred.TaskTracker.TaskInProgress"/>
  57230. <param name="rjob" type="org.apache.hadoop.mapred.TaskTracker.RunningJob"/>
  57231. <exception name="IOException" type="java.io.IOException"/>
  57232. <doc>
  57233. <![CDATA[Return an approprate thread runner for this task.
  57234. @param tip TODO]]>
  57235. </doc>
  57236. </method>
  57237. <method name="isMapTask" return="boolean"
  57238. abstract="true" native="false" synchronized="false"
  57239. static="false" final="false" visibility="public"
  57240. deprecated="not deprecated">
  57241. </method>
  57242. <method name="getProgress" return="org.apache.hadoop.util.Progress"
  57243. abstract="false" native="false" synchronized="false"
  57244. static="false" final="false" visibility="public"
  57245. deprecated="not deprecated">
  57246. </method>
  57247. <method name="initialize"
  57248. abstract="false" native="false" synchronized="false"
  57249. static="false" final="false" visibility="public"
  57250. deprecated="not deprecated">
  57251. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  57252. <param name="id" type="org.apache.hadoop.mapred.JobID"/>
  57253. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  57254. <param name="useNewApi" type="boolean"/>
  57255. <exception name="IOException" type="java.io.IOException"/>
  57256. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  57257. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  57258. </method>
  57259. <method name="reportNextRecordRange"
  57260. abstract="false" native="false" synchronized="false"
  57261. static="false" final="false" visibility="protected"
  57262. deprecated="not deprecated">
  57263. <param name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  57264. <param name="nextRecIndex" type="long"/>
  57265. <exception name="IOException" type="java.io.IOException"/>
  57266. <doc>
  57267. <![CDATA[Reports the next executing record range to TaskTracker.
  57268. @param umbilical
  57269. @param nextRecIndex the record index which would be fed next.
  57270. @throws IOException]]>
  57271. </doc>
  57272. </method>
  57273. <method name="done"
  57274. abstract="false" native="false" synchronized="false"
  57275. static="false" final="false" visibility="public"
  57276. deprecated="not deprecated">
  57277. <param name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  57278. <param name="reporter" type="org.apache.hadoop.mapred.Task.TaskReporter"/>
  57279. <exception name="IOException" type="java.io.IOException"/>
  57280. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  57281. </method>
  57282. <method name="statusUpdate"
  57283. abstract="false" native="false" synchronized="false"
  57284. static="false" final="false" visibility="protected"
  57285. deprecated="not deprecated">
  57286. <param name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  57287. <exception name="IOException" type="java.io.IOException"/>
  57288. </method>
  57289. <method name="runTaskCleanupTask"
  57290. abstract="false" native="false" synchronized="false"
  57291. static="false" final="false" visibility="protected"
  57292. deprecated="not deprecated">
  57293. <param name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  57294. <param name="reporter" type="org.apache.hadoop.mapred.Task.TaskReporter"/>
  57295. <exception name="IOException" type="java.io.IOException"/>
  57296. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  57297. </method>
  57298. <method name="runJobCleanupTask"
  57299. abstract="false" native="false" synchronized="false"
  57300. static="false" final="false" visibility="protected"
  57301. deprecated="not deprecated">
  57302. <param name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  57303. <param name="reporter" type="org.apache.hadoop.mapred.Task.TaskReporter"/>
  57304. <exception name="IOException" type="java.io.IOException"/>
  57305. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  57306. </method>
  57307. <method name="supportIsolationRunner" return="boolean"
  57308. abstract="false" native="false" synchronized="false"
  57309. static="false" final="false" visibility="protected"
  57310. deprecated="not deprecated">
  57311. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  57312. </method>
  57313. <method name="runJobSetupTask"
  57314. abstract="false" native="false" synchronized="false"
  57315. static="false" final="false" visibility="protected"
  57316. deprecated="not deprecated">
  57317. <param name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  57318. <param name="reporter" type="org.apache.hadoop.mapred.Task.TaskReporter"/>
  57319. <exception name="IOException" type="java.io.IOException"/>
  57320. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  57321. </method>
  57322. <method name="getFsStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  57323. abstract="false" native="false" synchronized="false"
  57324. static="true" final="false" visibility="protected"
  57325. deprecated="not deprecated">
  57326. <param name="path" type="org.apache.hadoop.fs.Path"/>
  57327. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  57328. <exception name="IOException" type="java.io.IOException"/>
  57329. <doc>
  57330. <![CDATA[Gets a handle to the Statistics instance based on the scheme associated
  57331. with path.
  57332. @param path
  57333. the path.
  57334. @return a Statistics instance, or null if none is found for the scheme.]]>
  57335. </doc>
  57336. </method>
  57337. <method name="setConf"
  57338. abstract="false" native="false" synchronized="false"
  57339. static="false" final="false" visibility="public"
  57340. deprecated="not deprecated">
  57341. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  57342. </method>
  57343. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  57344. abstract="false" native="false" synchronized="false"
  57345. static="false" final="false" visibility="public"
  57346. deprecated="not deprecated">
  57347. </method>
  57348. <method name="createReduceContext" return="org.apache.hadoop.mapreduce.Reducer.Context"
  57349. abstract="false" native="false" synchronized="false"
  57350. static="true" final="false" visibility="protected"
  57351. deprecated="not deprecated">
  57352. <param name="reducer" type="org.apache.hadoop.mapreduce.Reducer"/>
  57353. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  57354. <param name="taskId" type="org.apache.hadoop.mapreduce.TaskAttemptID"/>
  57355. <param name="rIter" type="org.apache.hadoop.mapred.RawKeyValueIterator"/>
  57356. <param name="inputKeyCounter" type="org.apache.hadoop.mapreduce.Counter"/>
  57357. <param name="inputValueCounter" type="org.apache.hadoop.mapreduce.Counter"/>
  57358. <param name="output" type="org.apache.hadoop.mapreduce.RecordWriter"/>
  57359. <param name="committer" type="org.apache.hadoop.mapreduce.OutputCommitter"/>
  57360. <param name="reporter" type="org.apache.hadoop.mapreduce.StatusReporter"/>
  57361. <param name="comparator" type="org.apache.hadoop.io.RawComparator"/>
  57362. <param name="keyClass" type="java.lang.Class"/>
  57363. <param name="valueClass" type="java.lang.Class"/>
  57364. <exception name="IOException" type="java.io.IOException"/>
  57365. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  57366. </method>
  57367. <field name="MR_COMBINE_RECORDS_BEFORE_PROGRESS" type="java.lang.String"
  57368. transient="false" volatile="false"
  57369. static="true" final="true" visibility="public"
  57370. deprecated="not deprecated">
  57371. </field>
  57372. <field name="DEFAULT_MR_COMBINE_RECORDS_BEFORE_PROGRESS" type="long"
  57373. transient="false" volatile="false"
  57374. static="true" final="true" visibility="public"
  57375. deprecated="not deprecated">
  57376. </field>
  57377. <field name="FILESYSTEM_COUNTER_GROUP" type="java.lang.String"
  57378. transient="false" volatile="false"
  57379. static="true" final="true" visibility="protected"
  57380. deprecated="not deprecated">
  57381. <doc>
  57382. <![CDATA[Name of the FileSystem counters' group]]>
  57383. </doc>
  57384. </field>
  57385. <field name="jobRunStateForCleanup" type="org.apache.hadoop.mapreduce.JobStatus.State"
  57386. transient="false" volatile="false"
  57387. static="false" final="false" visibility="protected"
  57388. deprecated="not deprecated">
  57389. </field>
  57390. <field name="jobCleanup" type="boolean"
  57391. transient="false" volatile="false"
  57392. static="false" final="false" visibility="protected"
  57393. deprecated="not deprecated">
  57394. </field>
  57395. <field name="jobSetup" type="boolean"
  57396. transient="false" volatile="false"
  57397. static="false" final="false" visibility="protected"
  57398. deprecated="not deprecated">
  57399. </field>
  57400. <field name="taskCleanup" type="boolean"
  57401. transient="false" volatile="false"
  57402. static="false" final="false" visibility="protected"
  57403. deprecated="not deprecated">
  57404. </field>
  57405. <field name="conf" type="org.apache.hadoop.mapred.JobConf"
  57406. transient="false" volatile="false"
  57407. static="false" final="false" visibility="protected"
  57408. deprecated="not deprecated">
  57409. </field>
  57410. <field name="mapOutputFile" type="org.apache.hadoop.mapred.MapOutputFile"
  57411. transient="false" volatile="false"
  57412. static="false" final="false" visibility="protected"
  57413. deprecated="not deprecated">
  57414. </field>
  57415. <field name="lDirAlloc" type="org.apache.hadoop.fs.LocalDirAllocator"
  57416. transient="false" volatile="false"
  57417. static="false" final="false" visibility="protected"
  57418. deprecated="not deprecated">
  57419. </field>
  57420. <field name="jobContext" type="org.apache.hadoop.mapred.JobContext"
  57421. transient="false" volatile="false"
  57422. static="false" final="false" visibility="protected"
  57423. deprecated="not deprecated">
  57424. </field>
  57425. <field name="taskContext" type="org.apache.hadoop.mapred.TaskAttemptContext"
  57426. transient="false" volatile="false"
  57427. static="false" final="false" visibility="protected"
  57428. deprecated="not deprecated">
  57429. </field>
  57430. <field name="outputFormat" type="org.apache.hadoop.mapreduce.OutputFormat"
  57431. transient="false" volatile="false"
  57432. static="false" final="false" visibility="protected"
  57433. deprecated="not deprecated">
  57434. </field>
  57435. <field name="committer" type="org.apache.hadoop.mapreduce.OutputCommitter"
  57436. transient="false" volatile="false"
  57437. static="false" final="false" visibility="protected"
  57438. deprecated="not deprecated">
  57439. </field>
  57440. <field name="spilledRecordsCounter" type="org.apache.hadoop.mapred.Counters.Counter"
  57441. transient="false" volatile="false"
  57442. static="false" final="true" visibility="protected"
  57443. deprecated="not deprecated">
  57444. </field>
  57445. <field name="umbilical" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"
  57446. transient="false" volatile="false"
  57447. static="false" final="false" visibility="protected"
  57448. deprecated="not deprecated">
  57449. </field>
  57450. <field name="tokenSecret" type="javax.crypto.SecretKey"
  57451. transient="false" volatile="false"
  57452. static="false" final="false" visibility="protected"
  57453. deprecated="not deprecated">
  57454. </field>
  57455. <field name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"
  57456. transient="false" volatile="false"
  57457. static="false" final="false" visibility="protected"
  57458. deprecated="not deprecated">
  57459. </field>
  57460. <field name="PROGRESS_INTERVAL" type="int"
  57461. transient="false" volatile="false"
  57462. static="true" final="true" visibility="public"
  57463. deprecated="not deprecated">
  57464. <doc>
  57465. <![CDATA[The number of milliseconds between progress reports.]]>
  57466. </doc>
  57467. </field>
  57468. <doc>
  57469. <![CDATA[Base class for tasks.
  57470. This is NOT a public interface.]]>
  57471. </doc>
  57472. </class>
  57473. <!-- end class org.apache.hadoop.mapred.Task -->
  57474. <!-- start class org.apache.hadoop.mapred.Task.CombineOutputCollector -->
  57475. <class name="Task.CombineOutputCollector" extends="java.lang.Object"
  57476. abstract="false"
  57477. static="true" final="false" visibility="protected"
  57478. deprecated="not deprecated">
  57479. <implements name="org.apache.hadoop.mapred.OutputCollector"/>
  57480. <constructor name="Task.CombineOutputCollector" type="org.apache.hadoop.mapred.Counters.Counter, org.apache.hadoop.util.Progressable, org.apache.hadoop.conf.Configuration"
  57481. static="false" final="false" visibility="public"
  57482. deprecated="not deprecated">
  57483. </constructor>
  57484. <method name="setWriter"
  57485. abstract="false" native="false" synchronized="true"
  57486. static="false" final="false" visibility="public"
  57487. deprecated="not deprecated">
  57488. <param name="writer" type="org.apache.hadoop.mapred.IFile.Writer"/>
  57489. </method>
  57490. <method name="collect"
  57491. abstract="false" native="false" synchronized="true"
  57492. static="false" final="false" visibility="public"
  57493. deprecated="not deprecated">
  57494. <param name="key" type="java.lang.Object"/>
  57495. <param name="value" type="java.lang.Object"/>
  57496. <exception name="IOException" type="java.io.IOException"/>
  57497. </method>
  57498. <doc>
  57499. <![CDATA[OutputCollector for the combiner.]]>
  57500. </doc>
  57501. </class>
  57502. <!-- end class org.apache.hadoop.mapred.Task.CombineOutputCollector -->
  57503. <!-- start class org.apache.hadoop.mapred.Task.CombinerRunner -->
  57504. <class name="Task.CombinerRunner" extends="java.lang.Object"
  57505. abstract="true"
  57506. static="true" final="false" visibility="protected"
  57507. deprecated="not deprecated">
  57508. <field name="inputCounter" type="org.apache.hadoop.mapred.Counters.Counter"
  57509. transient="false" volatile="false"
  57510. static="false" final="true" visibility="protected"
  57511. deprecated="not deprecated">
  57512. </field>
  57513. <field name="job" type="org.apache.hadoop.mapred.JobConf"
  57514. transient="false" volatile="false"
  57515. static="false" final="true" visibility="protected"
  57516. deprecated="not deprecated">
  57517. </field>
  57518. <field name="reporter" type="org.apache.hadoop.mapred.Task.TaskReporter"
  57519. transient="false" volatile="false"
  57520. static="false" final="true" visibility="protected"
  57521. deprecated="not deprecated">
  57522. </field>
  57523. </class>
  57524. <!-- end class org.apache.hadoop.mapred.Task.CombinerRunner -->
  57525. <!-- start class org.apache.hadoop.mapred.Task.CombineValuesIterator -->
  57526. <class name="Task.CombineValuesIterator" extends="org.apache.hadoop.mapred.Task.ValuesIterator"
  57527. abstract="false"
  57528. static="true" final="false" visibility="protected"
  57529. deprecated="not deprecated">
  57530. <constructor name="Task.CombineValuesIterator" type="org.apache.hadoop.mapred.RawKeyValueIterator, org.apache.hadoop.io.RawComparator, java.lang.Class, java.lang.Class, org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.Reporter, org.apache.hadoop.mapred.Counters.Counter"
  57531. static="false" final="false" visibility="public"
  57532. deprecated="not deprecated">
  57533. <exception name="IOException" type="java.io.IOException"/>
  57534. </constructor>
  57535. <method name="next" return="java.lang.Object"
  57536. abstract="false" native="false" synchronized="false"
  57537. static="false" final="false" visibility="public"
  57538. deprecated="not deprecated">
  57539. </method>
  57540. </class>
  57541. <!-- end class org.apache.hadoop.mapred.Task.CombineValuesIterator -->
  57542. <!-- start class org.apache.hadoop.mapred.Task.Counter -->
  57543. <class name="Task.Counter" extends="java.lang.Enum"
  57544. abstract="false"
  57545. static="true" final="true" visibility="public"
  57546. deprecated="not deprecated">
  57547. <method name="values" return="org.apache.hadoop.mapred.Task.Counter[]"
  57548. abstract="false" native="false" synchronized="false"
  57549. static="true" final="false" visibility="public"
  57550. deprecated="not deprecated">
  57551. </method>
  57552. <method name="valueOf" return="org.apache.hadoop.mapred.Task.Counter"
  57553. abstract="false" native="false" synchronized="false"
  57554. static="true" final="false" visibility="public"
  57555. deprecated="not deprecated">
  57556. <param name="name" type="java.lang.String"/>
  57557. </method>
  57558. <field name="MAP_INPUT_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  57559. transient="false" volatile="false"
  57560. static="true" final="true" visibility="public"
  57561. deprecated="not deprecated">
  57562. </field>
  57563. <field name="MAP_OUTPUT_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  57564. transient="false" volatile="false"
  57565. static="true" final="true" visibility="public"
  57566. deprecated="not deprecated">
  57567. </field>
  57568. <field name="MAP_SKIPPED_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  57569. transient="false" volatile="false"
  57570. static="true" final="true" visibility="public"
  57571. deprecated="not deprecated">
  57572. </field>
  57573. <field name="MAP_INPUT_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  57574. transient="false" volatile="false"
  57575. static="true" final="true" visibility="public"
  57576. deprecated="not deprecated">
  57577. </field>
  57578. <field name="MAP_OUTPUT_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  57579. transient="false" volatile="false"
  57580. static="true" final="true" visibility="public"
  57581. deprecated="not deprecated">
  57582. </field>
  57583. <field name="MAP_OUTPUT_MATERIALIZED_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  57584. transient="false" volatile="false"
  57585. static="true" final="true" visibility="public"
  57586. deprecated="not deprecated">
  57587. </field>
  57588. <field name="COMBINE_INPUT_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  57589. transient="false" volatile="false"
  57590. static="true" final="true" visibility="public"
  57591. deprecated="not deprecated">
  57592. </field>
  57593. <field name="COMBINE_OUTPUT_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  57594. transient="false" volatile="false"
  57595. static="true" final="true" visibility="public"
  57596. deprecated="not deprecated">
  57597. </field>
  57598. <field name="REDUCE_INPUT_GROUPS" type="org.apache.hadoop.mapred.Task.Counter"
  57599. transient="false" volatile="false"
  57600. static="true" final="true" visibility="public"
  57601. deprecated="not deprecated">
  57602. </field>
  57603. <field name="REDUCE_SHUFFLE_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  57604. transient="false" volatile="false"
  57605. static="true" final="true" visibility="public"
  57606. deprecated="not deprecated">
  57607. </field>
  57608. <field name="REDUCE_INPUT_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  57609. transient="false" volatile="false"
  57610. static="true" final="true" visibility="public"
  57611. deprecated="not deprecated">
  57612. </field>
  57613. <field name="REDUCE_OUTPUT_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  57614. transient="false" volatile="false"
  57615. static="true" final="true" visibility="public"
  57616. deprecated="not deprecated">
  57617. </field>
  57618. <field name="REDUCE_SKIPPED_GROUPS" type="org.apache.hadoop.mapred.Task.Counter"
  57619. transient="false" volatile="false"
  57620. static="true" final="true" visibility="public"
  57621. deprecated="not deprecated">
  57622. </field>
  57623. <field name="REDUCE_SKIPPED_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  57624. transient="false" volatile="false"
  57625. static="true" final="true" visibility="public"
  57626. deprecated="not deprecated">
  57627. </field>
  57628. <field name="SPILLED_RECORDS" type="org.apache.hadoop.mapred.Task.Counter"
  57629. transient="false" volatile="false"
  57630. static="true" final="true" visibility="public"
  57631. deprecated="not deprecated">
  57632. </field>
  57633. <field name="SPLIT_RAW_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  57634. transient="false" volatile="false"
  57635. static="true" final="true" visibility="public"
  57636. deprecated="not deprecated">
  57637. </field>
  57638. <field name="CPU_MILLISECONDS" type="org.apache.hadoop.mapred.Task.Counter"
  57639. transient="false" volatile="false"
  57640. static="true" final="true" visibility="public"
  57641. deprecated="not deprecated">
  57642. </field>
  57643. <field name="PHYSICAL_MEMORY_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  57644. transient="false" volatile="false"
  57645. static="true" final="true" visibility="public"
  57646. deprecated="not deprecated">
  57647. </field>
  57648. <field name="VIRTUAL_MEMORY_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  57649. transient="false" volatile="false"
  57650. static="true" final="true" visibility="public"
  57651. deprecated="not deprecated">
  57652. </field>
  57653. <field name="COMMITTED_HEAP_BYTES" type="org.apache.hadoop.mapred.Task.Counter"
  57654. transient="false" volatile="false"
  57655. static="true" final="true" visibility="public"
  57656. deprecated="not deprecated">
  57657. </field>
  57658. </class>
  57659. <!-- end class org.apache.hadoop.mapred.Task.Counter -->
  57660. <!-- start class org.apache.hadoop.mapred.Task.NewCombinerRunner -->
  57661. <class name="Task.NewCombinerRunner" extends="org.apache.hadoop.mapred.Task.CombinerRunner"
  57662. abstract="false"
  57663. static="true" final="false" visibility="protected"
  57664. deprecated="not deprecated">
  57665. </class>
  57666. <!-- end class org.apache.hadoop.mapred.Task.NewCombinerRunner -->
  57667. <!-- start class org.apache.hadoop.mapred.Task.OldCombinerRunner -->
  57668. <class name="Task.OldCombinerRunner" extends="org.apache.hadoop.mapred.Task.CombinerRunner"
  57669. abstract="false"
  57670. static="true" final="false" visibility="protected"
  57671. deprecated="not deprecated">
  57672. <constructor name="Task.OldCombinerRunner" type="java.lang.Class, org.apache.hadoop.mapred.JobConf, org.apache.hadoop.mapred.Counters.Counter, org.apache.hadoop.mapred.Task.TaskReporter"
  57673. static="false" final="false" visibility="protected"
  57674. deprecated="not deprecated">
  57675. </constructor>
  57676. <method name="combine"
  57677. abstract="false" native="false" synchronized="false"
  57678. static="false" final="false" visibility="protected"
  57679. deprecated="not deprecated">
  57680. <param name="kvIter" type="org.apache.hadoop.mapred.RawKeyValueIterator"/>
  57681. <param name="combineCollector" type="org.apache.hadoop.mapred.OutputCollector"/>
  57682. <exception name="IOException" type="java.io.IOException"/>
  57683. </method>
  57684. </class>
  57685. <!-- end class org.apache.hadoop.mapred.Task.OldCombinerRunner -->
  57686. <!-- start class org.apache.hadoop.mapred.Task.TaskReporter -->
  57687. <class name="Task.TaskReporter" extends="org.apache.hadoop.mapreduce.StatusReporter"
  57688. abstract="false"
  57689. static="false" final="false" visibility="protected"
  57690. deprecated="not deprecated">
  57691. <implements name="java.lang.Runnable"/>
  57692. <implements name="org.apache.hadoop.mapred.Reporter"/>
  57693. <method name="setStatus"
  57694. abstract="false" native="false" synchronized="false"
  57695. static="false" final="false" visibility="public"
  57696. deprecated="not deprecated">
  57697. <param name="status" type="java.lang.String"/>
  57698. </method>
  57699. <method name="setProgress"
  57700. abstract="false" native="false" synchronized="false"
  57701. static="false" final="false" visibility="public"
  57702. deprecated="not deprecated">
  57703. <param name="progress" type="float"/>
  57704. </method>
  57705. <method name="getProgress" return="float"
  57706. abstract="false" native="false" synchronized="false"
  57707. static="false" final="false" visibility="public"
  57708. deprecated="not deprecated">
  57709. </method>
  57710. <method name="progress"
  57711. abstract="false" native="false" synchronized="false"
  57712. static="false" final="false" visibility="public"
  57713. deprecated="not deprecated">
  57714. </method>
  57715. <method name="getCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  57716. abstract="false" native="false" synchronized="false"
  57717. static="false" final="false" visibility="public"
  57718. deprecated="not deprecated">
  57719. <param name="group" type="java.lang.String"/>
  57720. <param name="name" type="java.lang.String"/>
  57721. </method>
  57722. <method name="getCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  57723. abstract="false" native="false" synchronized="false"
  57724. static="false" final="false" visibility="public"
  57725. deprecated="not deprecated">
  57726. <param name="name" type="java.lang.Enum"/>
  57727. </method>
  57728. <method name="incrCounter"
  57729. abstract="false" native="false" synchronized="false"
  57730. static="false" final="false" visibility="public"
  57731. deprecated="not deprecated">
  57732. <param name="key" type="java.lang.Enum"/>
  57733. <param name="amount" type="long"/>
  57734. </method>
  57735. <method name="incrCounter"
  57736. abstract="false" native="false" synchronized="false"
  57737. static="false" final="false" visibility="public"
  57738. deprecated="not deprecated">
  57739. <param name="group" type="java.lang.String"/>
  57740. <param name="counter" type="java.lang.String"/>
  57741. <param name="amount" type="long"/>
  57742. </method>
  57743. <method name="setInputSplit"
  57744. abstract="false" native="false" synchronized="false"
  57745. static="false" final="false" visibility="public"
  57746. deprecated="not deprecated">
  57747. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  57748. </method>
  57749. <method name="getInputSplit" return="org.apache.hadoop.mapred.InputSplit"
  57750. abstract="false" native="false" synchronized="false"
  57751. static="false" final="false" visibility="public"
  57752. deprecated="not deprecated">
  57753. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  57754. </method>
  57755. <method name="run"
  57756. abstract="false" native="false" synchronized="false"
  57757. static="false" final="false" visibility="public"
  57758. deprecated="not deprecated">
  57759. <doc>
  57760. <![CDATA[The communication thread handles communication with the parent (Task Tracker).
  57761. It sends progress updates if progress has been made or if the task needs to
  57762. let the parent know that it's alive. It also pings the parent to see if it's alive.]]>
  57763. </doc>
  57764. </method>
  57765. <method name="startCommunicationThread"
  57766. abstract="false" native="false" synchronized="false"
  57767. static="false" final="false" visibility="public"
  57768. deprecated="not deprecated">
  57769. </method>
  57770. <method name="stopCommunicationThread"
  57771. abstract="false" native="false" synchronized="false"
  57772. static="false" final="false" visibility="public"
  57773. deprecated="not deprecated">
  57774. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  57775. </method>
  57776. </class>
  57777. <!-- end class org.apache.hadoop.mapred.Task.TaskReporter -->
  57778. <!-- start class org.apache.hadoop.mapred.TaskAttemptContext -->
  57779. <class name="TaskAttemptContext" extends="org.apache.hadoop.mapreduce.TaskAttemptContext"
  57780. abstract="false"
  57781. static="false" final="false" visibility="public"
  57782. deprecated="not deprecated">
  57783. <method name="getTaskAttemptID" return="org.apache.hadoop.mapred.TaskAttemptID"
  57784. abstract="false" native="false" synchronized="false"
  57785. static="false" final="false" visibility="public"
  57786. deprecated="not deprecated">
  57787. <doc>
  57788. <![CDATA[Get the taskAttemptID.
  57789. @return TaskAttemptID]]>
  57790. </doc>
  57791. </method>
  57792. <method name="getProgressible" return="org.apache.hadoop.util.Progressable"
  57793. abstract="false" native="false" synchronized="false"
  57794. static="false" final="false" visibility="public"
  57795. deprecated="not deprecated">
  57796. </method>
  57797. <method name="getJobConf" return="org.apache.hadoop.mapred.JobConf"
  57798. abstract="false" native="false" synchronized="false"
  57799. static="false" final="false" visibility="public"
  57800. deprecated="not deprecated">
  57801. </method>
  57802. <method name="progress"
  57803. abstract="false" native="false" synchronized="false"
  57804. static="false" final="false" visibility="public"
  57805. deprecated="not deprecated">
  57806. </method>
  57807. </class>
  57808. <!-- end class org.apache.hadoop.mapred.TaskAttemptContext -->
  57809. <!-- start class org.apache.hadoop.mapred.TaskAttemptID -->
  57810. <class name="TaskAttemptID" extends="org.apache.hadoop.mapreduce.TaskAttemptID"
  57811. abstract="false"
  57812. static="false" final="false" visibility="public"
  57813. deprecated="not deprecated">
  57814. <constructor name="TaskAttemptID" type="org.apache.hadoop.mapred.TaskID, int"
  57815. static="false" final="false" visibility="public"
  57816. deprecated="not deprecated">
  57817. <doc>
  57818. <![CDATA[Constructs a TaskAttemptID object from given {@link TaskID}.
  57819. @param taskId TaskID that this task belongs to
  57820. @param id the task attempt number]]>
  57821. </doc>
  57822. </constructor>
  57823. <constructor name="TaskAttemptID" type="java.lang.String, int, boolean, int, int"
  57824. static="false" final="false" visibility="public"
  57825. deprecated="not deprecated">
  57826. <doc>
  57827. <![CDATA[Constructs a TaskId object from given parts.
  57828. @param jtIdentifier jobTracker identifier
  57829. @param jobId job number
  57830. @param isMap whether the tip is a map
  57831. @param taskId taskId number
  57832. @param id the task attempt number]]>
  57833. </doc>
  57834. </constructor>
  57835. <constructor name="TaskAttemptID"
  57836. static="false" final="false" visibility="public"
  57837. deprecated="not deprecated">
  57838. </constructor>
  57839. <method name="downgrade" return="org.apache.hadoop.mapred.TaskAttemptID"
  57840. abstract="false" native="false" synchronized="false"
  57841. static="true" final="false" visibility="public"
  57842. deprecated="not deprecated">
  57843. <param name="old" type="org.apache.hadoop.mapreduce.TaskAttemptID"/>
  57844. <doc>
  57845. <![CDATA[Downgrade a new TaskAttemptID to an old one
  57846. @param old the new id
  57847. @return either old or a new TaskAttemptID constructed to match old]]>
  57848. </doc>
  57849. </method>
  57850. <method name="getTaskID" return="org.apache.hadoop.mapred.TaskID"
  57851. abstract="false" native="false" synchronized="false"
  57852. static="false" final="false" visibility="public"
  57853. deprecated="not deprecated">
  57854. </method>
  57855. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  57856. abstract="false" native="false" synchronized="false"
  57857. static="false" final="false" visibility="public"
  57858. deprecated="not deprecated">
  57859. </method>
  57860. <method name="read" return="org.apache.hadoop.mapred.TaskAttemptID"
  57861. abstract="false" native="false" synchronized="false"
  57862. static="true" final="false" visibility="public"
  57863. deprecated="not deprecated">
  57864. <param name="in" type="java.io.DataInput"/>
  57865. <exception name="IOException" type="java.io.IOException"/>
  57866. </method>
  57867. <method name="forName" return="org.apache.hadoop.mapred.TaskAttemptID"
  57868. abstract="false" native="false" synchronized="false"
  57869. static="true" final="false" visibility="public"
  57870. deprecated="not deprecated">
  57871. <param name="str" type="java.lang.String"/>
  57872. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  57873. <doc>
  57874. <![CDATA[Construct a TaskAttemptID object from given string
  57875. @return constructed TaskAttemptID object or null if the given String is null
  57876. @throws IllegalArgumentException if the given string is malformed]]>
  57877. </doc>
  57878. </method>
  57879. <method name="getTaskAttemptIDsPattern" return="java.lang.String"
  57880. abstract="false" native="false" synchronized="false"
  57881. static="true" final="false" visibility="public"
  57882. deprecated="not deprecated">
  57883. <param name="jtIdentifier" type="java.lang.String"/>
  57884. <param name="jobId" type="java.lang.Integer"/>
  57885. <param name="isMap" type="java.lang.Boolean"/>
  57886. <param name="taskId" type="java.lang.Integer"/>
  57887. <param name="attemptId" type="java.lang.Integer"/>
  57888. <doc>
  57889. <![CDATA[Returns a regex pattern which matches task attempt IDs. Arguments can
  57890. be given null, in which case that part of the regex will be generic.
  57891. For example to obtain a regex matching <i>all task attempt IDs</i>
  57892. of <i>any jobtracker</i>, in <i>any job</i>, of the <i>first
  57893. map task</i>, we would use :
  57894. <pre>
  57895. TaskAttemptID.getTaskAttemptIDsPattern(null, null, true, 1, null);
  57896. </pre>
  57897. which will return :
  57898. <pre> "attempt_[^_]*_[0-9]*_m_000001_[0-9]*" </pre>
  57899. @param jtIdentifier jobTracker identifier, or null
  57900. @param jobId job number, or null
  57901. @param isMap whether the tip is a map, or null
  57902. @param taskId taskId number, or null
  57903. @param attemptId the task attempt number, or null
  57904. @return a regex pattern matching TaskAttemptIDs]]>
  57905. </doc>
  57906. </method>
  57907. <doc>
  57908. <![CDATA[TaskAttemptID represents the immutable and unique identifier for
  57909. a task attempt. Each task attempt is one particular instance of a Map or
  57910. Reduce Task identified by its TaskID.
  57911. TaskAttemptID consists of 2 parts. First part is the
  57912. {@link TaskID}, that this TaskAttemptID belongs to.
  57913. Second part is the task attempt number. <br>
  57914. An example TaskAttemptID is :
  57915. <code>attempt_200707121733_0003_m_000005_0</code> , which represents the
  57916. zeroth task attempt for the fifth map task in the third job
  57917. running at the jobtracker started at <code>200707121733</code>.
  57918. <p>
  57919. Applications should never construct or parse TaskAttemptID strings
  57920. , but rather use appropriate constructors or {@link #forName(String)}
  57921. method.
  57922. @see JobID
  57923. @see TaskID]]>
  57924. </doc>
  57925. </class>
  57926. <!-- end class org.apache.hadoop.mapred.TaskAttemptID -->
  57927. <!-- start class org.apache.hadoop.mapred.TaskCompletionEvent -->
  57928. <class name="TaskCompletionEvent" extends="java.lang.Object"
  57929. abstract="false"
  57930. static="false" final="false" visibility="public"
  57931. deprecated="not deprecated">
  57932. <implements name="org.apache.hadoop.io.Writable"/>
  57933. <constructor name="TaskCompletionEvent"
  57934. static="false" final="false" visibility="public"
  57935. deprecated="not deprecated">
  57936. <doc>
  57937. <![CDATA[Default constructor for Writable.]]>
  57938. </doc>
  57939. </constructor>
  57940. <constructor name="TaskCompletionEvent" type="int, org.apache.hadoop.mapred.TaskAttemptID, int, boolean, org.apache.hadoop.mapred.TaskCompletionEvent.Status, java.lang.String"
  57941. static="false" final="false" visibility="public"
  57942. deprecated="not deprecated">
  57943. <doc>
  57944. <![CDATA[Constructor. eventId should be created externally and incremented
  57945. per event for each job.
  57946. @param eventId event id, event id should be unique and assigned in
  57947. incrementally, starting from 0.
  57948. @param taskId task id
  57949. @param status task's status
  57950. @param taskTrackerHttp task tracker's host:port for http.]]>
  57951. </doc>
  57952. </constructor>
  57953. <method name="getEventId" return="int"
  57954. abstract="false" native="false" synchronized="false"
  57955. static="false" final="false" visibility="public"
  57956. deprecated="not deprecated">
  57957. <doc>
  57958. <![CDATA[Returns event Id.
  57959. @return event id]]>
  57960. </doc>
  57961. </method>
  57962. <method name="getTaskId" return="java.lang.String"
  57963. abstract="false" native="false" synchronized="false"
  57964. static="false" final="false" visibility="public"
  57965. deprecated="use {@link #getTaskAttemptId()} instead.">
  57966. <doc>
  57967. <![CDATA[Returns task id.
  57968. @return task id
  57969. @deprecated use {@link #getTaskAttemptId()} instead.]]>
  57970. </doc>
  57971. </method>
  57972. <method name="getTaskAttemptId" return="org.apache.hadoop.mapred.TaskAttemptID"
  57973. abstract="false" native="false" synchronized="false"
  57974. static="false" final="false" visibility="public"
  57975. deprecated="not deprecated">
  57976. <doc>
  57977. <![CDATA[Returns task id.
  57978. @return task id]]>
  57979. </doc>
  57980. </method>
  57981. <method name="getTaskStatus" return="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  57982. abstract="false" native="false" synchronized="false"
  57983. static="false" final="false" visibility="public"
  57984. deprecated="not deprecated">
  57985. <doc>
  57986. <![CDATA[Returns enum Status.SUCESS or Status.FAILURE.
  57987. @return task tracker status]]>
  57988. </doc>
  57989. </method>
  57990. <method name="getTaskTrackerHttp" return="java.lang.String"
  57991. abstract="false" native="false" synchronized="false"
  57992. static="false" final="false" visibility="public"
  57993. deprecated="not deprecated">
  57994. <doc>
  57995. <![CDATA[http location of the tasktracker where this task ran.
  57996. @return http location of tasktracker user logs]]>
  57997. </doc>
  57998. </method>
  57999. <method name="getTaskRunTime" return="int"
  58000. abstract="false" native="false" synchronized="false"
  58001. static="false" final="false" visibility="public"
  58002. deprecated="not deprecated">
  58003. <doc>
  58004. <![CDATA[Returns time (in millisec) the task took to complete.]]>
  58005. </doc>
  58006. </method>
  58007. <method name="setTaskRunTime"
  58008. abstract="false" native="false" synchronized="false"
  58009. static="false" final="false" visibility="public"
  58010. deprecated="not deprecated">
  58011. <param name="taskCompletionTime" type="int"/>
  58012. <doc>
  58013. <![CDATA[Set the task completion time
  58014. @param taskCompletionTime time (in millisec) the task took to complete]]>
  58015. </doc>
  58016. </method>
  58017. <method name="setEventId"
  58018. abstract="false" native="false" synchronized="false"
  58019. static="false" final="false" visibility="public"
  58020. deprecated="not deprecated">
  58021. <param name="eventId" type="int"/>
  58022. <doc>
  58023. <![CDATA[set event Id. should be assigned incrementally starting from 0.
  58024. @param eventId]]>
  58025. </doc>
  58026. </method>
  58027. <method name="setTaskId"
  58028. abstract="false" native="false" synchronized="false"
  58029. static="false" final="false" visibility="public"
  58030. deprecated="use {@link #setTaskID(TaskAttemptID)} instead.">
  58031. <param name="taskId" type="java.lang.String"/>
  58032. <doc>
  58033. <![CDATA[Sets task id.
  58034. @param taskId
  58035. @deprecated use {@link #setTaskID(TaskAttemptID)} instead.]]>
  58036. </doc>
  58037. </method>
  58038. <method name="setTaskID"
  58039. abstract="false" native="false" synchronized="false"
  58040. static="false" final="false" visibility="public"
  58041. deprecated="not deprecated">
  58042. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  58043. <doc>
  58044. <![CDATA[Sets task id.
  58045. @param taskId]]>
  58046. </doc>
  58047. </method>
  58048. <method name="setTaskStatus"
  58049. abstract="false" native="false" synchronized="false"
  58050. static="false" final="false" visibility="public"
  58051. deprecated="not deprecated">
  58052. <param name="status" type="org.apache.hadoop.mapred.TaskCompletionEvent.Status"/>
  58053. <doc>
  58054. <![CDATA[Set task status.
  58055. @param status]]>
  58056. </doc>
  58057. </method>
  58058. <method name="setTaskTrackerHttp"
  58059. abstract="false" native="false" synchronized="false"
  58060. static="false" final="false" visibility="public"
  58061. deprecated="not deprecated">
  58062. <param name="taskTrackerHttp" type="java.lang.String"/>
  58063. <doc>
  58064. <![CDATA[Set task tracker http location.
  58065. @param taskTrackerHttp]]>
  58066. </doc>
  58067. </method>
  58068. <method name="toString" return="java.lang.String"
  58069. abstract="false" native="false" synchronized="false"
  58070. static="false" final="false" visibility="public"
  58071. deprecated="not deprecated">
  58072. </method>
  58073. <method name="equals" return="boolean"
  58074. abstract="false" native="false" synchronized="false"
  58075. static="false" final="false" visibility="public"
  58076. deprecated="not deprecated">
  58077. <param name="o" type="java.lang.Object"/>
  58078. </method>
  58079. <method name="hashCode" return="int"
  58080. abstract="false" native="false" synchronized="false"
  58081. static="false" final="false" visibility="public"
  58082. deprecated="not deprecated">
  58083. </method>
  58084. <method name="isMapTask" return="boolean"
  58085. abstract="false" native="false" synchronized="false"
  58086. static="false" final="false" visibility="public"
  58087. deprecated="not deprecated">
  58088. </method>
  58089. <method name="idWithinJob" return="int"
  58090. abstract="false" native="false" synchronized="false"
  58091. static="false" final="false" visibility="public"
  58092. deprecated="not deprecated">
  58093. </method>
  58094. <method name="write"
  58095. abstract="false" native="false" synchronized="false"
  58096. static="false" final="false" visibility="public"
  58097. deprecated="not deprecated">
  58098. <param name="out" type="java.io.DataOutput"/>
  58099. <exception name="IOException" type="java.io.IOException"/>
  58100. </method>
  58101. <method name="readFields"
  58102. abstract="false" native="false" synchronized="false"
  58103. static="false" final="false" visibility="public"
  58104. deprecated="not deprecated">
  58105. <param name="in" type="java.io.DataInput"/>
  58106. <exception name="IOException" type="java.io.IOException"/>
  58107. </method>
  58108. <field name="EMPTY_ARRAY" type="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  58109. transient="false" volatile="false"
  58110. static="true" final="true" visibility="public"
  58111. deprecated="not deprecated">
  58112. </field>
  58113. <doc>
  58114. <![CDATA[This is used to track task completion events on
  58115. job tracker.]]>
  58116. </doc>
  58117. </class>
  58118. <!-- end class org.apache.hadoop.mapred.TaskCompletionEvent -->
  58119. <!-- start class org.apache.hadoop.mapred.TaskCompletionEvent.Status -->
  58120. <class name="TaskCompletionEvent.Status" extends="java.lang.Enum"
  58121. abstract="false"
  58122. static="true" final="true" visibility="public"
  58123. deprecated="not deprecated">
  58124. <method name="values" return="org.apache.hadoop.mapred.TaskCompletionEvent.Status[]"
  58125. abstract="false" native="false" synchronized="false"
  58126. static="true" final="false" visibility="public"
  58127. deprecated="not deprecated">
  58128. </method>
  58129. <method name="valueOf" return="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  58130. abstract="false" native="false" synchronized="false"
  58131. static="true" final="false" visibility="public"
  58132. deprecated="not deprecated">
  58133. <param name="name" type="java.lang.String"/>
  58134. </method>
  58135. <field name="FAILED" type="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  58136. transient="false" volatile="false"
  58137. static="true" final="true" visibility="public"
  58138. deprecated="not deprecated">
  58139. </field>
  58140. <field name="KILLED" type="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  58141. transient="false" volatile="false"
  58142. static="true" final="true" visibility="public"
  58143. deprecated="not deprecated">
  58144. </field>
  58145. <field name="SUCCEEDED" type="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  58146. transient="false" volatile="false"
  58147. static="true" final="true" visibility="public"
  58148. deprecated="not deprecated">
  58149. </field>
  58150. <field name="OBSOLETE" type="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  58151. transient="false" volatile="false"
  58152. static="true" final="true" visibility="public"
  58153. deprecated="not deprecated">
  58154. </field>
  58155. <field name="TIPFAILED" type="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  58156. transient="false" volatile="false"
  58157. static="true" final="true" visibility="public"
  58158. deprecated="not deprecated">
  58159. </field>
  58160. </class>
  58161. <!-- end class org.apache.hadoop.mapred.TaskCompletionEvent.Status -->
  58162. <!-- start class org.apache.hadoop.mapred.TaskController -->
  58163. <class name="TaskController" extends="java.lang.Object"
  58164. abstract="true"
  58165. static="false" final="false" visibility="public"
  58166. deprecated="not deprecated">
  58167. <implements name="org.apache.hadoop.conf.Configurable"/>
  58168. <constructor name="TaskController"
  58169. static="false" final="false" visibility="public"
  58170. deprecated="not deprecated">
  58171. </constructor>
  58172. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  58173. abstract="false" native="false" synchronized="false"
  58174. static="false" final="false" visibility="public"
  58175. deprecated="not deprecated">
  58176. </method>
  58177. <method name="getLocalDirs" return="java.lang.String[]"
  58178. abstract="false" native="false" synchronized="false"
  58179. static="false" final="false" visibility="public"
  58180. deprecated="not deprecated">
  58181. </method>
  58182. <method name="setConf"
  58183. abstract="false" native="false" synchronized="false"
  58184. static="false" final="false" visibility="public"
  58185. deprecated="not deprecated">
  58186. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  58187. </method>
  58188. <method name="setup"
  58189. abstract="true" native="false" synchronized="false"
  58190. static="false" final="false" visibility="public"
  58191. deprecated="not deprecated">
  58192. <param name="allocator" type="org.apache.hadoop.fs.LocalDirAllocator"/>
  58193. <param name="localStorage" type="org.apache.hadoop.mapred.TaskTracker.LocalStorage"/>
  58194. <exception name="IOException" type="java.io.IOException"/>
  58195. <doc>
  58196. <![CDATA[Does initialization and setup.
  58197. @param allocator the local dir allocator to use
  58198. @param localStorage local storage to obtain dirs from]]>
  58199. </doc>
  58200. </method>
  58201. <method name="initializeJob"
  58202. abstract="true" native="false" synchronized="false"
  58203. static="false" final="false" visibility="public"
  58204. deprecated="not deprecated">
  58205. <param name="user" type="java.lang.String"/>
  58206. <param name="jobid" type="java.lang.String"/>
  58207. <param name="credentials" type="org.apache.hadoop.fs.Path"/>
  58208. <param name="jobConf" type="org.apache.hadoop.fs.Path"/>
  58209. <param name="taskTracker" type="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  58210. <param name="ttAddr" type="java.net.InetSocketAddress"/>
  58211. <exception name="IOException" type="java.io.IOException"/>
  58212. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  58213. <doc>
  58214. <![CDATA[Create all of the directories necessary for the job to start and download
  58215. all of the job and private distributed cache files.
  58216. Creates both the user directories and the job log directory.
  58217. @param user the user name
  58218. @param jobid the job
  58219. @param credentials a filename containing the job secrets
  58220. @param jobConf the path to the localized configuration file
  58221. @param taskTracker the connection the task tracker
  58222. @param ttAddr the tasktracker's RPC address
  58223. @throws IOException
  58224. @throws InterruptedException]]>
  58225. </doc>
  58226. </method>
  58227. <method name="launchTask" return="int"
  58228. abstract="true" native="false" synchronized="false"
  58229. static="false" final="false" visibility="public"
  58230. deprecated="not deprecated">
  58231. <param name="user" type="java.lang.String"/>
  58232. <param name="jobId" type="java.lang.String"/>
  58233. <param name="attemptId" type="java.lang.String"/>
  58234. <param name="setup" type="java.util.List"/>
  58235. <param name="jvmArguments" type="java.util.List"/>
  58236. <param name="currentWorkDirectory" type="java.io.File"/>
  58237. <param name="stdout" type="java.lang.String"/>
  58238. <param name="stderr" type="java.lang.String"/>
  58239. <exception name="IOException" type="java.io.IOException"/>
  58240. <doc>
  58241. <![CDATA[Create all of the directories for the task and launches the child jvm.
  58242. @param user the user name
  58243. @param jobId the jobId in question
  58244. @param attemptId the attempt id (cleanup attempts have .cleanup suffix)
  58245. @param setup list of shell commands to execute before the jvm
  58246. @param jvmArguments list of jvm arguments
  58247. @param currentWorkDirectory the full path of the cwd for the task
  58248. @param stdout the file to redirect stdout to
  58249. @param stderr the file to redirect stderr to
  58250. @return the exit code for the task
  58251. @throws IOException]]>
  58252. </doc>
  58253. </method>
  58254. <method name="signalTask"
  58255. abstract="true" native="false" synchronized="false"
  58256. static="false" final="false" visibility="public"
  58257. deprecated="not deprecated">
  58258. <param name="user" type="java.lang.String"/>
  58259. <param name="taskPid" type="int"/>
  58260. <param name="signal" type="org.apache.hadoop.util.ProcessTree.Signal"/>
  58261. <exception name="IOException" type="java.io.IOException"/>
  58262. <doc>
  58263. <![CDATA[Send a signal to a task pid as the user.
  58264. @param user the user name
  58265. @param taskPid the pid of the task
  58266. @param signal the id of the signal to send]]>
  58267. </doc>
  58268. </method>
  58269. <method name="deleteAsUser"
  58270. abstract="true" native="false" synchronized="false"
  58271. static="false" final="false" visibility="public"
  58272. deprecated="not deprecated">
  58273. <param name="user" type="java.lang.String"/>
  58274. <param name="subDir" type="java.lang.String"/>
  58275. <exception name="IOException" type="java.io.IOException"/>
  58276. <doc>
  58277. <![CDATA[Delete the user's files under all of the task tracker root directories.
  58278. @param user the user name
  58279. @param subDir the path relative to the user's subdirectory under
  58280. the task tracker root directories.
  58281. @throws IOException]]>
  58282. </doc>
  58283. </method>
  58284. <method name="createLogDir"
  58285. abstract="true" native="false" synchronized="false"
  58286. static="false" final="false" visibility="public"
  58287. deprecated="not deprecated">
  58288. <param name="taskID" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  58289. <param name="isCleanup" type="boolean"/>
  58290. <exception name="IOException" type="java.io.IOException"/>
  58291. <doc>
  58292. <![CDATA[Creates task log dir
  58293. @param taskID ID of the task
  58294. @param isCleanup If the task is cleanup task or not
  58295. @throws IOException]]>
  58296. </doc>
  58297. </method>
  58298. <method name="deleteLogAsUser"
  58299. abstract="true" native="false" synchronized="false"
  58300. static="false" final="false" visibility="public"
  58301. deprecated="not deprecated">
  58302. <param name="user" type="java.lang.String"/>
  58303. <param name="subDir" type="java.lang.String"/>
  58304. <exception name="IOException" type="java.io.IOException"/>
  58305. <doc>
  58306. <![CDATA[Delete the user's files under the userlogs directory.
  58307. @param user the user to work as
  58308. @param subDir the path under the userlogs directory.
  58309. @throws IOException]]>
  58310. </doc>
  58311. </method>
  58312. <method name="truncateLogsAsUser"
  58313. abstract="true" native="false" synchronized="false"
  58314. static="false" final="false" visibility="public"
  58315. deprecated="not deprecated">
  58316. <param name="user" type="java.lang.String"/>
  58317. <param name="allAttempts" type="java.util.List"/>
  58318. <exception name="IOException" type="java.io.IOException"/>
  58319. <doc>
  58320. <![CDATA[Run the passed command as the user
  58321. @param user
  58322. @param allAttempts the list of attempts that the JVM ran
  58323. @throws IOException]]>
  58324. </doc>
  58325. </method>
  58326. <method name="getRunAsUser" return="java.lang.String"
  58327. abstract="false" native="false" synchronized="false"
  58328. static="false" final="false" visibility="public"
  58329. deprecated="not deprecated">
  58330. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  58331. <doc>
  58332. <![CDATA[Returns the local unix user that a given job will run as.]]>
  58333. </doc>
  58334. </method>
  58335. <method name="writeCommand" return="java.lang.String"
  58336. abstract="false" native="false" synchronized="false"
  58337. static="true" final="false" visibility="protected"
  58338. deprecated="not deprecated">
  58339. <param name="cmdLine" type="java.lang.String"/>
  58340. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  58341. <param name="commandFile" type="org.apache.hadoop.fs.Path"/>
  58342. <exception name="IOException" type="java.io.IOException"/>
  58343. </method>
  58344. <method name="logOutput"
  58345. abstract="false" native="false" synchronized="false"
  58346. static="false" final="false" visibility="protected"
  58347. deprecated="not deprecated">
  58348. <param name="output" type="java.lang.String"/>
  58349. </method>
  58350. <field name="LOG" type="org.apache.commons.logging.Log"
  58351. transient="false" volatile="false"
  58352. static="true" final="true" visibility="public"
  58353. deprecated="not deprecated">
  58354. </field>
  58355. <field name="COMMAND_FILE" type="java.lang.String"
  58356. transient="false" volatile="false"
  58357. static="true" final="true" visibility="protected"
  58358. deprecated="not deprecated">
  58359. </field>
  58360. <field name="allocator" type="org.apache.hadoop.fs.LocalDirAllocator"
  58361. transient="false" volatile="false"
  58362. static="false" final="false" visibility="protected"
  58363. deprecated="not deprecated">
  58364. </field>
  58365. <field name="localStorage" type="org.apache.hadoop.mapred.TaskTracker.LocalStorage"
  58366. transient="false" volatile="false"
  58367. static="false" final="false" visibility="protected"
  58368. deprecated="not deprecated">
  58369. </field>
  58370. <field name="TASK_LAUNCH_SCRIPT_PERMISSION" type="org.apache.hadoop.fs.permission.FsPermission"
  58371. transient="false" volatile="false"
  58372. static="true" final="true" visibility="public"
  58373. deprecated="not deprecated">
  58374. </field>
  58375. <doc>
  58376. <![CDATA[Controls initialization, finalization and clean up of tasks, and
  58377. also the launching and killing of task JVMs.
  58378. This class defines the API for initializing, finalizing and cleaning
  58379. up of tasks, as also the launching and killing task JVMs.
  58380. Subclasses of this class will implement the logic required for
  58381. performing the actual actions.
  58382. <br/>
  58383. NOTE: This class is internal only class and not intended for users!!]]>
  58384. </doc>
  58385. </class>
  58386. <!-- end class org.apache.hadoop.mapred.TaskController -->
  58387. <!-- start class org.apache.hadoop.mapred.TaskGraphServlet -->
  58388. <class name="TaskGraphServlet" extends="javax.servlet.http.HttpServlet"
  58389. abstract="false"
  58390. static="false" final="false" visibility="public"
  58391. deprecated="not deprecated">
  58392. <constructor name="TaskGraphServlet"
  58393. static="false" final="false" visibility="public"
  58394. deprecated="not deprecated">
  58395. </constructor>
  58396. <method name="doGet"
  58397. abstract="false" native="false" synchronized="false"
  58398. static="false" final="false" visibility="public"
  58399. deprecated="not deprecated">
  58400. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  58401. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  58402. <exception name="ServletException" type="javax.servlet.ServletException"/>
  58403. <exception name="IOException" type="java.io.IOException"/>
  58404. </method>
  58405. <field name="width" type="int"
  58406. transient="false" volatile="false"
  58407. static="true" final="true" visibility="public"
  58408. deprecated="not deprecated">
  58409. <doc>
  58410. <![CDATA[height of the graph w/o margins]]>
  58411. </doc>
  58412. </field>
  58413. <field name="height" type="int"
  58414. transient="false" volatile="false"
  58415. static="true" final="true" visibility="public"
  58416. deprecated="not deprecated">
  58417. <doc>
  58418. <![CDATA[height of the graph w/o margins]]>
  58419. </doc>
  58420. </field>
  58421. <field name="ymargin" type="int"
  58422. transient="false" volatile="false"
  58423. static="true" final="true" visibility="public"
  58424. deprecated="not deprecated">
  58425. <doc>
  58426. <![CDATA[margin space on y axis]]>
  58427. </doc>
  58428. </field>
  58429. <field name="xmargin" type="int"
  58430. transient="false" volatile="false"
  58431. static="true" final="true" visibility="public"
  58432. deprecated="not deprecated">
  58433. <doc>
  58434. <![CDATA[margin space on x axis]]>
  58435. </doc>
  58436. </field>
  58437. <doc>
  58438. <![CDATA[The servlet that outputs svg graphics for map / reduce task
  58439. statuses]]>
  58440. </doc>
  58441. </class>
  58442. <!-- end class org.apache.hadoop.mapred.TaskGraphServlet -->
  58443. <!-- start class org.apache.hadoop.mapred.TaskID -->
  58444. <class name="TaskID" extends="org.apache.hadoop.mapreduce.TaskID"
  58445. abstract="false"
  58446. static="false" final="false" visibility="public"
  58447. deprecated="not deprecated">
  58448. <constructor name="TaskID" type="org.apache.hadoop.mapreduce.JobID, boolean, int"
  58449. static="false" final="false" visibility="public"
  58450. deprecated="not deprecated">
  58451. <doc>
  58452. <![CDATA[Constructs a TaskID object from given {@link JobID}.
  58453. @param jobId JobID that this tip belongs to
  58454. @param isMap whether the tip is a map
  58455. @param id the tip number]]>
  58456. </doc>
  58457. </constructor>
  58458. <constructor name="TaskID" type="java.lang.String, int, boolean, int"
  58459. static="false" final="false" visibility="public"
  58460. deprecated="not deprecated">
  58461. <doc>
  58462. <![CDATA[Constructs a TaskInProgressId object from given parts.
  58463. @param jtIdentifier jobTracker identifier
  58464. @param jobId job number
  58465. @param isMap whether the tip is a map
  58466. @param id the tip number]]>
  58467. </doc>
  58468. </constructor>
  58469. <constructor name="TaskID"
  58470. static="false" final="false" visibility="public"
  58471. deprecated="not deprecated">
  58472. </constructor>
  58473. <method name="downgrade" return="org.apache.hadoop.mapred.TaskID"
  58474. abstract="false" native="false" synchronized="false"
  58475. static="true" final="false" visibility="public"
  58476. deprecated="not deprecated">
  58477. <param name="old" type="org.apache.hadoop.mapreduce.TaskID"/>
  58478. <doc>
  58479. <![CDATA[Downgrade a new TaskID to an old one
  58480. @param old a new or old TaskID
  58481. @return either old or a new TaskID build to match old]]>
  58482. </doc>
  58483. </method>
  58484. <method name="read" return="org.apache.hadoop.mapred.TaskID"
  58485. abstract="false" native="false" synchronized="false"
  58486. static="true" final="false" visibility="public"
  58487. deprecated="not deprecated">
  58488. <param name="in" type="java.io.DataInput"/>
  58489. <exception name="IOException" type="java.io.IOException"/>
  58490. </method>
  58491. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  58492. abstract="false" native="false" synchronized="false"
  58493. static="false" final="false" visibility="public"
  58494. deprecated="not deprecated">
  58495. </method>
  58496. <method name="getTaskIDsPattern" return="java.lang.String"
  58497. abstract="false" native="false" synchronized="false"
  58498. static="true" final="false" visibility="public"
  58499. deprecated="not deprecated">
  58500. <param name="jtIdentifier" type="java.lang.String"/>
  58501. <param name="jobId" type="java.lang.Integer"/>
  58502. <param name="isMap" type="java.lang.Boolean"/>
  58503. <param name="taskId" type="java.lang.Integer"/>
  58504. <doc>
  58505. <![CDATA[Returns a regex pattern which matches task IDs. Arguments can
  58506. be given null, in which case that part of the regex will be generic.
  58507. For example to obtain a regex matching <i>the first map task</i>
  58508. of <i>any jobtracker</i>, of <i>any job</i>, we would use :
  58509. <pre>
  58510. TaskID.getTaskIDsPattern(null, null, true, 1);
  58511. </pre>
  58512. which will return :
  58513. <pre> "task_[^_]*_[0-9]*_m_000001*" </pre>
  58514. @param jtIdentifier jobTracker identifier, or null
  58515. @param jobId job number, or null
  58516. @param isMap whether the tip is a map, or null
  58517. @param taskId taskId number, or null
  58518. @return a regex pattern matching TaskIDs]]>
  58519. </doc>
  58520. </method>
  58521. <method name="forName" return="org.apache.hadoop.mapred.TaskID"
  58522. abstract="false" native="false" synchronized="false"
  58523. static="true" final="false" visibility="public"
  58524. deprecated="not deprecated">
  58525. <param name="str" type="java.lang.String"/>
  58526. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  58527. </method>
  58528. <doc>
  58529. <![CDATA[TaskID represents the immutable and unique identifier for
  58530. a Map or Reduce Task. Each TaskID encompasses multiple attempts made to
  58531. execute the Map or Reduce Task, each of which are uniquely indentified by
  58532. their TaskAttemptID.
  58533. TaskID consists of 3 parts. First part is the {@link JobID}, that this
  58534. TaskInProgress belongs to. Second part of the TaskID is either 'm' or 'r'
  58535. representing whether the task is a map task or a reduce task.
  58536. And the third part is the task number. <br>
  58537. An example TaskID is :
  58538. <code>task_200707121733_0003_m_000005</code> , which represents the
  58539. fifth map task in the third job running at the jobtracker
  58540. started at <code>200707121733</code>.
  58541. <p>
  58542. Applications should never construct or parse TaskID strings
  58543. , but rather use appropriate constructors or {@link #forName(String)}
  58544. method.
  58545. @see JobID
  58546. @see TaskAttemptID]]>
  58547. </doc>
  58548. </class>
  58549. <!-- end class org.apache.hadoop.mapred.TaskID -->
  58550. <!-- start class org.apache.hadoop.mapred.TaskLog -->
  58551. <class name="TaskLog" extends="java.lang.Object"
  58552. abstract="false"
  58553. static="false" final="false" visibility="public"
  58554. deprecated="not deprecated">
  58555. <constructor name="TaskLog"
  58556. static="false" final="false" visibility="public"
  58557. deprecated="not deprecated">
  58558. </constructor>
  58559. <method name="createTaskAttemptLogDir"
  58560. abstract="false" native="false" synchronized="false"
  58561. static="true" final="false" visibility="public"
  58562. deprecated="not deprecated">
  58563. <param name="taskID" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  58564. <param name="isCleanup" type="boolean"/>
  58565. <param name="localDirs" type="java.lang.String[]"/>
  58566. <exception name="IOException" type="java.io.IOException"/>
  58567. <doc>
  58568. <![CDATA[Create log directory for the given attempt. This involves creating the
  58569. following and setting proper permissions for the new directories
  58570. <br>{hadoop.log.dir}/userlogs/<jobid>
  58571. <br>{hadoop.log.dir}/userlogs/<jobid>/<attempt-id-as-symlink>
  58572. <br>{one of the mapred-local-dirs}/userlogs/<jobid>
  58573. <br>{one of the mapred-local-dirs}/userlogs/<jobid>/<attempt-id>
  58574. @param taskID attempt-id for which log dir is to be created
  58575. @param isCleanup Is this attempt a cleanup attempt ?
  58576. @param localDirs mapred local directories
  58577. @throws IOException]]>
  58578. </doc>
  58579. </method>
  58580. <method name="getTaskAttemptLogDir" return="java.lang.String"
  58581. abstract="false" native="false" synchronized="false"
  58582. static="true" final="false" visibility="public"
  58583. deprecated="not deprecated">
  58584. <param name="taskID" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  58585. <param name="cleanupSuffix" type="java.lang.String"/>
  58586. <param name="localDirs" type="java.lang.String[]"/>
  58587. <exception name="IOException" type="java.io.IOException"/>
  58588. <doc>
  58589. <![CDATA[Get attempt log directory path for the given attempt-id under randomly
  58590. selected mapred local directory.
  58591. @param taskID attempt-id for which log dir path is needed
  58592. @param cleanupSuffix ".cleanup" if this attempt is a cleanup attempt
  58593. @param localDirs mapred local directories
  58594. @return target task attempt log directory
  58595. @throws IOException]]>
  58596. </doc>
  58597. </method>
  58598. <method name="getTaskLogFile" return="java.io.File"
  58599. abstract="false" native="false" synchronized="false"
  58600. static="true" final="false" visibility="public"
  58601. deprecated="not deprecated">
  58602. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  58603. <param name="isCleanup" type="boolean"/>
  58604. <param name="filter" type="org.apache.hadoop.mapred.TaskLog.LogName"/>
  58605. </method>
  58606. <method name="getBaseLogDir" return="java.lang.String"
  58607. abstract="false" native="false" synchronized="false"
  58608. static="true" final="false" visibility="public"
  58609. deprecated="not deprecated">
  58610. </method>
  58611. <method name="syncLogs"
  58612. abstract="false" native="false" synchronized="true"
  58613. static="true" final="false" visibility="public"
  58614. deprecated="not deprecated">
  58615. <param name="logLocation" type="java.lang.String"/>
  58616. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  58617. <param name="isCleanup" type="boolean"/>
  58618. <param name="segmented" type="boolean"/>
  58619. <exception name="IOException" type="java.io.IOException"/>
  58620. </method>
  58621. <method name="getTaskLogLength" return="long"
  58622. abstract="false" native="false" synchronized="false"
  58623. static="true" final="false" visibility="public"
  58624. deprecated="not deprecated">
  58625. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  58626. <doc>
  58627. <![CDATA[Get the desired maximum length of task's logs.
  58628. @param conf the job to look in
  58629. @return the number of bytes to cap the log files at]]>
  58630. </doc>
  58631. </method>
  58632. <method name="captureOutAndError" return="java.util.List"
  58633. abstract="false" native="false" synchronized="false"
  58634. static="true" final="false" visibility="public"
  58635. deprecated="not deprecated">
  58636. <param name="cmd" type="java.util.List"/>
  58637. <param name="stdoutFilename" type="java.io.File"/>
  58638. <param name="stderrFilename" type="java.io.File"/>
  58639. <param name="tailLength" type="long"/>
  58640. <exception name="IOException" type="java.io.IOException"/>
  58641. <doc>
  58642. <![CDATA[Wrap a command in a shell to capture stdout and stderr to files.
  58643. If the tailLength is 0, the entire output will be saved.
  58644. @param cmd The command and the arguments that should be run
  58645. @param stdoutFilename The filename that stdout should be saved to
  58646. @param stderrFilename The filename that stderr should be saved to
  58647. @param tailLength The length of the tail to be saved.
  58648. @return the modified command that should be run]]>
  58649. </doc>
  58650. </method>
  58651. <method name="captureOutAndError" return="java.util.List"
  58652. abstract="false" native="false" synchronized="false"
  58653. static="true" final="false" visibility="public"
  58654. deprecated="not deprecated">
  58655. <param name="setup" type="java.util.List"/>
  58656. <param name="cmd" type="java.util.List"/>
  58657. <param name="stdoutFilename" type="java.io.File"/>
  58658. <param name="stderrFilename" type="java.io.File"/>
  58659. <param name="tailLength" type="long"/>
  58660. <exception name="IOException" type="java.io.IOException"/>
  58661. <doc>
  58662. <![CDATA[Wrap a command in a shell to capture stdout and stderr to files.
  58663. Setup commands such as setting memory limit can be passed which
  58664. will be executed before exec.
  58665. If the tailLength is 0, the entire output will be saved.
  58666. @param setup The setup commands for the execed process.
  58667. @param cmd The command and the arguments that should be run
  58668. @param stdoutFilename The filename that stdout should be saved to
  58669. @param stderrFilename The filename that stderr should be saved to
  58670. @param tailLength The length of the tail to be saved.
  58671. @return the modified command that should be run]]>
  58672. </doc>
  58673. </method>
  58674. <method name="captureOutAndError" return="java.util.List"
  58675. abstract="false" native="false" synchronized="false"
  58676. static="true" final="false" visibility="public"
  58677. deprecated="pidFiles are no more used. Instead pid is exported to
  58678. env variable JVM_PID.">
  58679. <param name="setup" type="java.util.List"/>
  58680. <param name="cmd" type="java.util.List"/>
  58681. <param name="stdoutFilename" type="java.io.File"/>
  58682. <param name="stderrFilename" type="java.io.File"/>
  58683. <param name="tailLength" type="long"/>
  58684. <param name="pidFileName" type="java.lang.String"/>
  58685. <exception name="IOException" type="java.io.IOException"/>
  58686. <doc>
  58687. <![CDATA[Wrap a command in a shell to capture stdout and stderr to files.
  58688. Setup commands such as setting memory limit can be passed which
  58689. will be executed before exec.
  58690. If the tailLength is 0, the entire output will be saved.
  58691. @param setup The setup commands for the execed process.
  58692. @param cmd The command and the arguments that should be run
  58693. @param stdoutFilename The filename that stdout should be saved to
  58694. @param stderrFilename The filename that stderr should be saved to
  58695. @param tailLength The length of the tail to be saved.
  58696. @deprecated pidFiles are no more used. Instead pid is exported to
  58697. env variable JVM_PID.
  58698. @return the modified command that should be run]]>
  58699. </doc>
  58700. </method>
  58701. <method name="captureOutAndError" return="java.util.List"
  58702. abstract="false" native="false" synchronized="false"
  58703. static="true" final="false" visibility="public"
  58704. deprecated="pidFiles are no more used. Instead pid is exported to
  58705. env variable JVM_PID.">
  58706. <param name="setup" type="java.util.List"/>
  58707. <param name="cmd" type="java.util.List"/>
  58708. <param name="stdoutFilename" type="java.io.File"/>
  58709. <param name="stderrFilename" type="java.io.File"/>
  58710. <param name="tailLength" type="long"/>
  58711. <param name="useSetsid" type="boolean"/>
  58712. <param name="pidFileName" type="java.lang.String"/>
  58713. <exception name="IOException" type="java.io.IOException"/>
  58714. <doc>
  58715. <![CDATA[Wrap a command in a shell to capture stdout and stderr to files.
  58716. Setup commands such as setting memory limit can be passed which
  58717. will be executed before exec.
  58718. If the tailLength is 0, the entire output will be saved.
  58719. @param setup The setup commands for the execed process.
  58720. @param cmd The command and the arguments that should be run
  58721. @param stdoutFilename The filename that stdout should be saved to
  58722. @param stderrFilename The filename that stderr should be saved to
  58723. @param tailLength The length of the tail to be saved.
  58724. @param useSetsid Should setsid be used in the command or not.
  58725. @deprecated pidFiles are no more used. Instead pid is exported to
  58726. env variable JVM_PID.
  58727. @return the modified command that should be run]]>
  58728. </doc>
  58729. </method>
  58730. <method name="captureOutAndError" return="java.util.List"
  58731. abstract="false" native="false" synchronized="false"
  58732. static="true" final="false" visibility="public"
  58733. deprecated="not deprecated">
  58734. <param name="setup" type="java.util.List"/>
  58735. <param name="cmd" type="java.util.List"/>
  58736. <param name="stdoutFilename" type="java.io.File"/>
  58737. <param name="stderrFilename" type="java.io.File"/>
  58738. <param name="tailLength" type="long"/>
  58739. <param name="useSetsid" type="boolean"/>
  58740. <exception name="IOException" type="java.io.IOException"/>
  58741. <doc>
  58742. <![CDATA[Wrap a command in a shell to capture stdout and stderr to files.
  58743. Setup commands such as setting memory limit can be passed which
  58744. will be executed before exec.
  58745. If the tailLength is 0, the entire output will be saved.
  58746. @param setup The setup commands for the execed process.
  58747. @param cmd The command and the arguments that should be run
  58748. @param stdoutFilename The filename that stdout should be saved to
  58749. @param stderrFilename The filename that stderr should be saved to
  58750. @param tailLength The length of the tail to be saved.
  58751. @param useSetsid Should setsid be used in the command or not.
  58752. @return the modified command that should be run]]>
  58753. </doc>
  58754. </method>
  58755. <method name="addCommand" return="java.lang.String"
  58756. abstract="false" native="false" synchronized="false"
  58757. static="true" final="false" visibility="public"
  58758. deprecated="not deprecated">
  58759. <param name="cmd" type="java.util.List"/>
  58760. <param name="isExecutable" type="boolean"/>
  58761. <exception name="IOException" type="java.io.IOException"/>
  58762. <doc>
  58763. <![CDATA[Add quotes to each of the command strings and
  58764. return as a single string
  58765. @param cmd The command to be quoted
  58766. @param isExecutable makes shell path if the first
  58767. argument is executable
  58768. @return returns The quoted string.
  58769. @throws IOException]]>
  58770. </doc>
  58771. </method>
  58772. <method name="captureDebugOut" return="java.util.List"
  58773. abstract="false" native="false" synchronized="false"
  58774. static="true" final="false" visibility="public"
  58775. deprecated="not deprecated">
  58776. <param name="cmd" type="java.util.List"/>
  58777. <param name="debugoutFilename" type="java.io.File"/>
  58778. <exception name="IOException" type="java.io.IOException"/>
  58779. <doc>
  58780. <![CDATA[Wrap a command in a shell to capture debug script's
  58781. stdout and stderr to debugout.
  58782. @param cmd The command and the arguments that should be run
  58783. @param debugoutFilename The filename that stdout and stderr
  58784. should be saved to.
  58785. @return the modified command that should be run
  58786. @throws IOException]]>
  58787. </doc>
  58788. </method>
  58789. <method name="getUserLogDir" return="java.io.File"
  58790. abstract="false" native="false" synchronized="false"
  58791. static="true" final="false" visibility="public"
  58792. deprecated="not deprecated">
  58793. </method>
  58794. <method name="getJobDir" return="java.io.File"
  58795. abstract="false" native="false" synchronized="false"
  58796. static="true" final="false" visibility="public"
  58797. deprecated="not deprecated">
  58798. <param name="jobid" type="java.lang.String"/>
  58799. <doc>
  58800. <![CDATA[Get the user log directory for the job jobid.
  58801. @param jobid string representation of the jobid
  58802. @return user log directory for the job]]>
  58803. </doc>
  58804. </method>
  58805. <method name="getJobDir" return="java.io.File"
  58806. abstract="false" native="false" synchronized="false"
  58807. static="true" final="false" visibility="public"
  58808. deprecated="not deprecated">
  58809. <param name="jobid" type="org.apache.hadoop.mapreduce.JobID"/>
  58810. <doc>
  58811. <![CDATA[Get the user log directory for the job jobid.
  58812. @param jobid the jobid object
  58813. @return user log directory for the job]]>
  58814. </doc>
  58815. </method>
  58816. <doc>
  58817. <![CDATA[A simple logger to handle the task-specific user logs.
  58818. This class uses the system property <code>hadoop.log.dir</code>.
  58819. This class is for Map/Reduce internal use only.]]>
  58820. </doc>
  58821. </class>
  58822. <!-- end class org.apache.hadoop.mapred.TaskLog -->
  58823. <!-- start class org.apache.hadoop.mapred.TaskLog.LogName -->
  58824. <class name="TaskLog.LogName" extends="java.lang.Enum"
  58825. abstract="false"
  58826. static="true" final="true" visibility="public"
  58827. deprecated="not deprecated">
  58828. <method name="values" return="org.apache.hadoop.mapred.TaskLog.LogName[]"
  58829. abstract="false" native="false" synchronized="false"
  58830. static="true" final="false" visibility="public"
  58831. deprecated="not deprecated">
  58832. </method>
  58833. <method name="valueOf" return="org.apache.hadoop.mapred.TaskLog.LogName"
  58834. abstract="false" native="false" synchronized="false"
  58835. static="true" final="false" visibility="public"
  58836. deprecated="not deprecated">
  58837. <param name="name" type="java.lang.String"/>
  58838. </method>
  58839. <method name="toString" return="java.lang.String"
  58840. abstract="false" native="false" synchronized="false"
  58841. static="false" final="false" visibility="public"
  58842. deprecated="not deprecated">
  58843. </method>
  58844. <field name="STDOUT" type="org.apache.hadoop.mapred.TaskLog.LogName"
  58845. transient="false" volatile="false"
  58846. static="true" final="true" visibility="public"
  58847. deprecated="not deprecated">
  58848. <doc>
  58849. <![CDATA[Log on the stdout of the task.]]>
  58850. </doc>
  58851. </field>
  58852. <field name="STDERR" type="org.apache.hadoop.mapred.TaskLog.LogName"
  58853. transient="false" volatile="false"
  58854. static="true" final="true" visibility="public"
  58855. deprecated="not deprecated">
  58856. <doc>
  58857. <![CDATA[Log on the stderr of the task.]]>
  58858. </doc>
  58859. </field>
  58860. <field name="SYSLOG" type="org.apache.hadoop.mapred.TaskLog.LogName"
  58861. transient="false" volatile="false"
  58862. static="true" final="true" visibility="public"
  58863. deprecated="not deprecated">
  58864. <doc>
  58865. <![CDATA[Log on the map-reduce system logs of the task.]]>
  58866. </doc>
  58867. </field>
  58868. <field name="PROFILE" type="org.apache.hadoop.mapred.TaskLog.LogName"
  58869. transient="false" volatile="false"
  58870. static="true" final="true" visibility="public"
  58871. deprecated="not deprecated">
  58872. <doc>
  58873. <![CDATA[The java profiler information.]]>
  58874. </doc>
  58875. </field>
  58876. <field name="DEBUGOUT" type="org.apache.hadoop.mapred.TaskLog.LogName"
  58877. transient="false" volatile="false"
  58878. static="true" final="true" visibility="public"
  58879. deprecated="not deprecated">
  58880. <doc>
  58881. <![CDATA[Log the debug script's stdout]]>
  58882. </doc>
  58883. </field>
  58884. <doc>
  58885. <![CDATA[The filter for userlogs.]]>
  58886. </doc>
  58887. </class>
  58888. <!-- end class org.apache.hadoop.mapred.TaskLog.LogName -->
  58889. <!-- start class org.apache.hadoop.mapred.TaskLogAppender -->
  58890. <class name="TaskLogAppender" extends="org.apache.log4j.FileAppender"
  58891. abstract="false"
  58892. static="false" final="false" visibility="public"
  58893. deprecated="not deprecated">
  58894. <constructor name="TaskLogAppender"
  58895. static="false" final="false" visibility="public"
  58896. deprecated="not deprecated">
  58897. </constructor>
  58898. <method name="activateOptions"
  58899. abstract="false" native="false" synchronized="false"
  58900. static="false" final="false" visibility="public"
  58901. deprecated="not deprecated">
  58902. </method>
  58903. <method name="append"
  58904. abstract="false" native="false" synchronized="false"
  58905. static="false" final="false" visibility="public"
  58906. deprecated="not deprecated">
  58907. <param name="event" type="org.apache.log4j.spi.LoggingEvent"/>
  58908. </method>
  58909. <method name="flush"
  58910. abstract="false" native="false" synchronized="false"
  58911. static="false" final="false" visibility="public"
  58912. deprecated="not deprecated">
  58913. </method>
  58914. <method name="close"
  58915. abstract="false" native="false" synchronized="true"
  58916. static="false" final="false" visibility="public"
  58917. deprecated="not deprecated">
  58918. </method>
  58919. <method name="getTaskId" return="java.lang.String"
  58920. abstract="false" native="false" synchronized="false"
  58921. static="false" final="false" visibility="public"
  58922. deprecated="not deprecated">
  58923. <doc>
  58924. <![CDATA[Getter/Setter methods for log4j.]]>
  58925. </doc>
  58926. </method>
  58927. <method name="setTaskId"
  58928. abstract="false" native="false" synchronized="false"
  58929. static="false" final="false" visibility="public"
  58930. deprecated="not deprecated">
  58931. <param name="taskId" type="java.lang.String"/>
  58932. </method>
  58933. <method name="getTotalLogFileSize" return="long"
  58934. abstract="false" native="false" synchronized="false"
  58935. static="false" final="false" visibility="public"
  58936. deprecated="not deprecated">
  58937. </method>
  58938. <method name="setTotalLogFileSize"
  58939. abstract="false" native="false" synchronized="false"
  58940. static="false" final="false" visibility="public"
  58941. deprecated="not deprecated">
  58942. <param name="logSize" type="long"/>
  58943. </method>
  58944. <method name="setIsCleanup"
  58945. abstract="false" native="false" synchronized="false"
  58946. static="false" final="false" visibility="public"
  58947. deprecated="not deprecated">
  58948. <param name="isCleanup" type="boolean"/>
  58949. <doc>
  58950. <![CDATA[Set whether the task is a cleanup attempt or not.
  58951. @param isCleanup
  58952. true if the task is cleanup attempt, false otherwise.]]>
  58953. </doc>
  58954. </method>
  58955. <method name="getIsCleanup" return="boolean"
  58956. abstract="false" native="false" synchronized="false"
  58957. static="false" final="false" visibility="public"
  58958. deprecated="not deprecated">
  58959. <doc>
  58960. <![CDATA[Get whether task is cleanup attempt or not.
  58961. @return true if the task is cleanup attempt, false otherwise.]]>
  58962. </doc>
  58963. </method>
  58964. <doc>
  58965. <![CDATA[A simple log4j-appender for the task child's
  58966. map-reduce system logs.]]>
  58967. </doc>
  58968. </class>
  58969. <!-- end class org.apache.hadoop.mapred.TaskLogAppender -->
  58970. <!-- start class org.apache.hadoop.mapred.TaskLogServlet -->
  58971. <class name="TaskLogServlet" extends="javax.servlet.http.HttpServlet"
  58972. abstract="false"
  58973. static="false" final="false" visibility="public"
  58974. deprecated="not deprecated">
  58975. <constructor name="TaskLogServlet"
  58976. static="false" final="false" visibility="public"
  58977. deprecated="not deprecated">
  58978. </constructor>
  58979. <method name="getTaskLogUrl" return="java.lang.String"
  58980. abstract="false" native="false" synchronized="false"
  58981. static="true" final="false" visibility="public"
  58982. deprecated="not deprecated">
  58983. <param name="taskTrackerHostName" type="java.lang.String"/>
  58984. <param name="httpPort" type="java.lang.String"/>
  58985. <param name="taskAttemptID" type="java.lang.String"/>
  58986. <doc>
  58987. <![CDATA[Construct the taskLogUrl
  58988. @param taskTrackerHostName
  58989. @param httpPort
  58990. @param taskAttemptID
  58991. @return the taskLogUrl]]>
  58992. </doc>
  58993. </method>
  58994. <method name="doGet"
  58995. abstract="false" native="false" synchronized="false"
  58996. static="false" final="false" visibility="public"
  58997. deprecated="not deprecated">
  58998. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  58999. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  59000. <exception name="ServletException" type="javax.servlet.ServletException"/>
  59001. <exception name="IOException" type="java.io.IOException"/>
  59002. <doc>
  59003. <![CDATA[Get the logs via http.]]>
  59004. </doc>
  59005. </method>
  59006. <doc>
  59007. <![CDATA[A servlet that is run by the TaskTrackers to provide the task logs via http.]]>
  59008. </doc>
  59009. </class>
  59010. <!-- end class org.apache.hadoop.mapred.TaskLogServlet -->
  59011. <!-- start class org.apache.hadoop.mapred.TaskLogsTruncater -->
  59012. <class name="TaskLogsTruncater" extends="java.lang.Object"
  59013. abstract="false"
  59014. static="false" final="false" visibility="public"
  59015. deprecated="not deprecated">
  59016. <constructor name="TaskLogsTruncater" type="org.apache.hadoop.conf.Configuration"
  59017. static="false" final="false" visibility="public"
  59018. deprecated="not deprecated">
  59019. </constructor>
  59020. <method name="shouldTruncateLogs" return="boolean"
  59021. abstract="false" native="false" synchronized="false"
  59022. static="false" final="false" visibility="public"
  59023. deprecated="not deprecated">
  59024. <param name="lInfo" type="org.apache.hadoop.mapreduce.server.tasktracker.JVMInfo"/>
  59025. <exception name="IOException" type="java.io.IOException"/>
  59026. <doc>
  59027. <![CDATA[Check the log file sizes generated by the attempts that ran in a
  59028. particular JVM
  59029. @param lInfo
  59030. @return is truncation required?
  59031. @throws IOException]]>
  59032. </doc>
  59033. </method>
  59034. <method name="truncateLogs"
  59035. abstract="false" native="false" synchronized="false"
  59036. static="false" final="false" visibility="public"
  59037. deprecated="not deprecated">
  59038. <param name="lInfo" type="org.apache.hadoop.mapreduce.server.tasktracker.JVMInfo"/>
  59039. <doc>
  59040. <![CDATA[Process the removed task's logs. This involves truncating them to
  59041. retainSize.]]>
  59042. </doc>
  59043. </method>
  59044. <method name="main"
  59045. abstract="false" native="false" synchronized="false"
  59046. static="true" final="false" visibility="public"
  59047. deprecated="not deprecated">
  59048. <param name="args" type="java.lang.String[]"/>
  59049. <exception name="IOException" type="java.io.IOException"/>
  59050. </method>
  59051. <doc>
  59052. <![CDATA[The class for truncating the user logs.
  59053. Should be used only by {@link UserLogManager}.]]>
  59054. </doc>
  59055. </class>
  59056. <!-- end class org.apache.hadoop.mapred.TaskLogsTruncater -->
  59057. <!-- start class org.apache.hadoop.mapred.TaskReport -->
  59058. <class name="TaskReport" extends="java.lang.Object"
  59059. abstract="false"
  59060. static="false" final="false" visibility="public"
  59061. deprecated="not deprecated">
  59062. <implements name="org.apache.hadoop.io.Writable"/>
  59063. <constructor name="TaskReport"
  59064. static="false" final="false" visibility="public"
  59065. deprecated="not deprecated">
  59066. </constructor>
  59067. <method name="getTaskId" return="java.lang.String"
  59068. abstract="false" native="false" synchronized="false"
  59069. static="false" final="false" visibility="public"
  59070. deprecated="use {@link #getTaskID()} instead">
  59071. <doc>
  59072. <![CDATA[@deprecated use {@link #getTaskID()} instead]]>
  59073. </doc>
  59074. </method>
  59075. <method name="getTaskID" return="org.apache.hadoop.mapred.TaskID"
  59076. abstract="false" native="false" synchronized="false"
  59077. static="false" final="false" visibility="public"
  59078. deprecated="not deprecated">
  59079. <doc>
  59080. <![CDATA[The id of the task.]]>
  59081. </doc>
  59082. </method>
  59083. <method name="getProgress" return="float"
  59084. abstract="false" native="false" synchronized="false"
  59085. static="false" final="false" visibility="public"
  59086. deprecated="not deprecated">
  59087. <doc>
  59088. <![CDATA[The amount completed, between zero and one.]]>
  59089. </doc>
  59090. </method>
  59091. <method name="getState" return="java.lang.String"
  59092. abstract="false" native="false" synchronized="false"
  59093. static="false" final="false" visibility="public"
  59094. deprecated="not deprecated">
  59095. <doc>
  59096. <![CDATA[The most recent state, reported by a {@link Reporter}.]]>
  59097. </doc>
  59098. </method>
  59099. <method name="getDiagnostics" return="java.lang.String[]"
  59100. abstract="false" native="false" synchronized="false"
  59101. static="false" final="false" visibility="public"
  59102. deprecated="not deprecated">
  59103. <doc>
  59104. <![CDATA[A list of error messages.]]>
  59105. </doc>
  59106. </method>
  59107. <method name="getCounters" return="org.apache.hadoop.mapred.Counters"
  59108. abstract="false" native="false" synchronized="false"
  59109. static="false" final="false" visibility="public"
  59110. deprecated="not deprecated">
  59111. <doc>
  59112. <![CDATA[A table of counters.]]>
  59113. </doc>
  59114. </method>
  59115. <method name="getCurrentStatus" return="org.apache.hadoop.mapred.TIPStatus"
  59116. abstract="false" native="false" synchronized="false"
  59117. static="false" final="false" visibility="public"
  59118. deprecated="not deprecated">
  59119. <doc>
  59120. <![CDATA[The current status]]>
  59121. </doc>
  59122. </method>
  59123. <method name="getFinishTime" return="long"
  59124. abstract="false" native="false" synchronized="false"
  59125. static="false" final="false" visibility="public"
  59126. deprecated="not deprecated">
  59127. <doc>
  59128. <![CDATA[Get finish time of task.
  59129. @return 0, if finish time was not set else returns finish time.]]>
  59130. </doc>
  59131. </method>
  59132. <method name="getStartTime" return="long"
  59133. abstract="false" native="false" synchronized="false"
  59134. static="false" final="false" visibility="public"
  59135. deprecated="not deprecated">
  59136. <doc>
  59137. <![CDATA[Get start time of task.
  59138. @return 0 if start time was not set, else start time.]]>
  59139. </doc>
  59140. </method>
  59141. <method name="setSuccessfulAttempt"
  59142. abstract="false" native="false" synchronized="false"
  59143. static="false" final="false" visibility="public"
  59144. deprecated="not deprecated">
  59145. <param name="t" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  59146. <doc>
  59147. <![CDATA[set successful attempt ID of the task.]]>
  59148. </doc>
  59149. </method>
  59150. <method name="getSuccessfulTaskAttempt" return="org.apache.hadoop.mapred.TaskAttemptID"
  59151. abstract="false" native="false" synchronized="false"
  59152. static="false" final="false" visibility="public"
  59153. deprecated="not deprecated">
  59154. <doc>
  59155. <![CDATA[Get the attempt ID that took this task to completion]]>
  59156. </doc>
  59157. </method>
  59158. <method name="setRunningTaskAttempts"
  59159. abstract="false" native="false" synchronized="false"
  59160. static="false" final="false" visibility="public"
  59161. deprecated="not deprecated">
  59162. <param name="runningAttempts" type="java.util.Collection"/>
  59163. <doc>
  59164. <![CDATA[set running attempt(s) of the task.]]>
  59165. </doc>
  59166. </method>
  59167. <method name="getRunningTaskAttempts" return="java.util.Collection"
  59168. abstract="false" native="false" synchronized="false"
  59169. static="false" final="false" visibility="public"
  59170. deprecated="not deprecated">
  59171. <doc>
  59172. <![CDATA[Get the running task attempt IDs for this task]]>
  59173. </doc>
  59174. </method>
  59175. <method name="equals" return="boolean"
  59176. abstract="false" native="false" synchronized="false"
  59177. static="false" final="false" visibility="public"
  59178. deprecated="not deprecated">
  59179. <param name="o" type="java.lang.Object"/>
  59180. </method>
  59181. <method name="hashCode" return="int"
  59182. abstract="false" native="false" synchronized="false"
  59183. static="false" final="false" visibility="public"
  59184. deprecated="not deprecated">
  59185. </method>
  59186. <method name="write"
  59187. abstract="false" native="false" synchronized="false"
  59188. static="false" final="false" visibility="public"
  59189. deprecated="not deprecated">
  59190. <param name="out" type="java.io.DataOutput"/>
  59191. <exception name="IOException" type="java.io.IOException"/>
  59192. </method>
  59193. <method name="readFields"
  59194. abstract="false" native="false" synchronized="false"
  59195. static="false" final="false" visibility="public"
  59196. deprecated="not deprecated">
  59197. <param name="in" type="java.io.DataInput"/>
  59198. <exception name="IOException" type="java.io.IOException"/>
  59199. </method>
  59200. <doc>
  59201. <![CDATA[A report on the state of a task.]]>
  59202. </doc>
  59203. </class>
  59204. <!-- end class org.apache.hadoop.mapred.TaskReport -->
  59205. <!-- start class org.apache.hadoop.mapred.TaskStatus -->
  59206. <class name="TaskStatus" extends="java.lang.Object"
  59207. abstract="true"
  59208. static="false" final="false" visibility="public"
  59209. deprecated="not deprecated">
  59210. <implements name="org.apache.hadoop.io.Writable"/>
  59211. <implements name="java.lang.Cloneable"/>
  59212. <constructor name="TaskStatus"
  59213. static="false" final="false" visibility="public"
  59214. deprecated="not deprecated">
  59215. </constructor>
  59216. <constructor name="TaskStatus" type="org.apache.hadoop.mapred.TaskAttemptID, float, int, org.apache.hadoop.mapred.TaskStatus.State, java.lang.String, java.lang.String, java.lang.String, org.apache.hadoop.mapred.TaskStatus.Phase, org.apache.hadoop.mapred.Counters"
  59217. static="false" final="false" visibility="public"
  59218. deprecated="not deprecated">
  59219. </constructor>
  59220. <method name="getTaskID" return="org.apache.hadoop.mapred.TaskAttemptID"
  59221. abstract="false" native="false" synchronized="false"
  59222. static="false" final="false" visibility="public"
  59223. deprecated="not deprecated">
  59224. </method>
  59225. <method name="getIsMap" return="boolean"
  59226. abstract="true" native="false" synchronized="false"
  59227. static="false" final="false" visibility="public"
  59228. deprecated="not deprecated">
  59229. </method>
  59230. <method name="getNumSlots" return="int"
  59231. abstract="false" native="false" synchronized="false"
  59232. static="false" final="false" visibility="public"
  59233. deprecated="not deprecated">
  59234. </method>
  59235. <method name="getProgress" return="float"
  59236. abstract="false" native="false" synchronized="false"
  59237. static="false" final="false" visibility="public"
  59238. deprecated="not deprecated">
  59239. </method>
  59240. <method name="setProgress"
  59241. abstract="false" native="false" synchronized="false"
  59242. static="false" final="false" visibility="public"
  59243. deprecated="not deprecated">
  59244. <param name="progress" type="float"/>
  59245. </method>
  59246. <method name="getRunState" return="org.apache.hadoop.mapred.TaskStatus.State"
  59247. abstract="false" native="false" synchronized="false"
  59248. static="false" final="false" visibility="public"
  59249. deprecated="not deprecated">
  59250. </method>
  59251. <method name="getTaskTracker" return="java.lang.String"
  59252. abstract="false" native="false" synchronized="false"
  59253. static="false" final="false" visibility="public"
  59254. deprecated="not deprecated">
  59255. </method>
  59256. <method name="setTaskTracker"
  59257. abstract="false" native="false" synchronized="false"
  59258. static="false" final="false" visibility="public"
  59259. deprecated="not deprecated">
  59260. <param name="tracker" type="java.lang.String"/>
  59261. </method>
  59262. <method name="setRunState"
  59263. abstract="false" native="false" synchronized="false"
  59264. static="false" final="false" visibility="public"
  59265. deprecated="not deprecated">
  59266. <param name="runState" type="org.apache.hadoop.mapred.TaskStatus.State"/>
  59267. </method>
  59268. <method name="getDiagnosticInfo" return="java.lang.String"
  59269. abstract="false" native="false" synchronized="false"
  59270. static="false" final="false" visibility="public"
  59271. deprecated="not deprecated">
  59272. </method>
  59273. <method name="setDiagnosticInfo"
  59274. abstract="false" native="false" synchronized="false"
  59275. static="false" final="false" visibility="public"
  59276. deprecated="not deprecated">
  59277. <param name="info" type="java.lang.String"/>
  59278. </method>
  59279. <method name="getStateString" return="java.lang.String"
  59280. abstract="false" native="false" synchronized="false"
  59281. static="false" final="false" visibility="public"
  59282. deprecated="not deprecated">
  59283. </method>
  59284. <method name="setStateString"
  59285. abstract="false" native="false" synchronized="false"
  59286. static="false" final="false" visibility="public"
  59287. deprecated="not deprecated">
  59288. <param name="stateString" type="java.lang.String"/>
  59289. </method>
  59290. <method name="getNextRecordRange" return="org.apache.hadoop.mapred.SortedRanges.Range"
  59291. abstract="false" native="false" synchronized="false"
  59292. static="false" final="false" visibility="public"
  59293. deprecated="not deprecated">
  59294. <doc>
  59295. <![CDATA[Get the next record range which is going to be processed by Task.
  59296. @return nextRecordRange]]>
  59297. </doc>
  59298. </method>
  59299. <method name="setNextRecordRange"
  59300. abstract="false" native="false" synchronized="false"
  59301. static="false" final="false" visibility="public"
  59302. deprecated="not deprecated">
  59303. <param name="nextRecordRange" type="org.apache.hadoop.mapred.SortedRanges.Range"/>
  59304. <doc>
  59305. <![CDATA[Set the next record range which is going to be processed by Task.
  59306. @param nextRecordRange]]>
  59307. </doc>
  59308. </method>
  59309. <method name="getFinishTime" return="long"
  59310. abstract="false" native="false" synchronized="false"
  59311. static="false" final="false" visibility="public"
  59312. deprecated="not deprecated">
  59313. <doc>
  59314. <![CDATA[Get task finish time. if shuffleFinishTime and sortFinishTime
  59315. are not set before, these are set to finishTime. It takes care of
  59316. the case when shuffle, sort and finish are completed with in the
  59317. heartbeat interval and are not reported separately. if task state is
  59318. TaskStatus.FAILED then finish time represents when the task failed.
  59319. @return finish time of the task.]]>
  59320. </doc>
  59321. </method>
  59322. <method name="getShuffleFinishTime" return="long"
  59323. abstract="false" native="false" synchronized="false"
  59324. static="false" final="false" visibility="public"
  59325. deprecated="not deprecated">
  59326. <doc>
  59327. <![CDATA[Get shuffle finish time for the task. If shuffle finish time was
  59328. not set due to shuffle/sort/finish phases ending within same
  59329. heartbeat interval, it is set to finish time of next phase i.e. sort
  59330. or task finish when these are set.
  59331. @return 0 if shuffleFinishTime, sortFinishTime and finish time are not set. else
  59332. it returns approximate shuffle finish time.]]>
  59333. </doc>
  59334. </method>
  59335. <method name="getSortFinishTime" return="long"
  59336. abstract="false" native="false" synchronized="false"
  59337. static="false" final="false" visibility="public"
  59338. deprecated="not deprecated">
  59339. <doc>
  59340. <![CDATA[Get sort finish time for the task,. If sort finish time was not set
  59341. due to sort and reduce phase finishing in same heartebat interval, it is
  59342. set to finish time, when finish time is set.
  59343. @return 0 if sort finish time and finish time are not set, else returns sort
  59344. finish time if that is set, else it returns finish time.]]>
  59345. </doc>
  59346. </method>
  59347. <method name="getStartTime" return="long"
  59348. abstract="false" native="false" synchronized="false"
  59349. static="false" final="false" visibility="public"
  59350. deprecated="not deprecated">
  59351. <doc>
  59352. <![CDATA[Get start time of the task.
  59353. @return 0 is start time is not set, else returns start time.]]>
  59354. </doc>
  59355. </method>
  59356. <method name="getPhase" return="org.apache.hadoop.mapred.TaskStatus.Phase"
  59357. abstract="false" native="false" synchronized="false"
  59358. static="false" final="false" visibility="public"
  59359. deprecated="not deprecated">
  59360. <doc>
  59361. <![CDATA[Get current phase of this task. Phase.Map in case of map tasks,
  59362. for reduce one of Phase.SHUFFLE, Phase.SORT or Phase.REDUCE.
  59363. @return .]]>
  59364. </doc>
  59365. </method>
  59366. <method name="getIncludeCounters" return="boolean"
  59367. abstract="false" native="false" synchronized="false"
  59368. static="false" final="false" visibility="public"
  59369. deprecated="not deprecated">
  59370. </method>
  59371. <method name="setIncludeCounters"
  59372. abstract="false" native="false" synchronized="false"
  59373. static="false" final="false" visibility="public"
  59374. deprecated="not deprecated">
  59375. <param name="send" type="boolean"/>
  59376. </method>
  59377. <method name="getCounters" return="org.apache.hadoop.mapred.Counters"
  59378. abstract="false" native="false" synchronized="false"
  59379. static="false" final="false" visibility="public"
  59380. deprecated="not deprecated">
  59381. <doc>
  59382. <![CDATA[Get task's counters.]]>
  59383. </doc>
  59384. </method>
  59385. <method name="setCounters"
  59386. abstract="false" native="false" synchronized="false"
  59387. static="false" final="false" visibility="public"
  59388. deprecated="not deprecated">
  59389. <param name="counters" type="org.apache.hadoop.mapred.Counters"/>
  59390. <doc>
  59391. <![CDATA[Set the task's counters.
  59392. @param counters]]>
  59393. </doc>
  59394. </method>
  59395. <method name="getOutputSize" return="long"
  59396. abstract="false" native="false" synchronized="false"
  59397. static="false" final="false" visibility="public"
  59398. deprecated="not deprecated">
  59399. <doc>
  59400. <![CDATA[Returns the number of bytes of output from this map.]]>
  59401. </doc>
  59402. </method>
  59403. <method name="getFetchFailedMaps" return="java.util.List"
  59404. abstract="false" native="false" synchronized="false"
  59405. static="false" final="false" visibility="public"
  59406. deprecated="not deprecated">
  59407. <doc>
  59408. <![CDATA[Get the list of maps from which output-fetches failed.
  59409. @return the list of maps from which output-fetches failed.]]>
  59410. </doc>
  59411. </method>
  59412. <method name="clone" return="java.lang.Object"
  59413. abstract="false" native="false" synchronized="false"
  59414. static="false" final="false" visibility="public"
  59415. deprecated="not deprecated">
  59416. </method>
  59417. <method name="write"
  59418. abstract="false" native="false" synchronized="false"
  59419. static="false" final="false" visibility="public"
  59420. deprecated="not deprecated">
  59421. <param name="out" type="java.io.DataOutput"/>
  59422. <exception name="IOException" type="java.io.IOException"/>
  59423. </method>
  59424. <method name="readFields"
  59425. abstract="false" native="false" synchronized="false"
  59426. static="false" final="false" visibility="public"
  59427. deprecated="not deprecated">
  59428. <param name="in" type="java.io.DataInput"/>
  59429. <exception name="IOException" type="java.io.IOException"/>
  59430. </method>
  59431. <doc>
  59432. <![CDATA[Describes the current status of a task. This is
  59433. not intended to be a comprehensive piece of data.]]>
  59434. </doc>
  59435. </class>
  59436. <!-- end class org.apache.hadoop.mapred.TaskStatus -->
  59437. <!-- start class org.apache.hadoop.mapred.TaskStatus.Phase -->
  59438. <class name="TaskStatus.Phase" extends="java.lang.Enum"
  59439. abstract="false"
  59440. static="true" final="true" visibility="public"
  59441. deprecated="not deprecated">
  59442. <method name="values" return="org.apache.hadoop.mapred.TaskStatus.Phase[]"
  59443. abstract="false" native="false" synchronized="false"
  59444. static="true" final="false" visibility="public"
  59445. deprecated="not deprecated">
  59446. </method>
  59447. <method name="valueOf" return="org.apache.hadoop.mapred.TaskStatus.Phase"
  59448. abstract="false" native="false" synchronized="false"
  59449. static="true" final="false" visibility="public"
  59450. deprecated="not deprecated">
  59451. <param name="name" type="java.lang.String"/>
  59452. </method>
  59453. <field name="STARTING" type="org.apache.hadoop.mapred.TaskStatus.Phase"
  59454. transient="false" volatile="false"
  59455. static="true" final="true" visibility="public"
  59456. deprecated="not deprecated">
  59457. </field>
  59458. <field name="MAP" type="org.apache.hadoop.mapred.TaskStatus.Phase"
  59459. transient="false" volatile="false"
  59460. static="true" final="true" visibility="public"
  59461. deprecated="not deprecated">
  59462. </field>
  59463. <field name="SHUFFLE" type="org.apache.hadoop.mapred.TaskStatus.Phase"
  59464. transient="false" volatile="false"
  59465. static="true" final="true" visibility="public"
  59466. deprecated="not deprecated">
  59467. </field>
  59468. <field name="SORT" type="org.apache.hadoop.mapred.TaskStatus.Phase"
  59469. transient="false" volatile="false"
  59470. static="true" final="true" visibility="public"
  59471. deprecated="not deprecated">
  59472. </field>
  59473. <field name="REDUCE" type="org.apache.hadoop.mapred.TaskStatus.Phase"
  59474. transient="false" volatile="false"
  59475. static="true" final="true" visibility="public"
  59476. deprecated="not deprecated">
  59477. </field>
  59478. <field name="CLEANUP" type="org.apache.hadoop.mapred.TaskStatus.Phase"
  59479. transient="false" volatile="false"
  59480. static="true" final="true" visibility="public"
  59481. deprecated="not deprecated">
  59482. </field>
  59483. </class>
  59484. <!-- end class org.apache.hadoop.mapred.TaskStatus.Phase -->
  59485. <!-- start class org.apache.hadoop.mapred.TaskStatus.State -->
  59486. <class name="TaskStatus.State" extends="java.lang.Enum"
  59487. abstract="false"
  59488. static="true" final="true" visibility="public"
  59489. deprecated="not deprecated">
  59490. <method name="values" return="org.apache.hadoop.mapred.TaskStatus.State[]"
  59491. abstract="false" native="false" synchronized="false"
  59492. static="true" final="false" visibility="public"
  59493. deprecated="not deprecated">
  59494. </method>
  59495. <method name="valueOf" return="org.apache.hadoop.mapred.TaskStatus.State"
  59496. abstract="false" native="false" synchronized="false"
  59497. static="true" final="false" visibility="public"
  59498. deprecated="not deprecated">
  59499. <param name="name" type="java.lang.String"/>
  59500. </method>
  59501. <field name="RUNNING" type="org.apache.hadoop.mapred.TaskStatus.State"
  59502. transient="false" volatile="false"
  59503. static="true" final="true" visibility="public"
  59504. deprecated="not deprecated">
  59505. </field>
  59506. <field name="SUCCEEDED" type="org.apache.hadoop.mapred.TaskStatus.State"
  59507. transient="false" volatile="false"
  59508. static="true" final="true" visibility="public"
  59509. deprecated="not deprecated">
  59510. </field>
  59511. <field name="FAILED" type="org.apache.hadoop.mapred.TaskStatus.State"
  59512. transient="false" volatile="false"
  59513. static="true" final="true" visibility="public"
  59514. deprecated="not deprecated">
  59515. </field>
  59516. <field name="UNASSIGNED" type="org.apache.hadoop.mapred.TaskStatus.State"
  59517. transient="false" volatile="false"
  59518. static="true" final="true" visibility="public"
  59519. deprecated="not deprecated">
  59520. </field>
  59521. <field name="KILLED" type="org.apache.hadoop.mapred.TaskStatus.State"
  59522. transient="false" volatile="false"
  59523. static="true" final="true" visibility="public"
  59524. deprecated="not deprecated">
  59525. </field>
  59526. <field name="COMMIT_PENDING" type="org.apache.hadoop.mapred.TaskStatus.State"
  59527. transient="false" volatile="false"
  59528. static="true" final="true" visibility="public"
  59529. deprecated="not deprecated">
  59530. </field>
  59531. <field name="FAILED_UNCLEAN" type="org.apache.hadoop.mapred.TaskStatus.State"
  59532. transient="false" volatile="false"
  59533. static="true" final="true" visibility="public"
  59534. deprecated="not deprecated">
  59535. </field>
  59536. <field name="KILLED_UNCLEAN" type="org.apache.hadoop.mapred.TaskStatus.State"
  59537. transient="false" volatile="false"
  59538. static="true" final="true" visibility="public"
  59539. deprecated="not deprecated">
  59540. </field>
  59541. </class>
  59542. <!-- end class org.apache.hadoop.mapred.TaskStatus.State -->
  59543. <!-- start class org.apache.hadoop.mapred.TaskTracker -->
  59544. <class name="TaskTracker" extends="java.lang.Object"
  59545. abstract="false"
  59546. static="false" final="false" visibility="public"
  59547. deprecated="not deprecated">
  59548. <implements name="org.apache.hadoop.mapred.MRConstants"/>
  59549. <implements name="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  59550. <implements name="java.lang.Runnable"/>
  59551. <implements name="org.apache.hadoop.mapred.TaskTrackerMXBean"/>
  59552. <constructor name="TaskTracker" type="org.apache.hadoop.mapred.JobConf"
  59553. static="false" final="false" visibility="public"
  59554. deprecated="not deprecated">
  59555. <exception name="IOException" type="java.io.IOException"/>
  59556. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  59557. <doc>
  59558. <![CDATA[Start with the local machine name, and the default JobTracker]]>
  59559. </doc>
  59560. </constructor>
  59561. <method name="getTaskTrackerInstrumentation" return="org.apache.hadoop.mapred.TaskTrackerInstrumentation"
  59562. abstract="false" native="false" synchronized="false"
  59563. static="false" final="false" visibility="public"
  59564. deprecated="not deprecated">
  59565. </method>
  59566. <method name="getTaskController" return="org.apache.hadoop.mapred.TaskController"
  59567. abstract="false" native="false" synchronized="false"
  59568. static="false" final="false" visibility="public"
  59569. deprecated="not deprecated">
  59570. </method>
  59571. <method name="getUserDir" return="java.lang.String"
  59572. abstract="false" native="false" synchronized="false"
  59573. static="true" final="false" visibility="public"
  59574. deprecated="not deprecated">
  59575. <param name="user" type="java.lang.String"/>
  59576. </method>
  59577. <method name="getPrivateDistributedCacheDir" return="java.lang.String"
  59578. abstract="false" native="false" synchronized="false"
  59579. static="true" final="false" visibility="public"
  59580. deprecated="not deprecated">
  59581. <param name="user" type="java.lang.String"/>
  59582. </method>
  59583. <method name="getPublicDistributedCacheDir" return="java.lang.String"
  59584. abstract="false" native="false" synchronized="false"
  59585. static="true" final="false" visibility="public"
  59586. deprecated="not deprecated">
  59587. </method>
  59588. <method name="getJobCacheSubdir" return="java.lang.String"
  59589. abstract="false" native="false" synchronized="false"
  59590. static="true" final="false" visibility="public"
  59591. deprecated="not deprecated">
  59592. <param name="user" type="java.lang.String"/>
  59593. </method>
  59594. <method name="getLocalJobDir" return="java.lang.String"
  59595. abstract="false" native="false" synchronized="false"
  59596. static="true" final="false" visibility="public"
  59597. deprecated="not deprecated">
  59598. <param name="user" type="java.lang.String"/>
  59599. <param name="jobid" type="java.lang.String"/>
  59600. </method>
  59601. <method name="getJobJarFile" return="java.lang.String"
  59602. abstract="false" native="false" synchronized="false"
  59603. static="true" final="false" visibility="public"
  59604. deprecated="not deprecated">
  59605. <param name="user" type="java.lang.String"/>
  59606. <param name="jobid" type="java.lang.String"/>
  59607. </method>
  59608. <method name="getLocalTaskDir" return="java.lang.String"
  59609. abstract="false" native="false" synchronized="false"
  59610. static="true" final="false" visibility="public"
  59611. deprecated="not deprecated">
  59612. <param name="user" type="java.lang.String"/>
  59613. <param name="jobid" type="java.lang.String"/>
  59614. <param name="taskid" type="java.lang.String"/>
  59615. </method>
  59616. <method name="getLocalTaskDir" return="java.lang.String"
  59617. abstract="false" native="false" synchronized="false"
  59618. static="true" final="false" visibility="public"
  59619. deprecated="not deprecated">
  59620. <param name="user" type="java.lang.String"/>
  59621. <param name="jobid" type="java.lang.String"/>
  59622. <param name="taskid" type="java.lang.String"/>
  59623. <param name="isCleanupAttempt" type="boolean"/>
  59624. </method>
  59625. <method name="getProtocolVersion" return="long"
  59626. abstract="false" native="false" synchronized="false"
  59627. static="false" final="false" visibility="public"
  59628. deprecated="not deprecated">
  59629. <param name="protocol" type="java.lang.String"/>
  59630. <param name="clientVersion" type="long"/>
  59631. <exception name="IOException" type="java.io.IOException"/>
  59632. </method>
  59633. <method name="cleanupStorage"
  59634. abstract="false" native="false" synchronized="false"
  59635. static="false" final="false" visibility="public"
  59636. deprecated="not deprecated">
  59637. <exception name="IOException" type="java.io.IOException"/>
  59638. <doc>
  59639. <![CDATA[Removes all contents of temporary storage. Called upon
  59640. startup, to remove any leftovers from previous run.]]>
  59641. </doc>
  59642. </method>
  59643. <method name="launchTaskForJob"
  59644. abstract="false" native="false" synchronized="false"
  59645. static="false" final="false" visibility="protected"
  59646. deprecated="not deprecated">
  59647. <param name="tip" type="org.apache.hadoop.mapred.TaskTracker.TaskInProgress"/>
  59648. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  59649. <param name="rjob" type="org.apache.hadoop.mapred.TaskTracker.RunningJob"/>
  59650. <exception name="IOException" type="java.io.IOException"/>
  59651. </method>
  59652. <method name="shutdown"
  59653. abstract="false" native="false" synchronized="true"
  59654. static="false" final="false" visibility="public"
  59655. deprecated="not deprecated">
  59656. <exception name="IOException" type="java.io.IOException"/>
  59657. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  59658. </method>
  59659. <method name="close"
  59660. abstract="false" native="false" synchronized="true"
  59661. static="false" final="false" visibility="public"
  59662. deprecated="not deprecated">
  59663. <exception name="IOException" type="java.io.IOException"/>
  59664. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  59665. <doc>
  59666. <![CDATA[Close down the TaskTracker and all its components. We must also shutdown
  59667. any running tasks or threads, and cleanup disk space. A new TaskTracker
  59668. within the same process space might be restarted, so everything must be
  59669. clean.
  59670. @throws InterruptedException]]>
  59671. </doc>
  59672. </method>
  59673. <method name="getJobClient" return="org.apache.hadoop.mapred.InterTrackerProtocol"
  59674. abstract="false" native="false" synchronized="false"
  59675. static="false" final="false" visibility="public"
  59676. deprecated="not deprecated">
  59677. <doc>
  59678. <![CDATA[The connection to the JobTracker, used by the TaskRunner
  59679. for locating remote files.]]>
  59680. </doc>
  59681. </method>
  59682. <method name="getTaskTrackerReportAddress" return="java.net.InetSocketAddress"
  59683. abstract="false" native="false" synchronized="true"
  59684. static="false" final="false" visibility="public"
  59685. deprecated="not deprecated">
  59686. <doc>
  59687. <![CDATA[Return the port at which the tasktracker bound to]]>
  59688. </doc>
  59689. </method>
  59690. <method name="getJvmManagerInstance" return="org.apache.hadoop.mapred.JvmManager"
  59691. abstract="false" native="false" synchronized="false"
  59692. static="false" final="false" visibility="public"
  59693. deprecated="not deprecated">
  59694. </method>
  59695. <method name="run"
  59696. abstract="false" native="false" synchronized="false"
  59697. static="false" final="false" visibility="public"
  59698. deprecated="not deprecated">
  59699. <doc>
  59700. <![CDATA[The server retry loop.
  59701. This while-loop attempts to connect to the JobTracker. It only
  59702. loops when the old TaskTracker has gone bad (its state is
  59703. stale somehow) and we need to reinitialize everything.]]>
  59704. </doc>
  59705. </method>
  59706. <method name="getTask" return="org.apache.hadoop.mapred.JvmTask"
  59707. abstract="false" native="false" synchronized="true"
  59708. static="false" final="false" visibility="public"
  59709. deprecated="not deprecated">
  59710. <param name="context" type="org.apache.hadoop.mapred.JvmContext"/>
  59711. <exception name="IOException" type="java.io.IOException"/>
  59712. <doc>
  59713. <![CDATA[Called upon startup by the child process, to fetch Task data.]]>
  59714. </doc>
  59715. </method>
  59716. <method name="statusUpdate" return="boolean"
  59717. abstract="false" native="false" synchronized="true"
  59718. static="false" final="false" visibility="public"
  59719. deprecated="not deprecated">
  59720. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  59721. <param name="taskStatus" type="org.apache.hadoop.mapred.TaskStatus"/>
  59722. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  59723. <exception name="IOException" type="java.io.IOException"/>
  59724. <doc>
  59725. <![CDATA[Called periodically to report Task progress, from 0.0 to 1.0.]]>
  59726. </doc>
  59727. </method>
  59728. <method name="reportDiagnosticInfo"
  59729. abstract="false" native="false" synchronized="true"
  59730. static="false" final="false" visibility="public"
  59731. deprecated="not deprecated">
  59732. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  59733. <param name="info" type="java.lang.String"/>
  59734. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  59735. <exception name="IOException" type="java.io.IOException"/>
  59736. <doc>
  59737. <![CDATA[Called when the task dies before completion, and we want to report back
  59738. diagnostic info]]>
  59739. </doc>
  59740. </method>
  59741. <method name="reportNextRecordRange"
  59742. abstract="false" native="false" synchronized="true"
  59743. static="false" final="false" visibility="public"
  59744. deprecated="not deprecated">
  59745. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  59746. <param name="range" type="org.apache.hadoop.mapred.SortedRanges.Range"/>
  59747. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  59748. <exception name="IOException" type="java.io.IOException"/>
  59749. </method>
  59750. <method name="ping" return="boolean"
  59751. abstract="false" native="false" synchronized="true"
  59752. static="false" final="false" visibility="public"
  59753. deprecated="not deprecated">
  59754. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  59755. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  59756. <exception name="IOException" type="java.io.IOException"/>
  59757. <doc>
  59758. <![CDATA[Child checking to see if we're alive. Normally does nothing.]]>
  59759. </doc>
  59760. </method>
  59761. <method name="commitPending"
  59762. abstract="false" native="false" synchronized="true"
  59763. static="false" final="false" visibility="public"
  59764. deprecated="not deprecated">
  59765. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  59766. <param name="taskStatus" type="org.apache.hadoop.mapred.TaskStatus"/>
  59767. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  59768. <exception name="IOException" type="java.io.IOException"/>
  59769. <doc>
  59770. <![CDATA[Task is reporting that it is in commit_pending
  59771. and it is waiting for the commit Response]]>
  59772. </doc>
  59773. </method>
  59774. <method name="canCommit" return="boolean"
  59775. abstract="false" native="false" synchronized="true"
  59776. static="false" final="false" visibility="public"
  59777. deprecated="not deprecated">
  59778. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  59779. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  59780. <exception name="IOException" type="java.io.IOException"/>
  59781. <doc>
  59782. <![CDATA[Child checking whether it can commit]]>
  59783. </doc>
  59784. </method>
  59785. <method name="done"
  59786. abstract="false" native="false" synchronized="true"
  59787. static="false" final="false" visibility="public"
  59788. deprecated="not deprecated">
  59789. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  59790. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  59791. <exception name="IOException" type="java.io.IOException"/>
  59792. <doc>
  59793. <![CDATA[The task is done.]]>
  59794. </doc>
  59795. </method>
  59796. <method name="shuffleError"
  59797. abstract="false" native="false" synchronized="true"
  59798. static="false" final="false" visibility="public"
  59799. deprecated="not deprecated">
  59800. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  59801. <param name="message" type="java.lang.String"/>
  59802. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  59803. <exception name="IOException" type="java.io.IOException"/>
  59804. <doc>
  59805. <![CDATA[A reduce-task failed to shuffle the map-outputs. Kill the task.]]>
  59806. </doc>
  59807. </method>
  59808. <method name="fsError"
  59809. abstract="false" native="false" synchronized="true"
  59810. static="false" final="false" visibility="public"
  59811. deprecated="not deprecated">
  59812. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  59813. <param name="message" type="java.lang.String"/>
  59814. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  59815. <exception name="IOException" type="java.io.IOException"/>
  59816. <doc>
  59817. <![CDATA[A child task had a local filesystem error. Kill the task.]]>
  59818. </doc>
  59819. </method>
  59820. <method name="fatalError"
  59821. abstract="false" native="false" synchronized="true"
  59822. static="false" final="false" visibility="public"
  59823. deprecated="not deprecated">
  59824. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  59825. <param name="msg" type="java.lang.String"/>
  59826. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  59827. <exception name="IOException" type="java.io.IOException"/>
  59828. <doc>
  59829. <![CDATA[A child task had a fatal error. Kill the task.]]>
  59830. </doc>
  59831. </method>
  59832. <method name="getMapCompletionEvents" return="org.apache.hadoop.mapred.MapTaskCompletionEventsUpdate"
  59833. abstract="false" native="false" synchronized="true"
  59834. static="false" final="false" visibility="public"
  59835. deprecated="not deprecated">
  59836. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  59837. <param name="fromEventId" type="int"/>
  59838. <param name="maxLocs" type="int"/>
  59839. <param name="id" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  59840. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  59841. <exception name="IOException" type="java.io.IOException"/>
  59842. </method>
  59843. <method name="mapOutputLost"
  59844. abstract="false" native="false" synchronized="true"
  59845. static="false" final="false" visibility="public"
  59846. deprecated="not deprecated">
  59847. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  59848. <param name="errorMsg" type="java.lang.String"/>
  59849. <exception name="IOException" type="java.io.IOException"/>
  59850. <doc>
  59851. <![CDATA[A completed map task's output has been lost.]]>
  59852. </doc>
  59853. </method>
  59854. <method name="isIdle" return="boolean"
  59855. abstract="false" native="false" synchronized="true"
  59856. static="false" final="false" visibility="public"
  59857. deprecated="not deprecated">
  59858. <doc>
  59859. <![CDATA[Is this task tracker idle?
  59860. @return has this task tracker finished all its assigned tasks?]]>
  59861. </doc>
  59862. </method>
  59863. <method name="isIdleAndClean" return="boolean"
  59864. abstract="false" native="false" synchronized="true"
  59865. static="false" final="false" visibility="public"
  59866. deprecated="not deprecated">
  59867. <doc>
  59868. <![CDATA[Is this task tracker idle and clean?
  59869. @return has this task tracker finished and cleaned up all of its tasks?]]>
  59870. </doc>
  59871. </method>
  59872. <method name="main"
  59873. abstract="false" native="false" synchronized="false"
  59874. static="true" final="false" visibility="public"
  59875. deprecated="not deprecated">
  59876. <param name="argv" type="java.lang.String[]"/>
  59877. <exception name="Exception" type="java.lang.Exception"/>
  59878. <doc>
  59879. <![CDATA[Start the TaskTracker, point toward the indicated JobTracker]]>
  59880. </doc>
  59881. </method>
  59882. <method name="isTaskMemoryManagerEnabled" return="boolean"
  59883. abstract="false" native="false" synchronized="false"
  59884. static="false" final="false" visibility="public"
  59885. deprecated="not deprecated">
  59886. <doc>
  59887. <![CDATA[Is the TaskMemoryManager Enabled on this system?
  59888. @return true if enabled, false otherwise.]]>
  59889. </doc>
  59890. </method>
  59891. <method name="getTaskMemoryManager" return="org.apache.hadoop.mapred.TaskMemoryManagerThread"
  59892. abstract="false" native="false" synchronized="false"
  59893. static="false" final="false" visibility="public"
  59894. deprecated="not deprecated">
  59895. </method>
  59896. <method name="getHostname" return="java.lang.String"
  59897. abstract="false" native="false" synchronized="false"
  59898. static="false" final="false" visibility="public"
  59899. deprecated="not deprecated">
  59900. </method>
  59901. <method name="getVersion" return="java.lang.String"
  59902. abstract="false" native="false" synchronized="false"
  59903. static="false" final="false" visibility="public"
  59904. deprecated="not deprecated">
  59905. </method>
  59906. <method name="getConfigVersion" return="java.lang.String"
  59907. abstract="false" native="false" synchronized="false"
  59908. static="false" final="false" visibility="public"
  59909. deprecated="not deprecated">
  59910. </method>
  59911. <method name="getJobTrackerUrl" return="java.lang.String"
  59912. abstract="false" native="false" synchronized="false"
  59913. static="false" final="false" visibility="public"
  59914. deprecated="not deprecated">
  59915. </method>
  59916. <method name="getRpcPort" return="int"
  59917. abstract="false" native="false" synchronized="false"
  59918. static="false" final="false" visibility="public"
  59919. deprecated="not deprecated">
  59920. </method>
  59921. <method name="getHttpPort" return="int"
  59922. abstract="false" native="false" synchronized="false"
  59923. static="false" final="false" visibility="public"
  59924. deprecated="not deprecated">
  59925. </method>
  59926. <method name="isHealthy" return="boolean"
  59927. abstract="false" native="false" synchronized="false"
  59928. static="false" final="false" visibility="public"
  59929. deprecated="not deprecated">
  59930. </method>
  59931. <method name="getTasksInfoJson" return="java.lang.String"
  59932. abstract="false" native="false" synchronized="false"
  59933. static="false" final="false" visibility="public"
  59934. deprecated="not deprecated">
  59935. </method>
  59936. <method name="updatePrivateDistributedCacheSizes"
  59937. abstract="false" native="false" synchronized="false"
  59938. static="false" final="false" visibility="public"
  59939. deprecated="not deprecated">
  59940. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  59941. <param name="sizes" type="long[]"/>
  59942. <exception name="IOException" type="java.io.IOException"/>
  59943. </method>
  59944. <field name="LOG" type="org.apache.commons.logging.Log"
  59945. transient="false" volatile="false"
  59946. static="true" final="true" visibility="public"
  59947. deprecated="not deprecated">
  59948. </field>
  59949. <field name="MR_CLIENTTRACE_FORMAT" type="java.lang.String"
  59950. transient="false" volatile="false"
  59951. static="true" final="true" visibility="public"
  59952. deprecated="not deprecated">
  59953. </field>
  59954. <field name="ClientTraceLog" type="org.apache.commons.logging.Log"
  59955. transient="false" volatile="false"
  59956. static="true" final="true" visibility="public"
  59957. deprecated="not deprecated">
  59958. </field>
  59959. <field name="SUBDIR" type="java.lang.String"
  59960. transient="false" volatile="false"
  59961. static="true" final="true" visibility="public"
  59962. deprecated="not deprecated">
  59963. </field>
  59964. <field name="TT_LOG_TMP_DIR" type="java.lang.String"
  59965. transient="false" volatile="false"
  59966. static="true" final="true" visibility="public"
  59967. deprecated="not deprecated">
  59968. </field>
  59969. <field name="TT_RESOURCE_CALCULATOR_PLUGIN" type="java.lang.String"
  59970. transient="false" volatile="false"
  59971. static="true" final="true" visibility="public"
  59972. deprecated="not deprecated">
  59973. </field>
  59974. <field name="TT_USER_NAME" type="java.lang.String"
  59975. transient="false" volatile="false"
  59976. static="true" final="true" visibility="public"
  59977. deprecated="not deprecated">
  59978. </field>
  59979. <field name="TT_KEYTAB_FILE" type="java.lang.String"
  59980. transient="false" volatile="false"
  59981. static="true" final="true" visibility="public"
  59982. deprecated="not deprecated">
  59983. </field>
  59984. <doc>
  59985. <![CDATA[TaskTracker is a process that starts and tracks MR Tasks
  59986. in a networked environment. It contacts the JobTracker
  59987. for Task assignments and reporting results.]]>
  59988. </doc>
  59989. </class>
  59990. <!-- end class org.apache.hadoop.mapred.TaskTracker -->
  59991. <!-- start class org.apache.hadoop.mapred.TaskTracker.MapOutputServlet -->
  59992. <class name="TaskTracker.MapOutputServlet" extends="javax.servlet.http.HttpServlet"
  59993. abstract="false"
  59994. static="true" final="false" visibility="public"
  59995. deprecated="not deprecated">
  59996. <constructor name="TaskTracker.MapOutputServlet"
  59997. static="false" final="false" visibility="public"
  59998. deprecated="not deprecated">
  59999. </constructor>
  60000. <method name="doGet"
  60001. abstract="false" native="false" synchronized="false"
  60002. static="false" final="false" visibility="public"
  60003. deprecated="not deprecated">
  60004. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  60005. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  60006. <exception name="ServletException" type="javax.servlet.ServletException"/>
  60007. <exception name="IOException" type="java.io.IOException"/>
  60008. </method>
  60009. <doc>
  60010. <![CDATA[This class is used in TaskTracker's Jetty to serve the map outputs
  60011. to other nodes.]]>
  60012. </doc>
  60013. </class>
  60014. <!-- end class org.apache.hadoop.mapred.TaskTracker.MapOutputServlet -->
  60015. <!-- start class org.apache.hadoop.mapred.TaskTrackerMetricsSource -->
  60016. <class name="TaskTrackerMetricsSource" extends="org.apache.hadoop.mapred.TaskTrackerInstrumentation"
  60017. abstract="false"
  60018. static="false" final="false" visibility="public"
  60019. deprecated="not deprecated">
  60020. <implements name="org.apache.hadoop.metrics2.MetricsSource"/>
  60021. <constructor name="TaskTrackerMetricsSource" type="org.apache.hadoop.mapred.TaskTracker"
  60022. static="false" final="false" visibility="public"
  60023. deprecated="not deprecated">
  60024. </constructor>
  60025. <method name="getMetrics"
  60026. abstract="false" native="false" synchronized="false"
  60027. static="false" final="false" visibility="public"
  60028. deprecated="not deprecated">
  60029. <param name="builder" type="org.apache.hadoop.metrics2.MetricsBuilder"/>
  60030. <param name="all" type="boolean"/>
  60031. </method>
  60032. <method name="completeTask"
  60033. abstract="false" native="false" synchronized="false"
  60034. static="false" final="false" visibility="public"
  60035. deprecated="not deprecated">
  60036. <param name="t" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  60037. </method>
  60038. <method name="timedoutTask"
  60039. abstract="false" native="false" synchronized="false"
  60040. static="false" final="false" visibility="public"
  60041. deprecated="not deprecated">
  60042. <param name="t" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  60043. </method>
  60044. <method name="taskFailedPing"
  60045. abstract="false" native="false" synchronized="false"
  60046. static="false" final="false" visibility="public"
  60047. deprecated="not deprecated">
  60048. <param name="t" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  60049. </method>
  60050. <doc>
  60051. <![CDATA[Instrumentation for metrics v2]]>
  60052. </doc>
  60053. </class>
  60054. <!-- end class org.apache.hadoop.mapred.TaskTrackerMetricsSource -->
  60055. <!-- start interface org.apache.hadoop.mapred.TaskTrackerMXBean -->
  60056. <interface name="TaskTrackerMXBean" abstract="true"
  60057. static="false" final="false" visibility="public"
  60058. deprecated="not deprecated">
  60059. <method name="getHostname" return="java.lang.String"
  60060. abstract="false" native="false" synchronized="false"
  60061. static="false" final="false" visibility="public"
  60062. deprecated="not deprecated">
  60063. <doc>
  60064. <![CDATA[@return the hostname of the tasktracker]]>
  60065. </doc>
  60066. </method>
  60067. <method name="getVersion" return="java.lang.String"
  60068. abstract="false" native="false" synchronized="false"
  60069. static="false" final="false" visibility="public"
  60070. deprecated="not deprecated">
  60071. <doc>
  60072. <![CDATA[@return the version of the code base]]>
  60073. </doc>
  60074. </method>
  60075. <method name="getConfigVersion" return="java.lang.String"
  60076. abstract="false" native="false" synchronized="false"
  60077. static="false" final="false" visibility="public"
  60078. deprecated="not deprecated">
  60079. <doc>
  60080. <![CDATA[@return the config version (from a config properties)]]>
  60081. </doc>
  60082. </method>
  60083. <method name="getJobTrackerUrl" return="java.lang.String"
  60084. abstract="false" native="false" synchronized="false"
  60085. static="false" final="false" visibility="public"
  60086. deprecated="not deprecated">
  60087. <doc>
  60088. <![CDATA[@return the URL of the jobtracker]]>
  60089. </doc>
  60090. </method>
  60091. <method name="getRpcPort" return="int"
  60092. abstract="false" native="false" synchronized="false"
  60093. static="false" final="false" visibility="public"
  60094. deprecated="not deprecated">
  60095. <doc>
  60096. <![CDATA[@return the RPC port of the tasktracker]]>
  60097. </doc>
  60098. </method>
  60099. <method name="getHttpPort" return="int"
  60100. abstract="false" native="false" synchronized="false"
  60101. static="false" final="false" visibility="public"
  60102. deprecated="not deprecated">
  60103. <doc>
  60104. <![CDATA[@return the HTTP port of the tasktracker]]>
  60105. </doc>
  60106. </method>
  60107. <method name="isHealthy" return="boolean"
  60108. abstract="false" native="false" synchronized="false"
  60109. static="false" final="false" visibility="public"
  60110. deprecated="not deprecated">
  60111. <doc>
  60112. <![CDATA[@return the health status of the tasktracker]]>
  60113. </doc>
  60114. </method>
  60115. <method name="getTasksInfoJson" return="java.lang.String"
  60116. abstract="false" native="false" synchronized="false"
  60117. static="false" final="false" visibility="public"
  60118. deprecated="not deprecated">
  60119. <doc>
  60120. <![CDATA[@return a json formatted info about tasks of the tasktracker]]>
  60121. </doc>
  60122. </method>
  60123. <doc>
  60124. <![CDATA[MXBean interface for TaskTracker]]>
  60125. </doc>
  60126. </interface>
  60127. <!-- end interface org.apache.hadoop.mapred.TaskTrackerMXBean -->
  60128. <!-- start class org.apache.hadoop.mapred.TaskTrackerStatus -->
  60129. <class name="TaskTrackerStatus" extends="java.lang.Object"
  60130. abstract="false"
  60131. static="false" final="false" visibility="public"
  60132. deprecated="not deprecated">
  60133. <implements name="org.apache.hadoop.io.Writable"/>
  60134. <constructor name="TaskTrackerStatus"
  60135. static="false" final="false" visibility="public"
  60136. deprecated="not deprecated">
  60137. </constructor>
  60138. <constructor name="TaskTrackerStatus" type="java.lang.String, java.lang.String, int, java.util.List, int, int, int, int"
  60139. static="false" final="false" visibility="public"
  60140. deprecated="not deprecated">
  60141. </constructor>
  60142. <method name="getTrackerName" return="java.lang.String"
  60143. abstract="false" native="false" synchronized="false"
  60144. static="false" final="false" visibility="public"
  60145. deprecated="not deprecated">
  60146. </method>
  60147. <method name="getHost" return="java.lang.String"
  60148. abstract="false" native="false" synchronized="false"
  60149. static="false" final="false" visibility="public"
  60150. deprecated="not deprecated">
  60151. </method>
  60152. <method name="getHttpPort" return="int"
  60153. abstract="false" native="false" synchronized="false"
  60154. static="false" final="false" visibility="public"
  60155. deprecated="not deprecated">
  60156. <doc>
  60157. <![CDATA[Get the port that this task tracker is serving http requests on.
  60158. @return the http port]]>
  60159. </doc>
  60160. </method>
  60161. <method name="getTaskFailures" return="int"
  60162. abstract="false" native="false" synchronized="false"
  60163. static="false" final="false" visibility="public"
  60164. deprecated="not deprecated">
  60165. <doc>
  60166. <![CDATA[Get the number of tasks that have failed on this tracker.
  60167. @return The number of failed tasks]]>
  60168. </doc>
  60169. </method>
  60170. <method name="getDirFailures" return="int"
  60171. abstract="false" native="false" synchronized="false"
  60172. static="false" final="false" visibility="public"
  60173. deprecated="not deprecated">
  60174. <doc>
  60175. <![CDATA[Get the number of local directories that have failed on this tracker.
  60176. @return The number of failed local directories]]>
  60177. </doc>
  60178. </method>
  60179. <method name="getTaskReports" return="java.util.List"
  60180. abstract="false" native="false" synchronized="false"
  60181. static="false" final="false" visibility="public"
  60182. deprecated="not deprecated">
  60183. <doc>
  60184. <![CDATA[Get the current tasks at the TaskTracker.
  60185. Tasks are tracked by a {@link TaskStatus} object.
  60186. @return a list of {@link TaskStatus} representing
  60187. the current tasks at the TaskTracker.]]>
  60188. </doc>
  60189. </method>
  60190. <method name="countMapTasks" return="int"
  60191. abstract="false" native="false" synchronized="false"
  60192. static="false" final="false" visibility="public"
  60193. deprecated="not deprecated">
  60194. <doc>
  60195. <![CDATA[Get the number of running map tasks.
  60196. @return the number of running map tasks]]>
  60197. </doc>
  60198. </method>
  60199. <method name="countOccupiedMapSlots" return="int"
  60200. abstract="false" native="false" synchronized="false"
  60201. static="false" final="false" visibility="public"
  60202. deprecated="not deprecated">
  60203. <doc>
  60204. <![CDATA[Get the number of occupied map slots.
  60205. @return the number of occupied map slots]]>
  60206. </doc>
  60207. </method>
  60208. <method name="getAvailableMapSlots" return="int"
  60209. abstract="false" native="false" synchronized="false"
  60210. static="false" final="false" visibility="public"
  60211. deprecated="not deprecated">
  60212. <doc>
  60213. <![CDATA[Get available map slots.
  60214. @return available map slots]]>
  60215. </doc>
  60216. </method>
  60217. <method name="countReduceTasks" return="int"
  60218. abstract="false" native="false" synchronized="false"
  60219. static="false" final="false" visibility="public"
  60220. deprecated="not deprecated">
  60221. <doc>
  60222. <![CDATA[Get the number of running reduce tasks.
  60223. @return the number of running reduce tasks]]>
  60224. </doc>
  60225. </method>
  60226. <method name="countOccupiedReduceSlots" return="int"
  60227. abstract="false" native="false" synchronized="false"
  60228. static="false" final="false" visibility="public"
  60229. deprecated="not deprecated">
  60230. <doc>
  60231. <![CDATA[Get the number of occupied reduce slots.
  60232. @return the number of occupied reduce slots]]>
  60233. </doc>
  60234. </method>
  60235. <method name="getAvailableReduceSlots" return="int"
  60236. abstract="false" native="false" synchronized="false"
  60237. static="false" final="false" visibility="public"
  60238. deprecated="not deprecated">
  60239. <doc>
  60240. <![CDATA[Get available reduce slots.
  60241. @return available reduce slots]]>
  60242. </doc>
  60243. </method>
  60244. <method name="getLastSeen" return="long"
  60245. abstract="false" native="false" synchronized="false"
  60246. static="false" final="false" visibility="public"
  60247. deprecated="not deprecated">
  60248. </method>
  60249. <method name="setLastSeen"
  60250. abstract="false" native="false" synchronized="false"
  60251. static="false" final="false" visibility="public"
  60252. deprecated="not deprecated">
  60253. <param name="lastSeen" type="long"/>
  60254. </method>
  60255. <method name="getMaxMapSlots" return="int"
  60256. abstract="false" native="false" synchronized="false"
  60257. static="false" final="false" visibility="public"
  60258. deprecated="not deprecated">
  60259. <doc>
  60260. <![CDATA[Get the maximum map slots for this node.
  60261. @return the maximum map slots for this node]]>
  60262. </doc>
  60263. </method>
  60264. <method name="getMaxReduceSlots" return="int"
  60265. abstract="false" native="false" synchronized="false"
  60266. static="false" final="false" visibility="public"
  60267. deprecated="not deprecated">
  60268. <doc>
  60269. <![CDATA[Get the maximum reduce slots for this node.
  60270. @return the maximum reduce slots for this node]]>
  60271. </doc>
  60272. </method>
  60273. <method name="getHealthStatus" return="org.apache.hadoop.mapred.TaskTrackerStatus.TaskTrackerHealthStatus"
  60274. abstract="false" native="false" synchronized="false"
  60275. static="false" final="false" visibility="public"
  60276. deprecated="not deprecated">
  60277. <doc>
  60278. <![CDATA[Returns health status of the task tracker.
  60279. @return health status of Task Tracker]]>
  60280. </doc>
  60281. </method>
  60282. <method name="write"
  60283. abstract="false" native="false" synchronized="false"
  60284. static="false" final="false" visibility="public"
  60285. deprecated="not deprecated">
  60286. <param name="out" type="java.io.DataOutput"/>
  60287. <exception name="IOException" type="java.io.IOException"/>
  60288. </method>
  60289. <method name="readFields"
  60290. abstract="false" native="false" synchronized="false"
  60291. static="false" final="false" visibility="public"
  60292. deprecated="not deprecated">
  60293. <param name="in" type="java.io.DataInput"/>
  60294. <exception name="IOException" type="java.io.IOException"/>
  60295. </method>
  60296. <field name="LOG" type="org.apache.commons.logging.Log"
  60297. transient="false" volatile="false"
  60298. static="true" final="true" visibility="public"
  60299. deprecated="not deprecated">
  60300. </field>
  60301. <field name="UNAVAILABLE" type="int"
  60302. transient="false" volatile="false"
  60303. static="true" final="true" visibility="public"
  60304. deprecated="not deprecated">
  60305. </field>
  60306. <doc>
  60307. <![CDATA[A TaskTrackerStatus is a MapReduce primitive. Keeps
  60308. info on a TaskTracker. The JobTracker maintains a set
  60309. of the most recent TaskTrackerStatus objects for each
  60310. unique TaskTracker it knows about.
  60311. This is NOT a public interface!]]>
  60312. </doc>
  60313. </class>
  60314. <!-- end class org.apache.hadoop.mapred.TaskTrackerStatus -->
  60315. <!-- start interface org.apache.hadoop.mapred.TaskUmbilicalProtocol -->
  60316. <interface name="TaskUmbilicalProtocol" abstract="true"
  60317. static="false" final="false" visibility="public"
  60318. deprecated="not deprecated">
  60319. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  60320. <method name="getTask" return="org.apache.hadoop.mapred.JvmTask"
  60321. abstract="false" native="false" synchronized="false"
  60322. static="false" final="false" visibility="public"
  60323. deprecated="not deprecated">
  60324. <param name="context" type="org.apache.hadoop.mapred.JvmContext"/>
  60325. <exception name="IOException" type="java.io.IOException"/>
  60326. <doc>
  60327. <![CDATA[Called when a child task process starts, to get its task.
  60328. @param context the JvmContext of the JVM w.r.t the TaskTracker that
  60329. launched it
  60330. @return Task object
  60331. @throws IOException]]>
  60332. </doc>
  60333. </method>
  60334. <method name="statusUpdate" return="boolean"
  60335. abstract="false" native="false" synchronized="false"
  60336. static="false" final="false" visibility="public"
  60337. deprecated="not deprecated">
  60338. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  60339. <param name="taskStatus" type="org.apache.hadoop.mapred.TaskStatus"/>
  60340. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  60341. <exception name="IOException" type="java.io.IOException"/>
  60342. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  60343. <doc>
  60344. <![CDATA[Report child's progress to parent.
  60345. @param taskId task-id of the child
  60346. @param taskStatus status of the child
  60347. @param jvmContext context the jvmContext running the task.
  60348. @throws IOException
  60349. @throws InterruptedException
  60350. @return True if the task is known]]>
  60351. </doc>
  60352. </method>
  60353. <method name="reportDiagnosticInfo"
  60354. abstract="false" native="false" synchronized="false"
  60355. static="false" final="false" visibility="public"
  60356. deprecated="not deprecated">
  60357. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  60358. <param name="trace" type="java.lang.String"/>
  60359. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  60360. <exception name="IOException" type="java.io.IOException"/>
  60361. <doc>
  60362. <![CDATA[Report error messages back to parent. Calls should be sparing, since all
  60363. such messages are held in the job tracker.
  60364. @param taskid the id of the task involved
  60365. @param trace the text to report
  60366. @param jvmContext context the jvmContext running the task.]]>
  60367. </doc>
  60368. </method>
  60369. <method name="reportNextRecordRange"
  60370. abstract="false" native="false" synchronized="false"
  60371. static="false" final="false" visibility="public"
  60372. deprecated="not deprecated">
  60373. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  60374. <param name="range" type="org.apache.hadoop.mapred.SortedRanges.Range"/>
  60375. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  60376. <exception name="IOException" type="java.io.IOException"/>
  60377. <doc>
  60378. <![CDATA[Report the record range which is going to process next by the Task.
  60379. @param taskid the id of the task involved
  60380. @param range the range of record sequence nos
  60381. @param jvmContext context the jvmContext running the task.
  60382. @throws IOException]]>
  60383. </doc>
  60384. </method>
  60385. <method name="ping" return="boolean"
  60386. abstract="false" native="false" synchronized="false"
  60387. static="false" final="false" visibility="public"
  60388. deprecated="not deprecated">
  60389. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  60390. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  60391. <exception name="IOException" type="java.io.IOException"/>
  60392. <doc>
  60393. <![CDATA[Periodically called by child to check if parent is still alive.
  60394. @param taskid the id of the task involved
  60395. @param jvmContext context the jvmContext running the task.
  60396. @return True if the task is known]]>
  60397. </doc>
  60398. </method>
  60399. <method name="done"
  60400. abstract="false" native="false" synchronized="false"
  60401. static="false" final="false" visibility="public"
  60402. deprecated="not deprecated">
  60403. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  60404. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  60405. <exception name="IOException" type="java.io.IOException"/>
  60406. <doc>
  60407. <![CDATA[Report that the task is successfully completed. Failure is assumed if
  60408. the task process exits without calling this.
  60409. @param taskid task's id
  60410. @param jvmContext context the jvmContext running the task.]]>
  60411. </doc>
  60412. </method>
  60413. <method name="commitPending"
  60414. abstract="false" native="false" synchronized="false"
  60415. static="false" final="false" visibility="public"
  60416. deprecated="not deprecated">
  60417. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  60418. <param name="taskStatus" type="org.apache.hadoop.mapred.TaskStatus"/>
  60419. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  60420. <exception name="IOException" type="java.io.IOException"/>
  60421. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  60422. <doc>
  60423. <![CDATA[Report that the task is complete, but its commit is pending.
  60424. @param taskId task's id
  60425. @param taskStatus status of the child
  60426. @param jvmContext context the jvmContext running the task.
  60427. @throws IOException]]>
  60428. </doc>
  60429. </method>
  60430. <method name="canCommit" return="boolean"
  60431. abstract="false" native="false" synchronized="false"
  60432. static="false" final="false" visibility="public"
  60433. deprecated="not deprecated">
  60434. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  60435. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  60436. <exception name="IOException" type="java.io.IOException"/>
  60437. <doc>
  60438. <![CDATA[Polling to know whether the task can go-ahead with commit
  60439. @param taskid
  60440. @param jvmContext context the jvmContext running the task.
  60441. @return true/false
  60442. @throws IOException]]>
  60443. </doc>
  60444. </method>
  60445. <method name="shuffleError"
  60446. abstract="false" native="false" synchronized="false"
  60447. static="false" final="false" visibility="public"
  60448. deprecated="not deprecated">
  60449. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  60450. <param name="message" type="java.lang.String"/>
  60451. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  60452. <exception name="IOException" type="java.io.IOException"/>
  60453. <doc>
  60454. <![CDATA[Report that a reduce-task couldn't shuffle map-outputs.]]>
  60455. </doc>
  60456. </method>
  60457. <method name="fsError"
  60458. abstract="false" native="false" synchronized="false"
  60459. static="false" final="false" visibility="public"
  60460. deprecated="not deprecated">
  60461. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  60462. <param name="message" type="java.lang.String"/>
  60463. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  60464. <exception name="IOException" type="java.io.IOException"/>
  60465. <doc>
  60466. <![CDATA[Report that the task encounted a local filesystem error.]]>
  60467. </doc>
  60468. </method>
  60469. <method name="fatalError"
  60470. abstract="false" native="false" synchronized="false"
  60471. static="false" final="false" visibility="public"
  60472. deprecated="not deprecated">
  60473. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  60474. <param name="message" type="java.lang.String"/>
  60475. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  60476. <exception name="IOException" type="java.io.IOException"/>
  60477. <doc>
  60478. <![CDATA[Report that the task encounted a fatal error.]]>
  60479. </doc>
  60480. </method>
  60481. <method name="getMapCompletionEvents" return="org.apache.hadoop.mapred.MapTaskCompletionEventsUpdate"
  60482. abstract="false" native="false" synchronized="false"
  60483. static="false" final="false" visibility="public"
  60484. deprecated="not deprecated">
  60485. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  60486. <param name="fromIndex" type="int"/>
  60487. <param name="maxLocs" type="int"/>
  60488. <param name="id" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  60489. <param name="jvmContext" type="org.apache.hadoop.mapred.JvmContext"/>
  60490. <exception name="IOException" type="java.io.IOException"/>
  60491. <doc>
  60492. <![CDATA[Called by a reduce task to get the map output locations for finished maps.
  60493. Returns an update centered around the map-task-completion-events.
  60494. The update also piggybacks the information whether the events copy at the
  60495. task-tracker has changed or not. This will trigger some action at the
  60496. child-process.
  60497. @param jobId the reducer job id
  60498. @param fromIndex the index starting from which the locations should be
  60499. fetched
  60500. @param maxLocs the max number of locations to fetch
  60501. @param id The attempt id of the task that is trying to communicate
  60502. @return A {@link MapTaskCompletionEventsUpdate}]]>
  60503. </doc>
  60504. </method>
  60505. <method name="updatePrivateDistributedCacheSizes"
  60506. abstract="false" native="false" synchronized="false"
  60507. static="false" final="false" visibility="public"
  60508. deprecated="not deprecated">
  60509. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  60510. <param name="sizes" type="long[]"/>
  60511. <exception name="IOException" type="java.io.IOException"/>
  60512. <doc>
  60513. <![CDATA[The job initializer needs to report the sizes of the archive
  60514. objects and directories in the private distributed cache.
  60515. @param jobId the job to update
  60516. @param sizes the array of sizes that were computed
  60517. @throws IOException]]>
  60518. </doc>
  60519. </method>
  60520. <field name="versionID" type="long"
  60521. transient="false" volatile="false"
  60522. static="true" final="true" visibility="public"
  60523. deprecated="not deprecated">
  60524. <doc>
  60525. <![CDATA[Changed the version to 2, since we have a new method getMapOutputs
  60526. Changed version to 3 to have progress() return a boolean
  60527. Changed the version to 4, since we have replaced
  60528. TaskUmbilicalProtocol.progress(String, float, String,
  60529. org.apache.hadoop.mapred.TaskStatus.Phase, Counters)
  60530. with statusUpdate(String, TaskStatus)
  60531. Version 5 changed counters representation for HADOOP-2248
  60532. Version 6 changes the TaskStatus representation for HADOOP-2208
  60533. Version 7 changes the done api (via HADOOP-3140). It now expects whether
  60534. or not the task's output needs to be promoted.
  60535. Version 8 changes {job|tip|task}id's to use their corresponding
  60536. objects rather than strings.
  60537. Version 9 changes the counter representation for HADOOP-1915
  60538. Version 10 changed the TaskStatus format and added reportNextRecordRange
  60539. for HADOOP-153
  60540. Version 11 Adds RPCs for task commit as part of HADOOP-3150
  60541. Version 12 getMapCompletionEvents() now also indicates if the events are
  60542. stale or not. Hence the return type is a class that
  60543. encapsulates the events and whether to reset events index.
  60544. Version 13 changed the getTask method signature for HADOOP-249
  60545. Version 14 changed the getTask method signature for HADOOP-4232
  60546. Version 15 Adds FAILED_UNCLEAN and KILLED_UNCLEAN states for HADOOP-4759
  60547. Version 16 Added numRequiredSlots to TaskStatus for MAPREDUCE-516
  60548. Version 17 Change in signature of getTask() for HADOOP-5488
  60549. Version 18 Added fatalError for child to communicate fatal errors to TT
  60550. Version 19 Added jvmContext to most method signatures for MAPREDUCE-2429]]>
  60551. </doc>
  60552. </field>
  60553. <doc>
  60554. <![CDATA[Protocol that task child process uses to contact its parent process. The
  60555. parent is a daemon which which polls the central master for a new map or
  60556. reduce task and runs it as a child process. All communication between child
  60557. and parent is via this protocol.]]>
  60558. </doc>
  60559. </interface>
  60560. <!-- end interface org.apache.hadoop.mapred.TaskUmbilicalProtocol -->
  60561. <!-- start class org.apache.hadoop.mapred.TextInputFormat -->
  60562. <class name="TextInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat"
  60563. abstract="false"
  60564. static="false" final="false" visibility="public"
  60565. deprecated="not deprecated">
  60566. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  60567. <constructor name="TextInputFormat"
  60568. static="false" final="false" visibility="public"
  60569. deprecated="not deprecated">
  60570. </constructor>
  60571. <method name="configure"
  60572. abstract="false" native="false" synchronized="false"
  60573. static="false" final="false" visibility="public"
  60574. deprecated="not deprecated">
  60575. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  60576. </method>
  60577. <method name="isSplitable" return="boolean"
  60578. abstract="false" native="false" synchronized="false"
  60579. static="false" final="false" visibility="protected"
  60580. deprecated="not deprecated">
  60581. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  60582. <param name="file" type="org.apache.hadoop.fs.Path"/>
  60583. </method>
  60584. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  60585. abstract="false" native="false" synchronized="false"
  60586. static="false" final="false" visibility="public"
  60587. deprecated="not deprecated">
  60588. <param name="genericSplit" type="org.apache.hadoop.mapred.InputSplit"/>
  60589. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  60590. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  60591. <exception name="IOException" type="java.io.IOException"/>
  60592. </method>
  60593. <doc>
  60594. <![CDATA[An {@link InputFormat} for plain text files. Files are broken into lines.
  60595. Either linefeed or carriage-return are used to signal end of line. Keys are
  60596. the position in the file, and values are the line of text..]]>
  60597. </doc>
  60598. </class>
  60599. <!-- end class org.apache.hadoop.mapred.TextInputFormat -->
  60600. <!-- start class org.apache.hadoop.mapred.TextOutputFormat -->
  60601. <class name="TextOutputFormat" extends="org.apache.hadoop.mapred.FileOutputFormat"
  60602. abstract="false"
  60603. static="false" final="false" visibility="public"
  60604. deprecated="not deprecated">
  60605. <constructor name="TextOutputFormat"
  60606. static="false" final="false" visibility="public"
  60607. deprecated="not deprecated">
  60608. </constructor>
  60609. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  60610. abstract="false" native="false" synchronized="false"
  60611. static="false" final="false" visibility="public"
  60612. deprecated="not deprecated">
  60613. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  60614. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  60615. <param name="name" type="java.lang.String"/>
  60616. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  60617. <exception name="IOException" type="java.io.IOException"/>
  60618. </method>
  60619. <doc>
  60620. <![CDATA[An {@link OutputFormat} that writes plain text files.]]>
  60621. </doc>
  60622. </class>
  60623. <!-- end class org.apache.hadoop.mapred.TextOutputFormat -->
  60624. <!-- start class org.apache.hadoop.mapred.TextOutputFormat.LineRecordWriter -->
  60625. <class name="TextOutputFormat.LineRecordWriter" extends="java.lang.Object"
  60626. abstract="false"
  60627. static="true" final="false" visibility="protected"
  60628. deprecated="not deprecated">
  60629. <implements name="org.apache.hadoop.mapred.RecordWriter"/>
  60630. <constructor name="TextOutputFormat.LineRecordWriter" type="java.io.DataOutputStream, java.lang.String"
  60631. static="false" final="false" visibility="public"
  60632. deprecated="not deprecated">
  60633. </constructor>
  60634. <constructor name="TextOutputFormat.LineRecordWriter" type="java.io.DataOutputStream"
  60635. static="false" final="false" visibility="public"
  60636. deprecated="not deprecated">
  60637. </constructor>
  60638. <method name="write"
  60639. abstract="false" native="false" synchronized="true"
  60640. static="false" final="false" visibility="public"
  60641. deprecated="not deprecated">
  60642. <param name="key" type="java.lang.Object"/>
  60643. <param name="value" type="java.lang.Object"/>
  60644. <exception name="IOException" type="java.io.IOException"/>
  60645. </method>
  60646. <method name="close"
  60647. abstract="false" native="false" synchronized="true"
  60648. static="false" final="false" visibility="public"
  60649. deprecated="not deprecated">
  60650. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  60651. <exception name="IOException" type="java.io.IOException"/>
  60652. </method>
  60653. <field name="out" type="java.io.DataOutputStream"
  60654. transient="false" volatile="false"
  60655. static="false" final="false" visibility="protected"
  60656. deprecated="not deprecated">
  60657. </field>
  60658. </class>
  60659. <!-- end class org.apache.hadoop.mapred.TextOutputFormat.LineRecordWriter -->
  60660. <!-- start class org.apache.hadoop.mapred.TIPStatus -->
  60661. <class name="TIPStatus" extends="java.lang.Enum"
  60662. abstract="false"
  60663. static="false" final="true" visibility="public"
  60664. deprecated="not deprecated">
  60665. <method name="values" return="org.apache.hadoop.mapred.TIPStatus[]"
  60666. abstract="false" native="false" synchronized="false"
  60667. static="true" final="false" visibility="public"
  60668. deprecated="not deprecated">
  60669. </method>
  60670. <method name="valueOf" return="org.apache.hadoop.mapred.TIPStatus"
  60671. abstract="false" native="false" synchronized="false"
  60672. static="true" final="false" visibility="public"
  60673. deprecated="not deprecated">
  60674. <param name="name" type="java.lang.String"/>
  60675. </method>
  60676. <field name="PENDING" type="org.apache.hadoop.mapred.TIPStatus"
  60677. transient="false" volatile="false"
  60678. static="true" final="true" visibility="public"
  60679. deprecated="not deprecated">
  60680. </field>
  60681. <field name="RUNNING" type="org.apache.hadoop.mapred.TIPStatus"
  60682. transient="false" volatile="false"
  60683. static="true" final="true" visibility="public"
  60684. deprecated="not deprecated">
  60685. </field>
  60686. <field name="COMPLETE" type="org.apache.hadoop.mapred.TIPStatus"
  60687. transient="false" volatile="false"
  60688. static="true" final="true" visibility="public"
  60689. deprecated="not deprecated">
  60690. </field>
  60691. <field name="KILLED" type="org.apache.hadoop.mapred.TIPStatus"
  60692. transient="false" volatile="false"
  60693. static="true" final="true" visibility="public"
  60694. deprecated="not deprecated">
  60695. </field>
  60696. <field name="FAILED" type="org.apache.hadoop.mapred.TIPStatus"
  60697. transient="false" volatile="false"
  60698. static="true" final="true" visibility="public"
  60699. deprecated="not deprecated">
  60700. </field>
  60701. <doc>
  60702. <![CDATA[The states of a {@link TaskInProgress} as seen by the JobTracker.]]>
  60703. </doc>
  60704. </class>
  60705. <!-- end class org.apache.hadoop.mapred.TIPStatus -->
  60706. <!-- start class org.apache.hadoop.mapred.UserLogCleaner -->
  60707. <class name="UserLogCleaner" extends="java.lang.Thread"
  60708. abstract="false"
  60709. static="false" final="false" visibility="public"
  60710. deprecated="not deprecated">
  60711. <constructor name="UserLogCleaner" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogManager, org.apache.hadoop.conf.Configuration"
  60712. static="false" final="false" visibility="public"
  60713. deprecated="not deprecated">
  60714. <exception name="IOException" type="java.io.IOException"/>
  60715. </constructor>
  60716. <method name="run"
  60717. abstract="false" native="false" synchronized="false"
  60718. static="false" final="false" visibility="public"
  60719. deprecated="not deprecated">
  60720. </method>
  60721. <method name="deleteJobLogs"
  60722. abstract="false" native="false" synchronized="false"
  60723. static="false" final="false" visibility="public"
  60724. deprecated="not deprecated">
  60725. <param name="jobid" type="org.apache.hadoop.mapreduce.JobID"/>
  60726. <exception name="IOException" type="java.io.IOException"/>
  60727. </method>
  60728. <method name="addOldUserLogsForDeletion"
  60729. abstract="false" native="false" synchronized="false"
  60730. static="false" final="false" visibility="public"
  60731. deprecated="not deprecated">
  60732. <param name="loc" type="java.io.File"/>
  60733. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  60734. <exception name="IOException" type="java.io.IOException"/>
  60735. <doc>
  60736. <![CDATA[Adds the job log directories for deletion with default retain hours.
  60737. Deletes all other directories, if any.
  60738. @param loc location of log directory
  60739. @param conf
  60740. @throws IOException]]>
  60741. </doc>
  60742. </method>
  60743. <method name="clearOldUserLogs"
  60744. abstract="false" native="false" synchronized="false"
  60745. static="false" final="false" visibility="public"
  60746. deprecated="not deprecated">
  60747. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  60748. <exception name="IOException" type="java.io.IOException"/>
  60749. <doc>
  60750. <![CDATA[Clears all the logs in userlogs directory. This is usually called on
  60751. reinit/restart of the TaskTracker.
  60752. @param conf
  60753. @throws IOException]]>
  60754. </doc>
  60755. </method>
  60756. <method name="markJobLogsForDeletion"
  60757. abstract="false" native="false" synchronized="false"
  60758. static="false" final="false" visibility="public"
  60759. deprecated="not deprecated">
  60760. <param name="jobCompletionTime" type="long"/>
  60761. <param name="retainHours" type="int"/>
  60762. <param name="jobid" type="org.apache.hadoop.mapreduce.JobID"/>
  60763. <doc>
  60764. <![CDATA[Adds job user-log directory to cleanup thread to delete logs after user-log
  60765. retain hours.
  60766. @param jobCompletionTime
  60767. job completion time in millis
  60768. @param retainHours
  60769. the user-log retain hours for the job
  60770. @param jobid
  60771. JobID for which user logs should be deleted]]>
  60772. </doc>
  60773. </method>
  60774. <method name="unmarkJobFromLogDeletion"
  60775. abstract="false" native="false" synchronized="false"
  60776. static="false" final="false" visibility="public"
  60777. deprecated="not deprecated">
  60778. <param name="jobid" type="org.apache.hadoop.mapreduce.JobID"/>
  60779. <doc>
  60780. <![CDATA[Remove job from user log deletion.
  60781. @param jobid]]>
  60782. </doc>
  60783. </method>
  60784. <doc>
  60785. <![CDATA[This is used only in UserLogManager, to manage cleanup of user logs.]]>
  60786. </doc>
  60787. </class>
  60788. <!-- end class org.apache.hadoop.mapred.UserLogCleaner -->
  60789. <!-- start class org.apache.hadoop.mapred.Utils -->
  60790. <class name="Utils" extends="java.lang.Object"
  60791. abstract="false"
  60792. static="false" final="false" visibility="public"
  60793. deprecated="not deprecated">
  60794. <constructor name="Utils"
  60795. static="false" final="false" visibility="public"
  60796. deprecated="not deprecated">
  60797. </constructor>
  60798. <doc>
  60799. <![CDATA[A utility class. It provides
  60800. - file-util
  60801. - A path filter utility to filter out output/part files in the output dir]]>
  60802. </doc>
  60803. </class>
  60804. <!-- end class org.apache.hadoop.mapred.Utils -->
  60805. <!-- start class org.apache.hadoop.mapred.Utils.OutputFileUtils -->
  60806. <class name="Utils.OutputFileUtils" extends="java.lang.Object"
  60807. abstract="false"
  60808. static="true" final="false" visibility="public"
  60809. deprecated="not deprecated">
  60810. <constructor name="Utils.OutputFileUtils"
  60811. static="false" final="false" visibility="public"
  60812. deprecated="not deprecated">
  60813. </constructor>
  60814. </class>
  60815. <!-- end class org.apache.hadoop.mapred.Utils.OutputFileUtils -->
  60816. <!-- start class org.apache.hadoop.mapred.Utils.OutputFileUtils.OutputFilesFilter -->
  60817. <class name="Utils.OutputFileUtils.OutputFilesFilter" extends="org.apache.hadoop.mapred.Utils.OutputFileUtils.OutputLogFilter"
  60818. abstract="false"
  60819. static="true" final="false" visibility="public"
  60820. deprecated="not deprecated">
  60821. <constructor name="Utils.OutputFileUtils.OutputFilesFilter"
  60822. static="false" final="false" visibility="public"
  60823. deprecated="not deprecated">
  60824. </constructor>
  60825. <method name="accept" return="boolean"
  60826. abstract="false" native="false" synchronized="false"
  60827. static="false" final="false" visibility="public"
  60828. deprecated="not deprecated">
  60829. <param name="path" type="org.apache.hadoop.fs.Path"/>
  60830. </method>
  60831. <doc>
  60832. <![CDATA[This class filters output(part) files from the given directory
  60833. It does not accept files with filenames _logs and _SUCCESS.
  60834. This can be used to list paths of output directory as follows:
  60835. Path[] fileList = FileUtil.stat2Paths(fs.listStatus(outDir,
  60836. new OutputFilesFilter()));]]>
  60837. </doc>
  60838. </class>
  60839. <!-- end class org.apache.hadoop.mapred.Utils.OutputFileUtils.OutputFilesFilter -->
  60840. <!-- start class org.apache.hadoop.mapred.Utils.OutputFileUtils.OutputLogFilter -->
  60841. <class name="Utils.OutputFileUtils.OutputLogFilter" extends="java.lang.Object"
  60842. abstract="false"
  60843. static="true" final="false" visibility="public"
  60844. deprecated="not deprecated">
  60845. <implements name="org.apache.hadoop.fs.PathFilter"/>
  60846. <constructor name="Utils.OutputFileUtils.OutputLogFilter"
  60847. static="false" final="false" visibility="public"
  60848. deprecated="not deprecated">
  60849. </constructor>
  60850. <method name="accept" return="boolean"
  60851. abstract="false" native="false" synchronized="false"
  60852. static="false" final="false" visibility="public"
  60853. deprecated="not deprecated">
  60854. <param name="path" type="org.apache.hadoop.fs.Path"/>
  60855. </method>
  60856. <doc>
  60857. <![CDATA[This class filters log files from directory given
  60858. It doesnt accept paths having _logs.
  60859. This can be used to list paths of output directory as follows:
  60860. Path[] fileList = FileUtil.stat2Paths(fs.listStatus(outDir,
  60861. new OutputLogFilter()));]]>
  60862. </doc>
  60863. </class>
  60864. <!-- end class org.apache.hadoop.mapred.Utils.OutputFileUtils.OutputLogFilter -->
  60865. </package>
  60866. <package name="org.apache.hadoop.mapred.jobcontrol">
  60867. <!-- start class org.apache.hadoop.mapred.jobcontrol.Job -->
  60868. <class name="Job" extends="java.lang.Object"
  60869. abstract="false"
  60870. static="false" final="false" visibility="public"
  60871. deprecated="not deprecated">
  60872. <constructor name="Job" type="org.apache.hadoop.mapred.JobConf, java.util.ArrayList"
  60873. static="false" final="false" visibility="public"
  60874. deprecated="not deprecated">
  60875. <exception name="IOException" type="java.io.IOException"/>
  60876. <doc>
  60877. <![CDATA[Construct a job.
  60878. @param jobConf a mapred job configuration representing a job to be executed.
  60879. @param dependingJobs an array of jobs the current job depends on]]>
  60880. </doc>
  60881. </constructor>
  60882. <constructor name="Job" type="org.apache.hadoop.mapred.JobConf"
  60883. static="false" final="false" visibility="public"
  60884. deprecated="not deprecated">
  60885. <exception name="IOException" type="java.io.IOException"/>
  60886. <doc>
  60887. <![CDATA[Construct a job.
  60888. @param jobConf mapred job configuration representing a job to be executed.
  60889. @throws IOException]]>
  60890. </doc>
  60891. </constructor>
  60892. <method name="toString" return="java.lang.String"
  60893. abstract="false" native="false" synchronized="false"
  60894. static="false" final="false" visibility="public"
  60895. deprecated="not deprecated">
  60896. </method>
  60897. <method name="getJobName" return="java.lang.String"
  60898. abstract="false" native="false" synchronized="false"
  60899. static="false" final="false" visibility="public"
  60900. deprecated="not deprecated">
  60901. <doc>
  60902. <![CDATA[@return the job name of this job]]>
  60903. </doc>
  60904. </method>
  60905. <method name="setJobName"
  60906. abstract="false" native="false" synchronized="false"
  60907. static="false" final="false" visibility="public"
  60908. deprecated="not deprecated">
  60909. <param name="jobName" type="java.lang.String"/>
  60910. <doc>
  60911. <![CDATA[Set the job name for this job.
  60912. @param jobName the job name]]>
  60913. </doc>
  60914. </method>
  60915. <method name="getJobID" return="java.lang.String"
  60916. abstract="false" native="false" synchronized="false"
  60917. static="false" final="false" visibility="public"
  60918. deprecated="not deprecated">
  60919. <doc>
  60920. <![CDATA[@return the job ID of this job assigned by JobControl]]>
  60921. </doc>
  60922. </method>
  60923. <method name="setJobID"
  60924. abstract="false" native="false" synchronized="false"
  60925. static="false" final="false" visibility="public"
  60926. deprecated="not deprecated">
  60927. <param name="id" type="java.lang.String"/>
  60928. <doc>
  60929. <![CDATA[Set the job ID for this job.
  60930. @param id the job ID]]>
  60931. </doc>
  60932. </method>
  60933. <method name="getMapredJobID" return="java.lang.String"
  60934. abstract="false" native="false" synchronized="false"
  60935. static="false" final="false" visibility="public"
  60936. deprecated="use {@link #getAssignedJobID()} instead">
  60937. <doc>
  60938. <![CDATA[@return the mapred ID of this job
  60939. @deprecated use {@link #getAssignedJobID()} instead]]>
  60940. </doc>
  60941. </method>
  60942. <method name="setMapredJobID"
  60943. abstract="false" native="false" synchronized="false"
  60944. static="false" final="false" visibility="public"
  60945. deprecated="use {@link #setAssignedJobID(JobID)} instead">
  60946. <param name="mapredJobID" type="java.lang.String"/>
  60947. <doc>
  60948. <![CDATA[Set the mapred ID for this job.
  60949. @param mapredJobID the mapred job ID for this job.
  60950. @deprecated use {@link #setAssignedJobID(JobID)} instead]]>
  60951. </doc>
  60952. </method>
  60953. <method name="getAssignedJobID" return="org.apache.hadoop.mapred.JobID"
  60954. abstract="false" native="false" synchronized="false"
  60955. static="false" final="false" visibility="public"
  60956. deprecated="not deprecated">
  60957. <doc>
  60958. <![CDATA[@return the mapred ID of this job as assigned by the
  60959. mapred framework.]]>
  60960. </doc>
  60961. </method>
  60962. <method name="setAssignedJobID"
  60963. abstract="false" native="false" synchronized="false"
  60964. static="false" final="false" visibility="public"
  60965. deprecated="not deprecated">
  60966. <param name="mapredJobID" type="org.apache.hadoop.mapred.JobID"/>
  60967. <doc>
  60968. <![CDATA[Set the mapred ID for this job as assigned by the
  60969. mapred framework.
  60970. @param mapredJobID the mapred job ID for this job.]]>
  60971. </doc>
  60972. </method>
  60973. <method name="getJobConf" return="org.apache.hadoop.mapred.JobConf"
  60974. abstract="false" native="false" synchronized="false"
  60975. static="false" final="false" visibility="public"
  60976. deprecated="not deprecated">
  60977. <doc>
  60978. <![CDATA[@return the mapred job conf of this job]]>
  60979. </doc>
  60980. </method>
  60981. <method name="setJobConf"
  60982. abstract="false" native="false" synchronized="false"
  60983. static="false" final="false" visibility="public"
  60984. deprecated="not deprecated">
  60985. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  60986. <doc>
  60987. <![CDATA[Set the mapred job conf for this job.
  60988. @param jobConf the mapred job conf for this job.]]>
  60989. </doc>
  60990. </method>
  60991. <method name="getState" return="int"
  60992. abstract="false" native="false" synchronized="true"
  60993. static="false" final="false" visibility="public"
  60994. deprecated="not deprecated">
  60995. <doc>
  60996. <![CDATA[@return the state of this job]]>
  60997. </doc>
  60998. </method>
  60999. <method name="setState"
  61000. abstract="false" native="false" synchronized="true"
  61001. static="false" final="false" visibility="protected"
  61002. deprecated="not deprecated">
  61003. <param name="state" type="int"/>
  61004. <doc>
  61005. <![CDATA[Set the state for this job.
  61006. @param state the new state for this job.]]>
  61007. </doc>
  61008. </method>
  61009. <method name="getMessage" return="java.lang.String"
  61010. abstract="false" native="false" synchronized="false"
  61011. static="false" final="false" visibility="public"
  61012. deprecated="not deprecated">
  61013. <doc>
  61014. <![CDATA[@return the message of this job]]>
  61015. </doc>
  61016. </method>
  61017. <method name="setMessage"
  61018. abstract="false" native="false" synchronized="false"
  61019. static="false" final="false" visibility="public"
  61020. deprecated="not deprecated">
  61021. <param name="message" type="java.lang.String"/>
  61022. <doc>
  61023. <![CDATA[Set the message for this job.
  61024. @param message the message for this job.]]>
  61025. </doc>
  61026. </method>
  61027. <method name="getJobClient" return="org.apache.hadoop.mapred.JobClient"
  61028. abstract="false" native="false" synchronized="false"
  61029. static="false" final="false" visibility="public"
  61030. deprecated="not deprecated">
  61031. <doc>
  61032. <![CDATA[@return the job client of this job]]>
  61033. </doc>
  61034. </method>
  61035. <method name="getDependingJobs" return="java.util.ArrayList"
  61036. abstract="false" native="false" synchronized="false"
  61037. static="false" final="false" visibility="public"
  61038. deprecated="not deprecated">
  61039. <doc>
  61040. <![CDATA[@return the depending jobs of this job]]>
  61041. </doc>
  61042. </method>
  61043. <method name="addDependingJob" return="boolean"
  61044. abstract="false" native="false" synchronized="true"
  61045. static="false" final="false" visibility="public"
  61046. deprecated="not deprecated">
  61047. <param name="dependingJob" type="org.apache.hadoop.mapred.jobcontrol.Job"/>
  61048. <doc>
  61049. <![CDATA[Add a job to this jobs' dependency list. Dependent jobs can only be added while a Job
  61050. is waiting to run, not during or afterwards.
  61051. @param dependingJob Job that this Job depends on.
  61052. @return <tt>true</tt> if the Job was added.]]>
  61053. </doc>
  61054. </method>
  61055. <method name="isCompleted" return="boolean"
  61056. abstract="false" native="false" synchronized="false"
  61057. static="false" final="false" visibility="public"
  61058. deprecated="not deprecated">
  61059. <doc>
  61060. <![CDATA[@return true if this job is in a complete state]]>
  61061. </doc>
  61062. </method>
  61063. <method name="isReady" return="boolean"
  61064. abstract="false" native="false" synchronized="false"
  61065. static="false" final="false" visibility="public"
  61066. deprecated="not deprecated">
  61067. <doc>
  61068. <![CDATA[@return true if this job is in READY state]]>
  61069. </doc>
  61070. </method>
  61071. <method name="submit"
  61072. abstract="false" native="false" synchronized="true"
  61073. static="false" final="false" visibility="protected"
  61074. deprecated="not deprecated">
  61075. <doc>
  61076. <![CDATA[Submit this job to mapred. The state becomes RUNNING if submission
  61077. is successful, FAILED otherwise.]]>
  61078. </doc>
  61079. </method>
  61080. <field name="SUCCESS" type="int"
  61081. transient="false" volatile="false"
  61082. static="true" final="true" visibility="public"
  61083. deprecated="not deprecated">
  61084. </field>
  61085. <field name="WAITING" type="int"
  61086. transient="false" volatile="false"
  61087. static="true" final="true" visibility="public"
  61088. deprecated="not deprecated">
  61089. </field>
  61090. <field name="RUNNING" type="int"
  61091. transient="false" volatile="false"
  61092. static="true" final="true" visibility="public"
  61093. deprecated="not deprecated">
  61094. </field>
  61095. <field name="READY" type="int"
  61096. transient="false" volatile="false"
  61097. static="true" final="true" visibility="public"
  61098. deprecated="not deprecated">
  61099. </field>
  61100. <field name="FAILED" type="int"
  61101. transient="false" volatile="false"
  61102. static="true" final="true" visibility="public"
  61103. deprecated="not deprecated">
  61104. </field>
  61105. <field name="DEPENDENT_FAILED" type="int"
  61106. transient="false" volatile="false"
  61107. static="true" final="true" visibility="public"
  61108. deprecated="not deprecated">
  61109. </field>
  61110. <doc>
  61111. <![CDATA[This class encapsulates a MapReduce job and its dependency. It monitors
  61112. the states of the depending jobs and updates the state of this job.
  61113. A job starts in the WAITING state. If it does not have any depending jobs, or
  61114. all of the depending jobs are in SUCCESS state, then the job state will become
  61115. READY. If any depending jobs fail, the job will fail too.
  61116. When in READY state, the job can be submitted to Hadoop for execution, with
  61117. the state changing into RUNNING state. From RUNNING state, the job can get into
  61118. SUCCESS or FAILED state, depending the status of the job execution.]]>
  61119. </doc>
  61120. </class>
  61121. <!-- end class org.apache.hadoop.mapred.jobcontrol.Job -->
  61122. <!-- start class org.apache.hadoop.mapred.jobcontrol.JobControl -->
  61123. <class name="JobControl" extends="java.lang.Object"
  61124. abstract="false"
  61125. static="false" final="false" visibility="public"
  61126. deprecated="not deprecated">
  61127. <implements name="java.lang.Runnable"/>
  61128. <constructor name="JobControl" type="java.lang.String"
  61129. static="false" final="false" visibility="public"
  61130. deprecated="not deprecated">
  61131. <doc>
  61132. <![CDATA[Construct a job control for a group of jobs.
  61133. @param groupName a name identifying this group]]>
  61134. </doc>
  61135. </constructor>
  61136. <method name="getWaitingJobs" return="java.util.ArrayList"
  61137. abstract="false" native="false" synchronized="false"
  61138. static="false" final="false" visibility="public"
  61139. deprecated="not deprecated">
  61140. <doc>
  61141. <![CDATA[@return the jobs in the waiting state]]>
  61142. </doc>
  61143. </method>
  61144. <method name="getRunningJobs" return="java.util.ArrayList"
  61145. abstract="false" native="false" synchronized="false"
  61146. static="false" final="false" visibility="public"
  61147. deprecated="not deprecated">
  61148. <doc>
  61149. <![CDATA[@return the jobs in the running state]]>
  61150. </doc>
  61151. </method>
  61152. <method name="getReadyJobs" return="java.util.ArrayList"
  61153. abstract="false" native="false" synchronized="false"
  61154. static="false" final="false" visibility="public"
  61155. deprecated="not deprecated">
  61156. <doc>
  61157. <![CDATA[@return the jobs in the ready state]]>
  61158. </doc>
  61159. </method>
  61160. <method name="getSuccessfulJobs" return="java.util.ArrayList"
  61161. abstract="false" native="false" synchronized="false"
  61162. static="false" final="false" visibility="public"
  61163. deprecated="not deprecated">
  61164. <doc>
  61165. <![CDATA[@return the jobs in the success state]]>
  61166. </doc>
  61167. </method>
  61168. <method name="getFailedJobs" return="java.util.ArrayList"
  61169. abstract="false" native="false" synchronized="false"
  61170. static="false" final="false" visibility="public"
  61171. deprecated="not deprecated">
  61172. </method>
  61173. <method name="addJob" return="java.lang.String"
  61174. abstract="false" native="false" synchronized="true"
  61175. static="false" final="false" visibility="public"
  61176. deprecated="not deprecated">
  61177. <param name="aJob" type="org.apache.hadoop.mapred.jobcontrol.Job"/>
  61178. <doc>
  61179. <![CDATA[Add a new job.
  61180. @param aJob the new job]]>
  61181. </doc>
  61182. </method>
  61183. <method name="addJobs"
  61184. abstract="false" native="false" synchronized="false"
  61185. static="false" final="false" visibility="public"
  61186. deprecated="not deprecated">
  61187. <param name="jobs" type="java.util.Collection"/>
  61188. <doc>
  61189. <![CDATA[Add a collection of jobs
  61190. @param jobs]]>
  61191. </doc>
  61192. </method>
  61193. <method name="getState" return="int"
  61194. abstract="false" native="false" synchronized="false"
  61195. static="false" final="false" visibility="public"
  61196. deprecated="not deprecated">
  61197. <doc>
  61198. <![CDATA[@return the thread state]]>
  61199. </doc>
  61200. </method>
  61201. <method name="stop"
  61202. abstract="false" native="false" synchronized="false"
  61203. static="false" final="false" visibility="public"
  61204. deprecated="not deprecated">
  61205. <doc>
  61206. <![CDATA[set the thread state to STOPPING so that the
  61207. thread will stop when it wakes up.]]>
  61208. </doc>
  61209. </method>
  61210. <method name="suspend"
  61211. abstract="false" native="false" synchronized="false"
  61212. static="false" final="false" visibility="public"
  61213. deprecated="not deprecated">
  61214. <doc>
  61215. <![CDATA[suspend the running thread]]>
  61216. </doc>
  61217. </method>
  61218. <method name="resume"
  61219. abstract="false" native="false" synchronized="false"
  61220. static="false" final="false" visibility="public"
  61221. deprecated="not deprecated">
  61222. <doc>
  61223. <![CDATA[resume the suspended thread]]>
  61224. </doc>
  61225. </method>
  61226. <method name="allFinished" return="boolean"
  61227. abstract="false" native="false" synchronized="true"
  61228. static="false" final="false" visibility="public"
  61229. deprecated="not deprecated">
  61230. </method>
  61231. <method name="run"
  61232. abstract="false" native="false" synchronized="false"
  61233. static="false" final="false" visibility="public"
  61234. deprecated="not deprecated">
  61235. <doc>
  61236. <![CDATA[The main loop for the thread.
  61237. The loop does the following:
  61238. Check the states of the running jobs
  61239. Update the states of waiting jobs
  61240. Submit the jobs in ready state]]>
  61241. </doc>
  61242. </method>
  61243. <doc>
  61244. <![CDATA[This class encapsulates a set of MapReduce jobs and its dependency. It tracks
  61245. the states of the jobs by placing them into different tables according to their
  61246. states.
  61247. This class provides APIs for the client app to add a job to the group and to get
  61248. the jobs in the group in different states. When a
  61249. job is added, an ID unique to the group is assigned to the job.
  61250. This class has a thread that submits jobs when they become ready, monitors the
  61251. states of the running jobs, and updates the states of jobs based on the state changes
  61252. of their depending jobs states. The class provides APIs for suspending/resuming
  61253. the thread,and for stopping the thread.]]>
  61254. </doc>
  61255. </class>
  61256. <!-- end class org.apache.hadoop.mapred.jobcontrol.JobControl -->
  61257. </package>
  61258. <package name="org.apache.hadoop.mapred.join">
  61259. <!-- start class org.apache.hadoop.mapred.join.ArrayListBackedIterator -->
  61260. <class name="ArrayListBackedIterator" extends="java.lang.Object"
  61261. abstract="false"
  61262. static="false" final="false" visibility="public"
  61263. deprecated="not deprecated">
  61264. <implements name="org.apache.hadoop.mapred.join.ResetableIterator"/>
  61265. <constructor name="ArrayListBackedIterator"
  61266. static="false" final="false" visibility="public"
  61267. deprecated="not deprecated">
  61268. </constructor>
  61269. <constructor name="ArrayListBackedIterator" type="java.util.ArrayList"
  61270. static="false" final="false" visibility="public"
  61271. deprecated="not deprecated">
  61272. </constructor>
  61273. <method name="hasNext" return="boolean"
  61274. abstract="false" native="false" synchronized="false"
  61275. static="false" final="false" visibility="public"
  61276. deprecated="not deprecated">
  61277. </method>
  61278. <method name="next" return="boolean"
  61279. abstract="false" native="false" synchronized="false"
  61280. static="false" final="false" visibility="public"
  61281. deprecated="not deprecated">
  61282. <param name="val" type="org.apache.hadoop.io.Writable"/>
  61283. <exception name="IOException" type="java.io.IOException"/>
  61284. </method>
  61285. <method name="replay" return="boolean"
  61286. abstract="false" native="false" synchronized="false"
  61287. static="false" final="false" visibility="public"
  61288. deprecated="not deprecated">
  61289. <param name="val" type="org.apache.hadoop.io.Writable"/>
  61290. <exception name="IOException" type="java.io.IOException"/>
  61291. </method>
  61292. <method name="reset"
  61293. abstract="false" native="false" synchronized="false"
  61294. static="false" final="false" visibility="public"
  61295. deprecated="not deprecated">
  61296. </method>
  61297. <method name="add"
  61298. abstract="false" native="false" synchronized="false"
  61299. static="false" final="false" visibility="public"
  61300. deprecated="not deprecated">
  61301. <param name="item" type="org.apache.hadoop.io.Writable"/>
  61302. <exception name="IOException" type="java.io.IOException"/>
  61303. </method>
  61304. <method name="close"
  61305. abstract="false" native="false" synchronized="false"
  61306. static="false" final="false" visibility="public"
  61307. deprecated="not deprecated">
  61308. <exception name="IOException" type="java.io.IOException"/>
  61309. </method>
  61310. <method name="clear"
  61311. abstract="false" native="false" synchronized="false"
  61312. static="false" final="false" visibility="public"
  61313. deprecated="not deprecated">
  61314. </method>
  61315. <doc>
  61316. <![CDATA[This class provides an implementation of ResetableIterator. The
  61317. implementation uses an {@link java.util.ArrayList} to store elements
  61318. added to it, replaying them as requested.
  61319. Prefer {@link StreamBackedIterator}.]]>
  61320. </doc>
  61321. </class>
  61322. <!-- end class org.apache.hadoop.mapred.join.ArrayListBackedIterator -->
  61323. <!-- start interface org.apache.hadoop.mapred.join.ComposableInputFormat -->
  61324. <interface name="ComposableInputFormat" abstract="true"
  61325. static="false" final="false" visibility="public"
  61326. deprecated="not deprecated">
  61327. <implements name="org.apache.hadoop.mapred.InputFormat"/>
  61328. <method name="getRecordReader" return="org.apache.hadoop.mapred.join.ComposableRecordReader"
  61329. abstract="false" native="false" synchronized="false"
  61330. static="false" final="false" visibility="public"
  61331. deprecated="not deprecated">
  61332. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  61333. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61334. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  61335. <exception name="IOException" type="java.io.IOException"/>
  61336. </method>
  61337. <doc>
  61338. <![CDATA[Refinement of InputFormat requiring implementors to provide
  61339. ComposableRecordReader instead of RecordReader.]]>
  61340. </doc>
  61341. </interface>
  61342. <!-- end interface org.apache.hadoop.mapred.join.ComposableInputFormat -->
  61343. <!-- start interface org.apache.hadoop.mapred.join.ComposableRecordReader -->
  61344. <interface name="ComposableRecordReader" abstract="true"
  61345. static="false" final="false" visibility="public"
  61346. deprecated="not deprecated">
  61347. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  61348. <implements name="java.lang.Comparable"/>
  61349. <method name="id" return="int"
  61350. abstract="false" native="false" synchronized="false"
  61351. static="false" final="false" visibility="public"
  61352. deprecated="not deprecated">
  61353. <doc>
  61354. <![CDATA[Return the position in the collector this class occupies.]]>
  61355. </doc>
  61356. </method>
  61357. <method name="key" return="org.apache.hadoop.io.WritableComparable"
  61358. abstract="false" native="false" synchronized="false"
  61359. static="false" final="false" visibility="public"
  61360. deprecated="not deprecated">
  61361. <doc>
  61362. <![CDATA[Return the key this RecordReader would supply on a call to next(K,V)]]>
  61363. </doc>
  61364. </method>
  61365. <method name="key"
  61366. abstract="false" native="false" synchronized="false"
  61367. static="false" final="false" visibility="public"
  61368. deprecated="not deprecated">
  61369. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  61370. <exception name="IOException" type="java.io.IOException"/>
  61371. <doc>
  61372. <![CDATA[Clone the key at the head of this RecordReader into the object provided.]]>
  61373. </doc>
  61374. </method>
  61375. <method name="hasNext" return="boolean"
  61376. abstract="false" native="false" synchronized="false"
  61377. static="false" final="false" visibility="public"
  61378. deprecated="not deprecated">
  61379. <doc>
  61380. <![CDATA[Returns true if the stream is not empty, but provides no guarantee that
  61381. a call to next(K,V) will succeed.]]>
  61382. </doc>
  61383. </method>
  61384. <method name="skip"
  61385. abstract="false" native="false" synchronized="false"
  61386. static="false" final="false" visibility="public"
  61387. deprecated="not deprecated">
  61388. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  61389. <exception name="IOException" type="java.io.IOException"/>
  61390. <doc>
  61391. <![CDATA[Skip key-value pairs with keys less than or equal to the key provided.]]>
  61392. </doc>
  61393. </method>
  61394. <method name="accept"
  61395. abstract="false" native="false" synchronized="false"
  61396. static="false" final="false" visibility="public"
  61397. deprecated="not deprecated">
  61398. <param name="jc" type="org.apache.hadoop.mapred.join.CompositeRecordReader.JoinCollector"/>
  61399. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  61400. <exception name="IOException" type="java.io.IOException"/>
  61401. <doc>
  61402. <![CDATA[While key-value pairs from this RecordReader match the given key, register
  61403. them with the JoinCollector provided.]]>
  61404. </doc>
  61405. </method>
  61406. <doc>
  61407. <![CDATA[Additional operations required of a RecordReader to participate in a join.]]>
  61408. </doc>
  61409. </interface>
  61410. <!-- end interface org.apache.hadoop.mapred.join.ComposableRecordReader -->
  61411. <!-- start class org.apache.hadoop.mapred.join.CompositeInputFormat -->
  61412. <class name="CompositeInputFormat" extends="java.lang.Object"
  61413. abstract="false"
  61414. static="false" final="false" visibility="public"
  61415. deprecated="not deprecated">
  61416. <implements name="org.apache.hadoop.mapred.join.ComposableInputFormat"/>
  61417. <constructor name="CompositeInputFormat"
  61418. static="false" final="false" visibility="public"
  61419. deprecated="not deprecated">
  61420. </constructor>
  61421. <method name="setFormat"
  61422. abstract="false" native="false" synchronized="false"
  61423. static="false" final="false" visibility="public"
  61424. deprecated="not deprecated">
  61425. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61426. <exception name="IOException" type="java.io.IOException"/>
  61427. <doc>
  61428. <![CDATA[Interpret a given string as a composite expression.
  61429. {@code
  61430. func ::= <ident>([<func>,]*<func>)
  61431. func ::= tbl(<class>,"<path>")
  61432. class ::= @see java.lang.Class#forName(java.lang.String)
  61433. path ::= @see org.apache.hadoop.fs.Path#Path(java.lang.String)
  61434. }
  61435. Reads expression from the <tt>mapred.join.expr</tt> property and
  61436. user-supplied join types from <tt>mapred.join.define.&lt;ident&gt;</tt>
  61437. types. Paths supplied to <tt>tbl</tt> are given as input paths to the
  61438. InputFormat class listed.
  61439. @see #compose(java.lang.String, java.lang.Class, java.lang.String...)]]>
  61440. </doc>
  61441. </method>
  61442. <method name="addDefaults"
  61443. abstract="false" native="false" synchronized="false"
  61444. static="false" final="false" visibility="protected"
  61445. deprecated="not deprecated">
  61446. <doc>
  61447. <![CDATA[Adds the default set of identifiers to the parser.]]>
  61448. </doc>
  61449. </method>
  61450. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  61451. abstract="false" native="false" synchronized="false"
  61452. static="false" final="false" visibility="public"
  61453. deprecated="not deprecated">
  61454. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61455. <param name="numSplits" type="int"/>
  61456. <exception name="IOException" type="java.io.IOException"/>
  61457. <doc>
  61458. <![CDATA[Build a CompositeInputSplit from the child InputFormats by assigning the
  61459. ith split from each child to the ith composite split.]]>
  61460. </doc>
  61461. </method>
  61462. <method name="getRecordReader" return="org.apache.hadoop.mapred.join.ComposableRecordReader"
  61463. abstract="false" native="false" synchronized="false"
  61464. static="false" final="false" visibility="public"
  61465. deprecated="not deprecated">
  61466. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  61467. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  61468. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  61469. <exception name="IOException" type="java.io.IOException"/>
  61470. <doc>
  61471. <![CDATA[Construct a CompositeRecordReader for the children of this InputFormat
  61472. as defined in the init expression.
  61473. The outermost join need only be composable, not necessarily a composite.
  61474. Mandating TupleWritable isn't strictly correct.]]>
  61475. </doc>
  61476. </method>
  61477. <method name="compose" return="java.lang.String"
  61478. abstract="false" native="false" synchronized="false"
  61479. static="true" final="false" visibility="public"
  61480. deprecated="not deprecated">
  61481. <param name="inf" type="java.lang.Class"/>
  61482. <param name="path" type="java.lang.String"/>
  61483. <doc>
  61484. <![CDATA[Convenience method for constructing composite formats.
  61485. Given InputFormat class (inf), path (p) return:
  61486. {@code tbl(<inf>, <p>) }]]>
  61487. </doc>
  61488. </method>
  61489. <method name="compose" return="java.lang.String"
  61490. abstract="false" native="false" synchronized="false"
  61491. static="true" final="false" visibility="public"
  61492. deprecated="not deprecated">
  61493. <param name="op" type="java.lang.String"/>
  61494. <param name="inf" type="java.lang.Class"/>
  61495. <param name="path" type="java.lang.String[]"/>
  61496. <doc>
  61497. <![CDATA[Convenience method for constructing composite formats.
  61498. Given operation (op), Object class (inf), set of paths (p) return:
  61499. {@code <op>(tbl(<inf>,<p1>),tbl(<inf>,<p2>),...,tbl(<inf>,<pn>)) }]]>
  61500. </doc>
  61501. </method>
  61502. <method name="compose" return="java.lang.String"
  61503. abstract="false" native="false" synchronized="false"
  61504. static="true" final="false" visibility="public"
  61505. deprecated="not deprecated">
  61506. <param name="op" type="java.lang.String"/>
  61507. <param name="inf" type="java.lang.Class"/>
  61508. <param name="path" type="org.apache.hadoop.fs.Path[]"/>
  61509. <doc>
  61510. <![CDATA[Convenience method for constructing composite formats.
  61511. Given operation (op), Object class (inf), set of paths (p) return:
  61512. {@code <op>(tbl(<inf>,<p1>),tbl(<inf>,<p2>),...,tbl(<inf>,<pn>)) }]]>
  61513. </doc>
  61514. </method>
  61515. <doc>
  61516. <![CDATA[An InputFormat capable of performing joins over a set of data sources sorted
  61517. and partitioned the same way.
  61518. @see #setFormat
  61519. A user may define new join types by setting the property
  61520. <tt>mapred.join.define.&lt;ident&gt;</tt> to a classname. In the expression
  61521. <tt>mapred.join.expr</tt>, the identifier will be assumed to be a
  61522. ComposableRecordReader.
  61523. <tt>mapred.join.keycomparator</tt> can be a classname used to compare keys
  61524. in the join.
  61525. @see JoinRecordReader
  61526. @see MultiFilterRecordReader]]>
  61527. </doc>
  61528. </class>
  61529. <!-- end class org.apache.hadoop.mapred.join.CompositeInputFormat -->
  61530. <!-- start class org.apache.hadoop.mapred.join.CompositeInputSplit -->
  61531. <class name="CompositeInputSplit" extends="java.lang.Object"
  61532. abstract="false"
  61533. static="false" final="false" visibility="public"
  61534. deprecated="not deprecated">
  61535. <implements name="org.apache.hadoop.mapred.InputSplit"/>
  61536. <constructor name="CompositeInputSplit"
  61537. static="false" final="false" visibility="public"
  61538. deprecated="not deprecated">
  61539. </constructor>
  61540. <constructor name="CompositeInputSplit" type="int"
  61541. static="false" final="false" visibility="public"
  61542. deprecated="not deprecated">
  61543. </constructor>
  61544. <method name="add"
  61545. abstract="false" native="false" synchronized="false"
  61546. static="false" final="false" visibility="public"
  61547. deprecated="not deprecated">
  61548. <param name="s" type="org.apache.hadoop.mapred.InputSplit"/>
  61549. <exception name="IOException" type="java.io.IOException"/>
  61550. <doc>
  61551. <![CDATA[Add an InputSplit to this collection.
  61552. @throws IOException If capacity was not specified during construction
  61553. or if capacity has been reached.]]>
  61554. </doc>
  61555. </method>
  61556. <method name="get" return="org.apache.hadoop.mapred.InputSplit"
  61557. abstract="false" native="false" synchronized="false"
  61558. static="false" final="false" visibility="public"
  61559. deprecated="not deprecated">
  61560. <param name="i" type="int"/>
  61561. <doc>
  61562. <![CDATA[Get ith child InputSplit.]]>
  61563. </doc>
  61564. </method>
  61565. <method name="getLength" return="long"
  61566. abstract="false" native="false" synchronized="false"
  61567. static="false" final="false" visibility="public"
  61568. deprecated="not deprecated">
  61569. <exception name="IOException" type="java.io.IOException"/>
  61570. <doc>
  61571. <![CDATA[Return the aggregate length of all child InputSplits currently added.]]>
  61572. </doc>
  61573. </method>
  61574. <method name="getLength" return="long"
  61575. abstract="false" native="false" synchronized="false"
  61576. static="false" final="false" visibility="public"
  61577. deprecated="not deprecated">
  61578. <param name="i" type="int"/>
  61579. <exception name="IOException" type="java.io.IOException"/>
  61580. <doc>
  61581. <![CDATA[Get the length of ith child InputSplit.]]>
  61582. </doc>
  61583. </method>
  61584. <method name="getLocations" return="java.lang.String[]"
  61585. abstract="false" native="false" synchronized="false"
  61586. static="false" final="false" visibility="public"
  61587. deprecated="not deprecated">
  61588. <exception name="IOException" type="java.io.IOException"/>
  61589. <doc>
  61590. <![CDATA[Collect a set of hosts from all child InputSplits.]]>
  61591. </doc>
  61592. </method>
  61593. <method name="getLocation" return="java.lang.String[]"
  61594. abstract="false" native="false" synchronized="false"
  61595. static="false" final="false" visibility="public"
  61596. deprecated="not deprecated">
  61597. <param name="i" type="int"/>
  61598. <exception name="IOException" type="java.io.IOException"/>
  61599. <doc>
  61600. <![CDATA[getLocations from ith InputSplit.]]>
  61601. </doc>
  61602. </method>
  61603. <method name="write"
  61604. abstract="false" native="false" synchronized="false"
  61605. static="false" final="false" visibility="public"
  61606. deprecated="not deprecated">
  61607. <param name="out" type="java.io.DataOutput"/>
  61608. <exception name="IOException" type="java.io.IOException"/>
  61609. <doc>
  61610. <![CDATA[Write splits in the following format.
  61611. {@code
  61612. <count><class1><class2>...<classn><split1><split2>...<splitn>
  61613. }]]>
  61614. </doc>
  61615. </method>
  61616. <method name="readFields"
  61617. abstract="false" native="false" synchronized="false"
  61618. static="false" final="false" visibility="public"
  61619. deprecated="not deprecated">
  61620. <param name="in" type="java.io.DataInput"/>
  61621. <exception name="IOException" type="java.io.IOException"/>
  61622. <doc>
  61623. <![CDATA[{@inheritDoc}
  61624. @throws IOException If the child InputSplit cannot be read, typically
  61625. for faliing access checks.]]>
  61626. </doc>
  61627. </method>
  61628. <doc>
  61629. <![CDATA[This InputSplit contains a set of child InputSplits. Any InputSplit inserted
  61630. into this collection must have a public default constructor.]]>
  61631. </doc>
  61632. </class>
  61633. <!-- end class org.apache.hadoop.mapred.join.CompositeInputSplit -->
  61634. <!-- start class org.apache.hadoop.mapred.join.CompositeRecordReader -->
  61635. <class name="CompositeRecordReader" extends="java.lang.Object"
  61636. abstract="true"
  61637. static="false" final="false" visibility="public"
  61638. deprecated="not deprecated">
  61639. <implements name="org.apache.hadoop.conf.Configurable"/>
  61640. <constructor name="CompositeRecordReader" type="int, int, java.lang.Class"
  61641. static="false" final="false" visibility="public"
  61642. deprecated="not deprecated">
  61643. <exception name="IOException" type="java.io.IOException"/>
  61644. <doc>
  61645. <![CDATA[Create a RecordReader with <tt>capacity</tt> children to position
  61646. <tt>id</tt> in the parent reader.
  61647. The id of a root CompositeRecordReader is -1 by convention, but relying
  61648. on this is not recommended.]]>
  61649. </doc>
  61650. </constructor>
  61651. <method name="combine" return="boolean"
  61652. abstract="true" native="false" synchronized="false"
  61653. static="false" final="false" visibility="protected"
  61654. deprecated="not deprecated">
  61655. <param name="srcs" type="java.lang.Object[]"/>
  61656. <param name="value" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  61657. </method>
  61658. <method name="id" return="int"
  61659. abstract="false" native="false" synchronized="false"
  61660. static="false" final="false" visibility="public"
  61661. deprecated="not deprecated">
  61662. <doc>
  61663. <![CDATA[Return the position in the collector this class occupies.]]>
  61664. </doc>
  61665. </method>
  61666. <method name="setConf"
  61667. abstract="false" native="false" synchronized="false"
  61668. static="false" final="false" visibility="public"
  61669. deprecated="not deprecated">
  61670. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  61671. <doc>
  61672. <![CDATA[{@inheritDoc}]]>
  61673. </doc>
  61674. </method>
  61675. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  61676. abstract="false" native="false" synchronized="false"
  61677. static="false" final="false" visibility="public"
  61678. deprecated="not deprecated">
  61679. <doc>
  61680. <![CDATA[{@inheritDoc}]]>
  61681. </doc>
  61682. </method>
  61683. <method name="getRecordReaderQueue" return="java.util.PriorityQueue"
  61684. abstract="false" native="false" synchronized="false"
  61685. static="false" final="false" visibility="protected"
  61686. deprecated="not deprecated">
  61687. <doc>
  61688. <![CDATA[Return sorted list of RecordReaders for this composite.]]>
  61689. </doc>
  61690. </method>
  61691. <method name="getComparator" return="org.apache.hadoop.io.WritableComparator"
  61692. abstract="false" native="false" synchronized="false"
  61693. static="false" final="false" visibility="protected"
  61694. deprecated="not deprecated">
  61695. <doc>
  61696. <![CDATA[Return comparator defining the ordering for RecordReaders in this
  61697. composite.]]>
  61698. </doc>
  61699. </method>
  61700. <method name="add"
  61701. abstract="false" native="false" synchronized="false"
  61702. static="false" final="false" visibility="public"
  61703. deprecated="not deprecated">
  61704. <param name="rr" type="org.apache.hadoop.mapred.join.ComposableRecordReader"/>
  61705. <exception name="IOException" type="java.io.IOException"/>
  61706. <doc>
  61707. <![CDATA[Add a RecordReader to this collection.
  61708. The id() of a RecordReader determines where in the Tuple its
  61709. entry will appear. Adding RecordReaders with the same id has
  61710. undefined behavior.]]>
  61711. </doc>
  61712. </method>
  61713. <method name="key" return="org.apache.hadoop.io.WritableComparable"
  61714. abstract="false" native="false" synchronized="false"
  61715. static="false" final="false" visibility="public"
  61716. deprecated="not deprecated">
  61717. <doc>
  61718. <![CDATA[Return the key for the current join or the value at the top of the
  61719. RecordReader heap.]]>
  61720. </doc>
  61721. </method>
  61722. <method name="key"
  61723. abstract="false" native="false" synchronized="false"
  61724. static="false" final="false" visibility="public"
  61725. deprecated="not deprecated">
  61726. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  61727. <exception name="IOException" type="java.io.IOException"/>
  61728. <doc>
  61729. <![CDATA[Clone the key at the top of this RR into the given object.]]>
  61730. </doc>
  61731. </method>
  61732. <method name="hasNext" return="boolean"
  61733. abstract="false" native="false" synchronized="false"
  61734. static="false" final="false" visibility="public"
  61735. deprecated="not deprecated">
  61736. <doc>
  61737. <![CDATA[Return true if it is possible that this could emit more values.]]>
  61738. </doc>
  61739. </method>
  61740. <method name="skip"
  61741. abstract="false" native="false" synchronized="false"
  61742. static="false" final="false" visibility="public"
  61743. deprecated="not deprecated">
  61744. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  61745. <exception name="IOException" type="java.io.IOException"/>
  61746. <doc>
  61747. <![CDATA[Pass skip key to child RRs.]]>
  61748. </doc>
  61749. </method>
  61750. <method name="getDelegate" return="org.apache.hadoop.mapred.join.ResetableIterator"
  61751. abstract="true" native="false" synchronized="false"
  61752. static="false" final="false" visibility="protected"
  61753. deprecated="not deprecated">
  61754. <doc>
  61755. <![CDATA[Obtain an iterator over the child RRs apropos of the value type
  61756. ultimately emitted from this join.]]>
  61757. </doc>
  61758. </method>
  61759. <method name="accept"
  61760. abstract="false" native="false" synchronized="false"
  61761. static="false" final="false" visibility="public"
  61762. deprecated="not deprecated">
  61763. <param name="jc" type="org.apache.hadoop.mapred.join.CompositeRecordReader.JoinCollector"/>
  61764. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  61765. <exception name="IOException" type="java.io.IOException"/>
  61766. <doc>
  61767. <![CDATA[If key provided matches that of this Composite, give JoinCollector
  61768. iterator over values it may emit.]]>
  61769. </doc>
  61770. </method>
  61771. <method name="fillJoinCollector"
  61772. abstract="false" native="false" synchronized="false"
  61773. static="false" final="false" visibility="protected"
  61774. deprecated="not deprecated">
  61775. <param name="iterkey" type="org.apache.hadoop.io.WritableComparable"/>
  61776. <exception name="IOException" type="java.io.IOException"/>
  61777. <doc>
  61778. <![CDATA[For all child RRs offering the key provided, obtain an iterator
  61779. at that position in the JoinCollector.]]>
  61780. </doc>
  61781. </method>
  61782. <method name="compareTo" return="int"
  61783. abstract="false" native="false" synchronized="false"
  61784. static="false" final="false" visibility="public"
  61785. deprecated="not deprecated">
  61786. <param name="other" type="org.apache.hadoop.mapred.join.ComposableRecordReader"/>
  61787. <doc>
  61788. <![CDATA[Implement Comparable contract (compare key of join or head of heap
  61789. with that of another).]]>
  61790. </doc>
  61791. </method>
  61792. <method name="createKey" return="org.apache.hadoop.io.WritableComparable"
  61793. abstract="false" native="false" synchronized="false"
  61794. static="false" final="false" visibility="public"
  61795. deprecated="not deprecated">
  61796. <doc>
  61797. <![CDATA[Create a new key value common to all child RRs.
  61798. @throws ClassCastException if key classes differ.]]>
  61799. </doc>
  61800. </method>
  61801. <method name="createInternalValue" return="org.apache.hadoop.mapred.join.TupleWritable"
  61802. abstract="false" native="false" synchronized="false"
  61803. static="false" final="false" visibility="protected"
  61804. deprecated="not deprecated">
  61805. <doc>
  61806. <![CDATA[Create a value to be used internally for joins.]]>
  61807. </doc>
  61808. </method>
  61809. <method name="getPos" return="long"
  61810. abstract="false" native="false" synchronized="false"
  61811. static="false" final="false" visibility="public"
  61812. deprecated="not deprecated">
  61813. <exception name="IOException" type="java.io.IOException"/>
  61814. <doc>
  61815. <![CDATA[Unsupported (returns zero in all cases).]]>
  61816. </doc>
  61817. </method>
  61818. <method name="close"
  61819. abstract="false" native="false" synchronized="false"
  61820. static="false" final="false" visibility="public"
  61821. deprecated="not deprecated">
  61822. <exception name="IOException" type="java.io.IOException"/>
  61823. <doc>
  61824. <![CDATA[Close all child RRs.]]>
  61825. </doc>
  61826. </method>
  61827. <method name="getProgress" return="float"
  61828. abstract="false" native="false" synchronized="false"
  61829. static="false" final="false" visibility="public"
  61830. deprecated="not deprecated">
  61831. <exception name="IOException" type="java.io.IOException"/>
  61832. <doc>
  61833. <![CDATA[Report progress as the minimum of all child RR progress.]]>
  61834. </doc>
  61835. </method>
  61836. <field name="jc" type="org.apache.hadoop.mapred.join.CompositeRecordReader.JoinCollector"
  61837. transient="false" volatile="false"
  61838. static="false" final="true" visibility="protected"
  61839. deprecated="not deprecated">
  61840. </field>
  61841. <field name="kids" type="org.apache.hadoop.mapred.join.ComposableRecordReader[]"
  61842. transient="false" volatile="false"
  61843. static="false" final="true" visibility="protected"
  61844. deprecated="not deprecated">
  61845. </field>
  61846. <doc>
  61847. <![CDATA[A RecordReader that can effect joins of RecordReaders sharing a common key
  61848. type and partitioning.]]>
  61849. </doc>
  61850. </class>
  61851. <!-- end class org.apache.hadoop.mapred.join.CompositeRecordReader -->
  61852. <!-- start class org.apache.hadoop.mapred.join.InnerJoinRecordReader -->
  61853. <class name="InnerJoinRecordReader" extends="org.apache.hadoop.mapred.join.JoinRecordReader"
  61854. abstract="false"
  61855. static="false" final="false" visibility="public"
  61856. deprecated="not deprecated">
  61857. <method name="combine" return="boolean"
  61858. abstract="false" native="false" synchronized="false"
  61859. static="false" final="false" visibility="protected"
  61860. deprecated="not deprecated">
  61861. <param name="srcs" type="java.lang.Object[]"/>
  61862. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  61863. <doc>
  61864. <![CDATA[Return true iff the tuple is full (all data sources contain this key).]]>
  61865. </doc>
  61866. </method>
  61867. <doc>
  61868. <![CDATA[Full inner join.]]>
  61869. </doc>
  61870. </class>
  61871. <!-- end class org.apache.hadoop.mapred.join.InnerJoinRecordReader -->
  61872. <!-- start class org.apache.hadoop.mapred.join.JoinRecordReader -->
  61873. <class name="JoinRecordReader" extends="org.apache.hadoop.mapred.join.CompositeRecordReader"
  61874. abstract="true"
  61875. static="false" final="false" visibility="public"
  61876. deprecated="not deprecated">
  61877. <implements name="org.apache.hadoop.mapred.join.ComposableRecordReader"/>
  61878. <constructor name="JoinRecordReader" type="int, org.apache.hadoop.mapred.JobConf, int, java.lang.Class"
  61879. static="false" final="false" visibility="public"
  61880. deprecated="not deprecated">
  61881. <exception name="IOException" type="java.io.IOException"/>
  61882. </constructor>
  61883. <method name="next" return="boolean"
  61884. abstract="false" native="false" synchronized="false"
  61885. static="false" final="false" visibility="public"
  61886. deprecated="not deprecated">
  61887. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  61888. <param name="value" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  61889. <exception name="IOException" type="java.io.IOException"/>
  61890. <doc>
  61891. <![CDATA[Emit the next set of key, value pairs as defined by the child
  61892. RecordReaders and operation associated with this composite RR.]]>
  61893. </doc>
  61894. </method>
  61895. <method name="createValue" return="org.apache.hadoop.mapred.join.TupleWritable"
  61896. abstract="false" native="false" synchronized="false"
  61897. static="false" final="false" visibility="public"
  61898. deprecated="not deprecated">
  61899. <doc>
  61900. <![CDATA[{@inheritDoc}]]>
  61901. </doc>
  61902. </method>
  61903. <method name="getDelegate" return="org.apache.hadoop.mapred.join.ResetableIterator"
  61904. abstract="false" native="false" synchronized="false"
  61905. static="false" final="false" visibility="protected"
  61906. deprecated="not deprecated">
  61907. <doc>
  61908. <![CDATA[Return an iterator wrapping the JoinCollector.]]>
  61909. </doc>
  61910. </method>
  61911. <doc>
  61912. <![CDATA[Base class for Composite joins returning Tuples of arbitrary Writables.]]>
  61913. </doc>
  61914. </class>
  61915. <!-- end class org.apache.hadoop.mapred.join.JoinRecordReader -->
  61916. <!-- start class org.apache.hadoop.mapred.join.JoinRecordReader.JoinDelegationIterator -->
  61917. <class name="JoinRecordReader.JoinDelegationIterator" extends="java.lang.Object"
  61918. abstract="false"
  61919. static="false" final="false" visibility="protected"
  61920. deprecated="not deprecated">
  61921. <implements name="org.apache.hadoop.mapred.join.ResetableIterator"/>
  61922. <constructor name="JoinRecordReader.JoinDelegationIterator"
  61923. static="false" final="false" visibility="protected"
  61924. deprecated="not deprecated">
  61925. </constructor>
  61926. <method name="hasNext" return="boolean"
  61927. abstract="false" native="false" synchronized="false"
  61928. static="false" final="false" visibility="public"
  61929. deprecated="not deprecated">
  61930. </method>
  61931. <method name="next" return="boolean"
  61932. abstract="false" native="false" synchronized="false"
  61933. static="false" final="false" visibility="public"
  61934. deprecated="not deprecated">
  61935. <param name="val" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  61936. <exception name="IOException" type="java.io.IOException"/>
  61937. </method>
  61938. <method name="replay" return="boolean"
  61939. abstract="false" native="false" synchronized="false"
  61940. static="false" final="false" visibility="public"
  61941. deprecated="not deprecated">
  61942. <param name="val" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  61943. <exception name="IOException" type="java.io.IOException"/>
  61944. </method>
  61945. <method name="reset"
  61946. abstract="false" native="false" synchronized="false"
  61947. static="false" final="false" visibility="public"
  61948. deprecated="not deprecated">
  61949. </method>
  61950. <method name="add"
  61951. abstract="false" native="false" synchronized="false"
  61952. static="false" final="false" visibility="public"
  61953. deprecated="not deprecated">
  61954. <param name="item" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  61955. <exception name="IOException" type="java.io.IOException"/>
  61956. </method>
  61957. <method name="close"
  61958. abstract="false" native="false" synchronized="false"
  61959. static="false" final="false" visibility="public"
  61960. deprecated="not deprecated">
  61961. <exception name="IOException" type="java.io.IOException"/>
  61962. </method>
  61963. <method name="clear"
  61964. abstract="false" native="false" synchronized="false"
  61965. static="false" final="false" visibility="public"
  61966. deprecated="not deprecated">
  61967. </method>
  61968. <doc>
  61969. <![CDATA[Since the JoinCollector is effecting our operation, we need only
  61970. provide an iterator proxy wrapping its operation.]]>
  61971. </doc>
  61972. </class>
  61973. <!-- end class org.apache.hadoop.mapred.join.JoinRecordReader.JoinDelegationIterator -->
  61974. <!-- start class org.apache.hadoop.mapred.join.MultiFilterRecordReader -->
  61975. <class name="MultiFilterRecordReader" extends="org.apache.hadoop.mapred.join.CompositeRecordReader"
  61976. abstract="true"
  61977. static="false" final="false" visibility="public"
  61978. deprecated="not deprecated">
  61979. <implements name="org.apache.hadoop.mapred.join.ComposableRecordReader"/>
  61980. <constructor name="MultiFilterRecordReader" type="int, org.apache.hadoop.mapred.JobConf, int, java.lang.Class"
  61981. static="false" final="false" visibility="public"
  61982. deprecated="not deprecated">
  61983. <exception name="IOException" type="java.io.IOException"/>
  61984. </constructor>
  61985. <method name="emit" return="org.apache.hadoop.io.Writable"
  61986. abstract="true" native="false" synchronized="false"
  61987. static="false" final="false" visibility="protected"
  61988. deprecated="not deprecated">
  61989. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  61990. <exception name="IOException" type="java.io.IOException"/>
  61991. <doc>
  61992. <![CDATA[For each tuple emitted, return a value (typically one of the values
  61993. in the tuple).
  61994. Modifying the Writables in the tuple is permitted and unlikely to affect
  61995. join behavior in most cases, but it is not recommended. It's safer to
  61996. clone first.]]>
  61997. </doc>
  61998. </method>
  61999. <method name="combine" return="boolean"
  62000. abstract="false" native="false" synchronized="false"
  62001. static="false" final="false" visibility="protected"
  62002. deprecated="not deprecated">
  62003. <param name="srcs" type="java.lang.Object[]"/>
  62004. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  62005. <doc>
  62006. <![CDATA[Default implementation offers {@link #emit} every Tuple from the
  62007. collector (the outer join of child RRs).]]>
  62008. </doc>
  62009. </method>
  62010. <method name="next" return="boolean"
  62011. abstract="false" native="false" synchronized="false"
  62012. static="false" final="false" visibility="public"
  62013. deprecated="not deprecated">
  62014. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  62015. <param name="value" type="org.apache.hadoop.io.Writable"/>
  62016. <exception name="IOException" type="java.io.IOException"/>
  62017. <doc>
  62018. <![CDATA[{@inheritDoc}]]>
  62019. </doc>
  62020. </method>
  62021. <method name="createValue" return="org.apache.hadoop.io.Writable"
  62022. abstract="false" native="false" synchronized="false"
  62023. static="false" final="false" visibility="public"
  62024. deprecated="not deprecated">
  62025. <doc>
  62026. <![CDATA[{@inheritDoc}]]>
  62027. </doc>
  62028. </method>
  62029. <method name="getDelegate" return="org.apache.hadoop.mapred.join.ResetableIterator"
  62030. abstract="false" native="false" synchronized="false"
  62031. static="false" final="false" visibility="protected"
  62032. deprecated="not deprecated">
  62033. <doc>
  62034. <![CDATA[Return an iterator returning a single value from the tuple.
  62035. @see MultiFilterDelegationIterator]]>
  62036. </doc>
  62037. </method>
  62038. <doc>
  62039. <![CDATA[Base class for Composite join returning values derived from multiple
  62040. sources, but generally not tuples.]]>
  62041. </doc>
  62042. </class>
  62043. <!-- end class org.apache.hadoop.mapred.join.MultiFilterRecordReader -->
  62044. <!-- start class org.apache.hadoop.mapred.join.MultiFilterRecordReader.MultiFilterDelegationIterator -->
  62045. <class name="MultiFilterRecordReader.MultiFilterDelegationIterator" extends="java.lang.Object"
  62046. abstract="false"
  62047. static="false" final="false" visibility="protected"
  62048. deprecated="not deprecated">
  62049. <implements name="org.apache.hadoop.mapred.join.ResetableIterator"/>
  62050. <constructor name="MultiFilterRecordReader.MultiFilterDelegationIterator"
  62051. static="false" final="false" visibility="protected"
  62052. deprecated="not deprecated">
  62053. </constructor>
  62054. <method name="hasNext" return="boolean"
  62055. abstract="false" native="false" synchronized="false"
  62056. static="false" final="false" visibility="public"
  62057. deprecated="not deprecated">
  62058. </method>
  62059. <method name="next" return="boolean"
  62060. abstract="false" native="false" synchronized="false"
  62061. static="false" final="false" visibility="public"
  62062. deprecated="not deprecated">
  62063. <param name="val" type="org.apache.hadoop.io.Writable"/>
  62064. <exception name="IOException" type="java.io.IOException"/>
  62065. </method>
  62066. <method name="replay" return="boolean"
  62067. abstract="false" native="false" synchronized="false"
  62068. static="false" final="false" visibility="public"
  62069. deprecated="not deprecated">
  62070. <param name="val" type="org.apache.hadoop.io.Writable"/>
  62071. <exception name="IOException" type="java.io.IOException"/>
  62072. </method>
  62073. <method name="reset"
  62074. abstract="false" native="false" synchronized="false"
  62075. static="false" final="false" visibility="public"
  62076. deprecated="not deprecated">
  62077. </method>
  62078. <method name="add"
  62079. abstract="false" native="false" synchronized="false"
  62080. static="false" final="false" visibility="public"
  62081. deprecated="not deprecated">
  62082. <param name="item" type="org.apache.hadoop.io.Writable"/>
  62083. <exception name="IOException" type="java.io.IOException"/>
  62084. </method>
  62085. <method name="close"
  62086. abstract="false" native="false" synchronized="false"
  62087. static="false" final="false" visibility="public"
  62088. deprecated="not deprecated">
  62089. <exception name="IOException" type="java.io.IOException"/>
  62090. </method>
  62091. <method name="clear"
  62092. abstract="false" native="false" synchronized="false"
  62093. static="false" final="false" visibility="public"
  62094. deprecated="not deprecated">
  62095. </method>
  62096. <doc>
  62097. <![CDATA[Proxy the JoinCollector, but include callback to emit.]]>
  62098. </doc>
  62099. </class>
  62100. <!-- end class org.apache.hadoop.mapred.join.MultiFilterRecordReader.MultiFilterDelegationIterator -->
  62101. <!-- start class org.apache.hadoop.mapred.join.OuterJoinRecordReader -->
  62102. <class name="OuterJoinRecordReader" extends="org.apache.hadoop.mapred.join.JoinRecordReader"
  62103. abstract="false"
  62104. static="false" final="false" visibility="public"
  62105. deprecated="not deprecated">
  62106. <method name="combine" return="boolean"
  62107. abstract="false" native="false" synchronized="false"
  62108. static="false" final="false" visibility="protected"
  62109. deprecated="not deprecated">
  62110. <param name="srcs" type="java.lang.Object[]"/>
  62111. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  62112. <doc>
  62113. <![CDATA[Emit everything from the collector.]]>
  62114. </doc>
  62115. </method>
  62116. <doc>
  62117. <![CDATA[Full outer join.]]>
  62118. </doc>
  62119. </class>
  62120. <!-- end class org.apache.hadoop.mapred.join.OuterJoinRecordReader -->
  62121. <!-- start class org.apache.hadoop.mapred.join.OverrideRecordReader -->
  62122. <class name="OverrideRecordReader" extends="org.apache.hadoop.mapred.join.MultiFilterRecordReader"
  62123. abstract="false"
  62124. static="false" final="false" visibility="public"
  62125. deprecated="not deprecated">
  62126. <method name="emit" return="org.apache.hadoop.io.Writable"
  62127. abstract="false" native="false" synchronized="false"
  62128. static="false" final="false" visibility="protected"
  62129. deprecated="not deprecated">
  62130. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  62131. <doc>
  62132. <![CDATA[Emit the value with the highest position in the tuple.]]>
  62133. </doc>
  62134. </method>
  62135. <method name="fillJoinCollector"
  62136. abstract="false" native="false" synchronized="false"
  62137. static="false" final="false" visibility="protected"
  62138. deprecated="not deprecated">
  62139. <param name="iterkey" type="org.apache.hadoop.io.WritableComparable"/>
  62140. <exception name="IOException" type="java.io.IOException"/>
  62141. <doc>
  62142. <![CDATA[Instead of filling the JoinCollector with iterators from all
  62143. data sources, fill only the rightmost for this key.
  62144. This not only saves space by discarding the other sources, but
  62145. it also emits the number of key-value pairs in the preferred
  62146. RecordReader instead of repeating that stream n times, where
  62147. n is the cardinality of the cross product of the discarded
  62148. streams for the given key.]]>
  62149. </doc>
  62150. </method>
  62151. <doc>
  62152. <![CDATA[Prefer the &quot;rightmost&quot; data source for this key.
  62153. For example, <tt>override(S1,S2,S3)</tt> will prefer values
  62154. from S3 over S2, and values from S2 over S1 for all keys
  62155. emitted from all sources.]]>
  62156. </doc>
  62157. </class>
  62158. <!-- end class org.apache.hadoop.mapred.join.OverrideRecordReader -->
  62159. <!-- start class org.apache.hadoop.mapred.join.Parser -->
  62160. <class name="Parser" extends="java.lang.Object"
  62161. abstract="false"
  62162. static="false" final="false" visibility="public"
  62163. deprecated="not deprecated">
  62164. <constructor name="Parser"
  62165. static="false" final="false" visibility="public"
  62166. deprecated="not deprecated">
  62167. </constructor>
  62168. <doc>
  62169. <![CDATA[Very simple shift-reduce parser for join expressions.
  62170. This should be sufficient for the user extension permitted now, but ought to
  62171. be replaced with a parser generator if more complex grammars are supported.
  62172. In particular, this &quot;shift-reduce&quot; parser has no states. Each set
  62173. of formals requires a different internal node type, which is responsible for
  62174. interpreting the list of tokens it receives. This is sufficient for the
  62175. current grammar, but it has several annoying properties that might inhibit
  62176. extension. In particular, parenthesis are always function calls; an
  62177. algebraic or filter grammar would not only require a node type, but must
  62178. also work around the internals of this parser.
  62179. For most other cases, adding classes to the hierarchy- particularly by
  62180. extending JoinRecordReader and MultiFilterRecordReader- is fairly
  62181. straightforward. One need only override the relevant method(s) (usually only
  62182. {@link CompositeRecordReader#combine}) and include a property to map its
  62183. value to an identifier in the parser.]]>
  62184. </doc>
  62185. </class>
  62186. <!-- end class org.apache.hadoop.mapred.join.Parser -->
  62187. <!-- start class org.apache.hadoop.mapred.join.Parser.Node -->
  62188. <class name="Parser.Node" extends="java.lang.Object"
  62189. abstract="true"
  62190. static="true" final="false" visibility="public"
  62191. deprecated="not deprecated">
  62192. <implements name="org.apache.hadoop.mapred.join.ComposableInputFormat"/>
  62193. <constructor name="Parser.Node" type="java.lang.String"
  62194. static="false" final="false" visibility="protected"
  62195. deprecated="not deprecated">
  62196. </constructor>
  62197. <method name="addIdentifier"
  62198. abstract="false" native="false" synchronized="false"
  62199. static="true" final="false" visibility="protected"
  62200. deprecated="not deprecated">
  62201. <param name="ident" type="java.lang.String"/>
  62202. <param name="mcstrSig" type="java.lang.Class[]"/>
  62203. <param name="nodetype" type="java.lang.Class"/>
  62204. <param name="cl" type="java.lang.Class"/>
  62205. <exception name="NoSuchMethodException" type="java.lang.NoSuchMethodException"/>
  62206. <doc>
  62207. <![CDATA[For a given identifier, add a mapping to the nodetype for the parse
  62208. tree and to the ComposableRecordReader to be created, including the
  62209. formals required to invoke the constructor.
  62210. The nodetype and constructor signature should be filled in from the
  62211. child node.]]>
  62212. </doc>
  62213. </method>
  62214. <method name="setID"
  62215. abstract="false" native="false" synchronized="false"
  62216. static="false" final="false" visibility="protected"
  62217. deprecated="not deprecated">
  62218. <param name="id" type="int"/>
  62219. </method>
  62220. <method name="setKeyComparator"
  62221. abstract="false" native="false" synchronized="false"
  62222. static="false" final="false" visibility="protected"
  62223. deprecated="not deprecated">
  62224. <param name="cmpcl" type="java.lang.Class"/>
  62225. </method>
  62226. <field name="rrCstrMap" type="java.util.Map"
  62227. transient="false" volatile="false"
  62228. static="true" final="true" visibility="protected"
  62229. deprecated="not deprecated">
  62230. </field>
  62231. <field name="id" type="int"
  62232. transient="false" volatile="false"
  62233. static="false" final="false" visibility="protected"
  62234. deprecated="not deprecated">
  62235. </field>
  62236. <field name="ident" type="java.lang.String"
  62237. transient="false" volatile="false"
  62238. static="false" final="false" visibility="protected"
  62239. deprecated="not deprecated">
  62240. </field>
  62241. <field name="cmpcl" type="java.lang.Class"
  62242. transient="false" volatile="false"
  62243. static="false" final="false" visibility="protected"
  62244. deprecated="not deprecated">
  62245. </field>
  62246. </class>
  62247. <!-- end class org.apache.hadoop.mapred.join.Parser.Node -->
  62248. <!-- start class org.apache.hadoop.mapred.join.Parser.NodeToken -->
  62249. <class name="Parser.NodeToken" extends="org.apache.hadoop.mapred.join.Parser.Token"
  62250. abstract="false"
  62251. static="true" final="false" visibility="public"
  62252. deprecated="not deprecated">
  62253. <method name="getNode" return="org.apache.hadoop.mapred.join.Parser.Node"
  62254. abstract="false" native="false" synchronized="false"
  62255. static="false" final="false" visibility="public"
  62256. deprecated="not deprecated">
  62257. </method>
  62258. </class>
  62259. <!-- end class org.apache.hadoop.mapred.join.Parser.NodeToken -->
  62260. <!-- start class org.apache.hadoop.mapred.join.Parser.NumToken -->
  62261. <class name="Parser.NumToken" extends="org.apache.hadoop.mapred.join.Parser.Token"
  62262. abstract="false"
  62263. static="true" final="false" visibility="public"
  62264. deprecated="not deprecated">
  62265. <constructor name="Parser.NumToken" type="double"
  62266. static="false" final="false" visibility="public"
  62267. deprecated="not deprecated">
  62268. </constructor>
  62269. <method name="getNum" return="double"
  62270. abstract="false" native="false" synchronized="false"
  62271. static="false" final="false" visibility="public"
  62272. deprecated="not deprecated">
  62273. </method>
  62274. </class>
  62275. <!-- end class org.apache.hadoop.mapred.join.Parser.NumToken -->
  62276. <!-- start class org.apache.hadoop.mapred.join.Parser.StrToken -->
  62277. <class name="Parser.StrToken" extends="org.apache.hadoop.mapred.join.Parser.Token"
  62278. abstract="false"
  62279. static="true" final="false" visibility="public"
  62280. deprecated="not deprecated">
  62281. <constructor name="Parser.StrToken" type="org.apache.hadoop.mapred.join.Parser.TType, java.lang.String"
  62282. static="false" final="false" visibility="public"
  62283. deprecated="not deprecated">
  62284. </constructor>
  62285. <method name="getStr" return="java.lang.String"
  62286. abstract="false" native="false" synchronized="false"
  62287. static="false" final="false" visibility="public"
  62288. deprecated="not deprecated">
  62289. </method>
  62290. </class>
  62291. <!-- end class org.apache.hadoop.mapred.join.Parser.StrToken -->
  62292. <!-- start class org.apache.hadoop.mapred.join.Parser.Token -->
  62293. <class name="Parser.Token" extends="java.lang.Object"
  62294. abstract="false"
  62295. static="true" final="false" visibility="public"
  62296. deprecated="not deprecated">
  62297. <method name="getType" return="org.apache.hadoop.mapred.join.Parser.TType"
  62298. abstract="false" native="false" synchronized="false"
  62299. static="false" final="false" visibility="public"
  62300. deprecated="not deprecated">
  62301. </method>
  62302. <method name="getNode" return="org.apache.hadoop.mapred.join.Parser.Node"
  62303. abstract="false" native="false" synchronized="false"
  62304. static="false" final="false" visibility="public"
  62305. deprecated="not deprecated">
  62306. <exception name="IOException" type="java.io.IOException"/>
  62307. </method>
  62308. <method name="getNum" return="double"
  62309. abstract="false" native="false" synchronized="false"
  62310. static="false" final="false" visibility="public"
  62311. deprecated="not deprecated">
  62312. <exception name="IOException" type="java.io.IOException"/>
  62313. </method>
  62314. <method name="getStr" return="java.lang.String"
  62315. abstract="false" native="false" synchronized="false"
  62316. static="false" final="false" visibility="public"
  62317. deprecated="not deprecated">
  62318. <exception name="IOException" type="java.io.IOException"/>
  62319. </method>
  62320. <doc>
  62321. <![CDATA[Tagged-union type for tokens from the join expression.
  62322. @see Parser.TType]]>
  62323. </doc>
  62324. </class>
  62325. <!-- end class org.apache.hadoop.mapred.join.Parser.Token -->
  62326. <!-- start class org.apache.hadoop.mapred.join.Parser.TType -->
  62327. <class name="Parser.TType" extends="java.lang.Enum"
  62328. abstract="false"
  62329. static="true" final="true" visibility="public"
  62330. deprecated="not deprecated">
  62331. <method name="values" return="org.apache.hadoop.mapred.join.Parser.TType[]"
  62332. abstract="false" native="false" synchronized="false"
  62333. static="true" final="false" visibility="public"
  62334. deprecated="not deprecated">
  62335. </method>
  62336. <method name="valueOf" return="org.apache.hadoop.mapred.join.Parser.TType"
  62337. abstract="false" native="false" synchronized="false"
  62338. static="true" final="false" visibility="public"
  62339. deprecated="not deprecated">
  62340. <param name="name" type="java.lang.String"/>
  62341. </method>
  62342. <field name="CIF" type="org.apache.hadoop.mapred.join.Parser.TType"
  62343. transient="false" volatile="false"
  62344. static="true" final="true" visibility="public"
  62345. deprecated="not deprecated">
  62346. </field>
  62347. <field name="IDENT" type="org.apache.hadoop.mapred.join.Parser.TType"
  62348. transient="false" volatile="false"
  62349. static="true" final="true" visibility="public"
  62350. deprecated="not deprecated">
  62351. </field>
  62352. <field name="COMMA" type="org.apache.hadoop.mapred.join.Parser.TType"
  62353. transient="false" volatile="false"
  62354. static="true" final="true" visibility="public"
  62355. deprecated="not deprecated">
  62356. </field>
  62357. <field name="LPAREN" type="org.apache.hadoop.mapred.join.Parser.TType"
  62358. transient="false" volatile="false"
  62359. static="true" final="true" visibility="public"
  62360. deprecated="not deprecated">
  62361. </field>
  62362. <field name="RPAREN" type="org.apache.hadoop.mapred.join.Parser.TType"
  62363. transient="false" volatile="false"
  62364. static="true" final="true" visibility="public"
  62365. deprecated="not deprecated">
  62366. </field>
  62367. <field name="QUOT" type="org.apache.hadoop.mapred.join.Parser.TType"
  62368. transient="false" volatile="false"
  62369. static="true" final="true" visibility="public"
  62370. deprecated="not deprecated">
  62371. </field>
  62372. <field name="NUM" type="org.apache.hadoop.mapred.join.Parser.TType"
  62373. transient="false" volatile="false"
  62374. static="true" final="true" visibility="public"
  62375. deprecated="not deprecated">
  62376. </field>
  62377. </class>
  62378. <!-- end class org.apache.hadoop.mapred.join.Parser.TType -->
  62379. <!-- start interface org.apache.hadoop.mapred.join.ResetableIterator -->
  62380. <interface name="ResetableIterator" abstract="true"
  62381. static="false" final="false" visibility="public"
  62382. deprecated="not deprecated">
  62383. <method name="hasNext" return="boolean"
  62384. abstract="false" native="false" synchronized="false"
  62385. static="false" final="false" visibility="public"
  62386. deprecated="not deprecated">
  62387. <doc>
  62388. <![CDATA[True if a call to next may return a value. This is permitted false
  62389. positives, but not false negatives.]]>
  62390. </doc>
  62391. </method>
  62392. <method name="next" return="boolean"
  62393. abstract="false" native="false" synchronized="false"
  62394. static="false" final="false" visibility="public"
  62395. deprecated="not deprecated">
  62396. <param name="val" type="org.apache.hadoop.io.Writable"/>
  62397. <exception name="IOException" type="java.io.IOException"/>
  62398. <doc>
  62399. <![CDATA[Assign next value to actual.
  62400. It is required that elements added to a ResetableIterator be returned in
  62401. the same order after a call to {@link #reset} (FIFO).
  62402. Note that a call to this may fail for nested joins (i.e. more elements
  62403. available, but none satisfying the constraints of the join)]]>
  62404. </doc>
  62405. </method>
  62406. <method name="replay" return="boolean"
  62407. abstract="false" native="false" synchronized="false"
  62408. static="false" final="false" visibility="public"
  62409. deprecated="not deprecated">
  62410. <param name="val" type="org.apache.hadoop.io.Writable"/>
  62411. <exception name="IOException" type="java.io.IOException"/>
  62412. <doc>
  62413. <![CDATA[Assign last value returned to actual.]]>
  62414. </doc>
  62415. </method>
  62416. <method name="reset"
  62417. abstract="false" native="false" synchronized="false"
  62418. static="false" final="false" visibility="public"
  62419. deprecated="not deprecated">
  62420. <doc>
  62421. <![CDATA[Set iterator to return to the start of its range. Must be called after
  62422. calling {@link #add} to avoid a ConcurrentModificationException.]]>
  62423. </doc>
  62424. </method>
  62425. <method name="add"
  62426. abstract="false" native="false" synchronized="false"
  62427. static="false" final="false" visibility="public"
  62428. deprecated="not deprecated">
  62429. <param name="item" type="org.apache.hadoop.io.Writable"/>
  62430. <exception name="IOException" type="java.io.IOException"/>
  62431. <doc>
  62432. <![CDATA[Add an element to the collection of elements to iterate over.]]>
  62433. </doc>
  62434. </method>
  62435. <method name="close"
  62436. abstract="false" native="false" synchronized="false"
  62437. static="false" final="false" visibility="public"
  62438. deprecated="not deprecated">
  62439. <exception name="IOException" type="java.io.IOException"/>
  62440. <doc>
  62441. <![CDATA[Close datasources and release resources. Calling methods on the iterator
  62442. after calling close has undefined behavior.]]>
  62443. </doc>
  62444. </method>
  62445. <method name="clear"
  62446. abstract="false" native="false" synchronized="false"
  62447. static="false" final="false" visibility="public"
  62448. deprecated="not deprecated">
  62449. <doc>
  62450. <![CDATA[Close datasources, but do not release internal resources. Calling this
  62451. method should permit the object to be reused with a different datasource.]]>
  62452. </doc>
  62453. </method>
  62454. <doc>
  62455. <![CDATA[This defines an interface to a stateful Iterator that can replay elements
  62456. added to it directly.
  62457. Note that this does not extend {@link java.util.Iterator}.]]>
  62458. </doc>
  62459. </interface>
  62460. <!-- end interface org.apache.hadoop.mapred.join.ResetableIterator -->
  62461. <!-- start class org.apache.hadoop.mapred.join.ResetableIterator.EMPTY -->
  62462. <class name="ResetableIterator.EMPTY" extends="java.lang.Object"
  62463. abstract="false"
  62464. static="true" final="false" visibility="public"
  62465. deprecated="not deprecated">
  62466. <implements name="org.apache.hadoop.mapred.join.ResetableIterator"/>
  62467. <constructor name="ResetableIterator.EMPTY"
  62468. static="false" final="false" visibility="public"
  62469. deprecated="not deprecated">
  62470. </constructor>
  62471. <method name="hasNext" return="boolean"
  62472. abstract="false" native="false" synchronized="false"
  62473. static="false" final="false" visibility="public"
  62474. deprecated="not deprecated">
  62475. </method>
  62476. <method name="reset"
  62477. abstract="false" native="false" synchronized="false"
  62478. static="false" final="false" visibility="public"
  62479. deprecated="not deprecated">
  62480. </method>
  62481. <method name="close"
  62482. abstract="false" native="false" synchronized="false"
  62483. static="false" final="false" visibility="public"
  62484. deprecated="not deprecated">
  62485. <exception name="IOException" type="java.io.IOException"/>
  62486. </method>
  62487. <method name="clear"
  62488. abstract="false" native="false" synchronized="false"
  62489. static="false" final="false" visibility="public"
  62490. deprecated="not deprecated">
  62491. </method>
  62492. <method name="next" return="boolean"
  62493. abstract="false" native="false" synchronized="false"
  62494. static="false" final="false" visibility="public"
  62495. deprecated="not deprecated">
  62496. <param name="val" type="org.apache.hadoop.io.Writable"/>
  62497. <exception name="IOException" type="java.io.IOException"/>
  62498. </method>
  62499. <method name="replay" return="boolean"
  62500. abstract="false" native="false" synchronized="false"
  62501. static="false" final="false" visibility="public"
  62502. deprecated="not deprecated">
  62503. <param name="val" type="org.apache.hadoop.io.Writable"/>
  62504. <exception name="IOException" type="java.io.IOException"/>
  62505. </method>
  62506. <method name="add"
  62507. abstract="false" native="false" synchronized="false"
  62508. static="false" final="false" visibility="public"
  62509. deprecated="not deprecated">
  62510. <param name="item" type="org.apache.hadoop.io.Writable"/>
  62511. <exception name="IOException" type="java.io.IOException"/>
  62512. </method>
  62513. </class>
  62514. <!-- end class org.apache.hadoop.mapred.join.ResetableIterator.EMPTY -->
  62515. <!-- start class org.apache.hadoop.mapred.join.StreamBackedIterator -->
  62516. <class name="StreamBackedIterator" extends="java.lang.Object"
  62517. abstract="false"
  62518. static="false" final="false" visibility="public"
  62519. deprecated="not deprecated">
  62520. <implements name="org.apache.hadoop.mapred.join.ResetableIterator"/>
  62521. <constructor name="StreamBackedIterator"
  62522. static="false" final="false" visibility="public"
  62523. deprecated="not deprecated">
  62524. </constructor>
  62525. <method name="hasNext" return="boolean"
  62526. abstract="false" native="false" synchronized="false"
  62527. static="false" final="false" visibility="public"
  62528. deprecated="not deprecated">
  62529. </method>
  62530. <method name="next" return="boolean"
  62531. abstract="false" native="false" synchronized="false"
  62532. static="false" final="false" visibility="public"
  62533. deprecated="not deprecated">
  62534. <param name="val" type="org.apache.hadoop.io.Writable"/>
  62535. <exception name="IOException" type="java.io.IOException"/>
  62536. </method>
  62537. <method name="replay" return="boolean"
  62538. abstract="false" native="false" synchronized="false"
  62539. static="false" final="false" visibility="public"
  62540. deprecated="not deprecated">
  62541. <param name="val" type="org.apache.hadoop.io.Writable"/>
  62542. <exception name="IOException" type="java.io.IOException"/>
  62543. </method>
  62544. <method name="reset"
  62545. abstract="false" native="false" synchronized="false"
  62546. static="false" final="false" visibility="public"
  62547. deprecated="not deprecated">
  62548. </method>
  62549. <method name="add"
  62550. abstract="false" native="false" synchronized="false"
  62551. static="false" final="false" visibility="public"
  62552. deprecated="not deprecated">
  62553. <param name="item" type="org.apache.hadoop.io.Writable"/>
  62554. <exception name="IOException" type="java.io.IOException"/>
  62555. </method>
  62556. <method name="close"
  62557. abstract="false" native="false" synchronized="false"
  62558. static="false" final="false" visibility="public"
  62559. deprecated="not deprecated">
  62560. <exception name="IOException" type="java.io.IOException"/>
  62561. </method>
  62562. <method name="clear"
  62563. abstract="false" native="false" synchronized="false"
  62564. static="false" final="false" visibility="public"
  62565. deprecated="not deprecated">
  62566. </method>
  62567. <doc>
  62568. <![CDATA[This class provides an implementation of ResetableIterator. This
  62569. implementation uses a byte array to store elements added to it.]]>
  62570. </doc>
  62571. </class>
  62572. <!-- end class org.apache.hadoop.mapred.join.StreamBackedIterator -->
  62573. <!-- start class org.apache.hadoop.mapred.join.TupleWritable -->
  62574. <class name="TupleWritable" extends="java.lang.Object"
  62575. abstract="false"
  62576. static="false" final="false" visibility="public"
  62577. deprecated="not deprecated">
  62578. <implements name="org.apache.hadoop.io.Writable"/>
  62579. <implements name="java.lang.Iterable"/>
  62580. <constructor name="TupleWritable"
  62581. static="false" final="false" visibility="public"
  62582. deprecated="not deprecated">
  62583. <doc>
  62584. <![CDATA[Create an empty tuple with no allocated storage for writables.]]>
  62585. </doc>
  62586. </constructor>
  62587. <constructor name="TupleWritable" type="org.apache.hadoop.io.Writable[]"
  62588. static="false" final="false" visibility="public"
  62589. deprecated="not deprecated">
  62590. <doc>
  62591. <![CDATA[Initialize tuple with storage; unknown whether any of them contain
  62592. &quot;written&quot; values.]]>
  62593. </doc>
  62594. </constructor>
  62595. <method name="has" return="boolean"
  62596. abstract="false" native="false" synchronized="false"
  62597. static="false" final="false" visibility="public"
  62598. deprecated="not deprecated">
  62599. <param name="i" type="int"/>
  62600. <doc>
  62601. <![CDATA[Return true if tuple has an element at the position provided.]]>
  62602. </doc>
  62603. </method>
  62604. <method name="get" return="org.apache.hadoop.io.Writable"
  62605. abstract="false" native="false" synchronized="false"
  62606. static="false" final="false" visibility="public"
  62607. deprecated="not deprecated">
  62608. <param name="i" type="int"/>
  62609. <doc>
  62610. <![CDATA[Get ith Writable from Tuple.]]>
  62611. </doc>
  62612. </method>
  62613. <method name="size" return="int"
  62614. abstract="false" native="false" synchronized="false"
  62615. static="false" final="false" visibility="public"
  62616. deprecated="not deprecated">
  62617. <doc>
  62618. <![CDATA[The number of children in this Tuple.]]>
  62619. </doc>
  62620. </method>
  62621. <method name="equals" return="boolean"
  62622. abstract="false" native="false" synchronized="false"
  62623. static="false" final="false" visibility="public"
  62624. deprecated="not deprecated">
  62625. <param name="other" type="java.lang.Object"/>
  62626. <doc>
  62627. <![CDATA[{@inheritDoc}]]>
  62628. </doc>
  62629. </method>
  62630. <method name="hashCode" return="int"
  62631. abstract="false" native="false" synchronized="false"
  62632. static="false" final="false" visibility="public"
  62633. deprecated="not deprecated">
  62634. </method>
  62635. <method name="iterator" return="java.util.Iterator"
  62636. abstract="false" native="false" synchronized="false"
  62637. static="false" final="false" visibility="public"
  62638. deprecated="not deprecated">
  62639. <doc>
  62640. <![CDATA[Return an iterator over the elements in this tuple.
  62641. Note that this doesn't flatten the tuple; one may receive tuples
  62642. from this iterator.]]>
  62643. </doc>
  62644. </method>
  62645. <method name="toString" return="java.lang.String"
  62646. abstract="false" native="false" synchronized="false"
  62647. static="false" final="false" visibility="public"
  62648. deprecated="not deprecated">
  62649. <doc>
  62650. <![CDATA[Convert Tuple to String as in the following.
  62651. <tt>[<child1>,<child2>,...,<childn>]</tt>]]>
  62652. </doc>
  62653. </method>
  62654. <method name="write"
  62655. abstract="false" native="false" synchronized="false"
  62656. static="false" final="false" visibility="public"
  62657. deprecated="not deprecated">
  62658. <param name="out" type="java.io.DataOutput"/>
  62659. <exception name="IOException" type="java.io.IOException"/>
  62660. <doc>
  62661. <![CDATA[Writes each Writable to <code>out</code>.
  62662. TupleWritable format:
  62663. {@code
  62664. <count><type1><type2>...<typen><obj1><obj2>...<objn>
  62665. }]]>
  62666. </doc>
  62667. </method>
  62668. <method name="readFields"
  62669. abstract="false" native="false" synchronized="false"
  62670. static="false" final="false" visibility="public"
  62671. deprecated="not deprecated">
  62672. <param name="in" type="java.io.DataInput"/>
  62673. <exception name="IOException" type="java.io.IOException"/>
  62674. <doc>
  62675. <![CDATA[{@inheritDoc}]]>
  62676. </doc>
  62677. </method>
  62678. <doc>
  62679. <![CDATA[Writable type storing multiple {@link org.apache.hadoop.io.Writable}s.
  62680. This is *not* a general-purpose tuple type. In almost all cases, users are
  62681. encouraged to implement their own serializable types, which can perform
  62682. better validation and provide more efficient encodings than this class is
  62683. capable. TupleWritable relies on the join framework for type safety and
  62684. assumes its instances will rarely be persisted, assumptions not only
  62685. incompatible with, but contrary to the general case.
  62686. @see org.apache.hadoop.io.Writable]]>
  62687. </doc>
  62688. </class>
  62689. <!-- end class org.apache.hadoop.mapred.join.TupleWritable -->
  62690. <!-- start class org.apache.hadoop.mapred.join.WrappedRecordReader -->
  62691. <class name="WrappedRecordReader" extends="java.lang.Object"
  62692. abstract="false"
  62693. static="false" final="false" visibility="public"
  62694. deprecated="not deprecated">
  62695. <implements name="org.apache.hadoop.mapred.join.ComposableRecordReader"/>
  62696. <method name="id" return="int"
  62697. abstract="false" native="false" synchronized="false"
  62698. static="false" final="false" visibility="public"
  62699. deprecated="not deprecated">
  62700. <doc>
  62701. <![CDATA[{@inheritDoc}]]>
  62702. </doc>
  62703. </method>
  62704. <method name="key" return="org.apache.hadoop.io.WritableComparable"
  62705. abstract="false" native="false" synchronized="false"
  62706. static="false" final="false" visibility="public"
  62707. deprecated="not deprecated">
  62708. <doc>
  62709. <![CDATA[Return the key at the head of this RR.]]>
  62710. </doc>
  62711. </method>
  62712. <method name="key"
  62713. abstract="false" native="false" synchronized="false"
  62714. static="false" final="false" visibility="public"
  62715. deprecated="not deprecated">
  62716. <param name="qkey" type="org.apache.hadoop.io.WritableComparable"/>
  62717. <exception name="IOException" type="java.io.IOException"/>
  62718. <doc>
  62719. <![CDATA[Clone the key at the head of this RR into the object supplied.]]>
  62720. </doc>
  62721. </method>
  62722. <method name="hasNext" return="boolean"
  62723. abstract="false" native="false" synchronized="false"
  62724. static="false" final="false" visibility="public"
  62725. deprecated="not deprecated">
  62726. <doc>
  62727. <![CDATA[Return true if the RR- including the k,v pair stored in this object-
  62728. is exhausted.]]>
  62729. </doc>
  62730. </method>
  62731. <method name="skip"
  62732. abstract="false" native="false" synchronized="false"
  62733. static="false" final="false" visibility="public"
  62734. deprecated="not deprecated">
  62735. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  62736. <exception name="IOException" type="java.io.IOException"/>
  62737. <doc>
  62738. <![CDATA[Skip key-value pairs with keys less than or equal to the key provided.]]>
  62739. </doc>
  62740. </method>
  62741. <method name="next" return="boolean"
  62742. abstract="false" native="false" synchronized="false"
  62743. static="false" final="false" visibility="protected"
  62744. deprecated="not deprecated">
  62745. <exception name="IOException" type="java.io.IOException"/>
  62746. <doc>
  62747. <![CDATA[Read the next k,v pair into the head of this object; return true iff
  62748. the RR and this are exhausted.]]>
  62749. </doc>
  62750. </method>
  62751. <method name="accept"
  62752. abstract="false" native="false" synchronized="false"
  62753. static="false" final="false" visibility="public"
  62754. deprecated="not deprecated">
  62755. <param name="i" type="org.apache.hadoop.mapred.join.CompositeRecordReader.JoinCollector"/>
  62756. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  62757. <exception name="IOException" type="java.io.IOException"/>
  62758. <doc>
  62759. <![CDATA[Add an iterator to the collector at the position occupied by this
  62760. RecordReader over the values in this stream paired with the key
  62761. provided (ie register a stream of values from this source matching K
  62762. with a collector).]]>
  62763. </doc>
  62764. </method>
  62765. <method name="next" return="boolean"
  62766. abstract="false" native="false" synchronized="false"
  62767. static="false" final="false" visibility="public"
  62768. deprecated="not deprecated">
  62769. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  62770. <param name="value" type="org.apache.hadoop.io.Writable"/>
  62771. <exception name="IOException" type="java.io.IOException"/>
  62772. <doc>
  62773. <![CDATA[Write key-value pair at the head of this stream to the objects provided;
  62774. get next key-value pair from proxied RR.]]>
  62775. </doc>
  62776. </method>
  62777. <method name="createKey" return="org.apache.hadoop.io.WritableComparable"
  62778. abstract="false" native="false" synchronized="false"
  62779. static="false" final="false" visibility="public"
  62780. deprecated="not deprecated">
  62781. <doc>
  62782. <![CDATA[Request new key from proxied RR.]]>
  62783. </doc>
  62784. </method>
  62785. <method name="createValue" return="org.apache.hadoop.io.Writable"
  62786. abstract="false" native="false" synchronized="false"
  62787. static="false" final="false" visibility="public"
  62788. deprecated="not deprecated">
  62789. <doc>
  62790. <![CDATA[Request new value from proxied RR.]]>
  62791. </doc>
  62792. </method>
  62793. <method name="getProgress" return="float"
  62794. abstract="false" native="false" synchronized="false"
  62795. static="false" final="false" visibility="public"
  62796. deprecated="not deprecated">
  62797. <exception name="IOException" type="java.io.IOException"/>
  62798. <doc>
  62799. <![CDATA[Request progress from proxied RR.]]>
  62800. </doc>
  62801. </method>
  62802. <method name="getPos" return="long"
  62803. abstract="false" native="false" synchronized="false"
  62804. static="false" final="false" visibility="public"
  62805. deprecated="not deprecated">
  62806. <exception name="IOException" type="java.io.IOException"/>
  62807. <doc>
  62808. <![CDATA[Request position from proxied RR.]]>
  62809. </doc>
  62810. </method>
  62811. <method name="close"
  62812. abstract="false" native="false" synchronized="false"
  62813. static="false" final="false" visibility="public"
  62814. deprecated="not deprecated">
  62815. <exception name="IOException" type="java.io.IOException"/>
  62816. <doc>
  62817. <![CDATA[Forward close request to proxied RR.]]>
  62818. </doc>
  62819. </method>
  62820. <method name="compareTo" return="int"
  62821. abstract="false" native="false" synchronized="false"
  62822. static="false" final="false" visibility="public"
  62823. deprecated="not deprecated">
  62824. <param name="other" type="org.apache.hadoop.mapred.join.ComposableRecordReader"/>
  62825. <doc>
  62826. <![CDATA[Implement Comparable contract (compare key at head of proxied RR
  62827. with that of another).]]>
  62828. </doc>
  62829. </method>
  62830. <method name="equals" return="boolean"
  62831. abstract="false" native="false" synchronized="false"
  62832. static="false" final="false" visibility="public"
  62833. deprecated="not deprecated">
  62834. <param name="other" type="java.lang.Object"/>
  62835. <doc>
  62836. <![CDATA[Return true iff compareTo(other) retn true.]]>
  62837. </doc>
  62838. </method>
  62839. <method name="hashCode" return="int"
  62840. abstract="false" native="false" synchronized="false"
  62841. static="false" final="false" visibility="public"
  62842. deprecated="not deprecated">
  62843. </method>
  62844. <doc>
  62845. <![CDATA[Proxy class for a RecordReader participating in the join framework.
  62846. This class keeps track of the &quot;head&quot; key-value pair for the
  62847. provided RecordReader and keeps a store of values matching a key when
  62848. this source is participating in a join.]]>
  62849. </doc>
  62850. </class>
  62851. <!-- end class org.apache.hadoop.mapred.join.WrappedRecordReader -->
  62852. </package>
  62853. <package name="org.apache.hadoop.mapred.lib">
  62854. <!-- start class org.apache.hadoop.mapred.lib.BinaryPartitioner -->
  62855. <class name="BinaryPartitioner" extends="org.apache.hadoop.mapreduce.lib.partition.BinaryPartitioner"
  62856. abstract="false"
  62857. static="false" final="false" visibility="public"
  62858. deprecated="not deprecated">
  62859. <implements name="org.apache.hadoop.mapred.Partitioner"/>
  62860. <constructor name="BinaryPartitioner"
  62861. static="false" final="false" visibility="public"
  62862. deprecated="not deprecated">
  62863. </constructor>
  62864. <method name="configure"
  62865. abstract="false" native="false" synchronized="false"
  62866. static="false" final="false" visibility="public"
  62867. deprecated="not deprecated">
  62868. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62869. </method>
  62870. <doc>
  62871. <![CDATA[Partition {@link BinaryComparable} keys using a configurable part of
  62872. the bytes array returned by {@link BinaryComparable#getBytes()}.
  62873. @see org.apache.hadoop.mapreduce.lib.partition.BinaryPartitioner]]>
  62874. </doc>
  62875. </class>
  62876. <!-- end class org.apache.hadoop.mapred.lib.BinaryPartitioner -->
  62877. <!-- start class org.apache.hadoop.mapred.lib.ChainMapper -->
  62878. <class name="ChainMapper" extends="java.lang.Object"
  62879. abstract="false"
  62880. static="false" final="false" visibility="public"
  62881. deprecated="not deprecated">
  62882. <implements name="org.apache.hadoop.mapred.Mapper"/>
  62883. <constructor name="ChainMapper"
  62884. static="false" final="false" visibility="public"
  62885. deprecated="not deprecated">
  62886. <doc>
  62887. <![CDATA[Constructor.]]>
  62888. </doc>
  62889. </constructor>
  62890. <method name="addMapper"
  62891. abstract="false" native="false" synchronized="false"
  62892. static="true" final="false" visibility="public"
  62893. deprecated="not deprecated">
  62894. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62895. <param name="klass" type="java.lang.Class"/>
  62896. <param name="inputKeyClass" type="java.lang.Class"/>
  62897. <param name="inputValueClass" type="java.lang.Class"/>
  62898. <param name="outputKeyClass" type="java.lang.Class"/>
  62899. <param name="outputValueClass" type="java.lang.Class"/>
  62900. <param name="byValue" type="boolean"/>
  62901. <param name="mapperConf" type="org.apache.hadoop.mapred.JobConf"/>
  62902. <doc>
  62903. <![CDATA[Adds a Mapper class to the chain job's JobConf.
  62904. <p/>
  62905. It has to be specified how key and values are passed from one element of
  62906. the chain to the next, by value or by reference. If a Mapper leverages the
  62907. assumed semantics that the key and values are not modified by the collector
  62908. 'by value' must be used. If the Mapper does not expect this semantics, as
  62909. an optimization to avoid serialization and deserialization 'by reference'
  62910. can be used.
  62911. <p/>
  62912. For the added Mapper the configuration given for it,
  62913. <code>mapperConf</code>, have precedence over the job's JobConf. This
  62914. precedence is in effect when the task is running.
  62915. <p/>
  62916. IMPORTANT: There is no need to specify the output key/value classes for the
  62917. ChainMapper, this is done by the addMapper for the last mapper in the chain
  62918. <p/>
  62919. @param job job's JobConf to add the Mapper class.
  62920. @param klass the Mapper class to add.
  62921. @param inputKeyClass mapper input key class.
  62922. @param inputValueClass mapper input value class.
  62923. @param outputKeyClass mapper output key class.
  62924. @param outputValueClass mapper output value class.
  62925. @param byValue indicates if key/values should be passed by value
  62926. to the next Mapper in the chain, if any.
  62927. @param mapperConf a JobConf with the configuration for the Mapper
  62928. class. It is recommended to use a JobConf without default values using the
  62929. <code>JobConf(boolean loadDefaults)</code> constructor with FALSE.]]>
  62930. </doc>
  62931. </method>
  62932. <method name="configure"
  62933. abstract="false" native="false" synchronized="false"
  62934. static="false" final="false" visibility="public"
  62935. deprecated="not deprecated">
  62936. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  62937. <doc>
  62938. <![CDATA[Configures the ChainMapper and all the Mappers in the chain.
  62939. <p/>
  62940. If this method is overriden <code>super.configure(...)</code> should be
  62941. invoked at the beginning of the overwriter method.]]>
  62942. </doc>
  62943. </method>
  62944. <method name="map"
  62945. abstract="false" native="false" synchronized="false"
  62946. static="false" final="false" visibility="public"
  62947. deprecated="not deprecated">
  62948. <param name="key" type="java.lang.Object"/>
  62949. <param name="value" type="java.lang.Object"/>
  62950. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  62951. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  62952. <exception name="IOException" type="java.io.IOException"/>
  62953. <doc>
  62954. <![CDATA[Chains the <code>map(...)</code> methods of the Mappers in the chain.]]>
  62955. </doc>
  62956. </method>
  62957. <method name="close"
  62958. abstract="false" native="false" synchronized="false"
  62959. static="false" final="false" visibility="public"
  62960. deprecated="not deprecated">
  62961. <exception name="IOException" type="java.io.IOException"/>
  62962. <doc>
  62963. <![CDATA[Closes the ChainMapper and all the Mappers in the chain.
  62964. <p/>
  62965. If this method is overriden <code>super.close()</code> should be
  62966. invoked at the end of the overwriter method.]]>
  62967. </doc>
  62968. </method>
  62969. <doc>
  62970. <![CDATA[The ChainMapper class allows to use multiple Mapper classes within a single
  62971. Map task.
  62972. <p/>
  62973. The Mapper classes are invoked in a chained (or piped) fashion, the output of
  62974. the first becomes the input of the second, and so on until the last Mapper,
  62975. the output of the last Mapper will be written to the task's output.
  62976. <p/>
  62977. The key functionality of this feature is that the Mappers in the chain do not
  62978. need to be aware that they are executed in a chain. This enables having
  62979. reusable specialized Mappers that can be combined to perform composite
  62980. operations within a single task.
  62981. <p/>
  62982. Special care has to be taken when creating chains that the key/values output
  62983. by a Mapper are valid for the following Mapper in the chain. It is assumed
  62984. all Mappers and the Reduce in the chain use maching output and input key and
  62985. value classes as no conversion is done by the chaining code.
  62986. <p/>
  62987. Using the ChainMapper and the ChainReducer classes is possible to compose
  62988. Map/Reduce jobs that look like <code>[MAP+ / REDUCE MAP*]</code>. And
  62989. immediate benefit of this pattern is a dramatic reduction in disk IO.
  62990. <p/>
  62991. IMPORTANT: There is no need to specify the output key/value classes for the
  62992. ChainMapper, this is done by the addMapper for the last mapper in the chain.
  62993. <p/>
  62994. ChainMapper usage pattern:
  62995. <p/>
  62996. <pre>
  62997. ...
  62998. conf.setJobName("chain");
  62999. conf.setInputFormat(TextInputFormat.class);
  63000. conf.setOutputFormat(TextOutputFormat.class);
  63001. <p/>
  63002. JobConf mapAConf = new JobConf(false);
  63003. ...
  63004. ChainMapper.addMapper(conf, AMap.class, LongWritable.class, Text.class,
  63005. Text.class, Text.class, true, mapAConf);
  63006. <p/>
  63007. JobConf mapBConf = new JobConf(false);
  63008. ...
  63009. ChainMapper.addMapper(conf, BMap.class, Text.class, Text.class,
  63010. LongWritable.class, Text.class, false, mapBConf);
  63011. <p/>
  63012. JobConf reduceConf = new JobConf(false);
  63013. ...
  63014. ChainReducer.setReducer(conf, XReduce.class, LongWritable.class, Text.class,
  63015. Text.class, Text.class, true, reduceConf);
  63016. <p/>
  63017. ChainReducer.addMapper(conf, CMap.class, Text.class, Text.class,
  63018. LongWritable.class, Text.class, false, null);
  63019. <p/>
  63020. ChainReducer.addMapper(conf, DMap.class, LongWritable.class, Text.class,
  63021. LongWritable.class, LongWritable.class, true, null);
  63022. <p/>
  63023. FileInputFormat.setInputPaths(conf, inDir);
  63024. FileOutputFormat.setOutputPath(conf, outDir);
  63025. ...
  63026. <p/>
  63027. JobClient jc = new JobClient(conf);
  63028. RunningJob job = jc.submitJob(conf);
  63029. ...
  63030. </pre>]]>
  63031. </doc>
  63032. </class>
  63033. <!-- end class org.apache.hadoop.mapred.lib.ChainMapper -->
  63034. <!-- start class org.apache.hadoop.mapred.lib.ChainReducer -->
  63035. <class name="ChainReducer" extends="java.lang.Object"
  63036. abstract="false"
  63037. static="false" final="false" visibility="public"
  63038. deprecated="not deprecated">
  63039. <implements name="org.apache.hadoop.mapred.Reducer"/>
  63040. <constructor name="ChainReducer"
  63041. static="false" final="false" visibility="public"
  63042. deprecated="not deprecated">
  63043. <doc>
  63044. <![CDATA[Constructor.]]>
  63045. </doc>
  63046. </constructor>
  63047. <method name="setReducer"
  63048. abstract="false" native="false" synchronized="false"
  63049. static="true" final="false" visibility="public"
  63050. deprecated="not deprecated">
  63051. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63052. <param name="klass" type="java.lang.Class"/>
  63053. <param name="inputKeyClass" type="java.lang.Class"/>
  63054. <param name="inputValueClass" type="java.lang.Class"/>
  63055. <param name="outputKeyClass" type="java.lang.Class"/>
  63056. <param name="outputValueClass" type="java.lang.Class"/>
  63057. <param name="byValue" type="boolean"/>
  63058. <param name="reducerConf" type="org.apache.hadoop.mapred.JobConf"/>
  63059. <doc>
  63060. <![CDATA[Sets the Reducer class to the chain job's JobConf.
  63061. <p/>
  63062. It has to be specified how key and values are passed from one element of
  63063. the chain to the next, by value or by reference. If a Reducer leverages the
  63064. assumed semantics that the key and values are not modified by the collector
  63065. 'by value' must be used. If the Reducer does not expect this semantics, as
  63066. an optimization to avoid serialization and deserialization 'by reference'
  63067. can be used.
  63068. <p/>
  63069. For the added Reducer the configuration given for it,
  63070. <code>reducerConf</code>, have precedence over the job's JobConf. This
  63071. precedence is in effect when the task is running.
  63072. <p/>
  63073. IMPORTANT: There is no need to specify the output key/value classes for the
  63074. ChainReducer, this is done by the setReducer or the addMapper for the last
  63075. element in the chain.
  63076. @param job job's JobConf to add the Reducer class.
  63077. @param klass the Reducer class to add.
  63078. @param inputKeyClass reducer input key class.
  63079. @param inputValueClass reducer input value class.
  63080. @param outputKeyClass reducer output key class.
  63081. @param outputValueClass reducer output value class.
  63082. @param byValue indicates if key/values should be passed by value
  63083. to the next Mapper in the chain, if any.
  63084. @param reducerConf a JobConf with the configuration for the Reducer
  63085. class. It is recommended to use a JobConf without default values using the
  63086. <code>JobConf(boolean loadDefaults)</code> constructor with FALSE.]]>
  63087. </doc>
  63088. </method>
  63089. <method name="addMapper"
  63090. abstract="false" native="false" synchronized="false"
  63091. static="true" final="false" visibility="public"
  63092. deprecated="not deprecated">
  63093. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63094. <param name="klass" type="java.lang.Class"/>
  63095. <param name="inputKeyClass" type="java.lang.Class"/>
  63096. <param name="inputValueClass" type="java.lang.Class"/>
  63097. <param name="outputKeyClass" type="java.lang.Class"/>
  63098. <param name="outputValueClass" type="java.lang.Class"/>
  63099. <param name="byValue" type="boolean"/>
  63100. <param name="mapperConf" type="org.apache.hadoop.mapred.JobConf"/>
  63101. <doc>
  63102. <![CDATA[Adds a Mapper class to the chain job's JobConf.
  63103. <p/>
  63104. It has to be specified how key and values are passed from one element of
  63105. the chain to the next, by value or by reference. If a Mapper leverages the
  63106. assumed semantics that the key and values are not modified by the collector
  63107. 'by value' must be used. If the Mapper does not expect this semantics, as
  63108. an optimization to avoid serialization and deserialization 'by reference'
  63109. can be used.
  63110. <p/>
  63111. For the added Mapper the configuration given for it,
  63112. <code>mapperConf</code>, have precedence over the job's JobConf. This
  63113. precedence is in effect when the task is running.
  63114. <p/>
  63115. IMPORTANT: There is no need to specify the output key/value classes for the
  63116. ChainMapper, this is done by the addMapper for the last mapper in the chain
  63117. .
  63118. @param job chain job's JobConf to add the Mapper class.
  63119. @param klass the Mapper class to add.
  63120. @param inputKeyClass mapper input key class.
  63121. @param inputValueClass mapper input value class.
  63122. @param outputKeyClass mapper output key class.
  63123. @param outputValueClass mapper output value class.
  63124. @param byValue indicates if key/values should be passed by value
  63125. to the next Mapper in the chain, if any.
  63126. @param mapperConf a JobConf with the configuration for the Mapper
  63127. class. It is recommended to use a JobConf without default values using the
  63128. <code>JobConf(boolean loadDefaults)</code> constructor with FALSE.]]>
  63129. </doc>
  63130. </method>
  63131. <method name="configure"
  63132. abstract="false" native="false" synchronized="false"
  63133. static="false" final="false" visibility="public"
  63134. deprecated="not deprecated">
  63135. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63136. <doc>
  63137. <![CDATA[Configures the ChainReducer, the Reducer and all the Mappers in the chain.
  63138. <p/>
  63139. If this method is overriden <code>super.configure(...)</code> should be
  63140. invoked at the beginning of the overwriter method.]]>
  63141. </doc>
  63142. </method>
  63143. <method name="reduce"
  63144. abstract="false" native="false" synchronized="false"
  63145. static="false" final="false" visibility="public"
  63146. deprecated="not deprecated">
  63147. <param name="key" type="java.lang.Object"/>
  63148. <param name="values" type="java.util.Iterator"/>
  63149. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  63150. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  63151. <exception name="IOException" type="java.io.IOException"/>
  63152. <doc>
  63153. <![CDATA[Chains the <code>reduce(...)</code> method of the Reducer with the
  63154. <code>map(...) </code> methods of the Mappers in the chain.]]>
  63155. </doc>
  63156. </method>
  63157. <method name="close"
  63158. abstract="false" native="false" synchronized="false"
  63159. static="false" final="false" visibility="public"
  63160. deprecated="not deprecated">
  63161. <exception name="IOException" type="java.io.IOException"/>
  63162. <doc>
  63163. <![CDATA[Closes the ChainReducer, the Reducer and all the Mappers in the chain.
  63164. <p/>
  63165. If this method is overriden <code>super.close()</code> should be
  63166. invoked at the end of the overwriter method.]]>
  63167. </doc>
  63168. </method>
  63169. <doc>
  63170. <![CDATA[The ChainReducer class allows to chain multiple Mapper classes after a
  63171. Reducer within the Reducer task.
  63172. <p/>
  63173. For each record output by the Reducer, the Mapper classes are invoked in a
  63174. chained (or piped) fashion, the output of the first becomes the input of the
  63175. second, and so on until the last Mapper, the output of the last Mapper will
  63176. be written to the task's output.
  63177. <p/>
  63178. The key functionality of this feature is that the Mappers in the chain do not
  63179. need to be aware that they are executed after the Reducer or in a chain.
  63180. This enables having reusable specialized Mappers that can be combined to
  63181. perform composite operations within a single task.
  63182. <p/>
  63183. Special care has to be taken when creating chains that the key/values output
  63184. by a Mapper are valid for the following Mapper in the chain. It is assumed
  63185. all Mappers and the Reduce in the chain use maching output and input key and
  63186. value classes as no conversion is done by the chaining code.
  63187. <p/>
  63188. Using the ChainMapper and the ChainReducer classes is possible to compose
  63189. Map/Reduce jobs that look like <code>[MAP+ / REDUCE MAP*]</code>. And
  63190. immediate benefit of this pattern is a dramatic reduction in disk IO.
  63191. <p/>
  63192. IMPORTANT: There is no need to specify the output key/value classes for the
  63193. ChainReducer, this is done by the setReducer or the addMapper for the last
  63194. element in the chain.
  63195. <p/>
  63196. ChainReducer usage pattern:
  63197. <p/>
  63198. <pre>
  63199. ...
  63200. conf.setJobName("chain");
  63201. conf.setInputFormat(TextInputFormat.class);
  63202. conf.setOutputFormat(TextOutputFormat.class);
  63203. <p/>
  63204. JobConf mapAConf = new JobConf(false);
  63205. ...
  63206. ChainMapper.addMapper(conf, AMap.class, LongWritable.class, Text.class,
  63207. Text.class, Text.class, true, mapAConf);
  63208. <p/>
  63209. JobConf mapBConf = new JobConf(false);
  63210. ...
  63211. ChainMapper.addMapper(conf, BMap.class, Text.class, Text.class,
  63212. LongWritable.class, Text.class, false, mapBConf);
  63213. <p/>
  63214. JobConf reduceConf = new JobConf(false);
  63215. ...
  63216. ChainReducer.setReducer(conf, XReduce.class, LongWritable.class, Text.class,
  63217. Text.class, Text.class, true, reduceConf);
  63218. <p/>
  63219. ChainReducer.addMapper(conf, CMap.class, Text.class, Text.class,
  63220. LongWritable.class, Text.class, false, null);
  63221. <p/>
  63222. ChainReducer.addMapper(conf, DMap.class, LongWritable.class, Text.class,
  63223. LongWritable.class, LongWritable.class, true, null);
  63224. <p/>
  63225. FileInputFormat.setInputPaths(conf, inDir);
  63226. FileOutputFormat.setOutputPath(conf, outDir);
  63227. ...
  63228. <p/>
  63229. JobClient jc = new JobClient(conf);
  63230. RunningJob job = jc.submitJob(conf);
  63231. ...
  63232. </pre>]]>
  63233. </doc>
  63234. </class>
  63235. <!-- end class org.apache.hadoop.mapred.lib.ChainReducer -->
  63236. <!-- start class org.apache.hadoop.mapred.lib.CombineFileInputFormat -->
  63237. <class name="CombineFileInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat"
  63238. abstract="true"
  63239. static="false" final="false" visibility="public"
  63240. deprecated="not deprecated">
  63241. <constructor name="CombineFileInputFormat"
  63242. static="false" final="false" visibility="public"
  63243. deprecated="not deprecated">
  63244. <doc>
  63245. <![CDATA[default constructor]]>
  63246. </doc>
  63247. </constructor>
  63248. <method name="setMaxSplitSize"
  63249. abstract="false" native="false" synchronized="false"
  63250. static="false" final="false" visibility="protected"
  63251. deprecated="not deprecated">
  63252. <param name="maxSplitSize" type="long"/>
  63253. <doc>
  63254. <![CDATA[Specify the maximum size (in bytes) of each split. Each split is
  63255. approximately equal to the specified size.]]>
  63256. </doc>
  63257. </method>
  63258. <method name="setMinSplitSizeNode"
  63259. abstract="false" native="false" synchronized="false"
  63260. static="false" final="false" visibility="protected"
  63261. deprecated="not deprecated">
  63262. <param name="minSplitSizeNode" type="long"/>
  63263. <doc>
  63264. <![CDATA[Specify the minimum size (in bytes) of each split per node.
  63265. This applies to data that is left over after combining data on a single
  63266. node into splits that are of maximum size specified by maxSplitSize.
  63267. This leftover data will be combined into its own split if its size
  63268. exceeds minSplitSizeNode.]]>
  63269. </doc>
  63270. </method>
  63271. <method name="setMinSplitSizeRack"
  63272. abstract="false" native="false" synchronized="false"
  63273. static="false" final="false" visibility="protected"
  63274. deprecated="not deprecated">
  63275. <param name="minSplitSizeRack" type="long"/>
  63276. <doc>
  63277. <![CDATA[Specify the minimum size (in bytes) of each split per rack.
  63278. This applies to data that is left over after combining data on a single
  63279. rack into splits that are of maximum size specified by maxSplitSize.
  63280. This leftover data will be combined into its own split if its size
  63281. exceeds minSplitSizeRack.]]>
  63282. </doc>
  63283. </method>
  63284. <method name="createPool"
  63285. abstract="false" native="false" synchronized="false"
  63286. static="false" final="false" visibility="protected"
  63287. deprecated="not deprecated">
  63288. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63289. <param name="filters" type="java.util.List"/>
  63290. <doc>
  63291. <![CDATA[Create a new pool and add the filters to it.
  63292. A split cannot have files from different pools.]]>
  63293. </doc>
  63294. </method>
  63295. <method name="createPool"
  63296. abstract="false" native="false" synchronized="false"
  63297. static="false" final="false" visibility="protected"
  63298. deprecated="not deprecated">
  63299. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63300. <param name="filters" type="org.apache.hadoop.fs.PathFilter[]"/>
  63301. <doc>
  63302. <![CDATA[Create a new pool and add the filters to it.
  63303. A pathname can satisfy any one of the specified filters.
  63304. A split cannot have files from different pools.]]>
  63305. </doc>
  63306. </method>
  63307. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  63308. abstract="false" native="false" synchronized="false"
  63309. static="false" final="false" visibility="public"
  63310. deprecated="not deprecated">
  63311. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63312. <param name="numSplits" type="int"/>
  63313. <exception name="IOException" type="java.io.IOException"/>
  63314. </method>
  63315. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  63316. abstract="true" native="false" synchronized="false"
  63317. static="false" final="false" visibility="public"
  63318. deprecated="not deprecated">
  63319. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  63320. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63321. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  63322. <exception name="IOException" type="java.io.IOException"/>
  63323. <doc>
  63324. <![CDATA[This is not implemented yet.]]>
  63325. </doc>
  63326. </method>
  63327. <doc>
  63328. <![CDATA[An abstract {@link org.apache.hadoop.mapred.InputFormat} that returns {@link CombineFileSplit}'s
  63329. in {@link org.apache.hadoop.mapred.InputFormat#getSplits(JobConf, int)} method.
  63330. Splits are constructed from the files under the input paths.
  63331. A split cannot have files from different pools.
  63332. Each split returned may contain blocks from different files.
  63333. If a maxSplitSize is specified, then blocks on the same node are
  63334. combined to form a single split. Blocks that are left over are
  63335. then combined with other blocks in the same rack.
  63336. If maxSplitSize is not specified, then blocks from the same rack
  63337. are combined in a single split; no attempt is made to create
  63338. node-local splits.
  63339. If the maxSplitSize is equal to the block size, then this class
  63340. is similar to the default spliting behaviour in Hadoop: each
  63341. block is a locally processed split.
  63342. Subclasses implement {@link org.apache.hadoop.mapred.InputFormat#getRecordReader(InputSplit, JobConf, Reporter)}
  63343. to construct <code>RecordReader</code>'s for <code>CombineFileSplit</code>'s.
  63344. @see CombineFileSplit]]>
  63345. </doc>
  63346. </class>
  63347. <!-- end class org.apache.hadoop.mapred.lib.CombineFileInputFormat -->
  63348. <!-- start class org.apache.hadoop.mapred.lib.CombineFileRecordReader -->
  63349. <class name="CombineFileRecordReader" extends="java.lang.Object"
  63350. abstract="false"
  63351. static="false" final="false" visibility="public"
  63352. deprecated="not deprecated">
  63353. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  63354. <constructor name="CombineFileRecordReader" type="org.apache.hadoop.mapred.JobConf, org.apache.hadoop.mapred.lib.CombineFileSplit, org.apache.hadoop.mapred.Reporter, java.lang.Class"
  63355. static="false" final="false" visibility="public"
  63356. deprecated="not deprecated">
  63357. <exception name="IOException" type="java.io.IOException"/>
  63358. <doc>
  63359. <![CDATA[A generic RecordReader that can hand out different recordReaders
  63360. for each chunk in the CombineFileSplit.]]>
  63361. </doc>
  63362. </constructor>
  63363. <method name="next" return="boolean"
  63364. abstract="false" native="false" synchronized="false"
  63365. static="false" final="false" visibility="public"
  63366. deprecated="not deprecated">
  63367. <param name="key" type="java.lang.Object"/>
  63368. <param name="value" type="java.lang.Object"/>
  63369. <exception name="IOException" type="java.io.IOException"/>
  63370. </method>
  63371. <method name="createKey" return="java.lang.Object"
  63372. abstract="false" native="false" synchronized="false"
  63373. static="false" final="false" visibility="public"
  63374. deprecated="not deprecated">
  63375. </method>
  63376. <method name="createValue" return="java.lang.Object"
  63377. abstract="false" native="false" synchronized="false"
  63378. static="false" final="false" visibility="public"
  63379. deprecated="not deprecated">
  63380. </method>
  63381. <method name="getPos" return="long"
  63382. abstract="false" native="false" synchronized="false"
  63383. static="false" final="false" visibility="public"
  63384. deprecated="not deprecated">
  63385. <exception name="IOException" type="java.io.IOException"/>
  63386. <doc>
  63387. <![CDATA[return the amount of data processed]]>
  63388. </doc>
  63389. </method>
  63390. <method name="close"
  63391. abstract="false" native="false" synchronized="false"
  63392. static="false" final="false" visibility="public"
  63393. deprecated="not deprecated">
  63394. <exception name="IOException" type="java.io.IOException"/>
  63395. </method>
  63396. <method name="getProgress" return="float"
  63397. abstract="false" native="false" synchronized="false"
  63398. static="false" final="false" visibility="public"
  63399. deprecated="not deprecated">
  63400. <exception name="IOException" type="java.io.IOException"/>
  63401. <doc>
  63402. <![CDATA[return progress based on the amount of data processed so far.]]>
  63403. </doc>
  63404. </method>
  63405. <method name="initNextRecordReader" return="boolean"
  63406. abstract="false" native="false" synchronized="false"
  63407. static="false" final="false" visibility="protected"
  63408. deprecated="not deprecated">
  63409. <exception name="IOException" type="java.io.IOException"/>
  63410. <doc>
  63411. <![CDATA[Get the record reader for the next chunk in this CombineFileSplit.]]>
  63412. </doc>
  63413. </method>
  63414. <field name="split" type="org.apache.hadoop.mapred.lib.CombineFileSplit"
  63415. transient="false" volatile="false"
  63416. static="false" final="false" visibility="protected"
  63417. deprecated="not deprecated">
  63418. </field>
  63419. <field name="jc" type="org.apache.hadoop.mapred.JobConf"
  63420. transient="false" volatile="false"
  63421. static="false" final="false" visibility="protected"
  63422. deprecated="not deprecated">
  63423. </field>
  63424. <field name="reporter" type="org.apache.hadoop.mapred.Reporter"
  63425. transient="false" volatile="false"
  63426. static="false" final="false" visibility="protected"
  63427. deprecated="not deprecated">
  63428. </field>
  63429. <field name="rrClass" type="java.lang.Class"
  63430. transient="false" volatile="false"
  63431. static="false" final="false" visibility="protected"
  63432. deprecated="not deprecated">
  63433. </field>
  63434. <field name="rrConstructor" type="java.lang.reflect.Constructor"
  63435. transient="false" volatile="false"
  63436. static="false" final="false" visibility="protected"
  63437. deprecated="not deprecated">
  63438. </field>
  63439. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  63440. transient="false" volatile="false"
  63441. static="false" final="false" visibility="protected"
  63442. deprecated="not deprecated">
  63443. </field>
  63444. <field name="idx" type="int"
  63445. transient="false" volatile="false"
  63446. static="false" final="false" visibility="protected"
  63447. deprecated="not deprecated">
  63448. </field>
  63449. <field name="progress" type="long"
  63450. transient="false" volatile="false"
  63451. static="false" final="false" visibility="protected"
  63452. deprecated="not deprecated">
  63453. </field>
  63454. <field name="curReader" type="org.apache.hadoop.mapred.RecordReader"
  63455. transient="false" volatile="false"
  63456. static="false" final="false" visibility="protected"
  63457. deprecated="not deprecated">
  63458. </field>
  63459. <doc>
  63460. <![CDATA[A generic RecordReader that can hand out different recordReaders
  63461. for each chunk in a {@link CombineFileSplit}.
  63462. A CombineFileSplit can combine data chunks from multiple files.
  63463. This class allows using different RecordReaders for processing
  63464. these data chunks from different files.
  63465. @see CombineFileSplit]]>
  63466. </doc>
  63467. </class>
  63468. <!-- end class org.apache.hadoop.mapred.lib.CombineFileRecordReader -->
  63469. <!-- start class org.apache.hadoop.mapred.lib.CombineFileSplit -->
  63470. <class name="CombineFileSplit" extends="java.lang.Object"
  63471. abstract="false"
  63472. static="false" final="false" visibility="public"
  63473. deprecated="not deprecated">
  63474. <implements name="org.apache.hadoop.mapred.InputSplit"/>
  63475. <constructor name="CombineFileSplit"
  63476. static="false" final="false" visibility="public"
  63477. deprecated="not deprecated">
  63478. <doc>
  63479. <![CDATA[default constructor]]>
  63480. </doc>
  63481. </constructor>
  63482. <constructor name="CombineFileSplit" type="org.apache.hadoop.mapred.JobConf, org.apache.hadoop.fs.Path[], long[], long[], java.lang.String[]"
  63483. static="false" final="false" visibility="public"
  63484. deprecated="not deprecated">
  63485. </constructor>
  63486. <constructor name="CombineFileSplit" type="org.apache.hadoop.mapred.JobConf, org.apache.hadoop.fs.Path[], long[]"
  63487. static="false" final="false" visibility="public"
  63488. deprecated="not deprecated">
  63489. </constructor>
  63490. <constructor name="CombineFileSplit" type="org.apache.hadoop.mapred.lib.CombineFileSplit"
  63491. static="false" final="false" visibility="public"
  63492. deprecated="not deprecated">
  63493. <exception name="IOException" type="java.io.IOException"/>
  63494. <doc>
  63495. <![CDATA[Copy constructor]]>
  63496. </doc>
  63497. </constructor>
  63498. <method name="getJob" return="org.apache.hadoop.mapred.JobConf"
  63499. abstract="false" native="false" synchronized="false"
  63500. static="false" final="false" visibility="public"
  63501. deprecated="not deprecated">
  63502. </method>
  63503. <method name="getLength" return="long"
  63504. abstract="false" native="false" synchronized="false"
  63505. static="false" final="false" visibility="public"
  63506. deprecated="not deprecated">
  63507. </method>
  63508. <method name="getStartOffsets" return="long[]"
  63509. abstract="false" native="false" synchronized="false"
  63510. static="false" final="false" visibility="public"
  63511. deprecated="not deprecated">
  63512. <doc>
  63513. <![CDATA[Returns an array containing the startoffsets of the files in the split]]>
  63514. </doc>
  63515. </method>
  63516. <method name="getLengths" return="long[]"
  63517. abstract="false" native="false" synchronized="false"
  63518. static="false" final="false" visibility="public"
  63519. deprecated="not deprecated">
  63520. <doc>
  63521. <![CDATA[Returns an array containing the lengths of the files in the split]]>
  63522. </doc>
  63523. </method>
  63524. <method name="getOffset" return="long"
  63525. abstract="false" native="false" synchronized="false"
  63526. static="false" final="false" visibility="public"
  63527. deprecated="not deprecated">
  63528. <param name="i" type="int"/>
  63529. <doc>
  63530. <![CDATA[Returns the start offset of the i<sup>th</sup> Path]]>
  63531. </doc>
  63532. </method>
  63533. <method name="getLength" return="long"
  63534. abstract="false" native="false" synchronized="false"
  63535. static="false" final="false" visibility="public"
  63536. deprecated="not deprecated">
  63537. <param name="i" type="int"/>
  63538. <doc>
  63539. <![CDATA[Returns the length of the i<sup>th</sup> Path]]>
  63540. </doc>
  63541. </method>
  63542. <method name="getNumPaths" return="int"
  63543. abstract="false" native="false" synchronized="false"
  63544. static="false" final="false" visibility="public"
  63545. deprecated="not deprecated">
  63546. <doc>
  63547. <![CDATA[Returns the number of Paths in the split]]>
  63548. </doc>
  63549. </method>
  63550. <method name="getPath" return="org.apache.hadoop.fs.Path"
  63551. abstract="false" native="false" synchronized="false"
  63552. static="false" final="false" visibility="public"
  63553. deprecated="not deprecated">
  63554. <param name="i" type="int"/>
  63555. <doc>
  63556. <![CDATA[Returns the i<sup>th</sup> Path]]>
  63557. </doc>
  63558. </method>
  63559. <method name="getPaths" return="org.apache.hadoop.fs.Path[]"
  63560. abstract="false" native="false" synchronized="false"
  63561. static="false" final="false" visibility="public"
  63562. deprecated="not deprecated">
  63563. <doc>
  63564. <![CDATA[Returns all the Paths in the split]]>
  63565. </doc>
  63566. </method>
  63567. <method name="getLocations" return="java.lang.String[]"
  63568. abstract="false" native="false" synchronized="false"
  63569. static="false" final="false" visibility="public"
  63570. deprecated="not deprecated">
  63571. <exception name="IOException" type="java.io.IOException"/>
  63572. <doc>
  63573. <![CDATA[Returns all the Paths where this input-split resides]]>
  63574. </doc>
  63575. </method>
  63576. <method name="readFields"
  63577. abstract="false" native="false" synchronized="false"
  63578. static="false" final="false" visibility="public"
  63579. deprecated="not deprecated">
  63580. <param name="in" type="java.io.DataInput"/>
  63581. <exception name="IOException" type="java.io.IOException"/>
  63582. </method>
  63583. <method name="write"
  63584. abstract="false" native="false" synchronized="false"
  63585. static="false" final="false" visibility="public"
  63586. deprecated="not deprecated">
  63587. <param name="out" type="java.io.DataOutput"/>
  63588. <exception name="IOException" type="java.io.IOException"/>
  63589. </method>
  63590. <method name="toString" return="java.lang.String"
  63591. abstract="false" native="false" synchronized="false"
  63592. static="false" final="false" visibility="public"
  63593. deprecated="not deprecated">
  63594. </method>
  63595. <doc>
  63596. <![CDATA[A sub-collection of input files. Unlike {@link org.apache.hadoop.mapred.FileSplit},
  63597. CombineFileSplit * class does not represent a split of a file, but a split of input files
  63598. into smaller sets. A split may contain blocks from different file but all
  63599. the blocks in the same split are probably local to some rack <br>
  63600. CombineFileSplit can be used to implement {@link org.apache.hadoop.mapred.RecordReader}'s,
  63601. with reading one record per file.
  63602. @see org.apache.hadoop.mapred.FileSplit
  63603. @see CombineFileInputFormat]]>
  63604. </doc>
  63605. </class>
  63606. <!-- end class org.apache.hadoop.mapred.lib.CombineFileSplit -->
  63607. <!-- start class org.apache.hadoop.mapred.lib.DelegatingInputFormat -->
  63608. <class name="DelegatingInputFormat" extends="java.lang.Object"
  63609. abstract="false"
  63610. static="false" final="false" visibility="public"
  63611. deprecated="not deprecated">
  63612. <implements name="org.apache.hadoop.mapred.InputFormat"/>
  63613. <constructor name="DelegatingInputFormat"
  63614. static="false" final="false" visibility="public"
  63615. deprecated="not deprecated">
  63616. </constructor>
  63617. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  63618. abstract="false" native="false" synchronized="false"
  63619. static="false" final="false" visibility="public"
  63620. deprecated="not deprecated">
  63621. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63622. <param name="numSplits" type="int"/>
  63623. <exception name="IOException" type="java.io.IOException"/>
  63624. </method>
  63625. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  63626. abstract="false" native="false" synchronized="false"
  63627. static="false" final="false" visibility="public"
  63628. deprecated="not deprecated">
  63629. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  63630. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63631. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  63632. <exception name="IOException" type="java.io.IOException"/>
  63633. </method>
  63634. <doc>
  63635. <![CDATA[An {@link InputFormat} that delegates behaviour of paths to multiple other
  63636. InputFormats.
  63637. @see MultipleInputs#addInputPath(JobConf, Path, Class, Class)]]>
  63638. </doc>
  63639. </class>
  63640. <!-- end class org.apache.hadoop.mapred.lib.DelegatingInputFormat -->
  63641. <!-- start class org.apache.hadoop.mapred.lib.DelegatingMapper -->
  63642. <class name="DelegatingMapper" extends="java.lang.Object"
  63643. abstract="false"
  63644. static="false" final="false" visibility="public"
  63645. deprecated="not deprecated">
  63646. <implements name="org.apache.hadoop.mapred.Mapper"/>
  63647. <constructor name="DelegatingMapper"
  63648. static="false" final="false" visibility="public"
  63649. deprecated="not deprecated">
  63650. </constructor>
  63651. <method name="map"
  63652. abstract="false" native="false" synchronized="false"
  63653. static="false" final="false" visibility="public"
  63654. deprecated="not deprecated">
  63655. <param name="key" type="java.lang.Object"/>
  63656. <param name="value" type="java.lang.Object"/>
  63657. <param name="outputCollector" type="org.apache.hadoop.mapred.OutputCollector"/>
  63658. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  63659. <exception name="IOException" type="java.io.IOException"/>
  63660. </method>
  63661. <method name="configure"
  63662. abstract="false" native="false" synchronized="false"
  63663. static="false" final="false" visibility="public"
  63664. deprecated="not deprecated">
  63665. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  63666. </method>
  63667. <method name="close"
  63668. abstract="false" native="false" synchronized="false"
  63669. static="false" final="false" visibility="public"
  63670. deprecated="not deprecated">
  63671. <exception name="IOException" type="java.io.IOException"/>
  63672. </method>
  63673. <doc>
  63674. <![CDATA[An {@link Mapper} that delegates behaviour of paths to multiple other
  63675. mappers.
  63676. @see MultipleInputs#addInputPath(JobConf, Path, Class, Class)]]>
  63677. </doc>
  63678. </class>
  63679. <!-- end class org.apache.hadoop.mapred.lib.DelegatingMapper -->
  63680. <!-- start class org.apache.hadoop.mapred.lib.FieldSelectionMapReduce -->
  63681. <class name="FieldSelectionMapReduce" extends="java.lang.Object"
  63682. abstract="false"
  63683. static="false" final="false" visibility="public"
  63684. deprecated="not deprecated">
  63685. <implements name="org.apache.hadoop.mapred.Mapper"/>
  63686. <implements name="org.apache.hadoop.mapred.Reducer"/>
  63687. <constructor name="FieldSelectionMapReduce"
  63688. static="false" final="false" visibility="public"
  63689. deprecated="not deprecated">
  63690. </constructor>
  63691. <method name="map"
  63692. abstract="false" native="false" synchronized="false"
  63693. static="false" final="false" visibility="public"
  63694. deprecated="not deprecated">
  63695. <param name="key" type="java.lang.Object"/>
  63696. <param name="val" type="java.lang.Object"/>
  63697. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  63698. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  63699. <exception name="IOException" type="java.io.IOException"/>
  63700. <doc>
  63701. <![CDATA[The identify function. Input key/value pair is written directly to output.]]>
  63702. </doc>
  63703. </method>
  63704. <method name="configure"
  63705. abstract="false" native="false" synchronized="false"
  63706. static="false" final="false" visibility="public"
  63707. deprecated="not deprecated">
  63708. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63709. </method>
  63710. <method name="close"
  63711. abstract="false" native="false" synchronized="false"
  63712. static="false" final="false" visibility="public"
  63713. deprecated="not deprecated">
  63714. <exception name="IOException" type="java.io.IOException"/>
  63715. </method>
  63716. <method name="reduce"
  63717. abstract="false" native="false" synchronized="false"
  63718. static="false" final="false" visibility="public"
  63719. deprecated="not deprecated">
  63720. <param name="key" type="org.apache.hadoop.io.Text"/>
  63721. <param name="values" type="java.util.Iterator"/>
  63722. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  63723. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  63724. <exception name="IOException" type="java.io.IOException"/>
  63725. </method>
  63726. <field name="LOG" type="org.apache.commons.logging.Log"
  63727. transient="false" volatile="false"
  63728. static="true" final="true" visibility="public"
  63729. deprecated="not deprecated">
  63730. </field>
  63731. <doc>
  63732. <![CDATA[This class implements a mapper/reducer class that can be used to perform
  63733. field selections in a manner similar to unix cut. The input data is treated
  63734. as fields separated by a user specified separator (the default value is
  63735. "\t"). The user can specify a list of fields that form the map output keys,
  63736. and a list of fields that form the map output values. If the inputformat is
  63737. TextInputFormat, the mapper will ignore the key to the map function. and the
  63738. fields are from the value only. Otherwise, the fields are the union of those
  63739. from the key and those from the value.
  63740. The field separator is under attribute "mapred.data.field.separator"
  63741. The map output field list spec is under attribute "map.output.key.value.fields.spec".
  63742. The value is expected to be like "keyFieldsSpec:valueFieldsSpec"
  63743. key/valueFieldsSpec are comma (,) separated field spec: fieldSpec,fieldSpec,fieldSpec ...
  63744. Each field spec can be a simple number (e.g. 5) specifying a specific field, or a range
  63745. (like 2-5) to specify a range of fields, or an open range (like 3-) specifying all
  63746. the fields starting from field 3. The open range field spec applies value fields only.
  63747. They have no effect on the key fields.
  63748. Here is an example: "4,3,0,1:6,5,1-3,7-". It specifies to use fields 4,3,0 and 1 for keys,
  63749. and use fields 6,5,1,2,3,7 and above for values.
  63750. The reduce output field list spec is under attribute "reduce.output.key.value.fields.spec".
  63751. The reducer extracts output key/value pairs in a similar manner, except that
  63752. the key is never ignored.]]>
  63753. </doc>
  63754. </class>
  63755. <!-- end class org.apache.hadoop.mapred.lib.FieldSelectionMapReduce -->
  63756. <!-- start class org.apache.hadoop.mapred.lib.HashPartitioner -->
  63757. <class name="HashPartitioner" extends="java.lang.Object"
  63758. abstract="false"
  63759. static="false" final="false" visibility="public"
  63760. deprecated="not deprecated">
  63761. <implements name="org.apache.hadoop.mapred.Partitioner"/>
  63762. <constructor name="HashPartitioner"
  63763. static="false" final="false" visibility="public"
  63764. deprecated="not deprecated">
  63765. </constructor>
  63766. <method name="configure"
  63767. abstract="false" native="false" synchronized="false"
  63768. static="false" final="false" visibility="public"
  63769. deprecated="not deprecated">
  63770. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63771. </method>
  63772. <method name="getPartition" return="int"
  63773. abstract="false" native="false" synchronized="false"
  63774. static="false" final="false" visibility="public"
  63775. deprecated="not deprecated">
  63776. <param name="key" type="java.lang.Object"/>
  63777. <param name="value" type="java.lang.Object"/>
  63778. <param name="numReduceTasks" type="int"/>
  63779. <doc>
  63780. <![CDATA[Use {@link Object#hashCode()} to partition.]]>
  63781. </doc>
  63782. </method>
  63783. <doc>
  63784. <![CDATA[Partition keys by their {@link Object#hashCode()}.]]>
  63785. </doc>
  63786. </class>
  63787. <!-- end class org.apache.hadoop.mapred.lib.HashPartitioner -->
  63788. <!-- start class org.apache.hadoop.mapred.lib.IdentityMapper -->
  63789. <class name="IdentityMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  63790. abstract="false"
  63791. static="false" final="false" visibility="public"
  63792. deprecated="not deprecated">
  63793. <implements name="org.apache.hadoop.mapred.Mapper"/>
  63794. <constructor name="IdentityMapper"
  63795. static="false" final="false" visibility="public"
  63796. deprecated="not deprecated">
  63797. </constructor>
  63798. <method name="map"
  63799. abstract="false" native="false" synchronized="false"
  63800. static="false" final="false" visibility="public"
  63801. deprecated="not deprecated">
  63802. <param name="key" type="java.lang.Object"/>
  63803. <param name="val" type="java.lang.Object"/>
  63804. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  63805. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  63806. <exception name="IOException" type="java.io.IOException"/>
  63807. <doc>
  63808. <![CDATA[The identify function. Input key/value pair is written directly to
  63809. output.]]>
  63810. </doc>
  63811. </method>
  63812. <doc>
  63813. <![CDATA[Implements the identity function, mapping inputs directly to outputs.]]>
  63814. </doc>
  63815. </class>
  63816. <!-- end class org.apache.hadoop.mapred.lib.IdentityMapper -->
  63817. <!-- start class org.apache.hadoop.mapred.lib.IdentityReducer -->
  63818. <class name="IdentityReducer" extends="org.apache.hadoop.mapred.MapReduceBase"
  63819. abstract="false"
  63820. static="false" final="false" visibility="public"
  63821. deprecated="not deprecated">
  63822. <implements name="org.apache.hadoop.mapred.Reducer"/>
  63823. <constructor name="IdentityReducer"
  63824. static="false" final="false" visibility="public"
  63825. deprecated="not deprecated">
  63826. </constructor>
  63827. <method name="reduce"
  63828. abstract="false" native="false" synchronized="false"
  63829. static="false" final="false" visibility="public"
  63830. deprecated="not deprecated">
  63831. <param name="key" type="java.lang.Object"/>
  63832. <param name="values" type="java.util.Iterator"/>
  63833. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  63834. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  63835. <exception name="IOException" type="java.io.IOException"/>
  63836. <doc>
  63837. <![CDATA[Writes all keys and values directly to output.]]>
  63838. </doc>
  63839. </method>
  63840. <doc>
  63841. <![CDATA[Performs no reduction, writing all input values directly to the output.]]>
  63842. </doc>
  63843. </class>
  63844. <!-- end class org.apache.hadoop.mapred.lib.IdentityReducer -->
  63845. <!-- start class org.apache.hadoop.mapred.lib.InputSampler -->
  63846. <class name="InputSampler" extends="java.lang.Object"
  63847. abstract="false"
  63848. static="false" final="false" visibility="public"
  63849. deprecated="not deprecated">
  63850. <implements name="org.apache.hadoop.util.Tool"/>
  63851. <constructor name="InputSampler" type="org.apache.hadoop.mapred.JobConf"
  63852. static="false" final="false" visibility="public"
  63853. deprecated="not deprecated">
  63854. </constructor>
  63855. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  63856. abstract="false" native="false" synchronized="false"
  63857. static="false" final="false" visibility="public"
  63858. deprecated="not deprecated">
  63859. </method>
  63860. <method name="setConf"
  63861. abstract="false" native="false" synchronized="false"
  63862. static="false" final="false" visibility="public"
  63863. deprecated="not deprecated">
  63864. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  63865. </method>
  63866. <method name="writePartitionFile"
  63867. abstract="false" native="false" synchronized="false"
  63868. static="true" final="false" visibility="public"
  63869. deprecated="not deprecated">
  63870. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63871. <param name="sampler" type="org.apache.hadoop.mapred.lib.InputSampler.Sampler"/>
  63872. <exception name="IOException" type="java.io.IOException"/>
  63873. <doc>
  63874. <![CDATA[Write a partition file for the given job, using the Sampler provided.
  63875. Queries the sampler for a sample keyset, sorts by the output key
  63876. comparator, selects the keys for each rank, and writes to the destination
  63877. returned from {@link
  63878. org.apache.hadoop.mapred.lib.TotalOrderPartitioner#getPartitionFile}.]]>
  63879. </doc>
  63880. </method>
  63881. <method name="run" return="int"
  63882. abstract="false" native="false" synchronized="false"
  63883. static="false" final="false" visibility="public"
  63884. deprecated="not deprecated">
  63885. <param name="args" type="java.lang.String[]"/>
  63886. <exception name="Exception" type="java.lang.Exception"/>
  63887. <doc>
  63888. <![CDATA[Driver for InputSampler from the command line.
  63889. Configures a JobConf instance and calls {@link #writePartitionFile}.]]>
  63890. </doc>
  63891. </method>
  63892. <method name="main"
  63893. abstract="false" native="false" synchronized="false"
  63894. static="true" final="false" visibility="public"
  63895. deprecated="not deprecated">
  63896. <param name="args" type="java.lang.String[]"/>
  63897. <exception name="Exception" type="java.lang.Exception"/>
  63898. </method>
  63899. <doc>
  63900. <![CDATA[Utility for collecting samples and writing a partition file for
  63901. {@link org.apache.hadoop.mapred.lib.TotalOrderPartitioner}.]]>
  63902. </doc>
  63903. </class>
  63904. <!-- end class org.apache.hadoop.mapred.lib.InputSampler -->
  63905. <!-- start class org.apache.hadoop.mapred.lib.InputSampler.IntervalSampler -->
  63906. <class name="InputSampler.IntervalSampler" extends="java.lang.Object"
  63907. abstract="false"
  63908. static="true" final="false" visibility="public"
  63909. deprecated="not deprecated">
  63910. <implements name="org.apache.hadoop.mapred.lib.InputSampler.Sampler"/>
  63911. <constructor name="InputSampler.IntervalSampler" type="double"
  63912. static="false" final="false" visibility="public"
  63913. deprecated="not deprecated">
  63914. <doc>
  63915. <![CDATA[Create a new IntervalSampler sampling <em>all</em> splits.
  63916. @param freq The frequency with which records will be emitted.]]>
  63917. </doc>
  63918. </constructor>
  63919. <constructor name="InputSampler.IntervalSampler" type="double, int"
  63920. static="false" final="false" visibility="public"
  63921. deprecated="not deprecated">
  63922. <doc>
  63923. <![CDATA[Create a new IntervalSampler.
  63924. @param freq The frequency with which records will be emitted.
  63925. @param maxSplitsSampled The maximum number of splits to examine.
  63926. @see #getSample]]>
  63927. </doc>
  63928. </constructor>
  63929. <method name="getSample" return="java.lang.Object[]"
  63930. abstract="false" native="false" synchronized="false"
  63931. static="false" final="false" visibility="public"
  63932. deprecated="not deprecated">
  63933. <param name="inf" type="org.apache.hadoop.mapred.InputFormat"/>
  63934. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63935. <exception name="IOException" type="java.io.IOException"/>
  63936. <doc>
  63937. <![CDATA[For each split sampled, emit when the ratio of the number of records
  63938. retained to the total record count is less than the specified
  63939. frequency.]]>
  63940. </doc>
  63941. </method>
  63942. <doc>
  63943. <![CDATA[Sample from s splits at regular intervals.
  63944. Useful for sorted data.]]>
  63945. </doc>
  63946. </class>
  63947. <!-- end class org.apache.hadoop.mapred.lib.InputSampler.IntervalSampler -->
  63948. <!-- start class org.apache.hadoop.mapred.lib.InputSampler.RandomSampler -->
  63949. <class name="InputSampler.RandomSampler" extends="java.lang.Object"
  63950. abstract="false"
  63951. static="true" final="false" visibility="public"
  63952. deprecated="not deprecated">
  63953. <implements name="org.apache.hadoop.mapred.lib.InputSampler.Sampler"/>
  63954. <constructor name="InputSampler.RandomSampler" type="double, int"
  63955. static="false" final="false" visibility="public"
  63956. deprecated="not deprecated">
  63957. <doc>
  63958. <![CDATA[Create a new RandomSampler sampling <em>all</em> splits.
  63959. This will read every split at the client, which is very expensive.
  63960. @param freq Probability with which a key will be chosen.
  63961. @param numSamples Total number of samples to obtain from all selected
  63962. splits.]]>
  63963. </doc>
  63964. </constructor>
  63965. <constructor name="InputSampler.RandomSampler" type="double, int, int"
  63966. static="false" final="false" visibility="public"
  63967. deprecated="not deprecated">
  63968. <doc>
  63969. <![CDATA[Create a new RandomSampler.
  63970. @param freq Probability with which a key will be chosen.
  63971. @param numSamples Total number of samples to obtain from all selected
  63972. splits.
  63973. @param maxSplitsSampled The maximum number of splits to examine.]]>
  63974. </doc>
  63975. </constructor>
  63976. <method name="getSample" return="java.lang.Object[]"
  63977. abstract="false" native="false" synchronized="false"
  63978. static="false" final="false" visibility="public"
  63979. deprecated="not deprecated">
  63980. <param name="inf" type="org.apache.hadoop.mapred.InputFormat"/>
  63981. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  63982. <exception name="IOException" type="java.io.IOException"/>
  63983. <doc>
  63984. <![CDATA[Randomize the split order, then take the specified number of keys from
  63985. each split sampled, where each key is selected with the specified
  63986. probability and possibly replaced by a subsequently selected key when
  63987. the quota of keys from that split is satisfied.]]>
  63988. </doc>
  63989. </method>
  63990. <doc>
  63991. <![CDATA[Sample from random points in the input.
  63992. General-purpose sampler. Takes numSamples / maxSplitsSampled inputs from
  63993. each split.]]>
  63994. </doc>
  63995. </class>
  63996. <!-- end class org.apache.hadoop.mapred.lib.InputSampler.RandomSampler -->
  63997. <!-- start interface org.apache.hadoop.mapred.lib.InputSampler.Sampler -->
  63998. <interface name="InputSampler.Sampler" abstract="true"
  63999. static="true" final="false" visibility="public"
  64000. deprecated="not deprecated">
  64001. <method name="getSample" return="java.lang.Object[]"
  64002. abstract="false" native="false" synchronized="false"
  64003. static="false" final="false" visibility="public"
  64004. deprecated="not deprecated">
  64005. <param name="inf" type="org.apache.hadoop.mapred.InputFormat"/>
  64006. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  64007. <exception name="IOException" type="java.io.IOException"/>
  64008. <doc>
  64009. <![CDATA[For a given job, collect and return a subset of the keys from the
  64010. input data.]]>
  64011. </doc>
  64012. </method>
  64013. <doc>
  64014. <![CDATA[Interface to sample using an {@link org.apache.hadoop.mapred.InputFormat}.]]>
  64015. </doc>
  64016. </interface>
  64017. <!-- end interface org.apache.hadoop.mapred.lib.InputSampler.Sampler -->
  64018. <!-- start class org.apache.hadoop.mapred.lib.InputSampler.SplitSampler -->
  64019. <class name="InputSampler.SplitSampler" extends="java.lang.Object"
  64020. abstract="false"
  64021. static="true" final="false" visibility="public"
  64022. deprecated="not deprecated">
  64023. <implements name="org.apache.hadoop.mapred.lib.InputSampler.Sampler"/>
  64024. <constructor name="InputSampler.SplitSampler" type="int"
  64025. static="false" final="false" visibility="public"
  64026. deprecated="not deprecated">
  64027. <doc>
  64028. <![CDATA[Create a SplitSampler sampling <em>all</em> splits.
  64029. Takes the first numSamples / numSplits records from each split.
  64030. @param numSamples Total number of samples to obtain from all selected
  64031. splits.]]>
  64032. </doc>
  64033. </constructor>
  64034. <constructor name="InputSampler.SplitSampler" type="int, int"
  64035. static="false" final="false" visibility="public"
  64036. deprecated="not deprecated">
  64037. <doc>
  64038. <![CDATA[Create a new SplitSampler.
  64039. @param numSamples Total number of samples to obtain from all selected
  64040. splits.
  64041. @param maxSplitsSampled The maximum number of splits to examine.]]>
  64042. </doc>
  64043. </constructor>
  64044. <method name="getSample" return="java.lang.Object[]"
  64045. abstract="false" native="false" synchronized="false"
  64046. static="false" final="false" visibility="public"
  64047. deprecated="not deprecated">
  64048. <param name="inf" type="org.apache.hadoop.mapred.InputFormat"/>
  64049. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  64050. <exception name="IOException" type="java.io.IOException"/>
  64051. <doc>
  64052. <![CDATA[From each split sampled, take the first numSamples / numSplits records.]]>
  64053. </doc>
  64054. </method>
  64055. <doc>
  64056. <![CDATA[Samples the first n records from s splits.
  64057. Inexpensive way to sample random data.]]>
  64058. </doc>
  64059. </class>
  64060. <!-- end class org.apache.hadoop.mapred.lib.InputSampler.SplitSampler -->
  64061. <!-- start class org.apache.hadoop.mapred.lib.InverseMapper -->
  64062. <class name="InverseMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  64063. abstract="false"
  64064. static="false" final="false" visibility="public"
  64065. deprecated="not deprecated">
  64066. <implements name="org.apache.hadoop.mapred.Mapper"/>
  64067. <constructor name="InverseMapper"
  64068. static="false" final="false" visibility="public"
  64069. deprecated="not deprecated">
  64070. </constructor>
  64071. <method name="map"
  64072. abstract="false" native="false" synchronized="false"
  64073. static="false" final="false" visibility="public"
  64074. deprecated="not deprecated">
  64075. <param name="key" type="java.lang.Object"/>
  64076. <param name="value" type="java.lang.Object"/>
  64077. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  64078. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  64079. <exception name="IOException" type="java.io.IOException"/>
  64080. <doc>
  64081. <![CDATA[The inverse function. Input keys and values are swapped.]]>
  64082. </doc>
  64083. </method>
  64084. <doc>
  64085. <![CDATA[A {@link Mapper} that swaps keys and values.]]>
  64086. </doc>
  64087. </class>
  64088. <!-- end class org.apache.hadoop.mapred.lib.InverseMapper -->
  64089. <!-- start class org.apache.hadoop.mapred.lib.KeyFieldBasedComparator -->
  64090. <class name="KeyFieldBasedComparator" extends="org.apache.hadoop.io.WritableComparator"
  64091. abstract="false"
  64092. static="false" final="false" visibility="public"
  64093. deprecated="not deprecated">
  64094. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  64095. <constructor name="KeyFieldBasedComparator"
  64096. static="false" final="false" visibility="public"
  64097. deprecated="not deprecated">
  64098. </constructor>
  64099. <method name="configure"
  64100. abstract="false" native="false" synchronized="false"
  64101. static="false" final="false" visibility="public"
  64102. deprecated="not deprecated">
  64103. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  64104. </method>
  64105. <method name="compare" return="int"
  64106. abstract="false" native="false" synchronized="false"
  64107. static="false" final="false" visibility="public"
  64108. deprecated="not deprecated">
  64109. <param name="b1" type="byte[]"/>
  64110. <param name="s1" type="int"/>
  64111. <param name="l1" type="int"/>
  64112. <param name="b2" type="byte[]"/>
  64113. <param name="s2" type="int"/>
  64114. <param name="l2" type="int"/>
  64115. </method>
  64116. <doc>
  64117. <![CDATA[This comparator implementation provides a subset of the features provided
  64118. by the Unix/GNU Sort. In particular, the supported features are:
  64119. -n, (Sort numerically)
  64120. -r, (Reverse the result of comparison)
  64121. -k pos1[,pos2], where pos is of the form f[.c][opts], where f is the number
  64122. of the field to use, and c is the number of the first character from the
  64123. beginning of the field. Fields and character posns are numbered starting
  64124. with 1; a character position of zero in pos2 indicates the field's last
  64125. character. If '.c' is omitted from pos1, it defaults to 1 (the beginning
  64126. of the field); if omitted from pos2, it defaults to 0 (the end of the
  64127. field). opts are ordering options (any of 'nr' as described above).
  64128. We assume that the fields in the key are separated by
  64129. map.output.key.field.separator.]]>
  64130. </doc>
  64131. </class>
  64132. <!-- end class org.apache.hadoop.mapred.lib.KeyFieldBasedComparator -->
  64133. <!-- start class org.apache.hadoop.mapred.lib.KeyFieldBasedPartitioner -->
  64134. <class name="KeyFieldBasedPartitioner" extends="java.lang.Object"
  64135. abstract="false"
  64136. static="false" final="false" visibility="public"
  64137. deprecated="not deprecated">
  64138. <implements name="org.apache.hadoop.mapred.Partitioner"/>
  64139. <constructor name="KeyFieldBasedPartitioner"
  64140. static="false" final="false" visibility="public"
  64141. deprecated="not deprecated">
  64142. </constructor>
  64143. <method name="configure"
  64144. abstract="false" native="false" synchronized="false"
  64145. static="false" final="false" visibility="public"
  64146. deprecated="not deprecated">
  64147. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  64148. </method>
  64149. <method name="getPartition" return="int"
  64150. abstract="false" native="false" synchronized="false"
  64151. static="false" final="false" visibility="public"
  64152. deprecated="not deprecated">
  64153. <param name="key" type="java.lang.Object"/>
  64154. <param name="value" type="java.lang.Object"/>
  64155. <param name="numReduceTasks" type="int"/>
  64156. </method>
  64157. <method name="hashCode" return="int"
  64158. abstract="false" native="false" synchronized="false"
  64159. static="false" final="false" visibility="protected"
  64160. deprecated="not deprecated">
  64161. <param name="b" type="byte[]"/>
  64162. <param name="start" type="int"/>
  64163. <param name="end" type="int"/>
  64164. <param name="currentHash" type="int"/>
  64165. </method>
  64166. <method name="getPartition" return="int"
  64167. abstract="false" native="false" synchronized="false"
  64168. static="false" final="false" visibility="protected"
  64169. deprecated="not deprecated">
  64170. <param name="hash" type="int"/>
  64171. <param name="numReduceTasks" type="int"/>
  64172. </method>
  64173. <doc>
  64174. <![CDATA[Defines a way to partition keys based on certain key fields (also see
  64175. {@link KeyFieldBasedComparator}.
  64176. The key specification supported is of the form -k pos1[,pos2], where,
  64177. pos is of the form f[.c][opts], where f is the number
  64178. of the key field to use, and c is the number of the first character from
  64179. the beginning of the field. Fields and character posns are numbered
  64180. starting with 1; a character position of zero in pos2 indicates the
  64181. field's last character. If '.c' is omitted from pos1, it defaults to 1
  64182. (the beginning of the field); if omitted from pos2, it defaults to 0
  64183. (the end of the field).]]>
  64184. </doc>
  64185. </class>
  64186. <!-- end class org.apache.hadoop.mapred.lib.KeyFieldBasedPartitioner -->
  64187. <!-- start class org.apache.hadoop.mapred.lib.LongSumReducer -->
  64188. <class name="LongSumReducer" extends="org.apache.hadoop.mapred.MapReduceBase"
  64189. abstract="false"
  64190. static="false" final="false" visibility="public"
  64191. deprecated="not deprecated">
  64192. <implements name="org.apache.hadoop.mapred.Reducer"/>
  64193. <constructor name="LongSumReducer"
  64194. static="false" final="false" visibility="public"
  64195. deprecated="not deprecated">
  64196. </constructor>
  64197. <method name="reduce"
  64198. abstract="false" native="false" synchronized="false"
  64199. static="false" final="false" visibility="public"
  64200. deprecated="not deprecated">
  64201. <param name="key" type="java.lang.Object"/>
  64202. <param name="values" type="java.util.Iterator"/>
  64203. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  64204. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  64205. <exception name="IOException" type="java.io.IOException"/>
  64206. </method>
  64207. <doc>
  64208. <![CDATA[A {@link Reducer} that sums long values.]]>
  64209. </doc>
  64210. </class>
  64211. <!-- end class org.apache.hadoop.mapred.lib.LongSumReducer -->
  64212. <!-- start class org.apache.hadoop.mapred.lib.MultipleInputs -->
  64213. <class name="MultipleInputs" extends="java.lang.Object"
  64214. abstract="false"
  64215. static="false" final="false" visibility="public"
  64216. deprecated="not deprecated">
  64217. <constructor name="MultipleInputs"
  64218. static="false" final="false" visibility="public"
  64219. deprecated="not deprecated">
  64220. </constructor>
  64221. <method name="addInputPath"
  64222. abstract="false" native="false" synchronized="false"
  64223. static="true" final="false" visibility="public"
  64224. deprecated="not deprecated">
  64225. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  64226. <param name="path" type="org.apache.hadoop.fs.Path"/>
  64227. <param name="inputFormatClass" type="java.lang.Class"/>
  64228. <doc>
  64229. <![CDATA[Add a {@link Path} with a custom {@link InputFormat} to the list of
  64230. inputs for the map-reduce job.
  64231. @param conf The configuration of the job
  64232. @param path {@link Path} to be added to the list of inputs for the job
  64233. @param inputFormatClass {@link InputFormat} class to use for this path]]>
  64234. </doc>
  64235. </method>
  64236. <method name="addInputPath"
  64237. abstract="false" native="false" synchronized="false"
  64238. static="true" final="false" visibility="public"
  64239. deprecated="not deprecated">
  64240. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  64241. <param name="path" type="org.apache.hadoop.fs.Path"/>
  64242. <param name="inputFormatClass" type="java.lang.Class"/>
  64243. <param name="mapperClass" type="java.lang.Class"/>
  64244. <doc>
  64245. <![CDATA[Add a {@link Path} with a custom {@link InputFormat} and
  64246. {@link Mapper} to the list of inputs for the map-reduce job.
  64247. @param conf The configuration of the job
  64248. @param path {@link Path} to be added to the list of inputs for the job
  64249. @param inputFormatClass {@link InputFormat} class to use for this path
  64250. @param mapperClass {@link Mapper} class to use for this path]]>
  64251. </doc>
  64252. </method>
  64253. <doc>
  64254. <![CDATA[This class supports MapReduce jobs that have multiple input paths with
  64255. a different {@link InputFormat} and {@link Mapper} for each path]]>
  64256. </doc>
  64257. </class>
  64258. <!-- end class org.apache.hadoop.mapred.lib.MultipleInputs -->
  64259. <!-- start class org.apache.hadoop.mapred.lib.MultipleOutputFormat -->
  64260. <class name="MultipleOutputFormat" extends="org.apache.hadoop.mapred.FileOutputFormat"
  64261. abstract="true"
  64262. static="false" final="false" visibility="public"
  64263. deprecated="not deprecated">
  64264. <constructor name="MultipleOutputFormat"
  64265. static="false" final="false" visibility="public"
  64266. deprecated="not deprecated">
  64267. </constructor>
  64268. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  64269. abstract="false" native="false" synchronized="false"
  64270. static="false" final="false" visibility="public"
  64271. deprecated="not deprecated">
  64272. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  64273. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  64274. <param name="name" type="java.lang.String"/>
  64275. <param name="arg3" type="org.apache.hadoop.util.Progressable"/>
  64276. <exception name="IOException" type="java.io.IOException"/>
  64277. <doc>
  64278. <![CDATA[Create a composite record writer that can write key/value data to different
  64279. output files
  64280. @param fs
  64281. the file system to use
  64282. @param job
  64283. the job conf for the job
  64284. @param name
  64285. the leaf file name for the output file (such as part-00000")
  64286. @param arg3
  64287. a progressable for reporting progress.
  64288. @return a composite record writer
  64289. @throws IOException]]>
  64290. </doc>
  64291. </method>
  64292. <method name="generateLeafFileName" return="java.lang.String"
  64293. abstract="false" native="false" synchronized="false"
  64294. static="false" final="false" visibility="protected"
  64295. deprecated="not deprecated">
  64296. <param name="name" type="java.lang.String"/>
  64297. <doc>
  64298. <![CDATA[Generate the leaf name for the output file name. The default behavior does
  64299. not change the leaf file name (such as part-00000)
  64300. @param name
  64301. the leaf file name for the output file
  64302. @return the given leaf file name]]>
  64303. </doc>
  64304. </method>
  64305. <method name="generateFileNameForKeyValue" return="java.lang.String"
  64306. abstract="false" native="false" synchronized="false"
  64307. static="false" final="false" visibility="protected"
  64308. deprecated="not deprecated">
  64309. <param name="key" type="java.lang.Object"/>
  64310. <param name="value" type="java.lang.Object"/>
  64311. <param name="name" type="java.lang.String"/>
  64312. <doc>
  64313. <![CDATA[Generate the file output file name based on the given key and the leaf file
  64314. name. The default behavior is that the file name does not depend on the
  64315. key.
  64316. @param key
  64317. the key of the output data
  64318. @param name
  64319. the leaf file name
  64320. @return generated file name]]>
  64321. </doc>
  64322. </method>
  64323. <method name="generateActualKey" return="java.lang.Object"
  64324. abstract="false" native="false" synchronized="false"
  64325. static="false" final="false" visibility="protected"
  64326. deprecated="not deprecated">
  64327. <param name="key" type="java.lang.Object"/>
  64328. <param name="value" type="java.lang.Object"/>
  64329. <doc>
  64330. <![CDATA[Generate the actual key from the given key/value. The default behavior is that
  64331. the actual key is equal to the given key
  64332. @param key
  64333. the key of the output data
  64334. @param value
  64335. the value of the output data
  64336. @return the actual key derived from the given key/value]]>
  64337. </doc>
  64338. </method>
  64339. <method name="generateActualValue" return="java.lang.Object"
  64340. abstract="false" native="false" synchronized="false"
  64341. static="false" final="false" visibility="protected"
  64342. deprecated="not deprecated">
  64343. <param name="key" type="java.lang.Object"/>
  64344. <param name="value" type="java.lang.Object"/>
  64345. <doc>
  64346. <![CDATA[Generate the actual value from the given key and value. The default behavior is that
  64347. the actual value is equal to the given value
  64348. @param key
  64349. the key of the output data
  64350. @param value
  64351. the value of the output data
  64352. @return the actual value derived from the given key/value]]>
  64353. </doc>
  64354. </method>
  64355. <method name="getInputFileBasedOutputFileName" return="java.lang.String"
  64356. abstract="false" native="false" synchronized="false"
  64357. static="false" final="false" visibility="protected"
  64358. deprecated="not deprecated">
  64359. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  64360. <param name="name" type="java.lang.String"/>
  64361. <doc>
  64362. <![CDATA[Generate the outfile name based on a given anme and the input file name. If
  64363. the map input file does not exists (i.e. this is not for a map only job),
  64364. the given name is returned unchanged. If the config value for
  64365. "num.of.trailing.legs.to.use" is not set, or set 0 or negative, the given
  64366. name is returned unchanged. Otherwise, return a file name consisting of the
  64367. N trailing legs of the input file name where N is the config value for
  64368. "num.of.trailing.legs.to.use".
  64369. @param job
  64370. the job config
  64371. @param name
  64372. the output file name
  64373. @return the outfile name based on a given anme and the input file name.]]>
  64374. </doc>
  64375. </method>
  64376. <method name="getBaseRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  64377. abstract="true" native="false" synchronized="false"
  64378. static="false" final="false" visibility="protected"
  64379. deprecated="not deprecated">
  64380. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  64381. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  64382. <param name="name" type="java.lang.String"/>
  64383. <param name="arg3" type="org.apache.hadoop.util.Progressable"/>
  64384. <exception name="IOException" type="java.io.IOException"/>
  64385. <doc>
  64386. <![CDATA[@param fs
  64387. the file system to use
  64388. @param job
  64389. a job conf object
  64390. @param name
  64391. the name of the file over which a record writer object will be
  64392. constructed
  64393. @param arg3
  64394. a progressable object
  64395. @return A RecordWriter object over the given file
  64396. @throws IOException]]>
  64397. </doc>
  64398. </method>
  64399. <doc>
  64400. <![CDATA[This abstract class extends the FileOutputFormat, allowing to write the
  64401. output data to different output files. There are three basic use cases for
  64402. this class.
  64403. Case one: This class is used for a map reduce job with at least one reducer.
  64404. The reducer wants to write data to different files depending on the actual
  64405. keys. It is assumed that a key (or value) encodes the actual key (value)
  64406. and the desired location for the actual key (value).
  64407. Case two: This class is used for a map only job. The job wants to use an
  64408. output file name that is either a part of the input file name of the input
  64409. data, or some derivation of it.
  64410. Case three: This class is used for a map only job. The job wants to use an
  64411. output file name that depends on both the keys and the input file name,]]>
  64412. </doc>
  64413. </class>
  64414. <!-- end class org.apache.hadoop.mapred.lib.MultipleOutputFormat -->
  64415. <!-- start class org.apache.hadoop.mapred.lib.MultipleOutputs -->
  64416. <class name="MultipleOutputs" extends="java.lang.Object"
  64417. abstract="false"
  64418. static="false" final="false" visibility="public"
  64419. deprecated="not deprecated">
  64420. <constructor name="MultipleOutputs" type="org.apache.hadoop.mapred.JobConf"
  64421. static="false" final="false" visibility="public"
  64422. deprecated="not deprecated">
  64423. <doc>
  64424. <![CDATA[Creates and initializes multiple named outputs support, it should be
  64425. instantiated in the Mapper/Reducer configure method.
  64426. @param job the job configuration object]]>
  64427. </doc>
  64428. </constructor>
  64429. <method name="getNamedOutputsList" return="java.util.List"
  64430. abstract="false" native="false" synchronized="false"
  64431. static="true" final="false" visibility="public"
  64432. deprecated="not deprecated">
  64433. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  64434. <doc>
  64435. <![CDATA[Returns list of channel names.
  64436. @param conf job conf
  64437. @return List of channel Names]]>
  64438. </doc>
  64439. </method>
  64440. <method name="isMultiNamedOutput" return="boolean"
  64441. abstract="false" native="false" synchronized="false"
  64442. static="true" final="false" visibility="public"
  64443. deprecated="not deprecated">
  64444. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  64445. <param name="namedOutput" type="java.lang.String"/>
  64446. <doc>
  64447. <![CDATA[Returns if a named output is multiple.
  64448. @param conf job conf
  64449. @param namedOutput named output
  64450. @return <code>true</code> if the name output is multi, <code>false</code>
  64451. if it is single. If the name output is not defined it returns
  64452. <code>false</code>]]>
  64453. </doc>
  64454. </method>
  64455. <method name="getNamedOutputFormatClass" return="java.lang.Class"
  64456. abstract="false" native="false" synchronized="false"
  64457. static="true" final="false" visibility="public"
  64458. deprecated="not deprecated">
  64459. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  64460. <param name="namedOutput" type="java.lang.String"/>
  64461. <doc>
  64462. <![CDATA[Returns the named output OutputFormat.
  64463. @param conf job conf
  64464. @param namedOutput named output
  64465. @return namedOutput OutputFormat]]>
  64466. </doc>
  64467. </method>
  64468. <method name="getNamedOutputKeyClass" return="java.lang.Class"
  64469. abstract="false" native="false" synchronized="false"
  64470. static="true" final="false" visibility="public"
  64471. deprecated="not deprecated">
  64472. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  64473. <param name="namedOutput" type="java.lang.String"/>
  64474. <doc>
  64475. <![CDATA[Returns the key class for a named output.
  64476. @param conf job conf
  64477. @param namedOutput named output
  64478. @return class for the named output key]]>
  64479. </doc>
  64480. </method>
  64481. <method name="getNamedOutputValueClass" return="java.lang.Class"
  64482. abstract="false" native="false" synchronized="false"
  64483. static="true" final="false" visibility="public"
  64484. deprecated="not deprecated">
  64485. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  64486. <param name="namedOutput" type="java.lang.String"/>
  64487. <doc>
  64488. <![CDATA[Returns the value class for a named output.
  64489. @param conf job conf
  64490. @param namedOutput named output
  64491. @return class of named output value]]>
  64492. </doc>
  64493. </method>
  64494. <method name="addNamedOutput"
  64495. abstract="false" native="false" synchronized="false"
  64496. static="true" final="false" visibility="public"
  64497. deprecated="not deprecated">
  64498. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  64499. <param name="namedOutput" type="java.lang.String"/>
  64500. <param name="outputFormatClass" type="java.lang.Class"/>
  64501. <param name="keyClass" type="java.lang.Class"/>
  64502. <param name="valueClass" type="java.lang.Class"/>
  64503. <doc>
  64504. <![CDATA[Adds a named output for the job.
  64505. <p/>
  64506. @param conf job conf to add the named output
  64507. @param namedOutput named output name, it has to be a word, letters
  64508. and numbers only, cannot be the word 'part' as
  64509. that is reserved for the
  64510. default output.
  64511. @param outputFormatClass OutputFormat class.
  64512. @param keyClass key class
  64513. @param valueClass value class]]>
  64514. </doc>
  64515. </method>
  64516. <method name="addMultiNamedOutput"
  64517. abstract="false" native="false" synchronized="false"
  64518. static="true" final="false" visibility="public"
  64519. deprecated="not deprecated">
  64520. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  64521. <param name="namedOutput" type="java.lang.String"/>
  64522. <param name="outputFormatClass" type="java.lang.Class"/>
  64523. <param name="keyClass" type="java.lang.Class"/>
  64524. <param name="valueClass" type="java.lang.Class"/>
  64525. <doc>
  64526. <![CDATA[Adds a multi named output for the job.
  64527. <p/>
  64528. @param conf job conf to add the named output
  64529. @param namedOutput named output name, it has to be a word, letters
  64530. and numbers only, cannot be the word 'part' as
  64531. that is reserved for the
  64532. default output.
  64533. @param outputFormatClass OutputFormat class.
  64534. @param keyClass key class
  64535. @param valueClass value class]]>
  64536. </doc>
  64537. </method>
  64538. <method name="setCountersEnabled"
  64539. abstract="false" native="false" synchronized="false"
  64540. static="true" final="false" visibility="public"
  64541. deprecated="not deprecated">
  64542. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  64543. <param name="enabled" type="boolean"/>
  64544. <doc>
  64545. <![CDATA[Enables or disables counters for the named outputs.
  64546. <p/>
  64547. By default these counters are disabled.
  64548. <p/>
  64549. MultipleOutputs supports counters, by default the are disabled.
  64550. The counters group is the {@link MultipleOutputs} class name.
  64551. </p>
  64552. The names of the counters are the same as the named outputs. For multi
  64553. named outputs the name of the counter is the concatenation of the named
  64554. output, and underscore '_' and the multiname.
  64555. @param conf job conf to enableadd the named output.
  64556. @param enabled indicates if the counters will be enabled or not.]]>
  64557. </doc>
  64558. </method>
  64559. <method name="getCountersEnabled" return="boolean"
  64560. abstract="false" native="false" synchronized="false"
  64561. static="true" final="false" visibility="public"
  64562. deprecated="not deprecated">
  64563. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  64564. <doc>
  64565. <![CDATA[Returns if the counters for the named outputs are enabled or not.
  64566. <p/>
  64567. By default these counters are disabled.
  64568. <p/>
  64569. MultipleOutputs supports counters, by default the are disabled.
  64570. The counters group is the {@link MultipleOutputs} class name.
  64571. </p>
  64572. The names of the counters are the same as the named outputs. For multi
  64573. named outputs the name of the counter is the concatenation of the named
  64574. output, and underscore '_' and the multiname.
  64575. @param conf job conf to enableadd the named output.
  64576. @return TRUE if the counters are enabled, FALSE if they are disabled.]]>
  64577. </doc>
  64578. </method>
  64579. <method name="getNamedOutputs" return="java.util.Iterator"
  64580. abstract="false" native="false" synchronized="false"
  64581. static="false" final="false" visibility="public"
  64582. deprecated="not deprecated">
  64583. <doc>
  64584. <![CDATA[Returns iterator with the defined name outputs.
  64585. @return iterator with the defined named outputs]]>
  64586. </doc>
  64587. </method>
  64588. <method name="getCollector" return="org.apache.hadoop.mapred.OutputCollector"
  64589. abstract="false" native="false" synchronized="false"
  64590. static="false" final="false" visibility="public"
  64591. deprecated="not deprecated">
  64592. <param name="namedOutput" type="java.lang.String"/>
  64593. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  64594. <exception name="IOException" type="java.io.IOException"/>
  64595. <doc>
  64596. <![CDATA[Gets the output collector for a named output.
  64597. <p/>
  64598. @param namedOutput the named output name
  64599. @param reporter the reporter
  64600. @return the output collector for the given named output
  64601. @throws IOException thrown if output collector could not be created]]>
  64602. </doc>
  64603. </method>
  64604. <method name="getCollector" return="org.apache.hadoop.mapred.OutputCollector"
  64605. abstract="false" native="false" synchronized="false"
  64606. static="false" final="false" visibility="public"
  64607. deprecated="not deprecated">
  64608. <param name="namedOutput" type="java.lang.String"/>
  64609. <param name="multiName" type="java.lang.String"/>
  64610. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  64611. <exception name="IOException" type="java.io.IOException"/>
  64612. <doc>
  64613. <![CDATA[Gets the output collector for a multi named output.
  64614. <p/>
  64615. @param namedOutput the named output name
  64616. @param multiName the multi name part
  64617. @param reporter the reporter
  64618. @return the output collector for the given named output
  64619. @throws IOException thrown if output collector could not be created]]>
  64620. </doc>
  64621. </method>
  64622. <method name="close"
  64623. abstract="false" native="false" synchronized="false"
  64624. static="false" final="false" visibility="public"
  64625. deprecated="not deprecated">
  64626. <exception name="IOException" type="java.io.IOException"/>
  64627. <doc>
  64628. <![CDATA[Closes all the opened named outputs.
  64629. <p/>
  64630. If overriden subclasses must invoke <code>super.close()</code> at the
  64631. end of their <code>close()</code>
  64632. @throws java.io.IOException thrown if any of the MultipleOutput files
  64633. could not be closed properly.]]>
  64634. </doc>
  64635. </method>
  64636. <doc>
  64637. <![CDATA[The MultipleOutputs class simplifies writting to additional outputs other
  64638. than the job default output via the <code>OutputCollector</code> passed to
  64639. the <code>map()</code> and <code>reduce()</code> methods of the
  64640. <code>Mapper</code> and <code>Reducer</code> implementations.
  64641. <p/>
  64642. Each additional output, or named output, may be configured with its own
  64643. <code>OutputFormat</code>, with its own key class and with its own value
  64644. class.
  64645. <p/>
  64646. A named output can be a single file or a multi file. The later is refered as
  64647. a multi named output.
  64648. <p/>
  64649. A multi named output is an unbound set of files all sharing the same
  64650. <code>OutputFormat</code>, key class and value class configuration.
  64651. <p/>
  64652. When named outputs are used within a <code>Mapper</code> implementation,
  64653. key/values written to a name output are not part of the reduce phase, only
  64654. key/values written to the job <code>OutputCollector</code> are part of the
  64655. reduce phase.
  64656. <p/>
  64657. MultipleOutputs supports counters, by default the are disabled. The counters
  64658. group is the {@link MultipleOutputs} class name.
  64659. </p>
  64660. The names of the counters are the same as the named outputs. For multi
  64661. named outputs the name of the counter is the concatenation of the named
  64662. output, and underscore '_' and the multiname.
  64663. <p/>
  64664. Job configuration usage pattern is:
  64665. <pre>
  64666. JobConf conf = new JobConf();
  64667. conf.setInputPath(inDir);
  64668. FileOutputFormat.setOutputPath(conf, outDir);
  64669. conf.setMapperClass(MOMap.class);
  64670. conf.setReducerClass(MOReduce.class);
  64671. ...
  64672. // Defines additional single text based output 'text' for the job
  64673. MultipleOutputs.addNamedOutput(conf, "text", TextOutputFormat.class,
  64674. LongWritable.class, Text.class);
  64675. // Defines additional multi sequencefile based output 'sequence' for the
  64676. // job
  64677. MultipleOutputs.addMultiNamedOutput(conf, "seq",
  64678. SequenceFileOutputFormat.class,
  64679. LongWritable.class, Text.class);
  64680. ...
  64681. JobClient jc = new JobClient();
  64682. RunningJob job = jc.submitJob(conf);
  64683. ...
  64684. </pre>
  64685. <p/>
  64686. Job configuration usage pattern is:
  64687. <pre>
  64688. public class MOReduce implements
  64689. Reducer&lt;WritableComparable, Writable&gt; {
  64690. private MultipleOutputs mos;
  64691. public void configure(JobConf conf) {
  64692. ...
  64693. mos = new MultipleOutputs(conf);
  64694. }
  64695. public void reduce(WritableComparable key, Iterator&lt;Writable&gt; values,
  64696. OutputCollector output, Reporter reporter)
  64697. throws IOException {
  64698. ...
  64699. mos.getCollector("text", reporter).collect(key, new Text("Hello"));
  64700. mos.getCollector("seq", "A", reporter).collect(key, new Text("Bye"));
  64701. mos.getCollector("seq", "B", reporter).collect(key, new Text("Chau"));
  64702. ...
  64703. }
  64704. public void close() throws IOException {
  64705. mos.close();
  64706. ...
  64707. }
  64708. }
  64709. </pre>]]>
  64710. </doc>
  64711. </class>
  64712. <!-- end class org.apache.hadoop.mapred.lib.MultipleOutputs -->
  64713. <!-- start class org.apache.hadoop.mapred.lib.MultipleSequenceFileOutputFormat -->
  64714. <class name="MultipleSequenceFileOutputFormat" extends="org.apache.hadoop.mapred.lib.MultipleOutputFormat"
  64715. abstract="false"
  64716. static="false" final="false" visibility="public"
  64717. deprecated="not deprecated">
  64718. <constructor name="MultipleSequenceFileOutputFormat"
  64719. static="false" final="false" visibility="public"
  64720. deprecated="not deprecated">
  64721. </constructor>
  64722. <method name="getBaseRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  64723. abstract="false" native="false" synchronized="false"
  64724. static="false" final="false" visibility="protected"
  64725. deprecated="not deprecated">
  64726. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  64727. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  64728. <param name="name" type="java.lang.String"/>
  64729. <param name="arg3" type="org.apache.hadoop.util.Progressable"/>
  64730. <exception name="IOException" type="java.io.IOException"/>
  64731. </method>
  64732. <doc>
  64733. <![CDATA[This class extends the MultipleOutputFormat, allowing to write the output data
  64734. to different output files in sequence file output format.]]>
  64735. </doc>
  64736. </class>
  64737. <!-- end class org.apache.hadoop.mapred.lib.MultipleSequenceFileOutputFormat -->
  64738. <!-- start class org.apache.hadoop.mapred.lib.MultipleTextOutputFormat -->
  64739. <class name="MultipleTextOutputFormat" extends="org.apache.hadoop.mapred.lib.MultipleOutputFormat"
  64740. abstract="false"
  64741. static="false" final="false" visibility="public"
  64742. deprecated="not deprecated">
  64743. <constructor name="MultipleTextOutputFormat"
  64744. static="false" final="false" visibility="public"
  64745. deprecated="not deprecated">
  64746. </constructor>
  64747. <method name="getBaseRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  64748. abstract="false" native="false" synchronized="false"
  64749. static="false" final="false" visibility="protected"
  64750. deprecated="not deprecated">
  64751. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  64752. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  64753. <param name="name" type="java.lang.String"/>
  64754. <param name="arg3" type="org.apache.hadoop.util.Progressable"/>
  64755. <exception name="IOException" type="java.io.IOException"/>
  64756. </method>
  64757. <doc>
  64758. <![CDATA[This class extends the MultipleOutputFormat, allowing to write the output
  64759. data to different output files in Text output format.]]>
  64760. </doc>
  64761. </class>
  64762. <!-- end class org.apache.hadoop.mapred.lib.MultipleTextOutputFormat -->
  64763. <!-- start class org.apache.hadoop.mapred.lib.MultithreadedMapRunner -->
  64764. <class name="MultithreadedMapRunner" extends="java.lang.Object"
  64765. abstract="false"
  64766. static="false" final="false" visibility="public"
  64767. deprecated="not deprecated">
  64768. <implements name="org.apache.hadoop.mapred.MapRunnable"/>
  64769. <constructor name="MultithreadedMapRunner"
  64770. static="false" final="false" visibility="public"
  64771. deprecated="not deprecated">
  64772. </constructor>
  64773. <method name="configure"
  64774. abstract="false" native="false" synchronized="false"
  64775. static="false" final="false" visibility="public"
  64776. deprecated="not deprecated">
  64777. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  64778. </method>
  64779. <method name="run"
  64780. abstract="false" native="false" synchronized="false"
  64781. static="false" final="false" visibility="public"
  64782. deprecated="not deprecated">
  64783. <param name="input" type="org.apache.hadoop.mapred.RecordReader"/>
  64784. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  64785. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  64786. <exception name="IOException" type="java.io.IOException"/>
  64787. </method>
  64788. <doc>
  64789. <![CDATA[Multithreaded implementation for @link org.apache.hadoop.mapred.MapRunnable.
  64790. <p>
  64791. It can be used instead of the default implementation,
  64792. @link org.apache.hadoop.mapred.MapRunner, when the Map operation is not CPU
  64793. bound in order to improve throughput.
  64794. <p>
  64795. Map implementations using this MapRunnable must be thread-safe.
  64796. <p>
  64797. The Map-Reduce job has to be configured to use this MapRunnable class (using
  64798. the JobConf.setMapRunnerClass method) and
  64799. the number of thread the thread-pool can use with the
  64800. <code>mapred.map.multithreadedrunner.threads</code> property, its default
  64801. value is 10 threads.
  64802. <p>]]>
  64803. </doc>
  64804. </class>
  64805. <!-- end class org.apache.hadoop.mapred.lib.MultithreadedMapRunner -->
  64806. <!-- start class org.apache.hadoop.mapred.lib.NLineInputFormat -->
  64807. <class name="NLineInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat"
  64808. abstract="false"
  64809. static="false" final="false" visibility="public"
  64810. deprecated="not deprecated">
  64811. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  64812. <constructor name="NLineInputFormat"
  64813. static="false" final="false" visibility="public"
  64814. deprecated="not deprecated">
  64815. </constructor>
  64816. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  64817. abstract="false" native="false" synchronized="false"
  64818. static="false" final="false" visibility="public"
  64819. deprecated="not deprecated">
  64820. <param name="genericSplit" type="org.apache.hadoop.mapred.InputSplit"/>
  64821. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  64822. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  64823. <exception name="IOException" type="java.io.IOException"/>
  64824. </method>
  64825. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  64826. abstract="false" native="false" synchronized="false"
  64827. static="false" final="false" visibility="public"
  64828. deprecated="not deprecated">
  64829. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  64830. <param name="numSplits" type="int"/>
  64831. <exception name="IOException" type="java.io.IOException"/>
  64832. <doc>
  64833. <![CDATA[Logically splits the set of input files for the job, splits N lines
  64834. of the input as one split.
  64835. @see org.apache.hadoop.mapred.FileInputFormat#getSplits(JobConf, int)]]>
  64836. </doc>
  64837. </method>
  64838. <method name="createFileSplit" return="org.apache.hadoop.mapred.FileSplit"
  64839. abstract="false" native="false" synchronized="false"
  64840. static="true" final="false" visibility="protected"
  64841. deprecated="not deprecated">
  64842. <param name="fileName" type="org.apache.hadoop.fs.Path"/>
  64843. <param name="begin" type="long"/>
  64844. <param name="length" type="long"/>
  64845. <doc>
  64846. <![CDATA[NLineInputFormat uses LineRecordReader, which always reads
  64847. (and consumes) at least one character out of its upper split
  64848. boundary. So to make sure that each mapper gets N lines, we
  64849. move back the upper split limits of each split
  64850. by one character here.
  64851. @param fileName Path of file
  64852. @param begin the position of the first byte in the file to process
  64853. @param length number of bytes in InputSplit
  64854. @return FileSplit]]>
  64855. </doc>
  64856. </method>
  64857. <method name="configure"
  64858. abstract="false" native="false" synchronized="false"
  64859. static="false" final="false" visibility="public"
  64860. deprecated="not deprecated">
  64861. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  64862. </method>
  64863. <doc>
  64864. <![CDATA[NLineInputFormat which splits N lines of input as one split.
  64865. In many "pleasantly" parallel applications, each process/mapper
  64866. processes the same input file (s), but with computations are
  64867. controlled by different parameters.(Referred to as "parameter sweeps").
  64868. One way to achieve this, is to specify a set of parameters
  64869. (one set per line) as input in a control file
  64870. (which is the input path to the map-reduce application,
  64871. where as the input dataset is specified
  64872. via a config variable in JobConf.).
  64873. The NLineInputFormat can be used in such applications, that splits
  64874. the input file such that by default, one line is fed as
  64875. a value to one map task, and key is the offset.
  64876. i.e. (k,v) is (LongWritable, Text).
  64877. The location hints will span the whole mapred cluster.]]>
  64878. </doc>
  64879. </class>
  64880. <!-- end class org.apache.hadoop.mapred.lib.NLineInputFormat -->
  64881. <!-- start class org.apache.hadoop.mapred.lib.NullOutputFormat -->
  64882. <class name="NullOutputFormat" extends="java.lang.Object"
  64883. abstract="false"
  64884. static="false" final="false" visibility="public"
  64885. deprecated="not deprecated">
  64886. <implements name="org.apache.hadoop.mapred.OutputFormat"/>
  64887. <constructor name="NullOutputFormat"
  64888. static="false" final="false" visibility="public"
  64889. deprecated="not deprecated">
  64890. </constructor>
  64891. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  64892. abstract="false" native="false" synchronized="false"
  64893. static="false" final="false" visibility="public"
  64894. deprecated="not deprecated">
  64895. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  64896. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  64897. <param name="name" type="java.lang.String"/>
  64898. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  64899. </method>
  64900. <method name="checkOutputSpecs"
  64901. abstract="false" native="false" synchronized="false"
  64902. static="false" final="false" visibility="public"
  64903. deprecated="not deprecated">
  64904. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  64905. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  64906. </method>
  64907. <doc>
  64908. <![CDATA[Consume all outputs and put them in /dev/null.]]>
  64909. </doc>
  64910. </class>
  64911. <!-- end class org.apache.hadoop.mapred.lib.NullOutputFormat -->
  64912. <!-- start class org.apache.hadoop.mapred.lib.RegexMapper -->
  64913. <class name="RegexMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  64914. abstract="false"
  64915. static="false" final="false" visibility="public"
  64916. deprecated="not deprecated">
  64917. <implements name="org.apache.hadoop.mapred.Mapper"/>
  64918. <constructor name="RegexMapper"
  64919. static="false" final="false" visibility="public"
  64920. deprecated="not deprecated">
  64921. </constructor>
  64922. <method name="configure"
  64923. abstract="false" native="false" synchronized="false"
  64924. static="false" final="false" visibility="public"
  64925. deprecated="not deprecated">
  64926. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  64927. </method>
  64928. <method name="map"
  64929. abstract="false" native="false" synchronized="false"
  64930. static="false" final="false" visibility="public"
  64931. deprecated="not deprecated">
  64932. <param name="key" type="java.lang.Object"/>
  64933. <param name="value" type="org.apache.hadoop.io.Text"/>
  64934. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  64935. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  64936. <exception name="IOException" type="java.io.IOException"/>
  64937. </method>
  64938. <doc>
  64939. <![CDATA[A {@link Mapper} that extracts text matching a regular expression.]]>
  64940. </doc>
  64941. </class>
  64942. <!-- end class org.apache.hadoop.mapred.lib.RegexMapper -->
  64943. <!-- start class org.apache.hadoop.mapred.lib.TokenCountMapper -->
  64944. <class name="TokenCountMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  64945. abstract="false"
  64946. static="false" final="false" visibility="public"
  64947. deprecated="not deprecated">
  64948. <implements name="org.apache.hadoop.mapred.Mapper"/>
  64949. <constructor name="TokenCountMapper"
  64950. static="false" final="false" visibility="public"
  64951. deprecated="not deprecated">
  64952. </constructor>
  64953. <method name="map"
  64954. abstract="false" native="false" synchronized="false"
  64955. static="false" final="false" visibility="public"
  64956. deprecated="not deprecated">
  64957. <param name="key" type="java.lang.Object"/>
  64958. <param name="value" type="org.apache.hadoop.io.Text"/>
  64959. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  64960. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  64961. <exception name="IOException" type="java.io.IOException"/>
  64962. </method>
  64963. <doc>
  64964. <![CDATA[A {@link Mapper} that maps text values into <token,freq> pairs. Uses
  64965. {@link StringTokenizer} to break text into tokens.]]>
  64966. </doc>
  64967. </class>
  64968. <!-- end class org.apache.hadoop.mapred.lib.TokenCountMapper -->
  64969. <!-- start class org.apache.hadoop.mapred.lib.TotalOrderPartitioner -->
  64970. <class name="TotalOrderPartitioner" extends="java.lang.Object"
  64971. abstract="false"
  64972. static="false" final="false" visibility="public"
  64973. deprecated="not deprecated">
  64974. <implements name="org.apache.hadoop.mapred.Partitioner"/>
  64975. <constructor name="TotalOrderPartitioner"
  64976. static="false" final="false" visibility="public"
  64977. deprecated="not deprecated">
  64978. </constructor>
  64979. <method name="configure"
  64980. abstract="false" native="false" synchronized="false"
  64981. static="false" final="false" visibility="public"
  64982. deprecated="not deprecated">
  64983. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  64984. <doc>
  64985. <![CDATA[Read in the partition file and build indexing data structures.
  64986. If the keytype is {@link org.apache.hadoop.io.BinaryComparable} and
  64987. <tt>total.order.partitioner.natural.order</tt> is not false, a trie
  64988. of the first <tt>total.order.partitioner.max.trie.depth</tt>(2) + 1 bytes
  64989. will be built. Otherwise, keys will be located using a binary search of
  64990. the partition keyset using the {@link org.apache.hadoop.io.RawComparator}
  64991. defined for this job. The input file must be sorted with the same
  64992. comparator and contain {@link
  64993. org.apache.hadoop.mapred.JobConf#getNumReduceTasks} - 1 keys.]]>
  64994. </doc>
  64995. </method>
  64996. <method name="getPartition" return="int"
  64997. abstract="false" native="false" synchronized="false"
  64998. static="false" final="false" visibility="public"
  64999. deprecated="not deprecated">
  65000. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  65001. <param name="value" type="java.lang.Object"/>
  65002. <param name="numPartitions" type="int"/>
  65003. </method>
  65004. <method name="setPartitionFile"
  65005. abstract="false" native="false" synchronized="false"
  65006. static="true" final="false" visibility="public"
  65007. deprecated="not deprecated">
  65008. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  65009. <param name="p" type="org.apache.hadoop.fs.Path"/>
  65010. <doc>
  65011. <![CDATA[Set the path to the SequenceFile storing the sorted partition keyset.
  65012. It must be the case that for <tt>R</tt> reduces, there are <tt>R-1</tt>
  65013. keys in the SequenceFile.]]>
  65014. </doc>
  65015. </method>
  65016. <method name="getPartitionFile" return="java.lang.String"
  65017. abstract="false" native="false" synchronized="false"
  65018. static="true" final="false" visibility="public"
  65019. deprecated="not deprecated">
  65020. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  65021. <doc>
  65022. <![CDATA[Get the path to the SequenceFile storing the sorted partition keyset.
  65023. @see #setPartitionFile(JobConf,Path)]]>
  65024. </doc>
  65025. </method>
  65026. <field name="DEFAULT_PATH" type="java.lang.String"
  65027. transient="false" volatile="false"
  65028. static="true" final="true" visibility="public"
  65029. deprecated="not deprecated">
  65030. </field>
  65031. <doc>
  65032. <![CDATA[Partitioner effecting a total order by reading split points from
  65033. an externally generated source.]]>
  65034. </doc>
  65035. </class>
  65036. <!-- end class org.apache.hadoop.mapred.lib.TotalOrderPartitioner -->
  65037. </package>
  65038. <package name="org.apache.hadoop.mapred.lib.aggregate">
  65039. <!-- start class org.apache.hadoop.mapred.lib.aggregate.DoubleValueSum -->
  65040. <class name="DoubleValueSum" extends="java.lang.Object"
  65041. abstract="false"
  65042. static="false" final="false" visibility="public"
  65043. deprecated="not deprecated">
  65044. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  65045. <constructor name="DoubleValueSum"
  65046. static="false" final="false" visibility="public"
  65047. deprecated="not deprecated">
  65048. <doc>
  65049. <![CDATA[The default constructor]]>
  65050. </doc>
  65051. </constructor>
  65052. <method name="addNextValue"
  65053. abstract="false" native="false" synchronized="false"
  65054. static="false" final="false" visibility="public"
  65055. deprecated="not deprecated">
  65056. <param name="val" type="java.lang.Object"/>
  65057. <doc>
  65058. <![CDATA[add a value to the aggregator
  65059. @param val
  65060. an object whose string representation represents a double value.]]>
  65061. </doc>
  65062. </method>
  65063. <method name="addNextValue"
  65064. abstract="false" native="false" synchronized="false"
  65065. static="false" final="false" visibility="public"
  65066. deprecated="not deprecated">
  65067. <param name="val" type="double"/>
  65068. <doc>
  65069. <![CDATA[add a value to the aggregator
  65070. @param val
  65071. a double value.]]>
  65072. </doc>
  65073. </method>
  65074. <method name="getReport" return="java.lang.String"
  65075. abstract="false" native="false" synchronized="false"
  65076. static="false" final="false" visibility="public"
  65077. deprecated="not deprecated">
  65078. <doc>
  65079. <![CDATA[@return the string representation of the aggregated value]]>
  65080. </doc>
  65081. </method>
  65082. <method name="getSum" return="double"
  65083. abstract="false" native="false" synchronized="false"
  65084. static="false" final="false" visibility="public"
  65085. deprecated="not deprecated">
  65086. <doc>
  65087. <![CDATA[@return the aggregated value]]>
  65088. </doc>
  65089. </method>
  65090. <method name="reset"
  65091. abstract="false" native="false" synchronized="false"
  65092. static="false" final="false" visibility="public"
  65093. deprecated="not deprecated">
  65094. <doc>
  65095. <![CDATA[reset the aggregator]]>
  65096. </doc>
  65097. </method>
  65098. <method name="getCombinerOutput" return="java.util.ArrayList"
  65099. abstract="false" native="false" synchronized="false"
  65100. static="false" final="false" visibility="public"
  65101. deprecated="not deprecated">
  65102. <doc>
  65103. <![CDATA[@return return an array of one element. The element is a string
  65104. representation of the aggregated value. The return value is
  65105. expected to be used by the a combiner.]]>
  65106. </doc>
  65107. </method>
  65108. <doc>
  65109. <![CDATA[This class implements a value aggregator that sums up a sequence of double
  65110. values.]]>
  65111. </doc>
  65112. </class>
  65113. <!-- end class org.apache.hadoop.mapred.lib.aggregate.DoubleValueSum -->
  65114. <!-- start class org.apache.hadoop.mapred.lib.aggregate.LongValueMax -->
  65115. <class name="LongValueMax" extends="java.lang.Object"
  65116. abstract="false"
  65117. static="false" final="false" visibility="public"
  65118. deprecated="not deprecated">
  65119. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  65120. <constructor name="LongValueMax"
  65121. static="false" final="false" visibility="public"
  65122. deprecated="not deprecated">
  65123. <doc>
  65124. <![CDATA[the default constructor]]>
  65125. </doc>
  65126. </constructor>
  65127. <method name="addNextValue"
  65128. abstract="false" native="false" synchronized="false"
  65129. static="false" final="false" visibility="public"
  65130. deprecated="not deprecated">
  65131. <param name="val" type="java.lang.Object"/>
  65132. <doc>
  65133. <![CDATA[add a value to the aggregator
  65134. @param val
  65135. an object whose string representation represents a long value.]]>
  65136. </doc>
  65137. </method>
  65138. <method name="addNextValue"
  65139. abstract="false" native="false" synchronized="false"
  65140. static="false" final="false" visibility="public"
  65141. deprecated="not deprecated">
  65142. <param name="newVal" type="long"/>
  65143. <doc>
  65144. <![CDATA[add a value to the aggregator
  65145. @param newVal
  65146. a long value.]]>
  65147. </doc>
  65148. </method>
  65149. <method name="getVal" return="long"
  65150. abstract="false" native="false" synchronized="false"
  65151. static="false" final="false" visibility="public"
  65152. deprecated="not deprecated">
  65153. <doc>
  65154. <![CDATA[@return the aggregated value]]>
  65155. </doc>
  65156. </method>
  65157. <method name="getReport" return="java.lang.String"
  65158. abstract="false" native="false" synchronized="false"
  65159. static="false" final="false" visibility="public"
  65160. deprecated="not deprecated">
  65161. <doc>
  65162. <![CDATA[@return the string representation of the aggregated value]]>
  65163. </doc>
  65164. </method>
  65165. <method name="reset"
  65166. abstract="false" native="false" synchronized="false"
  65167. static="false" final="false" visibility="public"
  65168. deprecated="not deprecated">
  65169. <doc>
  65170. <![CDATA[reset the aggregator]]>
  65171. </doc>
  65172. </method>
  65173. <method name="getCombinerOutput" return="java.util.ArrayList"
  65174. abstract="false" native="false" synchronized="false"
  65175. static="false" final="false" visibility="public"
  65176. deprecated="not deprecated">
  65177. <doc>
  65178. <![CDATA[@return return an array of one element. The element is a string
  65179. representation of the aggregated value. The return value is
  65180. expected to be used by the a combiner.]]>
  65181. </doc>
  65182. </method>
  65183. <doc>
  65184. <![CDATA[This class implements a value aggregator that maintain the maximum of
  65185. a sequence of long values.]]>
  65186. </doc>
  65187. </class>
  65188. <!-- end class org.apache.hadoop.mapred.lib.aggregate.LongValueMax -->
  65189. <!-- start class org.apache.hadoop.mapred.lib.aggregate.LongValueMin -->
  65190. <class name="LongValueMin" extends="java.lang.Object"
  65191. abstract="false"
  65192. static="false" final="false" visibility="public"
  65193. deprecated="not deprecated">
  65194. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  65195. <constructor name="LongValueMin"
  65196. static="false" final="false" visibility="public"
  65197. deprecated="not deprecated">
  65198. <doc>
  65199. <![CDATA[the default constructor]]>
  65200. </doc>
  65201. </constructor>
  65202. <method name="addNextValue"
  65203. abstract="false" native="false" synchronized="false"
  65204. static="false" final="false" visibility="public"
  65205. deprecated="not deprecated">
  65206. <param name="val" type="java.lang.Object"/>
  65207. <doc>
  65208. <![CDATA[add a value to the aggregator
  65209. @param val
  65210. an object whose string representation represents a long value.]]>
  65211. </doc>
  65212. </method>
  65213. <method name="addNextValue"
  65214. abstract="false" native="false" synchronized="false"
  65215. static="false" final="false" visibility="public"
  65216. deprecated="not deprecated">
  65217. <param name="newVal" type="long"/>
  65218. <doc>
  65219. <![CDATA[add a value to the aggregator
  65220. @param newVal
  65221. a long value.]]>
  65222. </doc>
  65223. </method>
  65224. <method name="getVal" return="long"
  65225. abstract="false" native="false" synchronized="false"
  65226. static="false" final="false" visibility="public"
  65227. deprecated="not deprecated">
  65228. <doc>
  65229. <![CDATA[@return the aggregated value]]>
  65230. </doc>
  65231. </method>
  65232. <method name="getReport" return="java.lang.String"
  65233. abstract="false" native="false" synchronized="false"
  65234. static="false" final="false" visibility="public"
  65235. deprecated="not deprecated">
  65236. <doc>
  65237. <![CDATA[@return the string representation of the aggregated value]]>
  65238. </doc>
  65239. </method>
  65240. <method name="reset"
  65241. abstract="false" native="false" synchronized="false"
  65242. static="false" final="false" visibility="public"
  65243. deprecated="not deprecated">
  65244. <doc>
  65245. <![CDATA[reset the aggregator]]>
  65246. </doc>
  65247. </method>
  65248. <method name="getCombinerOutput" return="java.util.ArrayList"
  65249. abstract="false" native="false" synchronized="false"
  65250. static="false" final="false" visibility="public"
  65251. deprecated="not deprecated">
  65252. <doc>
  65253. <![CDATA[@return return an array of one element. The element is a string
  65254. representation of the aggregated value. The return value is
  65255. expected to be used by the a combiner.]]>
  65256. </doc>
  65257. </method>
  65258. <doc>
  65259. <![CDATA[This class implements a value aggregator that maintain the minimum of
  65260. a sequence of long values.]]>
  65261. </doc>
  65262. </class>
  65263. <!-- end class org.apache.hadoop.mapred.lib.aggregate.LongValueMin -->
  65264. <!-- start class org.apache.hadoop.mapred.lib.aggregate.LongValueSum -->
  65265. <class name="LongValueSum" extends="java.lang.Object"
  65266. abstract="false"
  65267. static="false" final="false" visibility="public"
  65268. deprecated="not deprecated">
  65269. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  65270. <constructor name="LongValueSum"
  65271. static="false" final="false" visibility="public"
  65272. deprecated="not deprecated">
  65273. <doc>
  65274. <![CDATA[the default constructor]]>
  65275. </doc>
  65276. </constructor>
  65277. <method name="addNextValue"
  65278. abstract="false" native="false" synchronized="false"
  65279. static="false" final="false" visibility="public"
  65280. deprecated="not deprecated">
  65281. <param name="val" type="java.lang.Object"/>
  65282. <doc>
  65283. <![CDATA[add a value to the aggregator
  65284. @param val
  65285. an object whose string representation represents a long value.]]>
  65286. </doc>
  65287. </method>
  65288. <method name="addNextValue"
  65289. abstract="false" native="false" synchronized="false"
  65290. static="false" final="false" visibility="public"
  65291. deprecated="not deprecated">
  65292. <param name="val" type="long"/>
  65293. <doc>
  65294. <![CDATA[add a value to the aggregator
  65295. @param val
  65296. a long value.]]>
  65297. </doc>
  65298. </method>
  65299. <method name="getSum" return="long"
  65300. abstract="false" native="false" synchronized="false"
  65301. static="false" final="false" visibility="public"
  65302. deprecated="not deprecated">
  65303. <doc>
  65304. <![CDATA[@return the aggregated value]]>
  65305. </doc>
  65306. </method>
  65307. <method name="getReport" return="java.lang.String"
  65308. abstract="false" native="false" synchronized="false"
  65309. static="false" final="false" visibility="public"
  65310. deprecated="not deprecated">
  65311. <doc>
  65312. <![CDATA[@return the string representation of the aggregated value]]>
  65313. </doc>
  65314. </method>
  65315. <method name="reset"
  65316. abstract="false" native="false" synchronized="false"
  65317. static="false" final="false" visibility="public"
  65318. deprecated="not deprecated">
  65319. <doc>
  65320. <![CDATA[reset the aggregator]]>
  65321. </doc>
  65322. </method>
  65323. <method name="getCombinerOutput" return="java.util.ArrayList"
  65324. abstract="false" native="false" synchronized="false"
  65325. static="false" final="false" visibility="public"
  65326. deprecated="not deprecated">
  65327. <doc>
  65328. <![CDATA[@return return an array of one element. The element is a string
  65329. representation of the aggregated value. The return value is
  65330. expected to be used by the a combiner.]]>
  65331. </doc>
  65332. </method>
  65333. <doc>
  65334. <![CDATA[This class implements a value aggregator that sums up
  65335. a sequence of long values.]]>
  65336. </doc>
  65337. </class>
  65338. <!-- end class org.apache.hadoop.mapred.lib.aggregate.LongValueSum -->
  65339. <!-- start class org.apache.hadoop.mapred.lib.aggregate.StringValueMax -->
  65340. <class name="StringValueMax" extends="java.lang.Object"
  65341. abstract="false"
  65342. static="false" final="false" visibility="public"
  65343. deprecated="not deprecated">
  65344. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  65345. <constructor name="StringValueMax"
  65346. static="false" final="false" visibility="public"
  65347. deprecated="not deprecated">
  65348. <doc>
  65349. <![CDATA[the default constructor]]>
  65350. </doc>
  65351. </constructor>
  65352. <method name="addNextValue"
  65353. abstract="false" native="false" synchronized="false"
  65354. static="false" final="false" visibility="public"
  65355. deprecated="not deprecated">
  65356. <param name="val" type="java.lang.Object"/>
  65357. <doc>
  65358. <![CDATA[add a value to the aggregator
  65359. @param val
  65360. a string.]]>
  65361. </doc>
  65362. </method>
  65363. <method name="getVal" return="java.lang.String"
  65364. abstract="false" native="false" synchronized="false"
  65365. static="false" final="false" visibility="public"
  65366. deprecated="not deprecated">
  65367. <doc>
  65368. <![CDATA[@return the aggregated value]]>
  65369. </doc>
  65370. </method>
  65371. <method name="getReport" return="java.lang.String"
  65372. abstract="false" native="false" synchronized="false"
  65373. static="false" final="false" visibility="public"
  65374. deprecated="not deprecated">
  65375. <doc>
  65376. <![CDATA[@return the string representation of the aggregated value]]>
  65377. </doc>
  65378. </method>
  65379. <method name="reset"
  65380. abstract="false" native="false" synchronized="false"
  65381. static="false" final="false" visibility="public"
  65382. deprecated="not deprecated">
  65383. <doc>
  65384. <![CDATA[reset the aggregator]]>
  65385. </doc>
  65386. </method>
  65387. <method name="getCombinerOutput" return="java.util.ArrayList"
  65388. abstract="false" native="false" synchronized="false"
  65389. static="false" final="false" visibility="public"
  65390. deprecated="not deprecated">
  65391. <doc>
  65392. <![CDATA[@return return an array of one element. The element is a string
  65393. representation of the aggregated value. The return value is
  65394. expected to be used by the a combiner.]]>
  65395. </doc>
  65396. </method>
  65397. <doc>
  65398. <![CDATA[This class implements a value aggregator that maintain the biggest of
  65399. a sequence of strings.]]>
  65400. </doc>
  65401. </class>
  65402. <!-- end class org.apache.hadoop.mapred.lib.aggregate.StringValueMax -->
  65403. <!-- start class org.apache.hadoop.mapred.lib.aggregate.StringValueMin -->
  65404. <class name="StringValueMin" extends="java.lang.Object"
  65405. abstract="false"
  65406. static="false" final="false" visibility="public"
  65407. deprecated="not deprecated">
  65408. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  65409. <constructor name="StringValueMin"
  65410. static="false" final="false" visibility="public"
  65411. deprecated="not deprecated">
  65412. <doc>
  65413. <![CDATA[the default constructor]]>
  65414. </doc>
  65415. </constructor>
  65416. <method name="addNextValue"
  65417. abstract="false" native="false" synchronized="false"
  65418. static="false" final="false" visibility="public"
  65419. deprecated="not deprecated">
  65420. <param name="val" type="java.lang.Object"/>
  65421. <doc>
  65422. <![CDATA[add a value to the aggregator
  65423. @param val
  65424. a string.]]>
  65425. </doc>
  65426. </method>
  65427. <method name="getVal" return="java.lang.String"
  65428. abstract="false" native="false" synchronized="false"
  65429. static="false" final="false" visibility="public"
  65430. deprecated="not deprecated">
  65431. <doc>
  65432. <![CDATA[@return the aggregated value]]>
  65433. </doc>
  65434. </method>
  65435. <method name="getReport" return="java.lang.String"
  65436. abstract="false" native="false" synchronized="false"
  65437. static="false" final="false" visibility="public"
  65438. deprecated="not deprecated">
  65439. <doc>
  65440. <![CDATA[@return the string representation of the aggregated value]]>
  65441. </doc>
  65442. </method>
  65443. <method name="reset"
  65444. abstract="false" native="false" synchronized="false"
  65445. static="false" final="false" visibility="public"
  65446. deprecated="not deprecated">
  65447. <doc>
  65448. <![CDATA[reset the aggregator]]>
  65449. </doc>
  65450. </method>
  65451. <method name="getCombinerOutput" return="java.util.ArrayList"
  65452. abstract="false" native="false" synchronized="false"
  65453. static="false" final="false" visibility="public"
  65454. deprecated="not deprecated">
  65455. <doc>
  65456. <![CDATA[@return return an array of one element. The element is a string
  65457. representation of the aggregated value. The return value is
  65458. expected to be used by the a combiner.]]>
  65459. </doc>
  65460. </method>
  65461. <doc>
  65462. <![CDATA[This class implements a value aggregator that maintain the smallest of
  65463. a sequence of strings.]]>
  65464. </doc>
  65465. </class>
  65466. <!-- end class org.apache.hadoop.mapred.lib.aggregate.StringValueMin -->
  65467. <!-- start class org.apache.hadoop.mapred.lib.aggregate.UniqValueCount -->
  65468. <class name="UniqValueCount" extends="java.lang.Object"
  65469. abstract="false"
  65470. static="false" final="false" visibility="public"
  65471. deprecated="not deprecated">
  65472. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  65473. <constructor name="UniqValueCount"
  65474. static="false" final="false" visibility="public"
  65475. deprecated="not deprecated">
  65476. <doc>
  65477. <![CDATA[the default constructor]]>
  65478. </doc>
  65479. </constructor>
  65480. <constructor name="UniqValueCount" type="long"
  65481. static="false" final="false" visibility="public"
  65482. deprecated="not deprecated">
  65483. <doc>
  65484. <![CDATA[constructor
  65485. @param maxNum the limit in the number of unique values to keep.]]>
  65486. </doc>
  65487. </constructor>
  65488. <method name="setMaxItems" return="long"
  65489. abstract="false" native="false" synchronized="false"
  65490. static="false" final="false" visibility="public"
  65491. deprecated="not deprecated">
  65492. <param name="n" type="long"/>
  65493. <doc>
  65494. <![CDATA[Set the limit on the number of unique values
  65495. @param n the desired limit on the number of unique values
  65496. @return the new limit on the number of unique values]]>
  65497. </doc>
  65498. </method>
  65499. <method name="addNextValue"
  65500. abstract="false" native="false" synchronized="false"
  65501. static="false" final="false" visibility="public"
  65502. deprecated="not deprecated">
  65503. <param name="val" type="java.lang.Object"/>
  65504. <doc>
  65505. <![CDATA[add a value to the aggregator
  65506. @param val
  65507. an object.]]>
  65508. </doc>
  65509. </method>
  65510. <method name="getReport" return="java.lang.String"
  65511. abstract="false" native="false" synchronized="false"
  65512. static="false" final="false" visibility="public"
  65513. deprecated="not deprecated">
  65514. <doc>
  65515. <![CDATA[@return return the number of unique objects aggregated]]>
  65516. </doc>
  65517. </method>
  65518. <method name="getUniqueItems" return="java.util.Set"
  65519. abstract="false" native="false" synchronized="false"
  65520. static="false" final="false" visibility="public"
  65521. deprecated="not deprecated">
  65522. <doc>
  65523. <![CDATA[@return the set of the unique objects]]>
  65524. </doc>
  65525. </method>
  65526. <method name="reset"
  65527. abstract="false" native="false" synchronized="false"
  65528. static="false" final="false" visibility="public"
  65529. deprecated="not deprecated">
  65530. <doc>
  65531. <![CDATA[reset the aggregator]]>
  65532. </doc>
  65533. </method>
  65534. <method name="getCombinerOutput" return="java.util.ArrayList"
  65535. abstract="false" native="false" synchronized="false"
  65536. static="false" final="false" visibility="public"
  65537. deprecated="not deprecated">
  65538. <doc>
  65539. <![CDATA[@return return an array of the unique objects. The return value is
  65540. expected to be used by the a combiner.]]>
  65541. </doc>
  65542. </method>
  65543. <doc>
  65544. <![CDATA[This class implements a value aggregator that dedupes a sequence of objects.]]>
  65545. </doc>
  65546. </class>
  65547. <!-- end class org.apache.hadoop.mapred.lib.aggregate.UniqValueCount -->
  65548. <!-- start class org.apache.hadoop.mapred.lib.aggregate.UserDefinedValueAggregatorDescriptor -->
  65549. <class name="UserDefinedValueAggregatorDescriptor" extends="java.lang.Object"
  65550. abstract="false"
  65551. static="false" final="false" visibility="public"
  65552. deprecated="not deprecated">
  65553. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorDescriptor"/>
  65554. <constructor name="UserDefinedValueAggregatorDescriptor" type="java.lang.String, org.apache.hadoop.mapred.JobConf"
  65555. static="false" final="false" visibility="public"
  65556. deprecated="not deprecated">
  65557. <doc>
  65558. <![CDATA[@param className the class name of the user defined descriptor class
  65559. @param job a configure object used for decriptor configuration]]>
  65560. </doc>
  65561. </constructor>
  65562. <method name="createInstance" return="java.lang.Object"
  65563. abstract="false" native="false" synchronized="false"
  65564. static="true" final="false" visibility="public"
  65565. deprecated="not deprecated">
  65566. <param name="className" type="java.lang.String"/>
  65567. <doc>
  65568. <![CDATA[Create an instance of the given class
  65569. @param className the name of the class
  65570. @return a dynamically created instance of the given class]]>
  65571. </doc>
  65572. </method>
  65573. <method name="generateKeyValPairs" return="java.util.ArrayList"
  65574. abstract="false" native="false" synchronized="false"
  65575. static="false" final="false" visibility="public"
  65576. deprecated="not deprecated">
  65577. <param name="key" type="java.lang.Object"/>
  65578. <param name="val" type="java.lang.Object"/>
  65579. <doc>
  65580. <![CDATA[Generate a list of aggregation-id/value pairs for the given key/value pairs
  65581. by delegating the invocation to the real object.
  65582. @param key
  65583. input key
  65584. @param val
  65585. input value
  65586. @return a list of aggregation id/value pairs. An aggregation id encodes an
  65587. aggregation type which is used to guide the way to aggregate the
  65588. value in the reduce/combiner phrase of an Aggregate based job.]]>
  65589. </doc>
  65590. </method>
  65591. <method name="toString" return="java.lang.String"
  65592. abstract="false" native="false" synchronized="false"
  65593. static="false" final="false" visibility="public"
  65594. deprecated="not deprecated">
  65595. <doc>
  65596. <![CDATA[@return the string representation of this object.]]>
  65597. </doc>
  65598. </method>
  65599. <method name="configure"
  65600. abstract="false" native="false" synchronized="false"
  65601. static="false" final="false" visibility="public"
  65602. deprecated="not deprecated">
  65603. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  65604. <doc>
  65605. <![CDATA[Do nothing.]]>
  65606. </doc>
  65607. </method>
  65608. <doc>
  65609. <![CDATA[This class implements a wrapper for a user defined value aggregator descriptor.
  65610. It servs two functions: One is to create an object of ValueAggregatorDescriptor from the
  65611. name of a user defined class that may be dynamically loaded. The other is to
  65612. deligate inviokations of generateKeyValPairs function to the created object.]]>
  65613. </doc>
  65614. </class>
  65615. <!-- end class org.apache.hadoop.mapred.lib.aggregate.UserDefinedValueAggregatorDescriptor -->
  65616. <!-- start interface org.apache.hadoop.mapred.lib.aggregate.ValueAggregator -->
  65617. <interface name="ValueAggregator" abstract="true"
  65618. static="false" final="false" visibility="public"
  65619. deprecated="not deprecated">
  65620. <method name="addNextValue"
  65621. abstract="false" native="false" synchronized="false"
  65622. static="false" final="false" visibility="public"
  65623. deprecated="not deprecated">
  65624. <param name="val" type="java.lang.Object"/>
  65625. <doc>
  65626. <![CDATA[add a value to the aggregator
  65627. @param val the value to be added]]>
  65628. </doc>
  65629. </method>
  65630. <method name="reset"
  65631. abstract="false" native="false" synchronized="false"
  65632. static="false" final="false" visibility="public"
  65633. deprecated="not deprecated">
  65634. <doc>
  65635. <![CDATA[reset the aggregator]]>
  65636. </doc>
  65637. </method>
  65638. <method name="getReport" return="java.lang.String"
  65639. abstract="false" native="false" synchronized="false"
  65640. static="false" final="false" visibility="public"
  65641. deprecated="not deprecated">
  65642. <doc>
  65643. <![CDATA[@return the string representation of the agregator]]>
  65644. </doc>
  65645. </method>
  65646. <method name="getCombinerOutput" return="java.util.ArrayList"
  65647. abstract="false" native="false" synchronized="false"
  65648. static="false" final="false" visibility="public"
  65649. deprecated="not deprecated">
  65650. <doc>
  65651. <![CDATA[@return an array of values as the outputs of the combiner.]]>
  65652. </doc>
  65653. </method>
  65654. <doc>
  65655. <![CDATA[This interface defines the minimal protocol for value aggregators.]]>
  65656. </doc>
  65657. </interface>
  65658. <!-- end interface org.apache.hadoop.mapred.lib.aggregate.ValueAggregator -->
  65659. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorBaseDescriptor -->
  65660. <class name="ValueAggregatorBaseDescriptor" extends="java.lang.Object"
  65661. abstract="false"
  65662. static="false" final="false" visibility="public"
  65663. deprecated="not deprecated">
  65664. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorDescriptor"/>
  65665. <constructor name="ValueAggregatorBaseDescriptor"
  65666. static="false" final="false" visibility="public"
  65667. deprecated="not deprecated">
  65668. </constructor>
  65669. <method name="generateEntry" return="java.util.Map.Entry"
  65670. abstract="false" native="false" synchronized="false"
  65671. static="true" final="false" visibility="public"
  65672. deprecated="not deprecated">
  65673. <param name="type" type="java.lang.String"/>
  65674. <param name="id" type="java.lang.String"/>
  65675. <param name="val" type="org.apache.hadoop.io.Text"/>
  65676. <doc>
  65677. <![CDATA[@param type the aggregation type
  65678. @param id the aggregation id
  65679. @param val the val associated with the id to be aggregated
  65680. @return an Entry whose key is the aggregation id prefixed with
  65681. the aggregation type.]]>
  65682. </doc>
  65683. </method>
  65684. <method name="generateValueAggregator" return="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"
  65685. abstract="false" native="false" synchronized="false"
  65686. static="true" final="false" visibility="public"
  65687. deprecated="not deprecated">
  65688. <param name="type" type="java.lang.String"/>
  65689. <doc>
  65690. <![CDATA[@param type the aggregation type
  65691. @return a value aggregator of the given type.]]>
  65692. </doc>
  65693. </method>
  65694. <method name="generateKeyValPairs" return="java.util.ArrayList"
  65695. abstract="false" native="false" synchronized="false"
  65696. static="false" final="false" visibility="public"
  65697. deprecated="not deprecated">
  65698. <param name="key" type="java.lang.Object"/>
  65699. <param name="val" type="java.lang.Object"/>
  65700. <doc>
  65701. <![CDATA[Generate 1 or 2 aggregation-id/value pairs for the given key/value pair.
  65702. The first id will be of type LONG_VALUE_SUM, with "record_count" as
  65703. its aggregation id. If the input is a file split,
  65704. the second id of the same type will be generated too, with the file name
  65705. as its aggregation id. This achieves the behavior of counting the total number
  65706. of records in the input data, and the number of records in each input file.
  65707. @param key
  65708. input key
  65709. @param val
  65710. input value
  65711. @return a list of aggregation id/value pairs. An aggregation id encodes an
  65712. aggregation type which is used to guide the way to aggregate the
  65713. value in the reduce/combiner phrase of an Aggregate based job.]]>
  65714. </doc>
  65715. </method>
  65716. <method name="configure"
  65717. abstract="false" native="false" synchronized="false"
  65718. static="false" final="false" visibility="public"
  65719. deprecated="not deprecated">
  65720. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  65721. <doc>
  65722. <![CDATA[get the input file name.
  65723. @param job a job configuration object]]>
  65724. </doc>
  65725. </method>
  65726. <field name="UNIQ_VALUE_COUNT" type="java.lang.String"
  65727. transient="false" volatile="false"
  65728. static="true" final="true" visibility="public"
  65729. deprecated="not deprecated">
  65730. </field>
  65731. <field name="LONG_VALUE_SUM" type="java.lang.String"
  65732. transient="false" volatile="false"
  65733. static="true" final="true" visibility="public"
  65734. deprecated="not deprecated">
  65735. </field>
  65736. <field name="DOUBLE_VALUE_SUM" type="java.lang.String"
  65737. transient="false" volatile="false"
  65738. static="true" final="true" visibility="public"
  65739. deprecated="not deprecated">
  65740. </field>
  65741. <field name="VALUE_HISTOGRAM" type="java.lang.String"
  65742. transient="false" volatile="false"
  65743. static="true" final="true" visibility="public"
  65744. deprecated="not deprecated">
  65745. </field>
  65746. <field name="LONG_VALUE_MAX" type="java.lang.String"
  65747. transient="false" volatile="false"
  65748. static="true" final="true" visibility="public"
  65749. deprecated="not deprecated">
  65750. </field>
  65751. <field name="LONG_VALUE_MIN" type="java.lang.String"
  65752. transient="false" volatile="false"
  65753. static="true" final="true" visibility="public"
  65754. deprecated="not deprecated">
  65755. </field>
  65756. <field name="STRING_VALUE_MAX" type="java.lang.String"
  65757. transient="false" volatile="false"
  65758. static="true" final="true" visibility="public"
  65759. deprecated="not deprecated">
  65760. </field>
  65761. <field name="STRING_VALUE_MIN" type="java.lang.String"
  65762. transient="false" volatile="false"
  65763. static="true" final="true" visibility="public"
  65764. deprecated="not deprecated">
  65765. </field>
  65766. <field name="inputFile" type="java.lang.String"
  65767. transient="false" volatile="false"
  65768. static="false" final="false" visibility="public"
  65769. deprecated="not deprecated">
  65770. </field>
  65771. <doc>
  65772. <![CDATA[This class implements the common functionalities of
  65773. the subclasses of ValueAggregatorDescriptor class.]]>
  65774. </doc>
  65775. </class>
  65776. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorBaseDescriptor -->
  65777. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorCombiner -->
  65778. <class name="ValueAggregatorCombiner" extends="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase"
  65779. abstract="false"
  65780. static="false" final="false" visibility="public"
  65781. deprecated="not deprecated">
  65782. <constructor name="ValueAggregatorCombiner"
  65783. static="false" final="false" visibility="public"
  65784. deprecated="not deprecated">
  65785. </constructor>
  65786. <method name="configure"
  65787. abstract="false" native="false" synchronized="false"
  65788. static="false" final="false" visibility="public"
  65789. deprecated="not deprecated">
  65790. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  65791. <doc>
  65792. <![CDATA[Combiner does not need to configure.]]>
  65793. </doc>
  65794. </method>
  65795. <method name="reduce"
  65796. abstract="false" native="false" synchronized="false"
  65797. static="false" final="false" visibility="public"
  65798. deprecated="not deprecated">
  65799. <param name="key" type="org.apache.hadoop.io.Text"/>
  65800. <param name="values" type="java.util.Iterator"/>
  65801. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  65802. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  65803. <exception name="IOException" type="java.io.IOException"/>
  65804. <doc>
  65805. <![CDATA[Combines values for a given key.
  65806. @param key the key is expected to be a Text object, whose prefix indicates
  65807. the type of aggregation to aggregate the values.
  65808. @param values the values to combine
  65809. @param output to collect combined values]]>
  65810. </doc>
  65811. </method>
  65812. <method name="close"
  65813. abstract="false" native="false" synchronized="false"
  65814. static="false" final="false" visibility="public"
  65815. deprecated="not deprecated">
  65816. <exception name="IOException" type="java.io.IOException"/>
  65817. <doc>
  65818. <![CDATA[Do nothing.]]>
  65819. </doc>
  65820. </method>
  65821. <method name="map"
  65822. abstract="false" native="false" synchronized="false"
  65823. static="false" final="false" visibility="public"
  65824. deprecated="not deprecated">
  65825. <param name="arg0" type="org.apache.hadoop.io.WritableComparable"/>
  65826. <param name="arg1" type="org.apache.hadoop.io.Writable"/>
  65827. <param name="arg2" type="org.apache.hadoop.mapred.OutputCollector"/>
  65828. <param name="arg3" type="org.apache.hadoop.mapred.Reporter"/>
  65829. <exception name="IOException" type="java.io.IOException"/>
  65830. <doc>
  65831. <![CDATA[Do nothing. Should not be called.]]>
  65832. </doc>
  65833. </method>
  65834. <doc>
  65835. <![CDATA[This class implements the generic combiner of Aggregate.]]>
  65836. </doc>
  65837. </class>
  65838. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorCombiner -->
  65839. <!-- start interface org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorDescriptor -->
  65840. <interface name="ValueAggregatorDescriptor" abstract="true"
  65841. static="false" final="false" visibility="public"
  65842. deprecated="not deprecated">
  65843. <method name="generateKeyValPairs" return="java.util.ArrayList"
  65844. abstract="false" native="false" synchronized="false"
  65845. static="false" final="false" visibility="public"
  65846. deprecated="not deprecated">
  65847. <param name="key" type="java.lang.Object"/>
  65848. <param name="val" type="java.lang.Object"/>
  65849. <doc>
  65850. <![CDATA[Generate a list of aggregation-id/value pairs for the given key/value pair.
  65851. This function is usually called by the mapper of an Aggregate based job.
  65852. @param key
  65853. input key
  65854. @param val
  65855. input value
  65856. @return a list of aggregation id/value pairs. An aggregation id encodes an
  65857. aggregation type which is used to guide the way to aggregate the
  65858. value in the reduce/combiner phrase of an Aggregate based job.]]>
  65859. </doc>
  65860. </method>
  65861. <method name="configure"
  65862. abstract="false" native="false" synchronized="false"
  65863. static="false" final="false" visibility="public"
  65864. deprecated="not deprecated">
  65865. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  65866. <doc>
  65867. <![CDATA[Configure the object
  65868. @param job
  65869. a JobConf object that may contain the information that can be used
  65870. to configure the object.]]>
  65871. </doc>
  65872. </method>
  65873. <field name="TYPE_SEPARATOR" type="java.lang.String"
  65874. transient="false" volatile="false"
  65875. static="true" final="true" visibility="public"
  65876. deprecated="not deprecated">
  65877. </field>
  65878. <field name="ONE" type="org.apache.hadoop.io.Text"
  65879. transient="false" volatile="false"
  65880. static="true" final="true" visibility="public"
  65881. deprecated="not deprecated">
  65882. </field>
  65883. <doc>
  65884. <![CDATA[This interface defines the contract a value aggregator descriptor must
  65885. support. Such a descriptor can be configured with a JobConf object. Its main
  65886. function is to generate a list of aggregation-id/value pairs. An aggregation
  65887. id encodes an aggregation type which is used to guide the way to aggregate
  65888. the value in the reduce/combiner phrase of an Aggregate based job.The mapper in
  65889. an Aggregate based map/reduce job may create one or more of
  65890. ValueAggregatorDescriptor objects at configuration time. For each input
  65891. key/value pair, the mapper will use those objects to create aggregation
  65892. id/value pairs.]]>
  65893. </doc>
  65894. </interface>
  65895. <!-- end interface org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorDescriptor -->
  65896. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJob -->
  65897. <class name="ValueAggregatorJob" extends="java.lang.Object"
  65898. abstract="false"
  65899. static="false" final="false" visibility="public"
  65900. deprecated="not deprecated">
  65901. <constructor name="ValueAggregatorJob"
  65902. static="false" final="false" visibility="public"
  65903. deprecated="not deprecated">
  65904. </constructor>
  65905. <method name="createValueAggregatorJobs" return="org.apache.hadoop.mapred.jobcontrol.JobControl"
  65906. abstract="false" native="false" synchronized="false"
  65907. static="true" final="false" visibility="public"
  65908. deprecated="not deprecated">
  65909. <param name="args" type="java.lang.String[]"/>
  65910. <param name="descriptors" type="java.lang.Class[]"/>
  65911. <exception name="IOException" type="java.io.IOException"/>
  65912. </method>
  65913. <method name="createValueAggregatorJobs" return="org.apache.hadoop.mapred.jobcontrol.JobControl"
  65914. abstract="false" native="false" synchronized="false"
  65915. static="true" final="false" visibility="public"
  65916. deprecated="not deprecated">
  65917. <param name="args" type="java.lang.String[]"/>
  65918. <exception name="IOException" type="java.io.IOException"/>
  65919. </method>
  65920. <method name="createValueAggregatorJob" return="org.apache.hadoop.mapred.JobConf"
  65921. abstract="false" native="false" synchronized="false"
  65922. static="true" final="false" visibility="public"
  65923. deprecated="not deprecated">
  65924. <param name="args" type="java.lang.String[]"/>
  65925. <exception name="IOException" type="java.io.IOException"/>
  65926. <doc>
  65927. <![CDATA[Create an Aggregate based map/reduce job.
  65928. @param args the arguments used for job creation. Generic hadoop
  65929. arguments are accepted.
  65930. @return a JobConf object ready for submission.
  65931. @throws IOException
  65932. @see GenericOptionsParser]]>
  65933. </doc>
  65934. </method>
  65935. <method name="createValueAggregatorJob" return="org.apache.hadoop.mapred.JobConf"
  65936. abstract="false" native="false" synchronized="false"
  65937. static="true" final="false" visibility="public"
  65938. deprecated="not deprecated">
  65939. <param name="args" type="java.lang.String[]"/>
  65940. <param name="caller" type="java.lang.Class"/>
  65941. <exception name="IOException" type="java.io.IOException"/>
  65942. <doc>
  65943. <![CDATA[Create an Aggregate based map/reduce job.
  65944. @param args the arguments used for job creation. Generic hadoop
  65945. arguments are accepted.
  65946. @param caller the the caller class.
  65947. @return a JobConf object ready for submission.
  65948. @throws IOException
  65949. @see GenericOptionsParser]]>
  65950. </doc>
  65951. </method>
  65952. <method name="createValueAggregatorJob" return="org.apache.hadoop.mapred.JobConf"
  65953. abstract="false" native="false" synchronized="false"
  65954. static="true" final="false" visibility="public"
  65955. deprecated="not deprecated">
  65956. <param name="args" type="java.lang.String[]"/>
  65957. <param name="descriptors" type="java.lang.Class[]"/>
  65958. <exception name="IOException" type="java.io.IOException"/>
  65959. </method>
  65960. <method name="createValueAggregatorJob" return="org.apache.hadoop.mapred.JobConf"
  65961. abstract="false" native="false" synchronized="false"
  65962. static="true" final="false" visibility="public"
  65963. deprecated="not deprecated">
  65964. <param name="args" type="java.lang.String[]"/>
  65965. <param name="descriptors" type="java.lang.Class[]"/>
  65966. <param name="caller" type="java.lang.Class"/>
  65967. <exception name="IOException" type="java.io.IOException"/>
  65968. </method>
  65969. <method name="setAggregatorDescriptors"
  65970. abstract="false" native="false" synchronized="false"
  65971. static="true" final="false" visibility="public"
  65972. deprecated="not deprecated">
  65973. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  65974. <param name="descriptors" type="java.lang.Class[]"/>
  65975. </method>
  65976. <method name="main"
  65977. abstract="false" native="false" synchronized="false"
  65978. static="true" final="false" visibility="public"
  65979. deprecated="not deprecated">
  65980. <param name="args" type="java.lang.String[]"/>
  65981. <exception name="IOException" type="java.io.IOException"/>
  65982. <doc>
  65983. <![CDATA[create and run an Aggregate based map/reduce job.
  65984. @param args the arguments used for job creation
  65985. @throws IOException]]>
  65986. </doc>
  65987. </method>
  65988. <doc>
  65989. <![CDATA[This is the main class for creating a map/reduce job using Aggregate
  65990. framework. The Aggregate is a specialization of map/reduce framework,
  65991. specilizing for performing various simple aggregations.
  65992. Generally speaking, in order to implement an application using Map/Reduce
  65993. model, the developer is to implement Map and Reduce functions (and possibly
  65994. combine function). However, a lot of applications related to counting and
  65995. statistics computing have very similar characteristics. Aggregate abstracts
  65996. out the general patterns of these functions and implementing those patterns.
  65997. In particular, the package provides generic mapper/redducer/combiner classes,
  65998. and a set of built-in value aggregators, and a generic utility class that
  65999. helps user create map/reduce jobs using the generic class. The built-in
  66000. aggregators include:
  66001. sum over numeric values count the number of distinct values compute the
  66002. histogram of values compute the minimum, maximum, media,average, standard
  66003. deviation of numeric values
  66004. The developer using Aggregate will need only to provide a plugin class
  66005. conforming to the following interface:
  66006. public interface ValueAggregatorDescriptor { public ArrayList<Entry>
  66007. generateKeyValPairs(Object key, Object value); public void
  66008. configure(JobConfjob); }
  66009. The package also provides a base class, ValueAggregatorBaseDescriptor,
  66010. implementing the above interface. The user can extend the base class and
  66011. implement generateKeyValPairs accordingly.
  66012. The primary work of generateKeyValPairs is to emit one or more key/value
  66013. pairs based on the input key/value pair. The key in an output key/value pair
  66014. encode two pieces of information: aggregation type and aggregation id. The
  66015. value will be aggregated onto the aggregation id according the aggregation
  66016. type.
  66017. This class offers a function to generate a map/reduce job using Aggregate
  66018. framework. The function takes the following parameters: input directory spec
  66019. input format (text or sequence file) output directory a file specifying the
  66020. user plugin class]]>
  66021. </doc>
  66022. </class>
  66023. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJob -->
  66024. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase -->
  66025. <class name="ValueAggregatorJobBase" extends="java.lang.Object"
  66026. abstract="true"
  66027. static="false" final="false" visibility="public"
  66028. deprecated="not deprecated">
  66029. <implements name="org.apache.hadoop.mapred.Mapper"/>
  66030. <implements name="org.apache.hadoop.mapred.Reducer"/>
  66031. <constructor name="ValueAggregatorJobBase"
  66032. static="false" final="false" visibility="public"
  66033. deprecated="not deprecated">
  66034. </constructor>
  66035. <method name="configure"
  66036. abstract="false" native="false" synchronized="false"
  66037. static="false" final="false" visibility="public"
  66038. deprecated="not deprecated">
  66039. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  66040. </method>
  66041. <method name="logSpec"
  66042. abstract="false" native="false" synchronized="false"
  66043. static="false" final="false" visibility="protected"
  66044. deprecated="not deprecated">
  66045. </method>
  66046. <method name="close"
  66047. abstract="false" native="false" synchronized="false"
  66048. static="false" final="false" visibility="public"
  66049. deprecated="not deprecated">
  66050. <exception name="IOException" type="java.io.IOException"/>
  66051. </method>
  66052. <field name="aggregatorDescriptorList" type="java.util.ArrayList"
  66053. transient="false" volatile="false"
  66054. static="false" final="false" visibility="protected"
  66055. deprecated="not deprecated">
  66056. </field>
  66057. <doc>
  66058. <![CDATA[This abstract class implements some common functionalities of the
  66059. the generic mapper, reducer and combiner classes of Aggregate.]]>
  66060. </doc>
  66061. </class>
  66062. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase -->
  66063. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorMapper -->
  66064. <class name="ValueAggregatorMapper" extends="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase"
  66065. abstract="false"
  66066. static="false" final="false" visibility="public"
  66067. deprecated="not deprecated">
  66068. <constructor name="ValueAggregatorMapper"
  66069. static="false" final="false" visibility="public"
  66070. deprecated="not deprecated">
  66071. </constructor>
  66072. <method name="map"
  66073. abstract="false" native="false" synchronized="false"
  66074. static="false" final="false" visibility="public"
  66075. deprecated="not deprecated">
  66076. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  66077. <param name="value" type="org.apache.hadoop.io.Writable"/>
  66078. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  66079. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  66080. <exception name="IOException" type="java.io.IOException"/>
  66081. <doc>
  66082. <![CDATA[the map function. It iterates through the value aggregator descriptor
  66083. list to generate aggregation id/value pairs and emit them.]]>
  66084. </doc>
  66085. </method>
  66086. <method name="reduce"
  66087. abstract="false" native="false" synchronized="false"
  66088. static="false" final="false" visibility="public"
  66089. deprecated="not deprecated">
  66090. <param name="arg0" type="org.apache.hadoop.io.Text"/>
  66091. <param name="arg1" type="java.util.Iterator"/>
  66092. <param name="arg2" type="org.apache.hadoop.mapred.OutputCollector"/>
  66093. <param name="arg3" type="org.apache.hadoop.mapred.Reporter"/>
  66094. <exception name="IOException" type="java.io.IOException"/>
  66095. <doc>
  66096. <![CDATA[Do nothing. Should not be called.]]>
  66097. </doc>
  66098. </method>
  66099. <doc>
  66100. <![CDATA[This class implements the generic mapper of Aggregate.]]>
  66101. </doc>
  66102. </class>
  66103. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorMapper -->
  66104. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorReducer -->
  66105. <class name="ValueAggregatorReducer" extends="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase"
  66106. abstract="false"
  66107. static="false" final="false" visibility="public"
  66108. deprecated="not deprecated">
  66109. <constructor name="ValueAggregatorReducer"
  66110. static="false" final="false" visibility="public"
  66111. deprecated="not deprecated">
  66112. </constructor>
  66113. <method name="reduce"
  66114. abstract="false" native="false" synchronized="false"
  66115. static="false" final="false" visibility="public"
  66116. deprecated="not deprecated">
  66117. <param name="key" type="org.apache.hadoop.io.Text"/>
  66118. <param name="values" type="java.util.Iterator"/>
  66119. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  66120. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  66121. <exception name="IOException" type="java.io.IOException"/>
  66122. <doc>
  66123. <![CDATA[@param key
  66124. the key is expected to be a Text object, whose prefix indicates
  66125. the type of aggregation to aggregate the values. In effect, data
  66126. driven computing is achieved. It is assumed that each aggregator's
  66127. getReport method emits appropriate output for the aggregator. This
  66128. may be further customiized.
  66129. @value the values to be aggregated]]>
  66130. </doc>
  66131. </method>
  66132. <method name="map"
  66133. abstract="false" native="false" synchronized="false"
  66134. static="false" final="false" visibility="public"
  66135. deprecated="not deprecated">
  66136. <param name="arg0" type="org.apache.hadoop.io.WritableComparable"/>
  66137. <param name="arg1" type="org.apache.hadoop.io.Writable"/>
  66138. <param name="arg2" type="org.apache.hadoop.mapred.OutputCollector"/>
  66139. <param name="arg3" type="org.apache.hadoop.mapred.Reporter"/>
  66140. <exception name="IOException" type="java.io.IOException"/>
  66141. <doc>
  66142. <![CDATA[Do nothing. Should not be called]]>
  66143. </doc>
  66144. </method>
  66145. <doc>
  66146. <![CDATA[This class implements the generic reducer of Aggregate.]]>
  66147. </doc>
  66148. </class>
  66149. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorReducer -->
  66150. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueHistogram -->
  66151. <class name="ValueHistogram" extends="java.lang.Object"
  66152. abstract="false"
  66153. static="false" final="false" visibility="public"
  66154. deprecated="not deprecated">
  66155. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  66156. <constructor name="ValueHistogram"
  66157. static="false" final="false" visibility="public"
  66158. deprecated="not deprecated">
  66159. </constructor>
  66160. <method name="addNextValue"
  66161. abstract="false" native="false" synchronized="false"
  66162. static="false" final="false" visibility="public"
  66163. deprecated="not deprecated">
  66164. <param name="val" type="java.lang.Object"/>
  66165. <doc>
  66166. <![CDATA[add the given val to the aggregator.
  66167. @param val the value to be added. It is expected to be a string
  66168. in the form of xxxx\tnum, meaning xxxx has num occurrences.]]>
  66169. </doc>
  66170. </method>
  66171. <method name="getReport" return="java.lang.String"
  66172. abstract="false" native="false" synchronized="false"
  66173. static="false" final="false" visibility="public"
  66174. deprecated="not deprecated">
  66175. <doc>
  66176. <![CDATA[@return the string representation of this aggregator.
  66177. It includes the following basic statistics of the histogram:
  66178. the number of unique values
  66179. the minimum value
  66180. the media value
  66181. the maximum value
  66182. the average value
  66183. the standard deviation]]>
  66184. </doc>
  66185. </method>
  66186. <method name="getReportDetails" return="java.lang.String"
  66187. abstract="false" native="false" synchronized="false"
  66188. static="false" final="false" visibility="public"
  66189. deprecated="not deprecated">
  66190. <doc>
  66191. <![CDATA[@return a string representation of the list of value/frequence pairs of
  66192. the histogram]]>
  66193. </doc>
  66194. </method>
  66195. <method name="getCombinerOutput" return="java.util.ArrayList"
  66196. abstract="false" native="false" synchronized="false"
  66197. static="false" final="false" visibility="public"
  66198. deprecated="not deprecated">
  66199. <doc>
  66200. <![CDATA[@return a list value/frequence pairs.
  66201. The return value is expected to be used by the reducer.]]>
  66202. </doc>
  66203. </method>
  66204. <method name="getReportItems" return="java.util.TreeMap"
  66205. abstract="false" native="false" synchronized="false"
  66206. static="false" final="false" visibility="public"
  66207. deprecated="not deprecated">
  66208. <doc>
  66209. <![CDATA[@return a TreeMap representation of the histogram]]>
  66210. </doc>
  66211. </method>
  66212. <method name="reset"
  66213. abstract="false" native="false" synchronized="false"
  66214. static="false" final="false" visibility="public"
  66215. deprecated="not deprecated">
  66216. <doc>
  66217. <![CDATA[reset the aggregator]]>
  66218. </doc>
  66219. </method>
  66220. <doc>
  66221. <![CDATA[This class implements a value aggregator that computes the
  66222. histogram of a sequence of strings.]]>
  66223. </doc>
  66224. </class>
  66225. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueHistogram -->
  66226. </package>
  66227. <package name="org.apache.hadoop.mapred.lib.db">
  66228. <!-- start class org.apache.hadoop.mapred.lib.db.DBConfiguration -->
  66229. <class name="DBConfiguration" extends="java.lang.Object"
  66230. abstract="false"
  66231. static="false" final="false" visibility="public"
  66232. deprecated="not deprecated">
  66233. <method name="configureDB"
  66234. abstract="false" native="false" synchronized="false"
  66235. static="true" final="false" visibility="public"
  66236. deprecated="not deprecated">
  66237. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  66238. <param name="driverClass" type="java.lang.String"/>
  66239. <param name="dbUrl" type="java.lang.String"/>
  66240. <param name="userName" type="java.lang.String"/>
  66241. <param name="passwd" type="java.lang.String"/>
  66242. <doc>
  66243. <![CDATA[Sets the DB access related fields in the JobConf.
  66244. @param job the job
  66245. @param driverClass JDBC Driver class name
  66246. @param dbUrl JDBC DB access URL.
  66247. @param userName DB access username
  66248. @param passwd DB access passwd]]>
  66249. </doc>
  66250. </method>
  66251. <method name="configureDB"
  66252. abstract="false" native="false" synchronized="false"
  66253. static="true" final="false" visibility="public"
  66254. deprecated="not deprecated">
  66255. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  66256. <param name="driverClass" type="java.lang.String"/>
  66257. <param name="dbUrl" type="java.lang.String"/>
  66258. <doc>
  66259. <![CDATA[Sets the DB access related fields in the JobConf.
  66260. @param job the job
  66261. @param driverClass JDBC Driver class name
  66262. @param dbUrl JDBC DB access URL.]]>
  66263. </doc>
  66264. </method>
  66265. <field name="DRIVER_CLASS_PROPERTY" type="java.lang.String"
  66266. transient="false" volatile="false"
  66267. static="true" final="true" visibility="public"
  66268. deprecated="not deprecated">
  66269. <doc>
  66270. <![CDATA[The JDBC Driver class name]]>
  66271. </doc>
  66272. </field>
  66273. <field name="URL_PROPERTY" type="java.lang.String"
  66274. transient="false" volatile="false"
  66275. static="true" final="true" visibility="public"
  66276. deprecated="not deprecated">
  66277. <doc>
  66278. <![CDATA[JDBC Database access URL]]>
  66279. </doc>
  66280. </field>
  66281. <field name="USERNAME_PROPERTY" type="java.lang.String"
  66282. transient="false" volatile="false"
  66283. static="true" final="true" visibility="public"
  66284. deprecated="not deprecated">
  66285. <doc>
  66286. <![CDATA[User name to access the database]]>
  66287. </doc>
  66288. </field>
  66289. <field name="PASSWORD_PROPERTY" type="java.lang.String"
  66290. transient="false" volatile="false"
  66291. static="true" final="true" visibility="public"
  66292. deprecated="not deprecated">
  66293. <doc>
  66294. <![CDATA[Password to access the database]]>
  66295. </doc>
  66296. </field>
  66297. <field name="INPUT_TABLE_NAME_PROPERTY" type="java.lang.String"
  66298. transient="false" volatile="false"
  66299. static="true" final="true" visibility="public"
  66300. deprecated="not deprecated">
  66301. <doc>
  66302. <![CDATA[Input table name]]>
  66303. </doc>
  66304. </field>
  66305. <field name="INPUT_FIELD_NAMES_PROPERTY" type="java.lang.String"
  66306. transient="false" volatile="false"
  66307. static="true" final="true" visibility="public"
  66308. deprecated="not deprecated">
  66309. <doc>
  66310. <![CDATA[Field names in the Input table]]>
  66311. </doc>
  66312. </field>
  66313. <field name="INPUT_CONDITIONS_PROPERTY" type="java.lang.String"
  66314. transient="false" volatile="false"
  66315. static="true" final="true" visibility="public"
  66316. deprecated="not deprecated">
  66317. <doc>
  66318. <![CDATA[WHERE clause in the input SELECT statement]]>
  66319. </doc>
  66320. </field>
  66321. <field name="INPUT_ORDER_BY_PROPERTY" type="java.lang.String"
  66322. transient="false" volatile="false"
  66323. static="true" final="true" visibility="public"
  66324. deprecated="not deprecated">
  66325. <doc>
  66326. <![CDATA[ORDER BY clause in the input SELECT statement]]>
  66327. </doc>
  66328. </field>
  66329. <field name="INPUT_QUERY" type="java.lang.String"
  66330. transient="false" volatile="false"
  66331. static="true" final="true" visibility="public"
  66332. deprecated="not deprecated">
  66333. <doc>
  66334. <![CDATA[Whole input query, exluding LIMIT...OFFSET]]>
  66335. </doc>
  66336. </field>
  66337. <field name="INPUT_COUNT_QUERY" type="java.lang.String"
  66338. transient="false" volatile="false"
  66339. static="true" final="true" visibility="public"
  66340. deprecated="not deprecated">
  66341. <doc>
  66342. <![CDATA[Input query to get the count of records]]>
  66343. </doc>
  66344. </field>
  66345. <field name="INPUT_CLASS_PROPERTY" type="java.lang.String"
  66346. transient="false" volatile="false"
  66347. static="true" final="true" visibility="public"
  66348. deprecated="not deprecated">
  66349. <doc>
  66350. <![CDATA[Class name implementing DBWritable which will hold input tuples]]>
  66351. </doc>
  66352. </field>
  66353. <field name="OUTPUT_TABLE_NAME_PROPERTY" type="java.lang.String"
  66354. transient="false" volatile="false"
  66355. static="true" final="true" visibility="public"
  66356. deprecated="not deprecated">
  66357. <doc>
  66358. <![CDATA[Output table name]]>
  66359. </doc>
  66360. </field>
  66361. <field name="OUTPUT_FIELD_NAMES_PROPERTY" type="java.lang.String"
  66362. transient="false" volatile="false"
  66363. static="true" final="true" visibility="public"
  66364. deprecated="not deprecated">
  66365. <doc>
  66366. <![CDATA[Field names in the Output table]]>
  66367. </doc>
  66368. </field>
  66369. <doc>
  66370. <![CDATA[A container for configuration property names for jobs with DB input/output.
  66371. <br>
  66372. The job can be configured using the static methods in this class,
  66373. {@link DBInputFormat}, and {@link DBOutputFormat}.
  66374. <p>
  66375. Alternatively, the properties can be set in the configuration with proper
  66376. values.
  66377. @see DBConfiguration#configureDB(JobConf, String, String, String, String)
  66378. @see DBInputFormat#setInput(JobConf, Class, String, String)
  66379. @see DBInputFormat#setInput(JobConf, Class, String, String, String, String...)
  66380. @see DBOutputFormat#setOutput(JobConf, String, String...)]]>
  66381. </doc>
  66382. </class>
  66383. <!-- end class org.apache.hadoop.mapred.lib.db.DBConfiguration -->
  66384. <!-- start class org.apache.hadoop.mapred.lib.db.DBInputFormat -->
  66385. <class name="DBInputFormat" extends="java.lang.Object"
  66386. abstract="false"
  66387. static="false" final="false" visibility="public"
  66388. deprecated="not deprecated">
  66389. <implements name="org.apache.hadoop.mapred.InputFormat"/>
  66390. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  66391. <constructor name="DBInputFormat"
  66392. static="false" final="false" visibility="public"
  66393. deprecated="not deprecated">
  66394. </constructor>
  66395. <method name="configure"
  66396. abstract="false" native="false" synchronized="false"
  66397. static="false" final="false" visibility="public"
  66398. deprecated="not deprecated">
  66399. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  66400. <doc>
  66401. <![CDATA[{@inheritDoc}]]>
  66402. </doc>
  66403. </method>
  66404. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader"
  66405. abstract="false" native="false" synchronized="false"
  66406. static="false" final="false" visibility="public"
  66407. deprecated="not deprecated">
  66408. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  66409. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  66410. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  66411. <exception name="IOException" type="java.io.IOException"/>
  66412. <doc>
  66413. <![CDATA[{@inheritDoc}]]>
  66414. </doc>
  66415. </method>
  66416. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  66417. abstract="false" native="false" synchronized="false"
  66418. static="false" final="false" visibility="public"
  66419. deprecated="not deprecated">
  66420. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  66421. <param name="chunks" type="int"/>
  66422. <exception name="IOException" type="java.io.IOException"/>
  66423. <doc>
  66424. <![CDATA[{@inheritDoc}]]>
  66425. </doc>
  66426. </method>
  66427. <method name="getCountQuery" return="java.lang.String"
  66428. abstract="false" native="false" synchronized="false"
  66429. static="false" final="false" visibility="protected"
  66430. deprecated="not deprecated">
  66431. <doc>
  66432. <![CDATA[Returns the query for getting the total number of rows,
  66433. subclasses can override this for custom behaviour.]]>
  66434. </doc>
  66435. </method>
  66436. <method name="setInput"
  66437. abstract="false" native="false" synchronized="false"
  66438. static="true" final="false" visibility="public"
  66439. deprecated="not deprecated">
  66440. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  66441. <param name="inputClass" type="java.lang.Class"/>
  66442. <param name="tableName" type="java.lang.String"/>
  66443. <param name="conditions" type="java.lang.String"/>
  66444. <param name="orderBy" type="java.lang.String"/>
  66445. <param name="fieldNames" type="java.lang.String[]"/>
  66446. <doc>
  66447. <![CDATA[Initializes the map-part of the job with the appropriate input settings.
  66448. @param job The job
  66449. @param inputClass the class object implementing DBWritable, which is the
  66450. Java object holding tuple fields.
  66451. @param tableName The table to read data from
  66452. @param conditions The condition which to select data with, eg. '(updated >
  66453. 20070101 AND length > 0)'
  66454. @param orderBy the fieldNames in the orderBy clause.
  66455. @param fieldNames The field names in the table
  66456. @see #setInput(JobConf, Class, String, String)]]>
  66457. </doc>
  66458. </method>
  66459. <method name="setInput"
  66460. abstract="false" native="false" synchronized="false"
  66461. static="true" final="false" visibility="public"
  66462. deprecated="not deprecated">
  66463. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  66464. <param name="inputClass" type="java.lang.Class"/>
  66465. <param name="inputQuery" type="java.lang.String"/>
  66466. <param name="inputCountQuery" type="java.lang.String"/>
  66467. <doc>
  66468. <![CDATA[Initializes the map-part of the job with the appropriate input settings.
  66469. @param job The job
  66470. @param inputClass the class object implementing DBWritable, which is the
  66471. Java object holding tuple fields.
  66472. @param inputQuery the input query to select fields. Example :
  66473. "SELECT f1, f2, f3 FROM Mytable ORDER BY f1"
  66474. @param inputCountQuery the input query that returns the number of records in
  66475. the table.
  66476. Example : "SELECT COUNT(f1) FROM Mytable"
  66477. @see #setInput(JobConf, Class, String, String, String, String...)]]>
  66478. </doc>
  66479. </method>
  66480. <doc>
  66481. <![CDATA[A InputFormat that reads input data from an SQL table.
  66482. <p>
  66483. DBInputFormat emits LongWritables containing the record number as
  66484. key and DBWritables as value.
  66485. The SQL query, and input class can be using one of the two
  66486. setInput methods.]]>
  66487. </doc>
  66488. </class>
  66489. <!-- end class org.apache.hadoop.mapred.lib.db.DBInputFormat -->
  66490. <!-- start class org.apache.hadoop.mapred.lib.db.DBInputFormat.DBInputSplit -->
  66491. <class name="DBInputFormat.DBInputSplit" extends="java.lang.Object"
  66492. abstract="false"
  66493. static="true" final="false" visibility="protected"
  66494. deprecated="not deprecated">
  66495. <implements name="org.apache.hadoop.mapred.InputSplit"/>
  66496. <constructor name="DBInputFormat.DBInputSplit"
  66497. static="false" final="false" visibility="public"
  66498. deprecated="not deprecated">
  66499. <doc>
  66500. <![CDATA[Default Constructor]]>
  66501. </doc>
  66502. </constructor>
  66503. <constructor name="DBInputFormat.DBInputSplit" type="long, long"
  66504. static="false" final="false" visibility="public"
  66505. deprecated="not deprecated">
  66506. <doc>
  66507. <![CDATA[Convenience Constructor
  66508. @param start the index of the first row to select
  66509. @param end the index of the last row to select]]>
  66510. </doc>
  66511. </constructor>
  66512. <method name="getLocations" return="java.lang.String[]"
  66513. abstract="false" native="false" synchronized="false"
  66514. static="false" final="false" visibility="public"
  66515. deprecated="not deprecated">
  66516. <exception name="IOException" type="java.io.IOException"/>
  66517. <doc>
  66518. <![CDATA[{@inheritDoc}]]>
  66519. </doc>
  66520. </method>
  66521. <method name="getStart" return="long"
  66522. abstract="false" native="false" synchronized="false"
  66523. static="false" final="false" visibility="public"
  66524. deprecated="not deprecated">
  66525. <doc>
  66526. <![CDATA[@return The index of the first row to select]]>
  66527. </doc>
  66528. </method>
  66529. <method name="getEnd" return="long"
  66530. abstract="false" native="false" synchronized="false"
  66531. static="false" final="false" visibility="public"
  66532. deprecated="not deprecated">
  66533. <doc>
  66534. <![CDATA[@return The index of the last row to select]]>
  66535. </doc>
  66536. </method>
  66537. <method name="getLength" return="long"
  66538. abstract="false" native="false" synchronized="false"
  66539. static="false" final="false" visibility="public"
  66540. deprecated="not deprecated">
  66541. <exception name="IOException" type="java.io.IOException"/>
  66542. <doc>
  66543. <![CDATA[@return The total row count in this split]]>
  66544. </doc>
  66545. </method>
  66546. <method name="readFields"
  66547. abstract="false" native="false" synchronized="false"
  66548. static="false" final="false" visibility="public"
  66549. deprecated="not deprecated">
  66550. <param name="input" type="java.io.DataInput"/>
  66551. <exception name="IOException" type="java.io.IOException"/>
  66552. <doc>
  66553. <![CDATA[{@inheritDoc}]]>
  66554. </doc>
  66555. </method>
  66556. <method name="write"
  66557. abstract="false" native="false" synchronized="false"
  66558. static="false" final="false" visibility="public"
  66559. deprecated="not deprecated">
  66560. <param name="output" type="java.io.DataOutput"/>
  66561. <exception name="IOException" type="java.io.IOException"/>
  66562. <doc>
  66563. <![CDATA[{@inheritDoc}]]>
  66564. </doc>
  66565. </method>
  66566. <doc>
  66567. <![CDATA[A InputSplit that spans a set of rows]]>
  66568. </doc>
  66569. </class>
  66570. <!-- end class org.apache.hadoop.mapred.lib.db.DBInputFormat.DBInputSplit -->
  66571. <!-- start class org.apache.hadoop.mapred.lib.db.DBInputFormat.DBRecordReader -->
  66572. <class name="DBInputFormat.DBRecordReader" extends="java.lang.Object"
  66573. abstract="false"
  66574. static="false" final="false" visibility="protected"
  66575. deprecated="not deprecated">
  66576. <implements name="org.apache.hadoop.mapred.RecordReader"/>
  66577. <constructor name="DBInputFormat.DBRecordReader" type="org.apache.hadoop.mapred.lib.db.DBInputFormat.DBInputSplit, java.lang.Class, org.apache.hadoop.mapred.JobConf"
  66578. static="false" final="false" visibility="protected"
  66579. deprecated="not deprecated">
  66580. <exception name="SQLException" type="java.sql.SQLException"/>
  66581. <doc>
  66582. <![CDATA[@param split The InputSplit to read data for
  66583. @throws SQLException]]>
  66584. </doc>
  66585. </constructor>
  66586. <method name="getSelectQuery" return="java.lang.String"
  66587. abstract="false" native="false" synchronized="false"
  66588. static="false" final="false" visibility="protected"
  66589. deprecated="not deprecated">
  66590. <doc>
  66591. <![CDATA[Returns the query for selecting the records,
  66592. subclasses can override this for custom behaviour.]]>
  66593. </doc>
  66594. </method>
  66595. <method name="close"
  66596. abstract="false" native="false" synchronized="false"
  66597. static="false" final="false" visibility="public"
  66598. deprecated="not deprecated">
  66599. <exception name="IOException" type="java.io.IOException"/>
  66600. <doc>
  66601. <![CDATA[{@inheritDoc}]]>
  66602. </doc>
  66603. </method>
  66604. <method name="createKey" return="org.apache.hadoop.io.LongWritable"
  66605. abstract="false" native="false" synchronized="false"
  66606. static="false" final="false" visibility="public"
  66607. deprecated="not deprecated">
  66608. <doc>
  66609. <![CDATA[{@inheritDoc}]]>
  66610. </doc>
  66611. </method>
  66612. <method name="createValue" return="org.apache.hadoop.mapred.lib.db.DBWritable"
  66613. abstract="false" native="false" synchronized="false"
  66614. static="false" final="false" visibility="public"
  66615. deprecated="not deprecated">
  66616. <doc>
  66617. <![CDATA[{@inheritDoc}]]>
  66618. </doc>
  66619. </method>
  66620. <method name="getPos" return="long"
  66621. abstract="false" native="false" synchronized="false"
  66622. static="false" final="false" visibility="public"
  66623. deprecated="not deprecated">
  66624. <exception name="IOException" type="java.io.IOException"/>
  66625. <doc>
  66626. <![CDATA[{@inheritDoc}]]>
  66627. </doc>
  66628. </method>
  66629. <method name="getProgress" return="float"
  66630. abstract="false" native="false" synchronized="false"
  66631. static="false" final="false" visibility="public"
  66632. deprecated="not deprecated">
  66633. <exception name="IOException" type="java.io.IOException"/>
  66634. <doc>
  66635. <![CDATA[{@inheritDoc}]]>
  66636. </doc>
  66637. </method>
  66638. <method name="next" return="boolean"
  66639. abstract="false" native="false" synchronized="false"
  66640. static="false" final="false" visibility="public"
  66641. deprecated="not deprecated">
  66642. <param name="key" type="org.apache.hadoop.io.LongWritable"/>
  66643. <param name="value" type="org.apache.hadoop.mapred.lib.db.DBWritable"/>
  66644. <exception name="IOException" type="java.io.IOException"/>
  66645. <doc>
  66646. <![CDATA[{@inheritDoc}]]>
  66647. </doc>
  66648. </method>
  66649. <doc>
  66650. <![CDATA[A RecordReader that reads records from a SQL table.
  66651. Emits LongWritables containing the record number as
  66652. key and DBWritables as value.]]>
  66653. </doc>
  66654. </class>
  66655. <!-- end class org.apache.hadoop.mapred.lib.db.DBInputFormat.DBRecordReader -->
  66656. <!-- start class org.apache.hadoop.mapred.lib.db.DBInputFormat.NullDBWritable -->
  66657. <class name="DBInputFormat.NullDBWritable" extends="java.lang.Object"
  66658. abstract="false"
  66659. static="true" final="false" visibility="public"
  66660. deprecated="not deprecated">
  66661. <implements name="org.apache.hadoop.mapred.lib.db.DBWritable"/>
  66662. <implements name="org.apache.hadoop.io.Writable"/>
  66663. <constructor name="DBInputFormat.NullDBWritable"
  66664. static="false" final="false" visibility="public"
  66665. deprecated="not deprecated">
  66666. </constructor>
  66667. <method name="readFields"
  66668. abstract="false" native="false" synchronized="false"
  66669. static="false" final="false" visibility="public"
  66670. deprecated="not deprecated">
  66671. <param name="in" type="java.io.DataInput"/>
  66672. <exception name="IOException" type="java.io.IOException"/>
  66673. </method>
  66674. <method name="readFields"
  66675. abstract="false" native="false" synchronized="false"
  66676. static="false" final="false" visibility="public"
  66677. deprecated="not deprecated">
  66678. <param name="arg0" type="java.sql.ResultSet"/>
  66679. <exception name="SQLException" type="java.sql.SQLException"/>
  66680. </method>
  66681. <method name="write"
  66682. abstract="false" native="false" synchronized="false"
  66683. static="false" final="false" visibility="public"
  66684. deprecated="not deprecated">
  66685. <param name="out" type="java.io.DataOutput"/>
  66686. <exception name="IOException" type="java.io.IOException"/>
  66687. </method>
  66688. <method name="write"
  66689. abstract="false" native="false" synchronized="false"
  66690. static="false" final="false" visibility="public"
  66691. deprecated="not deprecated">
  66692. <param name="arg0" type="java.sql.PreparedStatement"/>
  66693. <exception name="SQLException" type="java.sql.SQLException"/>
  66694. </method>
  66695. <doc>
  66696. <![CDATA[A Class that does nothing, implementing DBWritable]]>
  66697. </doc>
  66698. </class>
  66699. <!-- end class org.apache.hadoop.mapred.lib.db.DBInputFormat.NullDBWritable -->
  66700. <!-- start class org.apache.hadoop.mapred.lib.db.DBOutputFormat -->
  66701. <class name="DBOutputFormat" extends="java.lang.Object"
  66702. abstract="false"
  66703. static="false" final="false" visibility="public"
  66704. deprecated="not deprecated">
  66705. <implements name="org.apache.hadoop.mapred.OutputFormat"/>
  66706. <constructor name="DBOutputFormat"
  66707. static="false" final="false" visibility="public"
  66708. deprecated="not deprecated">
  66709. </constructor>
  66710. <method name="constructQuery" return="java.lang.String"
  66711. abstract="false" native="false" synchronized="false"
  66712. static="false" final="false" visibility="protected"
  66713. deprecated="not deprecated">
  66714. <param name="table" type="java.lang.String"/>
  66715. <param name="fieldNames" type="java.lang.String[]"/>
  66716. <doc>
  66717. <![CDATA[Constructs the query used as the prepared statement to insert data.
  66718. @param table
  66719. the table to insert into
  66720. @param fieldNames
  66721. the fields to insert into. If field names are unknown, supply an
  66722. array of nulls.]]>
  66723. </doc>
  66724. </method>
  66725. <method name="checkOutputSpecs"
  66726. abstract="false" native="false" synchronized="false"
  66727. static="false" final="false" visibility="public"
  66728. deprecated="not deprecated">
  66729. <param name="filesystem" type="org.apache.hadoop.fs.FileSystem"/>
  66730. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  66731. <exception name="IOException" type="java.io.IOException"/>
  66732. <doc>
  66733. <![CDATA[{@inheritDoc}]]>
  66734. </doc>
  66735. </method>
  66736. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter"
  66737. abstract="false" native="false" synchronized="false"
  66738. static="false" final="false" visibility="public"
  66739. deprecated="not deprecated">
  66740. <param name="filesystem" type="org.apache.hadoop.fs.FileSystem"/>
  66741. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  66742. <param name="name" type="java.lang.String"/>
  66743. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  66744. <exception name="IOException" type="java.io.IOException"/>
  66745. <doc>
  66746. <![CDATA[{@inheritDoc}]]>
  66747. </doc>
  66748. </method>
  66749. <method name="setOutput"
  66750. abstract="false" native="false" synchronized="false"
  66751. static="true" final="false" visibility="public"
  66752. deprecated="not deprecated">
  66753. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  66754. <param name="tableName" type="java.lang.String"/>
  66755. <param name="fieldNames" type="java.lang.String[]"/>
  66756. <doc>
  66757. <![CDATA[Initializes the reduce-part of the job with the appropriate output settings
  66758. @param job
  66759. The job
  66760. @param tableName
  66761. The table to insert data into
  66762. @param fieldNames
  66763. The field names in the table. If unknown, supply the appropriate
  66764. number of nulls.]]>
  66765. </doc>
  66766. </method>
  66767. <doc>
  66768. <![CDATA[A OutputFormat that sends the reduce output to a SQL table.
  66769. <p>
  66770. {@link DBOutputFormat} accepts &lt;key,value&gt; pairs, where
  66771. key has a type extending DBWritable. Returned {@link RecordWriter}
  66772. writes <b>only the key</b> to the database with a batch SQL query.]]>
  66773. </doc>
  66774. </class>
  66775. <!-- end class org.apache.hadoop.mapred.lib.db.DBOutputFormat -->
  66776. <!-- start class org.apache.hadoop.mapred.lib.db.DBOutputFormat.DBRecordWriter -->
  66777. <class name="DBOutputFormat.DBRecordWriter" extends="java.lang.Object"
  66778. abstract="false"
  66779. static="false" final="false" visibility="protected"
  66780. deprecated="not deprecated">
  66781. <implements name="org.apache.hadoop.mapred.RecordWriter"/>
  66782. <constructor name="DBOutputFormat.DBRecordWriter" type="java.sql.Connection, java.sql.PreparedStatement"
  66783. static="false" final="false" visibility="protected"
  66784. deprecated="not deprecated">
  66785. <exception name="SQLException" type="java.sql.SQLException"/>
  66786. </constructor>
  66787. <method name="close"
  66788. abstract="false" native="false" synchronized="false"
  66789. static="false" final="false" visibility="public"
  66790. deprecated="not deprecated">
  66791. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  66792. <exception name="IOException" type="java.io.IOException"/>
  66793. <doc>
  66794. <![CDATA[{@inheritDoc}]]>
  66795. </doc>
  66796. </method>
  66797. <method name="write"
  66798. abstract="false" native="false" synchronized="false"
  66799. static="false" final="false" visibility="public"
  66800. deprecated="not deprecated">
  66801. <param name="key" type="org.apache.hadoop.mapred.lib.db.DBWritable"/>
  66802. <param name="value" type="java.lang.Object"/>
  66803. <exception name="IOException" type="java.io.IOException"/>
  66804. <doc>
  66805. <![CDATA[{@inheritDoc}]]>
  66806. </doc>
  66807. </method>
  66808. <doc>
  66809. <![CDATA[A RecordWriter that writes the reduce output to a SQL table]]>
  66810. </doc>
  66811. </class>
  66812. <!-- end class org.apache.hadoop.mapred.lib.db.DBOutputFormat.DBRecordWriter -->
  66813. <!-- start interface org.apache.hadoop.mapred.lib.db.DBWritable -->
  66814. <interface name="DBWritable" abstract="true"
  66815. static="false" final="false" visibility="public"
  66816. deprecated="not deprecated">
  66817. <method name="write"
  66818. abstract="false" native="false" synchronized="false"
  66819. static="false" final="false" visibility="public"
  66820. deprecated="not deprecated">
  66821. <param name="statement" type="java.sql.PreparedStatement"/>
  66822. <exception name="SQLException" type="java.sql.SQLException"/>
  66823. <doc>
  66824. <![CDATA[Sets the fields of the object in the {@link PreparedStatement}.
  66825. @param statement the statement that the fields are put into.
  66826. @throws SQLException]]>
  66827. </doc>
  66828. </method>
  66829. <method name="readFields"
  66830. abstract="false" native="false" synchronized="false"
  66831. static="false" final="false" visibility="public"
  66832. deprecated="not deprecated">
  66833. <param name="resultSet" type="java.sql.ResultSet"/>
  66834. <exception name="SQLException" type="java.sql.SQLException"/>
  66835. <doc>
  66836. <![CDATA[Reads the fields of the object from the {@link ResultSet}.
  66837. @param resultSet the {@link ResultSet} to get the fields from.
  66838. @throws SQLException]]>
  66839. </doc>
  66840. </method>
  66841. <doc>
  66842. <![CDATA[Objects that are read from/written to a database should implement
  66843. <code>DBWritable</code>. DBWritable, is similar to {@link Writable}
  66844. except that the {@link #write(PreparedStatement)} method takes a
  66845. {@link PreparedStatement}, and {@link #readFields(ResultSet)}
  66846. takes a {@link ResultSet}.
  66847. <p>
  66848. Implementations are responsible for writing the fields of the object
  66849. to PreparedStatement, and reading the fields of the object from the
  66850. ResultSet.
  66851. <p>Example:</p>
  66852. If we have the following table in the database :
  66853. <pre>
  66854. CREATE TABLE MyTable (
  66855. counter INTEGER NOT NULL,
  66856. timestamp BIGINT NOT NULL,
  66857. );
  66858. </pre>
  66859. then we can read/write the tuples from/to the table with :
  66860. <p><pre>
  66861. public class MyWritable implements Writable, DBWritable {
  66862. // Some data
  66863. private int counter;
  66864. private long timestamp;
  66865. //Writable#write() implementation
  66866. public void write(DataOutput out) throws IOException {
  66867. out.writeInt(counter);
  66868. out.writeLong(timestamp);
  66869. }
  66870. //Writable#readFields() implementation
  66871. public void readFields(DataInput in) throws IOException {
  66872. counter = in.readInt();
  66873. timestamp = in.readLong();
  66874. }
  66875. public void write(PreparedStatement statement) throws SQLException {
  66876. statement.setInt(1, counter);
  66877. statement.setLong(2, timestamp);
  66878. }
  66879. public void readFields(ResultSet resultSet) throws SQLException {
  66880. counter = resultSet.getInt(1);
  66881. timestamp = resultSet.getLong(2);
  66882. }
  66883. }
  66884. </pre></p>]]>
  66885. </doc>
  66886. </interface>
  66887. <!-- end interface org.apache.hadoop.mapred.lib.db.DBWritable -->
  66888. </package>
  66889. <package name="org.apache.hadoop.mapred.pipes">
  66890. <!-- start class org.apache.hadoop.mapred.pipes.Submitter -->
  66891. <class name="Submitter" extends="org.apache.hadoop.conf.Configured"
  66892. abstract="false"
  66893. static="false" final="false" visibility="public"
  66894. deprecated="not deprecated">
  66895. <implements name="org.apache.hadoop.util.Tool"/>
  66896. <constructor name="Submitter"
  66897. static="false" final="false" visibility="public"
  66898. deprecated="not deprecated">
  66899. </constructor>
  66900. <constructor name="Submitter" type="org.apache.hadoop.conf.Configuration"
  66901. static="false" final="false" visibility="public"
  66902. deprecated="not deprecated">
  66903. </constructor>
  66904. <method name="getExecutable" return="java.lang.String"
  66905. abstract="false" native="false" synchronized="false"
  66906. static="true" final="false" visibility="public"
  66907. deprecated="not deprecated">
  66908. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  66909. <doc>
  66910. <![CDATA[Get the URI of the application's executable.
  66911. @param conf
  66912. @return the URI where the application's executable is located]]>
  66913. </doc>
  66914. </method>
  66915. <method name="setExecutable"
  66916. abstract="false" native="false" synchronized="false"
  66917. static="true" final="false" visibility="public"
  66918. deprecated="not deprecated">
  66919. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  66920. <param name="executable" type="java.lang.String"/>
  66921. <doc>
  66922. <![CDATA[Set the URI for the application's executable. Normally this is a hdfs:
  66923. location.
  66924. @param conf
  66925. @param executable The URI of the application's executable.]]>
  66926. </doc>
  66927. </method>
  66928. <method name="setIsJavaRecordReader"
  66929. abstract="false" native="false" synchronized="false"
  66930. static="true" final="false" visibility="public"
  66931. deprecated="not deprecated">
  66932. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  66933. <param name="value" type="boolean"/>
  66934. <doc>
  66935. <![CDATA[Set whether the job is using a Java RecordReader.
  66936. @param conf the configuration to modify
  66937. @param value the new value]]>
  66938. </doc>
  66939. </method>
  66940. <method name="getIsJavaRecordReader" return="boolean"
  66941. abstract="false" native="false" synchronized="false"
  66942. static="true" final="false" visibility="public"
  66943. deprecated="not deprecated">
  66944. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  66945. <doc>
  66946. <![CDATA[Check whether the job is using a Java RecordReader
  66947. @param conf the configuration to check
  66948. @return is it a Java RecordReader?]]>
  66949. </doc>
  66950. </method>
  66951. <method name="setIsJavaMapper"
  66952. abstract="false" native="false" synchronized="false"
  66953. static="true" final="false" visibility="public"
  66954. deprecated="not deprecated">
  66955. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  66956. <param name="value" type="boolean"/>
  66957. <doc>
  66958. <![CDATA[Set whether the Mapper is written in Java.
  66959. @param conf the configuration to modify
  66960. @param value the new value]]>
  66961. </doc>
  66962. </method>
  66963. <method name="getIsJavaMapper" return="boolean"
  66964. abstract="false" native="false" synchronized="false"
  66965. static="true" final="false" visibility="public"
  66966. deprecated="not deprecated">
  66967. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  66968. <doc>
  66969. <![CDATA[Check whether the job is using a Java Mapper.
  66970. @param conf the configuration to check
  66971. @return is it a Java Mapper?]]>
  66972. </doc>
  66973. </method>
  66974. <method name="setIsJavaReducer"
  66975. abstract="false" native="false" synchronized="false"
  66976. static="true" final="false" visibility="public"
  66977. deprecated="not deprecated">
  66978. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  66979. <param name="value" type="boolean"/>
  66980. <doc>
  66981. <![CDATA[Set whether the Reducer is written in Java.
  66982. @param conf the configuration to modify
  66983. @param value the new value]]>
  66984. </doc>
  66985. </method>
  66986. <method name="getIsJavaReducer" return="boolean"
  66987. abstract="false" native="false" synchronized="false"
  66988. static="true" final="false" visibility="public"
  66989. deprecated="not deprecated">
  66990. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  66991. <doc>
  66992. <![CDATA[Check whether the job is using a Java Reducer.
  66993. @param conf the configuration to check
  66994. @return is it a Java Reducer?]]>
  66995. </doc>
  66996. </method>
  66997. <method name="setIsJavaRecordWriter"
  66998. abstract="false" native="false" synchronized="false"
  66999. static="true" final="false" visibility="public"
  67000. deprecated="not deprecated">
  67001. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  67002. <param name="value" type="boolean"/>
  67003. <doc>
  67004. <![CDATA[Set whether the job will use a Java RecordWriter.
  67005. @param conf the configuration to modify
  67006. @param value the new value to set]]>
  67007. </doc>
  67008. </method>
  67009. <method name="getIsJavaRecordWriter" return="boolean"
  67010. abstract="false" native="false" synchronized="false"
  67011. static="true" final="false" visibility="public"
  67012. deprecated="not deprecated">
  67013. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  67014. <doc>
  67015. <![CDATA[Will the reduce use a Java RecordWriter?
  67016. @param conf the configuration to check
  67017. @return true, if the output of the job will be written by Java]]>
  67018. </doc>
  67019. </method>
  67020. <method name="getKeepCommandFile" return="boolean"
  67021. abstract="false" native="false" synchronized="false"
  67022. static="true" final="false" visibility="public"
  67023. deprecated="not deprecated">
  67024. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  67025. <doc>
  67026. <![CDATA[Does the user want to keep the command file for debugging? If this is
  67027. true, pipes will write a copy of the command data to a file in the
  67028. task directory named "downlink.data", which may be used to run the C++
  67029. program under the debugger. You probably also want to set
  67030. JobConf.setKeepFailedTaskFiles(true) to keep the entire directory from
  67031. being deleted.
  67032. To run using the data file, set the environment variable
  67033. "hadoop.pipes.command.file" to point to the file.
  67034. @param conf the configuration to check
  67035. @return will the framework save the command file?]]>
  67036. </doc>
  67037. </method>
  67038. <method name="setKeepCommandFile"
  67039. abstract="false" native="false" synchronized="false"
  67040. static="true" final="false" visibility="public"
  67041. deprecated="not deprecated">
  67042. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  67043. <param name="keep" type="boolean"/>
  67044. <doc>
  67045. <![CDATA[Set whether to keep the command file for debugging
  67046. @param conf the configuration to modify
  67047. @param keep the new value]]>
  67048. </doc>
  67049. </method>
  67050. <method name="submitJob" return="org.apache.hadoop.mapred.RunningJob"
  67051. abstract="false" native="false" synchronized="false"
  67052. static="true" final="false" visibility="public"
  67053. deprecated="Use {@link Submitter#runJob(JobConf)}">
  67054. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  67055. <exception name="IOException" type="java.io.IOException"/>
  67056. <doc>
  67057. <![CDATA[Submit a job to the map/reduce cluster. All of the necessary modifications
  67058. to the job to run under pipes are made to the configuration.
  67059. @param conf the job to submit to the cluster (MODIFIED)
  67060. @throws IOException
  67061. @deprecated Use {@link Submitter#runJob(JobConf)}]]>
  67062. </doc>
  67063. </method>
  67064. <method name="runJob" return="org.apache.hadoop.mapred.RunningJob"
  67065. abstract="false" native="false" synchronized="false"
  67066. static="true" final="false" visibility="public"
  67067. deprecated="not deprecated">
  67068. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  67069. <exception name="IOException" type="java.io.IOException"/>
  67070. <doc>
  67071. <![CDATA[Submit a job to the map/reduce cluster. All of the necessary modifications
  67072. to the job to run under pipes are made to the configuration.
  67073. @param conf the job to submit to the cluster (MODIFIED)
  67074. @throws IOException]]>
  67075. </doc>
  67076. </method>
  67077. <method name="jobSubmit" return="org.apache.hadoop.mapred.RunningJob"
  67078. abstract="false" native="false" synchronized="false"
  67079. static="true" final="false" visibility="public"
  67080. deprecated="not deprecated">
  67081. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  67082. <exception name="IOException" type="java.io.IOException"/>
  67083. <doc>
  67084. <![CDATA[Submit a job to the Map-Reduce framework.
  67085. This returns a handle to the {@link RunningJob} which can be used to track
  67086. the running-job.
  67087. @param conf the job configuration.
  67088. @return a handle to the {@link RunningJob} which can be used to track the
  67089. running-job.
  67090. @throws IOException]]>
  67091. </doc>
  67092. </method>
  67093. <method name="run" return="int"
  67094. abstract="false" native="false" synchronized="false"
  67095. static="false" final="false" visibility="public"
  67096. deprecated="not deprecated">
  67097. <param name="args" type="java.lang.String[]"/>
  67098. <exception name="Exception" type="java.lang.Exception"/>
  67099. </method>
  67100. <method name="main"
  67101. abstract="false" native="false" synchronized="false"
  67102. static="true" final="false" visibility="public"
  67103. deprecated="not deprecated">
  67104. <param name="args" type="java.lang.String[]"/>
  67105. <exception name="Exception" type="java.lang.Exception"/>
  67106. <doc>
  67107. <![CDATA[Submit a pipes job based on the command line arguments.
  67108. @param args]]>
  67109. </doc>
  67110. </method>
  67111. <field name="LOG" type="org.apache.commons.logging.Log"
  67112. transient="false" volatile="false"
  67113. static="true" final="true" visibility="protected"
  67114. deprecated="not deprecated">
  67115. </field>
  67116. <doc>
  67117. <![CDATA[The main entry point and job submitter. It may either be used as a command
  67118. line-based or API-based method to launch Pipes jobs.]]>
  67119. </doc>
  67120. </class>
  67121. <!-- end class org.apache.hadoop.mapred.pipes.Submitter -->
  67122. </package>
  67123. <package name="org.apache.hadoop.mapred.tools">
  67124. <!-- start class org.apache.hadoop.mapred.tools.MRAdmin -->
  67125. <class name="MRAdmin" extends="org.apache.hadoop.conf.Configured"
  67126. abstract="false"
  67127. static="false" final="false" visibility="public"
  67128. deprecated="not deprecated">
  67129. <implements name="org.apache.hadoop.util.Tool"/>
  67130. <constructor name="MRAdmin"
  67131. static="false" final="false" visibility="public"
  67132. deprecated="not deprecated">
  67133. </constructor>
  67134. <constructor name="MRAdmin" type="org.apache.hadoop.conf.Configuration"
  67135. static="false" final="false" visibility="public"
  67136. deprecated="not deprecated">
  67137. </constructor>
  67138. <method name="refreshSuperUserGroupsConfiguration" return="int"
  67139. abstract="false" native="false" synchronized="false"
  67140. static="false" final="false" visibility="public"
  67141. deprecated="not deprecated">
  67142. <exception name="IOException" type="java.io.IOException"/>
  67143. <doc>
  67144. <![CDATA[refreshSuperUserGroupsConfiguration {@link JobTracker}.
  67145. @return exitcode 0 on success, non-zero on failure
  67146. @throws IOException]]>
  67147. </doc>
  67148. </method>
  67149. <method name="run" return="int"
  67150. abstract="false" native="false" synchronized="false"
  67151. static="false" final="false" visibility="public"
  67152. deprecated="not deprecated">
  67153. <param name="args" type="java.lang.String[]"/>
  67154. <exception name="Exception" type="java.lang.Exception"/>
  67155. </method>
  67156. <method name="main"
  67157. abstract="false" native="false" synchronized="false"
  67158. static="true" final="false" visibility="public"
  67159. deprecated="not deprecated">
  67160. <param name="args" type="java.lang.String[]"/>
  67161. <exception name="Exception" type="java.lang.Exception"/>
  67162. </method>
  67163. <doc>
  67164. <![CDATA[Administrative access to Hadoop Map-Reduce.
  67165. Currently it only provides the ability to connect to the {@link JobTracker}
  67166. and 1) refresh the service-level authorization policy, 2) refresh queue acl
  67167. properties.]]>
  67168. </doc>
  67169. </class>
  67170. <!-- end class org.apache.hadoop.mapred.tools.MRAdmin -->
  67171. </package>
  67172. <package name="org.apache.hadoop.mapreduce">
  67173. <!-- start class org.apache.hadoop.mapreduce.ClusterMetrics -->
  67174. <class name="ClusterMetrics" extends="java.lang.Object"
  67175. abstract="false"
  67176. static="false" final="false" visibility="public"
  67177. deprecated="not deprecated">
  67178. <implements name="org.apache.hadoop.io.Writable"/>
  67179. <constructor name="ClusterMetrics"
  67180. static="false" final="false" visibility="public"
  67181. deprecated="not deprecated">
  67182. </constructor>
  67183. <constructor name="ClusterMetrics" type="int, int, int, int, int, int, int, int, int, int, int, int, int"
  67184. static="false" final="false" visibility="public"
  67185. deprecated="not deprecated">
  67186. </constructor>
  67187. <method name="getRunningMaps" return="int"
  67188. abstract="false" native="false" synchronized="false"
  67189. static="false" final="false" visibility="public"
  67190. deprecated="not deprecated">
  67191. <doc>
  67192. <![CDATA[Get the number of running map tasks in the cluster.
  67193. @return running maps]]>
  67194. </doc>
  67195. </method>
  67196. <method name="getRunningReduces" return="int"
  67197. abstract="false" native="false" synchronized="false"
  67198. static="false" final="false" visibility="public"
  67199. deprecated="not deprecated">
  67200. <doc>
  67201. <![CDATA[Get the number of running reduce tasks in the cluster.
  67202. @return running reduces]]>
  67203. </doc>
  67204. </method>
  67205. <method name="getOccupiedMapSlots" return="int"
  67206. abstract="false" native="false" synchronized="false"
  67207. static="false" final="false" visibility="public"
  67208. deprecated="not deprecated">
  67209. <doc>
  67210. <![CDATA[Get number of occupied map slots in the cluster.
  67211. @return occupied map slot count]]>
  67212. </doc>
  67213. </method>
  67214. <method name="getOccupiedReduceSlots" return="int"
  67215. abstract="false" native="false" synchronized="false"
  67216. static="false" final="false" visibility="public"
  67217. deprecated="not deprecated">
  67218. <doc>
  67219. <![CDATA[Get the number of occupied reduce slots in the cluster.
  67220. @return occupied reduce slot count]]>
  67221. </doc>
  67222. </method>
  67223. <method name="getReservedMapSlots" return="int"
  67224. abstract="false" native="false" synchronized="false"
  67225. static="false" final="false" visibility="public"
  67226. deprecated="not deprecated">
  67227. <doc>
  67228. <![CDATA[Get number of reserved map slots in the cluster.
  67229. @return reserved map slot count]]>
  67230. </doc>
  67231. </method>
  67232. <method name="getReservedReduceSlots" return="int"
  67233. abstract="false" native="false" synchronized="false"
  67234. static="false" final="false" visibility="public"
  67235. deprecated="not deprecated">
  67236. <doc>
  67237. <![CDATA[Get the number of reserved reduce slots in the cluster.
  67238. @return reserved reduce slot count]]>
  67239. </doc>
  67240. </method>
  67241. <method name="getMapSlotCapacity" return="int"
  67242. abstract="false" native="false" synchronized="false"
  67243. static="false" final="false" visibility="public"
  67244. deprecated="not deprecated">
  67245. <doc>
  67246. <![CDATA[Get the total number of map slots in the cluster.
  67247. @return map slot capacity]]>
  67248. </doc>
  67249. </method>
  67250. <method name="getReduceSlotCapacity" return="int"
  67251. abstract="false" native="false" synchronized="false"
  67252. static="false" final="false" visibility="public"
  67253. deprecated="not deprecated">
  67254. <doc>
  67255. <![CDATA[Get the total number of reduce slots in the cluster.
  67256. @return reduce slot capacity]]>
  67257. </doc>
  67258. </method>
  67259. <method name="getTotalJobSubmissions" return="int"
  67260. abstract="false" native="false" synchronized="false"
  67261. static="false" final="false" visibility="public"
  67262. deprecated="not deprecated">
  67263. <doc>
  67264. <![CDATA[Get the total number of job submissions in the cluster.
  67265. @return total number of job submissions]]>
  67266. </doc>
  67267. </method>
  67268. <method name="getTaskTrackerCount" return="int"
  67269. abstract="false" native="false" synchronized="false"
  67270. static="false" final="false" visibility="public"
  67271. deprecated="not deprecated">
  67272. <doc>
  67273. <![CDATA[Get the number of active trackers in the cluster.
  67274. @return active tracker count.]]>
  67275. </doc>
  67276. </method>
  67277. <method name="getBlackListedTaskTrackerCount" return="int"
  67278. abstract="false" native="false" synchronized="false"
  67279. static="false" final="false" visibility="public"
  67280. deprecated="not deprecated">
  67281. <doc>
  67282. <![CDATA[Get the number of blacklisted trackers in the cluster.
  67283. @return blacklisted tracker count]]>
  67284. </doc>
  67285. </method>
  67286. <method name="getGrayListedTaskTrackerCount" return="int"
  67287. abstract="false" native="false" synchronized="false"
  67288. static="false" final="false" visibility="public"
  67289. deprecated="not deprecated">
  67290. <doc>
  67291. <![CDATA[Get the number of graylisted trackers in the cluster.
  67292. @return graylisted tracker count]]>
  67293. </doc>
  67294. </method>
  67295. <method name="getDecommissionedTaskTrackerCount" return="int"
  67296. abstract="false" native="false" synchronized="false"
  67297. static="false" final="false" visibility="public"
  67298. deprecated="not deprecated">
  67299. <doc>
  67300. <![CDATA[Get the number of decommissioned trackers in the cluster.
  67301. @return decommissioned tracker count]]>
  67302. </doc>
  67303. </method>
  67304. <method name="readFields"
  67305. abstract="false" native="false" synchronized="false"
  67306. static="false" final="false" visibility="public"
  67307. deprecated="not deprecated">
  67308. <param name="in" type="java.io.DataInput"/>
  67309. <exception name="IOException" type="java.io.IOException"/>
  67310. </method>
  67311. <method name="write"
  67312. abstract="false" native="false" synchronized="false"
  67313. static="false" final="false" visibility="public"
  67314. deprecated="not deprecated">
  67315. <param name="out" type="java.io.DataOutput"/>
  67316. <exception name="IOException" type="java.io.IOException"/>
  67317. </method>
  67318. <doc>
  67319. <![CDATA[Status information on the current state of the Map-Reduce cluster.
  67320. <p><code>ClusterMetrics</code> provides clients with information such as:
  67321. <ol>
  67322. <li>
  67323. Size of the cluster.
  67324. </li>
  67325. <li>
  67326. Number of blacklisted and decommissioned trackers.
  67327. </li>
  67328. <li>
  67329. Slot capacity of the cluster.
  67330. </li>
  67331. <li>
  67332. The number of currently occupied/reserved map & reduce slots.
  67333. </li>
  67334. <li>
  67335. The number of currently running map & reduce tasks.
  67336. </li>
  67337. <li>
  67338. The number of job submissions.
  67339. </li>
  67340. </ol></p>]]>
  67341. </doc>
  67342. </class>
  67343. <!-- end class org.apache.hadoop.mapreduce.ClusterMetrics -->
  67344. <!-- start class org.apache.hadoop.mapreduce.Counter -->
  67345. <class name="Counter" extends="java.lang.Object"
  67346. abstract="false"
  67347. static="false" final="false" visibility="public"
  67348. deprecated="not deprecated">
  67349. <implements name="org.apache.hadoop.io.Writable"/>
  67350. <constructor name="Counter"
  67351. static="false" final="false" visibility="protected"
  67352. deprecated="not deprecated">
  67353. </constructor>
  67354. <constructor name="Counter" type="java.lang.String, java.lang.String"
  67355. static="false" final="false" visibility="protected"
  67356. deprecated="not deprecated">
  67357. </constructor>
  67358. <method name="setDisplayName"
  67359. abstract="false" native="false" synchronized="true"
  67360. static="false" final="false" visibility="protected"
  67361. deprecated="not deprecated">
  67362. <param name="displayName" type="java.lang.String"/>
  67363. </method>
  67364. <method name="readFields"
  67365. abstract="false" native="false" synchronized="true"
  67366. static="false" final="false" visibility="public"
  67367. deprecated="not deprecated">
  67368. <param name="in" type="java.io.DataInput"/>
  67369. <exception name="IOException" type="java.io.IOException"/>
  67370. <doc>
  67371. <![CDATA[Read the binary representation of the counter]]>
  67372. </doc>
  67373. </method>
  67374. <method name="write"
  67375. abstract="false" native="false" synchronized="true"
  67376. static="false" final="false" visibility="public"
  67377. deprecated="not deprecated">
  67378. <param name="out" type="java.io.DataOutput"/>
  67379. <exception name="IOException" type="java.io.IOException"/>
  67380. <doc>
  67381. <![CDATA[Write the binary representation of the counter]]>
  67382. </doc>
  67383. </method>
  67384. <method name="getName" return="java.lang.String"
  67385. abstract="false" native="false" synchronized="true"
  67386. static="false" final="false" visibility="public"
  67387. deprecated="not deprecated">
  67388. </method>
  67389. <method name="getDisplayName" return="java.lang.String"
  67390. abstract="false" native="false" synchronized="true"
  67391. static="false" final="false" visibility="public"
  67392. deprecated="not deprecated">
  67393. <doc>
  67394. <![CDATA[Get the name of the counter.
  67395. @return the user facing name of the counter]]>
  67396. </doc>
  67397. </method>
  67398. <method name="getValue" return="long"
  67399. abstract="false" native="false" synchronized="true"
  67400. static="false" final="false" visibility="public"
  67401. deprecated="not deprecated">
  67402. <doc>
  67403. <![CDATA[What is the current value of this counter?
  67404. @return the current value]]>
  67405. </doc>
  67406. </method>
  67407. <method name="setValue"
  67408. abstract="false" native="false" synchronized="true"
  67409. static="false" final="false" visibility="public"
  67410. deprecated="not deprecated">
  67411. <param name="value" type="long"/>
  67412. <doc>
  67413. <![CDATA[Set this counter by the given value
  67414. @param value the value to set]]>
  67415. </doc>
  67416. </method>
  67417. <method name="increment"
  67418. abstract="false" native="false" synchronized="true"
  67419. static="false" final="false" visibility="public"
  67420. deprecated="not deprecated">
  67421. <param name="incr" type="long"/>
  67422. <doc>
  67423. <![CDATA[Increment this counter by the given value
  67424. @param incr the value to increase this counter by]]>
  67425. </doc>
  67426. </method>
  67427. <method name="equals" return="boolean"
  67428. abstract="false" native="false" synchronized="true"
  67429. static="false" final="false" visibility="public"
  67430. deprecated="not deprecated">
  67431. <param name="genericRight" type="java.lang.Object"/>
  67432. </method>
  67433. <method name="hashCode" return="int"
  67434. abstract="false" native="false" synchronized="true"
  67435. static="false" final="false" visibility="public"
  67436. deprecated="not deprecated">
  67437. </method>
  67438. <doc>
  67439. <![CDATA[A named counter that tracks the progress of a map/reduce job.
  67440. <p><code>Counters</code> represent global counters, defined either by the
  67441. Map-Reduce framework or applications. Each <code>Counter</code> is named by
  67442. an {@link Enum} and has a long for the value.</p>
  67443. <p><code>Counters</code> are bunched into Groups, each comprising of
  67444. counters from a particular <code>Enum</code> class.]]>
  67445. </doc>
  67446. </class>
  67447. <!-- end class org.apache.hadoop.mapreduce.Counter -->
  67448. <!-- start class org.apache.hadoop.mapreduce.CounterGroup -->
  67449. <class name="CounterGroup" extends="java.lang.Object"
  67450. abstract="false"
  67451. static="false" final="false" visibility="public"
  67452. deprecated="not deprecated">
  67453. <implements name="org.apache.hadoop.io.Writable"/>
  67454. <implements name="java.lang.Iterable"/>
  67455. <constructor name="CounterGroup" type="java.lang.String"
  67456. static="false" final="false" visibility="protected"
  67457. deprecated="not deprecated">
  67458. </constructor>
  67459. <constructor name="CounterGroup" type="java.lang.String, java.lang.String"
  67460. static="false" final="false" visibility="protected"
  67461. deprecated="not deprecated">
  67462. </constructor>
  67463. <method name="getResourceBundle" return="java.util.ResourceBundle"
  67464. abstract="false" native="false" synchronized="false"
  67465. static="true" final="false" visibility="public"
  67466. deprecated="not deprecated">
  67467. <param name="enumClassName" type="java.lang.String"/>
  67468. <exception name="MissingResourceException" type="java.util.MissingResourceException"/>
  67469. <doc>
  67470. <![CDATA[Returns the specified resource bundle, or throws an exception.
  67471. @throws MissingResourceException if the bundle isn't found]]>
  67472. </doc>
  67473. </method>
  67474. <method name="getName" return="java.lang.String"
  67475. abstract="false" native="false" synchronized="true"
  67476. static="false" final="false" visibility="public"
  67477. deprecated="not deprecated">
  67478. <doc>
  67479. <![CDATA[Get the internal name of the group
  67480. @return the internal name]]>
  67481. </doc>
  67482. </method>
  67483. <method name="getDisplayName" return="java.lang.String"
  67484. abstract="false" native="false" synchronized="true"
  67485. static="false" final="false" visibility="public"
  67486. deprecated="not deprecated">
  67487. <doc>
  67488. <![CDATA[Get the display name of the group.
  67489. @return the human readable name]]>
  67490. </doc>
  67491. </method>
  67492. <method name="findCounter" return="org.apache.hadoop.mapreduce.Counter"
  67493. abstract="false" native="false" synchronized="false"
  67494. static="false" final="false" visibility="protected"
  67495. deprecated="not deprecated">
  67496. <param name="counterName" type="java.lang.String"/>
  67497. <param name="displayName" type="java.lang.String"/>
  67498. <doc>
  67499. <![CDATA[Internal to find a counter in a group.
  67500. @param counterName the name of the counter
  67501. @param displayName the display name of the counter
  67502. @return the counter that was found or added]]>
  67503. </doc>
  67504. </method>
  67505. <method name="findCounter" return="org.apache.hadoop.mapreduce.Counter"
  67506. abstract="false" native="false" synchronized="true"
  67507. static="false" final="false" visibility="public"
  67508. deprecated="not deprecated">
  67509. <param name="counterName" type="java.lang.String"/>
  67510. </method>
  67511. <method name="iterator" return="java.util.Iterator"
  67512. abstract="false" native="false" synchronized="true"
  67513. static="false" final="false" visibility="public"
  67514. deprecated="not deprecated">
  67515. </method>
  67516. <method name="write"
  67517. abstract="false" native="false" synchronized="true"
  67518. static="false" final="false" visibility="public"
  67519. deprecated="not deprecated">
  67520. <param name="out" type="java.io.DataOutput"/>
  67521. <exception name="IOException" type="java.io.IOException"/>
  67522. </method>
  67523. <method name="readFields"
  67524. abstract="false" native="false" synchronized="true"
  67525. static="false" final="false" visibility="public"
  67526. deprecated="not deprecated">
  67527. <param name="in" type="java.io.DataInput"/>
  67528. <exception name="IOException" type="java.io.IOException"/>
  67529. </method>
  67530. <method name="size" return="int"
  67531. abstract="false" native="false" synchronized="true"
  67532. static="false" final="false" visibility="public"
  67533. deprecated="not deprecated">
  67534. <doc>
  67535. <![CDATA[Returns the number of counters in this group.]]>
  67536. </doc>
  67537. </method>
  67538. <method name="equals" return="boolean"
  67539. abstract="false" native="false" synchronized="true"
  67540. static="false" final="false" visibility="public"
  67541. deprecated="not deprecated">
  67542. <param name="genericRight" type="java.lang.Object"/>
  67543. </method>
  67544. <method name="hashCode" return="int"
  67545. abstract="false" native="false" synchronized="true"
  67546. static="false" final="false" visibility="public"
  67547. deprecated="not deprecated">
  67548. </method>
  67549. <method name="incrAllCounters"
  67550. abstract="false" native="false" synchronized="true"
  67551. static="false" final="false" visibility="public"
  67552. deprecated="not deprecated">
  67553. <param name="rightGroup" type="org.apache.hadoop.mapreduce.CounterGroup"/>
  67554. </method>
  67555. <doc>
  67556. <![CDATA[A group of {@link Counter}s that logically belong together. Typically,
  67557. it is an {@link Enum} subclass and the counters are the values.]]>
  67558. </doc>
  67559. </class>
  67560. <!-- end class org.apache.hadoop.mapreduce.CounterGroup -->
  67561. <!-- start class org.apache.hadoop.mapreduce.Counters -->
  67562. <class name="Counters" extends="java.lang.Object"
  67563. abstract="false"
  67564. static="false" final="false" visibility="public"
  67565. deprecated="not deprecated">
  67566. <implements name="org.apache.hadoop.io.Writable"/>
  67567. <implements name="java.lang.Iterable"/>
  67568. <constructor name="Counters"
  67569. static="false" final="false" visibility="public"
  67570. deprecated="not deprecated">
  67571. </constructor>
  67572. <constructor name="Counters" type="org.apache.hadoop.mapred.Counters"
  67573. static="false" final="false" visibility="public"
  67574. deprecated="not deprecated">
  67575. </constructor>
  67576. <method name="findCounter" return="org.apache.hadoop.mapreduce.Counter"
  67577. abstract="false" native="false" synchronized="false"
  67578. static="false" final="false" visibility="public"
  67579. deprecated="not deprecated">
  67580. <param name="groupName" type="java.lang.String"/>
  67581. <param name="counterName" type="java.lang.String"/>
  67582. </method>
  67583. <method name="findCounter" return="org.apache.hadoop.mapreduce.Counter"
  67584. abstract="false" native="false" synchronized="true"
  67585. static="false" final="false" visibility="public"
  67586. deprecated="not deprecated">
  67587. <param name="key" type="java.lang.Enum"/>
  67588. <doc>
  67589. <![CDATA[Find the counter for the given enum. The same enum will always return the
  67590. same counter.
  67591. @param key the counter key
  67592. @return the matching counter object]]>
  67593. </doc>
  67594. </method>
  67595. <method name="getGroupNames" return="java.util.Collection"
  67596. abstract="false" native="false" synchronized="true"
  67597. static="false" final="false" visibility="public"
  67598. deprecated="not deprecated">
  67599. <doc>
  67600. <![CDATA[Returns the names of all counter classes.
  67601. @return Set of counter names.]]>
  67602. </doc>
  67603. </method>
  67604. <method name="iterator" return="java.util.Iterator"
  67605. abstract="false" native="false" synchronized="false"
  67606. static="false" final="false" visibility="public"
  67607. deprecated="not deprecated">
  67608. </method>
  67609. <method name="getGroup" return="org.apache.hadoop.mapreduce.CounterGroup"
  67610. abstract="false" native="false" synchronized="true"
  67611. static="false" final="false" visibility="public"
  67612. deprecated="not deprecated">
  67613. <param name="groupName" type="java.lang.String"/>
  67614. <doc>
  67615. <![CDATA[Returns the named counter group, or an empty group if there is none
  67616. with the specified name.]]>
  67617. </doc>
  67618. </method>
  67619. <method name="countCounters" return="int"
  67620. abstract="false" native="false" synchronized="true"
  67621. static="false" final="false" visibility="public"
  67622. deprecated="not deprecated">
  67623. <doc>
  67624. <![CDATA[Returns the total number of counters, by summing the number of counters
  67625. in each group.]]>
  67626. </doc>
  67627. </method>
  67628. <method name="write"
  67629. abstract="false" native="false" synchronized="true"
  67630. static="false" final="false" visibility="public"
  67631. deprecated="not deprecated">
  67632. <param name="out" type="java.io.DataOutput"/>
  67633. <exception name="IOException" type="java.io.IOException"/>
  67634. <doc>
  67635. <![CDATA[Write the set of groups.
  67636. The external format is:
  67637. #groups (groupName group)*
  67638. i.e. the number of groups followed by 0 or more groups, where each
  67639. group is of the form:
  67640. groupDisplayName #counters (false | true counter)*
  67641. where each counter is of the form:
  67642. name (false | true displayName) value]]>
  67643. </doc>
  67644. </method>
  67645. <method name="readFields"
  67646. abstract="false" native="false" synchronized="true"
  67647. static="false" final="false" visibility="public"
  67648. deprecated="not deprecated">
  67649. <param name="in" type="java.io.DataInput"/>
  67650. <exception name="IOException" type="java.io.IOException"/>
  67651. <doc>
  67652. <![CDATA[Read a set of groups.]]>
  67653. </doc>
  67654. </method>
  67655. <method name="toString" return="java.lang.String"
  67656. abstract="false" native="false" synchronized="true"
  67657. static="false" final="false" visibility="public"
  67658. deprecated="not deprecated">
  67659. <doc>
  67660. <![CDATA[Return textual representation of the counter values.]]>
  67661. </doc>
  67662. </method>
  67663. <method name="incrAllCounters"
  67664. abstract="false" native="false" synchronized="true"
  67665. static="false" final="false" visibility="public"
  67666. deprecated="not deprecated">
  67667. <param name="other" type="org.apache.hadoop.mapreduce.Counters"/>
  67668. <doc>
  67669. <![CDATA[Increments multiple counters by their amounts in another Counters
  67670. instance.
  67671. @param other the other Counters instance]]>
  67672. </doc>
  67673. </method>
  67674. <method name="equals" return="boolean"
  67675. abstract="false" native="false" synchronized="false"
  67676. static="false" final="false" visibility="public"
  67677. deprecated="not deprecated">
  67678. <param name="genericRight" type="java.lang.Object"/>
  67679. </method>
  67680. <method name="hashCode" return="int"
  67681. abstract="false" native="false" synchronized="false"
  67682. static="false" final="false" visibility="public"
  67683. deprecated="not deprecated">
  67684. </method>
  67685. </class>
  67686. <!-- end class org.apache.hadoop.mapreduce.Counters -->
  67687. <!-- start class org.apache.hadoop.mapreduce.ID -->
  67688. <class name="ID" extends="java.lang.Object"
  67689. abstract="true"
  67690. static="false" final="false" visibility="public"
  67691. deprecated="not deprecated">
  67692. <implements name="org.apache.hadoop.io.WritableComparable"/>
  67693. <constructor name="ID" type="int"
  67694. static="false" final="false" visibility="public"
  67695. deprecated="not deprecated">
  67696. <doc>
  67697. <![CDATA[constructs an ID object from the given int]]>
  67698. </doc>
  67699. </constructor>
  67700. <constructor name="ID"
  67701. static="false" final="false" visibility="protected"
  67702. deprecated="not deprecated">
  67703. </constructor>
  67704. <method name="getId" return="int"
  67705. abstract="false" native="false" synchronized="false"
  67706. static="false" final="false" visibility="public"
  67707. deprecated="not deprecated">
  67708. <doc>
  67709. <![CDATA[returns the int which represents the identifier]]>
  67710. </doc>
  67711. </method>
  67712. <method name="toString" return="java.lang.String"
  67713. abstract="false" native="false" synchronized="false"
  67714. static="false" final="false" visibility="public"
  67715. deprecated="not deprecated">
  67716. </method>
  67717. <method name="hashCode" return="int"
  67718. abstract="false" native="false" synchronized="false"
  67719. static="false" final="false" visibility="public"
  67720. deprecated="not deprecated">
  67721. </method>
  67722. <method name="equals" return="boolean"
  67723. abstract="false" native="false" synchronized="false"
  67724. static="false" final="false" visibility="public"
  67725. deprecated="not deprecated">
  67726. <param name="o" type="java.lang.Object"/>
  67727. </method>
  67728. <method name="compareTo" return="int"
  67729. abstract="false" native="false" synchronized="false"
  67730. static="false" final="false" visibility="public"
  67731. deprecated="not deprecated">
  67732. <param name="that" type="org.apache.hadoop.mapreduce.ID"/>
  67733. <doc>
  67734. <![CDATA[Compare IDs by associated numbers]]>
  67735. </doc>
  67736. </method>
  67737. <method name="readFields"
  67738. abstract="false" native="false" synchronized="false"
  67739. static="false" final="false" visibility="public"
  67740. deprecated="not deprecated">
  67741. <param name="in" type="java.io.DataInput"/>
  67742. <exception name="IOException" type="java.io.IOException"/>
  67743. </method>
  67744. <method name="write"
  67745. abstract="false" native="false" synchronized="false"
  67746. static="false" final="false" visibility="public"
  67747. deprecated="not deprecated">
  67748. <param name="out" type="java.io.DataOutput"/>
  67749. <exception name="IOException" type="java.io.IOException"/>
  67750. </method>
  67751. <field name="SEPARATOR" type="char"
  67752. transient="false" volatile="false"
  67753. static="true" final="true" visibility="protected"
  67754. deprecated="not deprecated">
  67755. </field>
  67756. <field name="id" type="int"
  67757. transient="false" volatile="false"
  67758. static="false" final="false" visibility="protected"
  67759. deprecated="not deprecated">
  67760. </field>
  67761. <doc>
  67762. <![CDATA[A general identifier, which internally stores the id
  67763. as an integer. This is the super class of {@link JobID},
  67764. {@link TaskID} and {@link TaskAttemptID}.
  67765. @see JobID
  67766. @see TaskID
  67767. @see TaskAttemptID]]>
  67768. </doc>
  67769. </class>
  67770. <!-- end class org.apache.hadoop.mapreduce.ID -->
  67771. <!-- start class org.apache.hadoop.mapreduce.InputFormat -->
  67772. <class name="InputFormat" extends="java.lang.Object"
  67773. abstract="true"
  67774. static="false" final="false" visibility="public"
  67775. deprecated="not deprecated">
  67776. <constructor name="InputFormat"
  67777. static="false" final="false" visibility="public"
  67778. deprecated="not deprecated">
  67779. </constructor>
  67780. <method name="getSplits" return="java.util.List"
  67781. abstract="true" native="false" synchronized="false"
  67782. static="false" final="false" visibility="public"
  67783. deprecated="not deprecated">
  67784. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  67785. <exception name="IOException" type="java.io.IOException"/>
  67786. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67787. <doc>
  67788. <![CDATA[Logically split the set of input files for the job.
  67789. <p>Each {@link InputSplit} is then assigned to an individual {@link Mapper}
  67790. for processing.</p>
  67791. <p><i>Note</i>: The split is a <i>logical</i> split of the inputs and the
  67792. input files are not physically split into chunks. For e.g. a split could
  67793. be <i>&lt;input-file-path, start, offset&gt;</i> tuple. The InputFormat
  67794. also creates the {@link RecordReader} to read the {@link InputSplit}.
  67795. @param context job configuration.
  67796. @return an array of {@link InputSplit}s for the job.]]>
  67797. </doc>
  67798. </method>
  67799. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  67800. abstract="true" native="false" synchronized="false"
  67801. static="false" final="false" visibility="public"
  67802. deprecated="not deprecated">
  67803. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  67804. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  67805. <exception name="IOException" type="java.io.IOException"/>
  67806. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67807. <doc>
  67808. <![CDATA[Create a record reader for a given split. The framework will call
  67809. {@link RecordReader#initialize(InputSplit, TaskAttemptContext)} before
  67810. the split is used.
  67811. @param split the split to be read
  67812. @param context the information about the task
  67813. @return a new record reader
  67814. @throws IOException
  67815. @throws InterruptedException]]>
  67816. </doc>
  67817. </method>
  67818. <doc>
  67819. <![CDATA[<code>InputFormat</code> describes the input-specification for a
  67820. Map-Reduce job.
  67821. <p>The Map-Reduce framework relies on the <code>InputFormat</code> of the
  67822. job to:<p>
  67823. <ol>
  67824. <li>
  67825. Validate the input-specification of the job.
  67826. <li>
  67827. Split-up the input file(s) into logical {@link InputSplit}s, each of
  67828. which is then assigned to an individual {@link Mapper}.
  67829. </li>
  67830. <li>
  67831. Provide the {@link RecordReader} implementation to be used to glean
  67832. input records from the logical <code>InputSplit</code> for processing by
  67833. the {@link Mapper}.
  67834. </li>
  67835. </ol>
  67836. <p>The default behavior of file-based {@link InputFormat}s, typically
  67837. sub-classes of {@link FileInputFormat}, is to split the
  67838. input into <i>logical</i> {@link InputSplit}s based on the total size, in
  67839. bytes, of the input files. However, the {@link FileSystem} blocksize of
  67840. the input files is treated as an upper bound for input splits. A lower bound
  67841. on the split size can be set via
  67842. <a href="{@docRoot}/../mapred-default.html#mapred.min.split.size">
  67843. mapred.min.split.size</a>.</p>
  67844. <p>Clearly, logical splits based on input-size is insufficient for many
  67845. applications since record boundaries are to respected. In such cases, the
  67846. application has to also implement a {@link RecordReader} on whom lies the
  67847. responsibility to respect record-boundaries and present a record-oriented
  67848. view of the logical <code>InputSplit</code> to the individual task.
  67849. @see InputSplit
  67850. @see RecordReader
  67851. @see FileInputFormat]]>
  67852. </doc>
  67853. </class>
  67854. <!-- end class org.apache.hadoop.mapreduce.InputFormat -->
  67855. <!-- start class org.apache.hadoop.mapreduce.InputSplit -->
  67856. <class name="InputSplit" extends="java.lang.Object"
  67857. abstract="true"
  67858. static="false" final="false" visibility="public"
  67859. deprecated="not deprecated">
  67860. <constructor name="InputSplit"
  67861. static="false" final="false" visibility="public"
  67862. deprecated="not deprecated">
  67863. </constructor>
  67864. <method name="getLength" return="long"
  67865. abstract="true" native="false" synchronized="false"
  67866. static="false" final="false" visibility="public"
  67867. deprecated="not deprecated">
  67868. <exception name="IOException" type="java.io.IOException"/>
  67869. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67870. <doc>
  67871. <![CDATA[Get the size of the split, so that the input splits can be sorted by size.
  67872. @return the number of bytes in the split
  67873. @throws IOException
  67874. @throws InterruptedException]]>
  67875. </doc>
  67876. </method>
  67877. <method name="getLocations" return="java.lang.String[]"
  67878. abstract="true" native="false" synchronized="false"
  67879. static="false" final="false" visibility="public"
  67880. deprecated="not deprecated">
  67881. <exception name="IOException" type="java.io.IOException"/>
  67882. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  67883. <doc>
  67884. <![CDATA[Get the list of nodes by name where the data for the split would be local.
  67885. The locations do not need to be serialized.
  67886. @return a new array of the node nodes.
  67887. @throws IOException
  67888. @throws InterruptedException]]>
  67889. </doc>
  67890. </method>
  67891. <doc>
  67892. <![CDATA[<code>InputSplit</code> represents the data to be processed by an
  67893. individual {@link Mapper}.
  67894. <p>Typically, it presents a byte-oriented view on the input and is the
  67895. responsibility of {@link RecordReader} of the job to process this and present
  67896. a record-oriented view.
  67897. @see InputFormat
  67898. @see RecordReader]]>
  67899. </doc>
  67900. </class>
  67901. <!-- end class org.apache.hadoop.mapreduce.InputSplit -->
  67902. <!-- start class org.apache.hadoop.mapreduce.Job -->
  67903. <class name="Job" extends="org.apache.hadoop.mapreduce.JobContext"
  67904. abstract="false"
  67905. static="false" final="false" visibility="public"
  67906. deprecated="not deprecated">
  67907. <constructor name="Job"
  67908. static="false" final="false" visibility="public"
  67909. deprecated="not deprecated">
  67910. <exception name="IOException" type="java.io.IOException"/>
  67911. </constructor>
  67912. <constructor name="Job" type="org.apache.hadoop.conf.Configuration"
  67913. static="false" final="false" visibility="public"
  67914. deprecated="not deprecated">
  67915. <exception name="IOException" type="java.io.IOException"/>
  67916. </constructor>
  67917. <constructor name="Job" type="org.apache.hadoop.conf.Configuration, java.lang.String"
  67918. static="false" final="false" visibility="public"
  67919. deprecated="not deprecated">
  67920. <exception name="IOException" type="java.io.IOException"/>
  67921. </constructor>
  67922. <method name="getInstance" return="org.apache.hadoop.mapreduce.Job"
  67923. abstract="false" native="false" synchronized="false"
  67924. static="true" final="false" visibility="public"
  67925. deprecated="not deprecated">
  67926. <exception name="IOException" type="java.io.IOException"/>
  67927. <doc>
  67928. <![CDATA[Creates a new {@link Job}
  67929. A Job will be created with a generic {@link Configuration}.
  67930. @return the {@link Job}
  67931. @throws IOException]]>
  67932. </doc>
  67933. </method>
  67934. <method name="getInstance" return="org.apache.hadoop.mapreduce.Job"
  67935. abstract="false" native="false" synchronized="false"
  67936. static="true" final="false" visibility="public"
  67937. deprecated="not deprecated">
  67938. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  67939. <exception name="IOException" type="java.io.IOException"/>
  67940. <doc>
  67941. <![CDATA[Creates a new {@link Job} with a given {@link Configuration}.
  67942. The <code>Job</code> makes a copy of the <code>Configuration</code> so
  67943. that any necessary internal modifications do not reflect on the incoming
  67944. parameter.
  67945. @param conf the {@link Configuration}
  67946. @return the {@link Job}
  67947. @throws IOException]]>
  67948. </doc>
  67949. </method>
  67950. <method name="getInstance" return="org.apache.hadoop.mapreduce.Job"
  67951. abstract="false" native="false" synchronized="false"
  67952. static="true" final="false" visibility="public"
  67953. deprecated="not deprecated">
  67954. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  67955. <param name="jobName" type="java.lang.String"/>
  67956. <exception name="IOException" type="java.io.IOException"/>
  67957. <doc>
  67958. <![CDATA[Creates a new {@link Job} with a given {@link Configuration}
  67959. and a given jobName.
  67960. The <code>Job</code> makes a copy of the <code>Configuration</code> so
  67961. that any necessary internal modifications do not reflect on the incoming
  67962. parameter.
  67963. @param conf the {@link Configuration}
  67964. @param jobName the job instance's name
  67965. @return the {@link Job}
  67966. @throws IOException]]>
  67967. </doc>
  67968. </method>
  67969. <method name="setNumReduceTasks"
  67970. abstract="false" native="false" synchronized="false"
  67971. static="false" final="false" visibility="public"
  67972. deprecated="not deprecated">
  67973. <param name="tasks" type="int"/>
  67974. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  67975. <doc>
  67976. <![CDATA[Set the number of reduce tasks for the job.
  67977. @param tasks the number of reduce tasks
  67978. @throws IllegalStateException if the job is submitted]]>
  67979. </doc>
  67980. </method>
  67981. <method name="setWorkingDirectory"
  67982. abstract="false" native="false" synchronized="false"
  67983. static="false" final="false" visibility="public"
  67984. deprecated="not deprecated">
  67985. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  67986. <exception name="IOException" type="java.io.IOException"/>
  67987. <doc>
  67988. <![CDATA[Set the current working directory for the default file system.
  67989. @param dir the new current working directory.
  67990. @throws IllegalStateException if the job is submitted]]>
  67991. </doc>
  67992. </method>
  67993. <method name="setInputFormatClass"
  67994. abstract="false" native="false" synchronized="false"
  67995. static="false" final="false" visibility="public"
  67996. deprecated="not deprecated">
  67997. <param name="cls" type="java.lang.Class"/>
  67998. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  67999. <doc>
  68000. <![CDATA[Set the {@link InputFormat} for the job.
  68001. @param cls the <code>InputFormat</code> to use
  68002. @throws IllegalStateException if the job is submitted]]>
  68003. </doc>
  68004. </method>
  68005. <method name="setOutputFormatClass"
  68006. abstract="false" native="false" synchronized="false"
  68007. static="false" final="false" visibility="public"
  68008. deprecated="not deprecated">
  68009. <param name="cls" type="java.lang.Class"/>
  68010. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  68011. <doc>
  68012. <![CDATA[Set the {@link OutputFormat} for the job.
  68013. @param cls the <code>OutputFormat</code> to use
  68014. @throws IllegalStateException if the job is submitted]]>
  68015. </doc>
  68016. </method>
  68017. <method name="setMapperClass"
  68018. abstract="false" native="false" synchronized="false"
  68019. static="false" final="false" visibility="public"
  68020. deprecated="not deprecated">
  68021. <param name="cls" type="java.lang.Class"/>
  68022. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  68023. <doc>
  68024. <![CDATA[Set the {@link Mapper} for the job.
  68025. @param cls the <code>Mapper</code> to use
  68026. @throws IllegalStateException if the job is submitted]]>
  68027. </doc>
  68028. </method>
  68029. <method name="setJarByClass"
  68030. abstract="false" native="false" synchronized="false"
  68031. static="false" final="false" visibility="public"
  68032. deprecated="not deprecated">
  68033. <param name="cls" type="java.lang.Class"/>
  68034. <doc>
  68035. <![CDATA[Set the Jar by finding where a given class came from.
  68036. @param cls the example class]]>
  68037. </doc>
  68038. </method>
  68039. <method name="getJar" return="java.lang.String"
  68040. abstract="false" native="false" synchronized="false"
  68041. static="false" final="false" visibility="public"
  68042. deprecated="not deprecated">
  68043. <doc>
  68044. <![CDATA[Get the pathname of the job's jar.
  68045. @return the pathname]]>
  68046. </doc>
  68047. </method>
  68048. <method name="setCombinerClass"
  68049. abstract="false" native="false" synchronized="false"
  68050. static="false" final="false" visibility="public"
  68051. deprecated="not deprecated">
  68052. <param name="cls" type="java.lang.Class"/>
  68053. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  68054. <doc>
  68055. <![CDATA[Set the combiner class for the job.
  68056. @param cls the combiner to use
  68057. @throws IllegalStateException if the job is submitted]]>
  68058. </doc>
  68059. </method>
  68060. <method name="setReducerClass"
  68061. abstract="false" native="false" synchronized="false"
  68062. static="false" final="false" visibility="public"
  68063. deprecated="not deprecated">
  68064. <param name="cls" type="java.lang.Class"/>
  68065. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  68066. <doc>
  68067. <![CDATA[Set the {@link Reducer} for the job.
  68068. @param cls the <code>Reducer</code> to use
  68069. @throws IllegalStateException if the job is submitted]]>
  68070. </doc>
  68071. </method>
  68072. <method name="setPartitionerClass"
  68073. abstract="false" native="false" synchronized="false"
  68074. static="false" final="false" visibility="public"
  68075. deprecated="not deprecated">
  68076. <param name="cls" type="java.lang.Class"/>
  68077. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  68078. <doc>
  68079. <![CDATA[Set the {@link Partitioner} for the job.
  68080. @param cls the <code>Partitioner</code> to use
  68081. @throws IllegalStateException if the job is submitted]]>
  68082. </doc>
  68083. </method>
  68084. <method name="setMapOutputKeyClass"
  68085. abstract="false" native="false" synchronized="false"
  68086. static="false" final="false" visibility="public"
  68087. deprecated="not deprecated">
  68088. <param name="theClass" type="java.lang.Class"/>
  68089. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  68090. <doc>
  68091. <![CDATA[Set the key class for the map output data. This allows the user to
  68092. specify the map output key class to be different than the final output
  68093. value class.
  68094. @param theClass the map output key class.
  68095. @throws IllegalStateException if the job is submitted]]>
  68096. </doc>
  68097. </method>
  68098. <method name="setMapOutputValueClass"
  68099. abstract="false" native="false" synchronized="false"
  68100. static="false" final="false" visibility="public"
  68101. deprecated="not deprecated">
  68102. <param name="theClass" type="java.lang.Class"/>
  68103. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  68104. <doc>
  68105. <![CDATA[Set the value class for the map output data. This allows the user to
  68106. specify the map output value class to be different than the final output
  68107. value class.
  68108. @param theClass the map output value class.
  68109. @throws IllegalStateException if the job is submitted]]>
  68110. </doc>
  68111. </method>
  68112. <method name="setOutputKeyClass"
  68113. abstract="false" native="false" synchronized="false"
  68114. static="false" final="false" visibility="public"
  68115. deprecated="not deprecated">
  68116. <param name="theClass" type="java.lang.Class"/>
  68117. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  68118. <doc>
  68119. <![CDATA[Set the key class for the job output data.
  68120. @param theClass the key class for the job output data.
  68121. @throws IllegalStateException if the job is submitted]]>
  68122. </doc>
  68123. </method>
  68124. <method name="setOutputValueClass"
  68125. abstract="false" native="false" synchronized="false"
  68126. static="false" final="false" visibility="public"
  68127. deprecated="not deprecated">
  68128. <param name="theClass" type="java.lang.Class"/>
  68129. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  68130. <doc>
  68131. <![CDATA[Set the value class for job outputs.
  68132. @param theClass the value class for job outputs.
  68133. @throws IllegalStateException if the job is submitted]]>
  68134. </doc>
  68135. </method>
  68136. <method name="setSortComparatorClass"
  68137. abstract="false" native="false" synchronized="false"
  68138. static="false" final="false" visibility="public"
  68139. deprecated="not deprecated">
  68140. <param name="cls" type="java.lang.Class"/>
  68141. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  68142. <doc>
  68143. <![CDATA[Define the comparator that controls how the keys are sorted before they
  68144. are passed to the {@link Reducer}.
  68145. @param cls the raw comparator
  68146. @throws IllegalStateException if the job is submitted]]>
  68147. </doc>
  68148. </method>
  68149. <method name="setGroupingComparatorClass"
  68150. abstract="false" native="false" synchronized="false"
  68151. static="false" final="false" visibility="public"
  68152. deprecated="not deprecated">
  68153. <param name="cls" type="java.lang.Class"/>
  68154. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  68155. <doc>
  68156. <![CDATA[Define the comparator that controls which keys are grouped together
  68157. for a single call to
  68158. {@link Reducer#reduce(Object, Iterable,
  68159. org.apache.hadoop.mapreduce.Reducer.Context)}
  68160. @param cls the raw comparator to use
  68161. @throws IllegalStateException if the job is submitted]]>
  68162. </doc>
  68163. </method>
  68164. <method name="setJobName"
  68165. abstract="false" native="false" synchronized="false"
  68166. static="false" final="false" visibility="public"
  68167. deprecated="not deprecated">
  68168. <param name="name" type="java.lang.String"/>
  68169. <exception name="IllegalStateException" type="java.lang.IllegalStateException"/>
  68170. <doc>
  68171. <![CDATA[Set the user-specified job name.
  68172. @param name the job's new name.
  68173. @throws IllegalStateException if the job is submitted]]>
  68174. </doc>
  68175. </method>
  68176. <method name="setSpeculativeExecution"
  68177. abstract="false" native="false" synchronized="false"
  68178. static="false" final="false" visibility="public"
  68179. deprecated="not deprecated">
  68180. <param name="speculativeExecution" type="boolean"/>
  68181. <doc>
  68182. <![CDATA[Turn speculative execution on or off for this job.
  68183. @param speculativeExecution <code>true</code> if speculative execution
  68184. should be turned on, else <code>false</code>.]]>
  68185. </doc>
  68186. </method>
  68187. <method name="setMapSpeculativeExecution"
  68188. abstract="false" native="false" synchronized="false"
  68189. static="false" final="false" visibility="public"
  68190. deprecated="not deprecated">
  68191. <param name="speculativeExecution" type="boolean"/>
  68192. <doc>
  68193. <![CDATA[Turn speculative execution on or off for this job for map tasks.
  68194. @param speculativeExecution <code>true</code> if speculative execution
  68195. should be turned on for map tasks,
  68196. else <code>false</code>.]]>
  68197. </doc>
  68198. </method>
  68199. <method name="setReduceSpeculativeExecution"
  68200. abstract="false" native="false" synchronized="false"
  68201. static="false" final="false" visibility="public"
  68202. deprecated="not deprecated">
  68203. <param name="speculativeExecution" type="boolean"/>
  68204. <doc>
  68205. <![CDATA[Turn speculative execution on or off for this job for reduce tasks.
  68206. @param speculativeExecution <code>true</code> if speculative execution
  68207. should be turned on for reduce tasks,
  68208. else <code>false</code>.]]>
  68209. </doc>
  68210. </method>
  68211. <method name="getTrackingURL" return="java.lang.String"
  68212. abstract="false" native="false" synchronized="false"
  68213. static="false" final="false" visibility="public"
  68214. deprecated="not deprecated">
  68215. <doc>
  68216. <![CDATA[Get the URL where some job progress information will be displayed.
  68217. @return the URL where some job progress information will be displayed.]]>
  68218. </doc>
  68219. </method>
  68220. <method name="setupProgress" return="float"
  68221. abstract="false" native="false" synchronized="false"
  68222. static="false" final="false" visibility="public"
  68223. deprecated="not deprecated">
  68224. <exception name="IOException" type="java.io.IOException"/>
  68225. <doc>
  68226. <![CDATA[Get the <i>progress</i> of the job's setup, as a float between 0.0
  68227. and 1.0. When the job setup is completed, the function returns 1.0.
  68228. @return the progress of the job's setup.
  68229. @throws IOException]]>
  68230. </doc>
  68231. </method>
  68232. <method name="mapProgress" return="float"
  68233. abstract="false" native="false" synchronized="false"
  68234. static="false" final="false" visibility="public"
  68235. deprecated="not deprecated">
  68236. <exception name="IOException" type="java.io.IOException"/>
  68237. <doc>
  68238. <![CDATA[Get the <i>progress</i> of the job's map-tasks, as a float between 0.0
  68239. and 1.0. When all map tasks have completed, the function returns 1.0.
  68240. @return the progress of the job's map-tasks.
  68241. @throws IOException]]>
  68242. </doc>
  68243. </method>
  68244. <method name="reduceProgress" return="float"
  68245. abstract="false" native="false" synchronized="false"
  68246. static="false" final="false" visibility="public"
  68247. deprecated="not deprecated">
  68248. <exception name="IOException" type="java.io.IOException"/>
  68249. <doc>
  68250. <![CDATA[Get the <i>progress</i> of the job's reduce-tasks, as a float between 0.0
  68251. and 1.0. When all reduce tasks have completed, the function returns 1.0.
  68252. @return the progress of the job's reduce-tasks.
  68253. @throws IOException]]>
  68254. </doc>
  68255. </method>
  68256. <method name="isComplete" return="boolean"
  68257. abstract="false" native="false" synchronized="false"
  68258. static="false" final="false" visibility="public"
  68259. deprecated="not deprecated">
  68260. <exception name="IOException" type="java.io.IOException"/>
  68261. <doc>
  68262. <![CDATA[Check if the job is finished or not.
  68263. This is a non-blocking call.
  68264. @return <code>true</code> if the job is complete, else <code>false</code>.
  68265. @throws IOException]]>
  68266. </doc>
  68267. </method>
  68268. <method name="isSuccessful" return="boolean"
  68269. abstract="false" native="false" synchronized="false"
  68270. static="false" final="false" visibility="public"
  68271. deprecated="not deprecated">
  68272. <exception name="IOException" type="java.io.IOException"/>
  68273. <doc>
  68274. <![CDATA[Check if the job completed successfully.
  68275. @return <code>true</code> if the job succeeded, else <code>false</code>.
  68276. @throws IOException]]>
  68277. </doc>
  68278. </method>
  68279. <method name="killJob"
  68280. abstract="false" native="false" synchronized="false"
  68281. static="false" final="false" visibility="public"
  68282. deprecated="not deprecated">
  68283. <exception name="IOException" type="java.io.IOException"/>
  68284. <doc>
  68285. <![CDATA[Kill the running job. Blocks until all job tasks have been
  68286. killed as well. If the job is no longer running, it simply returns.
  68287. @throws IOException]]>
  68288. </doc>
  68289. </method>
  68290. <method name="getTaskCompletionEvents" return="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  68291. abstract="false" native="false" synchronized="false"
  68292. static="false" final="false" visibility="public"
  68293. deprecated="not deprecated">
  68294. <param name="startFrom" type="int"/>
  68295. <exception name="IOException" type="java.io.IOException"/>
  68296. <doc>
  68297. <![CDATA[Get events indicating completion (success/failure) of component tasks.
  68298. @param startFrom index to start fetching events from
  68299. @return an array of {@link TaskCompletionEvent}s
  68300. @throws IOException]]>
  68301. </doc>
  68302. </method>
  68303. <method name="killTask"
  68304. abstract="false" native="false" synchronized="false"
  68305. static="false" final="false" visibility="public"
  68306. deprecated="not deprecated">
  68307. <param name="taskId" type="org.apache.hadoop.mapreduce.TaskAttemptID"/>
  68308. <exception name="IOException" type="java.io.IOException"/>
  68309. <doc>
  68310. <![CDATA[Kill indicated task attempt.
  68311. @param taskId the id of the task to be terminated.
  68312. @throws IOException]]>
  68313. </doc>
  68314. </method>
  68315. <method name="failTask"
  68316. abstract="false" native="false" synchronized="false"
  68317. static="false" final="false" visibility="public"
  68318. deprecated="not deprecated">
  68319. <param name="taskId" type="org.apache.hadoop.mapreduce.TaskAttemptID"/>
  68320. <exception name="IOException" type="java.io.IOException"/>
  68321. <doc>
  68322. <![CDATA[Fail indicated task attempt.
  68323. @param taskId the id of the task to be terminated.
  68324. @throws IOException]]>
  68325. </doc>
  68326. </method>
  68327. <method name="getCounters" return="org.apache.hadoop.mapreduce.Counters"
  68328. abstract="false" native="false" synchronized="false"
  68329. static="false" final="false" visibility="public"
  68330. deprecated="not deprecated">
  68331. <exception name="IOException" type="java.io.IOException"/>
  68332. <doc>
  68333. <![CDATA[Gets the counters for this job.
  68334. @return the counters for this job.
  68335. @throws IOException]]>
  68336. </doc>
  68337. </method>
  68338. <method name="setCancelDelegationTokenUponJobCompletion"
  68339. abstract="false" native="false" synchronized="false"
  68340. static="false" final="false" visibility="public"
  68341. deprecated="not deprecated">
  68342. <param name="value" type="boolean"/>
  68343. <doc>
  68344. <![CDATA[Sets the flag that will allow the JobTracker to cancel the HDFS delegation
  68345. tokens upon job completion. Defaults to true.]]>
  68346. </doc>
  68347. </method>
  68348. <method name="submit"
  68349. abstract="false" native="false" synchronized="false"
  68350. static="false" final="false" visibility="public"
  68351. deprecated="not deprecated">
  68352. <exception name="IOException" type="java.io.IOException"/>
  68353. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68354. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  68355. <doc>
  68356. <![CDATA[Submit the job to the cluster and return immediately.
  68357. @throws IOException]]>
  68358. </doc>
  68359. </method>
  68360. <method name="waitForCompletion" return="boolean"
  68361. abstract="false" native="false" synchronized="false"
  68362. static="false" final="false" visibility="public"
  68363. deprecated="not deprecated">
  68364. <param name="verbose" type="boolean"/>
  68365. <exception name="IOException" type="java.io.IOException"/>
  68366. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  68367. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  68368. <doc>
  68369. <![CDATA[Submit the job to the cluster and wait for it to finish.
  68370. @param verbose print the progress to the user
  68371. @return true if the job succeeded
  68372. @throws IOException thrown if the communication with the
  68373. <code>JobTracker</code> is lost]]>
  68374. </doc>
  68375. </method>
  68376. <doc>
  68377. <![CDATA[The job submitter's view of the Job. It allows the user to configure the
  68378. job, submit it, control its execution, and query the state. The set methods
  68379. only work until the job is submitted, afterwards they will throw an
  68380. IllegalStateException.]]>
  68381. </doc>
  68382. </class>
  68383. <!-- end class org.apache.hadoop.mapreduce.Job -->
  68384. <!-- start class org.apache.hadoop.mapreduce.Job.JobState -->
  68385. <class name="Job.JobState" extends="java.lang.Enum"
  68386. abstract="false"
  68387. static="true" final="true" visibility="public"
  68388. deprecated="not deprecated">
  68389. <method name="values" return="org.apache.hadoop.mapreduce.Job.JobState[]"
  68390. abstract="false" native="false" synchronized="false"
  68391. static="true" final="false" visibility="public"
  68392. deprecated="not deprecated">
  68393. </method>
  68394. <method name="valueOf" return="org.apache.hadoop.mapreduce.Job.JobState"
  68395. abstract="false" native="false" synchronized="false"
  68396. static="true" final="false" visibility="public"
  68397. deprecated="not deprecated">
  68398. <param name="name" type="java.lang.String"/>
  68399. </method>
  68400. <field name="DEFINE" type="org.apache.hadoop.mapreduce.Job.JobState"
  68401. transient="false" volatile="false"
  68402. static="true" final="true" visibility="public"
  68403. deprecated="not deprecated">
  68404. </field>
  68405. <field name="RUNNING" type="org.apache.hadoop.mapreduce.Job.JobState"
  68406. transient="false" volatile="false"
  68407. static="true" final="true" visibility="public"
  68408. deprecated="not deprecated">
  68409. </field>
  68410. </class>
  68411. <!-- end class org.apache.hadoop.mapreduce.Job.JobState -->
  68412. <!-- start class org.apache.hadoop.mapreduce.JobACL -->
  68413. <class name="JobACL" extends="java.lang.Enum"
  68414. abstract="false"
  68415. static="false" final="true" visibility="public"
  68416. deprecated="not deprecated">
  68417. <method name="values" return="org.apache.hadoop.mapreduce.JobACL[]"
  68418. abstract="false" native="false" synchronized="false"
  68419. static="true" final="false" visibility="public"
  68420. deprecated="not deprecated">
  68421. </method>
  68422. <method name="valueOf" return="org.apache.hadoop.mapreduce.JobACL"
  68423. abstract="false" native="false" synchronized="false"
  68424. static="true" final="false" visibility="public"
  68425. deprecated="not deprecated">
  68426. <param name="name" type="java.lang.String"/>
  68427. </method>
  68428. <method name="getAclName" return="java.lang.String"
  68429. abstract="false" native="false" synchronized="false"
  68430. static="false" final="false" visibility="public"
  68431. deprecated="not deprecated">
  68432. <doc>
  68433. <![CDATA[Get the name of the ACL. Here it is same as the name of the configuration
  68434. property for specifying the ACL for the job.
  68435. @return aclName]]>
  68436. </doc>
  68437. </method>
  68438. <field name="VIEW_JOB" type="org.apache.hadoop.mapreduce.JobACL"
  68439. transient="false" volatile="false"
  68440. static="true" final="true" visibility="public"
  68441. deprecated="not deprecated">
  68442. <doc>
  68443. <![CDATA[ACL for 'viewing' job. Dictates who can 'view' some or all of the job
  68444. related details.]]>
  68445. </doc>
  68446. </field>
  68447. <field name="MODIFY_JOB" type="org.apache.hadoop.mapreduce.JobACL"
  68448. transient="false" volatile="false"
  68449. static="true" final="true" visibility="public"
  68450. deprecated="not deprecated">
  68451. <doc>
  68452. <![CDATA[ACL for 'modifying' job. Dictates who can 'modify' the job for e.g., by
  68453. killing the job, killing/failing a task of the job or setting priority of
  68454. the job.]]>
  68455. </doc>
  68456. </field>
  68457. <doc>
  68458. <![CDATA[Job related ACLs]]>
  68459. </doc>
  68460. </class>
  68461. <!-- end class org.apache.hadoop.mapreduce.JobACL -->
  68462. <!-- start class org.apache.hadoop.mapreduce.JobContext -->
  68463. <class name="JobContext" extends="java.lang.Object"
  68464. abstract="false"
  68465. static="false" final="false" visibility="public"
  68466. deprecated="not deprecated">
  68467. <constructor name="JobContext" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapreduce.JobID"
  68468. static="false" final="false" visibility="public"
  68469. deprecated="not deprecated">
  68470. </constructor>
  68471. <method name="getConfiguration" return="org.apache.hadoop.conf.Configuration"
  68472. abstract="false" native="false" synchronized="false"
  68473. static="false" final="false" visibility="public"
  68474. deprecated="not deprecated">
  68475. <doc>
  68476. <![CDATA[Return the configuration for the job.
  68477. @return the shared configuration object]]>
  68478. </doc>
  68479. </method>
  68480. <method name="getCredentials" return="org.apache.hadoop.security.Credentials"
  68481. abstract="false" native="false" synchronized="false"
  68482. static="false" final="false" visibility="public"
  68483. deprecated="not deprecated">
  68484. <doc>
  68485. <![CDATA[Get credentials for the job.
  68486. @return credentials for the job]]>
  68487. </doc>
  68488. </method>
  68489. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  68490. abstract="false" native="false" synchronized="false"
  68491. static="false" final="false" visibility="public"
  68492. deprecated="not deprecated">
  68493. <doc>
  68494. <![CDATA[Get the unique ID for the job.
  68495. @return the object with the job id]]>
  68496. </doc>
  68497. </method>
  68498. <method name="getNumReduceTasks" return="int"
  68499. abstract="false" native="false" synchronized="false"
  68500. static="false" final="false" visibility="public"
  68501. deprecated="not deprecated">
  68502. <doc>
  68503. <![CDATA[Get configured the number of reduce tasks for this job. Defaults to
  68504. <code>1</code>.
  68505. @return the number of reduce tasks for this job.]]>
  68506. </doc>
  68507. </method>
  68508. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  68509. abstract="false" native="false" synchronized="false"
  68510. static="false" final="false" visibility="public"
  68511. deprecated="not deprecated">
  68512. <exception name="IOException" type="java.io.IOException"/>
  68513. <doc>
  68514. <![CDATA[Get the current working directory for the default file system.
  68515. @return the directory name.]]>
  68516. </doc>
  68517. </method>
  68518. <method name="getOutputKeyClass" return="java.lang.Class"
  68519. abstract="false" native="false" synchronized="false"
  68520. static="false" final="false" visibility="public"
  68521. deprecated="not deprecated">
  68522. <doc>
  68523. <![CDATA[Get the key class for the job output data.
  68524. @return the key class for the job output data.]]>
  68525. </doc>
  68526. </method>
  68527. <method name="getOutputValueClass" return="java.lang.Class"
  68528. abstract="false" native="false" synchronized="false"
  68529. static="false" final="false" visibility="public"
  68530. deprecated="not deprecated">
  68531. <doc>
  68532. <![CDATA[Get the value class for job outputs.
  68533. @return the value class for job outputs.]]>
  68534. </doc>
  68535. </method>
  68536. <method name="getMapOutputKeyClass" return="java.lang.Class"
  68537. abstract="false" native="false" synchronized="false"
  68538. static="false" final="false" visibility="public"
  68539. deprecated="not deprecated">
  68540. <doc>
  68541. <![CDATA[Get the key class for the map output data. If it is not set, use the
  68542. (final) output key class. This allows the map output key class to be
  68543. different than the final output key class.
  68544. @return the map output key class.]]>
  68545. </doc>
  68546. </method>
  68547. <method name="getMapOutputValueClass" return="java.lang.Class"
  68548. abstract="false" native="false" synchronized="false"
  68549. static="false" final="false" visibility="public"
  68550. deprecated="not deprecated">
  68551. <doc>
  68552. <![CDATA[Get the value class for the map output data. If it is not set, use the
  68553. (final) output value class This allows the map output value class to be
  68554. different than the final output value class.
  68555. @return the map output value class.]]>
  68556. </doc>
  68557. </method>
  68558. <method name="getJobName" return="java.lang.String"
  68559. abstract="false" native="false" synchronized="false"
  68560. static="false" final="false" visibility="public"
  68561. deprecated="not deprecated">
  68562. <doc>
  68563. <![CDATA[Get the user-specified job name. This is only used to identify the
  68564. job to the user.
  68565. @return the job's name, defaulting to "".]]>
  68566. </doc>
  68567. </method>
  68568. <method name="getInputFormatClass" return="java.lang.Class"
  68569. abstract="false" native="false" synchronized="false"
  68570. static="false" final="false" visibility="public"
  68571. deprecated="not deprecated">
  68572. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  68573. <doc>
  68574. <![CDATA[Get the {@link InputFormat} class for the job.
  68575. @return the {@link InputFormat} class for the job.]]>
  68576. </doc>
  68577. </method>
  68578. <method name="getMapperClass" return="java.lang.Class"
  68579. abstract="false" native="false" synchronized="false"
  68580. static="false" final="false" visibility="public"
  68581. deprecated="not deprecated">
  68582. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  68583. <doc>
  68584. <![CDATA[Get the {@link Mapper} class for the job.
  68585. @return the {@link Mapper} class for the job.]]>
  68586. </doc>
  68587. </method>
  68588. <method name="getCombinerClass" return="java.lang.Class"
  68589. abstract="false" native="false" synchronized="false"
  68590. static="false" final="false" visibility="public"
  68591. deprecated="not deprecated">
  68592. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  68593. <doc>
  68594. <![CDATA[Get the combiner class for the job.
  68595. @return the combiner class for the job.]]>
  68596. </doc>
  68597. </method>
  68598. <method name="getReducerClass" return="java.lang.Class"
  68599. abstract="false" native="false" synchronized="false"
  68600. static="false" final="false" visibility="public"
  68601. deprecated="not deprecated">
  68602. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  68603. <doc>
  68604. <![CDATA[Get the {@link Reducer} class for the job.
  68605. @return the {@link Reducer} class for the job.]]>
  68606. </doc>
  68607. </method>
  68608. <method name="getOutputFormatClass" return="java.lang.Class"
  68609. abstract="false" native="false" synchronized="false"
  68610. static="false" final="false" visibility="public"
  68611. deprecated="not deprecated">
  68612. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  68613. <doc>
  68614. <![CDATA[Get the {@link OutputFormat} class for the job.
  68615. @return the {@link OutputFormat} class for the job.]]>
  68616. </doc>
  68617. </method>
  68618. <method name="getPartitionerClass" return="java.lang.Class"
  68619. abstract="false" native="false" synchronized="false"
  68620. static="false" final="false" visibility="public"
  68621. deprecated="not deprecated">
  68622. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  68623. <doc>
  68624. <![CDATA[Get the {@link Partitioner} class for the job.
  68625. @return the {@link Partitioner} class for the job.]]>
  68626. </doc>
  68627. </method>
  68628. <method name="getSortComparator" return="org.apache.hadoop.io.RawComparator"
  68629. abstract="false" native="false" synchronized="false"
  68630. static="false" final="false" visibility="public"
  68631. deprecated="not deprecated">
  68632. <doc>
  68633. <![CDATA[Get the {@link RawComparator} comparator used to compare keys.
  68634. @return the {@link RawComparator} comparator used to compare keys.]]>
  68635. </doc>
  68636. </method>
  68637. <method name="getJar" return="java.lang.String"
  68638. abstract="false" native="false" synchronized="false"
  68639. static="false" final="false" visibility="public"
  68640. deprecated="not deprecated">
  68641. <doc>
  68642. <![CDATA[Get the pathname of the job's jar.
  68643. @return the pathname]]>
  68644. </doc>
  68645. </method>
  68646. <method name="getGroupingComparator" return="org.apache.hadoop.io.RawComparator"
  68647. abstract="false" native="false" synchronized="false"
  68648. static="false" final="false" visibility="public"
  68649. deprecated="not deprecated">
  68650. <doc>
  68651. <![CDATA[Get the user defined {@link RawComparator} comparator for
  68652. grouping keys of inputs to the reduce.
  68653. @return comparator set by the user for grouping values.
  68654. @see Job#setGroupingComparatorClass(Class) for details.]]>
  68655. </doc>
  68656. </method>
  68657. <field name="INPUT_FORMAT_CLASS_ATTR" type="java.lang.String"
  68658. transient="false" volatile="false"
  68659. static="true" final="true" visibility="protected"
  68660. deprecated="not deprecated">
  68661. </field>
  68662. <field name="MAP_CLASS_ATTR" type="java.lang.String"
  68663. transient="false" volatile="false"
  68664. static="true" final="true" visibility="protected"
  68665. deprecated="not deprecated">
  68666. </field>
  68667. <field name="COMBINE_CLASS_ATTR" type="java.lang.String"
  68668. transient="false" volatile="false"
  68669. static="true" final="true" visibility="protected"
  68670. deprecated="not deprecated">
  68671. </field>
  68672. <field name="REDUCE_CLASS_ATTR" type="java.lang.String"
  68673. transient="false" volatile="false"
  68674. static="true" final="true" visibility="protected"
  68675. deprecated="not deprecated">
  68676. </field>
  68677. <field name="OUTPUT_FORMAT_CLASS_ATTR" type="java.lang.String"
  68678. transient="false" volatile="false"
  68679. static="true" final="true" visibility="protected"
  68680. deprecated="not deprecated">
  68681. </field>
  68682. <field name="PARTITIONER_CLASS_ATTR" type="java.lang.String"
  68683. transient="false" volatile="false"
  68684. static="true" final="true" visibility="protected"
  68685. deprecated="not deprecated">
  68686. </field>
  68687. <field name="conf" type="org.apache.hadoop.mapred.JobConf"
  68688. transient="false" volatile="false"
  68689. static="false" final="true" visibility="protected"
  68690. deprecated="not deprecated">
  68691. </field>
  68692. <field name="credentials" type="org.apache.hadoop.security.Credentials"
  68693. transient="false" volatile="false"
  68694. static="false" final="true" visibility="protected"
  68695. deprecated="not deprecated">
  68696. </field>
  68697. <field name="JOB_NAMENODES" type="java.lang.String"
  68698. transient="false" volatile="false"
  68699. static="true" final="true" visibility="public"
  68700. deprecated="not deprecated">
  68701. </field>
  68702. <field name="JOB_ACL_VIEW_JOB" type="java.lang.String"
  68703. transient="false" volatile="false"
  68704. static="true" final="true" visibility="public"
  68705. deprecated="not deprecated">
  68706. </field>
  68707. <field name="JOB_ACL_MODIFY_JOB" type="java.lang.String"
  68708. transient="false" volatile="false"
  68709. static="true" final="true" visibility="public"
  68710. deprecated="not deprecated">
  68711. </field>
  68712. <field name="CACHE_FILE_VISIBILITIES" type="java.lang.String"
  68713. transient="false" volatile="false"
  68714. static="true" final="true" visibility="public"
  68715. deprecated="not deprecated">
  68716. </field>
  68717. <field name="CACHE_ARCHIVES_VISIBILITIES" type="java.lang.String"
  68718. transient="false" volatile="false"
  68719. static="true" final="true" visibility="public"
  68720. deprecated="not deprecated">
  68721. </field>
  68722. <field name="JOB_CANCEL_DELEGATION_TOKEN" type="java.lang.String"
  68723. transient="false" volatile="false"
  68724. static="true" final="true" visibility="public"
  68725. deprecated="not deprecated">
  68726. </field>
  68727. <field name="USER_LOG_RETAIN_HOURS" type="java.lang.String"
  68728. transient="false" volatile="false"
  68729. static="true" final="true" visibility="public"
  68730. deprecated="not deprecated">
  68731. </field>
  68732. <field name="ugi" type="org.apache.hadoop.security.UserGroupInformation"
  68733. transient="false" volatile="false"
  68734. static="false" final="false" visibility="protected"
  68735. deprecated="not deprecated">
  68736. <doc>
  68737. <![CDATA[The UserGroupInformation object that has a reference to the current user]]>
  68738. </doc>
  68739. </field>
  68740. <doc>
  68741. <![CDATA[A read-only view of the job that is provided to the tasks while they
  68742. are running.]]>
  68743. </doc>
  68744. </class>
  68745. <!-- end class org.apache.hadoop.mapreduce.JobContext -->
  68746. <!-- start class org.apache.hadoop.mapreduce.JobID -->
  68747. <class name="JobID" extends="org.apache.hadoop.mapred.ID"
  68748. abstract="false"
  68749. static="false" final="false" visibility="public"
  68750. deprecated="not deprecated">
  68751. <implements name="java.lang.Comparable"/>
  68752. <constructor name="JobID" type="java.lang.String, int"
  68753. static="false" final="false" visibility="public"
  68754. deprecated="not deprecated">
  68755. <doc>
  68756. <![CDATA[Constructs a JobID object
  68757. @param jtIdentifier jobTracker identifier
  68758. @param id job number]]>
  68759. </doc>
  68760. </constructor>
  68761. <constructor name="JobID"
  68762. static="false" final="false" visibility="public"
  68763. deprecated="not deprecated">
  68764. </constructor>
  68765. <method name="getJtIdentifier" return="java.lang.String"
  68766. abstract="false" native="false" synchronized="false"
  68767. static="false" final="false" visibility="public"
  68768. deprecated="not deprecated">
  68769. </method>
  68770. <method name="equals" return="boolean"
  68771. abstract="false" native="false" synchronized="false"
  68772. static="false" final="false" visibility="public"
  68773. deprecated="not deprecated">
  68774. <param name="o" type="java.lang.Object"/>
  68775. </method>
  68776. <method name="compareTo" return="int"
  68777. abstract="false" native="false" synchronized="false"
  68778. static="false" final="false" visibility="public"
  68779. deprecated="not deprecated">
  68780. <param name="o" type="org.apache.hadoop.mapreduce.ID"/>
  68781. <doc>
  68782. <![CDATA[Compare JobIds by first jtIdentifiers, then by job numbers]]>
  68783. </doc>
  68784. </method>
  68785. <method name="appendTo" return="java.lang.StringBuilder"
  68786. abstract="false" native="false" synchronized="false"
  68787. static="false" final="false" visibility="public"
  68788. deprecated="not deprecated">
  68789. <param name="builder" type="java.lang.StringBuilder"/>
  68790. <doc>
  68791. <![CDATA[Add the stuff after the "job" prefix to the given builder. This is useful,
  68792. because the sub-ids use this substring at the start of their string.
  68793. @param builder the builder to append to
  68794. @return the builder that was passed in]]>
  68795. </doc>
  68796. </method>
  68797. <method name="hashCode" return="int"
  68798. abstract="false" native="false" synchronized="false"
  68799. static="false" final="false" visibility="public"
  68800. deprecated="not deprecated">
  68801. </method>
  68802. <method name="toString" return="java.lang.String"
  68803. abstract="false" native="false" synchronized="false"
  68804. static="false" final="false" visibility="public"
  68805. deprecated="not deprecated">
  68806. </method>
  68807. <method name="readFields"
  68808. abstract="false" native="false" synchronized="false"
  68809. static="false" final="false" visibility="public"
  68810. deprecated="not deprecated">
  68811. <param name="in" type="java.io.DataInput"/>
  68812. <exception name="IOException" type="java.io.IOException"/>
  68813. </method>
  68814. <method name="write"
  68815. abstract="false" native="false" synchronized="false"
  68816. static="false" final="false" visibility="public"
  68817. deprecated="not deprecated">
  68818. <param name="out" type="java.io.DataOutput"/>
  68819. <exception name="IOException" type="java.io.IOException"/>
  68820. </method>
  68821. <method name="forName" return="org.apache.hadoop.mapreduce.JobID"
  68822. abstract="false" native="false" synchronized="false"
  68823. static="true" final="false" visibility="public"
  68824. deprecated="not deprecated">
  68825. <param name="str" type="java.lang.String"/>
  68826. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  68827. <doc>
  68828. <![CDATA[Construct a JobId object from given string
  68829. @return constructed JobId object or null if the given String is null
  68830. @throws IllegalArgumentException if the given string is malformed]]>
  68831. </doc>
  68832. </method>
  68833. <field name="JOB" type="java.lang.String"
  68834. transient="false" volatile="false"
  68835. static="true" final="true" visibility="protected"
  68836. deprecated="not deprecated">
  68837. </field>
  68838. <field name="JOBID_REGEX" type="java.lang.String"
  68839. transient="false" volatile="false"
  68840. static="true" final="true" visibility="public"
  68841. deprecated="not deprecated">
  68842. </field>
  68843. <field name="idFormat" type="java.text.NumberFormat"
  68844. transient="false" volatile="false"
  68845. static="true" final="true" visibility="protected"
  68846. deprecated="not deprecated">
  68847. </field>
  68848. <doc>
  68849. <![CDATA[JobID represents the immutable and unique identifier for
  68850. the job. JobID consists of two parts. First part
  68851. represents the jobtracker identifier, so that jobID to jobtracker map
  68852. is defined. For cluster setup this string is the jobtracker
  68853. start time, for local setting, it is "local".
  68854. Second part of the JobID is the job number. <br>
  68855. An example JobID is :
  68856. <code>job_200707121733_0003</code> , which represents the third job
  68857. running at the jobtracker started at <code>200707121733</code>.
  68858. <p>
  68859. Applications should never construct or parse JobID strings, but rather
  68860. use appropriate constructors or {@link #forName(String)} method.
  68861. @see TaskID
  68862. @see TaskAttemptID
  68863. @see org.apache.hadoop.mapred.JobTracker#getNewJobId()
  68864. @see org.apache.hadoop.mapred.JobTracker#getStartTime()]]>
  68865. </doc>
  68866. </class>
  68867. <!-- end class org.apache.hadoop.mapreduce.JobID -->
  68868. <!-- start class org.apache.hadoop.mapreduce.JobStatus -->
  68869. <class name="JobStatus" extends="java.lang.Object"
  68870. abstract="false"
  68871. static="false" final="false" visibility="public"
  68872. deprecated="not deprecated">
  68873. <constructor name="JobStatus"
  68874. static="false" final="false" visibility="public"
  68875. deprecated="not deprecated">
  68876. </constructor>
  68877. <doc>
  68878. <![CDATA[Describes the current status of a job.]]>
  68879. </doc>
  68880. </class>
  68881. <!-- end class org.apache.hadoop.mapreduce.JobStatus -->
  68882. <!-- start class org.apache.hadoop.mapreduce.JobStatus.State -->
  68883. <class name="JobStatus.State" extends="java.lang.Enum"
  68884. abstract="false"
  68885. static="true" final="true" visibility="public"
  68886. deprecated="not deprecated">
  68887. <method name="values" return="org.apache.hadoop.mapreduce.JobStatus.State[]"
  68888. abstract="false" native="false" synchronized="false"
  68889. static="true" final="false" visibility="public"
  68890. deprecated="not deprecated">
  68891. </method>
  68892. <method name="valueOf" return="org.apache.hadoop.mapreduce.JobStatus.State"
  68893. abstract="false" native="false" synchronized="false"
  68894. static="true" final="false" visibility="public"
  68895. deprecated="not deprecated">
  68896. <param name="name" type="java.lang.String"/>
  68897. </method>
  68898. <method name="getValue" return="int"
  68899. abstract="false" native="false" synchronized="false"
  68900. static="false" final="false" visibility="public"
  68901. deprecated="not deprecated">
  68902. </method>
  68903. <field name="RUNNING" type="org.apache.hadoop.mapreduce.JobStatus.State"
  68904. transient="false" volatile="false"
  68905. static="true" final="true" visibility="public"
  68906. deprecated="not deprecated">
  68907. </field>
  68908. <field name="SUCCEEDED" type="org.apache.hadoop.mapreduce.JobStatus.State"
  68909. transient="false" volatile="false"
  68910. static="true" final="true" visibility="public"
  68911. deprecated="not deprecated">
  68912. </field>
  68913. <field name="FAILED" type="org.apache.hadoop.mapreduce.JobStatus.State"
  68914. transient="false" volatile="false"
  68915. static="true" final="true" visibility="public"
  68916. deprecated="not deprecated">
  68917. </field>
  68918. <field name="PREP" type="org.apache.hadoop.mapreduce.JobStatus.State"
  68919. transient="false" volatile="false"
  68920. static="true" final="true" visibility="public"
  68921. deprecated="not deprecated">
  68922. </field>
  68923. <field name="KILLED" type="org.apache.hadoop.mapreduce.JobStatus.State"
  68924. transient="false" volatile="false"
  68925. static="true" final="true" visibility="public"
  68926. deprecated="not deprecated">
  68927. </field>
  68928. <doc>
  68929. <![CDATA[Current state of the job]]>
  68930. </doc>
  68931. </class>
  68932. <!-- end class org.apache.hadoop.mapreduce.JobStatus.State -->
  68933. <!-- start class org.apache.hadoop.mapreduce.JobSubmissionFiles -->
  68934. <class name="JobSubmissionFiles" extends="java.lang.Object"
  68935. abstract="false"
  68936. static="false" final="false" visibility="public"
  68937. deprecated="not deprecated">
  68938. <constructor name="JobSubmissionFiles"
  68939. static="false" final="false" visibility="public"
  68940. deprecated="not deprecated">
  68941. </constructor>
  68942. <method name="getJobSplitFile" return="org.apache.hadoop.fs.Path"
  68943. abstract="false" native="false" synchronized="false"
  68944. static="true" final="false" visibility="public"
  68945. deprecated="not deprecated">
  68946. <param name="jobSubmissionDir" type="org.apache.hadoop.fs.Path"/>
  68947. </method>
  68948. <method name="getJobSplitMetaFile" return="org.apache.hadoop.fs.Path"
  68949. abstract="false" native="false" synchronized="false"
  68950. static="true" final="false" visibility="public"
  68951. deprecated="not deprecated">
  68952. <param name="jobSubmissionDir" type="org.apache.hadoop.fs.Path"/>
  68953. </method>
  68954. <method name="getJobConfPath" return="org.apache.hadoop.fs.Path"
  68955. abstract="false" native="false" synchronized="false"
  68956. static="true" final="false" visibility="public"
  68957. deprecated="not deprecated">
  68958. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  68959. <doc>
  68960. <![CDATA[Get the job conf path.]]>
  68961. </doc>
  68962. </method>
  68963. <method name="getJobJar" return="org.apache.hadoop.fs.Path"
  68964. abstract="false" native="false" synchronized="false"
  68965. static="true" final="false" visibility="public"
  68966. deprecated="not deprecated">
  68967. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  68968. <doc>
  68969. <![CDATA[Get the job jar path.]]>
  68970. </doc>
  68971. </method>
  68972. <method name="getJobDistCacheFiles" return="org.apache.hadoop.fs.Path"
  68973. abstract="false" native="false" synchronized="false"
  68974. static="true" final="false" visibility="public"
  68975. deprecated="not deprecated">
  68976. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  68977. <doc>
  68978. <![CDATA[Get the job distributed cache files path.
  68979. @param jobSubmitDir]]>
  68980. </doc>
  68981. </method>
  68982. <method name="getJobDistCacheArchives" return="org.apache.hadoop.fs.Path"
  68983. abstract="false" native="false" synchronized="false"
  68984. static="true" final="false" visibility="public"
  68985. deprecated="not deprecated">
  68986. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  68987. <doc>
  68988. <![CDATA[Get the job distributed cache archives path.
  68989. @param jobSubmitDir]]>
  68990. </doc>
  68991. </method>
  68992. <method name="getJobDistCacheLibjars" return="org.apache.hadoop.fs.Path"
  68993. abstract="false" native="false" synchronized="false"
  68994. static="true" final="false" visibility="public"
  68995. deprecated="not deprecated">
  68996. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  68997. <doc>
  68998. <![CDATA[Get the job distributed cache libjars path.
  68999. @param jobSubmitDir]]>
  69000. </doc>
  69001. </method>
  69002. <method name="getStagingDir" return="org.apache.hadoop.fs.Path"
  69003. abstract="false" native="false" synchronized="false"
  69004. static="true" final="false" visibility="public"
  69005. deprecated="not deprecated">
  69006. <param name="client" type="org.apache.hadoop.mapred.JobClient"/>
  69007. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  69008. <exception name="IOException" type="java.io.IOException"/>
  69009. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69010. <doc>
  69011. <![CDATA[Initializes the staging directory and returns the path. It also
  69012. keeps track of all necessary ownership & permissions
  69013. @param client
  69014. @param conf]]>
  69015. </doc>
  69016. </method>
  69017. <field name="JOB_DIR_PERMISSION" type="org.apache.hadoop.fs.permission.FsPermission"
  69018. transient="false" volatile="false"
  69019. static="true" final="true" visibility="public"
  69020. deprecated="not deprecated">
  69021. </field>
  69022. <field name="JOB_FILE_PERMISSION" type="org.apache.hadoop.fs.permission.FsPermission"
  69023. transient="false" volatile="false"
  69024. static="true" final="true" visibility="public"
  69025. deprecated="not deprecated">
  69026. </field>
  69027. <doc>
  69028. <![CDATA[A utility to manage job submission files.<br/>
  69029. <b><i>Note that this class is for framework internal usage only and is
  69030. not to be used by users directly.</i></b>]]>
  69031. </doc>
  69032. </class>
  69033. <!-- end class org.apache.hadoop.mapreduce.JobSubmissionFiles -->
  69034. <!-- start class org.apache.hadoop.mapreduce.MapContext -->
  69035. <class name="MapContext" extends="org.apache.hadoop.mapreduce.TaskInputOutputContext"
  69036. abstract="false"
  69037. static="false" final="false" visibility="public"
  69038. deprecated="not deprecated">
  69039. <constructor name="MapContext" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapreduce.TaskAttemptID, org.apache.hadoop.mapreduce.RecordReader, org.apache.hadoop.mapreduce.RecordWriter, org.apache.hadoop.mapreduce.OutputCommitter, org.apache.hadoop.mapreduce.StatusReporter, org.apache.hadoop.mapreduce.InputSplit"
  69040. static="false" final="false" visibility="public"
  69041. deprecated="not deprecated">
  69042. </constructor>
  69043. <method name="getInputSplit" return="org.apache.hadoop.mapreduce.InputSplit"
  69044. abstract="false" native="false" synchronized="false"
  69045. static="false" final="false" visibility="public"
  69046. deprecated="not deprecated">
  69047. <doc>
  69048. <![CDATA[Get the input split for this map.]]>
  69049. </doc>
  69050. </method>
  69051. <method name="getCurrentKey" return="java.lang.Object"
  69052. abstract="false" native="false" synchronized="false"
  69053. static="false" final="false" visibility="public"
  69054. deprecated="not deprecated">
  69055. <exception name="IOException" type="java.io.IOException"/>
  69056. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69057. </method>
  69058. <method name="getCurrentValue" return="java.lang.Object"
  69059. abstract="false" native="false" synchronized="false"
  69060. static="false" final="false" visibility="public"
  69061. deprecated="not deprecated">
  69062. <exception name="IOException" type="java.io.IOException"/>
  69063. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69064. </method>
  69065. <method name="nextKeyValue" return="boolean"
  69066. abstract="false" native="false" synchronized="false"
  69067. static="false" final="false" visibility="public"
  69068. deprecated="not deprecated">
  69069. <exception name="IOException" type="java.io.IOException"/>
  69070. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69071. </method>
  69072. <doc>
  69073. <![CDATA[The context that is given to the {@link Mapper}.
  69074. @param <KEYIN> the key input type to the Mapper
  69075. @param <VALUEIN> the value input type to the Mapper
  69076. @param <KEYOUT> the key output type from the Mapper
  69077. @param <VALUEOUT> the value output type from the Mapper]]>
  69078. </doc>
  69079. </class>
  69080. <!-- end class org.apache.hadoop.mapreduce.MapContext -->
  69081. <!-- start class org.apache.hadoop.mapreduce.Mapper -->
  69082. <class name="Mapper" extends="java.lang.Object"
  69083. abstract="false"
  69084. static="false" final="false" visibility="public"
  69085. deprecated="not deprecated">
  69086. <constructor name="Mapper"
  69087. static="false" final="false" visibility="public"
  69088. deprecated="not deprecated">
  69089. </constructor>
  69090. <method name="setup"
  69091. abstract="false" native="false" synchronized="false"
  69092. static="false" final="false" visibility="protected"
  69093. deprecated="not deprecated">
  69094. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  69095. <exception name="IOException" type="java.io.IOException"/>
  69096. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69097. <doc>
  69098. <![CDATA[Called once at the beginning of the task.]]>
  69099. </doc>
  69100. </method>
  69101. <method name="map"
  69102. abstract="false" native="false" synchronized="false"
  69103. static="false" final="false" visibility="protected"
  69104. deprecated="not deprecated">
  69105. <param name="key" type="java.lang.Object"/>
  69106. <param name="value" type="java.lang.Object"/>
  69107. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  69108. <exception name="IOException" type="java.io.IOException"/>
  69109. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69110. <doc>
  69111. <![CDATA[Called once for each key/value pair in the input split. Most applications
  69112. should override this, but the default is the identity function.]]>
  69113. </doc>
  69114. </method>
  69115. <method name="cleanup"
  69116. abstract="false" native="false" synchronized="false"
  69117. static="false" final="false" visibility="protected"
  69118. deprecated="not deprecated">
  69119. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  69120. <exception name="IOException" type="java.io.IOException"/>
  69121. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69122. <doc>
  69123. <![CDATA[Called once at the end of the task.]]>
  69124. </doc>
  69125. </method>
  69126. <method name="run"
  69127. abstract="false" native="false" synchronized="false"
  69128. static="false" final="false" visibility="public"
  69129. deprecated="not deprecated">
  69130. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  69131. <exception name="IOException" type="java.io.IOException"/>
  69132. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69133. <doc>
  69134. <![CDATA[Expert users can override this method for more complete control over the
  69135. execution of the Mapper.
  69136. @param context
  69137. @throws IOException]]>
  69138. </doc>
  69139. </method>
  69140. <doc>
  69141. <![CDATA[Maps input key/value pairs to a set of intermediate key/value pairs.
  69142. <p>Maps are the individual tasks which transform input records into a
  69143. intermediate records. The transformed intermediate records need not be of
  69144. the same type as the input records. A given input pair may map to zero or
  69145. many output pairs.</p>
  69146. <p>The Hadoop Map-Reduce framework spawns one map task for each
  69147. {@link InputSplit} generated by the {@link InputFormat} for the job.
  69148. <code>Mapper</code> implementations can access the {@link Configuration} for
  69149. the job via the {@link JobContext#getConfiguration()}.
  69150. <p>The framework first calls
  69151. {@link #setup(org.apache.hadoop.mapreduce.Mapper.Context)}, followed by
  69152. {@link #map(Object, Object, Context)}
  69153. for each key/value pair in the <code>InputSplit</code>. Finally
  69154. {@link #cleanup(Context)} is called.</p>
  69155. <p>All intermediate values associated with a given output key are
  69156. subsequently grouped by the framework, and passed to a {@link Reducer} to
  69157. determine the final output. Users can control the sorting and grouping by
  69158. specifying two key {@link RawComparator} classes.</p>
  69159. <p>The <code>Mapper</code> outputs are partitioned per
  69160. <code>Reducer</code>. Users can control which keys (and hence records) go to
  69161. which <code>Reducer</code> by implementing a custom {@link Partitioner}.
  69162. <p>Users can optionally specify a <code>combiner</code>, via
  69163. {@link Job#setCombinerClass(Class)}, to perform local aggregation of the
  69164. intermediate outputs, which helps to cut down the amount of data transferred
  69165. from the <code>Mapper</code> to the <code>Reducer</code>.
  69166. <p>Applications can specify if and how the intermediate
  69167. outputs are to be compressed and which {@link CompressionCodec}s are to be
  69168. used via the <code>Configuration</code>.</p>
  69169. <p>If the job has zero
  69170. reduces then the output of the <code>Mapper</code> is directly written
  69171. to the {@link OutputFormat} without sorting by keys.</p>
  69172. <p>Example:</p>
  69173. <p><blockquote><pre>
  69174. public class TokenCounterMapper
  69175. extends Mapper<Object, Text, Text, IntWritable>{
  69176. private final static IntWritable one = new IntWritable(1);
  69177. private Text word = new Text();
  69178. public void map(Object key, Text value, Context context) throws IOException {
  69179. StringTokenizer itr = new StringTokenizer(value.toString());
  69180. while (itr.hasMoreTokens()) {
  69181. word.set(itr.nextToken());
  69182. context.collect(word, one);
  69183. }
  69184. }
  69185. }
  69186. </pre></blockquote></p>
  69187. <p>Applications may override the {@link #run(Context)} method to exert
  69188. greater control on map processing e.g. multi-threaded <code>Mapper</code>s
  69189. etc.</p>
  69190. @see InputFormat
  69191. @see JobContext
  69192. @see Partitioner
  69193. @see Reducer]]>
  69194. </doc>
  69195. </class>
  69196. <!-- end class org.apache.hadoop.mapreduce.Mapper -->
  69197. <!-- start class org.apache.hadoop.mapreduce.Mapper.Context -->
  69198. <class name="Mapper.Context" extends="org.apache.hadoop.mapreduce.MapContext"
  69199. abstract="false"
  69200. static="false" final="false" visibility="public"
  69201. deprecated="not deprecated">
  69202. <constructor name="Mapper.Context" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapreduce.TaskAttemptID, org.apache.hadoop.mapreduce.RecordReader, org.apache.hadoop.mapreduce.RecordWriter, org.apache.hadoop.mapreduce.OutputCommitter, org.apache.hadoop.mapreduce.StatusReporter, org.apache.hadoop.mapreduce.InputSplit"
  69203. static="false" final="false" visibility="public"
  69204. deprecated="not deprecated">
  69205. <exception name="IOException" type="java.io.IOException"/>
  69206. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69207. </constructor>
  69208. </class>
  69209. <!-- end class org.apache.hadoop.mapreduce.Mapper.Context -->
  69210. <!-- start class org.apache.hadoop.mapreduce.OutputCommitter -->
  69211. <class name="OutputCommitter" extends="java.lang.Object"
  69212. abstract="true"
  69213. static="false" final="false" visibility="public"
  69214. deprecated="not deprecated">
  69215. <constructor name="OutputCommitter"
  69216. static="false" final="false" visibility="public"
  69217. deprecated="not deprecated">
  69218. </constructor>
  69219. <method name="setupJob"
  69220. abstract="true" native="false" synchronized="false"
  69221. static="false" final="false" visibility="public"
  69222. deprecated="not deprecated">
  69223. <param name="jobContext" type="org.apache.hadoop.mapreduce.JobContext"/>
  69224. <exception name="IOException" type="java.io.IOException"/>
  69225. <doc>
  69226. <![CDATA[For the framework to setup the job output during initialization
  69227. @param jobContext Context of the job whose output is being written.
  69228. @throws IOException if temporary output could not be created]]>
  69229. </doc>
  69230. </method>
  69231. <method name="commitJob"
  69232. abstract="false" native="false" synchronized="false"
  69233. static="false" final="false" visibility="public"
  69234. deprecated="not deprecated">
  69235. <param name="jobContext" type="org.apache.hadoop.mapreduce.JobContext"/>
  69236. <exception name="IOException" type="java.io.IOException"/>
  69237. <doc>
  69238. <![CDATA[For cleaning up the job's output after job completion. Note that this
  69239. is invoked for jobs with final run state as
  69240. {@link JobStatus.State#SUCCEEDED}
  69241. @param jobContext Context of the job whose output is being written.
  69242. @throws IOException]]>
  69243. </doc>
  69244. </method>
  69245. <method name="cleanupJob"
  69246. abstract="false" native="false" synchronized="false"
  69247. static="false" final="false" visibility="public"
  69248. deprecated="use {@link #commitJob(JobContext)} or
  69249. {@link #abortJob(JobContext, JobStatus.State)} instead">
  69250. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  69251. <exception name="IOException" type="java.io.IOException"/>
  69252. <doc>
  69253. <![CDATA[For cleaning up the job's output after job completion
  69254. @deprecated use {@link #commitJob(JobContext)} or
  69255. {@link #abortJob(JobContext, JobStatus.State)} instead]]>
  69256. </doc>
  69257. </method>
  69258. <method name="abortJob"
  69259. abstract="false" native="false" synchronized="false"
  69260. static="false" final="false" visibility="public"
  69261. deprecated="not deprecated">
  69262. <param name="jobContext" type="org.apache.hadoop.mapreduce.JobContext"/>
  69263. <param name="state" type="org.apache.hadoop.mapreduce.JobStatus.State"/>
  69264. <exception name="IOException" type="java.io.IOException"/>
  69265. <doc>
  69266. <![CDATA[For aborting an unsuccessful job's output. Note that this is invoked for
  69267. jobs with final run state as {@link JobStatus.State#FAILED} or
  69268. {@link JobStatus.State#KILLED}.
  69269. @param jobContext Context of the job whose output is being written.
  69270. @param state final run state of the job, should be either
  69271. {@link JobStatus.State#KILLED} or {@link JobStatus.State#FAILED}
  69272. @throws IOException]]>
  69273. </doc>
  69274. </method>
  69275. <method name="setupTask"
  69276. abstract="true" native="false" synchronized="false"
  69277. static="false" final="false" visibility="public"
  69278. deprecated="not deprecated">
  69279. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  69280. <exception name="IOException" type="java.io.IOException"/>
  69281. <doc>
  69282. <![CDATA[Sets up output for the task.
  69283. @param taskContext Context of the task whose output is being written.
  69284. @throws IOException]]>
  69285. </doc>
  69286. </method>
  69287. <method name="needsTaskCommit" return="boolean"
  69288. abstract="true" native="false" synchronized="false"
  69289. static="false" final="false" visibility="public"
  69290. deprecated="not deprecated">
  69291. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  69292. <exception name="IOException" type="java.io.IOException"/>
  69293. <doc>
  69294. <![CDATA[Check whether task needs a commit
  69295. @param taskContext
  69296. @return true/false
  69297. @throws IOException]]>
  69298. </doc>
  69299. </method>
  69300. <method name="commitTask"
  69301. abstract="true" native="false" synchronized="false"
  69302. static="false" final="false" visibility="public"
  69303. deprecated="not deprecated">
  69304. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  69305. <exception name="IOException" type="java.io.IOException"/>
  69306. <doc>
  69307. <![CDATA[To promote the task's temporary output to final output location
  69308. The task's output is moved to the job's output directory.
  69309. @param taskContext Context of the task whose output is being written.
  69310. @throws IOException if commit is not]]>
  69311. </doc>
  69312. </method>
  69313. <method name="abortTask"
  69314. abstract="true" native="false" synchronized="false"
  69315. static="false" final="false" visibility="public"
  69316. deprecated="not deprecated">
  69317. <param name="taskContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  69318. <exception name="IOException" type="java.io.IOException"/>
  69319. <doc>
  69320. <![CDATA[Discard the task output
  69321. @param taskContext
  69322. @throws IOException]]>
  69323. </doc>
  69324. </method>
  69325. <doc>
  69326. <![CDATA[<code>OutputCommitter</code> describes the commit of task output for a
  69327. Map-Reduce job.
  69328. <p>The Map-Reduce framework relies on the <code>OutputCommitter</code> of
  69329. the job to:<p>
  69330. <ol>
  69331. <li>
  69332. Setup the job during initialization. For example, create the temporary
  69333. output directory for the job during the initialization of the job.
  69334. </li>
  69335. <li>
  69336. Cleanup the job after the job completion. For example, remove the
  69337. temporary output directory after the job completion.
  69338. </li>
  69339. <li>
  69340. Setup the task temporary output.
  69341. </li>
  69342. <li>
  69343. Check whether a task needs a commit. This is to avoid the commit
  69344. procedure if a task does not need commit.
  69345. </li>
  69346. <li>
  69347. Commit of the task output.
  69348. </li>
  69349. <li>
  69350. Discard the task commit.
  69351. </li>
  69352. </ol>
  69353. @see org.apache.hadoop.mapreduce.lib.output.FileOutputCommitter
  69354. @see JobContext
  69355. @see TaskAttemptContext]]>
  69356. </doc>
  69357. </class>
  69358. <!-- end class org.apache.hadoop.mapreduce.OutputCommitter -->
  69359. <!-- start class org.apache.hadoop.mapreduce.OutputFormat -->
  69360. <class name="OutputFormat" extends="java.lang.Object"
  69361. abstract="true"
  69362. static="false" final="false" visibility="public"
  69363. deprecated="not deprecated">
  69364. <constructor name="OutputFormat"
  69365. static="false" final="false" visibility="public"
  69366. deprecated="not deprecated">
  69367. </constructor>
  69368. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  69369. abstract="true" native="false" synchronized="false"
  69370. static="false" final="false" visibility="public"
  69371. deprecated="not deprecated">
  69372. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  69373. <exception name="IOException" type="java.io.IOException"/>
  69374. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69375. <doc>
  69376. <![CDATA[Get the {@link RecordWriter} for the given task.
  69377. @param context the information about the current task.
  69378. @return a {@link RecordWriter} to write the output for the job.
  69379. @throws IOException]]>
  69380. </doc>
  69381. </method>
  69382. <method name="checkOutputSpecs"
  69383. abstract="true" native="false" synchronized="false"
  69384. static="false" final="false" visibility="public"
  69385. deprecated="not deprecated">
  69386. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  69387. <exception name="IOException" type="java.io.IOException"/>
  69388. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69389. <doc>
  69390. <![CDATA[Check for validity of the output-specification for the job.
  69391. <p>This is to validate the output specification for the job when it is
  69392. a job is submitted. Typically checks that it does not already exist,
  69393. throwing an exception when it already exists, so that output is not
  69394. overwritten.</p>
  69395. @param context information about the job
  69396. @throws IOException when output should not be attempted]]>
  69397. </doc>
  69398. </method>
  69399. <method name="getOutputCommitter" return="org.apache.hadoop.mapreduce.OutputCommitter"
  69400. abstract="true" native="false" synchronized="false"
  69401. static="false" final="false" visibility="public"
  69402. deprecated="not deprecated">
  69403. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  69404. <exception name="IOException" type="java.io.IOException"/>
  69405. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69406. <doc>
  69407. <![CDATA[Get the output committer for this output format. This is responsible
  69408. for ensuring the output is committed correctly.
  69409. @param context the task context
  69410. @return an output committer
  69411. @throws IOException
  69412. @throws InterruptedException]]>
  69413. </doc>
  69414. </method>
  69415. <doc>
  69416. <![CDATA[<code>OutputFormat</code> describes the output-specification for a
  69417. Map-Reduce job.
  69418. <p>The Map-Reduce framework relies on the <code>OutputFormat</code> of the
  69419. job to:<p>
  69420. <ol>
  69421. <li>
  69422. Validate the output-specification of the job. For e.g. check that the
  69423. output directory doesn't already exist.
  69424. <li>
  69425. Provide the {@link RecordWriter} implementation to be used to write out
  69426. the output files of the job. Output files are stored in a
  69427. {@link FileSystem}.
  69428. </li>
  69429. </ol>
  69430. @see RecordWriter]]>
  69431. </doc>
  69432. </class>
  69433. <!-- end class org.apache.hadoop.mapreduce.OutputFormat -->
  69434. <!-- start class org.apache.hadoop.mapreduce.Partitioner -->
  69435. <class name="Partitioner" extends="java.lang.Object"
  69436. abstract="true"
  69437. static="false" final="false" visibility="public"
  69438. deprecated="not deprecated">
  69439. <constructor name="Partitioner"
  69440. static="false" final="false" visibility="public"
  69441. deprecated="not deprecated">
  69442. </constructor>
  69443. <method name="getPartition" return="int"
  69444. abstract="true" native="false" synchronized="false"
  69445. static="false" final="false" visibility="public"
  69446. deprecated="not deprecated">
  69447. <param name="key" type="java.lang.Object"/>
  69448. <param name="value" type="java.lang.Object"/>
  69449. <param name="numPartitions" type="int"/>
  69450. <doc>
  69451. <![CDATA[Get the partition number for a given key (hence record) given the total
  69452. number of partitions i.e. number of reduce-tasks for the job.
  69453. <p>Typically a hash function on a all or a subset of the key.</p>
  69454. @param key the key to be partioned.
  69455. @param value the entry value.
  69456. @param numPartitions the total number of partitions.
  69457. @return the partition number for the <code>key</code>.]]>
  69458. </doc>
  69459. </method>
  69460. <doc>
  69461. <![CDATA[Partitions the key space.
  69462. <p><code>Partitioner</code> controls the partitioning of the keys of the
  69463. intermediate map-outputs. The key (or a subset of the key) is used to derive
  69464. the partition, typically by a hash function. The total number of partitions
  69465. is the same as the number of reduce tasks for the job. Hence this controls
  69466. which of the <code>m</code> reduce tasks the intermediate key (and hence the
  69467. record) is sent for reduction.</p>
  69468. @see Reducer]]>
  69469. </doc>
  69470. </class>
  69471. <!-- end class org.apache.hadoop.mapreduce.Partitioner -->
  69472. <!-- start class org.apache.hadoop.mapreduce.RecordReader -->
  69473. <class name="RecordReader" extends="java.lang.Object"
  69474. abstract="true"
  69475. static="false" final="false" visibility="public"
  69476. deprecated="not deprecated">
  69477. <implements name="java.io.Closeable"/>
  69478. <constructor name="RecordReader"
  69479. static="false" final="false" visibility="public"
  69480. deprecated="not deprecated">
  69481. </constructor>
  69482. <method name="initialize"
  69483. abstract="true" native="false" synchronized="false"
  69484. static="false" final="false" visibility="public"
  69485. deprecated="not deprecated">
  69486. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  69487. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  69488. <exception name="IOException" type="java.io.IOException"/>
  69489. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69490. <doc>
  69491. <![CDATA[Called once at initialization.
  69492. @param split the split that defines the range of records to read
  69493. @param context the information about the task
  69494. @throws IOException
  69495. @throws InterruptedException]]>
  69496. </doc>
  69497. </method>
  69498. <method name="nextKeyValue" return="boolean"
  69499. abstract="true" native="false" synchronized="false"
  69500. static="false" final="false" visibility="public"
  69501. deprecated="not deprecated">
  69502. <exception name="IOException" type="java.io.IOException"/>
  69503. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69504. <doc>
  69505. <![CDATA[Read the next key, value pair.
  69506. @return true if a key/value pair was read
  69507. @throws IOException
  69508. @throws InterruptedException]]>
  69509. </doc>
  69510. </method>
  69511. <method name="getCurrentKey" return="java.lang.Object"
  69512. abstract="true" native="false" synchronized="false"
  69513. static="false" final="false" visibility="public"
  69514. deprecated="not deprecated">
  69515. <exception name="IOException" type="java.io.IOException"/>
  69516. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69517. <doc>
  69518. <![CDATA[Get the current key
  69519. @return the current key or null if there is no current key
  69520. @throws IOException
  69521. @throws InterruptedException]]>
  69522. </doc>
  69523. </method>
  69524. <method name="getCurrentValue" return="java.lang.Object"
  69525. abstract="true" native="false" synchronized="false"
  69526. static="false" final="false" visibility="public"
  69527. deprecated="not deprecated">
  69528. <exception name="IOException" type="java.io.IOException"/>
  69529. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69530. <doc>
  69531. <![CDATA[Get the current value.
  69532. @return the object that was read
  69533. @throws IOException
  69534. @throws InterruptedException]]>
  69535. </doc>
  69536. </method>
  69537. <method name="getProgress" return="float"
  69538. abstract="true" native="false" synchronized="false"
  69539. static="false" final="false" visibility="public"
  69540. deprecated="not deprecated">
  69541. <exception name="IOException" type="java.io.IOException"/>
  69542. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69543. <doc>
  69544. <![CDATA[The current progress of the record reader through its data.
  69545. @return a number between 0.0 and 1.0 that is the fraction of the data read
  69546. @throws IOException
  69547. @throws InterruptedException]]>
  69548. </doc>
  69549. </method>
  69550. <method name="close"
  69551. abstract="true" native="false" synchronized="false"
  69552. static="false" final="false" visibility="public"
  69553. deprecated="not deprecated">
  69554. <exception name="IOException" type="java.io.IOException"/>
  69555. <doc>
  69556. <![CDATA[Close the record reader.]]>
  69557. </doc>
  69558. </method>
  69559. <doc>
  69560. <![CDATA[The record reader breaks the data into key/value pairs for input to the
  69561. {@link Mapper}.
  69562. @param <KEYIN>
  69563. @param <VALUEIN>]]>
  69564. </doc>
  69565. </class>
  69566. <!-- end class org.apache.hadoop.mapreduce.RecordReader -->
  69567. <!-- start class org.apache.hadoop.mapreduce.RecordWriter -->
  69568. <class name="RecordWriter" extends="java.lang.Object"
  69569. abstract="true"
  69570. static="false" final="false" visibility="public"
  69571. deprecated="not deprecated">
  69572. <constructor name="RecordWriter"
  69573. static="false" final="false" visibility="public"
  69574. deprecated="not deprecated">
  69575. </constructor>
  69576. <method name="write"
  69577. abstract="true" native="false" synchronized="false"
  69578. static="false" final="false" visibility="public"
  69579. deprecated="not deprecated">
  69580. <param name="key" type="java.lang.Object"/>
  69581. <param name="value" type="java.lang.Object"/>
  69582. <exception name="IOException" type="java.io.IOException"/>
  69583. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69584. <doc>
  69585. <![CDATA[Writes a key/value pair.
  69586. @param key the key to write.
  69587. @param value the value to write.
  69588. @throws IOException]]>
  69589. </doc>
  69590. </method>
  69591. <method name="close"
  69592. abstract="true" native="false" synchronized="false"
  69593. static="false" final="false" visibility="public"
  69594. deprecated="not deprecated">
  69595. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  69596. <exception name="IOException" type="java.io.IOException"/>
  69597. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69598. <doc>
  69599. <![CDATA[Close this <code>RecordWriter</code> to future operations.
  69600. @param context the context of the task
  69601. @throws IOException]]>
  69602. </doc>
  69603. </method>
  69604. <doc>
  69605. <![CDATA[<code>RecordWriter</code> writes the output &lt;key, value&gt; pairs
  69606. to an output file.
  69607. <p><code>RecordWriter</code> implementations write the job outputs to the
  69608. {@link FileSystem}.
  69609. @see OutputFormat]]>
  69610. </doc>
  69611. </class>
  69612. <!-- end class org.apache.hadoop.mapreduce.RecordWriter -->
  69613. <!-- start class org.apache.hadoop.mapreduce.ReduceContext -->
  69614. <class name="ReduceContext" extends="org.apache.hadoop.mapreduce.TaskInputOutputContext"
  69615. abstract="false"
  69616. static="false" final="false" visibility="public"
  69617. deprecated="not deprecated">
  69618. <constructor name="ReduceContext" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapreduce.TaskAttemptID, org.apache.hadoop.mapred.RawKeyValueIterator, org.apache.hadoop.mapreduce.Counter, org.apache.hadoop.mapreduce.Counter, org.apache.hadoop.mapreduce.RecordWriter, org.apache.hadoop.mapreduce.OutputCommitter, org.apache.hadoop.mapreduce.StatusReporter, org.apache.hadoop.io.RawComparator, java.lang.Class, java.lang.Class"
  69619. static="false" final="false" visibility="public"
  69620. deprecated="not deprecated">
  69621. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69622. <exception name="IOException" type="java.io.IOException"/>
  69623. </constructor>
  69624. <method name="nextKey" return="boolean"
  69625. abstract="false" native="false" synchronized="false"
  69626. static="false" final="false" visibility="public"
  69627. deprecated="not deprecated">
  69628. <exception name="IOException" type="java.io.IOException"/>
  69629. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69630. <doc>
  69631. <![CDATA[Start processing next unique key.]]>
  69632. </doc>
  69633. </method>
  69634. <method name="nextKeyValue" return="boolean"
  69635. abstract="false" native="false" synchronized="false"
  69636. static="false" final="false" visibility="public"
  69637. deprecated="not deprecated">
  69638. <exception name="IOException" type="java.io.IOException"/>
  69639. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69640. <doc>
  69641. <![CDATA[Advance to the next key/value pair.]]>
  69642. </doc>
  69643. </method>
  69644. <method name="getCurrentKey" return="java.lang.Object"
  69645. abstract="false" native="false" synchronized="false"
  69646. static="false" final="false" visibility="public"
  69647. deprecated="not deprecated">
  69648. </method>
  69649. <method name="getCurrentValue" return="java.lang.Object"
  69650. abstract="false" native="false" synchronized="false"
  69651. static="false" final="false" visibility="public"
  69652. deprecated="not deprecated">
  69653. </method>
  69654. <method name="getValues" return="java.lang.Iterable"
  69655. abstract="false" native="false" synchronized="false"
  69656. static="false" final="false" visibility="public"
  69657. deprecated="not deprecated">
  69658. <exception name="IOException" type="java.io.IOException"/>
  69659. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69660. <doc>
  69661. <![CDATA[Iterate through the values for the current key, reusing the same value
  69662. object, which is stored in the context.
  69663. @return the series of values associated with the current key. All of the
  69664. objects returned directly and indirectly from this method are reused.]]>
  69665. </doc>
  69666. </method>
  69667. <field name="reporter" type="org.apache.hadoop.util.Progressable"
  69668. transient="false" volatile="false"
  69669. static="false" final="false" visibility="protected"
  69670. deprecated="not deprecated">
  69671. </field>
  69672. <doc>
  69673. <![CDATA[The context passed to the {@link Reducer}.
  69674. @param <KEYIN> the class of the input keys
  69675. @param <VALUEIN> the class of the input values
  69676. @param <KEYOUT> the class of the output keys
  69677. @param <VALUEOUT> the class of the output values]]>
  69678. </doc>
  69679. </class>
  69680. <!-- end class org.apache.hadoop.mapreduce.ReduceContext -->
  69681. <!-- start class org.apache.hadoop.mapreduce.ReduceContext.ValueIterable -->
  69682. <class name="ReduceContext.ValueIterable" extends="java.lang.Object"
  69683. abstract="false"
  69684. static="false" final="false" visibility="protected"
  69685. deprecated="not deprecated">
  69686. <implements name="java.lang.Iterable"/>
  69687. <constructor name="ReduceContext.ValueIterable"
  69688. static="false" final="false" visibility="protected"
  69689. deprecated="not deprecated">
  69690. </constructor>
  69691. <method name="iterator" return="java.util.Iterator"
  69692. abstract="false" native="false" synchronized="false"
  69693. static="false" final="false" visibility="public"
  69694. deprecated="not deprecated">
  69695. </method>
  69696. </class>
  69697. <!-- end class org.apache.hadoop.mapreduce.ReduceContext.ValueIterable -->
  69698. <!-- start class org.apache.hadoop.mapreduce.ReduceContext.ValueIterator -->
  69699. <class name="ReduceContext.ValueIterator" extends="java.lang.Object"
  69700. abstract="false"
  69701. static="false" final="false" visibility="protected"
  69702. deprecated="not deprecated">
  69703. <implements name="java.util.Iterator"/>
  69704. <constructor name="ReduceContext.ValueIterator"
  69705. static="false" final="false" visibility="protected"
  69706. deprecated="not deprecated">
  69707. </constructor>
  69708. <method name="hasNext" return="boolean"
  69709. abstract="false" native="false" synchronized="false"
  69710. static="false" final="false" visibility="public"
  69711. deprecated="not deprecated">
  69712. </method>
  69713. <method name="next" return="java.lang.Object"
  69714. abstract="false" native="false" synchronized="false"
  69715. static="false" final="false" visibility="public"
  69716. deprecated="not deprecated">
  69717. </method>
  69718. <method name="remove"
  69719. abstract="false" native="false" synchronized="false"
  69720. static="false" final="false" visibility="public"
  69721. deprecated="not deprecated">
  69722. </method>
  69723. </class>
  69724. <!-- end class org.apache.hadoop.mapreduce.ReduceContext.ValueIterator -->
  69725. <!-- start class org.apache.hadoop.mapreduce.Reducer -->
  69726. <class name="Reducer" extends="java.lang.Object"
  69727. abstract="false"
  69728. static="false" final="false" visibility="public"
  69729. deprecated="not deprecated">
  69730. <constructor name="Reducer"
  69731. static="false" final="false" visibility="public"
  69732. deprecated="not deprecated">
  69733. </constructor>
  69734. <method name="setup"
  69735. abstract="false" native="false" synchronized="false"
  69736. static="false" final="false" visibility="protected"
  69737. deprecated="not deprecated">
  69738. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  69739. <exception name="IOException" type="java.io.IOException"/>
  69740. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69741. <doc>
  69742. <![CDATA[Called once at the start of the task.]]>
  69743. </doc>
  69744. </method>
  69745. <method name="reduce"
  69746. abstract="false" native="false" synchronized="false"
  69747. static="false" final="false" visibility="protected"
  69748. deprecated="not deprecated">
  69749. <param name="key" type="java.lang.Object"/>
  69750. <param name="values" type="java.lang.Iterable"/>
  69751. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  69752. <exception name="IOException" type="java.io.IOException"/>
  69753. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69754. <doc>
  69755. <![CDATA[This method is called once for each key. Most applications will define
  69756. their reduce class by overriding this method. The default implementation
  69757. is an identity function.]]>
  69758. </doc>
  69759. </method>
  69760. <method name="cleanup"
  69761. abstract="false" native="false" synchronized="false"
  69762. static="false" final="false" visibility="protected"
  69763. deprecated="not deprecated">
  69764. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  69765. <exception name="IOException" type="java.io.IOException"/>
  69766. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69767. <doc>
  69768. <![CDATA[Called once at the end of the task.]]>
  69769. </doc>
  69770. </method>
  69771. <method name="run"
  69772. abstract="false" native="false" synchronized="false"
  69773. static="false" final="false" visibility="public"
  69774. deprecated="not deprecated">
  69775. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  69776. <exception name="IOException" type="java.io.IOException"/>
  69777. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69778. <doc>
  69779. <![CDATA[Advanced application writers can use the
  69780. {@link #run(org.apache.hadoop.mapreduce.Reducer.Context)} method to
  69781. control how the reduce task works.]]>
  69782. </doc>
  69783. </method>
  69784. <doc>
  69785. <![CDATA[Reduces a set of intermediate values which share a key to a smaller set of
  69786. values.
  69787. <p><code>Reducer</code> implementations
  69788. can access the {@link Configuration} for the job via the
  69789. {@link JobContext#getConfiguration()} method.</p>
  69790. <p><code>Reducer</code> has 3 primary phases:</p>
  69791. <ol>
  69792. <li>
  69793. <h4 id="Shuffle">Shuffle</h4>
  69794. <p>The <code>Reducer</code> copies the sorted output from each
  69795. {@link Mapper} using HTTP across the network.</p>
  69796. </li>
  69797. <li>
  69798. <h4 id="Sort">Sort</h4>
  69799. <p>The framework merge sorts <code>Reducer</code> inputs by
  69800. <code>key</code>s
  69801. (since different <code>Mapper</code>s may have output the same key).</p>
  69802. <p>The shuffle and sort phases occur simultaneously i.e. while outputs are
  69803. being fetched they are merged.</p>
  69804. <h5 id="SecondarySort">SecondarySort</h5>
  69805. <p>To achieve a secondary sort on the values returned by the value
  69806. iterator, the application should extend the key with the secondary
  69807. key and define a grouping comparator. The keys will be sorted using the
  69808. entire key, but will be grouped using the grouping comparator to decide
  69809. which keys and values are sent in the same call to reduce.The grouping
  69810. comparator is specified via
  69811. {@link Job#setGroupingComparatorClass(Class)}. The sort order is
  69812. controlled by
  69813. {@link Job#setSortComparatorClass(Class)}.</p>
  69814. For example, say that you want to find duplicate web pages and tag them
  69815. all with the url of the "best" known example. You would set up the job
  69816. like:
  69817. <ul>
  69818. <li>Map Input Key: url</li>
  69819. <li>Map Input Value: document</li>
  69820. <li>Map Output Key: document checksum, url pagerank</li>
  69821. <li>Map Output Value: url</li>
  69822. <li>Partitioner: by checksum</li>
  69823. <li>OutputKeyComparator: by checksum and then decreasing pagerank</li>
  69824. <li>OutputValueGroupingComparator: by checksum</li>
  69825. </ul>
  69826. </li>
  69827. <li>
  69828. <h4 id="Reduce">Reduce</h4>
  69829. <p>In this phase the
  69830. {@link #reduce(Object, Iterable, Context)}
  69831. method is called for each <code>&lt;key, (collection of values)></code> in
  69832. the sorted inputs.</p>
  69833. <p>The output of the reduce task is typically written to a
  69834. {@link RecordWriter} via
  69835. {@link Context#write(Object, Object)}.</p>
  69836. </li>
  69837. </ol>
  69838. <p>The output of the <code>Reducer</code> is <b>not re-sorted</b>.</p>
  69839. <p>Example:</p>
  69840. <p><blockquote><pre>
  69841. public class IntSumReducer<Key> extends Reducer<Key,IntWritable,
  69842. Key,IntWritable> {
  69843. private IntWritable result = new IntWritable();
  69844. public void reduce(Key key, Iterable<IntWritable> values,
  69845. Context context) throws IOException {
  69846. int sum = 0;
  69847. for (IntWritable val : values) {
  69848. sum += val.get();
  69849. }
  69850. result.set(sum);
  69851. context.collect(key, result);
  69852. }
  69853. }
  69854. </pre></blockquote></p>
  69855. @see Mapper
  69856. @see Partitioner]]>
  69857. </doc>
  69858. </class>
  69859. <!-- end class org.apache.hadoop.mapreduce.Reducer -->
  69860. <!-- start class org.apache.hadoop.mapreduce.Reducer.Context -->
  69861. <class name="Reducer.Context" extends="org.apache.hadoop.mapreduce.ReduceContext"
  69862. abstract="false"
  69863. static="false" final="false" visibility="public"
  69864. deprecated="not deprecated">
  69865. <constructor name="Reducer.Context" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapreduce.TaskAttemptID, org.apache.hadoop.mapred.RawKeyValueIterator, org.apache.hadoop.mapreduce.Counter, org.apache.hadoop.mapreduce.Counter, org.apache.hadoop.mapreduce.RecordWriter, org.apache.hadoop.mapreduce.OutputCommitter, org.apache.hadoop.mapreduce.StatusReporter, org.apache.hadoop.io.RawComparator, java.lang.Class, java.lang.Class"
  69866. static="false" final="false" visibility="public"
  69867. deprecated="not deprecated">
  69868. <exception name="IOException" type="java.io.IOException"/>
  69869. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  69870. </constructor>
  69871. </class>
  69872. <!-- end class org.apache.hadoop.mapreduce.Reducer.Context -->
  69873. <!-- start class org.apache.hadoop.mapreduce.StatusReporter -->
  69874. <class name="StatusReporter" extends="java.lang.Object"
  69875. abstract="true"
  69876. static="false" final="false" visibility="public"
  69877. deprecated="not deprecated">
  69878. <constructor name="StatusReporter"
  69879. static="false" final="false" visibility="public"
  69880. deprecated="not deprecated">
  69881. </constructor>
  69882. <method name="getCounter" return="org.apache.hadoop.mapreduce.Counter"
  69883. abstract="true" native="false" synchronized="false"
  69884. static="false" final="false" visibility="public"
  69885. deprecated="not deprecated">
  69886. <param name="name" type="java.lang.Enum"/>
  69887. </method>
  69888. <method name="getCounter" return="org.apache.hadoop.mapreduce.Counter"
  69889. abstract="true" native="false" synchronized="false"
  69890. static="false" final="false" visibility="public"
  69891. deprecated="not deprecated">
  69892. <param name="group" type="java.lang.String"/>
  69893. <param name="name" type="java.lang.String"/>
  69894. </method>
  69895. <method name="progress"
  69896. abstract="true" native="false" synchronized="false"
  69897. static="false" final="false" visibility="public"
  69898. deprecated="not deprecated">
  69899. </method>
  69900. <method name="getProgress" return="float"
  69901. abstract="true" native="false" synchronized="false"
  69902. static="false" final="false" visibility="public"
  69903. deprecated="not deprecated">
  69904. <doc>
  69905. <![CDATA[Get the current progress.
  69906. @return a number between 0.0 and 1.0 (inclusive) indicating the attempt's
  69907. progress.]]>
  69908. </doc>
  69909. </method>
  69910. <method name="setStatus"
  69911. abstract="true" native="false" synchronized="false"
  69912. static="false" final="false" visibility="public"
  69913. deprecated="not deprecated">
  69914. <param name="status" type="java.lang.String"/>
  69915. </method>
  69916. </class>
  69917. <!-- end class org.apache.hadoop.mapreduce.StatusReporter -->
  69918. <!-- start class org.apache.hadoop.mapreduce.TaskAttemptContext -->
  69919. <class name="TaskAttemptContext" extends="org.apache.hadoop.mapreduce.JobContext"
  69920. abstract="false"
  69921. static="false" final="false" visibility="public"
  69922. deprecated="not deprecated">
  69923. <implements name="org.apache.hadoop.util.Progressable"/>
  69924. <constructor name="TaskAttemptContext" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapreduce.TaskAttemptID"
  69925. static="false" final="false" visibility="public"
  69926. deprecated="not deprecated">
  69927. </constructor>
  69928. <method name="getTaskAttemptID" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  69929. abstract="false" native="false" synchronized="false"
  69930. static="false" final="false" visibility="public"
  69931. deprecated="not deprecated">
  69932. <doc>
  69933. <![CDATA[Get the unique name for this task attempt.]]>
  69934. </doc>
  69935. </method>
  69936. <method name="setStatus"
  69937. abstract="false" native="false" synchronized="false"
  69938. static="false" final="false" visibility="public"
  69939. deprecated="not deprecated">
  69940. <param name="msg" type="java.lang.String"/>
  69941. <exception name="IOException" type="java.io.IOException"/>
  69942. <doc>
  69943. <![CDATA[Set the current status of the task to the given string.]]>
  69944. </doc>
  69945. </method>
  69946. <method name="getStatus" return="java.lang.String"
  69947. abstract="false" native="false" synchronized="false"
  69948. static="false" final="false" visibility="public"
  69949. deprecated="not deprecated">
  69950. <doc>
  69951. <![CDATA[Get the last set status message.
  69952. @return the current status message]]>
  69953. </doc>
  69954. </method>
  69955. <method name="progress"
  69956. abstract="false" native="false" synchronized="false"
  69957. static="false" final="false" visibility="public"
  69958. deprecated="not deprecated">
  69959. <doc>
  69960. <![CDATA[Report progress. The subtypes actually do work in this method.]]>
  69961. </doc>
  69962. </method>
  69963. <doc>
  69964. <![CDATA[The context for task attempts.]]>
  69965. </doc>
  69966. </class>
  69967. <!-- end class org.apache.hadoop.mapreduce.TaskAttemptContext -->
  69968. <!-- start class org.apache.hadoop.mapreduce.TaskAttemptID -->
  69969. <class name="TaskAttemptID" extends="org.apache.hadoop.mapred.ID"
  69970. abstract="false"
  69971. static="false" final="false" visibility="public"
  69972. deprecated="not deprecated">
  69973. <constructor name="TaskAttemptID" type="org.apache.hadoop.mapreduce.TaskID, int"
  69974. static="false" final="false" visibility="public"
  69975. deprecated="not deprecated">
  69976. <doc>
  69977. <![CDATA[Constructs a TaskAttemptID object from given {@link TaskID}.
  69978. @param taskId TaskID that this task belongs to
  69979. @param id the task attempt number]]>
  69980. </doc>
  69981. </constructor>
  69982. <constructor name="TaskAttemptID" type="java.lang.String, int, boolean, int, int"
  69983. static="false" final="false" visibility="public"
  69984. deprecated="not deprecated">
  69985. <doc>
  69986. <![CDATA[Constructs a TaskId object from given parts.
  69987. @param jtIdentifier jobTracker identifier
  69988. @param jobId job number
  69989. @param isMap whether the tip is a map
  69990. @param taskId taskId number
  69991. @param id the task attempt number]]>
  69992. </doc>
  69993. </constructor>
  69994. <constructor name="TaskAttemptID"
  69995. static="false" final="false" visibility="public"
  69996. deprecated="not deprecated">
  69997. </constructor>
  69998. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  69999. abstract="false" native="false" synchronized="false"
  70000. static="false" final="false" visibility="public"
  70001. deprecated="not deprecated">
  70002. <doc>
  70003. <![CDATA[Returns the {@link JobID} object that this task attempt belongs to]]>
  70004. </doc>
  70005. </method>
  70006. <method name="getTaskID" return="org.apache.hadoop.mapreduce.TaskID"
  70007. abstract="false" native="false" synchronized="false"
  70008. static="false" final="false" visibility="public"
  70009. deprecated="not deprecated">
  70010. <doc>
  70011. <![CDATA[Returns the {@link TaskID} object that this task attempt belongs to]]>
  70012. </doc>
  70013. </method>
  70014. <method name="isMap" return="boolean"
  70015. abstract="false" native="false" synchronized="false"
  70016. static="false" final="false" visibility="public"
  70017. deprecated="not deprecated">
  70018. <doc>
  70019. <![CDATA[Returns whether this TaskAttemptID is a map ID]]>
  70020. </doc>
  70021. </method>
  70022. <method name="equals" return="boolean"
  70023. abstract="false" native="false" synchronized="false"
  70024. static="false" final="false" visibility="public"
  70025. deprecated="not deprecated">
  70026. <param name="o" type="java.lang.Object"/>
  70027. </method>
  70028. <method name="appendTo" return="java.lang.StringBuilder"
  70029. abstract="false" native="false" synchronized="false"
  70030. static="false" final="false" visibility="protected"
  70031. deprecated="not deprecated">
  70032. <param name="builder" type="java.lang.StringBuilder"/>
  70033. <doc>
  70034. <![CDATA[Add the unique string to the StringBuilder
  70035. @param builder the builder to append ot
  70036. @return the builder that was passed in.]]>
  70037. </doc>
  70038. </method>
  70039. <method name="readFields"
  70040. abstract="false" native="false" synchronized="false"
  70041. static="false" final="false" visibility="public"
  70042. deprecated="not deprecated">
  70043. <param name="in" type="java.io.DataInput"/>
  70044. <exception name="IOException" type="java.io.IOException"/>
  70045. </method>
  70046. <method name="write"
  70047. abstract="false" native="false" synchronized="false"
  70048. static="false" final="false" visibility="public"
  70049. deprecated="not deprecated">
  70050. <param name="out" type="java.io.DataOutput"/>
  70051. <exception name="IOException" type="java.io.IOException"/>
  70052. </method>
  70053. <method name="hashCode" return="int"
  70054. abstract="false" native="false" synchronized="false"
  70055. static="false" final="false" visibility="public"
  70056. deprecated="not deprecated">
  70057. </method>
  70058. <method name="compareTo" return="int"
  70059. abstract="false" native="false" synchronized="false"
  70060. static="false" final="false" visibility="public"
  70061. deprecated="not deprecated">
  70062. <param name="o" type="org.apache.hadoop.mapreduce.ID"/>
  70063. <doc>
  70064. <![CDATA[Compare TaskIds by first tipIds, then by task numbers.]]>
  70065. </doc>
  70066. </method>
  70067. <method name="toString" return="java.lang.String"
  70068. abstract="false" native="false" synchronized="false"
  70069. static="false" final="false" visibility="public"
  70070. deprecated="not deprecated">
  70071. </method>
  70072. <method name="forName" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  70073. abstract="false" native="false" synchronized="false"
  70074. static="true" final="false" visibility="public"
  70075. deprecated="not deprecated">
  70076. <param name="str" type="java.lang.String"/>
  70077. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  70078. <doc>
  70079. <![CDATA[Construct a TaskAttemptID object from given string
  70080. @return constructed TaskAttemptID object or null if the given String is null
  70081. @throws IllegalArgumentException if the given string is malformed]]>
  70082. </doc>
  70083. </method>
  70084. <field name="ATTEMPT" type="java.lang.String"
  70085. transient="false" volatile="false"
  70086. static="true" final="true" visibility="protected"
  70087. deprecated="not deprecated">
  70088. </field>
  70089. <doc>
  70090. <![CDATA[TaskAttemptID represents the immutable and unique identifier for
  70091. a task attempt. Each task attempt is one particular instance of a Map or
  70092. Reduce Task identified by its TaskID.
  70093. TaskAttemptID consists of 2 parts. First part is the
  70094. {@link TaskID}, that this TaskAttemptID belongs to.
  70095. Second part is the task attempt number. <br>
  70096. An example TaskAttemptID is :
  70097. <code>attempt_200707121733_0003_m_000005_0</code> , which represents the
  70098. zeroth task attempt for the fifth map task in the third job
  70099. running at the jobtracker started at <code>200707121733</code>.
  70100. <p>
  70101. Applications should never construct or parse TaskAttemptID strings
  70102. , but rather use appropriate constructors or {@link #forName(String)}
  70103. method.
  70104. @see JobID
  70105. @see TaskID]]>
  70106. </doc>
  70107. </class>
  70108. <!-- end class org.apache.hadoop.mapreduce.TaskAttemptID -->
  70109. <!-- start class org.apache.hadoop.mapreduce.TaskID -->
  70110. <class name="TaskID" extends="org.apache.hadoop.mapred.ID"
  70111. abstract="false"
  70112. static="false" final="false" visibility="public"
  70113. deprecated="not deprecated">
  70114. <constructor name="TaskID" type="org.apache.hadoop.mapreduce.JobID, boolean, int"
  70115. static="false" final="false" visibility="public"
  70116. deprecated="not deprecated">
  70117. <doc>
  70118. <![CDATA[Constructs a TaskID object from given {@link JobID}.
  70119. @param jobId JobID that this tip belongs to
  70120. @param isMap whether the tip is a map
  70121. @param id the tip number]]>
  70122. </doc>
  70123. </constructor>
  70124. <constructor name="TaskID" type="java.lang.String, int, boolean, int"
  70125. static="false" final="false" visibility="public"
  70126. deprecated="not deprecated">
  70127. <doc>
  70128. <![CDATA[Constructs a TaskInProgressId object from given parts.
  70129. @param jtIdentifier jobTracker identifier
  70130. @param jobId job number
  70131. @param isMap whether the tip is a map
  70132. @param id the tip number]]>
  70133. </doc>
  70134. </constructor>
  70135. <constructor name="TaskID"
  70136. static="false" final="false" visibility="public"
  70137. deprecated="not deprecated">
  70138. </constructor>
  70139. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  70140. abstract="false" native="false" synchronized="false"
  70141. static="false" final="false" visibility="public"
  70142. deprecated="not deprecated">
  70143. <doc>
  70144. <![CDATA[Returns the {@link JobID} object that this tip belongs to]]>
  70145. </doc>
  70146. </method>
  70147. <method name="isMap" return="boolean"
  70148. abstract="false" native="false" synchronized="false"
  70149. static="false" final="false" visibility="public"
  70150. deprecated="not deprecated">
  70151. <doc>
  70152. <![CDATA[Returns whether this TaskID is a map ID]]>
  70153. </doc>
  70154. </method>
  70155. <method name="equals" return="boolean"
  70156. abstract="false" native="false" synchronized="false"
  70157. static="false" final="false" visibility="public"
  70158. deprecated="not deprecated">
  70159. <param name="o" type="java.lang.Object"/>
  70160. </method>
  70161. <method name="compareTo" return="int"
  70162. abstract="false" native="false" synchronized="false"
  70163. static="false" final="false" visibility="public"
  70164. deprecated="not deprecated">
  70165. <param name="o" type="org.apache.hadoop.mapreduce.ID"/>
  70166. <doc>
  70167. <![CDATA[Compare TaskInProgressIds by first jobIds, then by tip numbers. Reduces are
  70168. defined as greater then maps.]]>
  70169. </doc>
  70170. </method>
  70171. <method name="toString" return="java.lang.String"
  70172. abstract="false" native="false" synchronized="false"
  70173. static="false" final="false" visibility="public"
  70174. deprecated="not deprecated">
  70175. </method>
  70176. <method name="appendTo" return="java.lang.StringBuilder"
  70177. abstract="false" native="false" synchronized="false"
  70178. static="false" final="false" visibility="protected"
  70179. deprecated="not deprecated">
  70180. <param name="builder" type="java.lang.StringBuilder"/>
  70181. <doc>
  70182. <![CDATA[Add the unique string to the given builder.
  70183. @param builder the builder to append to
  70184. @return the builder that was passed in]]>
  70185. </doc>
  70186. </method>
  70187. <method name="hashCode" return="int"
  70188. abstract="false" native="false" synchronized="false"
  70189. static="false" final="false" visibility="public"
  70190. deprecated="not deprecated">
  70191. </method>
  70192. <method name="readFields"
  70193. abstract="false" native="false" synchronized="false"
  70194. static="false" final="false" visibility="public"
  70195. deprecated="not deprecated">
  70196. <param name="in" type="java.io.DataInput"/>
  70197. <exception name="IOException" type="java.io.IOException"/>
  70198. </method>
  70199. <method name="write"
  70200. abstract="false" native="false" synchronized="false"
  70201. static="false" final="false" visibility="public"
  70202. deprecated="not deprecated">
  70203. <param name="out" type="java.io.DataOutput"/>
  70204. <exception name="IOException" type="java.io.IOException"/>
  70205. </method>
  70206. <method name="forName" return="org.apache.hadoop.mapreduce.TaskID"
  70207. abstract="false" native="false" synchronized="false"
  70208. static="true" final="false" visibility="public"
  70209. deprecated="not deprecated">
  70210. <param name="str" type="java.lang.String"/>
  70211. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  70212. <doc>
  70213. <![CDATA[Construct a TaskID object from given string
  70214. @return constructed TaskID object or null if the given String is null
  70215. @throws IllegalArgumentException if the given string is malformed]]>
  70216. </doc>
  70217. </method>
  70218. <field name="TASK" type="java.lang.String"
  70219. transient="false" volatile="false"
  70220. static="true" final="true" visibility="protected"
  70221. deprecated="not deprecated">
  70222. </field>
  70223. <field name="idFormat" type="java.text.NumberFormat"
  70224. transient="false" volatile="false"
  70225. static="true" final="true" visibility="protected"
  70226. deprecated="not deprecated">
  70227. </field>
  70228. <doc>
  70229. <![CDATA[TaskID represents the immutable and unique identifier for
  70230. a Map or Reduce Task. Each TaskID encompasses multiple attempts made to
  70231. execute the Map or Reduce Task, each of which are uniquely indentified by
  70232. their TaskAttemptID.
  70233. TaskID consists of 3 parts. First part is the {@link JobID}, that this
  70234. TaskInProgress belongs to. Second part of the TaskID is either 'm' or 'r'
  70235. representing whether the task is a map task or a reduce task.
  70236. And the third part is the task number. <br>
  70237. An example TaskID is :
  70238. <code>task_200707121733_0003_m_000005</code> , which represents the
  70239. fifth map task in the third job running at the jobtracker
  70240. started at <code>200707121733</code>.
  70241. <p>
  70242. Applications should never construct or parse TaskID strings
  70243. , but rather use appropriate constructors or {@link #forName(String)}
  70244. method.
  70245. @see JobID
  70246. @see TaskAttemptID]]>
  70247. </doc>
  70248. </class>
  70249. <!-- end class org.apache.hadoop.mapreduce.TaskID -->
  70250. <!-- start class org.apache.hadoop.mapreduce.TaskInputOutputContext -->
  70251. <class name="TaskInputOutputContext" extends="org.apache.hadoop.mapreduce.TaskAttemptContext"
  70252. abstract="true"
  70253. static="false" final="false" visibility="public"
  70254. deprecated="not deprecated">
  70255. <implements name="org.apache.hadoop.util.Progressable"/>
  70256. <constructor name="TaskInputOutputContext" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapreduce.TaskAttemptID, org.apache.hadoop.mapreduce.RecordWriter, org.apache.hadoop.mapreduce.OutputCommitter, org.apache.hadoop.mapreduce.StatusReporter"
  70257. static="false" final="false" visibility="public"
  70258. deprecated="not deprecated">
  70259. </constructor>
  70260. <method name="nextKeyValue" return="boolean"
  70261. abstract="true" native="false" synchronized="false"
  70262. static="false" final="false" visibility="public"
  70263. deprecated="not deprecated">
  70264. <exception name="IOException" type="java.io.IOException"/>
  70265. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  70266. <doc>
  70267. <![CDATA[Advance to the next key, value pair, returning null if at end.
  70268. @return the key object that was read into, or null if no more]]>
  70269. </doc>
  70270. </method>
  70271. <method name="getCurrentKey" return="java.lang.Object"
  70272. abstract="true" native="false" synchronized="false"
  70273. static="false" final="false" visibility="public"
  70274. deprecated="not deprecated">
  70275. <exception name="IOException" type="java.io.IOException"/>
  70276. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  70277. <doc>
  70278. <![CDATA[Get the current key.
  70279. @return the current key object or null if there isn't one
  70280. @throws IOException
  70281. @throws InterruptedException]]>
  70282. </doc>
  70283. </method>
  70284. <method name="getCurrentValue" return="java.lang.Object"
  70285. abstract="true" native="false" synchronized="false"
  70286. static="false" final="false" visibility="public"
  70287. deprecated="not deprecated">
  70288. <exception name="IOException" type="java.io.IOException"/>
  70289. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  70290. <doc>
  70291. <![CDATA[Get the current value.
  70292. @return the value object that was read into
  70293. @throws IOException
  70294. @throws InterruptedException]]>
  70295. </doc>
  70296. </method>
  70297. <method name="write"
  70298. abstract="false" native="false" synchronized="false"
  70299. static="false" final="false" visibility="public"
  70300. deprecated="not deprecated">
  70301. <param name="key" type="java.lang.Object"/>
  70302. <param name="value" type="java.lang.Object"/>
  70303. <exception name="IOException" type="java.io.IOException"/>
  70304. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  70305. <doc>
  70306. <![CDATA[Generate an output key/value pair.]]>
  70307. </doc>
  70308. </method>
  70309. <method name="getCounter" return="org.apache.hadoop.mapreduce.Counter"
  70310. abstract="false" native="false" synchronized="false"
  70311. static="false" final="false" visibility="public"
  70312. deprecated="not deprecated">
  70313. <param name="counterName" type="java.lang.Enum"/>
  70314. </method>
  70315. <method name="getCounter" return="org.apache.hadoop.mapreduce.Counter"
  70316. abstract="false" native="false" synchronized="false"
  70317. static="false" final="false" visibility="public"
  70318. deprecated="not deprecated">
  70319. <param name="groupName" type="java.lang.String"/>
  70320. <param name="counterName" type="java.lang.String"/>
  70321. </method>
  70322. <method name="progress"
  70323. abstract="false" native="false" synchronized="false"
  70324. static="false" final="false" visibility="public"
  70325. deprecated="not deprecated">
  70326. </method>
  70327. <method name="getProgress" return="float"
  70328. abstract="false" native="false" synchronized="false"
  70329. static="false" final="false" visibility="public"
  70330. deprecated="not deprecated">
  70331. </method>
  70332. <method name="setStatus"
  70333. abstract="false" native="false" synchronized="false"
  70334. static="false" final="false" visibility="public"
  70335. deprecated="not deprecated">
  70336. <param name="status" type="java.lang.String"/>
  70337. </method>
  70338. <method name="getOutputCommitter" return="org.apache.hadoop.mapreduce.OutputCommitter"
  70339. abstract="false" native="false" synchronized="false"
  70340. static="false" final="false" visibility="public"
  70341. deprecated="not deprecated">
  70342. </method>
  70343. <doc>
  70344. <![CDATA[A context object that allows input and output from the task. It is only
  70345. supplied to the {@link Mapper} or {@link Reducer}.
  70346. @param <KEYIN> the input key type for the task
  70347. @param <VALUEIN> the input value type for the task
  70348. @param <KEYOUT> the output key type for the task
  70349. @param <VALUEOUT> the output value type for the task]]>
  70350. </doc>
  70351. </class>
  70352. <!-- end class org.apache.hadoop.mapreduce.TaskInputOutputContext -->
  70353. <!-- start class org.apache.hadoop.mapreduce.TaskType -->
  70354. <class name="TaskType" extends="java.lang.Enum"
  70355. abstract="false"
  70356. static="false" final="true" visibility="public"
  70357. deprecated="not deprecated">
  70358. <method name="values" return="org.apache.hadoop.mapreduce.TaskType[]"
  70359. abstract="false" native="false" synchronized="false"
  70360. static="true" final="false" visibility="public"
  70361. deprecated="not deprecated">
  70362. </method>
  70363. <method name="valueOf" return="org.apache.hadoop.mapreduce.TaskType"
  70364. abstract="false" native="false" synchronized="false"
  70365. static="true" final="false" visibility="public"
  70366. deprecated="not deprecated">
  70367. <param name="name" type="java.lang.String"/>
  70368. </method>
  70369. <field name="MAP" type="org.apache.hadoop.mapreduce.TaskType"
  70370. transient="false" volatile="false"
  70371. static="true" final="true" visibility="public"
  70372. deprecated="not deprecated">
  70373. </field>
  70374. <field name="REDUCE" type="org.apache.hadoop.mapreduce.TaskType"
  70375. transient="false" volatile="false"
  70376. static="true" final="true" visibility="public"
  70377. deprecated="not deprecated">
  70378. </field>
  70379. <field name="JOB_SETUP" type="org.apache.hadoop.mapreduce.TaskType"
  70380. transient="false" volatile="false"
  70381. static="true" final="true" visibility="public"
  70382. deprecated="not deprecated">
  70383. </field>
  70384. <field name="JOB_CLEANUP" type="org.apache.hadoop.mapreduce.TaskType"
  70385. transient="false" volatile="false"
  70386. static="true" final="true" visibility="public"
  70387. deprecated="not deprecated">
  70388. </field>
  70389. <field name="TASK_CLEANUP" type="org.apache.hadoop.mapreduce.TaskType"
  70390. transient="false" volatile="false"
  70391. static="true" final="true" visibility="public"
  70392. deprecated="not deprecated">
  70393. </field>
  70394. <doc>
  70395. <![CDATA[Enum for map, reduce, job-setup, job-cleanup, task-cleanup task types.]]>
  70396. </doc>
  70397. </class>
  70398. <!-- end class org.apache.hadoop.mapreduce.TaskType -->
  70399. </package>
  70400. <package name="org.apache.hadoop.mapreduce.lib.db">
  70401. <!-- start class org.apache.hadoop.mapreduce.lib.db.BigDecimalSplitter -->
  70402. <class name="BigDecimalSplitter" extends="java.lang.Object"
  70403. abstract="false"
  70404. static="false" final="false" visibility="public"
  70405. deprecated="not deprecated">
  70406. <implements name="org.apache.hadoop.mapreduce.lib.db.DBSplitter"/>
  70407. <constructor name="BigDecimalSplitter"
  70408. static="false" final="false" visibility="public"
  70409. deprecated="not deprecated">
  70410. </constructor>
  70411. <method name="split" return="java.util.List"
  70412. abstract="false" native="false" synchronized="false"
  70413. static="false" final="false" visibility="public"
  70414. deprecated="not deprecated">
  70415. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  70416. <param name="results" type="java.sql.ResultSet"/>
  70417. <param name="colName" type="java.lang.String"/>
  70418. <exception name="SQLException" type="java.sql.SQLException"/>
  70419. </method>
  70420. <method name="tryDivide" return="java.math.BigDecimal"
  70421. abstract="false" native="false" synchronized="false"
  70422. static="false" final="false" visibility="protected"
  70423. deprecated="not deprecated">
  70424. <param name="numerator" type="java.math.BigDecimal"/>
  70425. <param name="denominator" type="java.math.BigDecimal"/>
  70426. <doc>
  70427. <![CDATA[Divide numerator by denominator. If impossible in exact mode, use rounding.]]>
  70428. </doc>
  70429. </method>
  70430. <doc>
  70431. <![CDATA[Implement DBSplitter over BigDecimal values.]]>
  70432. </doc>
  70433. </class>
  70434. <!-- end class org.apache.hadoop.mapreduce.lib.db.BigDecimalSplitter -->
  70435. <!-- start class org.apache.hadoop.mapreduce.lib.db.BooleanSplitter -->
  70436. <class name="BooleanSplitter" extends="java.lang.Object"
  70437. abstract="false"
  70438. static="false" final="false" visibility="public"
  70439. deprecated="not deprecated">
  70440. <implements name="org.apache.hadoop.mapreduce.lib.db.DBSplitter"/>
  70441. <constructor name="BooleanSplitter"
  70442. static="false" final="false" visibility="public"
  70443. deprecated="not deprecated">
  70444. </constructor>
  70445. <method name="split" return="java.util.List"
  70446. abstract="false" native="false" synchronized="false"
  70447. static="false" final="false" visibility="public"
  70448. deprecated="not deprecated">
  70449. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  70450. <param name="results" type="java.sql.ResultSet"/>
  70451. <param name="colName" type="java.lang.String"/>
  70452. <exception name="SQLException" type="java.sql.SQLException"/>
  70453. </method>
  70454. <doc>
  70455. <![CDATA[Implement DBSplitter over boolean values.]]>
  70456. </doc>
  70457. </class>
  70458. <!-- end class org.apache.hadoop.mapreduce.lib.db.BooleanSplitter -->
  70459. <!-- start class org.apache.hadoop.mapreduce.lib.db.DataDrivenDBInputFormat -->
  70460. <class name="DataDrivenDBInputFormat" extends="org.apache.hadoop.mapreduce.lib.db.DBInputFormat"
  70461. abstract="false"
  70462. static="false" final="false" visibility="public"
  70463. deprecated="not deprecated">
  70464. <implements name="org.apache.hadoop.conf.Configurable"/>
  70465. <constructor name="DataDrivenDBInputFormat"
  70466. static="false" final="false" visibility="public"
  70467. deprecated="not deprecated">
  70468. </constructor>
  70469. <method name="getSplitter" return="org.apache.hadoop.mapreduce.lib.db.DBSplitter"
  70470. abstract="false" native="false" synchronized="false"
  70471. static="false" final="false" visibility="protected"
  70472. deprecated="not deprecated">
  70473. <param name="sqlDataType" type="int"/>
  70474. <doc>
  70475. <![CDATA[@return the DBSplitter implementation to use to divide the table/query into InputSplits.]]>
  70476. </doc>
  70477. </method>
  70478. <method name="getSplits" return="java.util.List"
  70479. abstract="false" native="false" synchronized="false"
  70480. static="false" final="false" visibility="public"
  70481. deprecated="not deprecated">
  70482. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  70483. <exception name="IOException" type="java.io.IOException"/>
  70484. <doc>
  70485. <![CDATA[{@inheritDoc}]]>
  70486. </doc>
  70487. </method>
  70488. <method name="getBoundingValsQuery" return="java.lang.String"
  70489. abstract="false" native="false" synchronized="false"
  70490. static="false" final="false" visibility="protected"
  70491. deprecated="not deprecated">
  70492. <doc>
  70493. <![CDATA[@return a query which returns the minimum and maximum values for
  70494. the order-by column.
  70495. The min value should be in the first column, and the
  70496. max value should be in the second column of the results.]]>
  70497. </doc>
  70498. </method>
  70499. <method name="setBoundingQuery"
  70500. abstract="false" native="false" synchronized="false"
  70501. static="true" final="false" visibility="public"
  70502. deprecated="not deprecated">
  70503. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  70504. <param name="query" type="java.lang.String"/>
  70505. <doc>
  70506. <![CDATA[Set the user-defined bounding query to use with a user-defined query.
  70507. This *must* include the substring "$CONDITIONS"
  70508. (DataDrivenDBInputFormat.SUBSTITUTE_TOKEN) inside the WHERE clause,
  70509. so that DataDrivenDBInputFormat knows where to insert split clauses.
  70510. e.g., "SELECT foo FROM mytable WHERE $CONDITIONS"
  70511. This will be expanded to something like:
  70512. SELECT foo FROM mytable WHERE (id &gt; 100) AND (id &lt; 250)
  70513. inside each split.]]>
  70514. </doc>
  70515. </method>
  70516. <method name="createDBRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  70517. abstract="false" native="false" synchronized="false"
  70518. static="false" final="false" visibility="protected"
  70519. deprecated="not deprecated">
  70520. <param name="split" type="org.apache.hadoop.mapreduce.lib.db.DBInputFormat.DBInputSplit"/>
  70521. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  70522. <exception name="IOException" type="java.io.IOException"/>
  70523. </method>
  70524. <method name="setInput"
  70525. abstract="false" native="false" synchronized="false"
  70526. static="true" final="false" visibility="public"
  70527. deprecated="not deprecated">
  70528. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  70529. <param name="inputClass" type="java.lang.Class"/>
  70530. <param name="tableName" type="java.lang.String"/>
  70531. <param name="conditions" type="java.lang.String"/>
  70532. <param name="splitBy" type="java.lang.String"/>
  70533. <param name="fieldNames" type="java.lang.String[]"/>
  70534. <doc>
  70535. <![CDATA[Note that the "orderBy" column is called the "splitBy" in this version.
  70536. We reuse the same field, but it's not strictly ordering it -- just partitioning
  70537. the results.]]>
  70538. </doc>
  70539. </method>
  70540. <method name="setInput"
  70541. abstract="false" native="false" synchronized="false"
  70542. static="true" final="false" visibility="public"
  70543. deprecated="not deprecated">
  70544. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  70545. <param name="inputClass" type="java.lang.Class"/>
  70546. <param name="inputQuery" type="java.lang.String"/>
  70547. <param name="inputBoundingQuery" type="java.lang.String"/>
  70548. <doc>
  70549. <![CDATA[setInput() takes a custom query and a separate "bounding query" to use
  70550. instead of the custom "count query" used by DBInputFormat.]]>
  70551. </doc>
  70552. </method>
  70553. <field name="SUBSTITUTE_TOKEN" type="java.lang.String"
  70554. transient="false" volatile="false"
  70555. static="true" final="true" visibility="public"
  70556. deprecated="not deprecated">
  70557. <doc>
  70558. <![CDATA[If users are providing their own query, the following string is expected to
  70559. appear in the WHERE clause, which will be substituted with a pair of conditions
  70560. on the input to allow input splits to parallelise the import.]]>
  70561. </doc>
  70562. </field>
  70563. <doc>
  70564. <![CDATA[A InputFormat that reads input data from an SQL table.
  70565. Operates like DBInputFormat, but instead of using LIMIT and OFFSET to demarcate
  70566. splits, it tries to generate WHERE clauses which separate the data into roughly
  70567. equivalent shards.]]>
  70568. </doc>
  70569. </class>
  70570. <!-- end class org.apache.hadoop.mapreduce.lib.db.DataDrivenDBInputFormat -->
  70571. <!-- start class org.apache.hadoop.mapreduce.lib.db.DataDrivenDBInputFormat.DataDrivenDBInputSplit -->
  70572. <class name="DataDrivenDBInputFormat.DataDrivenDBInputSplit" extends="org.apache.hadoop.mapreduce.lib.db.DBInputFormat.DBInputSplit"
  70573. abstract="false"
  70574. static="true" final="false" visibility="public"
  70575. deprecated="not deprecated">
  70576. <constructor name="DataDrivenDBInputFormat.DataDrivenDBInputSplit"
  70577. static="false" final="false" visibility="public"
  70578. deprecated="not deprecated">
  70579. <doc>
  70580. <![CDATA[Default Constructor]]>
  70581. </doc>
  70582. </constructor>
  70583. <constructor name="DataDrivenDBInputFormat.DataDrivenDBInputSplit" type="java.lang.String, java.lang.String"
  70584. static="false" final="false" visibility="public"
  70585. deprecated="not deprecated">
  70586. <doc>
  70587. <![CDATA[Convenience Constructor
  70588. @param lower the string to be put in the WHERE clause to guard on the 'lower' end
  70589. @param upper the string to be put in the WHERE clause to guard on the 'upper' end]]>
  70590. </doc>
  70591. </constructor>
  70592. <method name="getLength" return="long"
  70593. abstract="false" native="false" synchronized="false"
  70594. static="false" final="false" visibility="public"
  70595. deprecated="not deprecated">
  70596. <exception name="IOException" type="java.io.IOException"/>
  70597. <doc>
  70598. <![CDATA[@return The total row count in this split]]>
  70599. </doc>
  70600. </method>
  70601. <method name="readFields"
  70602. abstract="false" native="false" synchronized="false"
  70603. static="false" final="false" visibility="public"
  70604. deprecated="not deprecated">
  70605. <param name="input" type="java.io.DataInput"/>
  70606. <exception name="IOException" type="java.io.IOException"/>
  70607. <doc>
  70608. <![CDATA[{@inheritDoc}]]>
  70609. </doc>
  70610. </method>
  70611. <method name="write"
  70612. abstract="false" native="false" synchronized="false"
  70613. static="false" final="false" visibility="public"
  70614. deprecated="not deprecated">
  70615. <param name="output" type="java.io.DataOutput"/>
  70616. <exception name="IOException" type="java.io.IOException"/>
  70617. <doc>
  70618. <![CDATA[{@inheritDoc}]]>
  70619. </doc>
  70620. </method>
  70621. <method name="getLowerClause" return="java.lang.String"
  70622. abstract="false" native="false" synchronized="false"
  70623. static="false" final="false" visibility="public"
  70624. deprecated="not deprecated">
  70625. </method>
  70626. <method name="getUpperClause" return="java.lang.String"
  70627. abstract="false" native="false" synchronized="false"
  70628. static="false" final="false" visibility="public"
  70629. deprecated="not deprecated">
  70630. </method>
  70631. <doc>
  70632. <![CDATA[A InputSplit that spans a set of rows]]>
  70633. </doc>
  70634. </class>
  70635. <!-- end class org.apache.hadoop.mapreduce.lib.db.DataDrivenDBInputFormat.DataDrivenDBInputSplit -->
  70636. <!-- start class org.apache.hadoop.mapreduce.lib.db.DataDrivenDBRecordReader -->
  70637. <class name="DataDrivenDBRecordReader" extends="org.apache.hadoop.mapreduce.lib.db.DBRecordReader"
  70638. abstract="false"
  70639. static="false" final="false" visibility="public"
  70640. deprecated="not deprecated">
  70641. <constructor name="DataDrivenDBRecordReader" type="org.apache.hadoop.mapreduce.lib.db.DBInputFormat.DBInputSplit, java.lang.Class, org.apache.hadoop.conf.Configuration, java.sql.Connection, org.apache.hadoop.mapreduce.lib.db.DBConfiguration, java.lang.String, java.lang.String[], java.lang.String, java.lang.String"
  70642. static="false" final="false" visibility="public"
  70643. deprecated="not deprecated">
  70644. <exception name="SQLException" type="java.sql.SQLException"/>
  70645. <doc>
  70646. <![CDATA[@param split The InputSplit to read data for
  70647. @throws SQLException]]>
  70648. </doc>
  70649. </constructor>
  70650. <method name="getSelectQuery" return="java.lang.String"
  70651. abstract="false" native="false" synchronized="false"
  70652. static="false" final="false" visibility="protected"
  70653. deprecated="not deprecated">
  70654. <doc>
  70655. <![CDATA[Returns the query for selecting the records,
  70656. subclasses can override this for custom behaviour.]]>
  70657. </doc>
  70658. </method>
  70659. <doc>
  70660. <![CDATA[A RecordReader that reads records from a SQL table,
  70661. using data-driven WHERE clause splits.
  70662. Emits LongWritables containing the record number as
  70663. key and DBWritables as value.]]>
  70664. </doc>
  70665. </class>
  70666. <!-- end class org.apache.hadoop.mapreduce.lib.db.DataDrivenDBRecordReader -->
  70667. <!-- start class org.apache.hadoop.mapreduce.lib.db.DateSplitter -->
  70668. <class name="DateSplitter" extends="org.apache.hadoop.mapreduce.lib.db.IntegerSplitter"
  70669. abstract="false"
  70670. static="false" final="false" visibility="public"
  70671. deprecated="not deprecated">
  70672. <constructor name="DateSplitter"
  70673. static="false" final="false" visibility="public"
  70674. deprecated="not deprecated">
  70675. </constructor>
  70676. <method name="split" return="java.util.List"
  70677. abstract="false" native="false" synchronized="false"
  70678. static="false" final="false" visibility="public"
  70679. deprecated="not deprecated">
  70680. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  70681. <param name="results" type="java.sql.ResultSet"/>
  70682. <param name="colName" type="java.lang.String"/>
  70683. <exception name="SQLException" type="java.sql.SQLException"/>
  70684. </method>
  70685. <method name="dateToString" return="java.lang.String"
  70686. abstract="false" native="false" synchronized="false"
  70687. static="false" final="false" visibility="protected"
  70688. deprecated="not deprecated">
  70689. <param name="d" type="java.util.Date"/>
  70690. <doc>
  70691. <![CDATA[Given a Date 'd', format it as a string for use in a SQL date
  70692. comparison operation.
  70693. @param d the date to format.
  70694. @return the string representing this date in SQL with any appropriate
  70695. quotation characters, etc.]]>
  70696. </doc>
  70697. </method>
  70698. <doc>
  70699. <![CDATA[Implement DBSplitter over date/time values.
  70700. Make use of logic from IntegerSplitter, since date/time are just longs
  70701. in Java.]]>
  70702. </doc>
  70703. </class>
  70704. <!-- end class org.apache.hadoop.mapreduce.lib.db.DateSplitter -->
  70705. <!-- start class org.apache.hadoop.mapreduce.lib.db.DBConfiguration -->
  70706. <class name="DBConfiguration" extends="java.lang.Object"
  70707. abstract="false"
  70708. static="false" final="false" visibility="public"
  70709. deprecated="not deprecated">
  70710. <constructor name="DBConfiguration" type="org.apache.hadoop.conf.Configuration"
  70711. static="false" final="false" visibility="public"
  70712. deprecated="not deprecated">
  70713. </constructor>
  70714. <method name="configureDB"
  70715. abstract="false" native="false" synchronized="false"
  70716. static="true" final="false" visibility="public"
  70717. deprecated="not deprecated">
  70718. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  70719. <param name="driverClass" type="java.lang.String"/>
  70720. <param name="dbUrl" type="java.lang.String"/>
  70721. <param name="userName" type="java.lang.String"/>
  70722. <param name="passwd" type="java.lang.String"/>
  70723. <doc>
  70724. <![CDATA[Sets the DB access related fields in the {@link Configuration}.
  70725. @param conf the configuration
  70726. @param driverClass JDBC Driver class name
  70727. @param dbUrl JDBC DB access URL.
  70728. @param userName DB access username
  70729. @param passwd DB access passwd]]>
  70730. </doc>
  70731. </method>
  70732. <method name="configureDB"
  70733. abstract="false" native="false" synchronized="false"
  70734. static="true" final="false" visibility="public"
  70735. deprecated="not deprecated">
  70736. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  70737. <param name="driverClass" type="java.lang.String"/>
  70738. <param name="dbUrl" type="java.lang.String"/>
  70739. <doc>
  70740. <![CDATA[Sets the DB access related fields in the JobConf.
  70741. @param job the job
  70742. @param driverClass JDBC Driver class name
  70743. @param dbUrl JDBC DB access URL.]]>
  70744. </doc>
  70745. </method>
  70746. <method name="getConnection" return="java.sql.Connection"
  70747. abstract="false" native="false" synchronized="false"
  70748. static="false" final="false" visibility="public"
  70749. deprecated="not deprecated">
  70750. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  70751. <exception name="SQLException" type="java.sql.SQLException"/>
  70752. <doc>
  70753. <![CDATA[Returns a connection object o the DB
  70754. @throws ClassNotFoundException
  70755. @throws SQLException]]>
  70756. </doc>
  70757. </method>
  70758. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  70759. abstract="false" native="false" synchronized="false"
  70760. static="false" final="false" visibility="public"
  70761. deprecated="not deprecated">
  70762. </method>
  70763. <method name="getInputTableName" return="java.lang.String"
  70764. abstract="false" native="false" synchronized="false"
  70765. static="false" final="false" visibility="public"
  70766. deprecated="not deprecated">
  70767. </method>
  70768. <method name="setInputTableName"
  70769. abstract="false" native="false" synchronized="false"
  70770. static="false" final="false" visibility="public"
  70771. deprecated="not deprecated">
  70772. <param name="tableName" type="java.lang.String"/>
  70773. </method>
  70774. <method name="getInputFieldNames" return="java.lang.String[]"
  70775. abstract="false" native="false" synchronized="false"
  70776. static="false" final="false" visibility="public"
  70777. deprecated="not deprecated">
  70778. </method>
  70779. <method name="setInputFieldNames"
  70780. abstract="false" native="false" synchronized="false"
  70781. static="false" final="false" visibility="public"
  70782. deprecated="not deprecated">
  70783. <param name="fieldNames" type="java.lang.String[]"/>
  70784. </method>
  70785. <method name="getInputConditions" return="java.lang.String"
  70786. abstract="false" native="false" synchronized="false"
  70787. static="false" final="false" visibility="public"
  70788. deprecated="not deprecated">
  70789. </method>
  70790. <method name="setInputConditions"
  70791. abstract="false" native="false" synchronized="false"
  70792. static="false" final="false" visibility="public"
  70793. deprecated="not deprecated">
  70794. <param name="conditions" type="java.lang.String"/>
  70795. </method>
  70796. <method name="getInputOrderBy" return="java.lang.String"
  70797. abstract="false" native="false" synchronized="false"
  70798. static="false" final="false" visibility="public"
  70799. deprecated="not deprecated">
  70800. </method>
  70801. <method name="setInputOrderBy"
  70802. abstract="false" native="false" synchronized="false"
  70803. static="false" final="false" visibility="public"
  70804. deprecated="not deprecated">
  70805. <param name="orderby" type="java.lang.String"/>
  70806. </method>
  70807. <method name="getInputQuery" return="java.lang.String"
  70808. abstract="false" native="false" synchronized="false"
  70809. static="false" final="false" visibility="public"
  70810. deprecated="not deprecated">
  70811. </method>
  70812. <method name="setInputQuery"
  70813. abstract="false" native="false" synchronized="false"
  70814. static="false" final="false" visibility="public"
  70815. deprecated="not deprecated">
  70816. <param name="query" type="java.lang.String"/>
  70817. </method>
  70818. <method name="getInputCountQuery" return="java.lang.String"
  70819. abstract="false" native="false" synchronized="false"
  70820. static="false" final="false" visibility="public"
  70821. deprecated="not deprecated">
  70822. </method>
  70823. <method name="setInputCountQuery"
  70824. abstract="false" native="false" synchronized="false"
  70825. static="false" final="false" visibility="public"
  70826. deprecated="not deprecated">
  70827. <param name="query" type="java.lang.String"/>
  70828. </method>
  70829. <method name="setInputBoundingQuery"
  70830. abstract="false" native="false" synchronized="false"
  70831. static="false" final="false" visibility="public"
  70832. deprecated="not deprecated">
  70833. <param name="query" type="java.lang.String"/>
  70834. </method>
  70835. <method name="getInputBoundingQuery" return="java.lang.String"
  70836. abstract="false" native="false" synchronized="false"
  70837. static="false" final="false" visibility="public"
  70838. deprecated="not deprecated">
  70839. </method>
  70840. <method name="getInputClass" return="java.lang.Class"
  70841. abstract="false" native="false" synchronized="false"
  70842. static="false" final="false" visibility="public"
  70843. deprecated="not deprecated">
  70844. </method>
  70845. <method name="setInputClass"
  70846. abstract="false" native="false" synchronized="false"
  70847. static="false" final="false" visibility="public"
  70848. deprecated="not deprecated">
  70849. <param name="inputClass" type="java.lang.Class"/>
  70850. </method>
  70851. <method name="getOutputTableName" return="java.lang.String"
  70852. abstract="false" native="false" synchronized="false"
  70853. static="false" final="false" visibility="public"
  70854. deprecated="not deprecated">
  70855. </method>
  70856. <method name="setOutputTableName"
  70857. abstract="false" native="false" synchronized="false"
  70858. static="false" final="false" visibility="public"
  70859. deprecated="not deprecated">
  70860. <param name="tableName" type="java.lang.String"/>
  70861. </method>
  70862. <method name="getOutputFieldNames" return="java.lang.String[]"
  70863. abstract="false" native="false" synchronized="false"
  70864. static="false" final="false" visibility="public"
  70865. deprecated="not deprecated">
  70866. </method>
  70867. <method name="setOutputFieldNames"
  70868. abstract="false" native="false" synchronized="false"
  70869. static="false" final="false" visibility="public"
  70870. deprecated="not deprecated">
  70871. <param name="fieldNames" type="java.lang.String[]"/>
  70872. </method>
  70873. <method name="setOutputFieldCount"
  70874. abstract="false" native="false" synchronized="false"
  70875. static="false" final="false" visibility="public"
  70876. deprecated="not deprecated">
  70877. <param name="fieldCount" type="int"/>
  70878. </method>
  70879. <method name="getOutputFieldCount" return="int"
  70880. abstract="false" native="false" synchronized="false"
  70881. static="false" final="false" visibility="public"
  70882. deprecated="not deprecated">
  70883. </method>
  70884. <field name="DRIVER_CLASS_PROPERTY" type="java.lang.String"
  70885. transient="false" volatile="false"
  70886. static="true" final="true" visibility="public"
  70887. deprecated="not deprecated">
  70888. <doc>
  70889. <![CDATA[The JDBC Driver class name]]>
  70890. </doc>
  70891. </field>
  70892. <field name="URL_PROPERTY" type="java.lang.String"
  70893. transient="false" volatile="false"
  70894. static="true" final="true" visibility="public"
  70895. deprecated="not deprecated">
  70896. <doc>
  70897. <![CDATA[JDBC Database access URL]]>
  70898. </doc>
  70899. </field>
  70900. <field name="USERNAME_PROPERTY" type="java.lang.String"
  70901. transient="false" volatile="false"
  70902. static="true" final="true" visibility="public"
  70903. deprecated="not deprecated">
  70904. <doc>
  70905. <![CDATA[User name to access the database]]>
  70906. </doc>
  70907. </field>
  70908. <field name="PASSWORD_PROPERTY" type="java.lang.String"
  70909. transient="false" volatile="false"
  70910. static="true" final="true" visibility="public"
  70911. deprecated="not deprecated">
  70912. <doc>
  70913. <![CDATA[Password to access the database]]>
  70914. </doc>
  70915. </field>
  70916. <field name="INPUT_TABLE_NAME_PROPERTY" type="java.lang.String"
  70917. transient="false" volatile="false"
  70918. static="true" final="true" visibility="public"
  70919. deprecated="not deprecated">
  70920. <doc>
  70921. <![CDATA[Input table name]]>
  70922. </doc>
  70923. </field>
  70924. <field name="INPUT_FIELD_NAMES_PROPERTY" type="java.lang.String"
  70925. transient="false" volatile="false"
  70926. static="true" final="true" visibility="public"
  70927. deprecated="not deprecated">
  70928. <doc>
  70929. <![CDATA[Field names in the Input table]]>
  70930. </doc>
  70931. </field>
  70932. <field name="INPUT_CONDITIONS_PROPERTY" type="java.lang.String"
  70933. transient="false" volatile="false"
  70934. static="true" final="true" visibility="public"
  70935. deprecated="not deprecated">
  70936. <doc>
  70937. <![CDATA[WHERE clause in the input SELECT statement]]>
  70938. </doc>
  70939. </field>
  70940. <field name="INPUT_ORDER_BY_PROPERTY" type="java.lang.String"
  70941. transient="false" volatile="false"
  70942. static="true" final="true" visibility="public"
  70943. deprecated="not deprecated">
  70944. <doc>
  70945. <![CDATA[ORDER BY clause in the input SELECT statement]]>
  70946. </doc>
  70947. </field>
  70948. <field name="INPUT_QUERY" type="java.lang.String"
  70949. transient="false" volatile="false"
  70950. static="true" final="true" visibility="public"
  70951. deprecated="not deprecated">
  70952. <doc>
  70953. <![CDATA[Whole input query, exluding LIMIT...OFFSET]]>
  70954. </doc>
  70955. </field>
  70956. <field name="INPUT_COUNT_QUERY" type="java.lang.String"
  70957. transient="false" volatile="false"
  70958. static="true" final="true" visibility="public"
  70959. deprecated="not deprecated">
  70960. <doc>
  70961. <![CDATA[Input query to get the count of records]]>
  70962. </doc>
  70963. </field>
  70964. <field name="INPUT_BOUNDING_QUERY" type="java.lang.String"
  70965. transient="false" volatile="false"
  70966. static="true" final="true" visibility="public"
  70967. deprecated="not deprecated">
  70968. <doc>
  70969. <![CDATA[Input query to get the max and min values of the jdbc.input.query]]>
  70970. </doc>
  70971. </field>
  70972. <field name="INPUT_CLASS_PROPERTY" type="java.lang.String"
  70973. transient="false" volatile="false"
  70974. static="true" final="true" visibility="public"
  70975. deprecated="not deprecated">
  70976. <doc>
  70977. <![CDATA[Class name implementing DBWritable which will hold input tuples]]>
  70978. </doc>
  70979. </field>
  70980. <field name="OUTPUT_TABLE_NAME_PROPERTY" type="java.lang.String"
  70981. transient="false" volatile="false"
  70982. static="true" final="true" visibility="public"
  70983. deprecated="not deprecated">
  70984. <doc>
  70985. <![CDATA[Output table name]]>
  70986. </doc>
  70987. </field>
  70988. <field name="OUTPUT_FIELD_NAMES_PROPERTY" type="java.lang.String"
  70989. transient="false" volatile="false"
  70990. static="true" final="true" visibility="public"
  70991. deprecated="not deprecated">
  70992. <doc>
  70993. <![CDATA[Field names in the Output table]]>
  70994. </doc>
  70995. </field>
  70996. <field name="OUTPUT_FIELD_COUNT_PROPERTY" type="java.lang.String"
  70997. transient="false" volatile="false"
  70998. static="true" final="true" visibility="public"
  70999. deprecated="not deprecated">
  71000. <doc>
  71001. <![CDATA[Number of fields in the Output table]]>
  71002. </doc>
  71003. </field>
  71004. <doc>
  71005. <![CDATA[A container for configuration property names for jobs with DB input/output.
  71006. The job can be configured using the static methods in this class,
  71007. {@link DBInputFormat}, and {@link DBOutputFormat}.
  71008. Alternatively, the properties can be set in the configuration with proper
  71009. values.
  71010. @see DBConfiguration#configureDB(Configuration, String, String, String, String)
  71011. @see DBInputFormat#setInput(Job, Class, String, String)
  71012. @see DBInputFormat#setInput(Job, Class, String, String, String, String...)
  71013. @see DBOutputFormat#setOutput(Job, String, String...)]]>
  71014. </doc>
  71015. </class>
  71016. <!-- end class org.apache.hadoop.mapreduce.lib.db.DBConfiguration -->
  71017. <!-- start class org.apache.hadoop.mapreduce.lib.db.DBInputFormat -->
  71018. <class name="DBInputFormat" extends="org.apache.hadoop.mapreduce.InputFormat"
  71019. abstract="false"
  71020. static="false" final="false" visibility="public"
  71021. deprecated="not deprecated">
  71022. <implements name="org.apache.hadoop.conf.Configurable"/>
  71023. <constructor name="DBInputFormat"
  71024. static="false" final="false" visibility="public"
  71025. deprecated="not deprecated">
  71026. </constructor>
  71027. <method name="setConf"
  71028. abstract="false" native="false" synchronized="false"
  71029. static="false" final="false" visibility="public"
  71030. deprecated="not deprecated">
  71031. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  71032. <doc>
  71033. <![CDATA[{@inheritDoc}]]>
  71034. </doc>
  71035. </method>
  71036. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  71037. abstract="false" native="false" synchronized="false"
  71038. static="false" final="false" visibility="public"
  71039. deprecated="not deprecated">
  71040. </method>
  71041. <method name="getDBConf" return="org.apache.hadoop.mapreduce.lib.db.DBConfiguration"
  71042. abstract="false" native="false" synchronized="false"
  71043. static="false" final="false" visibility="public"
  71044. deprecated="not deprecated">
  71045. </method>
  71046. <method name="getConnection" return="java.sql.Connection"
  71047. abstract="false" native="false" synchronized="false"
  71048. static="false" final="false" visibility="public"
  71049. deprecated="not deprecated">
  71050. </method>
  71051. <method name="getDBProductName" return="java.lang.String"
  71052. abstract="false" native="false" synchronized="false"
  71053. static="false" final="false" visibility="public"
  71054. deprecated="not deprecated">
  71055. </method>
  71056. <method name="createDBRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  71057. abstract="false" native="false" synchronized="false"
  71058. static="false" final="false" visibility="protected"
  71059. deprecated="not deprecated">
  71060. <param name="split" type="org.apache.hadoop.mapreduce.lib.db.DBInputFormat.DBInputSplit"/>
  71061. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  71062. <exception name="IOException" type="java.io.IOException"/>
  71063. </method>
  71064. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  71065. abstract="false" native="false" synchronized="false"
  71066. static="false" final="false" visibility="public"
  71067. deprecated="not deprecated">
  71068. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  71069. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  71070. <exception name="IOException" type="java.io.IOException"/>
  71071. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71072. <doc>
  71073. <![CDATA[{@inheritDoc}]]>
  71074. </doc>
  71075. </method>
  71076. <method name="getSplits" return="java.util.List"
  71077. abstract="false" native="false" synchronized="false"
  71078. static="false" final="false" visibility="public"
  71079. deprecated="not deprecated">
  71080. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  71081. <exception name="IOException" type="java.io.IOException"/>
  71082. <doc>
  71083. <![CDATA[{@inheritDoc}]]>
  71084. </doc>
  71085. </method>
  71086. <method name="getCountQuery" return="java.lang.String"
  71087. abstract="false" native="false" synchronized="false"
  71088. static="false" final="false" visibility="protected"
  71089. deprecated="not deprecated">
  71090. <doc>
  71091. <![CDATA[Returns the query for getting the total number of rows,
  71092. subclasses can override this for custom behaviour.]]>
  71093. </doc>
  71094. </method>
  71095. <method name="setInput"
  71096. abstract="false" native="false" synchronized="false"
  71097. static="true" final="false" visibility="public"
  71098. deprecated="not deprecated">
  71099. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  71100. <param name="inputClass" type="java.lang.Class"/>
  71101. <param name="tableName" type="java.lang.String"/>
  71102. <param name="conditions" type="java.lang.String"/>
  71103. <param name="orderBy" type="java.lang.String"/>
  71104. <param name="fieldNames" type="java.lang.String[]"/>
  71105. <doc>
  71106. <![CDATA[Initializes the map-part of the job with the appropriate input settings.
  71107. @param job The map-reduce job
  71108. @param inputClass the class object implementing DBWritable, which is the
  71109. Java object holding tuple fields.
  71110. @param tableName The table to read data from
  71111. @param conditions The condition which to select data with,
  71112. eg. '(updated > 20070101 AND length > 0)'
  71113. @param orderBy the fieldNames in the orderBy clause.
  71114. @param fieldNames The field names in the table
  71115. @see #setInput(Job, Class, String, String)]]>
  71116. </doc>
  71117. </method>
  71118. <method name="setInput"
  71119. abstract="false" native="false" synchronized="false"
  71120. static="true" final="false" visibility="public"
  71121. deprecated="not deprecated">
  71122. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  71123. <param name="inputClass" type="java.lang.Class"/>
  71124. <param name="inputQuery" type="java.lang.String"/>
  71125. <param name="inputCountQuery" type="java.lang.String"/>
  71126. <doc>
  71127. <![CDATA[Initializes the map-part of the job with the appropriate input settings.
  71128. @param job The map-reduce job
  71129. @param inputClass the class object implementing DBWritable, which is the
  71130. Java object holding tuple fields.
  71131. @param inputQuery the input query to select fields. Example :
  71132. "SELECT f1, f2, f3 FROM Mytable ORDER BY f1"
  71133. @param inputCountQuery the input query that returns
  71134. the number of records in the table.
  71135. Example : "SELECT COUNT(f1) FROM Mytable"
  71136. @see #setInput(Job, Class, String, String, String, String...)]]>
  71137. </doc>
  71138. </method>
  71139. <method name="closeConnection"
  71140. abstract="false" native="false" synchronized="false"
  71141. static="false" final="false" visibility="protected"
  71142. deprecated="not deprecated">
  71143. </method>
  71144. <doc>
  71145. <![CDATA[A InputFormat that reads input data from an SQL table.
  71146. <p>
  71147. DBInputFormat emits LongWritables containing the record number as
  71148. key and DBWritables as value.
  71149. The SQL query, and input class can be using one of the two
  71150. setInput methods.]]>
  71151. </doc>
  71152. </class>
  71153. <!-- end class org.apache.hadoop.mapreduce.lib.db.DBInputFormat -->
  71154. <!-- start class org.apache.hadoop.mapreduce.lib.db.DBInputFormat.DBInputSplit -->
  71155. <class name="DBInputFormat.DBInputSplit" extends="org.apache.hadoop.mapreduce.InputSplit"
  71156. abstract="false"
  71157. static="true" final="false" visibility="public"
  71158. deprecated="not deprecated">
  71159. <implements name="org.apache.hadoop.io.Writable"/>
  71160. <constructor name="DBInputFormat.DBInputSplit"
  71161. static="false" final="false" visibility="public"
  71162. deprecated="not deprecated">
  71163. <doc>
  71164. <![CDATA[Default Constructor]]>
  71165. </doc>
  71166. </constructor>
  71167. <constructor name="DBInputFormat.DBInputSplit" type="long, long"
  71168. static="false" final="false" visibility="public"
  71169. deprecated="not deprecated">
  71170. <doc>
  71171. <![CDATA[Convenience Constructor
  71172. @param start the index of the first row to select
  71173. @param end the index of the last row to select]]>
  71174. </doc>
  71175. </constructor>
  71176. <method name="getLocations" return="java.lang.String[]"
  71177. abstract="false" native="false" synchronized="false"
  71178. static="false" final="false" visibility="public"
  71179. deprecated="not deprecated">
  71180. <exception name="IOException" type="java.io.IOException"/>
  71181. <doc>
  71182. <![CDATA[{@inheritDoc}]]>
  71183. </doc>
  71184. </method>
  71185. <method name="getStart" return="long"
  71186. abstract="false" native="false" synchronized="false"
  71187. static="false" final="false" visibility="public"
  71188. deprecated="not deprecated">
  71189. <doc>
  71190. <![CDATA[@return The index of the first row to select]]>
  71191. </doc>
  71192. </method>
  71193. <method name="getEnd" return="long"
  71194. abstract="false" native="false" synchronized="false"
  71195. static="false" final="false" visibility="public"
  71196. deprecated="not deprecated">
  71197. <doc>
  71198. <![CDATA[@return The index of the last row to select]]>
  71199. </doc>
  71200. </method>
  71201. <method name="getLength" return="long"
  71202. abstract="false" native="false" synchronized="false"
  71203. static="false" final="false" visibility="public"
  71204. deprecated="not deprecated">
  71205. <exception name="IOException" type="java.io.IOException"/>
  71206. <doc>
  71207. <![CDATA[@return The total row count in this split]]>
  71208. </doc>
  71209. </method>
  71210. <method name="readFields"
  71211. abstract="false" native="false" synchronized="false"
  71212. static="false" final="false" visibility="public"
  71213. deprecated="not deprecated">
  71214. <param name="input" type="java.io.DataInput"/>
  71215. <exception name="IOException" type="java.io.IOException"/>
  71216. <doc>
  71217. <![CDATA[{@inheritDoc}]]>
  71218. </doc>
  71219. </method>
  71220. <method name="write"
  71221. abstract="false" native="false" synchronized="false"
  71222. static="false" final="false" visibility="public"
  71223. deprecated="not deprecated">
  71224. <param name="output" type="java.io.DataOutput"/>
  71225. <exception name="IOException" type="java.io.IOException"/>
  71226. <doc>
  71227. <![CDATA[{@inheritDoc}]]>
  71228. </doc>
  71229. </method>
  71230. <doc>
  71231. <![CDATA[A InputSplit that spans a set of rows]]>
  71232. </doc>
  71233. </class>
  71234. <!-- end class org.apache.hadoop.mapreduce.lib.db.DBInputFormat.DBInputSplit -->
  71235. <!-- start class org.apache.hadoop.mapreduce.lib.db.DBInputFormat.NullDBWritable -->
  71236. <class name="DBInputFormat.NullDBWritable" extends="java.lang.Object"
  71237. abstract="false"
  71238. static="true" final="false" visibility="public"
  71239. deprecated="not deprecated">
  71240. <implements name="org.apache.hadoop.mapreduce.lib.db.DBWritable"/>
  71241. <implements name="org.apache.hadoop.io.Writable"/>
  71242. <constructor name="DBInputFormat.NullDBWritable"
  71243. static="false" final="false" visibility="public"
  71244. deprecated="not deprecated">
  71245. </constructor>
  71246. <method name="readFields"
  71247. abstract="false" native="false" synchronized="false"
  71248. static="false" final="false" visibility="public"
  71249. deprecated="not deprecated">
  71250. <param name="in" type="java.io.DataInput"/>
  71251. <exception name="IOException" type="java.io.IOException"/>
  71252. </method>
  71253. <method name="readFields"
  71254. abstract="false" native="false" synchronized="false"
  71255. static="false" final="false" visibility="public"
  71256. deprecated="not deprecated">
  71257. <param name="arg0" type="java.sql.ResultSet"/>
  71258. <exception name="SQLException" type="java.sql.SQLException"/>
  71259. </method>
  71260. <method name="write"
  71261. abstract="false" native="false" synchronized="false"
  71262. static="false" final="false" visibility="public"
  71263. deprecated="not deprecated">
  71264. <param name="out" type="java.io.DataOutput"/>
  71265. <exception name="IOException" type="java.io.IOException"/>
  71266. </method>
  71267. <method name="write"
  71268. abstract="false" native="false" synchronized="false"
  71269. static="false" final="false" visibility="public"
  71270. deprecated="not deprecated">
  71271. <param name="arg0" type="java.sql.PreparedStatement"/>
  71272. <exception name="SQLException" type="java.sql.SQLException"/>
  71273. </method>
  71274. <doc>
  71275. <![CDATA[A Class that does nothing, implementing DBWritable]]>
  71276. </doc>
  71277. </class>
  71278. <!-- end class org.apache.hadoop.mapreduce.lib.db.DBInputFormat.NullDBWritable -->
  71279. <!-- start class org.apache.hadoop.mapreduce.lib.db.DBOutputFormat -->
  71280. <class name="DBOutputFormat" extends="org.apache.hadoop.mapreduce.OutputFormat"
  71281. abstract="false"
  71282. static="false" final="false" visibility="public"
  71283. deprecated="not deprecated">
  71284. <constructor name="DBOutputFormat"
  71285. static="false" final="false" visibility="public"
  71286. deprecated="not deprecated">
  71287. </constructor>
  71288. <method name="checkOutputSpecs"
  71289. abstract="false" native="false" synchronized="false"
  71290. static="false" final="false" visibility="public"
  71291. deprecated="not deprecated">
  71292. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  71293. <exception name="IOException" type="java.io.IOException"/>
  71294. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71295. </method>
  71296. <method name="getOutputCommitter" return="org.apache.hadoop.mapreduce.OutputCommitter"
  71297. abstract="false" native="false" synchronized="false"
  71298. static="false" final="false" visibility="public"
  71299. deprecated="not deprecated">
  71300. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  71301. <exception name="IOException" type="java.io.IOException"/>
  71302. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71303. </method>
  71304. <method name="constructQuery" return="java.lang.String"
  71305. abstract="false" native="false" synchronized="false"
  71306. static="false" final="false" visibility="public"
  71307. deprecated="not deprecated">
  71308. <param name="table" type="java.lang.String"/>
  71309. <param name="fieldNames" type="java.lang.String[]"/>
  71310. <doc>
  71311. <![CDATA[Constructs the query used as the prepared statement to insert data.
  71312. @param table
  71313. the table to insert into
  71314. @param fieldNames
  71315. the fields to insert into. If field names are unknown, supply an
  71316. array of nulls.]]>
  71317. </doc>
  71318. </method>
  71319. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  71320. abstract="false" native="false" synchronized="false"
  71321. static="false" final="false" visibility="public"
  71322. deprecated="not deprecated">
  71323. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  71324. <exception name="IOException" type="java.io.IOException"/>
  71325. <doc>
  71326. <![CDATA[{@inheritDoc}]]>
  71327. </doc>
  71328. </method>
  71329. <method name="setOutput"
  71330. abstract="false" native="false" synchronized="false"
  71331. static="true" final="false" visibility="public"
  71332. deprecated="not deprecated">
  71333. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  71334. <param name="tableName" type="java.lang.String"/>
  71335. <param name="fieldNames" type="java.lang.String[]"/>
  71336. <exception name="IOException" type="java.io.IOException"/>
  71337. <doc>
  71338. <![CDATA[Initializes the reduce-part of the job with
  71339. the appropriate output settings
  71340. @param job The job
  71341. @param tableName The table to insert data into
  71342. @param fieldNames The field names in the table.]]>
  71343. </doc>
  71344. </method>
  71345. <method name="setOutput"
  71346. abstract="false" native="false" synchronized="false"
  71347. static="true" final="false" visibility="public"
  71348. deprecated="not deprecated">
  71349. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  71350. <param name="tableName" type="java.lang.String"/>
  71351. <param name="fieldCount" type="int"/>
  71352. <exception name="IOException" type="java.io.IOException"/>
  71353. <doc>
  71354. <![CDATA[Initializes the reduce-part of the job
  71355. with the appropriate output settings
  71356. @param job The job
  71357. @param tableName The table to insert data into
  71358. @param fieldCount the number of fields in the table.]]>
  71359. </doc>
  71360. </method>
  71361. <doc>
  71362. <![CDATA[A OutputFormat that sends the reduce output to a SQL table.
  71363. <p>
  71364. {@link DBOutputFormat} accepts &lt;key,value&gt; pairs, where
  71365. key has a type extending DBWritable. Returned {@link RecordWriter}
  71366. writes <b>only the key</b> to the database with a batch SQL query.]]>
  71367. </doc>
  71368. </class>
  71369. <!-- end class org.apache.hadoop.mapreduce.lib.db.DBOutputFormat -->
  71370. <!-- start class org.apache.hadoop.mapreduce.lib.db.DBOutputFormat.DBRecordWriter -->
  71371. <class name="DBOutputFormat.DBRecordWriter" extends="org.apache.hadoop.mapreduce.RecordWriter"
  71372. abstract="false"
  71373. static="false" final="false" visibility="public"
  71374. deprecated="not deprecated">
  71375. <constructor name="DBOutputFormat.DBRecordWriter"
  71376. static="false" final="false" visibility="public"
  71377. deprecated="not deprecated">
  71378. <exception name="SQLException" type="java.sql.SQLException"/>
  71379. </constructor>
  71380. <constructor name="DBOutputFormat.DBRecordWriter" type="java.sql.Connection, java.sql.PreparedStatement"
  71381. static="false" final="false" visibility="public"
  71382. deprecated="not deprecated">
  71383. <exception name="SQLException" type="java.sql.SQLException"/>
  71384. </constructor>
  71385. <method name="getConnection" return="java.sql.Connection"
  71386. abstract="false" native="false" synchronized="false"
  71387. static="false" final="false" visibility="public"
  71388. deprecated="not deprecated">
  71389. </method>
  71390. <method name="getStatement" return="java.sql.PreparedStatement"
  71391. abstract="false" native="false" synchronized="false"
  71392. static="false" final="false" visibility="public"
  71393. deprecated="not deprecated">
  71394. </method>
  71395. <method name="close"
  71396. abstract="false" native="false" synchronized="false"
  71397. static="false" final="false" visibility="public"
  71398. deprecated="not deprecated">
  71399. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  71400. <exception name="IOException" type="java.io.IOException"/>
  71401. <doc>
  71402. <![CDATA[{@inheritDoc}]]>
  71403. </doc>
  71404. </method>
  71405. <method name="write"
  71406. abstract="false" native="false" synchronized="false"
  71407. static="false" final="false" visibility="public"
  71408. deprecated="not deprecated">
  71409. <param name="key" type="org.apache.hadoop.mapreduce.lib.db.DBWritable"/>
  71410. <param name="value" type="java.lang.Object"/>
  71411. <exception name="IOException" type="java.io.IOException"/>
  71412. <doc>
  71413. <![CDATA[{@inheritDoc}]]>
  71414. </doc>
  71415. </method>
  71416. <doc>
  71417. <![CDATA[A RecordWriter that writes the reduce output to a SQL table]]>
  71418. </doc>
  71419. </class>
  71420. <!-- end class org.apache.hadoop.mapreduce.lib.db.DBOutputFormat.DBRecordWriter -->
  71421. <!-- start class org.apache.hadoop.mapreduce.lib.db.DBRecordReader -->
  71422. <class name="DBRecordReader" extends="org.apache.hadoop.mapreduce.RecordReader"
  71423. abstract="false"
  71424. static="false" final="false" visibility="public"
  71425. deprecated="not deprecated">
  71426. <constructor name="DBRecordReader" type="org.apache.hadoop.mapreduce.lib.db.DBInputFormat.DBInputSplit, java.lang.Class, org.apache.hadoop.conf.Configuration, java.sql.Connection, org.apache.hadoop.mapreduce.lib.db.DBConfiguration, java.lang.String, java.lang.String[], java.lang.String"
  71427. static="false" final="false" visibility="public"
  71428. deprecated="not deprecated">
  71429. <exception name="SQLException" type="java.sql.SQLException"/>
  71430. <doc>
  71431. <![CDATA[@param split The InputSplit to read data for
  71432. @throws SQLException]]>
  71433. </doc>
  71434. </constructor>
  71435. <method name="executeQuery" return="java.sql.ResultSet"
  71436. abstract="false" native="false" synchronized="false"
  71437. static="false" final="false" visibility="protected"
  71438. deprecated="not deprecated">
  71439. <param name="query" type="java.lang.String"/>
  71440. <exception name="SQLException" type="java.sql.SQLException"/>
  71441. </method>
  71442. <method name="getSelectQuery" return="java.lang.String"
  71443. abstract="false" native="false" synchronized="false"
  71444. static="false" final="false" visibility="protected"
  71445. deprecated="not deprecated">
  71446. <doc>
  71447. <![CDATA[Returns the query for selecting the records,
  71448. subclasses can override this for custom behaviour.]]>
  71449. </doc>
  71450. </method>
  71451. <method name="close"
  71452. abstract="false" native="false" synchronized="false"
  71453. static="false" final="false" visibility="public"
  71454. deprecated="not deprecated">
  71455. <exception name="IOException" type="java.io.IOException"/>
  71456. <doc>
  71457. <![CDATA[{@inheritDoc}]]>
  71458. </doc>
  71459. </method>
  71460. <method name="initialize"
  71461. abstract="false" native="false" synchronized="false"
  71462. static="false" final="false" visibility="public"
  71463. deprecated="not deprecated">
  71464. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  71465. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  71466. <exception name="IOException" type="java.io.IOException"/>
  71467. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  71468. </method>
  71469. <method name="getCurrentKey" return="org.apache.hadoop.io.LongWritable"
  71470. abstract="false" native="false" synchronized="false"
  71471. static="false" final="false" visibility="public"
  71472. deprecated="not deprecated">
  71473. <doc>
  71474. <![CDATA[{@inheritDoc}]]>
  71475. </doc>
  71476. </method>
  71477. <method name="getCurrentValue" return="org.apache.hadoop.mapreduce.lib.db.DBWritable"
  71478. abstract="false" native="false" synchronized="false"
  71479. static="false" final="false" visibility="public"
  71480. deprecated="not deprecated">
  71481. <doc>
  71482. <![CDATA[{@inheritDoc}]]>
  71483. </doc>
  71484. </method>
  71485. <method name="createValue" return="org.apache.hadoop.mapreduce.lib.db.DBWritable"
  71486. abstract="false" native="false" synchronized="false"
  71487. static="false" final="false" visibility="public"
  71488. deprecated="deprecated, no comment">
  71489. <doc>
  71490. <![CDATA[@deprecated]]>
  71491. </doc>
  71492. </method>
  71493. <method name="getPos" return="long"
  71494. abstract="false" native="false" synchronized="false"
  71495. static="false" final="false" visibility="public"
  71496. deprecated="deprecated, no comment">
  71497. <exception name="IOException" type="java.io.IOException"/>
  71498. <doc>
  71499. <![CDATA[@deprecated]]>
  71500. </doc>
  71501. </method>
  71502. <method name="next" return="boolean"
  71503. abstract="false" native="false" synchronized="false"
  71504. static="false" final="false" visibility="public"
  71505. deprecated="Use {@link #nextKeyValue()}">
  71506. <param name="key" type="org.apache.hadoop.io.LongWritable"/>
  71507. <param name="value" type="org.apache.hadoop.mapreduce.lib.db.DBWritable"/>
  71508. <exception name="IOException" type="java.io.IOException"/>
  71509. <doc>
  71510. <![CDATA[@deprecated Use {@link #nextKeyValue()}]]>
  71511. </doc>
  71512. </method>
  71513. <method name="getProgress" return="float"
  71514. abstract="false" native="false" synchronized="false"
  71515. static="false" final="false" visibility="public"
  71516. deprecated="not deprecated">
  71517. <exception name="IOException" type="java.io.IOException"/>
  71518. <doc>
  71519. <![CDATA[{@inheritDoc}]]>
  71520. </doc>
  71521. </method>
  71522. <method name="nextKeyValue" return="boolean"
  71523. abstract="false" native="false" synchronized="false"
  71524. static="false" final="false" visibility="public"
  71525. deprecated="not deprecated">
  71526. <exception name="IOException" type="java.io.IOException"/>
  71527. <doc>
  71528. <![CDATA[{@inheritDoc}]]>
  71529. </doc>
  71530. </method>
  71531. <method name="getSplit" return="org.apache.hadoop.mapreduce.lib.db.DBInputFormat.DBInputSplit"
  71532. abstract="false" native="false" synchronized="false"
  71533. static="false" final="false" visibility="protected"
  71534. deprecated="not deprecated">
  71535. </method>
  71536. <method name="getFieldNames" return="java.lang.String[]"
  71537. abstract="false" native="false" synchronized="false"
  71538. static="false" final="false" visibility="protected"
  71539. deprecated="not deprecated">
  71540. </method>
  71541. <method name="getTableName" return="java.lang.String"
  71542. abstract="false" native="false" synchronized="false"
  71543. static="false" final="false" visibility="protected"
  71544. deprecated="not deprecated">
  71545. </method>
  71546. <method name="getConditions" return="java.lang.String"
  71547. abstract="false" native="false" synchronized="false"
  71548. static="false" final="false" visibility="protected"
  71549. deprecated="not deprecated">
  71550. </method>
  71551. <method name="getDBConf" return="org.apache.hadoop.mapreduce.lib.db.DBConfiguration"
  71552. abstract="false" native="false" synchronized="false"
  71553. static="false" final="false" visibility="protected"
  71554. deprecated="not deprecated">
  71555. </method>
  71556. <method name="getConnection" return="java.sql.Connection"
  71557. abstract="false" native="false" synchronized="false"
  71558. static="false" final="false" visibility="protected"
  71559. deprecated="not deprecated">
  71560. </method>
  71561. <method name="getStatement" return="java.sql.PreparedStatement"
  71562. abstract="false" native="false" synchronized="false"
  71563. static="false" final="false" visibility="protected"
  71564. deprecated="not deprecated">
  71565. </method>
  71566. <method name="setStatement"
  71567. abstract="false" native="false" synchronized="false"
  71568. static="false" final="false" visibility="protected"
  71569. deprecated="not deprecated">
  71570. <param name="stmt" type="java.sql.PreparedStatement"/>
  71571. </method>
  71572. <field name="statement" type="java.sql.PreparedStatement"
  71573. transient="false" volatile="false"
  71574. static="false" final="false" visibility="protected"
  71575. deprecated="not deprecated">
  71576. </field>
  71577. <doc>
  71578. <![CDATA[A RecordReader that reads records from a SQL table.
  71579. Emits LongWritables containing the record number as
  71580. key and DBWritables as value.]]>
  71581. </doc>
  71582. </class>
  71583. <!-- end class org.apache.hadoop.mapreduce.lib.db.DBRecordReader -->
  71584. <!-- start interface org.apache.hadoop.mapreduce.lib.db.DBSplitter -->
  71585. <interface name="DBSplitter" abstract="true"
  71586. static="false" final="false" visibility="public"
  71587. deprecated="not deprecated">
  71588. <method name="split" return="java.util.List"
  71589. abstract="false" native="false" synchronized="false"
  71590. static="false" final="false" visibility="public"
  71591. deprecated="not deprecated">
  71592. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  71593. <param name="results" type="java.sql.ResultSet"/>
  71594. <param name="colName" type="java.lang.String"/>
  71595. <exception name="SQLException" type="java.sql.SQLException"/>
  71596. <doc>
  71597. <![CDATA[Given a ResultSet containing one record (and already advanced to that record)
  71598. with two columns (a low value, and a high value, both of the same type), determine
  71599. a set of splits that span the given values.]]>
  71600. </doc>
  71601. </method>
  71602. <doc>
  71603. <![CDATA[DBSplitter will generate DBInputSplits to use with DataDrivenDBInputFormat.
  71604. DataDrivenDBInputFormat needs to interpolate between two values that
  71605. represent the lowest and highest valued records to import. Depending
  71606. on the data-type of the column, this requires different behavior.
  71607. DBSplitter implementations should perform this for a data type or family
  71608. of data types.]]>
  71609. </doc>
  71610. </interface>
  71611. <!-- end interface org.apache.hadoop.mapreduce.lib.db.DBSplitter -->
  71612. <!-- start interface org.apache.hadoop.mapreduce.lib.db.DBWritable -->
  71613. <interface name="DBWritable" abstract="true"
  71614. static="false" final="false" visibility="public"
  71615. deprecated="not deprecated">
  71616. <method name="write"
  71617. abstract="false" native="false" synchronized="false"
  71618. static="false" final="false" visibility="public"
  71619. deprecated="not deprecated">
  71620. <param name="statement" type="java.sql.PreparedStatement"/>
  71621. <exception name="SQLException" type="java.sql.SQLException"/>
  71622. <doc>
  71623. <![CDATA[Sets the fields of the object in the {@link PreparedStatement}.
  71624. @param statement the statement that the fields are put into.
  71625. @throws SQLException]]>
  71626. </doc>
  71627. </method>
  71628. <method name="readFields"
  71629. abstract="false" native="false" synchronized="false"
  71630. static="false" final="false" visibility="public"
  71631. deprecated="not deprecated">
  71632. <param name="resultSet" type="java.sql.ResultSet"/>
  71633. <exception name="SQLException" type="java.sql.SQLException"/>
  71634. <doc>
  71635. <![CDATA[Reads the fields of the object from the {@link ResultSet}.
  71636. @param resultSet the {@link ResultSet} to get the fields from.
  71637. @throws SQLException]]>
  71638. </doc>
  71639. </method>
  71640. <doc>
  71641. <![CDATA[Objects that are read from/written to a database should implement
  71642. <code>DBWritable</code>. DBWritable, is similar to {@link Writable}
  71643. except that the {@link #write(PreparedStatement)} method takes a
  71644. {@link PreparedStatement}, and {@link #readFields(ResultSet)}
  71645. takes a {@link ResultSet}.
  71646. <p>
  71647. Implementations are responsible for writing the fields of the object
  71648. to PreparedStatement, and reading the fields of the object from the
  71649. ResultSet.
  71650. <p>Example:</p>
  71651. If we have the following table in the database :
  71652. <pre>
  71653. CREATE TABLE MyTable (
  71654. counter INTEGER NOT NULL,
  71655. timestamp BIGINT NOT NULL,
  71656. );
  71657. </pre>
  71658. then we can read/write the tuples from/to the table with :
  71659. <p><pre>
  71660. public class MyWritable implements Writable, DBWritable {
  71661. // Some data
  71662. private int counter;
  71663. private long timestamp;
  71664. //Writable#write() implementation
  71665. public void write(DataOutput out) throws IOException {
  71666. out.writeInt(counter);
  71667. out.writeLong(timestamp);
  71668. }
  71669. //Writable#readFields() implementation
  71670. public void readFields(DataInput in) throws IOException {
  71671. counter = in.readInt();
  71672. timestamp = in.readLong();
  71673. }
  71674. public void write(PreparedStatement statement) throws SQLException {
  71675. statement.setInt(1, counter);
  71676. statement.setLong(2, timestamp);
  71677. }
  71678. public void readFields(ResultSet resultSet) throws SQLException {
  71679. counter = resultSet.getInt(1);
  71680. timestamp = resultSet.getLong(2);
  71681. }
  71682. }
  71683. </pre></p>]]>
  71684. </doc>
  71685. </interface>
  71686. <!-- end interface org.apache.hadoop.mapreduce.lib.db.DBWritable -->
  71687. <!-- start class org.apache.hadoop.mapreduce.lib.db.FloatSplitter -->
  71688. <class name="FloatSplitter" extends="java.lang.Object"
  71689. abstract="false"
  71690. static="false" final="false" visibility="public"
  71691. deprecated="not deprecated">
  71692. <implements name="org.apache.hadoop.mapreduce.lib.db.DBSplitter"/>
  71693. <constructor name="FloatSplitter"
  71694. static="false" final="false" visibility="public"
  71695. deprecated="not deprecated">
  71696. </constructor>
  71697. <method name="split" return="java.util.List"
  71698. abstract="false" native="false" synchronized="false"
  71699. static="false" final="false" visibility="public"
  71700. deprecated="not deprecated">
  71701. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  71702. <param name="results" type="java.sql.ResultSet"/>
  71703. <param name="colName" type="java.lang.String"/>
  71704. <exception name="SQLException" type="java.sql.SQLException"/>
  71705. </method>
  71706. <doc>
  71707. <![CDATA[Implement DBSplitter over floating-point values.]]>
  71708. </doc>
  71709. </class>
  71710. <!-- end class org.apache.hadoop.mapreduce.lib.db.FloatSplitter -->
  71711. <!-- start class org.apache.hadoop.mapreduce.lib.db.IntegerSplitter -->
  71712. <class name="IntegerSplitter" extends="java.lang.Object"
  71713. abstract="false"
  71714. static="false" final="false" visibility="public"
  71715. deprecated="not deprecated">
  71716. <implements name="org.apache.hadoop.mapreduce.lib.db.DBSplitter"/>
  71717. <constructor name="IntegerSplitter"
  71718. static="false" final="false" visibility="public"
  71719. deprecated="not deprecated">
  71720. </constructor>
  71721. <method name="split" return="java.util.List"
  71722. abstract="false" native="false" synchronized="false"
  71723. static="false" final="false" visibility="public"
  71724. deprecated="not deprecated">
  71725. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  71726. <param name="results" type="java.sql.ResultSet"/>
  71727. <param name="colName" type="java.lang.String"/>
  71728. <exception name="SQLException" type="java.sql.SQLException"/>
  71729. </method>
  71730. <doc>
  71731. <![CDATA[Implement DBSplitter over integer values.]]>
  71732. </doc>
  71733. </class>
  71734. <!-- end class org.apache.hadoop.mapreduce.lib.db.IntegerSplitter -->
  71735. <!-- start class org.apache.hadoop.mapreduce.lib.db.MySQLDataDrivenDBRecordReader -->
  71736. <class name="MySQLDataDrivenDBRecordReader" extends="org.apache.hadoop.mapreduce.lib.db.DataDrivenDBRecordReader"
  71737. abstract="false"
  71738. static="false" final="false" visibility="public"
  71739. deprecated="not deprecated">
  71740. <constructor name="MySQLDataDrivenDBRecordReader" type="org.apache.hadoop.mapreduce.lib.db.DBInputFormat.DBInputSplit, java.lang.Class, org.apache.hadoop.conf.Configuration, java.sql.Connection, org.apache.hadoop.mapreduce.lib.db.DBConfiguration, java.lang.String, java.lang.String[], java.lang.String"
  71741. static="false" final="false" visibility="public"
  71742. deprecated="not deprecated">
  71743. <exception name="SQLException" type="java.sql.SQLException"/>
  71744. </constructor>
  71745. <method name="executeQuery" return="java.sql.ResultSet"
  71746. abstract="false" native="false" synchronized="false"
  71747. static="false" final="false" visibility="protected"
  71748. deprecated="not deprecated">
  71749. <param name="query" type="java.lang.String"/>
  71750. <exception name="SQLException" type="java.sql.SQLException"/>
  71751. </method>
  71752. <doc>
  71753. <![CDATA[A RecordReader that reads records from a MySQL table via DataDrivenDBRecordReader]]>
  71754. </doc>
  71755. </class>
  71756. <!-- end class org.apache.hadoop.mapreduce.lib.db.MySQLDataDrivenDBRecordReader -->
  71757. <!-- start class org.apache.hadoop.mapreduce.lib.db.MySQLDBRecordReader -->
  71758. <class name="MySQLDBRecordReader" extends="org.apache.hadoop.mapreduce.lib.db.DBRecordReader"
  71759. abstract="false"
  71760. static="false" final="false" visibility="public"
  71761. deprecated="not deprecated">
  71762. <constructor name="MySQLDBRecordReader" type="org.apache.hadoop.mapreduce.lib.db.DBInputFormat.DBInputSplit, java.lang.Class, org.apache.hadoop.conf.Configuration, java.sql.Connection, org.apache.hadoop.mapreduce.lib.db.DBConfiguration, java.lang.String, java.lang.String[], java.lang.String"
  71763. static="false" final="false" visibility="public"
  71764. deprecated="not deprecated">
  71765. <exception name="SQLException" type="java.sql.SQLException"/>
  71766. </constructor>
  71767. <method name="executeQuery" return="java.sql.ResultSet"
  71768. abstract="false" native="false" synchronized="false"
  71769. static="false" final="false" visibility="protected"
  71770. deprecated="not deprecated">
  71771. <param name="query" type="java.lang.String"/>
  71772. <exception name="SQLException" type="java.sql.SQLException"/>
  71773. </method>
  71774. <doc>
  71775. <![CDATA[A RecordReader that reads records from a MySQL table.]]>
  71776. </doc>
  71777. </class>
  71778. <!-- end class org.apache.hadoop.mapreduce.lib.db.MySQLDBRecordReader -->
  71779. <!-- start class org.apache.hadoop.mapreduce.lib.db.OracleDataDrivenDBInputFormat -->
  71780. <class name="OracleDataDrivenDBInputFormat" extends="org.apache.hadoop.mapreduce.lib.db.DataDrivenDBInputFormat"
  71781. abstract="false"
  71782. static="false" final="false" visibility="public"
  71783. deprecated="not deprecated">
  71784. <implements name="org.apache.hadoop.conf.Configurable"/>
  71785. <constructor name="OracleDataDrivenDBInputFormat"
  71786. static="false" final="false" visibility="public"
  71787. deprecated="not deprecated">
  71788. </constructor>
  71789. <method name="getSplitter" return="org.apache.hadoop.mapreduce.lib.db.DBSplitter"
  71790. abstract="false" native="false" synchronized="false"
  71791. static="false" final="false" visibility="protected"
  71792. deprecated="not deprecated">
  71793. <param name="sqlDataType" type="int"/>
  71794. <doc>
  71795. <![CDATA[@return the DBSplitter implementation to use to divide the table/query into InputSplits.]]>
  71796. </doc>
  71797. </method>
  71798. <method name="createDBRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  71799. abstract="false" native="false" synchronized="false"
  71800. static="false" final="false" visibility="protected"
  71801. deprecated="not deprecated">
  71802. <param name="split" type="org.apache.hadoop.mapreduce.lib.db.DBInputFormat.DBInputSplit"/>
  71803. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  71804. <exception name="IOException" type="java.io.IOException"/>
  71805. </method>
  71806. <doc>
  71807. <![CDATA[A InputFormat that reads input data from an SQL table in an Oracle db.]]>
  71808. </doc>
  71809. </class>
  71810. <!-- end class org.apache.hadoop.mapreduce.lib.db.OracleDataDrivenDBInputFormat -->
  71811. <!-- start class org.apache.hadoop.mapreduce.lib.db.OracleDataDrivenDBRecordReader -->
  71812. <class name="OracleDataDrivenDBRecordReader" extends="org.apache.hadoop.mapreduce.lib.db.DataDrivenDBRecordReader"
  71813. abstract="false"
  71814. static="false" final="false" visibility="public"
  71815. deprecated="not deprecated">
  71816. <constructor name="OracleDataDrivenDBRecordReader" type="org.apache.hadoop.mapreduce.lib.db.DBInputFormat.DBInputSplit, java.lang.Class, org.apache.hadoop.conf.Configuration, java.sql.Connection, org.apache.hadoop.mapreduce.lib.db.DBConfiguration, java.lang.String, java.lang.String[], java.lang.String"
  71817. static="false" final="false" visibility="public"
  71818. deprecated="not deprecated">
  71819. <exception name="SQLException" type="java.sql.SQLException"/>
  71820. </constructor>
  71821. <doc>
  71822. <![CDATA[A RecordReader that reads records from a Oracle table via DataDrivenDBRecordReader]]>
  71823. </doc>
  71824. </class>
  71825. <!-- end class org.apache.hadoop.mapreduce.lib.db.OracleDataDrivenDBRecordReader -->
  71826. <!-- start class org.apache.hadoop.mapreduce.lib.db.OracleDateSplitter -->
  71827. <class name="OracleDateSplitter" extends="org.apache.hadoop.mapreduce.lib.db.DateSplitter"
  71828. abstract="false"
  71829. static="false" final="false" visibility="public"
  71830. deprecated="not deprecated">
  71831. <constructor name="OracleDateSplitter"
  71832. static="false" final="false" visibility="public"
  71833. deprecated="not deprecated">
  71834. </constructor>
  71835. <method name="dateToString" return="java.lang.String"
  71836. abstract="false" native="false" synchronized="false"
  71837. static="false" final="false" visibility="protected"
  71838. deprecated="not deprecated">
  71839. <param name="d" type="java.util.Date"/>
  71840. </method>
  71841. <doc>
  71842. <![CDATA[Implement DBSplitter over date/time values returned by an Oracle db.
  71843. Make use of logic from DateSplitter, since this just needs to use
  71844. some Oracle-specific functions on the formatting end when generating
  71845. InputSplits.]]>
  71846. </doc>
  71847. </class>
  71848. <!-- end class org.apache.hadoop.mapreduce.lib.db.OracleDateSplitter -->
  71849. <!-- start class org.apache.hadoop.mapreduce.lib.db.OracleDBRecordReader -->
  71850. <class name="OracleDBRecordReader" extends="org.apache.hadoop.mapreduce.lib.db.DBRecordReader"
  71851. abstract="false"
  71852. static="false" final="false" visibility="public"
  71853. deprecated="not deprecated">
  71854. <constructor name="OracleDBRecordReader" type="org.apache.hadoop.mapreduce.lib.db.DBInputFormat.DBInputSplit, java.lang.Class, org.apache.hadoop.conf.Configuration, java.sql.Connection, org.apache.hadoop.mapreduce.lib.db.DBConfiguration, java.lang.String, java.lang.String[], java.lang.String"
  71855. static="false" final="false" visibility="public"
  71856. deprecated="not deprecated">
  71857. <exception name="SQLException" type="java.sql.SQLException"/>
  71858. </constructor>
  71859. <method name="getSelectQuery" return="java.lang.String"
  71860. abstract="false" native="false" synchronized="false"
  71861. static="false" final="false" visibility="protected"
  71862. deprecated="not deprecated">
  71863. <doc>
  71864. <![CDATA[Returns the query for selecting the records from an Oracle DB.]]>
  71865. </doc>
  71866. </method>
  71867. <method name="setSessionTimeZone"
  71868. abstract="false" native="false" synchronized="false"
  71869. static="true" final="false" visibility="public"
  71870. deprecated="not deprecated">
  71871. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  71872. <param name="conn" type="java.sql.Connection"/>
  71873. <exception name="SQLException" type="java.sql.SQLException"/>
  71874. <doc>
  71875. <![CDATA[Set session time zone
  71876. @param conf The current configuration.
  71877. We read the 'oracle.sessionTimeZone' property from here.
  71878. @param conn The connection to alter the timezone properties of.]]>
  71879. </doc>
  71880. </method>
  71881. <field name="SESSION_TIMEZONE_KEY" type="java.lang.String"
  71882. transient="false" volatile="false"
  71883. static="true" final="true" visibility="public"
  71884. deprecated="not deprecated">
  71885. <doc>
  71886. <![CDATA[Configuration key to set to a timezone string.]]>
  71887. </doc>
  71888. </field>
  71889. <doc>
  71890. <![CDATA[A RecordReader that reads records from an Oracle SQL table.]]>
  71891. </doc>
  71892. </class>
  71893. <!-- end class org.apache.hadoop.mapreduce.lib.db.OracleDBRecordReader -->
  71894. <!-- start class org.apache.hadoop.mapreduce.lib.db.TextSplitter -->
  71895. <class name="TextSplitter" extends="org.apache.hadoop.mapreduce.lib.db.BigDecimalSplitter"
  71896. abstract="false"
  71897. static="false" final="false" visibility="public"
  71898. deprecated="not deprecated">
  71899. <constructor name="TextSplitter"
  71900. static="false" final="false" visibility="public"
  71901. deprecated="not deprecated">
  71902. </constructor>
  71903. <method name="split" return="java.util.List"
  71904. abstract="false" native="false" synchronized="false"
  71905. static="false" final="false" visibility="public"
  71906. deprecated="not deprecated">
  71907. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  71908. <param name="results" type="java.sql.ResultSet"/>
  71909. <param name="colName" type="java.lang.String"/>
  71910. <exception name="SQLException" type="java.sql.SQLException"/>
  71911. <doc>
  71912. <![CDATA[This method needs to determine the splits between two user-provided strings.
  71913. In the case where the user's strings are 'A' and 'Z', this is not hard; we
  71914. could create two splits from ['A', 'M') and ['M', 'Z'], 26 splits for strings
  71915. beginning with each letter, etc.
  71916. If a user has provided us with the strings "Ham" and "Haze", however, we need
  71917. to create splits that differ in the third letter.
  71918. The algorithm used is as follows:
  71919. Since there are 2**16 unicode characters, we interpret characters as digits in
  71920. base 65536. Given a string 's' containing characters s_0, s_1 .. s_n, we interpret
  71921. the string as the number: 0.s_0 s_1 s_2.. s_n in base 65536. Having mapped the
  71922. low and high strings into floating-point values, we then use the BigDecimalSplitter
  71923. to establish the even split points, then map the resulting floating point values
  71924. back into strings.]]>
  71925. </doc>
  71926. </method>
  71927. <doc>
  71928. <![CDATA[Implement DBSplitter over text strings.]]>
  71929. </doc>
  71930. </class>
  71931. <!-- end class org.apache.hadoop.mapreduce.lib.db.TextSplitter -->
  71932. </package>
  71933. <package name="org.apache.hadoop.mapreduce.lib.fieldsel">
  71934. <!-- start class org.apache.hadoop.mapreduce.lib.fieldsel.FieldSelectionHelper -->
  71935. <class name="FieldSelectionHelper" extends="java.lang.Object"
  71936. abstract="false"
  71937. static="false" final="false" visibility="public"
  71938. deprecated="not deprecated">
  71939. <constructor name="FieldSelectionHelper"
  71940. static="false" final="false" visibility="public"
  71941. deprecated="not deprecated">
  71942. </constructor>
  71943. <constructor name="FieldSelectionHelper" type="org.apache.hadoop.io.Text, org.apache.hadoop.io.Text"
  71944. static="false" final="false" visibility="public"
  71945. deprecated="not deprecated">
  71946. </constructor>
  71947. <method name="parseOutputKeyValueSpec" return="int"
  71948. abstract="false" native="false" synchronized="false"
  71949. static="true" final="false" visibility="public"
  71950. deprecated="not deprecated">
  71951. <param name="keyValueSpec" type="java.lang.String"/>
  71952. <param name="keyFieldList" type="java.util.List"/>
  71953. <param name="valueFieldList" type="java.util.List"/>
  71954. </method>
  71955. <method name="specToString" return="java.lang.String"
  71956. abstract="false" native="false" synchronized="false"
  71957. static="true" final="false" visibility="public"
  71958. deprecated="not deprecated">
  71959. <param name="fieldSeparator" type="java.lang.String"/>
  71960. <param name="keyValueSpec" type="java.lang.String"/>
  71961. <param name="allValueFieldsFrom" type="int"/>
  71962. <param name="keyFieldList" type="java.util.List"/>
  71963. <param name="valueFieldList" type="java.util.List"/>
  71964. </method>
  71965. <method name="getKey" return="org.apache.hadoop.io.Text"
  71966. abstract="false" native="false" synchronized="false"
  71967. static="false" final="false" visibility="public"
  71968. deprecated="not deprecated">
  71969. </method>
  71970. <method name="getValue" return="org.apache.hadoop.io.Text"
  71971. abstract="false" native="false" synchronized="false"
  71972. static="false" final="false" visibility="public"
  71973. deprecated="not deprecated">
  71974. </method>
  71975. <method name="extractOutputKeyValue"
  71976. abstract="false" native="false" synchronized="false"
  71977. static="false" final="false" visibility="public"
  71978. deprecated="not deprecated">
  71979. <param name="key" type="java.lang.String"/>
  71980. <param name="val" type="java.lang.String"/>
  71981. <param name="fieldSep" type="java.lang.String"/>
  71982. <param name="keyFieldList" type="java.util.List"/>
  71983. <param name="valFieldList" type="java.util.List"/>
  71984. <param name="allValueFieldsFrom" type="int"/>
  71985. <param name="ignoreKey" type="boolean"/>
  71986. <param name="isMap" type="boolean"/>
  71987. </method>
  71988. <field name="emptyText" type="org.apache.hadoop.io.Text"
  71989. transient="false" volatile="false"
  71990. static="true" final="false" visibility="public"
  71991. deprecated="not deprecated">
  71992. </field>
  71993. <field name="DATA_FIELD_SEPERATOR" type="java.lang.String"
  71994. transient="false" volatile="false"
  71995. static="true" final="true" visibility="public"
  71996. deprecated="not deprecated">
  71997. </field>
  71998. <field name="MAP_OUTPUT_KEY_VALUE_SPEC" type="java.lang.String"
  71999. transient="false" volatile="false"
  72000. static="true" final="true" visibility="public"
  72001. deprecated="not deprecated">
  72002. </field>
  72003. <field name="REDUCE_OUTPUT_KEY_VALUE_SPEC" type="java.lang.String"
  72004. transient="false" volatile="false"
  72005. static="true" final="true" visibility="public"
  72006. deprecated="not deprecated">
  72007. </field>
  72008. <doc>
  72009. <![CDATA[This class implements a mapper/reducer class that can be used to perform
  72010. field selections in a manner similar to unix cut. The input data is treated
  72011. as fields separated by a user specified separator (the default value is
  72012. "\t"). The user can specify a list of fields that form the map output keys,
  72013. and a list of fields that form the map output values. If the inputformat is
  72014. TextInputFormat, the mapper will ignore the key to the map function. and the
  72015. fields are from the value only. Otherwise, the fields are the union of those
  72016. from the key and those from the value.
  72017. The field separator is under attribute "mapreduce.fieldsel.data.field.separator"
  72018. The map output field list spec is under attribute
  72019. "mapreduce.fieldsel.map.output.key.value.fields.spec".
  72020. The value is expected to be like "keyFieldsSpec:valueFieldsSpec"
  72021. key/valueFieldsSpec are comma (,) separated field spec: fieldSpec,fieldSpec,fieldSpec ...
  72022. Each field spec can be a simple number (e.g. 5) specifying a specific field, or a range
  72023. (like 2-5) to specify a range of fields, or an open range (like 3-) specifying all
  72024. the fields starting from field 3. The open range field spec applies value fields only.
  72025. They have no effect on the key fields.
  72026. Here is an example: "4,3,0,1:6,5,1-3,7-". It specifies to use fields 4,3,0 and 1 for keys,
  72027. and use fields 6,5,1,2,3,7 and above for values.
  72028. The reduce output field list spec is under attribute
  72029. "mapreduce.fieldsel.reduce.output.key.value.fields.spec".
  72030. The reducer extracts output key/value pairs in a similar manner, except that
  72031. the key is never ignored.]]>
  72032. </doc>
  72033. </class>
  72034. <!-- end class org.apache.hadoop.mapreduce.lib.fieldsel.FieldSelectionHelper -->
  72035. <!-- start class org.apache.hadoop.mapreduce.lib.fieldsel.FieldSelectionMapper -->
  72036. <class name="FieldSelectionMapper" extends="org.apache.hadoop.mapreduce.Mapper"
  72037. abstract="false"
  72038. static="false" final="false" visibility="public"
  72039. deprecated="not deprecated">
  72040. <constructor name="FieldSelectionMapper"
  72041. static="false" final="false" visibility="public"
  72042. deprecated="not deprecated">
  72043. </constructor>
  72044. <method name="setup"
  72045. abstract="false" native="false" synchronized="false"
  72046. static="false" final="false" visibility="public"
  72047. deprecated="not deprecated">
  72048. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  72049. <exception name="IOException" type="java.io.IOException"/>
  72050. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72051. </method>
  72052. <method name="map"
  72053. abstract="false" native="false" synchronized="false"
  72054. static="false" final="false" visibility="public"
  72055. deprecated="not deprecated">
  72056. <param name="key" type="java.lang.Object"/>
  72057. <param name="val" type="java.lang.Object"/>
  72058. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  72059. <exception name="IOException" type="java.io.IOException"/>
  72060. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72061. <doc>
  72062. <![CDATA[The identify function. Input key/value pair is written directly to output.]]>
  72063. </doc>
  72064. </method>
  72065. <field name="LOG" type="org.apache.commons.logging.Log"
  72066. transient="false" volatile="false"
  72067. static="true" final="true" visibility="public"
  72068. deprecated="not deprecated">
  72069. </field>
  72070. <doc>
  72071. <![CDATA[This class implements a mapper class that can be used to perform
  72072. field selections in a manner similar to unix cut. The input data is treated
  72073. as fields separated by a user specified separator (the default value is
  72074. "\t"). The user can specify a list of fields that form the map output keys,
  72075. and a list of fields that form the map output values. If the inputformat is
  72076. TextInputFormat, the mapper will ignore the key to the map function. and the
  72077. fields are from the value only. Otherwise, the fields are the union of those
  72078. from the key and those from the value.
  72079. The field separator is under attribute "mapreduce.fieldsel.data.field.separator"
  72080. The map output field list spec is under attribute
  72081. "mapreduce.fieldsel.map.output.key.value.fields.spec".
  72082. The value is expected to be like
  72083. "keyFieldsSpec:valueFieldsSpec" key/valueFieldsSpec are comma (,) separated
  72084. field spec: fieldSpec,fieldSpec,fieldSpec ... Each field spec can be a
  72085. simple number (e.g. 5) specifying a specific field, or a range (like 2-5)
  72086. to specify a range of fields, or an open range (like 3-) specifying all
  72087. the fields starting from field 3. The open range field spec applies value
  72088. fields only. They have no effect on the key fields.
  72089. Here is an example: "4,3,0,1:6,5,1-3,7-". It specifies to use fields
  72090. 4,3,0 and 1 for keys, and use fields 6,5,1,2,3,7 and above for values.]]>
  72091. </doc>
  72092. </class>
  72093. <!-- end class org.apache.hadoop.mapreduce.lib.fieldsel.FieldSelectionMapper -->
  72094. <!-- start class org.apache.hadoop.mapreduce.lib.fieldsel.FieldSelectionReducer -->
  72095. <class name="FieldSelectionReducer" extends="org.apache.hadoop.mapreduce.Reducer"
  72096. abstract="false"
  72097. static="false" final="false" visibility="public"
  72098. deprecated="not deprecated">
  72099. <constructor name="FieldSelectionReducer"
  72100. static="false" final="false" visibility="public"
  72101. deprecated="not deprecated">
  72102. </constructor>
  72103. <method name="setup"
  72104. abstract="false" native="false" synchronized="false"
  72105. static="false" final="false" visibility="public"
  72106. deprecated="not deprecated">
  72107. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  72108. <exception name="IOException" type="java.io.IOException"/>
  72109. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72110. </method>
  72111. <method name="reduce"
  72112. abstract="false" native="false" synchronized="false"
  72113. static="false" final="false" visibility="public"
  72114. deprecated="not deprecated">
  72115. <param name="key" type="org.apache.hadoop.io.Text"/>
  72116. <param name="values" type="java.lang.Iterable"/>
  72117. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  72118. <exception name="IOException" type="java.io.IOException"/>
  72119. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72120. </method>
  72121. <field name="LOG" type="org.apache.commons.logging.Log"
  72122. transient="false" volatile="false"
  72123. static="true" final="true" visibility="public"
  72124. deprecated="not deprecated">
  72125. </field>
  72126. <doc>
  72127. <![CDATA[This class implements a reducer class that can be used to perform field
  72128. selections in a manner similar to unix cut.
  72129. The input data is treated as fields separated by a user specified
  72130. separator (the default value is "\t"). The user can specify a list of
  72131. fields that form the reduce output keys, and a list of fields that form
  72132. the reduce output values. The fields are the union of those from the key
  72133. and those from the value.
  72134. The field separator is under attribute "mapreduce.fieldsel.data.field.separator"
  72135. The reduce output field list spec is under attribute
  72136. "mapreduce.fieldsel.reduce.output.key.value.fields.spec".
  72137. The value is expected to be like
  72138. "keyFieldsSpec:valueFieldsSpec" key/valueFieldsSpec are comma (,)
  72139. separated field spec: fieldSpec,fieldSpec,fieldSpec ... Each field spec
  72140. can be a simple number (e.g. 5) specifying a specific field, or a range
  72141. (like 2-5) to specify a range of fields, or an open range (like 3-)
  72142. specifying all the fields starting from field 3. The open range field
  72143. spec applies value fields only. They have no effect on the key fields.
  72144. Here is an example: "4,3,0,1:6,5,1-3,7-". It specifies to use fields
  72145. 4,3,0 and 1 for keys, and use fields 6,5,1,2,3,7 and above for values.]]>
  72146. </doc>
  72147. </class>
  72148. <!-- end class org.apache.hadoop.mapreduce.lib.fieldsel.FieldSelectionReducer -->
  72149. </package>
  72150. <package name="org.apache.hadoop.mapreduce.lib.input">
  72151. <!-- start class org.apache.hadoop.mapreduce.lib.input.CombineFileInputFormat -->
  72152. <class name="CombineFileInputFormat" extends="org.apache.hadoop.mapreduce.lib.input.FileInputFormat"
  72153. abstract="true"
  72154. static="false" final="false" visibility="public"
  72155. deprecated="not deprecated">
  72156. <constructor name="CombineFileInputFormat"
  72157. static="false" final="false" visibility="public"
  72158. deprecated="not deprecated">
  72159. <doc>
  72160. <![CDATA[default constructor]]>
  72161. </doc>
  72162. </constructor>
  72163. <method name="setMaxSplitSize"
  72164. abstract="false" native="false" synchronized="false"
  72165. static="false" final="false" visibility="protected"
  72166. deprecated="not deprecated">
  72167. <param name="maxSplitSize" type="long"/>
  72168. <doc>
  72169. <![CDATA[Specify the maximum size (in bytes) of each split. Each split is
  72170. approximately equal to the specified size.]]>
  72171. </doc>
  72172. </method>
  72173. <method name="setMinSplitSizeNode"
  72174. abstract="false" native="false" synchronized="false"
  72175. static="false" final="false" visibility="protected"
  72176. deprecated="not deprecated">
  72177. <param name="minSplitSizeNode" type="long"/>
  72178. <doc>
  72179. <![CDATA[Specify the minimum size (in bytes) of each split per node.
  72180. This applies to data that is left over after combining data on a single
  72181. node into splits that are of maximum size specified by maxSplitSize.
  72182. This leftover data will be combined into its own split if its size
  72183. exceeds minSplitSizeNode.]]>
  72184. </doc>
  72185. </method>
  72186. <method name="setMinSplitSizeRack"
  72187. abstract="false" native="false" synchronized="false"
  72188. static="false" final="false" visibility="protected"
  72189. deprecated="not deprecated">
  72190. <param name="minSplitSizeRack" type="long"/>
  72191. <doc>
  72192. <![CDATA[Specify the minimum size (in bytes) of each split per rack.
  72193. This applies to data that is left over after combining data on a single
  72194. rack into splits that are of maximum size specified by maxSplitSize.
  72195. This leftover data will be combined into its own split if its size
  72196. exceeds minSplitSizeRack.]]>
  72197. </doc>
  72198. </method>
  72199. <method name="createPool"
  72200. abstract="false" native="false" synchronized="false"
  72201. static="false" final="false" visibility="protected"
  72202. deprecated="not deprecated">
  72203. <param name="filters" type="java.util.List"/>
  72204. <doc>
  72205. <![CDATA[Create a new pool and add the filters to it.
  72206. A split cannot have files from different pools.]]>
  72207. </doc>
  72208. </method>
  72209. <method name="createPool"
  72210. abstract="false" native="false" synchronized="false"
  72211. static="false" final="false" visibility="protected"
  72212. deprecated="not deprecated">
  72213. <param name="filters" type="org.apache.hadoop.fs.PathFilter[]"/>
  72214. <doc>
  72215. <![CDATA[Create a new pool and add the filters to it.
  72216. A pathname can satisfy any one of the specified filters.
  72217. A split cannot have files from different pools.]]>
  72218. </doc>
  72219. </method>
  72220. <method name="isSplitable" return="boolean"
  72221. abstract="false" native="false" synchronized="false"
  72222. static="false" final="false" visibility="protected"
  72223. deprecated="not deprecated">
  72224. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  72225. <param name="file" type="org.apache.hadoop.fs.Path"/>
  72226. </method>
  72227. <method name="getSplits" return="java.util.List"
  72228. abstract="false" native="false" synchronized="false"
  72229. static="false" final="false" visibility="public"
  72230. deprecated="not deprecated">
  72231. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  72232. <exception name="IOException" type="java.io.IOException"/>
  72233. </method>
  72234. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  72235. abstract="true" native="false" synchronized="false"
  72236. static="false" final="false" visibility="public"
  72237. deprecated="not deprecated">
  72238. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  72239. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  72240. <exception name="IOException" type="java.io.IOException"/>
  72241. <doc>
  72242. <![CDATA[This is not implemented yet.]]>
  72243. </doc>
  72244. </method>
  72245. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  72246. abstract="false" native="false" synchronized="false"
  72247. static="false" final="false" visibility="protected"
  72248. deprecated="not deprecated">
  72249. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  72250. <param name="stat" type="org.apache.hadoop.fs.FileStatus"/>
  72251. <exception name="IOException" type="java.io.IOException"/>
  72252. </method>
  72253. <field name="SPLIT_MINSIZE_PERNODE" type="java.lang.String"
  72254. transient="false" volatile="false"
  72255. static="true" final="true" visibility="public"
  72256. deprecated="not deprecated">
  72257. </field>
  72258. <field name="SPLIT_MINSIZE_PERRACK" type="java.lang.String"
  72259. transient="false" volatile="false"
  72260. static="true" final="true" visibility="public"
  72261. deprecated="not deprecated">
  72262. </field>
  72263. <doc>
  72264. <![CDATA[An abstract {@link InputFormat} that returns {@link CombineFileSplit}'s in
  72265. {@link InputFormat#getSplits(JobContext)} method.
  72266. Splits are constructed from the files under the input paths.
  72267. A split cannot have files from different pools.
  72268. Each split returned may contain blocks from different files.
  72269. If a maxSplitSize is specified, then blocks on the same node are
  72270. combined to form a single split. Blocks that are left over are
  72271. then combined with other blocks in the same rack.
  72272. If maxSplitSize is not specified, then blocks from the same rack
  72273. are combined in a single split; no attempt is made to create
  72274. node-local splits.
  72275. If the maxSplitSize is equal to the block size, then this class
  72276. is similar to the default splitting behavior in Hadoop: each
  72277. block is a locally processed split.
  72278. Subclasses implement
  72279. {@link InputFormat#createRecordReader(InputSplit, TaskAttemptContext)}
  72280. to construct <code>RecordReader</code>'s for
  72281. <code>CombineFileSplit</code>'s.
  72282. @see CombineFileSplit]]>
  72283. </doc>
  72284. </class>
  72285. <!-- end class org.apache.hadoop.mapreduce.lib.input.CombineFileInputFormat -->
  72286. <!-- start class org.apache.hadoop.mapreduce.lib.input.CombineFileRecordReader -->
  72287. <class name="CombineFileRecordReader" extends="org.apache.hadoop.mapreduce.RecordReader"
  72288. abstract="false"
  72289. static="false" final="false" visibility="public"
  72290. deprecated="not deprecated">
  72291. <constructor name="CombineFileRecordReader" type="org.apache.hadoop.mapreduce.lib.input.CombineFileSplit, org.apache.hadoop.mapreduce.TaskAttemptContext, java.lang.Class"
  72292. static="false" final="false" visibility="public"
  72293. deprecated="not deprecated">
  72294. <exception name="IOException" type="java.io.IOException"/>
  72295. <doc>
  72296. <![CDATA[A generic RecordReader that can hand out different recordReaders
  72297. for each chunk in the CombineFileSplit.]]>
  72298. </doc>
  72299. </constructor>
  72300. <method name="initialize"
  72301. abstract="false" native="false" synchronized="false"
  72302. static="false" final="false" visibility="public"
  72303. deprecated="not deprecated">
  72304. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  72305. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  72306. <exception name="IOException" type="java.io.IOException"/>
  72307. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72308. </method>
  72309. <method name="nextKeyValue" return="boolean"
  72310. abstract="false" native="false" synchronized="false"
  72311. static="false" final="false" visibility="public"
  72312. deprecated="not deprecated">
  72313. <exception name="IOException" type="java.io.IOException"/>
  72314. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72315. </method>
  72316. <method name="getCurrentKey" return="java.lang.Object"
  72317. abstract="false" native="false" synchronized="false"
  72318. static="false" final="false" visibility="public"
  72319. deprecated="not deprecated">
  72320. <exception name="IOException" type="java.io.IOException"/>
  72321. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72322. </method>
  72323. <method name="getCurrentValue" return="java.lang.Object"
  72324. abstract="false" native="false" synchronized="false"
  72325. static="false" final="false" visibility="public"
  72326. deprecated="not deprecated">
  72327. <exception name="IOException" type="java.io.IOException"/>
  72328. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72329. </method>
  72330. <method name="close"
  72331. abstract="false" native="false" synchronized="false"
  72332. static="false" final="false" visibility="public"
  72333. deprecated="not deprecated">
  72334. <exception name="IOException" type="java.io.IOException"/>
  72335. </method>
  72336. <method name="getProgress" return="float"
  72337. abstract="false" native="false" synchronized="false"
  72338. static="false" final="false" visibility="public"
  72339. deprecated="not deprecated">
  72340. <exception name="IOException" type="java.io.IOException"/>
  72341. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72342. <doc>
  72343. <![CDATA[return progress based on the amount of data processed so far.]]>
  72344. </doc>
  72345. </method>
  72346. <method name="initNextRecordReader" return="boolean"
  72347. abstract="false" native="false" synchronized="false"
  72348. static="false" final="false" visibility="protected"
  72349. deprecated="not deprecated">
  72350. <exception name="IOException" type="java.io.IOException"/>
  72351. <doc>
  72352. <![CDATA[Get the record reader for the next chunk in this CombineFileSplit.]]>
  72353. </doc>
  72354. </method>
  72355. <field name="split" type="org.apache.hadoop.mapreduce.lib.input.CombineFileSplit"
  72356. transient="false" volatile="false"
  72357. static="false" final="false" visibility="protected"
  72358. deprecated="not deprecated">
  72359. </field>
  72360. <field name="rrClass" type="java.lang.Class"
  72361. transient="false" volatile="false"
  72362. static="false" final="false" visibility="protected"
  72363. deprecated="not deprecated">
  72364. </field>
  72365. <field name="rrConstructor" type="java.lang.reflect.Constructor"
  72366. transient="false" volatile="false"
  72367. static="false" final="false" visibility="protected"
  72368. deprecated="not deprecated">
  72369. </field>
  72370. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  72371. transient="false" volatile="false"
  72372. static="false" final="false" visibility="protected"
  72373. deprecated="not deprecated">
  72374. </field>
  72375. <field name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"
  72376. transient="false" volatile="false"
  72377. static="false" final="false" visibility="protected"
  72378. deprecated="not deprecated">
  72379. </field>
  72380. <field name="idx" type="int"
  72381. transient="false" volatile="false"
  72382. static="false" final="false" visibility="protected"
  72383. deprecated="not deprecated">
  72384. </field>
  72385. <field name="progress" type="long"
  72386. transient="false" volatile="false"
  72387. static="false" final="false" visibility="protected"
  72388. deprecated="not deprecated">
  72389. </field>
  72390. <field name="curReader" type="org.apache.hadoop.mapreduce.RecordReader"
  72391. transient="false" volatile="false"
  72392. static="false" final="false" visibility="protected"
  72393. deprecated="not deprecated">
  72394. </field>
  72395. <doc>
  72396. <![CDATA[A generic RecordReader that can hand out different recordReaders
  72397. for each chunk in a {@link CombineFileSplit}.
  72398. A CombineFileSplit can combine data chunks from multiple files.
  72399. This class allows using different RecordReaders for processing
  72400. these data chunks from different files.
  72401. @see CombineFileSplit]]>
  72402. </doc>
  72403. </class>
  72404. <!-- end class org.apache.hadoop.mapreduce.lib.input.CombineFileRecordReader -->
  72405. <!-- start class org.apache.hadoop.mapreduce.lib.input.CombineFileSplit -->
  72406. <class name="CombineFileSplit" extends="org.apache.hadoop.mapreduce.InputSplit"
  72407. abstract="false"
  72408. static="false" final="false" visibility="public"
  72409. deprecated="not deprecated">
  72410. <implements name="org.apache.hadoop.io.Writable"/>
  72411. <constructor name="CombineFileSplit"
  72412. static="false" final="false" visibility="public"
  72413. deprecated="not deprecated">
  72414. <doc>
  72415. <![CDATA[default constructor]]>
  72416. </doc>
  72417. </constructor>
  72418. <constructor name="CombineFileSplit" type="org.apache.hadoop.fs.Path[], long[], long[], java.lang.String[]"
  72419. static="false" final="false" visibility="public"
  72420. deprecated="not deprecated">
  72421. </constructor>
  72422. <constructor name="CombineFileSplit" type="org.apache.hadoop.fs.Path[], long[]"
  72423. static="false" final="false" visibility="public"
  72424. deprecated="not deprecated">
  72425. </constructor>
  72426. <constructor name="CombineFileSplit" type="org.apache.hadoop.mapreduce.lib.input.CombineFileSplit"
  72427. static="false" final="false" visibility="public"
  72428. deprecated="not deprecated">
  72429. <exception name="IOException" type="java.io.IOException"/>
  72430. <doc>
  72431. <![CDATA[Copy constructor]]>
  72432. </doc>
  72433. </constructor>
  72434. <method name="getLength" return="long"
  72435. abstract="false" native="false" synchronized="false"
  72436. static="false" final="false" visibility="public"
  72437. deprecated="not deprecated">
  72438. </method>
  72439. <method name="getStartOffsets" return="long[]"
  72440. abstract="false" native="false" synchronized="false"
  72441. static="false" final="false" visibility="public"
  72442. deprecated="not deprecated">
  72443. <doc>
  72444. <![CDATA[Returns an array containing the start offsets of the files in the split]]>
  72445. </doc>
  72446. </method>
  72447. <method name="getLengths" return="long[]"
  72448. abstract="false" native="false" synchronized="false"
  72449. static="false" final="false" visibility="public"
  72450. deprecated="not deprecated">
  72451. <doc>
  72452. <![CDATA[Returns an array containing the lengths of the files in the split]]>
  72453. </doc>
  72454. </method>
  72455. <method name="getOffset" return="long"
  72456. abstract="false" native="false" synchronized="false"
  72457. static="false" final="false" visibility="public"
  72458. deprecated="not deprecated">
  72459. <param name="i" type="int"/>
  72460. <doc>
  72461. <![CDATA[Returns the start offset of the i<sup>th</sup> Path]]>
  72462. </doc>
  72463. </method>
  72464. <method name="getLength" return="long"
  72465. abstract="false" native="false" synchronized="false"
  72466. static="false" final="false" visibility="public"
  72467. deprecated="not deprecated">
  72468. <param name="i" type="int"/>
  72469. <doc>
  72470. <![CDATA[Returns the length of the i<sup>th</sup> Path]]>
  72471. </doc>
  72472. </method>
  72473. <method name="getNumPaths" return="int"
  72474. abstract="false" native="false" synchronized="false"
  72475. static="false" final="false" visibility="public"
  72476. deprecated="not deprecated">
  72477. <doc>
  72478. <![CDATA[Returns the number of Paths in the split]]>
  72479. </doc>
  72480. </method>
  72481. <method name="getPath" return="org.apache.hadoop.fs.Path"
  72482. abstract="false" native="false" synchronized="false"
  72483. static="false" final="false" visibility="public"
  72484. deprecated="not deprecated">
  72485. <param name="i" type="int"/>
  72486. <doc>
  72487. <![CDATA[Returns the i<sup>th</sup> Path]]>
  72488. </doc>
  72489. </method>
  72490. <method name="getPaths" return="org.apache.hadoop.fs.Path[]"
  72491. abstract="false" native="false" synchronized="false"
  72492. static="false" final="false" visibility="public"
  72493. deprecated="not deprecated">
  72494. <doc>
  72495. <![CDATA[Returns all the Paths in the split]]>
  72496. </doc>
  72497. </method>
  72498. <method name="getLocations" return="java.lang.String[]"
  72499. abstract="false" native="false" synchronized="false"
  72500. static="false" final="false" visibility="public"
  72501. deprecated="not deprecated">
  72502. <exception name="IOException" type="java.io.IOException"/>
  72503. <doc>
  72504. <![CDATA[Returns all the Paths where this input-split resides]]>
  72505. </doc>
  72506. </method>
  72507. <method name="readFields"
  72508. abstract="false" native="false" synchronized="false"
  72509. static="false" final="false" visibility="public"
  72510. deprecated="not deprecated">
  72511. <param name="in" type="java.io.DataInput"/>
  72512. <exception name="IOException" type="java.io.IOException"/>
  72513. </method>
  72514. <method name="write"
  72515. abstract="false" native="false" synchronized="false"
  72516. static="false" final="false" visibility="public"
  72517. deprecated="not deprecated">
  72518. <param name="out" type="java.io.DataOutput"/>
  72519. <exception name="IOException" type="java.io.IOException"/>
  72520. </method>
  72521. <method name="toString" return="java.lang.String"
  72522. abstract="false" native="false" synchronized="false"
  72523. static="false" final="false" visibility="public"
  72524. deprecated="not deprecated">
  72525. </method>
  72526. <doc>
  72527. <![CDATA[A sub-collection of input files.
  72528. Unlike {@link FileSplit}, CombineFileSplit class does not represent
  72529. a split of a file, but a split of input files into smaller sets.
  72530. A split may contain blocks from different file but all
  72531. the blocks in the same split are probably local to some rack <br>
  72532. CombineFileSplit can be used to implement {@link RecordReader}'s,
  72533. with reading one record per file.
  72534. @see FileSplit
  72535. @see CombineFileInputFormat]]>
  72536. </doc>
  72537. </class>
  72538. <!-- end class org.apache.hadoop.mapreduce.lib.input.CombineFileSplit -->
  72539. <!-- start class org.apache.hadoop.mapreduce.lib.input.DelegatingInputFormat -->
  72540. <class name="DelegatingInputFormat" extends="org.apache.hadoop.mapreduce.InputFormat"
  72541. abstract="false"
  72542. static="false" final="false" visibility="public"
  72543. deprecated="not deprecated">
  72544. <constructor name="DelegatingInputFormat"
  72545. static="false" final="false" visibility="public"
  72546. deprecated="not deprecated">
  72547. </constructor>
  72548. <method name="getSplits" return="java.util.List"
  72549. abstract="false" native="false" synchronized="false"
  72550. static="false" final="false" visibility="public"
  72551. deprecated="not deprecated">
  72552. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  72553. <exception name="IOException" type="java.io.IOException"/>
  72554. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72555. </method>
  72556. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  72557. abstract="false" native="false" synchronized="false"
  72558. static="false" final="false" visibility="public"
  72559. deprecated="not deprecated">
  72560. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  72561. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  72562. <exception name="IOException" type="java.io.IOException"/>
  72563. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72564. </method>
  72565. <doc>
  72566. <![CDATA[An {@link InputFormat} that delegates behavior of paths to multiple other
  72567. InputFormats.
  72568. @see MultipleInputs#addInputPath(Job, Path, Class, Class)]]>
  72569. </doc>
  72570. </class>
  72571. <!-- end class org.apache.hadoop.mapreduce.lib.input.DelegatingInputFormat -->
  72572. <!-- start class org.apache.hadoop.mapreduce.lib.input.DelegatingMapper -->
  72573. <class name="DelegatingMapper" extends="org.apache.hadoop.mapreduce.Mapper"
  72574. abstract="false"
  72575. static="false" final="false" visibility="public"
  72576. deprecated="not deprecated">
  72577. <constructor name="DelegatingMapper"
  72578. static="false" final="false" visibility="public"
  72579. deprecated="not deprecated">
  72580. </constructor>
  72581. <method name="setup"
  72582. abstract="false" native="false" synchronized="false"
  72583. static="false" final="false" visibility="protected"
  72584. deprecated="not deprecated">
  72585. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  72586. <exception name="IOException" type="java.io.IOException"/>
  72587. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72588. </method>
  72589. <method name="run"
  72590. abstract="false" native="false" synchronized="false"
  72591. static="false" final="false" visibility="public"
  72592. deprecated="not deprecated">
  72593. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  72594. <exception name="IOException" type="java.io.IOException"/>
  72595. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72596. </method>
  72597. <doc>
  72598. <![CDATA[An {@link Mapper} that delegates behavior of paths to multiple other
  72599. mappers.
  72600. @see MultipleInputs#addInputPath(Job, Path, Class, Class)]]>
  72601. </doc>
  72602. </class>
  72603. <!-- end class org.apache.hadoop.mapreduce.lib.input.DelegatingMapper -->
  72604. <!-- start class org.apache.hadoop.mapreduce.lib.input.DelegatingRecordReader -->
  72605. <class name="DelegatingRecordReader" extends="org.apache.hadoop.mapreduce.RecordReader"
  72606. abstract="false"
  72607. static="false" final="false" visibility="public"
  72608. deprecated="not deprecated">
  72609. <constructor name="DelegatingRecordReader" type="org.apache.hadoop.mapreduce.InputSplit, org.apache.hadoop.mapreduce.TaskAttemptContext"
  72610. static="false" final="false" visibility="public"
  72611. deprecated="not deprecated">
  72612. <exception name="IOException" type="java.io.IOException"/>
  72613. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72614. <doc>
  72615. <![CDATA[Constructs the DelegatingRecordReader.
  72616. @param split TaggegInputSplit object
  72617. @param context TaskAttemptContext object
  72618. @throws IOException
  72619. @throws InterruptedException]]>
  72620. </doc>
  72621. </constructor>
  72622. <method name="close"
  72623. abstract="false" native="false" synchronized="false"
  72624. static="false" final="false" visibility="public"
  72625. deprecated="not deprecated">
  72626. <exception name="IOException" type="java.io.IOException"/>
  72627. </method>
  72628. <method name="getCurrentKey" return="java.lang.Object"
  72629. abstract="false" native="false" synchronized="false"
  72630. static="false" final="false" visibility="public"
  72631. deprecated="not deprecated">
  72632. <exception name="IOException" type="java.io.IOException"/>
  72633. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72634. </method>
  72635. <method name="getCurrentValue" return="java.lang.Object"
  72636. abstract="false" native="false" synchronized="false"
  72637. static="false" final="false" visibility="public"
  72638. deprecated="not deprecated">
  72639. <exception name="IOException" type="java.io.IOException"/>
  72640. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72641. </method>
  72642. <method name="getProgress" return="float"
  72643. abstract="false" native="false" synchronized="false"
  72644. static="false" final="false" visibility="public"
  72645. deprecated="not deprecated">
  72646. <exception name="IOException" type="java.io.IOException"/>
  72647. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72648. </method>
  72649. <method name="initialize"
  72650. abstract="false" native="false" synchronized="false"
  72651. static="false" final="false" visibility="public"
  72652. deprecated="not deprecated">
  72653. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  72654. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  72655. <exception name="IOException" type="java.io.IOException"/>
  72656. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72657. </method>
  72658. <method name="nextKeyValue" return="boolean"
  72659. abstract="false" native="false" synchronized="false"
  72660. static="false" final="false" visibility="public"
  72661. deprecated="not deprecated">
  72662. <exception name="IOException" type="java.io.IOException"/>
  72663. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  72664. </method>
  72665. <doc>
  72666. <![CDATA[This is a delegating RecordReader, which delegates the functionality to the
  72667. underlying record reader in {@link TaggedInputSplit}]]>
  72668. </doc>
  72669. </class>
  72670. <!-- end class org.apache.hadoop.mapreduce.lib.input.DelegatingRecordReader -->
  72671. <!-- start class org.apache.hadoop.mapreduce.lib.input.FileInputFormat -->
  72672. <class name="FileInputFormat" extends="org.apache.hadoop.mapreduce.InputFormat"
  72673. abstract="true"
  72674. static="false" final="false" visibility="public"
  72675. deprecated="not deprecated">
  72676. <constructor name="FileInputFormat"
  72677. static="false" final="false" visibility="public"
  72678. deprecated="not deprecated">
  72679. </constructor>
  72680. <method name="getFormatMinSplitSize" return="long"
  72681. abstract="false" native="false" synchronized="false"
  72682. static="false" final="false" visibility="protected"
  72683. deprecated="not deprecated">
  72684. <doc>
  72685. <![CDATA[Get the lower bound on split size imposed by the format.
  72686. @return the number of bytes of the minimal split for this format]]>
  72687. </doc>
  72688. </method>
  72689. <method name="isSplitable" return="boolean"
  72690. abstract="false" native="false" synchronized="false"
  72691. static="false" final="false" visibility="protected"
  72692. deprecated="not deprecated">
  72693. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  72694. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  72695. <doc>
  72696. <![CDATA[Is the given filename splitable? Usually, true, but if the file is
  72697. stream compressed, it will not be.
  72698. <code>FileInputFormat</code> implementations can override this and return
  72699. <code>false</code> to ensure that individual input files are never split-up
  72700. so that {@link Mapper}s process entire files.
  72701. @param context the job context
  72702. @param filename the file name to check
  72703. @return is this file splitable?]]>
  72704. </doc>
  72705. </method>
  72706. <method name="setInputPathFilter"
  72707. abstract="false" native="false" synchronized="false"
  72708. static="true" final="false" visibility="public"
  72709. deprecated="not deprecated">
  72710. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  72711. <param name="filter" type="java.lang.Class"/>
  72712. <doc>
  72713. <![CDATA[Set a PathFilter to be applied to the input paths for the map-reduce job.
  72714. @param job the job to modify
  72715. @param filter the PathFilter class use for filtering the input paths.]]>
  72716. </doc>
  72717. </method>
  72718. <method name="setMinInputSplitSize"
  72719. abstract="false" native="false" synchronized="false"
  72720. static="true" final="false" visibility="public"
  72721. deprecated="not deprecated">
  72722. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  72723. <param name="size" type="long"/>
  72724. <doc>
  72725. <![CDATA[Set the minimum input split size
  72726. @param job the job to modify
  72727. @param size the minimum size]]>
  72728. </doc>
  72729. </method>
  72730. <method name="getMinSplitSize" return="long"
  72731. abstract="false" native="false" synchronized="false"
  72732. static="true" final="false" visibility="public"
  72733. deprecated="not deprecated">
  72734. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  72735. <doc>
  72736. <![CDATA[Get the minimum split size
  72737. @param job the job
  72738. @return the minimum number of bytes that can be in a split]]>
  72739. </doc>
  72740. </method>
  72741. <method name="setMaxInputSplitSize"
  72742. abstract="false" native="false" synchronized="false"
  72743. static="true" final="false" visibility="public"
  72744. deprecated="not deprecated">
  72745. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  72746. <param name="size" type="long"/>
  72747. <doc>
  72748. <![CDATA[Set the maximum split size
  72749. @param job the job to modify
  72750. @param size the maximum split size]]>
  72751. </doc>
  72752. </method>
  72753. <method name="getMaxSplitSize" return="long"
  72754. abstract="false" native="false" synchronized="false"
  72755. static="true" final="false" visibility="public"
  72756. deprecated="not deprecated">
  72757. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  72758. <doc>
  72759. <![CDATA[Get the maximum split size.
  72760. @param context the job to look at.
  72761. @return the maximum number of bytes a split can include]]>
  72762. </doc>
  72763. </method>
  72764. <method name="getInputPathFilter" return="org.apache.hadoop.fs.PathFilter"
  72765. abstract="false" native="false" synchronized="false"
  72766. static="true" final="false" visibility="public"
  72767. deprecated="not deprecated">
  72768. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  72769. <doc>
  72770. <![CDATA[Get a PathFilter instance of the filter set for the input paths.
  72771. @return the PathFilter instance set for the job, NULL if none has been set.]]>
  72772. </doc>
  72773. </method>
  72774. <method name="listStatus" return="java.util.List"
  72775. abstract="false" native="false" synchronized="false"
  72776. static="false" final="false" visibility="protected"
  72777. deprecated="not deprecated">
  72778. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  72779. <exception name="IOException" type="java.io.IOException"/>
  72780. <doc>
  72781. <![CDATA[List input directories.
  72782. Subclasses may override to, e.g., select only files matching a regular
  72783. expression.
  72784. @param job the job to list input paths for
  72785. @return array of FileStatus objects
  72786. @throws IOException if zero items.]]>
  72787. </doc>
  72788. </method>
  72789. <method name="getSplits" return="java.util.List"
  72790. abstract="false" native="false" synchronized="false"
  72791. static="false" final="false" visibility="public"
  72792. deprecated="not deprecated">
  72793. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  72794. <exception name="IOException" type="java.io.IOException"/>
  72795. <doc>
  72796. <![CDATA[Generate the list of files and make them into FileSplits.]]>
  72797. </doc>
  72798. </method>
  72799. <method name="computeSplitSize" return="long"
  72800. abstract="false" native="false" synchronized="false"
  72801. static="false" final="false" visibility="protected"
  72802. deprecated="not deprecated">
  72803. <param name="blockSize" type="long"/>
  72804. <param name="minSize" type="long"/>
  72805. <param name="maxSize" type="long"/>
  72806. </method>
  72807. <method name="getBlockIndex" return="int"
  72808. abstract="false" native="false" synchronized="false"
  72809. static="false" final="false" visibility="protected"
  72810. deprecated="not deprecated">
  72811. <param name="blkLocations" type="org.apache.hadoop.fs.BlockLocation[]"/>
  72812. <param name="offset" type="long"/>
  72813. </method>
  72814. <method name="setInputPaths"
  72815. abstract="false" native="false" synchronized="false"
  72816. static="true" final="false" visibility="public"
  72817. deprecated="not deprecated">
  72818. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  72819. <param name="commaSeparatedPaths" type="java.lang.String"/>
  72820. <exception name="IOException" type="java.io.IOException"/>
  72821. <doc>
  72822. <![CDATA[Sets the given comma separated paths as the list of inputs
  72823. for the map-reduce job.
  72824. @param job the job
  72825. @param commaSeparatedPaths Comma separated paths to be set as
  72826. the list of inputs for the map-reduce job.]]>
  72827. </doc>
  72828. </method>
  72829. <method name="addInputPaths"
  72830. abstract="false" native="false" synchronized="false"
  72831. static="true" final="false" visibility="public"
  72832. deprecated="not deprecated">
  72833. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  72834. <param name="commaSeparatedPaths" type="java.lang.String"/>
  72835. <exception name="IOException" type="java.io.IOException"/>
  72836. <doc>
  72837. <![CDATA[Add the given comma separated paths to the list of inputs for
  72838. the map-reduce job.
  72839. @param job The job to modify
  72840. @param commaSeparatedPaths Comma separated paths to be added to
  72841. the list of inputs for the map-reduce job.]]>
  72842. </doc>
  72843. </method>
  72844. <method name="setInputPaths"
  72845. abstract="false" native="false" synchronized="false"
  72846. static="true" final="false" visibility="public"
  72847. deprecated="not deprecated">
  72848. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  72849. <param name="inputPaths" type="org.apache.hadoop.fs.Path[]"/>
  72850. <exception name="IOException" type="java.io.IOException"/>
  72851. <doc>
  72852. <![CDATA[Set the array of {@link Path}s as the list of inputs
  72853. for the map-reduce job.
  72854. @param job The job to modify
  72855. @param inputPaths the {@link Path}s of the input directories/files
  72856. for the map-reduce job.]]>
  72857. </doc>
  72858. </method>
  72859. <method name="addInputPath"
  72860. abstract="false" native="false" synchronized="false"
  72861. static="true" final="false" visibility="public"
  72862. deprecated="not deprecated">
  72863. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  72864. <param name="path" type="org.apache.hadoop.fs.Path"/>
  72865. <exception name="IOException" type="java.io.IOException"/>
  72866. <doc>
  72867. <![CDATA[Add a {@link Path} to the list of inputs for the map-reduce job.
  72868. @param job The {@link Job} to modify
  72869. @param path {@link Path} to be added to the list of inputs for
  72870. the map-reduce job.]]>
  72871. </doc>
  72872. </method>
  72873. <method name="getInputPaths" return="org.apache.hadoop.fs.Path[]"
  72874. abstract="false" native="false" synchronized="false"
  72875. static="true" final="false" visibility="public"
  72876. deprecated="not deprecated">
  72877. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  72878. <doc>
  72879. <![CDATA[Get the list of input {@link Path}s for the map-reduce job.
  72880. @param context The job
  72881. @return the list of input {@link Path}s for the map-reduce job.]]>
  72882. </doc>
  72883. </method>
  72884. <doc>
  72885. <![CDATA[A base class for file-based {@link InputFormat}s.
  72886. <p><code>FileInputFormat</code> is the base class for all file-based
  72887. <code>InputFormat</code>s. This provides a generic implementation of
  72888. {@link #getSplits(JobContext)}.
  72889. Subclasses of <code>FileInputFormat</code> can also override the
  72890. {@link #isSplitable(JobContext, Path)} method to ensure input-files are
  72891. not split-up and are processed as a whole by {@link Mapper}s.]]>
  72892. </doc>
  72893. </class>
  72894. <!-- end class org.apache.hadoop.mapreduce.lib.input.FileInputFormat -->
  72895. <!-- start class org.apache.hadoop.mapreduce.lib.input.FileInputFormat.Counter -->
  72896. <class name="FileInputFormat.Counter" extends="java.lang.Enum"
  72897. abstract="false"
  72898. static="true" final="true" visibility="public"
  72899. deprecated="not deprecated">
  72900. <method name="values" return="org.apache.hadoop.mapreduce.lib.input.FileInputFormat.Counter[]"
  72901. abstract="false" native="false" synchronized="false"
  72902. static="true" final="false" visibility="public"
  72903. deprecated="not deprecated">
  72904. </method>
  72905. <method name="valueOf" return="org.apache.hadoop.mapreduce.lib.input.FileInputFormat.Counter"
  72906. abstract="false" native="false" synchronized="false"
  72907. static="true" final="false" visibility="public"
  72908. deprecated="not deprecated">
  72909. <param name="name" type="java.lang.String"/>
  72910. </method>
  72911. <field name="BYTES_READ" type="org.apache.hadoop.mapreduce.lib.input.FileInputFormat.Counter"
  72912. transient="false" volatile="false"
  72913. static="true" final="true" visibility="public"
  72914. deprecated="not deprecated">
  72915. </field>
  72916. </class>
  72917. <!-- end class org.apache.hadoop.mapreduce.lib.input.FileInputFormat.Counter -->
  72918. <!-- start class org.apache.hadoop.mapreduce.lib.input.FileSplit -->
  72919. <class name="FileSplit" extends="org.apache.hadoop.mapreduce.InputSplit"
  72920. abstract="false"
  72921. static="false" final="false" visibility="public"
  72922. deprecated="not deprecated">
  72923. <implements name="org.apache.hadoop.io.Writable"/>
  72924. <constructor name="FileSplit" type="org.apache.hadoop.fs.Path, long, long, java.lang.String[]"
  72925. static="false" final="false" visibility="public"
  72926. deprecated="not deprecated">
  72927. <doc>
  72928. <![CDATA[Constructs a split with host information
  72929. @param file the file name
  72930. @param start the position of the first byte in the file to process
  72931. @param length the number of bytes in the file to process
  72932. @param hosts the list of hosts containing the block, possibly null]]>
  72933. </doc>
  72934. </constructor>
  72935. <method name="getPath" return="org.apache.hadoop.fs.Path"
  72936. abstract="false" native="false" synchronized="false"
  72937. static="false" final="false" visibility="public"
  72938. deprecated="not deprecated">
  72939. <doc>
  72940. <![CDATA[The file containing this split's data.]]>
  72941. </doc>
  72942. </method>
  72943. <method name="getStart" return="long"
  72944. abstract="false" native="false" synchronized="false"
  72945. static="false" final="false" visibility="public"
  72946. deprecated="not deprecated">
  72947. <doc>
  72948. <![CDATA[The position of the first byte in the file to process.]]>
  72949. </doc>
  72950. </method>
  72951. <method name="getLength" return="long"
  72952. abstract="false" native="false" synchronized="false"
  72953. static="false" final="false" visibility="public"
  72954. deprecated="not deprecated">
  72955. <doc>
  72956. <![CDATA[The number of bytes in the file to process.]]>
  72957. </doc>
  72958. </method>
  72959. <method name="toString" return="java.lang.String"
  72960. abstract="false" native="false" synchronized="false"
  72961. static="false" final="false" visibility="public"
  72962. deprecated="not deprecated">
  72963. </method>
  72964. <method name="write"
  72965. abstract="false" native="false" synchronized="false"
  72966. static="false" final="false" visibility="public"
  72967. deprecated="not deprecated">
  72968. <param name="out" type="java.io.DataOutput"/>
  72969. <exception name="IOException" type="java.io.IOException"/>
  72970. </method>
  72971. <method name="readFields"
  72972. abstract="false" native="false" synchronized="false"
  72973. static="false" final="false" visibility="public"
  72974. deprecated="not deprecated">
  72975. <param name="in" type="java.io.DataInput"/>
  72976. <exception name="IOException" type="java.io.IOException"/>
  72977. </method>
  72978. <method name="getLocations" return="java.lang.String[]"
  72979. abstract="false" native="false" synchronized="false"
  72980. static="false" final="false" visibility="public"
  72981. deprecated="not deprecated">
  72982. <exception name="IOException" type="java.io.IOException"/>
  72983. </method>
  72984. <doc>
  72985. <![CDATA[A section of an input file. Returned by {@link
  72986. InputFormat#getSplits(JobContext)} and passed to
  72987. {@link InputFormat#createRecordReader(InputSplit,TaskAttemptContext)}.]]>
  72988. </doc>
  72989. </class>
  72990. <!-- end class org.apache.hadoop.mapreduce.lib.input.FileSplit -->
  72991. <!-- start class org.apache.hadoop.mapreduce.lib.input.InvalidInputException -->
  72992. <class name="InvalidInputException" extends="java.io.IOException"
  72993. abstract="false"
  72994. static="false" final="false" visibility="public"
  72995. deprecated="not deprecated">
  72996. <constructor name="InvalidInputException" type="java.util.List"
  72997. static="false" final="false" visibility="public"
  72998. deprecated="not deprecated">
  72999. <doc>
  73000. <![CDATA[Create the exception with the given list.
  73001. @param probs the list of problems to report. this list is not copied.]]>
  73002. </doc>
  73003. </constructor>
  73004. <method name="getProblems" return="java.util.List"
  73005. abstract="false" native="false" synchronized="false"
  73006. static="false" final="false" visibility="public"
  73007. deprecated="not deprecated">
  73008. <doc>
  73009. <![CDATA[Get the complete list of the problems reported.
  73010. @return the list of problems, which must not be modified]]>
  73011. </doc>
  73012. </method>
  73013. <method name="getMessage" return="java.lang.String"
  73014. abstract="false" native="false" synchronized="false"
  73015. static="false" final="false" visibility="public"
  73016. deprecated="not deprecated">
  73017. <doc>
  73018. <![CDATA[Get a summary message of the problems found.
  73019. @return the concatenated messages from all of the problems.]]>
  73020. </doc>
  73021. </method>
  73022. <doc>
  73023. <![CDATA[This class wraps a list of problems with the input, so that the user
  73024. can get a list of problems together instead of finding and fixing them one
  73025. by one.]]>
  73026. </doc>
  73027. </class>
  73028. <!-- end class org.apache.hadoop.mapreduce.lib.input.InvalidInputException -->
  73029. <!-- start class org.apache.hadoop.mapreduce.lib.input.KeyValueLineRecordReader -->
  73030. <class name="KeyValueLineRecordReader" extends="org.apache.hadoop.mapreduce.RecordReader"
  73031. abstract="false"
  73032. static="false" final="false" visibility="public"
  73033. deprecated="not deprecated">
  73034. <constructor name="KeyValueLineRecordReader" type="org.apache.hadoop.conf.Configuration"
  73035. static="false" final="false" visibility="public"
  73036. deprecated="not deprecated">
  73037. <exception name="IOException" type="java.io.IOException"/>
  73038. </constructor>
  73039. <method name="getKeyClass" return="java.lang.Class"
  73040. abstract="false" native="false" synchronized="false"
  73041. static="false" final="false" visibility="public"
  73042. deprecated="not deprecated">
  73043. </method>
  73044. <method name="initialize"
  73045. abstract="false" native="false" synchronized="false"
  73046. static="false" final="false" visibility="public"
  73047. deprecated="not deprecated">
  73048. <param name="genericSplit" type="org.apache.hadoop.mapreduce.InputSplit"/>
  73049. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73050. <exception name="IOException" type="java.io.IOException"/>
  73051. </method>
  73052. <method name="findSeparator" return="int"
  73053. abstract="false" native="false" synchronized="false"
  73054. static="true" final="false" visibility="public"
  73055. deprecated="not deprecated">
  73056. <param name="utf" type="byte[]"/>
  73057. <param name="start" type="int"/>
  73058. <param name="length" type="int"/>
  73059. <param name="sep" type="byte"/>
  73060. </method>
  73061. <method name="setKeyValue"
  73062. abstract="false" native="false" synchronized="false"
  73063. static="true" final="false" visibility="public"
  73064. deprecated="not deprecated">
  73065. <param name="key" type="org.apache.hadoop.io.Text"/>
  73066. <param name="value" type="org.apache.hadoop.io.Text"/>
  73067. <param name="line" type="byte[]"/>
  73068. <param name="lineLen" type="int"/>
  73069. <param name="pos" type="int"/>
  73070. </method>
  73071. <method name="nextKeyValue" return="boolean"
  73072. abstract="false" native="false" synchronized="true"
  73073. static="false" final="false" visibility="public"
  73074. deprecated="not deprecated">
  73075. <exception name="IOException" type="java.io.IOException"/>
  73076. <doc>
  73077. <![CDATA[Read key/value pair in a line.]]>
  73078. </doc>
  73079. </method>
  73080. <method name="getCurrentKey" return="org.apache.hadoop.io.Text"
  73081. abstract="false" native="false" synchronized="false"
  73082. static="false" final="false" visibility="public"
  73083. deprecated="not deprecated">
  73084. </method>
  73085. <method name="getCurrentValue" return="org.apache.hadoop.io.Text"
  73086. abstract="false" native="false" synchronized="false"
  73087. static="false" final="false" visibility="public"
  73088. deprecated="not deprecated">
  73089. </method>
  73090. <method name="getProgress" return="float"
  73091. abstract="false" native="false" synchronized="false"
  73092. static="false" final="false" visibility="public"
  73093. deprecated="not deprecated">
  73094. <exception name="IOException" type="java.io.IOException"/>
  73095. </method>
  73096. <method name="close"
  73097. abstract="false" native="false" synchronized="true"
  73098. static="false" final="false" visibility="public"
  73099. deprecated="not deprecated">
  73100. <exception name="IOException" type="java.io.IOException"/>
  73101. </method>
  73102. <field name="KEY_VALUE_SEPERATOR" type="java.lang.String"
  73103. transient="false" volatile="false"
  73104. static="true" final="true" visibility="public"
  73105. deprecated="not deprecated">
  73106. </field>
  73107. <doc>
  73108. <![CDATA[This class treats a line in the input as a key/value pair separated by a
  73109. separator character. The separator can be specified in config file
  73110. under the attribute name mapreduce.input.keyvaluelinerecordreader.key.value.separator. The default
  73111. separator is the tab character ('\t').]]>
  73112. </doc>
  73113. </class>
  73114. <!-- end class org.apache.hadoop.mapreduce.lib.input.KeyValueLineRecordReader -->
  73115. <!-- start class org.apache.hadoop.mapreduce.lib.input.KeyValueTextInputFormat -->
  73116. <class name="KeyValueTextInputFormat" extends="org.apache.hadoop.mapreduce.lib.input.FileInputFormat"
  73117. abstract="false"
  73118. static="false" final="false" visibility="public"
  73119. deprecated="not deprecated">
  73120. <constructor name="KeyValueTextInputFormat"
  73121. static="false" final="false" visibility="public"
  73122. deprecated="not deprecated">
  73123. </constructor>
  73124. <method name="isSplitable" return="boolean"
  73125. abstract="false" native="false" synchronized="false"
  73126. static="false" final="false" visibility="protected"
  73127. deprecated="not deprecated">
  73128. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  73129. <param name="file" type="org.apache.hadoop.fs.Path"/>
  73130. </method>
  73131. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  73132. abstract="false" native="false" synchronized="false"
  73133. static="false" final="false" visibility="public"
  73134. deprecated="not deprecated">
  73135. <param name="genericSplit" type="org.apache.hadoop.mapreduce.InputSplit"/>
  73136. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73137. <exception name="IOException" type="java.io.IOException"/>
  73138. </method>
  73139. <doc>
  73140. <![CDATA[An {@link InputFormat} for plain text files. Files are broken into lines.
  73141. Either line feed or carriage-return are used to signal end of line.
  73142. Each line is divided into key and value parts by a separator byte. If no
  73143. such a byte exists, the key will be the entire line and value will be empty.]]>
  73144. </doc>
  73145. </class>
  73146. <!-- end class org.apache.hadoop.mapreduce.lib.input.KeyValueTextInputFormat -->
  73147. <!-- start class org.apache.hadoop.mapreduce.lib.input.LineRecordReader -->
  73148. <class name="LineRecordReader" extends="org.apache.hadoop.mapreduce.RecordReader"
  73149. abstract="false"
  73150. static="false" final="false" visibility="public"
  73151. deprecated="not deprecated">
  73152. <constructor name="LineRecordReader"
  73153. static="false" final="false" visibility="public"
  73154. deprecated="not deprecated">
  73155. </constructor>
  73156. <method name="initialize"
  73157. abstract="false" native="false" synchronized="false"
  73158. static="false" final="false" visibility="public"
  73159. deprecated="not deprecated">
  73160. <param name="genericSplit" type="org.apache.hadoop.mapreduce.InputSplit"/>
  73161. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73162. <exception name="IOException" type="java.io.IOException"/>
  73163. </method>
  73164. <method name="nextKeyValue" return="boolean"
  73165. abstract="false" native="false" synchronized="false"
  73166. static="false" final="false" visibility="public"
  73167. deprecated="not deprecated">
  73168. <exception name="IOException" type="java.io.IOException"/>
  73169. </method>
  73170. <method name="getCurrentKey" return="org.apache.hadoop.io.LongWritable"
  73171. abstract="false" native="false" synchronized="false"
  73172. static="false" final="false" visibility="public"
  73173. deprecated="not deprecated">
  73174. </method>
  73175. <method name="getCurrentValue" return="org.apache.hadoop.io.Text"
  73176. abstract="false" native="false" synchronized="false"
  73177. static="false" final="false" visibility="public"
  73178. deprecated="not deprecated">
  73179. </method>
  73180. <method name="getProgress" return="float"
  73181. abstract="false" native="false" synchronized="false"
  73182. static="false" final="false" visibility="public"
  73183. deprecated="not deprecated">
  73184. <exception name="IOException" type="java.io.IOException"/>
  73185. <doc>
  73186. <![CDATA[Get the progress within the split]]>
  73187. </doc>
  73188. </method>
  73189. <method name="close"
  73190. abstract="false" native="false" synchronized="true"
  73191. static="false" final="false" visibility="public"
  73192. deprecated="not deprecated">
  73193. <exception name="IOException" type="java.io.IOException"/>
  73194. </method>
  73195. <doc>
  73196. <![CDATA[Treats keys as offset in file and value as line.]]>
  73197. </doc>
  73198. </class>
  73199. <!-- end class org.apache.hadoop.mapreduce.lib.input.LineRecordReader -->
  73200. <!-- start class org.apache.hadoop.mapreduce.lib.input.MultipleInputs -->
  73201. <class name="MultipleInputs" extends="java.lang.Object"
  73202. abstract="false"
  73203. static="false" final="false" visibility="public"
  73204. deprecated="not deprecated">
  73205. <constructor name="MultipleInputs"
  73206. static="false" final="false" visibility="public"
  73207. deprecated="not deprecated">
  73208. </constructor>
  73209. <method name="addInputPath"
  73210. abstract="false" native="false" synchronized="false"
  73211. static="true" final="false" visibility="public"
  73212. deprecated="not deprecated">
  73213. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  73214. <param name="path" type="org.apache.hadoop.fs.Path"/>
  73215. <param name="inputFormatClass" type="java.lang.Class"/>
  73216. <doc>
  73217. <![CDATA[Add a {@link Path} with a custom {@link InputFormat} to the list of
  73218. inputs for the map-reduce job.
  73219. @param job The {@link Job}
  73220. @param path {@link Path} to be added to the list of inputs for the job
  73221. @param inputFormatClass {@link InputFormat} class to use for this path]]>
  73222. </doc>
  73223. </method>
  73224. <method name="addInputPath"
  73225. abstract="false" native="false" synchronized="false"
  73226. static="true" final="false" visibility="public"
  73227. deprecated="not deprecated">
  73228. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  73229. <param name="path" type="org.apache.hadoop.fs.Path"/>
  73230. <param name="inputFormatClass" type="java.lang.Class"/>
  73231. <param name="mapperClass" type="java.lang.Class"/>
  73232. <doc>
  73233. <![CDATA[Add a {@link Path} with a custom {@link InputFormat} and
  73234. {@link Mapper} to the list of inputs for the map-reduce job.
  73235. @param job The {@link Job}
  73236. @param path {@link Path} to be added to the list of inputs for the job
  73237. @param inputFormatClass {@link InputFormat} class to use for this path
  73238. @param mapperClass {@link Mapper} class to use for this path]]>
  73239. </doc>
  73240. </method>
  73241. <field name="DIR_FORMATS" type="java.lang.String"
  73242. transient="false" volatile="false"
  73243. static="true" final="true" visibility="public"
  73244. deprecated="not deprecated">
  73245. </field>
  73246. <field name="DIR_MAPPERS" type="java.lang.String"
  73247. transient="false" volatile="false"
  73248. static="true" final="true" visibility="public"
  73249. deprecated="not deprecated">
  73250. </field>
  73251. <doc>
  73252. <![CDATA[This class supports MapReduce jobs that have multiple input paths with
  73253. a different {@link InputFormat} and {@link Mapper} for each path]]>
  73254. </doc>
  73255. </class>
  73256. <!-- end class org.apache.hadoop.mapreduce.lib.input.MultipleInputs -->
  73257. <!-- start class org.apache.hadoop.mapreduce.lib.input.NLineInputFormat -->
  73258. <class name="NLineInputFormat" extends="org.apache.hadoop.mapreduce.lib.input.FileInputFormat"
  73259. abstract="false"
  73260. static="false" final="false" visibility="public"
  73261. deprecated="not deprecated">
  73262. <constructor name="NLineInputFormat"
  73263. static="false" final="false" visibility="public"
  73264. deprecated="not deprecated">
  73265. </constructor>
  73266. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  73267. abstract="false" native="false" synchronized="false"
  73268. static="false" final="false" visibility="public"
  73269. deprecated="not deprecated">
  73270. <param name="genericSplit" type="org.apache.hadoop.mapreduce.InputSplit"/>
  73271. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73272. <exception name="IOException" type="java.io.IOException"/>
  73273. </method>
  73274. <method name="getSplits" return="java.util.List"
  73275. abstract="false" native="false" synchronized="false"
  73276. static="false" final="false" visibility="public"
  73277. deprecated="not deprecated">
  73278. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  73279. <exception name="IOException" type="java.io.IOException"/>
  73280. <doc>
  73281. <![CDATA[Logically splits the set of input files for the job, splits N lines
  73282. of the input as one split.
  73283. @see FileInputFormat#getSplits(JobContext)]]>
  73284. </doc>
  73285. </method>
  73286. <method name="getSplitsForFile" return="java.util.List"
  73287. abstract="false" native="false" synchronized="false"
  73288. static="true" final="false" visibility="public"
  73289. deprecated="not deprecated">
  73290. <param name="status" type="org.apache.hadoop.fs.FileStatus"/>
  73291. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  73292. <param name="numLinesPerSplit" type="int"/>
  73293. <exception name="IOException" type="java.io.IOException"/>
  73294. </method>
  73295. <method name="createFileSplit" return="org.apache.hadoop.mapreduce.lib.input.FileSplit"
  73296. abstract="false" native="false" synchronized="false"
  73297. static="true" final="false" visibility="protected"
  73298. deprecated="not deprecated">
  73299. <param name="fileName" type="org.apache.hadoop.fs.Path"/>
  73300. <param name="begin" type="long"/>
  73301. <param name="length" type="long"/>
  73302. <doc>
  73303. <![CDATA[NLineInputFormat uses LineRecordReader, which always reads
  73304. (and consumes) at least one character out of its upper split
  73305. boundary. So to make sure that each mapper gets N lines, we
  73306. move back the upper split limits of each split
  73307. by one character here.
  73308. @param fileName Path of file
  73309. @param begin the position of the first byte in the file to process
  73310. @param length number of bytes in InputSplit
  73311. @return FileSplit]]>
  73312. </doc>
  73313. </method>
  73314. <method name="setNumLinesPerSplit"
  73315. abstract="false" native="false" synchronized="false"
  73316. static="true" final="false" visibility="public"
  73317. deprecated="not deprecated">
  73318. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  73319. <param name="numLines" type="int"/>
  73320. <doc>
  73321. <![CDATA[Set the number of lines per split
  73322. @param job the job to modify
  73323. @param numLines the number of lines per split]]>
  73324. </doc>
  73325. </method>
  73326. <method name="getNumLinesPerSplit" return="int"
  73327. abstract="false" native="false" synchronized="false"
  73328. static="true" final="false" visibility="public"
  73329. deprecated="not deprecated">
  73330. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  73331. <doc>
  73332. <![CDATA[Get the number of lines per split
  73333. @param job the job
  73334. @return the number of lines per split]]>
  73335. </doc>
  73336. </method>
  73337. <field name="LINES_PER_MAP" type="java.lang.String"
  73338. transient="false" volatile="false"
  73339. static="true" final="true" visibility="public"
  73340. deprecated="not deprecated">
  73341. </field>
  73342. <doc>
  73343. <![CDATA[NLineInputFormat which splits N lines of input as one split.
  73344. In many "pleasantly" parallel applications, each process/mapper
  73345. processes the same input file (s), but with computations are
  73346. controlled by different parameters.(Referred to as "parameter sweeps").
  73347. One way to achieve this, is to specify a set of parameters
  73348. (one set per line) as input in a control file
  73349. (which is the input path to the map-reduce application,
  73350. where as the input dataset is specified
  73351. via a config variable in JobConf.).
  73352. The NLineInputFormat can be used in such applications, that splits
  73353. the input file such that by default, one line is fed as
  73354. a value to one map task, and key is the offset.
  73355. i.e. (k,v) is (LongWritable, Text).
  73356. The location hints will span the whole mapred cluster.]]>
  73357. </doc>
  73358. </class>
  73359. <!-- end class org.apache.hadoop.mapreduce.lib.input.NLineInputFormat -->
  73360. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileAsBinaryInputFormat -->
  73361. <class name="SequenceFileAsBinaryInputFormat" extends="org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFormat"
  73362. abstract="false"
  73363. static="false" final="false" visibility="public"
  73364. deprecated="not deprecated">
  73365. <constructor name="SequenceFileAsBinaryInputFormat"
  73366. static="false" final="false" visibility="public"
  73367. deprecated="not deprecated">
  73368. </constructor>
  73369. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  73370. abstract="false" native="false" synchronized="false"
  73371. static="false" final="false" visibility="public"
  73372. deprecated="not deprecated">
  73373. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  73374. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73375. <exception name="IOException" type="java.io.IOException"/>
  73376. </method>
  73377. <doc>
  73378. <![CDATA[InputFormat reading keys, values from SequenceFiles in binary (raw)
  73379. format.]]>
  73380. </doc>
  73381. </class>
  73382. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileAsBinaryInputFormat -->
  73383. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader -->
  73384. <class name="SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader" extends="org.apache.hadoop.mapreduce.RecordReader"
  73385. abstract="false"
  73386. static="true" final="false" visibility="public"
  73387. deprecated="not deprecated">
  73388. <constructor name="SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader"
  73389. static="false" final="false" visibility="public"
  73390. deprecated="not deprecated">
  73391. </constructor>
  73392. <method name="initialize"
  73393. abstract="false" native="false" synchronized="false"
  73394. static="false" final="false" visibility="public"
  73395. deprecated="not deprecated">
  73396. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  73397. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73398. <exception name="IOException" type="java.io.IOException"/>
  73399. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73400. </method>
  73401. <method name="getCurrentKey" return="org.apache.hadoop.io.BytesWritable"
  73402. abstract="false" native="false" synchronized="false"
  73403. static="false" final="false" visibility="public"
  73404. deprecated="not deprecated">
  73405. <exception name="IOException" type="java.io.IOException"/>
  73406. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73407. </method>
  73408. <method name="getCurrentValue" return="org.apache.hadoop.io.BytesWritable"
  73409. abstract="false" native="false" synchronized="false"
  73410. static="false" final="false" visibility="public"
  73411. deprecated="not deprecated">
  73412. <exception name="IOException" type="java.io.IOException"/>
  73413. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73414. </method>
  73415. <method name="getKeyClassName" return="java.lang.String"
  73416. abstract="false" native="false" synchronized="false"
  73417. static="false" final="false" visibility="public"
  73418. deprecated="not deprecated">
  73419. <doc>
  73420. <![CDATA[Retrieve the name of the key class for this SequenceFile.
  73421. @see org.apache.hadoop.io.SequenceFile.Reader#getKeyClassName]]>
  73422. </doc>
  73423. </method>
  73424. <method name="getValueClassName" return="java.lang.String"
  73425. abstract="false" native="false" synchronized="false"
  73426. static="false" final="false" visibility="public"
  73427. deprecated="not deprecated">
  73428. <doc>
  73429. <![CDATA[Retrieve the name of the value class for this SequenceFile.
  73430. @see org.apache.hadoop.io.SequenceFile.Reader#getValueClassName]]>
  73431. </doc>
  73432. </method>
  73433. <method name="nextKeyValue" return="boolean"
  73434. abstract="false" native="false" synchronized="true"
  73435. static="false" final="false" visibility="public"
  73436. deprecated="not deprecated">
  73437. <exception name="IOException" type="java.io.IOException"/>
  73438. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73439. <doc>
  73440. <![CDATA[Read raw bytes from a SequenceFile.]]>
  73441. </doc>
  73442. </method>
  73443. <method name="close"
  73444. abstract="false" native="false" synchronized="false"
  73445. static="false" final="false" visibility="public"
  73446. deprecated="not deprecated">
  73447. <exception name="IOException" type="java.io.IOException"/>
  73448. </method>
  73449. <method name="getProgress" return="float"
  73450. abstract="false" native="false" synchronized="false"
  73451. static="false" final="false" visibility="public"
  73452. deprecated="not deprecated">
  73453. <exception name="IOException" type="java.io.IOException"/>
  73454. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73455. <doc>
  73456. <![CDATA[Return the progress within the input split
  73457. @return 0.0 to 1.0 of the input byte range]]>
  73458. </doc>
  73459. </method>
  73460. <doc>
  73461. <![CDATA[Read records from a SequenceFile as binary (raw) bytes.]]>
  73462. </doc>
  73463. </class>
  73464. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader -->
  73465. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileAsTextInputFormat -->
  73466. <class name="SequenceFileAsTextInputFormat" extends="org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFormat"
  73467. abstract="false"
  73468. static="false" final="false" visibility="public"
  73469. deprecated="not deprecated">
  73470. <constructor name="SequenceFileAsTextInputFormat"
  73471. static="false" final="false" visibility="public"
  73472. deprecated="not deprecated">
  73473. </constructor>
  73474. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  73475. abstract="false" native="false" synchronized="false"
  73476. static="false" final="false" visibility="public"
  73477. deprecated="not deprecated">
  73478. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  73479. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73480. <exception name="IOException" type="java.io.IOException"/>
  73481. </method>
  73482. <doc>
  73483. <![CDATA[This class is similar to SequenceFileInputFormat, except it generates
  73484. SequenceFileAsTextRecordReader which converts the input keys and values
  73485. to their String forms by calling toString() method.]]>
  73486. </doc>
  73487. </class>
  73488. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileAsTextInputFormat -->
  73489. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileAsTextRecordReader -->
  73490. <class name="SequenceFileAsTextRecordReader" extends="org.apache.hadoop.mapreduce.RecordReader"
  73491. abstract="false"
  73492. static="false" final="false" visibility="public"
  73493. deprecated="not deprecated">
  73494. <constructor name="SequenceFileAsTextRecordReader"
  73495. static="false" final="false" visibility="public"
  73496. deprecated="not deprecated">
  73497. <exception name="IOException" type="java.io.IOException"/>
  73498. </constructor>
  73499. <method name="initialize"
  73500. abstract="false" native="false" synchronized="false"
  73501. static="false" final="false" visibility="public"
  73502. deprecated="not deprecated">
  73503. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  73504. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73505. <exception name="IOException" type="java.io.IOException"/>
  73506. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73507. </method>
  73508. <method name="getCurrentKey" return="org.apache.hadoop.io.Text"
  73509. abstract="false" native="false" synchronized="false"
  73510. static="false" final="false" visibility="public"
  73511. deprecated="not deprecated">
  73512. <exception name="IOException" type="java.io.IOException"/>
  73513. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73514. </method>
  73515. <method name="getCurrentValue" return="org.apache.hadoop.io.Text"
  73516. abstract="false" native="false" synchronized="false"
  73517. static="false" final="false" visibility="public"
  73518. deprecated="not deprecated">
  73519. <exception name="IOException" type="java.io.IOException"/>
  73520. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73521. </method>
  73522. <method name="nextKeyValue" return="boolean"
  73523. abstract="false" native="false" synchronized="true"
  73524. static="false" final="false" visibility="public"
  73525. deprecated="not deprecated">
  73526. <exception name="IOException" type="java.io.IOException"/>
  73527. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73528. <doc>
  73529. <![CDATA[Read key/value pair in a line.]]>
  73530. </doc>
  73531. </method>
  73532. <method name="getProgress" return="float"
  73533. abstract="false" native="false" synchronized="false"
  73534. static="false" final="false" visibility="public"
  73535. deprecated="not deprecated">
  73536. <exception name="IOException" type="java.io.IOException"/>
  73537. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73538. </method>
  73539. <method name="close"
  73540. abstract="false" native="false" synchronized="true"
  73541. static="false" final="false" visibility="public"
  73542. deprecated="not deprecated">
  73543. <exception name="IOException" type="java.io.IOException"/>
  73544. </method>
  73545. <doc>
  73546. <![CDATA[This class converts the input keys and values to their String forms by
  73547. calling toString() method. This class to SequenceFileAsTextInputFormat
  73548. class is as LineRecordReader class to TextInputFormat class.]]>
  73549. </doc>
  73550. </class>
  73551. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileAsTextRecordReader -->
  73552. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter -->
  73553. <class name="SequenceFileInputFilter" extends="org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFormat"
  73554. abstract="false"
  73555. static="false" final="false" visibility="public"
  73556. deprecated="not deprecated">
  73557. <constructor name="SequenceFileInputFilter"
  73558. static="false" final="false" visibility="public"
  73559. deprecated="not deprecated">
  73560. </constructor>
  73561. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  73562. abstract="false" native="false" synchronized="false"
  73563. static="false" final="false" visibility="public"
  73564. deprecated="not deprecated">
  73565. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  73566. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73567. <exception name="IOException" type="java.io.IOException"/>
  73568. <doc>
  73569. <![CDATA[Create a record reader for the given split
  73570. @param split file split
  73571. @param context the task-attempt context
  73572. @return RecordReader]]>
  73573. </doc>
  73574. </method>
  73575. <method name="setFilterClass"
  73576. abstract="false" native="false" synchronized="false"
  73577. static="true" final="false" visibility="public"
  73578. deprecated="not deprecated">
  73579. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  73580. <param name="filterClass" type="java.lang.Class"/>
  73581. <doc>
  73582. <![CDATA[set the filter class
  73583. @param job The job
  73584. @param filterClass filter class]]>
  73585. </doc>
  73586. </method>
  73587. <field name="LOG" type="org.apache.commons.logging.Log"
  73588. transient="false" volatile="false"
  73589. static="true" final="true" visibility="public"
  73590. deprecated="not deprecated">
  73591. </field>
  73592. <field name="FILTER_CLASS" type="java.lang.String"
  73593. transient="false" volatile="false"
  73594. static="true" final="true" visibility="public"
  73595. deprecated="not deprecated">
  73596. </field>
  73597. <field name="FILTER_FREQUENCY" type="java.lang.String"
  73598. transient="false" volatile="false"
  73599. static="true" final="true" visibility="public"
  73600. deprecated="not deprecated">
  73601. </field>
  73602. <field name="FILTER_REGEX" type="java.lang.String"
  73603. transient="false" volatile="false"
  73604. static="true" final="true" visibility="public"
  73605. deprecated="not deprecated">
  73606. </field>
  73607. <doc>
  73608. <![CDATA[A class that allows a map/red job to work on a sample of sequence files.
  73609. The sample is decided by the filter class set by the job.]]>
  73610. </doc>
  73611. </class>
  73612. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter -->
  73613. <!-- start interface org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.Filter -->
  73614. <interface name="SequenceFileInputFilter.Filter" abstract="true"
  73615. static="true" final="false" visibility="public"
  73616. deprecated="not deprecated">
  73617. <implements name="org.apache.hadoop.conf.Configurable"/>
  73618. <method name="accept" return="boolean"
  73619. abstract="false" native="false" synchronized="false"
  73620. static="false" final="false" visibility="public"
  73621. deprecated="not deprecated">
  73622. <param name="key" type="java.lang.Object"/>
  73623. <doc>
  73624. <![CDATA[filter function
  73625. Decide if a record should be filtered or not
  73626. @param key record key
  73627. @return true if a record is accepted; return false otherwise]]>
  73628. </doc>
  73629. </method>
  73630. <doc>
  73631. <![CDATA[filter interface]]>
  73632. </doc>
  73633. </interface>
  73634. <!-- end interface org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.Filter -->
  73635. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.FilterBase -->
  73636. <class name="SequenceFileInputFilter.FilterBase" extends="java.lang.Object"
  73637. abstract="true"
  73638. static="true" final="false" visibility="public"
  73639. deprecated="not deprecated">
  73640. <implements name="org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.Filter"/>
  73641. <constructor name="SequenceFileInputFilter.FilterBase"
  73642. static="false" final="false" visibility="public"
  73643. deprecated="not deprecated">
  73644. </constructor>
  73645. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  73646. abstract="false" native="false" synchronized="false"
  73647. static="false" final="false" visibility="public"
  73648. deprecated="not deprecated">
  73649. </method>
  73650. <doc>
  73651. <![CDATA[base class for Filters]]>
  73652. </doc>
  73653. </class>
  73654. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.FilterBase -->
  73655. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.MD5Filter -->
  73656. <class name="SequenceFileInputFilter.MD5Filter" extends="org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.FilterBase"
  73657. abstract="false"
  73658. static="true" final="false" visibility="public"
  73659. deprecated="not deprecated">
  73660. <constructor name="SequenceFileInputFilter.MD5Filter"
  73661. static="false" final="false" visibility="public"
  73662. deprecated="not deprecated">
  73663. </constructor>
  73664. <method name="setFrequency"
  73665. abstract="false" native="false" synchronized="false"
  73666. static="true" final="false" visibility="public"
  73667. deprecated="not deprecated">
  73668. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  73669. <param name="frequency" type="int"/>
  73670. <doc>
  73671. <![CDATA[set the filtering frequency in configuration
  73672. @param conf configuration
  73673. @param frequency filtering frequency]]>
  73674. </doc>
  73675. </method>
  73676. <method name="setConf"
  73677. abstract="false" native="false" synchronized="false"
  73678. static="false" final="false" visibility="public"
  73679. deprecated="not deprecated">
  73680. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  73681. <doc>
  73682. <![CDATA[configure the filter according to configuration
  73683. @param conf configuration]]>
  73684. </doc>
  73685. </method>
  73686. <method name="accept" return="boolean"
  73687. abstract="false" native="false" synchronized="false"
  73688. static="false" final="false" visibility="public"
  73689. deprecated="not deprecated">
  73690. <param name="key" type="java.lang.Object"/>
  73691. <doc>
  73692. <![CDATA[Filtering method
  73693. If MD5(key) % frequency==0, return true; otherwise return false
  73694. @see Filter#accept(Object)]]>
  73695. </doc>
  73696. </method>
  73697. <field name="MD5_LEN" type="int"
  73698. transient="false" volatile="false"
  73699. static="true" final="true" visibility="public"
  73700. deprecated="not deprecated">
  73701. </field>
  73702. <doc>
  73703. <![CDATA[This class returns a set of records by examing the MD5 digest of its
  73704. key against a filtering frequency <i>f</i>. The filtering criteria is
  73705. MD5(key) % f == 0.]]>
  73706. </doc>
  73707. </class>
  73708. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.MD5Filter -->
  73709. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.PercentFilter -->
  73710. <class name="SequenceFileInputFilter.PercentFilter" extends="org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.FilterBase"
  73711. abstract="false"
  73712. static="true" final="false" visibility="public"
  73713. deprecated="not deprecated">
  73714. <constructor name="SequenceFileInputFilter.PercentFilter"
  73715. static="false" final="false" visibility="public"
  73716. deprecated="not deprecated">
  73717. </constructor>
  73718. <method name="setFrequency"
  73719. abstract="false" native="false" synchronized="false"
  73720. static="true" final="false" visibility="public"
  73721. deprecated="not deprecated">
  73722. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  73723. <param name="frequency" type="int"/>
  73724. <doc>
  73725. <![CDATA[set the frequency and stores it in conf
  73726. @param conf configuration
  73727. @param frequency filtering frequencey]]>
  73728. </doc>
  73729. </method>
  73730. <method name="setConf"
  73731. abstract="false" native="false" synchronized="false"
  73732. static="false" final="false" visibility="public"
  73733. deprecated="not deprecated">
  73734. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  73735. <doc>
  73736. <![CDATA[configure the filter by checking the configuration
  73737. @param conf configuration]]>
  73738. </doc>
  73739. </method>
  73740. <method name="accept" return="boolean"
  73741. abstract="false" native="false" synchronized="false"
  73742. static="false" final="false" visibility="public"
  73743. deprecated="not deprecated">
  73744. <param name="key" type="java.lang.Object"/>
  73745. <doc>
  73746. <![CDATA[Filtering method
  73747. If record# % frequency==0, return true; otherwise return false
  73748. @see Filter#accept(Object)]]>
  73749. </doc>
  73750. </method>
  73751. <doc>
  73752. <![CDATA[This class returns a percentage of records
  73753. The percentage is determined by a filtering frequency <i>f</i> using
  73754. the criteria record# % f == 0.
  73755. For example, if the frequency is 10, one out of 10 records is returned.]]>
  73756. </doc>
  73757. </class>
  73758. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.PercentFilter -->
  73759. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.RegexFilter -->
  73760. <class name="SequenceFileInputFilter.RegexFilter" extends="org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.FilterBase"
  73761. abstract="false"
  73762. static="true" final="false" visibility="public"
  73763. deprecated="not deprecated">
  73764. <constructor name="SequenceFileInputFilter.RegexFilter"
  73765. static="false" final="false" visibility="public"
  73766. deprecated="not deprecated">
  73767. </constructor>
  73768. <method name="setPattern"
  73769. abstract="false" native="false" synchronized="false"
  73770. static="true" final="false" visibility="public"
  73771. deprecated="not deprecated">
  73772. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  73773. <param name="regex" type="java.lang.String"/>
  73774. <exception name="PatternSyntaxException" type="java.util.regex.PatternSyntaxException"/>
  73775. <doc>
  73776. <![CDATA[Define the filtering regex and stores it in conf
  73777. @param conf where the regex is set
  73778. @param regex regex used as a filter]]>
  73779. </doc>
  73780. </method>
  73781. <method name="setConf"
  73782. abstract="false" native="false" synchronized="false"
  73783. static="false" final="false" visibility="public"
  73784. deprecated="not deprecated">
  73785. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  73786. <doc>
  73787. <![CDATA[configure the Filter by checking the configuration]]>
  73788. </doc>
  73789. </method>
  73790. <method name="accept" return="boolean"
  73791. abstract="false" native="false" synchronized="false"
  73792. static="false" final="false" visibility="public"
  73793. deprecated="not deprecated">
  73794. <param name="key" type="java.lang.Object"/>
  73795. <doc>
  73796. <![CDATA[Filtering method
  73797. If key matches the regex, return true; otherwise return false
  73798. @see Filter#accept(Object)]]>
  73799. </doc>
  73800. </method>
  73801. <doc>
  73802. <![CDATA[Records filter by matching key to regex]]>
  73803. </doc>
  73804. </class>
  73805. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFilter.RegexFilter -->
  73806. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFormat -->
  73807. <class name="SequenceFileInputFormat" extends="org.apache.hadoop.mapreduce.lib.input.FileInputFormat"
  73808. abstract="false"
  73809. static="false" final="false" visibility="public"
  73810. deprecated="not deprecated">
  73811. <constructor name="SequenceFileInputFormat"
  73812. static="false" final="false" visibility="public"
  73813. deprecated="not deprecated">
  73814. </constructor>
  73815. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  73816. abstract="false" native="false" synchronized="false"
  73817. static="false" final="false" visibility="public"
  73818. deprecated="not deprecated">
  73819. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  73820. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73821. <exception name="IOException" type="java.io.IOException"/>
  73822. </method>
  73823. <method name="getFormatMinSplitSize" return="long"
  73824. abstract="false" native="false" synchronized="false"
  73825. static="false" final="false" visibility="protected"
  73826. deprecated="not deprecated">
  73827. </method>
  73828. <method name="listStatus" return="java.util.List"
  73829. abstract="false" native="false" synchronized="false"
  73830. static="false" final="false" visibility="protected"
  73831. deprecated="not deprecated">
  73832. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  73833. <exception name="IOException" type="java.io.IOException"/>
  73834. </method>
  73835. <doc>
  73836. <![CDATA[An {@link InputFormat} for {@link SequenceFile}s.]]>
  73837. </doc>
  73838. </class>
  73839. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFormat -->
  73840. <!-- start class org.apache.hadoop.mapreduce.lib.input.SequenceFileRecordReader -->
  73841. <class name="SequenceFileRecordReader" extends="org.apache.hadoop.mapreduce.RecordReader"
  73842. abstract="false"
  73843. static="false" final="false" visibility="public"
  73844. deprecated="not deprecated">
  73845. <constructor name="SequenceFileRecordReader"
  73846. static="false" final="false" visibility="public"
  73847. deprecated="not deprecated">
  73848. </constructor>
  73849. <method name="initialize"
  73850. abstract="false" native="false" synchronized="false"
  73851. static="false" final="false" visibility="public"
  73852. deprecated="not deprecated">
  73853. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  73854. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73855. <exception name="IOException" type="java.io.IOException"/>
  73856. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73857. </method>
  73858. <method name="nextKeyValue" return="boolean"
  73859. abstract="false" native="false" synchronized="false"
  73860. static="false" final="false" visibility="public"
  73861. deprecated="not deprecated">
  73862. <exception name="IOException" type="java.io.IOException"/>
  73863. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  73864. </method>
  73865. <method name="getCurrentKey" return="java.lang.Object"
  73866. abstract="false" native="false" synchronized="false"
  73867. static="false" final="false" visibility="public"
  73868. deprecated="not deprecated">
  73869. </method>
  73870. <method name="getCurrentValue" return="java.lang.Object"
  73871. abstract="false" native="false" synchronized="false"
  73872. static="false" final="false" visibility="public"
  73873. deprecated="not deprecated">
  73874. </method>
  73875. <method name="getProgress" return="float"
  73876. abstract="false" native="false" synchronized="false"
  73877. static="false" final="false" visibility="public"
  73878. deprecated="not deprecated">
  73879. <exception name="IOException" type="java.io.IOException"/>
  73880. <doc>
  73881. <![CDATA[Return the progress within the input split
  73882. @return 0.0 to 1.0 of the input byte range]]>
  73883. </doc>
  73884. </method>
  73885. <method name="close"
  73886. abstract="false" native="false" synchronized="true"
  73887. static="false" final="false" visibility="public"
  73888. deprecated="not deprecated">
  73889. <exception name="IOException" type="java.io.IOException"/>
  73890. </method>
  73891. <field name="conf" type="org.apache.hadoop.conf.Configuration"
  73892. transient="false" volatile="false"
  73893. static="false" final="false" visibility="protected"
  73894. deprecated="not deprecated">
  73895. </field>
  73896. <doc>
  73897. <![CDATA[An {@link RecordReader} for {@link SequenceFile}s.]]>
  73898. </doc>
  73899. </class>
  73900. <!-- end class org.apache.hadoop.mapreduce.lib.input.SequenceFileRecordReader -->
  73901. <!-- start class org.apache.hadoop.mapreduce.lib.input.TextInputFormat -->
  73902. <class name="TextInputFormat" extends="org.apache.hadoop.mapreduce.lib.input.FileInputFormat"
  73903. abstract="false"
  73904. static="false" final="false" visibility="public"
  73905. deprecated="not deprecated">
  73906. <constructor name="TextInputFormat"
  73907. static="false" final="false" visibility="public"
  73908. deprecated="not deprecated">
  73909. </constructor>
  73910. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  73911. abstract="false" native="false" synchronized="false"
  73912. static="false" final="false" visibility="public"
  73913. deprecated="not deprecated">
  73914. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  73915. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  73916. </method>
  73917. <method name="isSplitable" return="boolean"
  73918. abstract="false" native="false" synchronized="false"
  73919. static="false" final="false" visibility="protected"
  73920. deprecated="not deprecated">
  73921. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  73922. <param name="file" type="org.apache.hadoop.fs.Path"/>
  73923. </method>
  73924. <doc>
  73925. <![CDATA[An {@link InputFormat} for plain text files. Files are broken into lines.
  73926. Either linefeed or carriage-return are used to signal end of line. Keys are
  73927. the position in the file, and values are the line of text..]]>
  73928. </doc>
  73929. </class>
  73930. <!-- end class org.apache.hadoop.mapreduce.lib.input.TextInputFormat -->
  73931. </package>
  73932. <package name="org.apache.hadoop.mapreduce.lib.jobcontrol">
  73933. <!-- start class org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob -->
  73934. <class name="ControlledJob" extends="java.lang.Object"
  73935. abstract="false"
  73936. static="false" final="false" visibility="public"
  73937. deprecated="not deprecated">
  73938. <constructor name="ControlledJob" type="org.apache.hadoop.mapreduce.Job, java.util.List"
  73939. static="false" final="false" visibility="public"
  73940. deprecated="not deprecated">
  73941. <exception name="IOException" type="java.io.IOException"/>
  73942. <doc>
  73943. <![CDATA[Construct a job.
  73944. @param job a mapreduce job to be executed.
  73945. @param dependingJobs an array of jobs the current job depends on]]>
  73946. </doc>
  73947. </constructor>
  73948. <constructor name="ControlledJob" type="org.apache.hadoop.conf.Configuration"
  73949. static="false" final="false" visibility="public"
  73950. deprecated="not deprecated">
  73951. <exception name="IOException" type="java.io.IOException"/>
  73952. <doc>
  73953. <![CDATA[Construct a job.
  73954. @param conf mapred job configuration representing a job to be executed.
  73955. @throws IOException]]>
  73956. </doc>
  73957. </constructor>
  73958. <method name="toString" return="java.lang.String"
  73959. abstract="false" native="false" synchronized="false"
  73960. static="false" final="false" visibility="public"
  73961. deprecated="not deprecated">
  73962. </method>
  73963. <method name="getJobName" return="java.lang.String"
  73964. abstract="false" native="false" synchronized="false"
  73965. static="false" final="false" visibility="public"
  73966. deprecated="not deprecated">
  73967. <doc>
  73968. <![CDATA[@return the job name of this job]]>
  73969. </doc>
  73970. </method>
  73971. <method name="setJobName"
  73972. abstract="false" native="false" synchronized="false"
  73973. static="false" final="false" visibility="public"
  73974. deprecated="not deprecated">
  73975. <param name="jobName" type="java.lang.String"/>
  73976. <doc>
  73977. <![CDATA[Set the job name for this job.
  73978. @param jobName the job name]]>
  73979. </doc>
  73980. </method>
  73981. <method name="getJobID" return="java.lang.String"
  73982. abstract="false" native="false" synchronized="false"
  73983. static="false" final="false" visibility="public"
  73984. deprecated="not deprecated">
  73985. <doc>
  73986. <![CDATA[@return the job ID of this job assigned by JobControl]]>
  73987. </doc>
  73988. </method>
  73989. <method name="setJobID"
  73990. abstract="false" native="false" synchronized="false"
  73991. static="false" final="false" visibility="public"
  73992. deprecated="not deprecated">
  73993. <param name="id" type="java.lang.String"/>
  73994. <doc>
  73995. <![CDATA[Set the job ID for this job.
  73996. @param id the job ID]]>
  73997. </doc>
  73998. </method>
  73999. <method name="getMapredJobID" return="org.apache.hadoop.mapreduce.JobID"
  74000. abstract="false" native="false" synchronized="false"
  74001. static="false" final="false" visibility="public"
  74002. deprecated="not deprecated">
  74003. <doc>
  74004. <![CDATA[@return the mapred ID of this job as assigned by the
  74005. mapred framework.]]>
  74006. </doc>
  74007. </method>
  74008. <method name="getJob" return="org.apache.hadoop.mapreduce.Job"
  74009. abstract="false" native="false" synchronized="true"
  74010. static="false" final="false" visibility="public"
  74011. deprecated="not deprecated">
  74012. <doc>
  74013. <![CDATA[@return the mapreduce job]]>
  74014. </doc>
  74015. </method>
  74016. <method name="setJob"
  74017. abstract="false" native="false" synchronized="true"
  74018. static="false" final="false" visibility="public"
  74019. deprecated="not deprecated">
  74020. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  74021. <doc>
  74022. <![CDATA[Set the mapreduce job
  74023. @param job the mapreduce job for this job.]]>
  74024. </doc>
  74025. </method>
  74026. <method name="getJobState" return="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State"
  74027. abstract="false" native="false" synchronized="true"
  74028. static="false" final="false" visibility="public"
  74029. deprecated="not deprecated">
  74030. <doc>
  74031. <![CDATA[@return the state of this job]]>
  74032. </doc>
  74033. </method>
  74034. <method name="setJobState"
  74035. abstract="false" native="false" synchronized="true"
  74036. static="false" final="false" visibility="protected"
  74037. deprecated="not deprecated">
  74038. <param name="state" type="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State"/>
  74039. <doc>
  74040. <![CDATA[Set the state for this job.
  74041. @param state the new state for this job.]]>
  74042. </doc>
  74043. </method>
  74044. <method name="getMessage" return="java.lang.String"
  74045. abstract="false" native="false" synchronized="true"
  74046. static="false" final="false" visibility="public"
  74047. deprecated="not deprecated">
  74048. <doc>
  74049. <![CDATA[@return the message of this job]]>
  74050. </doc>
  74051. </method>
  74052. <method name="setMessage"
  74053. abstract="false" native="false" synchronized="true"
  74054. static="false" final="false" visibility="public"
  74055. deprecated="not deprecated">
  74056. <param name="message" type="java.lang.String"/>
  74057. <doc>
  74058. <![CDATA[Set the message for this job.
  74059. @param message the message for this job.]]>
  74060. </doc>
  74061. </method>
  74062. <method name="getDependentJobs" return="java.util.List"
  74063. abstract="false" native="false" synchronized="false"
  74064. static="false" final="false" visibility="public"
  74065. deprecated="not deprecated">
  74066. <doc>
  74067. <![CDATA[@return the depending jobs of this job]]>
  74068. </doc>
  74069. </method>
  74070. <method name="addDependingJob" return="boolean"
  74071. abstract="false" native="false" synchronized="true"
  74072. static="false" final="false" visibility="public"
  74073. deprecated="not deprecated">
  74074. <param name="dependingJob" type="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob"/>
  74075. <doc>
  74076. <![CDATA[Add a job to this jobs' dependency list.
  74077. Dependent jobs can only be added while a Job
  74078. is waiting to run, not during or afterwards.
  74079. @param dependingJob Job that this Job depends on.
  74080. @return <tt>true</tt> if the Job was added.]]>
  74081. </doc>
  74082. </method>
  74083. <method name="isCompleted" return="boolean"
  74084. abstract="false" native="false" synchronized="true"
  74085. static="false" final="false" visibility="public"
  74086. deprecated="not deprecated">
  74087. <doc>
  74088. <![CDATA[@return true if this job is in a complete state]]>
  74089. </doc>
  74090. </method>
  74091. <method name="isReady" return="boolean"
  74092. abstract="false" native="false" synchronized="true"
  74093. static="false" final="false" visibility="public"
  74094. deprecated="not deprecated">
  74095. <doc>
  74096. <![CDATA[@return true if this job is in READY state]]>
  74097. </doc>
  74098. </method>
  74099. <method name="killJob"
  74100. abstract="false" native="false" synchronized="false"
  74101. static="false" final="false" visibility="public"
  74102. deprecated="not deprecated">
  74103. <exception name="IOException" type="java.io.IOException"/>
  74104. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  74105. </method>
  74106. <method name="failJob"
  74107. abstract="false" native="false" synchronized="true"
  74108. static="false" final="false" visibility="public"
  74109. deprecated="not deprecated">
  74110. <param name="message" type="java.lang.String"/>
  74111. <exception name="IOException" type="java.io.IOException"/>
  74112. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  74113. </method>
  74114. <method name="submit"
  74115. abstract="false" native="false" synchronized="true"
  74116. static="false" final="false" visibility="protected"
  74117. deprecated="not deprecated">
  74118. <doc>
  74119. <![CDATA[Submit this job to mapred. The state becomes RUNNING if submission
  74120. is successful, FAILED otherwise.]]>
  74121. </doc>
  74122. </method>
  74123. <field name="CREATE_DIR" type="java.lang.String"
  74124. transient="false" volatile="false"
  74125. static="true" final="true" visibility="public"
  74126. deprecated="not deprecated">
  74127. </field>
  74128. <doc>
  74129. <![CDATA[This class encapsulates a MapReduce job and its dependency. It monitors
  74130. the states of the depending jobs and updates the state of this job.
  74131. A job starts in the WAITING state. If it does not have any depending jobs,
  74132. or all of the depending jobs are in SUCCESS state, then the job state
  74133. will become READY. If any depending jobs fail, the job will fail too.
  74134. When in READY state, the job can be submitted to Hadoop for execution, with
  74135. the state changing into RUNNING state. From RUNNING state, the job
  74136. can get into SUCCESS or FAILED state, depending
  74137. the status of the job execution.]]>
  74138. </doc>
  74139. </class>
  74140. <!-- end class org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob -->
  74141. <!-- start class org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State -->
  74142. <class name="ControlledJob.State" extends="java.lang.Enum"
  74143. abstract="false"
  74144. static="true" final="true" visibility="public"
  74145. deprecated="not deprecated">
  74146. <method name="values" return="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State[]"
  74147. abstract="false" native="false" synchronized="false"
  74148. static="true" final="false" visibility="public"
  74149. deprecated="not deprecated">
  74150. </method>
  74151. <method name="valueOf" return="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State"
  74152. abstract="false" native="false" synchronized="false"
  74153. static="true" final="false" visibility="public"
  74154. deprecated="not deprecated">
  74155. <param name="name" type="java.lang.String"/>
  74156. </method>
  74157. <field name="SUCCESS" type="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State"
  74158. transient="false" volatile="false"
  74159. static="true" final="true" visibility="public"
  74160. deprecated="not deprecated">
  74161. </field>
  74162. <field name="WAITING" type="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State"
  74163. transient="false" volatile="false"
  74164. static="true" final="true" visibility="public"
  74165. deprecated="not deprecated">
  74166. </field>
  74167. <field name="RUNNING" type="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State"
  74168. transient="false" volatile="false"
  74169. static="true" final="true" visibility="public"
  74170. deprecated="not deprecated">
  74171. </field>
  74172. <field name="READY" type="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State"
  74173. transient="false" volatile="false"
  74174. static="true" final="true" visibility="public"
  74175. deprecated="not deprecated">
  74176. </field>
  74177. <field name="FAILED" type="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State"
  74178. transient="false" volatile="false"
  74179. static="true" final="true" visibility="public"
  74180. deprecated="not deprecated">
  74181. </field>
  74182. <field name="DEPENDENT_FAILED" type="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State"
  74183. transient="false" volatile="false"
  74184. static="true" final="true" visibility="public"
  74185. deprecated="not deprecated">
  74186. </field>
  74187. </class>
  74188. <!-- end class org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob.State -->
  74189. <!-- start class org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl -->
  74190. <class name="JobControl" extends="java.lang.Object"
  74191. abstract="false"
  74192. static="false" final="false" visibility="public"
  74193. deprecated="not deprecated">
  74194. <implements name="java.lang.Runnable"/>
  74195. <constructor name="JobControl" type="java.lang.String"
  74196. static="false" final="false" visibility="public"
  74197. deprecated="not deprecated">
  74198. <doc>
  74199. <![CDATA[Construct a job control for a group of jobs.
  74200. @param groupName a name identifying this group]]>
  74201. </doc>
  74202. </constructor>
  74203. <method name="getWaitingJobList" return="java.util.List"
  74204. abstract="false" native="false" synchronized="false"
  74205. static="false" final="false" visibility="public"
  74206. deprecated="not deprecated">
  74207. <doc>
  74208. <![CDATA[@return the jobs in the waiting state]]>
  74209. </doc>
  74210. </method>
  74211. <method name="getRunningJobList" return="java.util.List"
  74212. abstract="false" native="false" synchronized="false"
  74213. static="false" final="false" visibility="public"
  74214. deprecated="not deprecated">
  74215. <doc>
  74216. <![CDATA[@return the jobs in the running state]]>
  74217. </doc>
  74218. </method>
  74219. <method name="getReadyJobsList" return="java.util.List"
  74220. abstract="false" native="false" synchronized="false"
  74221. static="false" final="false" visibility="public"
  74222. deprecated="not deprecated">
  74223. <doc>
  74224. <![CDATA[@return the jobs in the ready state]]>
  74225. </doc>
  74226. </method>
  74227. <method name="getSuccessfulJobList" return="java.util.List"
  74228. abstract="false" native="false" synchronized="false"
  74229. static="false" final="false" visibility="public"
  74230. deprecated="not deprecated">
  74231. <doc>
  74232. <![CDATA[@return the jobs in the success state]]>
  74233. </doc>
  74234. </method>
  74235. <method name="getFailedJobList" return="java.util.List"
  74236. abstract="false" native="false" synchronized="false"
  74237. static="false" final="false" visibility="public"
  74238. deprecated="not deprecated">
  74239. </method>
  74240. <method name="addJob" return="java.lang.String"
  74241. abstract="false" native="false" synchronized="true"
  74242. static="false" final="false" visibility="public"
  74243. deprecated="not deprecated">
  74244. <param name="aJob" type="org.apache.hadoop.mapreduce.lib.jobcontrol.ControlledJob"/>
  74245. <doc>
  74246. <![CDATA[Add a new job.
  74247. @param aJob the new job]]>
  74248. </doc>
  74249. </method>
  74250. <method name="addJobCollection"
  74251. abstract="false" native="false" synchronized="false"
  74252. static="false" final="false" visibility="public"
  74253. deprecated="not deprecated">
  74254. <param name="jobs" type="java.util.Collection"/>
  74255. <doc>
  74256. <![CDATA[Add a collection of jobs
  74257. @param jobs]]>
  74258. </doc>
  74259. </method>
  74260. <method name="getThreadState" return="org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState"
  74261. abstract="false" native="false" synchronized="false"
  74262. static="false" final="false" visibility="public"
  74263. deprecated="not deprecated">
  74264. <doc>
  74265. <![CDATA[@return the thread state]]>
  74266. </doc>
  74267. </method>
  74268. <method name="stop"
  74269. abstract="false" native="false" synchronized="false"
  74270. static="false" final="false" visibility="public"
  74271. deprecated="not deprecated">
  74272. <doc>
  74273. <![CDATA[set the thread state to STOPPING so that the
  74274. thread will stop when it wakes up.]]>
  74275. </doc>
  74276. </method>
  74277. <method name="suspend"
  74278. abstract="false" native="false" synchronized="false"
  74279. static="false" final="false" visibility="public"
  74280. deprecated="not deprecated">
  74281. <doc>
  74282. <![CDATA[suspend the running thread]]>
  74283. </doc>
  74284. </method>
  74285. <method name="resume"
  74286. abstract="false" native="false" synchronized="false"
  74287. static="false" final="false" visibility="public"
  74288. deprecated="not deprecated">
  74289. <doc>
  74290. <![CDATA[resume the suspended thread]]>
  74291. </doc>
  74292. </method>
  74293. <method name="allFinished" return="boolean"
  74294. abstract="false" native="false" synchronized="true"
  74295. static="false" final="false" visibility="public"
  74296. deprecated="not deprecated">
  74297. </method>
  74298. <method name="run"
  74299. abstract="false" native="false" synchronized="false"
  74300. static="false" final="false" visibility="public"
  74301. deprecated="not deprecated">
  74302. <doc>
  74303. <![CDATA[The main loop for the thread.
  74304. The loop does the following:
  74305. Check the states of the running jobs
  74306. Update the states of waiting jobs
  74307. Submit the jobs in ready state]]>
  74308. </doc>
  74309. </method>
  74310. <doc>
  74311. <![CDATA[This class encapsulates a set of MapReduce jobs and its dependency.
  74312. It tracks the states of the jobs by placing them into different tables
  74313. according to their states.
  74314. This class provides APIs for the client app to add a job to the group
  74315. and to get the jobs in the group in different states. When a job is
  74316. added, an ID unique to the group is assigned to the job.
  74317. This class has a thread that submits jobs when they become ready,
  74318. monitors the states of the running jobs, and updates the states of jobs
  74319. based on the state changes of their depending jobs states. The class
  74320. provides APIs for suspending/resuming the thread, and
  74321. for stopping the thread.]]>
  74322. </doc>
  74323. </class>
  74324. <!-- end class org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl -->
  74325. <!-- start class org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState -->
  74326. <class name="JobControl.ThreadState" extends="java.lang.Enum"
  74327. abstract="false"
  74328. static="true" final="true" visibility="public"
  74329. deprecated="not deprecated">
  74330. <method name="values" return="org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState[]"
  74331. abstract="false" native="false" synchronized="false"
  74332. static="true" final="false" visibility="public"
  74333. deprecated="not deprecated">
  74334. </method>
  74335. <method name="valueOf" return="org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState"
  74336. abstract="false" native="false" synchronized="false"
  74337. static="true" final="false" visibility="public"
  74338. deprecated="not deprecated">
  74339. <param name="name" type="java.lang.String"/>
  74340. </method>
  74341. <field name="RUNNING" type="org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState"
  74342. transient="false" volatile="false"
  74343. static="true" final="true" visibility="public"
  74344. deprecated="not deprecated">
  74345. </field>
  74346. <field name="SUSPENDED" type="org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState"
  74347. transient="false" volatile="false"
  74348. static="true" final="true" visibility="public"
  74349. deprecated="not deprecated">
  74350. </field>
  74351. <field name="STOPPED" type="org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState"
  74352. transient="false" volatile="false"
  74353. static="true" final="true" visibility="public"
  74354. deprecated="not deprecated">
  74355. </field>
  74356. <field name="STOPPING" type="org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState"
  74357. transient="false" volatile="false"
  74358. static="true" final="true" visibility="public"
  74359. deprecated="not deprecated">
  74360. </field>
  74361. <field name="READY" type="org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState"
  74362. transient="false" volatile="false"
  74363. static="true" final="true" visibility="public"
  74364. deprecated="not deprecated">
  74365. </field>
  74366. </class>
  74367. <!-- end class org.apache.hadoop.mapreduce.lib.jobcontrol.JobControl.ThreadState -->
  74368. </package>
  74369. <package name="org.apache.hadoop.mapreduce.lib.map">
  74370. <!-- start class org.apache.hadoop.mapreduce.lib.map.InverseMapper -->
  74371. <class name="InverseMapper" extends="org.apache.hadoop.mapreduce.Mapper"
  74372. abstract="false"
  74373. static="false" final="false" visibility="public"
  74374. deprecated="not deprecated">
  74375. <constructor name="InverseMapper"
  74376. static="false" final="false" visibility="public"
  74377. deprecated="not deprecated">
  74378. </constructor>
  74379. <method name="map"
  74380. abstract="false" native="false" synchronized="false"
  74381. static="false" final="false" visibility="public"
  74382. deprecated="not deprecated">
  74383. <param name="key" type="java.lang.Object"/>
  74384. <param name="value" type="java.lang.Object"/>
  74385. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  74386. <exception name="IOException" type="java.io.IOException"/>
  74387. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  74388. <doc>
  74389. <![CDATA[The inverse function. Input keys and values are swapped.]]>
  74390. </doc>
  74391. </method>
  74392. <doc>
  74393. <![CDATA[A {@link Mapper} that swaps keys and values.]]>
  74394. </doc>
  74395. </class>
  74396. <!-- end class org.apache.hadoop.mapreduce.lib.map.InverseMapper -->
  74397. <!-- start class org.apache.hadoop.mapreduce.lib.map.MultithreadedMapper -->
  74398. <class name="MultithreadedMapper" extends="org.apache.hadoop.mapreduce.Mapper"
  74399. abstract="false"
  74400. static="false" final="false" visibility="public"
  74401. deprecated="not deprecated">
  74402. <constructor name="MultithreadedMapper"
  74403. static="false" final="false" visibility="public"
  74404. deprecated="not deprecated">
  74405. </constructor>
  74406. <method name="getNumberOfThreads" return="int"
  74407. abstract="false" native="false" synchronized="false"
  74408. static="true" final="false" visibility="public"
  74409. deprecated="not deprecated">
  74410. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  74411. <doc>
  74412. <![CDATA[The number of threads in the thread pool that will run the map function.
  74413. @param job the job
  74414. @return the number of threads]]>
  74415. </doc>
  74416. </method>
  74417. <method name="setNumberOfThreads"
  74418. abstract="false" native="false" synchronized="false"
  74419. static="true" final="false" visibility="public"
  74420. deprecated="not deprecated">
  74421. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  74422. <param name="threads" type="int"/>
  74423. <doc>
  74424. <![CDATA[Set the number of threads in the pool for running maps.
  74425. @param job the job to modify
  74426. @param threads the new number of threads]]>
  74427. </doc>
  74428. </method>
  74429. <method name="getMapperClass" return="java.lang.Class"
  74430. abstract="false" native="false" synchronized="false"
  74431. static="true" final="false" visibility="public"
  74432. deprecated="not deprecated">
  74433. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  74434. <doc>
  74435. <![CDATA[Get the application's mapper class.
  74436. @param <K1> the map's input key type
  74437. @param <V1> the map's input value type
  74438. @param <K2> the map's output key type
  74439. @param <V2> the map's output value type
  74440. @param job the job
  74441. @return the mapper class to run]]>
  74442. </doc>
  74443. </method>
  74444. <method name="setMapperClass"
  74445. abstract="false" native="false" synchronized="false"
  74446. static="true" final="false" visibility="public"
  74447. deprecated="not deprecated">
  74448. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  74449. <param name="cls" type="java.lang.Class"/>
  74450. <doc>
  74451. <![CDATA[Set the application's mapper class.
  74452. @param <K1> the map input key type
  74453. @param <V1> the map input value type
  74454. @param <K2> the map output key type
  74455. @param <V2> the map output value type
  74456. @param job the job to modify
  74457. @param cls the class to use as the mapper]]>
  74458. </doc>
  74459. </method>
  74460. <method name="run"
  74461. abstract="false" native="false" synchronized="false"
  74462. static="false" final="false" visibility="public"
  74463. deprecated="not deprecated">
  74464. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  74465. <exception name="IOException" type="java.io.IOException"/>
  74466. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  74467. <doc>
  74468. <![CDATA[Run the application's maps using a thread pool.]]>
  74469. </doc>
  74470. </method>
  74471. <doc>
  74472. <![CDATA[Multithreaded implementation for @link org.apache.hadoop.mapreduce.Mapper.
  74473. <p>
  74474. It can be used instead of the default implementation,
  74475. @link org.apache.hadoop.mapred.MapRunner, when the Map operation is not CPU
  74476. bound in order to improve throughput.
  74477. <p>
  74478. Mapper implementations using this MapRunnable must be thread-safe.
  74479. <p>
  74480. The Map-Reduce job has to be configured with the mapper to use via
  74481. {@link #setMapperClass(Configuration, Class)} and
  74482. the number of thread the thread-pool can use with the
  74483. {@link #getNumberOfThreads(Configuration) method. The default
  74484. value is 10 threads.
  74485. <p>]]>
  74486. </doc>
  74487. </class>
  74488. <!-- end class org.apache.hadoop.mapreduce.lib.map.MultithreadedMapper -->
  74489. <!-- start class org.apache.hadoop.mapreduce.lib.map.TokenCounterMapper -->
  74490. <class name="TokenCounterMapper" extends="org.apache.hadoop.mapreduce.Mapper"
  74491. abstract="false"
  74492. static="false" final="false" visibility="public"
  74493. deprecated="not deprecated">
  74494. <constructor name="TokenCounterMapper"
  74495. static="false" final="false" visibility="public"
  74496. deprecated="not deprecated">
  74497. </constructor>
  74498. <method name="map"
  74499. abstract="false" native="false" synchronized="false"
  74500. static="false" final="false" visibility="public"
  74501. deprecated="not deprecated">
  74502. <param name="key" type="java.lang.Object"/>
  74503. <param name="value" type="org.apache.hadoop.io.Text"/>
  74504. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  74505. <exception name="IOException" type="java.io.IOException"/>
  74506. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  74507. </method>
  74508. <doc>
  74509. <![CDATA[Tokenize the input values and emit each word with a count of 1.]]>
  74510. </doc>
  74511. </class>
  74512. <!-- end class org.apache.hadoop.mapreduce.lib.map.TokenCounterMapper -->
  74513. </package>
  74514. <package name="org.apache.hadoop.mapreduce.lib.output">
  74515. <!-- start class org.apache.hadoop.mapreduce.lib.output.FileOutputCommitter -->
  74516. <class name="FileOutputCommitter" extends="org.apache.hadoop.mapreduce.OutputCommitter"
  74517. abstract="false"
  74518. static="false" final="false" visibility="public"
  74519. deprecated="not deprecated">
  74520. <constructor name="FileOutputCommitter" type="org.apache.hadoop.fs.Path, org.apache.hadoop.mapreduce.TaskAttemptContext"
  74521. static="false" final="false" visibility="public"
  74522. deprecated="not deprecated">
  74523. <exception name="IOException" type="java.io.IOException"/>
  74524. <doc>
  74525. <![CDATA[Create a file output committer
  74526. @param outputPath the job's output path
  74527. @param context the task's context
  74528. @throws IOException]]>
  74529. </doc>
  74530. </constructor>
  74531. <method name="setupJob"
  74532. abstract="false" native="false" synchronized="false"
  74533. static="false" final="false" visibility="public"
  74534. deprecated="not deprecated">
  74535. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  74536. <exception name="IOException" type="java.io.IOException"/>
  74537. <doc>
  74538. <![CDATA[Create the temporary directory that is the root of all of the task
  74539. work directories.
  74540. @param context the job's context]]>
  74541. </doc>
  74542. </method>
  74543. <method name="commitJob"
  74544. abstract="false" native="false" synchronized="false"
  74545. static="false" final="false" visibility="public"
  74546. deprecated="not deprecated">
  74547. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  74548. <exception name="IOException" type="java.io.IOException"/>
  74549. <doc>
  74550. <![CDATA[Delete the temporary directory, including all of the work directories.
  74551. This is called for all jobs whose final run state is SUCCEEDED
  74552. @param context the job's context.]]>
  74553. </doc>
  74554. </method>
  74555. <method name="cleanupJob"
  74556. abstract="false" native="false" synchronized="false"
  74557. static="false" final="false" visibility="public"
  74558. deprecated="not deprecated">
  74559. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  74560. <exception name="IOException" type="java.io.IOException"/>
  74561. </method>
  74562. <method name="abortJob"
  74563. abstract="false" native="false" synchronized="false"
  74564. static="false" final="false" visibility="public"
  74565. deprecated="not deprecated">
  74566. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  74567. <param name="state" type="org.apache.hadoop.mapreduce.JobStatus.State"/>
  74568. <exception name="IOException" type="java.io.IOException"/>
  74569. <doc>
  74570. <![CDATA[Delete the temporary directory, including all of the work directories.
  74571. @param context the job's context
  74572. @param state final run state of the job, should be FAILED or KILLED]]>
  74573. </doc>
  74574. </method>
  74575. <method name="setupTask"
  74576. abstract="false" native="false" synchronized="false"
  74577. static="false" final="false" visibility="public"
  74578. deprecated="not deprecated">
  74579. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  74580. <exception name="IOException" type="java.io.IOException"/>
  74581. <doc>
  74582. <![CDATA[No task setup required.]]>
  74583. </doc>
  74584. </method>
  74585. <method name="commitTask"
  74586. abstract="false" native="false" synchronized="false"
  74587. static="false" final="false" visibility="public"
  74588. deprecated="not deprecated">
  74589. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  74590. <exception name="IOException" type="java.io.IOException"/>
  74591. <doc>
  74592. <![CDATA[Move the files from the work directory to the job output directory
  74593. @param context the task context]]>
  74594. </doc>
  74595. </method>
  74596. <method name="abortTask"
  74597. abstract="false" native="false" synchronized="false"
  74598. static="false" final="false" visibility="public"
  74599. deprecated="not deprecated">
  74600. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  74601. <doc>
  74602. <![CDATA[Delete the work directory]]>
  74603. </doc>
  74604. </method>
  74605. <method name="needsTaskCommit" return="boolean"
  74606. abstract="false" native="false" synchronized="false"
  74607. static="false" final="false" visibility="public"
  74608. deprecated="not deprecated">
  74609. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  74610. <exception name="IOException" type="java.io.IOException"/>
  74611. <doc>
  74612. <![CDATA[Did this task write any files in the work directory?
  74613. @param context the task's context]]>
  74614. </doc>
  74615. </method>
  74616. <method name="getWorkPath" return="org.apache.hadoop.fs.Path"
  74617. abstract="false" native="false" synchronized="false"
  74618. static="false" final="false" visibility="public"
  74619. deprecated="not deprecated">
  74620. <exception name="IOException" type="java.io.IOException"/>
  74621. <doc>
  74622. <![CDATA[Get the directory that the task should write results into
  74623. @return the work directory
  74624. @throws IOException]]>
  74625. </doc>
  74626. </method>
  74627. <field name="TEMP_DIR_NAME" type="java.lang.String"
  74628. transient="false" volatile="false"
  74629. static="true" final="true" visibility="protected"
  74630. deprecated="not deprecated">
  74631. <doc>
  74632. <![CDATA[Temporary directory name]]>
  74633. </doc>
  74634. </field>
  74635. <field name="SUCCEEDED_FILE_NAME" type="java.lang.String"
  74636. transient="false" volatile="false"
  74637. static="true" final="true" visibility="public"
  74638. deprecated="not deprecated">
  74639. </field>
  74640. <doc>
  74641. <![CDATA[An {@link OutputCommitter} that commits files specified
  74642. in job output directory i.e. ${mapred.output.dir}.]]>
  74643. </doc>
  74644. </class>
  74645. <!-- end class org.apache.hadoop.mapreduce.lib.output.FileOutputCommitter -->
  74646. <!-- start class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat -->
  74647. <class name="FileOutputFormat" extends="org.apache.hadoop.mapreduce.OutputFormat"
  74648. abstract="true"
  74649. static="false" final="false" visibility="public"
  74650. deprecated="not deprecated">
  74651. <constructor name="FileOutputFormat"
  74652. static="false" final="false" visibility="public"
  74653. deprecated="not deprecated">
  74654. </constructor>
  74655. <method name="setCompressOutput"
  74656. abstract="false" native="false" synchronized="false"
  74657. static="true" final="false" visibility="public"
  74658. deprecated="not deprecated">
  74659. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  74660. <param name="compress" type="boolean"/>
  74661. <doc>
  74662. <![CDATA[Set whether the output of the job is compressed.
  74663. @param job the job to modify
  74664. @param compress should the output of the job be compressed?]]>
  74665. </doc>
  74666. </method>
  74667. <method name="getCompressOutput" return="boolean"
  74668. abstract="false" native="false" synchronized="false"
  74669. static="true" final="false" visibility="public"
  74670. deprecated="not deprecated">
  74671. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  74672. <doc>
  74673. <![CDATA[Is the job output compressed?
  74674. @param job the Job to look in
  74675. @return <code>true</code> if the job output should be compressed,
  74676. <code>false</code> otherwise]]>
  74677. </doc>
  74678. </method>
  74679. <method name="setOutputCompressorClass"
  74680. abstract="false" native="false" synchronized="false"
  74681. static="true" final="false" visibility="public"
  74682. deprecated="not deprecated">
  74683. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  74684. <param name="codecClass" type="java.lang.Class"/>
  74685. <doc>
  74686. <![CDATA[Set the {@link CompressionCodec} to be used to compress job outputs.
  74687. @param job the job to modify
  74688. @param codecClass the {@link CompressionCodec} to be used to
  74689. compress the job outputs]]>
  74690. </doc>
  74691. </method>
  74692. <method name="getOutputCompressorClass" return="java.lang.Class"
  74693. abstract="false" native="false" synchronized="false"
  74694. static="true" final="false" visibility="public"
  74695. deprecated="not deprecated">
  74696. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  74697. <param name="defaultValue" type="java.lang.Class"/>
  74698. <doc>
  74699. <![CDATA[Get the {@link CompressionCodec} for compressing the job outputs.
  74700. @param job the {@link Job} to look in
  74701. @param defaultValue the {@link CompressionCodec} to return if not set
  74702. @return the {@link CompressionCodec} to be used to compress the
  74703. job outputs
  74704. @throws IllegalArgumentException if the class was specified, but not found]]>
  74705. </doc>
  74706. </method>
  74707. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  74708. abstract="true" native="false" synchronized="false"
  74709. static="false" final="false" visibility="public"
  74710. deprecated="not deprecated">
  74711. <param name="job" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  74712. <exception name="IOException" type="java.io.IOException"/>
  74713. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  74714. </method>
  74715. <method name="checkOutputSpecs"
  74716. abstract="false" native="false" synchronized="false"
  74717. static="false" final="false" visibility="public"
  74718. deprecated="not deprecated">
  74719. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  74720. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.mapred.FileAlreadyExistsException"/>
  74721. <exception name="IOException" type="java.io.IOException"/>
  74722. </method>
  74723. <method name="setOutputPath"
  74724. abstract="false" native="false" synchronized="false"
  74725. static="true" final="false" visibility="public"
  74726. deprecated="not deprecated">
  74727. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  74728. <param name="outputDir" type="org.apache.hadoop.fs.Path"/>
  74729. <doc>
  74730. <![CDATA[Set the {@link Path} of the output directory for the map-reduce job.
  74731. @param job The job to modify
  74732. @param outputDir the {@link Path} of the output directory for
  74733. the map-reduce job.]]>
  74734. </doc>
  74735. </method>
  74736. <method name="getOutputPath" return="org.apache.hadoop.fs.Path"
  74737. abstract="false" native="false" synchronized="false"
  74738. static="true" final="false" visibility="public"
  74739. deprecated="not deprecated">
  74740. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  74741. <doc>
  74742. <![CDATA[Get the {@link Path} to the output directory for the map-reduce job.
  74743. @return the {@link Path} to the output directory for the map-reduce job.
  74744. @see FileOutputFormat#getWorkOutputPath(TaskInputOutputContext)]]>
  74745. </doc>
  74746. </method>
  74747. <method name="getWorkOutputPath" return="org.apache.hadoop.fs.Path"
  74748. abstract="false" native="false" synchronized="false"
  74749. static="true" final="false" visibility="public"
  74750. deprecated="not deprecated">
  74751. <param name="context" type="org.apache.hadoop.mapreduce.TaskInputOutputContext"/>
  74752. <exception name="IOException" type="java.io.IOException"/>
  74753. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  74754. <doc>
  74755. <![CDATA[Get the {@link Path} to the task's temporary output directory
  74756. for the map-reduce job
  74757. <h4 id="SideEffectFiles">Tasks' Side-Effect Files</h4>
  74758. <p>Some applications need to create/write-to side-files, which differ from
  74759. the actual job-outputs.
  74760. <p>In such cases there could be issues with 2 instances of the same TIP
  74761. (running simultaneously e.g. speculative tasks) trying to open/write-to the
  74762. same file (path) on HDFS. Hence the application-writer will have to pick
  74763. unique names per task-attempt (e.g. using the attemptid, say
  74764. <tt>attempt_200709221812_0001_m_000000_0</tt>), not just per TIP.</p>
  74765. <p>To get around this the Map-Reduce framework helps the application-writer
  74766. out by maintaining a special
  74767. <tt>${mapred.output.dir}/_temporary/_${taskid}</tt>
  74768. sub-directory for each task-attempt on HDFS where the output of the
  74769. task-attempt goes. On successful completion of the task-attempt the files
  74770. in the <tt>${mapred.output.dir}/_temporary/_${taskid}</tt> (only)
  74771. are <i>promoted</i> to <tt>${mapred.output.dir}</tt>. Of course, the
  74772. framework discards the sub-directory of unsuccessful task-attempts. This
  74773. is completely transparent to the application.</p>
  74774. <p>The application-writer can take advantage of this by creating any
  74775. side-files required in a work directory during execution
  74776. of his task i.e. via
  74777. {@link #getWorkOutputPath(TaskInputOutputContext)}, and
  74778. the framework will move them out similarly - thus she doesn't have to pick
  74779. unique paths per task-attempt.</p>
  74780. <p>The entire discussion holds true for maps of jobs with
  74781. reducer=NONE (i.e. 0 reduces) since output of the map, in that case,
  74782. goes directly to HDFS.</p>
  74783. @return the {@link Path} to the task's temporary output directory
  74784. for the map-reduce job.]]>
  74785. </doc>
  74786. </method>
  74787. <method name="getPathForWorkFile" return="org.apache.hadoop.fs.Path"
  74788. abstract="false" native="false" synchronized="false"
  74789. static="true" final="false" visibility="public"
  74790. deprecated="not deprecated">
  74791. <param name="context" type="org.apache.hadoop.mapreduce.TaskInputOutputContext"/>
  74792. <param name="name" type="java.lang.String"/>
  74793. <param name="extension" type="java.lang.String"/>
  74794. <exception name="IOException" type="java.io.IOException"/>
  74795. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  74796. <doc>
  74797. <![CDATA[Helper function to generate a {@link Path} for a file that is unique for
  74798. the task within the job output directory.
  74799. <p>The path can be used to create custom files from within the map and
  74800. reduce tasks. The path name will be unique for each task. The path parent
  74801. will be the job output directory.</p>ls
  74802. <p>This method uses the {@link #getUniqueFile} method to make the file name
  74803. unique for the task.</p>
  74804. @param context the context for the task.
  74805. @param name the name for the file.
  74806. @param extension the extension for the file
  74807. @return a unique path accross all tasks of the job.]]>
  74808. </doc>
  74809. </method>
  74810. <method name="getUniqueFile" return="java.lang.String"
  74811. abstract="false" native="false" synchronized="true"
  74812. static="true" final="false" visibility="public"
  74813. deprecated="not deprecated">
  74814. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  74815. <param name="name" type="java.lang.String"/>
  74816. <param name="extension" type="java.lang.String"/>
  74817. <doc>
  74818. <![CDATA[Generate a unique filename, based on the task id, name, and extension
  74819. @param context the task that is calling this
  74820. @param name the base filename
  74821. @param extension the filename extension
  74822. @return a string like $name-[mr]-$id$extension]]>
  74823. </doc>
  74824. </method>
  74825. <method name="getDefaultWorkFile" return="org.apache.hadoop.fs.Path"
  74826. abstract="false" native="false" synchronized="false"
  74827. static="false" final="false" visibility="public"
  74828. deprecated="not deprecated">
  74829. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  74830. <param name="extension" type="java.lang.String"/>
  74831. <exception name="IOException" type="java.io.IOException"/>
  74832. <doc>
  74833. <![CDATA[Get the default path and filename for the output format.
  74834. @param context the task context
  74835. @param extension an extension to add to the filename
  74836. @return a full path $output/_temporary/$taskid/part-[mr]-$id
  74837. @throws IOException]]>
  74838. </doc>
  74839. </method>
  74840. <method name="getOutputName" return="java.lang.String"
  74841. abstract="false" native="false" synchronized="false"
  74842. static="true" final="false" visibility="protected"
  74843. deprecated="not deprecated">
  74844. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  74845. <doc>
  74846. <![CDATA[Get the base output name for the output file.]]>
  74847. </doc>
  74848. </method>
  74849. <method name="setOutputName"
  74850. abstract="false" native="false" synchronized="false"
  74851. static="true" final="false" visibility="protected"
  74852. deprecated="not deprecated">
  74853. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  74854. <param name="name" type="java.lang.String"/>
  74855. <doc>
  74856. <![CDATA[Set the base output name for output file to be created.]]>
  74857. </doc>
  74858. </method>
  74859. <method name="getOutputCommitter" return="org.apache.hadoop.mapreduce.OutputCommitter"
  74860. abstract="false" native="false" synchronized="true"
  74861. static="false" final="false" visibility="public"
  74862. deprecated="not deprecated">
  74863. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  74864. <exception name="IOException" type="java.io.IOException"/>
  74865. </method>
  74866. <field name="BASE_OUTPUT_NAME" type="java.lang.String"
  74867. transient="false" volatile="false"
  74868. static="true" final="true" visibility="protected"
  74869. deprecated="not deprecated">
  74870. </field>
  74871. <field name="PART" type="java.lang.String"
  74872. transient="false" volatile="false"
  74873. static="true" final="true" visibility="protected"
  74874. deprecated="not deprecated">
  74875. </field>
  74876. <doc>
  74877. <![CDATA[A base class for {@link OutputFormat}s that read from {@link FileSystem}s.]]>
  74878. </doc>
  74879. </class>
  74880. <!-- end class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat -->
  74881. <!-- start class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat.Counter -->
  74882. <class name="FileOutputFormat.Counter" extends="java.lang.Enum"
  74883. abstract="false"
  74884. static="true" final="true" visibility="public"
  74885. deprecated="not deprecated">
  74886. <method name="values" return="org.apache.hadoop.mapreduce.lib.output.FileOutputFormat.Counter[]"
  74887. abstract="false" native="false" synchronized="false"
  74888. static="true" final="false" visibility="public"
  74889. deprecated="not deprecated">
  74890. </method>
  74891. <method name="valueOf" return="org.apache.hadoop.mapreduce.lib.output.FileOutputFormat.Counter"
  74892. abstract="false" native="false" synchronized="false"
  74893. static="true" final="false" visibility="public"
  74894. deprecated="not deprecated">
  74895. <param name="name" type="java.lang.String"/>
  74896. </method>
  74897. <field name="BYTES_WRITTEN" type="org.apache.hadoop.mapreduce.lib.output.FileOutputFormat.Counter"
  74898. transient="false" volatile="false"
  74899. static="true" final="true" visibility="public"
  74900. deprecated="not deprecated">
  74901. </field>
  74902. </class>
  74903. <!-- end class org.apache.hadoop.mapreduce.lib.output.FileOutputFormat.Counter -->
  74904. <!-- start class org.apache.hadoop.mapreduce.lib.output.FilterOutputFormat -->
  74905. <class name="FilterOutputFormat" extends="org.apache.hadoop.mapreduce.OutputFormat"
  74906. abstract="false"
  74907. static="false" final="false" visibility="public"
  74908. deprecated="not deprecated">
  74909. <constructor name="FilterOutputFormat"
  74910. static="false" final="false" visibility="public"
  74911. deprecated="not deprecated">
  74912. </constructor>
  74913. <constructor name="FilterOutputFormat" type="org.apache.hadoop.mapreduce.OutputFormat"
  74914. static="false" final="false" visibility="public"
  74915. deprecated="not deprecated">
  74916. <doc>
  74917. <![CDATA[Create a FilterOutputFormat based on the underlying output format.
  74918. @param baseOut the underlying OutputFormat]]>
  74919. </doc>
  74920. </constructor>
  74921. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  74922. abstract="false" native="false" synchronized="false"
  74923. static="false" final="false" visibility="public"
  74924. deprecated="not deprecated">
  74925. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  74926. <exception name="IOException" type="java.io.IOException"/>
  74927. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  74928. </method>
  74929. <method name="checkOutputSpecs"
  74930. abstract="false" native="false" synchronized="false"
  74931. static="false" final="false" visibility="public"
  74932. deprecated="not deprecated">
  74933. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  74934. <exception name="IOException" type="java.io.IOException"/>
  74935. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  74936. </method>
  74937. <method name="getOutputCommitter" return="org.apache.hadoop.mapreduce.OutputCommitter"
  74938. abstract="false" native="false" synchronized="false"
  74939. static="false" final="false" visibility="public"
  74940. deprecated="not deprecated">
  74941. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  74942. <exception name="IOException" type="java.io.IOException"/>
  74943. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  74944. </method>
  74945. <field name="baseOut" type="org.apache.hadoop.mapreduce.OutputFormat"
  74946. transient="false" volatile="false"
  74947. static="false" final="false" visibility="protected"
  74948. deprecated="not deprecated">
  74949. </field>
  74950. <doc>
  74951. <![CDATA[FilterOutputFormat is a convenience class that wraps OutputFormat.]]>
  74952. </doc>
  74953. </class>
  74954. <!-- end class org.apache.hadoop.mapreduce.lib.output.FilterOutputFormat -->
  74955. <!-- start class org.apache.hadoop.mapreduce.lib.output.FilterOutputFormat.FilterRecordWriter -->
  74956. <class name="FilterOutputFormat.FilterRecordWriter" extends="org.apache.hadoop.mapreduce.RecordWriter"
  74957. abstract="false"
  74958. static="true" final="false" visibility="public"
  74959. deprecated="not deprecated">
  74960. <constructor name="FilterOutputFormat.FilterRecordWriter"
  74961. static="false" final="false" visibility="public"
  74962. deprecated="not deprecated">
  74963. </constructor>
  74964. <constructor name="FilterOutputFormat.FilterRecordWriter" type="org.apache.hadoop.mapreduce.RecordWriter"
  74965. static="false" final="false" visibility="public"
  74966. deprecated="not deprecated">
  74967. </constructor>
  74968. <method name="write"
  74969. abstract="false" native="false" synchronized="false"
  74970. static="false" final="false" visibility="public"
  74971. deprecated="not deprecated">
  74972. <param name="key" type="java.lang.Object"/>
  74973. <param name="value" type="java.lang.Object"/>
  74974. <exception name="IOException" type="java.io.IOException"/>
  74975. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  74976. </method>
  74977. <method name="close"
  74978. abstract="false" native="false" synchronized="false"
  74979. static="false" final="false" visibility="public"
  74980. deprecated="not deprecated">
  74981. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  74982. <exception name="IOException" type="java.io.IOException"/>
  74983. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  74984. </method>
  74985. <field name="rawWriter" type="org.apache.hadoop.mapreduce.RecordWriter"
  74986. transient="false" volatile="false"
  74987. static="false" final="false" visibility="protected"
  74988. deprecated="not deprecated">
  74989. </field>
  74990. <doc>
  74991. <![CDATA[<code>FilterRecordWriter</code> is a convenience wrapper
  74992. class that extends the {@link RecordWriter}.]]>
  74993. </doc>
  74994. </class>
  74995. <!-- end class org.apache.hadoop.mapreduce.lib.output.FilterOutputFormat.FilterRecordWriter -->
  74996. <!-- start class org.apache.hadoop.mapreduce.lib.output.LazyOutputFormat -->
  74997. <class name="LazyOutputFormat" extends="org.apache.hadoop.mapreduce.lib.output.FilterOutputFormat"
  74998. abstract="false"
  74999. static="false" final="false" visibility="public"
  75000. deprecated="not deprecated">
  75001. <constructor name="LazyOutputFormat"
  75002. static="false" final="false" visibility="public"
  75003. deprecated="not deprecated">
  75004. </constructor>
  75005. <method name="setOutputFormatClass"
  75006. abstract="false" native="false" synchronized="false"
  75007. static="true" final="false" visibility="public"
  75008. deprecated="not deprecated">
  75009. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  75010. <param name="theClass" type="java.lang.Class"/>
  75011. <doc>
  75012. <![CDATA[Set the underlying output format for LazyOutputFormat.
  75013. @param job the {@link Job} to modify
  75014. @param theClass the underlying class]]>
  75015. </doc>
  75016. </method>
  75017. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  75018. abstract="false" native="false" synchronized="false"
  75019. static="false" final="false" visibility="public"
  75020. deprecated="not deprecated">
  75021. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  75022. <exception name="IOException" type="java.io.IOException"/>
  75023. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  75024. </method>
  75025. <method name="checkOutputSpecs"
  75026. abstract="false" native="false" synchronized="false"
  75027. static="false" final="false" visibility="public"
  75028. deprecated="not deprecated">
  75029. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  75030. <exception name="IOException" type="java.io.IOException"/>
  75031. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  75032. </method>
  75033. <method name="getOutputCommitter" return="org.apache.hadoop.mapreduce.OutputCommitter"
  75034. abstract="false" native="false" synchronized="false"
  75035. static="false" final="false" visibility="public"
  75036. deprecated="not deprecated">
  75037. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  75038. <exception name="IOException" type="java.io.IOException"/>
  75039. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  75040. </method>
  75041. <field name="OUTPUT_FORMAT" type="java.lang.String"
  75042. transient="false" volatile="false"
  75043. static="true" final="false" visibility="public"
  75044. deprecated="not deprecated">
  75045. </field>
  75046. <doc>
  75047. <![CDATA[A Convenience class that creates output lazily.]]>
  75048. </doc>
  75049. </class>
  75050. <!-- end class org.apache.hadoop.mapreduce.lib.output.LazyOutputFormat -->
  75051. <!-- start class org.apache.hadoop.mapreduce.lib.output.MultipleOutputs -->
  75052. <class name="MultipleOutputs" extends="java.lang.Object"
  75053. abstract="false"
  75054. static="false" final="false" visibility="public"
  75055. deprecated="not deprecated">
  75056. <constructor name="MultipleOutputs" type="org.apache.hadoop.mapreduce.TaskInputOutputContext"
  75057. static="false" final="false" visibility="public"
  75058. deprecated="not deprecated">
  75059. <doc>
  75060. <![CDATA[Creates and initializes multiple outputs support,
  75061. it should be instantiated in the Mapper/Reducer setup method.
  75062. @param context the TaskInputOutputContext object]]>
  75063. </doc>
  75064. </constructor>
  75065. <method name="addNamedOutput"
  75066. abstract="false" native="false" synchronized="false"
  75067. static="true" final="false" visibility="public"
  75068. deprecated="not deprecated">
  75069. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  75070. <param name="namedOutput" type="java.lang.String"/>
  75071. <param name="outputFormatClass" type="java.lang.Class"/>
  75072. <param name="keyClass" type="java.lang.Class"/>
  75073. <param name="valueClass" type="java.lang.Class"/>
  75074. <doc>
  75075. <![CDATA[Adds a named output for the job.
  75076. <p/>
  75077. @param job job to add the named output
  75078. @param namedOutput named output name, it has to be a word, letters
  75079. and numbers only, cannot be the word 'part' as
  75080. that is reserved for the default output.
  75081. @param outputFormatClass OutputFormat class.
  75082. @param keyClass key class
  75083. @param valueClass value class]]>
  75084. </doc>
  75085. </method>
  75086. <method name="setCountersEnabled"
  75087. abstract="false" native="false" synchronized="false"
  75088. static="true" final="false" visibility="public"
  75089. deprecated="not deprecated">
  75090. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  75091. <param name="enabled" type="boolean"/>
  75092. <doc>
  75093. <![CDATA[Enables or disables counters for the named outputs.
  75094. The counters group is the {@link MultipleOutputs} class name.
  75095. The names of the counters are the same as the named outputs. These
  75096. counters count the number records written to each output name.
  75097. By default these counters are disabled.
  75098. @param job job to enable counters
  75099. @param enabled indicates if the counters will be enabled or not.]]>
  75100. </doc>
  75101. </method>
  75102. <method name="getCountersEnabled" return="boolean"
  75103. abstract="false" native="false" synchronized="false"
  75104. static="true" final="false" visibility="public"
  75105. deprecated="not deprecated">
  75106. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  75107. <doc>
  75108. <![CDATA[Returns if the counters for the named outputs are enabled or not.
  75109. By default these counters are disabled.
  75110. @param job the job
  75111. @return TRUE if the counters are enabled, FALSE if they are disabled.]]>
  75112. </doc>
  75113. </method>
  75114. <method name="write"
  75115. abstract="false" native="false" synchronized="false"
  75116. static="false" final="false" visibility="public"
  75117. deprecated="not deprecated">
  75118. <param name="namedOutput" type="java.lang.String"/>
  75119. <param name="key" type="java.lang.Object"/>
  75120. <param name="value" type="java.lang.Object"/>
  75121. <exception name="IOException" type="java.io.IOException"/>
  75122. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  75123. <doc>
  75124. <![CDATA[Write key and value to the namedOutput.
  75125. Output path is a unique file generated for the namedOutput.
  75126. For example, {namedOutput}-(m|r)-{part-number}
  75127. @param namedOutput the named output name
  75128. @param key the key
  75129. @param value the value]]>
  75130. </doc>
  75131. </method>
  75132. <method name="write"
  75133. abstract="false" native="false" synchronized="false"
  75134. static="false" final="false" visibility="public"
  75135. deprecated="not deprecated">
  75136. <param name="namedOutput" type="java.lang.String"/>
  75137. <param name="key" type="java.lang.Object"/>
  75138. <param name="value" type="java.lang.Object"/>
  75139. <param name="baseOutputPath" type="java.lang.String"/>
  75140. <exception name="IOException" type="java.io.IOException"/>
  75141. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  75142. <doc>
  75143. <![CDATA[Write key and value to baseOutputPath using the namedOutput.
  75144. @param namedOutput the named output name
  75145. @param key the key
  75146. @param value the value
  75147. @param baseOutputPath base-output path to write the record to.
  75148. Note: Framework will generate unique filename for the baseOutputPath]]>
  75149. </doc>
  75150. </method>
  75151. <method name="write"
  75152. abstract="false" native="false" synchronized="false"
  75153. static="false" final="false" visibility="public"
  75154. deprecated="not deprecated">
  75155. <param name="key" type="java.lang.Object"/>
  75156. <param name="value" type="java.lang.Object"/>
  75157. <param name="baseOutputPath" type="java.lang.String"/>
  75158. <exception name="IOException" type="java.io.IOException"/>
  75159. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  75160. <doc>
  75161. <![CDATA[Write key value to an output file name.
  75162. Gets the record writer from job's output format.
  75163. Job's output format should be a FileOutputFormat.
  75164. @param key the key
  75165. @param value the value
  75166. @param baseOutputPath base-output path to write the record to.
  75167. Note: Framework will generate unique filename for the baseOutputPath]]>
  75168. </doc>
  75169. </method>
  75170. <method name="close"
  75171. abstract="false" native="false" synchronized="false"
  75172. static="false" final="false" visibility="public"
  75173. deprecated="not deprecated">
  75174. <exception name="IOException" type="java.io.IOException"/>
  75175. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  75176. <doc>
  75177. <![CDATA[Closes all the opened outputs.
  75178. This should be called from cleanup method of map/reduce task.
  75179. If overridden subclasses must invoke <code>super.close()</code> at the
  75180. end of their <code>close()</code>]]>
  75181. </doc>
  75182. </method>
  75183. <doc>
  75184. <![CDATA[The MultipleOutputs class simplifies writing output data
  75185. to multiple outputs
  75186. <p>
  75187. Case one: writing to additional outputs other than the job default output.
  75188. Each additional output, or named output, may be configured with its own
  75189. <code>OutputFormat</code>, with its own key class and with its own value
  75190. class.
  75191. <p>
  75192. Case two: to write data to different files provided by user
  75193. </p>
  75194. <p>
  75195. MultipleOutputs supports counters, by default they are disabled. The
  75196. counters group is the {@link MultipleOutputs} class name. The names of the
  75197. counters are the same as the output name. These count the number records
  75198. written to each output name.
  75199. </p>
  75200. Usage pattern for job submission:
  75201. <pre>
  75202. Job job = new Job();
  75203. FileInputFormat.setInputPath(job, inDir);
  75204. FileOutputFormat.setOutputPath(job, outDir);
  75205. job.setMapperClass(MOMap.class);
  75206. job.setReducerClass(MOReduce.class);
  75207. ...
  75208. // Defines additional single text based output 'text' for the job
  75209. MultipleOutputs.addNamedOutput(job, "text", TextOutputFormat.class,
  75210. LongWritable.class, Text.class);
  75211. // Defines additional sequence-file based output 'sequence' for the job
  75212. MultipleOutputs.addNamedOutput(job, "seq",
  75213. SequenceFileOutputFormat.class,
  75214. LongWritable.class, Text.class);
  75215. ...
  75216. job.waitForCompletion(true);
  75217. ...
  75218. </pre>
  75219. <p>
  75220. Usage in Reducer:
  75221. <pre>
  75222. <K, V> String generateFileName(K k, V v) {
  75223. return k.toString() + "_" + v.toString();
  75224. }
  75225. public class MOReduce extends
  75226. Reducer&lt;WritableComparable, Writable,WritableComparable, Writable&gt; {
  75227. private MultipleOutputs mos;
  75228. public void setup(Context context) {
  75229. ...
  75230. mos = new MultipleOutputs(context);
  75231. }
  75232. public void reduce(WritableComparable key, Iterator&lt;Writable&gt; values,
  75233. Context context)
  75234. throws IOException {
  75235. ...
  75236. mos.write("text", , key, new Text("Hello"));
  75237. mos.write("seq", LongWritable(1), new Text("Bye"), "seq_a");
  75238. mos.write("seq", LongWritable(2), key, new Text("Chau"), "seq_b");
  75239. mos.write(key, new Text("value"), generateFileName(key, new Text("value")));
  75240. ...
  75241. }
  75242. public void cleanup(Context) throws IOException {
  75243. mos.close();
  75244. ...
  75245. }
  75246. }
  75247. </pre>]]>
  75248. </doc>
  75249. </class>
  75250. <!-- end class org.apache.hadoop.mapreduce.lib.output.MultipleOutputs -->
  75251. <!-- start class org.apache.hadoop.mapreduce.lib.output.NullOutputFormat -->
  75252. <class name="NullOutputFormat" extends="org.apache.hadoop.mapreduce.OutputFormat"
  75253. abstract="false"
  75254. static="false" final="false" visibility="public"
  75255. deprecated="not deprecated">
  75256. <constructor name="NullOutputFormat"
  75257. static="false" final="false" visibility="public"
  75258. deprecated="not deprecated">
  75259. </constructor>
  75260. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  75261. abstract="false" native="false" synchronized="false"
  75262. static="false" final="false" visibility="public"
  75263. deprecated="not deprecated">
  75264. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  75265. </method>
  75266. <method name="checkOutputSpecs"
  75267. abstract="false" native="false" synchronized="false"
  75268. static="false" final="false" visibility="public"
  75269. deprecated="not deprecated">
  75270. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  75271. </method>
  75272. <method name="getOutputCommitter" return="org.apache.hadoop.mapreduce.OutputCommitter"
  75273. abstract="false" native="false" synchronized="false"
  75274. static="false" final="false" visibility="public"
  75275. deprecated="not deprecated">
  75276. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  75277. </method>
  75278. <doc>
  75279. <![CDATA[Consume all outputs and put them in /dev/null.]]>
  75280. </doc>
  75281. </class>
  75282. <!-- end class org.apache.hadoop.mapreduce.lib.output.NullOutputFormat -->
  75283. <!-- start class org.apache.hadoop.mapreduce.lib.output.SequenceFileAsBinaryOutputFormat -->
  75284. <class name="SequenceFileAsBinaryOutputFormat" extends="org.apache.hadoop.mapreduce.lib.output.SequenceFileOutputFormat"
  75285. abstract="false"
  75286. static="false" final="false" visibility="public"
  75287. deprecated="not deprecated">
  75288. <constructor name="SequenceFileAsBinaryOutputFormat"
  75289. static="false" final="false" visibility="public"
  75290. deprecated="not deprecated">
  75291. </constructor>
  75292. <method name="setSequenceFileOutputKeyClass"
  75293. abstract="false" native="false" synchronized="false"
  75294. static="true" final="false" visibility="public"
  75295. deprecated="not deprecated">
  75296. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  75297. <param name="theClass" type="java.lang.Class"/>
  75298. <doc>
  75299. <![CDATA[Set the key class for the {@link SequenceFile}
  75300. <p>This allows the user to specify the key class to be different
  75301. from the actual class ({@link BytesWritable}) used for writing </p>
  75302. @param job the {@link Job} to modify
  75303. @param theClass the SequenceFile output key class.]]>
  75304. </doc>
  75305. </method>
  75306. <method name="setSequenceFileOutputValueClass"
  75307. abstract="false" native="false" synchronized="false"
  75308. static="true" final="false" visibility="public"
  75309. deprecated="not deprecated">
  75310. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  75311. <param name="theClass" type="java.lang.Class"/>
  75312. <doc>
  75313. <![CDATA[Set the value class for the {@link SequenceFile}
  75314. <p>This allows the user to specify the value class to be different
  75315. from the actual class ({@link BytesWritable}) used for writing </p>
  75316. @param job the {@link Job} to modify
  75317. @param theClass the SequenceFile output key class.]]>
  75318. </doc>
  75319. </method>
  75320. <method name="getSequenceFileOutputKeyClass" return="java.lang.Class"
  75321. abstract="false" native="false" synchronized="false"
  75322. static="true" final="false" visibility="public"
  75323. deprecated="not deprecated">
  75324. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  75325. <doc>
  75326. <![CDATA[Get the key class for the {@link SequenceFile}
  75327. @return the key class of the {@link SequenceFile}]]>
  75328. </doc>
  75329. </method>
  75330. <method name="getSequenceFileOutputValueClass" return="java.lang.Class"
  75331. abstract="false" native="false" synchronized="false"
  75332. static="true" final="false" visibility="public"
  75333. deprecated="not deprecated">
  75334. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  75335. <doc>
  75336. <![CDATA[Get the value class for the {@link SequenceFile}
  75337. @return the value class of the {@link SequenceFile}]]>
  75338. </doc>
  75339. </method>
  75340. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  75341. abstract="false" native="false" synchronized="false"
  75342. static="false" final="false" visibility="public"
  75343. deprecated="not deprecated">
  75344. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  75345. <exception name="IOException" type="java.io.IOException"/>
  75346. </method>
  75347. <method name="getSequenceWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  75348. abstract="false" native="false" synchronized="false"
  75349. static="false" final="false" visibility="protected"
  75350. deprecated="not deprecated">
  75351. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  75352. <param name="keyClass" type="java.lang.Class"/>
  75353. <param name="valueClass" type="java.lang.Class"/>
  75354. <exception name="IOException" type="java.io.IOException"/>
  75355. </method>
  75356. <method name="checkOutputSpecs"
  75357. abstract="false" native="false" synchronized="false"
  75358. static="false" final="false" visibility="public"
  75359. deprecated="not deprecated">
  75360. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  75361. <exception name="IOException" type="java.io.IOException"/>
  75362. </method>
  75363. <field name="KEY_CLASS" type="java.lang.String"
  75364. transient="false" volatile="false"
  75365. static="true" final="false" visibility="public"
  75366. deprecated="not deprecated">
  75367. </field>
  75368. <field name="VALUE_CLASS" type="java.lang.String"
  75369. transient="false" volatile="false"
  75370. static="true" final="false" visibility="public"
  75371. deprecated="not deprecated">
  75372. </field>
  75373. <doc>
  75374. <![CDATA[An {@link org.apache.hadoop.mapreduce.OutputFormat} that writes keys,
  75375. values to {@link SequenceFile}s in binary(raw) format]]>
  75376. </doc>
  75377. </class>
  75378. <!-- end class org.apache.hadoop.mapreduce.lib.output.SequenceFileAsBinaryOutputFormat -->
  75379. <!-- start class org.apache.hadoop.mapreduce.lib.output.SequenceFileAsBinaryOutputFormat.WritableValueBytes -->
  75380. <class name="SequenceFileAsBinaryOutputFormat.WritableValueBytes" extends="java.lang.Object"
  75381. abstract="false"
  75382. static="true" final="false" visibility="public"
  75383. deprecated="not deprecated">
  75384. <implements name="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  75385. <constructor name="SequenceFileAsBinaryOutputFormat.WritableValueBytes"
  75386. static="false" final="false" visibility="public"
  75387. deprecated="not deprecated">
  75388. </constructor>
  75389. <constructor name="SequenceFileAsBinaryOutputFormat.WritableValueBytes" type="org.apache.hadoop.io.BytesWritable"
  75390. static="false" final="false" visibility="public"
  75391. deprecated="not deprecated">
  75392. </constructor>
  75393. <method name="reset"
  75394. abstract="false" native="false" synchronized="false"
  75395. static="false" final="false" visibility="public"
  75396. deprecated="not deprecated">
  75397. <param name="value" type="org.apache.hadoop.io.BytesWritable"/>
  75398. </method>
  75399. <method name="writeUncompressedBytes"
  75400. abstract="false" native="false" synchronized="false"
  75401. static="false" final="false" visibility="public"
  75402. deprecated="not deprecated">
  75403. <param name="outStream" type="java.io.DataOutputStream"/>
  75404. <exception name="IOException" type="java.io.IOException"/>
  75405. </method>
  75406. <method name="writeCompressedBytes"
  75407. abstract="false" native="false" synchronized="false"
  75408. static="false" final="false" visibility="public"
  75409. deprecated="not deprecated">
  75410. <param name="outStream" type="java.io.DataOutputStream"/>
  75411. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  75412. <exception name="IOException" type="java.io.IOException"/>
  75413. </method>
  75414. <method name="getSize" return="int"
  75415. abstract="false" native="false" synchronized="false"
  75416. static="false" final="false" visibility="public"
  75417. deprecated="not deprecated">
  75418. </method>
  75419. <doc>
  75420. <![CDATA[Inner class used for appendRaw]]>
  75421. </doc>
  75422. </class>
  75423. <!-- end class org.apache.hadoop.mapreduce.lib.output.SequenceFileAsBinaryOutputFormat.WritableValueBytes -->
  75424. <!-- start class org.apache.hadoop.mapreduce.lib.output.SequenceFileOutputFormat -->
  75425. <class name="SequenceFileOutputFormat" extends="org.apache.hadoop.mapreduce.lib.output.FileOutputFormat"
  75426. abstract="false"
  75427. static="false" final="false" visibility="public"
  75428. deprecated="not deprecated">
  75429. <constructor name="SequenceFileOutputFormat"
  75430. static="false" final="false" visibility="public"
  75431. deprecated="not deprecated">
  75432. </constructor>
  75433. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  75434. abstract="false" native="false" synchronized="false"
  75435. static="false" final="false" visibility="public"
  75436. deprecated="not deprecated">
  75437. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  75438. <exception name="IOException" type="java.io.IOException"/>
  75439. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  75440. </method>
  75441. <method name="getOutputCompressionType" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  75442. abstract="false" native="false" synchronized="false"
  75443. static="true" final="false" visibility="public"
  75444. deprecated="not deprecated">
  75445. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  75446. <doc>
  75447. <![CDATA[Get the {@link CompressionType} for the output {@link SequenceFile}.
  75448. @param job the {@link Job}
  75449. @return the {@link CompressionType} for the output {@link SequenceFile},
  75450. defaulting to {@link CompressionType#RECORD}]]>
  75451. </doc>
  75452. </method>
  75453. <method name="setOutputCompressionType"
  75454. abstract="false" native="false" synchronized="false"
  75455. static="true" final="false" visibility="public"
  75456. deprecated="not deprecated">
  75457. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  75458. <param name="style" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  75459. <doc>
  75460. <![CDATA[Set the {@link CompressionType} for the output {@link SequenceFile}.
  75461. @param job the {@link Job} to modify
  75462. @param style the {@link CompressionType} for the output
  75463. {@link SequenceFile}]]>
  75464. </doc>
  75465. </method>
  75466. <doc>
  75467. <![CDATA[An {@link OutputFormat} that writes {@link SequenceFile}s.]]>
  75468. </doc>
  75469. </class>
  75470. <!-- end class org.apache.hadoop.mapreduce.lib.output.SequenceFileOutputFormat -->
  75471. <!-- start class org.apache.hadoop.mapreduce.lib.output.TextOutputFormat -->
  75472. <class name="TextOutputFormat" extends="org.apache.hadoop.mapreduce.lib.output.FileOutputFormat"
  75473. abstract="false"
  75474. static="false" final="false" visibility="public"
  75475. deprecated="not deprecated">
  75476. <constructor name="TextOutputFormat"
  75477. static="false" final="false" visibility="public"
  75478. deprecated="not deprecated">
  75479. </constructor>
  75480. <method name="getRecordWriter" return="org.apache.hadoop.mapreduce.RecordWriter"
  75481. abstract="false" native="false" synchronized="false"
  75482. static="false" final="false" visibility="public"
  75483. deprecated="not deprecated">
  75484. <param name="job" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  75485. <exception name="IOException" type="java.io.IOException"/>
  75486. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  75487. </method>
  75488. <doc>
  75489. <![CDATA[An {@link OutputFormat} that writes plain text files.]]>
  75490. </doc>
  75491. </class>
  75492. <!-- end class org.apache.hadoop.mapreduce.lib.output.TextOutputFormat -->
  75493. <!-- start class org.apache.hadoop.mapreduce.lib.output.TextOutputFormat.LineRecordWriter -->
  75494. <class name="TextOutputFormat.LineRecordWriter" extends="org.apache.hadoop.mapreduce.RecordWriter"
  75495. abstract="false"
  75496. static="true" final="false" visibility="protected"
  75497. deprecated="not deprecated">
  75498. <constructor name="TextOutputFormat.LineRecordWriter" type="java.io.DataOutputStream, java.lang.String"
  75499. static="false" final="false" visibility="public"
  75500. deprecated="not deprecated">
  75501. </constructor>
  75502. <constructor name="TextOutputFormat.LineRecordWriter" type="java.io.DataOutputStream"
  75503. static="false" final="false" visibility="public"
  75504. deprecated="not deprecated">
  75505. </constructor>
  75506. <method name="write"
  75507. abstract="false" native="false" synchronized="true"
  75508. static="false" final="false" visibility="public"
  75509. deprecated="not deprecated">
  75510. <param name="key" type="java.lang.Object"/>
  75511. <param name="value" type="java.lang.Object"/>
  75512. <exception name="IOException" type="java.io.IOException"/>
  75513. </method>
  75514. <method name="close"
  75515. abstract="false" native="false" synchronized="true"
  75516. static="false" final="false" visibility="public"
  75517. deprecated="not deprecated">
  75518. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  75519. <exception name="IOException" type="java.io.IOException"/>
  75520. </method>
  75521. <field name="out" type="java.io.DataOutputStream"
  75522. transient="false" volatile="false"
  75523. static="false" final="false" visibility="protected"
  75524. deprecated="not deprecated">
  75525. </field>
  75526. </class>
  75527. <!-- end class org.apache.hadoop.mapreduce.lib.output.TextOutputFormat.LineRecordWriter -->
  75528. </package>
  75529. <package name="org.apache.hadoop.mapreduce.lib.partition">
  75530. <!-- start class org.apache.hadoop.mapreduce.lib.partition.BinaryPartitioner -->
  75531. <class name="BinaryPartitioner" extends="org.apache.hadoop.mapreduce.Partitioner"
  75532. abstract="false"
  75533. static="false" final="false" visibility="public"
  75534. deprecated="not deprecated">
  75535. <implements name="org.apache.hadoop.conf.Configurable"/>
  75536. <constructor name="BinaryPartitioner"
  75537. static="false" final="false" visibility="public"
  75538. deprecated="not deprecated">
  75539. </constructor>
  75540. <method name="setOffsets"
  75541. abstract="false" native="false" synchronized="false"
  75542. static="true" final="false" visibility="public"
  75543. deprecated="not deprecated">
  75544. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  75545. <param name="left" type="int"/>
  75546. <param name="right" type="int"/>
  75547. <doc>
  75548. <![CDATA[Set the subarray to be used for partitioning to
  75549. <code>bytes[left:(right+1)]</code> in Python syntax.
  75550. @param conf configuration object
  75551. @param left left Python-style offset
  75552. @param right right Python-style offset]]>
  75553. </doc>
  75554. </method>
  75555. <method name="setLeftOffset"
  75556. abstract="false" native="false" synchronized="false"
  75557. static="true" final="false" visibility="public"
  75558. deprecated="not deprecated">
  75559. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  75560. <param name="offset" type="int"/>
  75561. <doc>
  75562. <![CDATA[Set the subarray to be used for partitioning to
  75563. <code>bytes[offset:]</code> in Python syntax.
  75564. @param conf configuration object
  75565. @param offset left Python-style offset]]>
  75566. </doc>
  75567. </method>
  75568. <method name="setRightOffset"
  75569. abstract="false" native="false" synchronized="false"
  75570. static="true" final="false" visibility="public"
  75571. deprecated="not deprecated">
  75572. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  75573. <param name="offset" type="int"/>
  75574. <doc>
  75575. <![CDATA[Set the subarray to be used for partitioning to
  75576. <code>bytes[:(offset+1)]</code> in Python syntax.
  75577. @param conf configuration object
  75578. @param offset right Python-style offset]]>
  75579. </doc>
  75580. </method>
  75581. <method name="setConf"
  75582. abstract="false" native="false" synchronized="false"
  75583. static="false" final="false" visibility="public"
  75584. deprecated="not deprecated">
  75585. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  75586. </method>
  75587. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  75588. abstract="false" native="false" synchronized="false"
  75589. static="false" final="false" visibility="public"
  75590. deprecated="not deprecated">
  75591. </method>
  75592. <method name="getPartition" return="int"
  75593. abstract="false" native="false" synchronized="false"
  75594. static="false" final="false" visibility="public"
  75595. deprecated="not deprecated">
  75596. <param name="key" type="org.apache.hadoop.io.BinaryComparable"/>
  75597. <param name="value" type="java.lang.Object"/>
  75598. <param name="numPartitions" type="int"/>
  75599. <doc>
  75600. <![CDATA[Use (the specified slice of the array returned by)
  75601. {@link BinaryComparable#getBytes()} to partition.]]>
  75602. </doc>
  75603. </method>
  75604. <doc>
  75605. <![CDATA[<p>Partition {@link BinaryComparable} keys using a configurable part of
  75606. the bytes array returned by {@link BinaryComparable#getBytes()}.</p>
  75607. <p>The subarray to be used for the partitioning can be defined by means
  75608. of the following properties:
  75609. <ul>
  75610. <li>
  75611. <i>mapred.binary.partitioner.left.offset</i>:
  75612. left offset in array (0 by default)
  75613. </li>
  75614. <li>
  75615. <i>mapred.binary.partitioner.right.offset</i>:
  75616. right offset in array (-1 by default)
  75617. </li>
  75618. </ul>
  75619. Like in Python, both negative and positive offsets are allowed, but
  75620. the meaning is slightly different. In case of an array of length 5,
  75621. for instance, the possible offsets are:
  75622. <pre><code>
  75623. +---+---+---+---+---+
  75624. | B | B | B | B | B |
  75625. +---+---+---+---+---+
  75626. 0 1 2 3 4
  75627. -5 -4 -3 -2 -1
  75628. </code></pre>
  75629. The first row of numbers gives the position of the offsets 0...5 in
  75630. the array; the second row gives the corresponding negative offsets.
  75631. Contrary to Python, the specified subarray has byte <code>i</code>
  75632. and <code>j</code> as first and last element, repectively, when
  75633. <code>i</code> and <code>j</code> are the left and right offset.
  75634. <p>For Hadoop programs written in Java, it is advisable to use one of
  75635. the following static convenience methods for setting the offsets:
  75636. <ul>
  75637. <li>{@link #setOffsets}</li>
  75638. <li>{@link #setLeftOffset}</li>
  75639. <li>{@link #setRightOffset}</li>
  75640. </ul></p>]]>
  75641. </doc>
  75642. </class>
  75643. <!-- end class org.apache.hadoop.mapreduce.lib.partition.BinaryPartitioner -->
  75644. <!-- start class org.apache.hadoop.mapreduce.lib.partition.HashPartitioner -->
  75645. <class name="HashPartitioner" extends="org.apache.hadoop.mapreduce.Partitioner"
  75646. abstract="false"
  75647. static="false" final="false" visibility="public"
  75648. deprecated="not deprecated">
  75649. <constructor name="HashPartitioner"
  75650. static="false" final="false" visibility="public"
  75651. deprecated="not deprecated">
  75652. </constructor>
  75653. <method name="getPartition" return="int"
  75654. abstract="false" native="false" synchronized="false"
  75655. static="false" final="false" visibility="public"
  75656. deprecated="not deprecated">
  75657. <param name="key" type="java.lang.Object"/>
  75658. <param name="value" type="java.lang.Object"/>
  75659. <param name="numReduceTasks" type="int"/>
  75660. <doc>
  75661. <![CDATA[Use {@link Object#hashCode()} to partition.]]>
  75662. </doc>
  75663. </method>
  75664. <doc>
  75665. <![CDATA[Partition keys by their {@link Object#hashCode()}.]]>
  75666. </doc>
  75667. </class>
  75668. <!-- end class org.apache.hadoop.mapreduce.lib.partition.HashPartitioner -->
  75669. <!-- start class org.apache.hadoop.mapreduce.lib.partition.InputSampler -->
  75670. <class name="InputSampler" extends="org.apache.hadoop.conf.Configured"
  75671. abstract="false"
  75672. static="false" final="false" visibility="public"
  75673. deprecated="not deprecated">
  75674. <implements name="org.apache.hadoop.util.Tool"/>
  75675. <constructor name="InputSampler" type="org.apache.hadoop.conf.Configuration"
  75676. static="false" final="false" visibility="public"
  75677. deprecated="not deprecated">
  75678. </constructor>
  75679. <method name="writePartitionFile"
  75680. abstract="false" native="false" synchronized="false"
  75681. static="true" final="false" visibility="public"
  75682. deprecated="not deprecated">
  75683. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  75684. <param name="sampler" type="org.apache.hadoop.mapreduce.lib.partition.InputSampler.Sampler"/>
  75685. <exception name="IOException" type="java.io.IOException"/>
  75686. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  75687. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  75688. <doc>
  75689. <![CDATA[Write a partition file for the given job, using the Sampler provided.
  75690. Queries the sampler for a sample keyset, sorts by the output key
  75691. comparator, selects the keys for each rank, and writes to the destination
  75692. returned from {@link TotalOrderPartitioner#getPartitionFile}.]]>
  75693. </doc>
  75694. </method>
  75695. <method name="run" return="int"
  75696. abstract="false" native="false" synchronized="false"
  75697. static="false" final="false" visibility="public"
  75698. deprecated="not deprecated">
  75699. <param name="args" type="java.lang.String[]"/>
  75700. <exception name="Exception" type="java.lang.Exception"/>
  75701. <doc>
  75702. <![CDATA[Driver for InputSampler from the command line.
  75703. Configures a JobConf instance and calls {@link #writePartitionFile}.]]>
  75704. </doc>
  75705. </method>
  75706. <method name="main"
  75707. abstract="false" native="false" synchronized="false"
  75708. static="true" final="false" visibility="public"
  75709. deprecated="not deprecated">
  75710. <param name="args" type="java.lang.String[]"/>
  75711. <exception name="Exception" type="java.lang.Exception"/>
  75712. </method>
  75713. <doc>
  75714. <![CDATA[Utility for collecting samples and writing a partition file for
  75715. {@link TotalOrderPartitioner}.]]>
  75716. </doc>
  75717. </class>
  75718. <!-- end class org.apache.hadoop.mapreduce.lib.partition.InputSampler -->
  75719. <!-- start class org.apache.hadoop.mapreduce.lib.partition.InputSampler.IntervalSampler -->
  75720. <class name="InputSampler.IntervalSampler" extends="java.lang.Object"
  75721. abstract="false"
  75722. static="true" final="false" visibility="public"
  75723. deprecated="not deprecated">
  75724. <implements name="org.apache.hadoop.mapreduce.lib.partition.InputSampler.Sampler"/>
  75725. <constructor name="InputSampler.IntervalSampler" type="double"
  75726. static="false" final="false" visibility="public"
  75727. deprecated="not deprecated">
  75728. <doc>
  75729. <![CDATA[Create a new IntervalSampler sampling <em>all</em> splits.
  75730. @param freq The frequency with which records will be emitted.]]>
  75731. </doc>
  75732. </constructor>
  75733. <constructor name="InputSampler.IntervalSampler" type="double, int"
  75734. static="false" final="false" visibility="public"
  75735. deprecated="not deprecated">
  75736. <doc>
  75737. <![CDATA[Create a new IntervalSampler.
  75738. @param freq The frequency with which records will be emitted.
  75739. @param maxSplitsSampled The maximum number of splits to examine.
  75740. @see #getSample]]>
  75741. </doc>
  75742. </constructor>
  75743. <method name="getSample" return="java.lang.Object[]"
  75744. abstract="false" native="false" synchronized="false"
  75745. static="false" final="false" visibility="public"
  75746. deprecated="not deprecated">
  75747. <param name="inf" type="org.apache.hadoop.mapreduce.InputFormat"/>
  75748. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  75749. <exception name="IOException" type="java.io.IOException"/>
  75750. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  75751. <doc>
  75752. <![CDATA[For each split sampled, emit when the ratio of the number of records
  75753. retained to the total record count is less than the specified
  75754. frequency.]]>
  75755. </doc>
  75756. </method>
  75757. <doc>
  75758. <![CDATA[Sample from s splits at regular intervals.
  75759. Useful for sorted data.]]>
  75760. </doc>
  75761. </class>
  75762. <!-- end class org.apache.hadoop.mapreduce.lib.partition.InputSampler.IntervalSampler -->
  75763. <!-- start class org.apache.hadoop.mapreduce.lib.partition.InputSampler.RandomSampler -->
  75764. <class name="InputSampler.RandomSampler" extends="java.lang.Object"
  75765. abstract="false"
  75766. static="true" final="false" visibility="public"
  75767. deprecated="not deprecated">
  75768. <implements name="org.apache.hadoop.mapreduce.lib.partition.InputSampler.Sampler"/>
  75769. <constructor name="InputSampler.RandomSampler" type="double, int"
  75770. static="false" final="false" visibility="public"
  75771. deprecated="not deprecated">
  75772. <doc>
  75773. <![CDATA[Create a new RandomSampler sampling <em>all</em> splits.
  75774. This will read every split at the client, which is very expensive.
  75775. @param freq Probability with which a key will be chosen.
  75776. @param numSamples Total number of samples to obtain from all selected
  75777. splits.]]>
  75778. </doc>
  75779. </constructor>
  75780. <constructor name="InputSampler.RandomSampler" type="double, int, int"
  75781. static="false" final="false" visibility="public"
  75782. deprecated="not deprecated">
  75783. <doc>
  75784. <![CDATA[Create a new RandomSampler.
  75785. @param freq Probability with which a key will be chosen.
  75786. @param numSamples Total number of samples to obtain from all selected
  75787. splits.
  75788. @param maxSplitsSampled The maximum number of splits to examine.]]>
  75789. </doc>
  75790. </constructor>
  75791. <method name="getSample" return="java.lang.Object[]"
  75792. abstract="false" native="false" synchronized="false"
  75793. static="false" final="false" visibility="public"
  75794. deprecated="not deprecated">
  75795. <param name="inf" type="org.apache.hadoop.mapreduce.InputFormat"/>
  75796. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  75797. <exception name="IOException" type="java.io.IOException"/>
  75798. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  75799. <doc>
  75800. <![CDATA[Randomize the split order, then take the specified number of keys from
  75801. each split sampled, where each key is selected with the specified
  75802. probability and possibly replaced by a subsequently selected key when
  75803. the quota of keys from that split is satisfied.]]>
  75804. </doc>
  75805. </method>
  75806. <doc>
  75807. <![CDATA[Sample from random points in the input.
  75808. General-purpose sampler. Takes numSamples / maxSplitsSampled inputs from
  75809. each split.]]>
  75810. </doc>
  75811. </class>
  75812. <!-- end class org.apache.hadoop.mapreduce.lib.partition.InputSampler.RandomSampler -->
  75813. <!-- start interface org.apache.hadoop.mapreduce.lib.partition.InputSampler.Sampler -->
  75814. <interface name="InputSampler.Sampler" abstract="true"
  75815. static="true" final="false" visibility="public"
  75816. deprecated="not deprecated">
  75817. <method name="getSample" return="java.lang.Object[]"
  75818. abstract="false" native="false" synchronized="false"
  75819. static="false" final="false" visibility="public"
  75820. deprecated="not deprecated">
  75821. <param name="inf" type="org.apache.hadoop.mapreduce.InputFormat"/>
  75822. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  75823. <exception name="IOException" type="java.io.IOException"/>
  75824. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  75825. <doc>
  75826. <![CDATA[For a given job, collect and return a subset of the keys from the
  75827. input data.]]>
  75828. </doc>
  75829. </method>
  75830. <doc>
  75831. <![CDATA[Interface to sample using an
  75832. {@link org.apache.hadoop.mapreduce.InputFormat}.]]>
  75833. </doc>
  75834. </interface>
  75835. <!-- end interface org.apache.hadoop.mapreduce.lib.partition.InputSampler.Sampler -->
  75836. <!-- start class org.apache.hadoop.mapreduce.lib.partition.InputSampler.SplitSampler -->
  75837. <class name="InputSampler.SplitSampler" extends="java.lang.Object"
  75838. abstract="false"
  75839. static="true" final="false" visibility="public"
  75840. deprecated="not deprecated">
  75841. <implements name="org.apache.hadoop.mapreduce.lib.partition.InputSampler.Sampler"/>
  75842. <constructor name="InputSampler.SplitSampler" type="int"
  75843. static="false" final="false" visibility="public"
  75844. deprecated="not deprecated">
  75845. <doc>
  75846. <![CDATA[Create a SplitSampler sampling <em>all</em> splits.
  75847. Takes the first numSamples / numSplits records from each split.
  75848. @param numSamples Total number of samples to obtain from all selected
  75849. splits.]]>
  75850. </doc>
  75851. </constructor>
  75852. <constructor name="InputSampler.SplitSampler" type="int, int"
  75853. static="false" final="false" visibility="public"
  75854. deprecated="not deprecated">
  75855. <doc>
  75856. <![CDATA[Create a new SplitSampler.
  75857. @param numSamples Total number of samples to obtain from all selected
  75858. splits.
  75859. @param maxSplitsSampled The maximum number of splits to examine.]]>
  75860. </doc>
  75861. </constructor>
  75862. <method name="getSample" return="java.lang.Object[]"
  75863. abstract="false" native="false" synchronized="false"
  75864. static="false" final="false" visibility="public"
  75865. deprecated="not deprecated">
  75866. <param name="inf" type="org.apache.hadoop.mapreduce.InputFormat"/>
  75867. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  75868. <exception name="IOException" type="java.io.IOException"/>
  75869. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  75870. <doc>
  75871. <![CDATA[From each split sampled, take the first numSamples / numSplits records.]]>
  75872. </doc>
  75873. </method>
  75874. <doc>
  75875. <![CDATA[Samples the first n records from s splits.
  75876. Inexpensive way to sample random data.]]>
  75877. </doc>
  75878. </class>
  75879. <!-- end class org.apache.hadoop.mapreduce.lib.partition.InputSampler.SplitSampler -->
  75880. <!-- start class org.apache.hadoop.mapreduce.lib.partition.KeyFieldBasedComparator -->
  75881. <class name="KeyFieldBasedComparator" extends="org.apache.hadoop.io.WritableComparator"
  75882. abstract="false"
  75883. static="false" final="false" visibility="public"
  75884. deprecated="not deprecated">
  75885. <implements name="org.apache.hadoop.conf.Configurable"/>
  75886. <constructor name="KeyFieldBasedComparator"
  75887. static="false" final="false" visibility="public"
  75888. deprecated="not deprecated">
  75889. </constructor>
  75890. <method name="setConf"
  75891. abstract="false" native="false" synchronized="false"
  75892. static="false" final="false" visibility="public"
  75893. deprecated="not deprecated">
  75894. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  75895. </method>
  75896. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  75897. abstract="false" native="false" synchronized="false"
  75898. static="false" final="false" visibility="public"
  75899. deprecated="not deprecated">
  75900. </method>
  75901. <method name="compare" return="int"
  75902. abstract="false" native="false" synchronized="false"
  75903. static="false" final="false" visibility="public"
  75904. deprecated="not deprecated">
  75905. <param name="b1" type="byte[]"/>
  75906. <param name="s1" type="int"/>
  75907. <param name="l1" type="int"/>
  75908. <param name="b2" type="byte[]"/>
  75909. <param name="s2" type="int"/>
  75910. <param name="l2" type="int"/>
  75911. </method>
  75912. <method name="setKeyFieldComparatorOptions"
  75913. abstract="false" native="false" synchronized="false"
  75914. static="true" final="false" visibility="public"
  75915. deprecated="not deprecated">
  75916. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  75917. <param name="keySpec" type="java.lang.String"/>
  75918. <doc>
  75919. <![CDATA[Set the {@link KeyFieldBasedComparator} options used to compare keys.
  75920. @param keySpec the key specification of the form -k pos1[,pos2], where,
  75921. pos is of the form f[.c][opts], where f is the number
  75922. of the key field to use, and c is the number of the first character from
  75923. the beginning of the field. Fields and character posns are numbered
  75924. starting with 1; a character position of zero in pos2 indicates the
  75925. field's last character. If '.c' is omitted from pos1, it defaults to 1
  75926. (the beginning of the field); if omitted from pos2, it defaults to 0
  75927. (the end of the field). opts are ordering options. The supported options
  75928. are:
  75929. -n, (Sort numerically)
  75930. -r, (Reverse the result of comparison)]]>
  75931. </doc>
  75932. </method>
  75933. <method name="getKeyFieldComparatorOption" return="java.lang.String"
  75934. abstract="false" native="false" synchronized="false"
  75935. static="true" final="false" visibility="public"
  75936. deprecated="not deprecated">
  75937. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  75938. <doc>
  75939. <![CDATA[Get the {@link KeyFieldBasedComparator} options]]>
  75940. </doc>
  75941. </method>
  75942. <field name="COMPARATOR_OPTIONS" type="java.lang.String"
  75943. transient="false" volatile="false"
  75944. static="true" final="false" visibility="public"
  75945. deprecated="not deprecated">
  75946. </field>
  75947. <doc>
  75948. <![CDATA[This comparator implementation provides a subset of the features provided
  75949. by the Unix/GNU Sort. In particular, the supported features are:
  75950. -n, (Sort numerically)
  75951. -r, (Reverse the result of comparison)
  75952. -k pos1[,pos2], where pos is of the form f[.c][opts], where f is the number
  75953. of the field to use, and c is the number of the first character from the
  75954. beginning of the field. Fields and character posns are numbered starting
  75955. with 1; a character position of zero in pos2 indicates the field's last
  75956. character. If '.c' is omitted from pos1, it defaults to 1 (the beginning
  75957. of the field); if omitted from pos2, it defaults to 0 (the end of the
  75958. field). opts are ordering options (any of 'nr' as described above).
  75959. We assume that the fields in the key are separated by
  75960. mapreduce.map.output.key.field.separator.]]>
  75961. </doc>
  75962. </class>
  75963. <!-- end class org.apache.hadoop.mapreduce.lib.partition.KeyFieldBasedComparator -->
  75964. <!-- start class org.apache.hadoop.mapreduce.lib.partition.KeyFieldBasedPartitioner -->
  75965. <class name="KeyFieldBasedPartitioner" extends="org.apache.hadoop.mapreduce.Partitioner"
  75966. abstract="false"
  75967. static="false" final="false" visibility="public"
  75968. deprecated="not deprecated">
  75969. <implements name="org.apache.hadoop.conf.Configurable"/>
  75970. <constructor name="KeyFieldBasedPartitioner"
  75971. static="false" final="false" visibility="public"
  75972. deprecated="not deprecated">
  75973. </constructor>
  75974. <method name="setConf"
  75975. abstract="false" native="false" synchronized="false"
  75976. static="false" final="false" visibility="public"
  75977. deprecated="not deprecated">
  75978. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  75979. </method>
  75980. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  75981. abstract="false" native="false" synchronized="false"
  75982. static="false" final="false" visibility="public"
  75983. deprecated="not deprecated">
  75984. </method>
  75985. <method name="getPartition" return="int"
  75986. abstract="false" native="false" synchronized="false"
  75987. static="false" final="false" visibility="public"
  75988. deprecated="not deprecated">
  75989. <param name="key" type="java.lang.Object"/>
  75990. <param name="value" type="java.lang.Object"/>
  75991. <param name="numReduceTasks" type="int"/>
  75992. </method>
  75993. <method name="hashCode" return="int"
  75994. abstract="false" native="false" synchronized="false"
  75995. static="false" final="false" visibility="protected"
  75996. deprecated="not deprecated">
  75997. <param name="b" type="byte[]"/>
  75998. <param name="start" type="int"/>
  75999. <param name="end" type="int"/>
  76000. <param name="currentHash" type="int"/>
  76001. </method>
  76002. <method name="getPartition" return="int"
  76003. abstract="false" native="false" synchronized="false"
  76004. static="false" final="false" visibility="protected"
  76005. deprecated="not deprecated">
  76006. <param name="hash" type="int"/>
  76007. <param name="numReduceTasks" type="int"/>
  76008. </method>
  76009. <method name="setKeyFieldPartitionerOptions"
  76010. abstract="false" native="false" synchronized="false"
  76011. static="false" final="false" visibility="public"
  76012. deprecated="not deprecated">
  76013. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  76014. <param name="keySpec" type="java.lang.String"/>
  76015. <doc>
  76016. <![CDATA[Set the {@link KeyFieldBasedPartitioner} options used for
  76017. {@link Partitioner}
  76018. @param keySpec the key specification of the form -k pos1[,pos2], where,
  76019. pos is of the form f[.c][opts], where f is the number
  76020. of the key field to use, and c is the number of the first character from
  76021. the beginning of the field. Fields and character posns are numbered
  76022. starting with 1; a character position of zero in pos2 indicates the
  76023. field's last character. If '.c' is omitted from pos1, it defaults to 1
  76024. (the beginning of the field); if omitted from pos2, it defaults to 0
  76025. (the end of the field).]]>
  76026. </doc>
  76027. </method>
  76028. <method name="getKeyFieldPartitionerOption" return="java.lang.String"
  76029. abstract="false" native="false" synchronized="false"
  76030. static="false" final="false" visibility="public"
  76031. deprecated="not deprecated">
  76032. <param name="job" type="org.apache.hadoop.mapreduce.JobContext"/>
  76033. <doc>
  76034. <![CDATA[Get the {@link KeyFieldBasedPartitioner} options]]>
  76035. </doc>
  76036. </method>
  76037. <field name="PARTITIONER_OPTIONS" type="java.lang.String"
  76038. transient="false" volatile="false"
  76039. static="true" final="false" visibility="public"
  76040. deprecated="not deprecated">
  76041. </field>
  76042. <doc>
  76043. <![CDATA[Defines a way to partition keys based on certain key fields (also see
  76044. {@link KeyFieldBasedComparator}.
  76045. The key specification supported is of the form -k pos1[,pos2], where,
  76046. pos is of the form f[.c][opts], where f is the number
  76047. of the key field to use, and c is the number of the first character from
  76048. the beginning of the field. Fields and character posns are numbered
  76049. starting with 1; a character position of zero in pos2 indicates the
  76050. field's last character. If '.c' is omitted from pos1, it defaults to 1
  76051. (the beginning of the field); if omitted from pos2, it defaults to 0
  76052. (the end of the field).]]>
  76053. </doc>
  76054. </class>
  76055. <!-- end class org.apache.hadoop.mapreduce.lib.partition.KeyFieldBasedPartitioner -->
  76056. <!-- start class org.apache.hadoop.mapreduce.lib.partition.TotalOrderPartitioner -->
  76057. <class name="TotalOrderPartitioner" extends="org.apache.hadoop.mapreduce.Partitioner"
  76058. abstract="false"
  76059. static="false" final="false" visibility="public"
  76060. deprecated="not deprecated">
  76061. <implements name="org.apache.hadoop.conf.Configurable"/>
  76062. <constructor name="TotalOrderPartitioner"
  76063. static="false" final="false" visibility="public"
  76064. deprecated="not deprecated">
  76065. </constructor>
  76066. <method name="setConf"
  76067. abstract="false" native="false" synchronized="false"
  76068. static="false" final="false" visibility="public"
  76069. deprecated="not deprecated">
  76070. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  76071. <doc>
  76072. <![CDATA[Read in the partition file and build indexing data structures.
  76073. If the keytype is {@link org.apache.hadoop.io.BinaryComparable} and
  76074. <tt>total.order.partitioner.natural.order</tt> is not false, a trie
  76075. of the first <tt>total.order.partitioner.max.trie.depth</tt>(2) + 1 bytes
  76076. will be built. Otherwise, keys will be located using a binary search of
  76077. the partition keyset using the {@link org.apache.hadoop.io.RawComparator}
  76078. defined for this job. The input file must be sorted with the same
  76079. comparator and contain {@link Job#getNumReduceTasks()} - 1 keys.]]>
  76080. </doc>
  76081. </method>
  76082. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  76083. abstract="false" native="false" synchronized="false"
  76084. static="false" final="false" visibility="public"
  76085. deprecated="not deprecated">
  76086. </method>
  76087. <method name="getPartition" return="int"
  76088. abstract="false" native="false" synchronized="false"
  76089. static="false" final="false" visibility="public"
  76090. deprecated="not deprecated">
  76091. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  76092. <param name="value" type="java.lang.Object"/>
  76093. <param name="numPartitions" type="int"/>
  76094. </method>
  76095. <method name="setPartitionFile"
  76096. abstract="false" native="false" synchronized="false"
  76097. static="true" final="false" visibility="public"
  76098. deprecated="not deprecated">
  76099. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  76100. <param name="p" type="org.apache.hadoop.fs.Path"/>
  76101. <doc>
  76102. <![CDATA[Set the path to the SequenceFile storing the sorted partition keyset.
  76103. It must be the case that for <tt>R</tt> reduces, there are <tt>R-1</tt>
  76104. keys in the SequenceFile.]]>
  76105. </doc>
  76106. </method>
  76107. <method name="getPartitionFile" return="java.lang.String"
  76108. abstract="false" native="false" synchronized="false"
  76109. static="true" final="false" visibility="public"
  76110. deprecated="not deprecated">
  76111. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  76112. <doc>
  76113. <![CDATA[Get the path to the SequenceFile storing the sorted partition keyset.
  76114. @see #setPartitionFile(Configuration, Path)]]>
  76115. </doc>
  76116. </method>
  76117. <field name="DEFAULT_PATH" type="java.lang.String"
  76118. transient="false" volatile="false"
  76119. static="true" final="true" visibility="public"
  76120. deprecated="not deprecated">
  76121. </field>
  76122. <field name="PARTITIONER_PATH" type="java.lang.String"
  76123. transient="false" volatile="false"
  76124. static="true" final="true" visibility="public"
  76125. deprecated="not deprecated">
  76126. </field>
  76127. <field name="MAX_TRIE_DEPTH" type="java.lang.String"
  76128. transient="false" volatile="false"
  76129. static="true" final="true" visibility="public"
  76130. deprecated="not deprecated">
  76131. </field>
  76132. <field name="NATURAL_ORDER" type="java.lang.String"
  76133. transient="false" volatile="false"
  76134. static="true" final="true" visibility="public"
  76135. deprecated="not deprecated">
  76136. </field>
  76137. <doc>
  76138. <![CDATA[Partitioner effecting a total order by reading split points from
  76139. an externally generated source.]]>
  76140. </doc>
  76141. </class>
  76142. <!-- end class org.apache.hadoop.mapreduce.lib.partition.TotalOrderPartitioner -->
  76143. </package>
  76144. <package name="org.apache.hadoop.mapreduce.lib.reduce">
  76145. <!-- start class org.apache.hadoop.mapreduce.lib.reduce.IntSumReducer -->
  76146. <class name="IntSumReducer" extends="org.apache.hadoop.mapreduce.Reducer"
  76147. abstract="false"
  76148. static="false" final="false" visibility="public"
  76149. deprecated="not deprecated">
  76150. <constructor name="IntSumReducer"
  76151. static="false" final="false" visibility="public"
  76152. deprecated="not deprecated">
  76153. </constructor>
  76154. <method name="reduce"
  76155. abstract="false" native="false" synchronized="false"
  76156. static="false" final="false" visibility="public"
  76157. deprecated="not deprecated">
  76158. <param name="key" type="java.lang.Object"/>
  76159. <param name="values" type="java.lang.Iterable"/>
  76160. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  76161. <exception name="IOException" type="java.io.IOException"/>
  76162. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  76163. </method>
  76164. </class>
  76165. <!-- end class org.apache.hadoop.mapreduce.lib.reduce.IntSumReducer -->
  76166. <!-- start class org.apache.hadoop.mapreduce.lib.reduce.LongSumReducer -->
  76167. <class name="LongSumReducer" extends="org.apache.hadoop.mapreduce.Reducer"
  76168. abstract="false"
  76169. static="false" final="false" visibility="public"
  76170. deprecated="not deprecated">
  76171. <constructor name="LongSumReducer"
  76172. static="false" final="false" visibility="public"
  76173. deprecated="not deprecated">
  76174. </constructor>
  76175. <method name="reduce"
  76176. abstract="false" native="false" synchronized="false"
  76177. static="false" final="false" visibility="public"
  76178. deprecated="not deprecated">
  76179. <param name="key" type="java.lang.Object"/>
  76180. <param name="values" type="java.lang.Iterable"/>
  76181. <param name="context" type="org.apache.hadoop.mapreduce.Reducer.Context"/>
  76182. <exception name="IOException" type="java.io.IOException"/>
  76183. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  76184. </method>
  76185. </class>
  76186. <!-- end class org.apache.hadoop.mapreduce.lib.reduce.LongSumReducer -->
  76187. </package>
  76188. <package name="org.apache.hadoop.mapreduce.security">
  76189. <!-- start class org.apache.hadoop.mapreduce.security.SecureShuffleUtils -->
  76190. <class name="SecureShuffleUtils" extends="java.lang.Object"
  76191. abstract="false"
  76192. static="false" final="false" visibility="public"
  76193. deprecated="not deprecated">
  76194. <constructor name="SecureShuffleUtils"
  76195. static="false" final="false" visibility="public"
  76196. deprecated="not deprecated">
  76197. </constructor>
  76198. <method name="generateHash" return="java.lang.String"
  76199. abstract="false" native="false" synchronized="false"
  76200. static="true" final="false" visibility="public"
  76201. deprecated="not deprecated">
  76202. <param name="msg" type="byte[]"/>
  76203. <param name="key" type="javax.crypto.SecretKey"/>
  76204. <doc>
  76205. <![CDATA[Base64 encoded hash of msg
  76206. @param msg]]>
  76207. </doc>
  76208. </method>
  76209. <method name="hashFromString" return="java.lang.String"
  76210. abstract="false" native="false" synchronized="false"
  76211. static="true" final="false" visibility="public"
  76212. deprecated="not deprecated">
  76213. <param name="enc_str" type="java.lang.String"/>
  76214. <param name="key" type="javax.crypto.SecretKey"/>
  76215. <exception name="IOException" type="java.io.IOException"/>
  76216. <doc>
  76217. <![CDATA[Aux util to calculate hash of a String
  76218. @param enc_str
  76219. @param key
  76220. @return Base64 encodedHash
  76221. @throws IOException]]>
  76222. </doc>
  76223. </method>
  76224. <method name="verifyReply"
  76225. abstract="false" native="false" synchronized="false"
  76226. static="true" final="false" visibility="public"
  76227. deprecated="not deprecated">
  76228. <param name="base64Hash" type="java.lang.String"/>
  76229. <param name="msg" type="java.lang.String"/>
  76230. <param name="key" type="javax.crypto.SecretKey"/>
  76231. <exception name="IOException" type="java.io.IOException"/>
  76232. <doc>
  76233. <![CDATA[verify that base64Hash is same as HMacHash(msg)
  76234. @param base64Hash (Base64 encoded hash)
  76235. @param msg
  76236. @throws IOException if not the same]]>
  76237. </doc>
  76238. </method>
  76239. <method name="buildMsgFrom" return="java.lang.String"
  76240. abstract="false" native="false" synchronized="false"
  76241. static="true" final="false" visibility="public"
  76242. deprecated="not deprecated">
  76243. <param name="url" type="java.net.URL"/>
  76244. <doc>
  76245. <![CDATA[Shuffle specific utils - build string for encoding from URL
  76246. @param url
  76247. @return string for encoding]]>
  76248. </doc>
  76249. </method>
  76250. <method name="buildMsgFrom" return="java.lang.String"
  76251. abstract="false" native="false" synchronized="false"
  76252. static="true" final="false" visibility="public"
  76253. deprecated="not deprecated">
  76254. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  76255. <doc>
  76256. <![CDATA[Shuffle specific utils - build string for encoding from URL
  76257. @param request
  76258. @return string for encoding]]>
  76259. </doc>
  76260. </method>
  76261. <method name="toHex" return="java.lang.String"
  76262. abstract="false" native="false" synchronized="false"
  76263. static="true" final="false" visibility="public"
  76264. deprecated="not deprecated">
  76265. <param name="ba" type="byte[]"/>
  76266. <doc>
  76267. <![CDATA[byte array to Hex String
  76268. @param ba
  76269. @return string with HEX value of the key]]>
  76270. </doc>
  76271. </method>
  76272. <field name="HTTP_HEADER_URL_HASH" type="java.lang.String"
  76273. transient="false" volatile="false"
  76274. static="true" final="true" visibility="public"
  76275. deprecated="not deprecated">
  76276. </field>
  76277. <field name="HTTP_HEADER_REPLY_URL_HASH" type="java.lang.String"
  76278. transient="false" volatile="false"
  76279. static="true" final="true" visibility="public"
  76280. deprecated="not deprecated">
  76281. </field>
  76282. <doc>
  76283. <![CDATA[utilities for generating kyes, hashes and verifying them for shuffle]]>
  76284. </doc>
  76285. </class>
  76286. <!-- end class org.apache.hadoop.mapreduce.security.SecureShuffleUtils -->
  76287. <!-- start class org.apache.hadoop.mapreduce.security.TokenCache -->
  76288. <class name="TokenCache" extends="java.lang.Object"
  76289. abstract="false"
  76290. static="false" final="false" visibility="public"
  76291. deprecated="not deprecated">
  76292. <constructor name="TokenCache"
  76293. static="false" final="false" visibility="public"
  76294. deprecated="not deprecated">
  76295. </constructor>
  76296. <method name="getSecretKey" return="byte[]"
  76297. abstract="false" native="false" synchronized="false"
  76298. static="true" final="false" visibility="public"
  76299. deprecated="not deprecated">
  76300. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  76301. <param name="alias" type="org.apache.hadoop.io.Text"/>
  76302. <doc>
  76303. <![CDATA[auxiliary method to get user's secret keys..
  76304. @param alias
  76305. @return secret key from the storage]]>
  76306. </doc>
  76307. </method>
  76308. <method name="obtainTokensForNamenodes"
  76309. abstract="false" native="false" synchronized="false"
  76310. static="true" final="false" visibility="public"
  76311. deprecated="not deprecated">
  76312. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  76313. <param name="ps" type="org.apache.hadoop.fs.Path[]"/>
  76314. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  76315. <exception name="IOException" type="java.io.IOException"/>
  76316. <doc>
  76317. <![CDATA[Convenience method to obtain delegation tokens from namenodes
  76318. corresponding to the paths passed.
  76319. @param ps array of paths
  76320. @param conf configuration
  76321. @throws IOException]]>
  76322. </doc>
  76323. </method>
  76324. <method name="cleanUpTokenReferral"
  76325. abstract="false" native="false" synchronized="false"
  76326. static="true" final="false" visibility="public"
  76327. deprecated="not deprecated">
  76328. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  76329. <doc>
  76330. <![CDATA[Remove jobtoken referrals which don't make sense in the context
  76331. of the task execution.
  76332. @param conf configuration object.]]>
  76333. </doc>
  76334. </method>
  76335. <method name="getDelegationToken" return="org.apache.hadoop.security.token.Token"
  76336. abstract="false" native="false" synchronized="false"
  76337. static="true" final="false" visibility="public"
  76338. deprecated="not deprecated">
  76339. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  76340. <param name="namenode" type="java.lang.String"/>
  76341. <doc>
  76342. <![CDATA[@param namenode
  76343. @return delegation token]]>
  76344. </doc>
  76345. </method>
  76346. <method name="loadTokens" return="org.apache.hadoop.security.Credentials"
  76347. abstract="false" native="false" synchronized="false"
  76348. static="true" final="false" visibility="public"
  76349. deprecated="not deprecated">
  76350. <param name="jobTokenFile" type="java.lang.String"/>
  76351. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  76352. <exception name="IOException" type="java.io.IOException"/>
  76353. <doc>
  76354. <![CDATA[load job token from a file
  76355. @param conf
  76356. @throws IOException]]>
  76357. </doc>
  76358. </method>
  76359. <method name="setJobToken"
  76360. abstract="false" native="false" synchronized="false"
  76361. static="true" final="false" visibility="public"
  76362. deprecated="not deprecated">
  76363. <param name="t" type="org.apache.hadoop.security.token.Token"/>
  76364. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  76365. <doc>
  76366. <![CDATA[store job token
  76367. @param t]]>
  76368. </doc>
  76369. </method>
  76370. <method name="getJobToken" return="org.apache.hadoop.security.token.Token"
  76371. abstract="false" native="false" synchronized="false"
  76372. static="true" final="false" visibility="public"
  76373. deprecated="not deprecated">
  76374. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  76375. <doc>
  76376. <![CDATA[@return job token]]>
  76377. </doc>
  76378. </method>
  76379. <field name="JOB_TOKEN_HDFS_FILE" type="java.lang.String"
  76380. transient="false" volatile="false"
  76381. static="true" final="true" visibility="public"
  76382. deprecated="not deprecated">
  76383. <doc>
  76384. <![CDATA[file name used on HDFS for generated job token]]>
  76385. </doc>
  76386. </field>
  76387. <field name="JOB_TOKENS_FILENAME" type="java.lang.String"
  76388. transient="false" volatile="false"
  76389. static="true" final="true" visibility="public"
  76390. deprecated="not deprecated">
  76391. <doc>
  76392. <![CDATA[conf setting for job tokens cache file name]]>
  76393. </doc>
  76394. </field>
  76395. <doc>
  76396. <![CDATA[This class provides user facing APIs for transferring secrets from
  76397. the job client to the tasks.
  76398. The secrets can be stored just before submission of jobs and read during
  76399. the task execution.]]>
  76400. </doc>
  76401. </class>
  76402. <!-- end class org.apache.hadoop.mapreduce.security.TokenCache -->
  76403. </package>
  76404. <package name="org.apache.hadoop.mapreduce.security.token">
  76405. <!-- start class org.apache.hadoop.mapreduce.security.token.DelegationTokenRenewal -->
  76406. <class name="DelegationTokenRenewal" extends="java.lang.Object"
  76407. abstract="false"
  76408. static="false" final="false" visibility="public"
  76409. deprecated="not deprecated">
  76410. <constructor name="DelegationTokenRenewal"
  76411. static="false" final="false" visibility="public"
  76412. deprecated="not deprecated">
  76413. </constructor>
  76414. <method name="registerDelegationTokensForRenewal"
  76415. abstract="false" native="false" synchronized="true"
  76416. static="true" final="false" visibility="public"
  76417. deprecated="not deprecated">
  76418. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  76419. <param name="ts" type="org.apache.hadoop.security.Credentials"/>
  76420. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  76421. <exception name="IOException" type="java.io.IOException"/>
  76422. </method>
  76423. <method name="close"
  76424. abstract="false" native="false" synchronized="true"
  76425. static="true" final="false" visibility="public"
  76426. deprecated="not deprecated">
  76427. <doc>
  76428. <![CDATA[removing all tokens renewals]]>
  76429. </doc>
  76430. </method>
  76431. <method name="removeDelegationTokenRenewalForJob"
  76432. abstract="false" native="false" synchronized="false"
  76433. static="true" final="false" visibility="public"
  76434. deprecated="not deprecated">
  76435. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  76436. <doc>
  76437. <![CDATA[removing DT for completed jobs
  76438. @param jobId]]>
  76439. </doc>
  76440. </method>
  76441. <field name="SCHEME" type="java.lang.String"
  76442. transient="false" volatile="false"
  76443. static="true" final="true" visibility="public"
  76444. deprecated="not deprecated">
  76445. </field>
  76446. </class>
  76447. <!-- end class org.apache.hadoop.mapreduce.security.token.DelegationTokenRenewal -->
  76448. <!-- start class org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier -->
  76449. <class name="JobTokenIdentifier" extends="org.apache.hadoop.security.token.TokenIdentifier"
  76450. abstract="false"
  76451. static="false" final="false" visibility="public"
  76452. deprecated="not deprecated">
  76453. <constructor name="JobTokenIdentifier"
  76454. static="false" final="false" visibility="public"
  76455. deprecated="not deprecated">
  76456. <doc>
  76457. <![CDATA[Default constructor]]>
  76458. </doc>
  76459. </constructor>
  76460. <constructor name="JobTokenIdentifier" type="org.apache.hadoop.io.Text"
  76461. static="false" final="false" visibility="public"
  76462. deprecated="not deprecated">
  76463. <doc>
  76464. <![CDATA[Create a job token identifier from a jobid
  76465. @param jobid the jobid to use]]>
  76466. </doc>
  76467. </constructor>
  76468. <method name="getKind" return="org.apache.hadoop.io.Text"
  76469. abstract="false" native="false" synchronized="false"
  76470. static="false" final="false" visibility="public"
  76471. deprecated="not deprecated">
  76472. <doc>
  76473. <![CDATA[{@inheritDoc}]]>
  76474. </doc>
  76475. </method>
  76476. <method name="getUser" return="org.apache.hadoop.security.UserGroupInformation"
  76477. abstract="false" native="false" synchronized="false"
  76478. static="false" final="false" visibility="public"
  76479. deprecated="not deprecated">
  76480. <doc>
  76481. <![CDATA[{@inheritDoc}]]>
  76482. </doc>
  76483. </method>
  76484. <method name="getJobId" return="org.apache.hadoop.io.Text"
  76485. abstract="false" native="false" synchronized="false"
  76486. static="false" final="false" visibility="public"
  76487. deprecated="not deprecated">
  76488. <doc>
  76489. <![CDATA[Get the jobid
  76490. @return the jobid]]>
  76491. </doc>
  76492. </method>
  76493. <method name="readFields"
  76494. abstract="false" native="false" synchronized="false"
  76495. static="false" final="false" visibility="public"
  76496. deprecated="not deprecated">
  76497. <param name="in" type="java.io.DataInput"/>
  76498. <exception name="IOException" type="java.io.IOException"/>
  76499. <doc>
  76500. <![CDATA[{@inheritDoc}]]>
  76501. </doc>
  76502. </method>
  76503. <method name="write"
  76504. abstract="false" native="false" synchronized="false"
  76505. static="false" final="false" visibility="public"
  76506. deprecated="not deprecated">
  76507. <param name="out" type="java.io.DataOutput"/>
  76508. <exception name="IOException" type="java.io.IOException"/>
  76509. <doc>
  76510. <![CDATA[{@inheritDoc}]]>
  76511. </doc>
  76512. </method>
  76513. <field name="KIND_NAME" type="org.apache.hadoop.io.Text"
  76514. transient="false" volatile="false"
  76515. static="true" final="true" visibility="public"
  76516. deprecated="not deprecated">
  76517. </field>
  76518. <doc>
  76519. <![CDATA[The token identifier for job token]]>
  76520. </doc>
  76521. </class>
  76522. <!-- end class org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier -->
  76523. <!-- start class org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier.Renewer -->
  76524. <class name="JobTokenIdentifier.Renewer" extends="org.apache.hadoop.security.token.Token.TrivialRenewer"
  76525. abstract="false"
  76526. static="true" final="false" visibility="public"
  76527. deprecated="not deprecated">
  76528. <constructor name="JobTokenIdentifier.Renewer"
  76529. static="false" final="false" visibility="public"
  76530. deprecated="not deprecated">
  76531. </constructor>
  76532. <method name="getKind" return="org.apache.hadoop.io.Text"
  76533. abstract="false" native="false" synchronized="false"
  76534. static="false" final="false" visibility="protected"
  76535. deprecated="not deprecated">
  76536. </method>
  76537. </class>
  76538. <!-- end class org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier.Renewer -->
  76539. <!-- start class org.apache.hadoop.mapreduce.security.token.JobTokenSecretManager -->
  76540. <class name="JobTokenSecretManager" extends="org.apache.hadoop.security.token.SecretManager"
  76541. abstract="false"
  76542. static="false" final="false" visibility="public"
  76543. deprecated="not deprecated">
  76544. <constructor name="JobTokenSecretManager"
  76545. static="false" final="false" visibility="public"
  76546. deprecated="not deprecated">
  76547. <doc>
  76548. <![CDATA[Default constructor]]>
  76549. </doc>
  76550. </constructor>
  76551. <method name="createSecretKey" return="javax.crypto.SecretKey"
  76552. abstract="false" native="false" synchronized="false"
  76553. static="true" final="false" visibility="public"
  76554. deprecated="not deprecated">
  76555. <param name="key" type="byte[]"/>
  76556. <doc>
  76557. <![CDATA[Convert the byte[] to a secret key
  76558. @param key the byte[] to create the secret key from
  76559. @return the secret key]]>
  76560. </doc>
  76561. </method>
  76562. <method name="computeHash" return="byte[]"
  76563. abstract="false" native="false" synchronized="false"
  76564. static="true" final="false" visibility="public"
  76565. deprecated="not deprecated">
  76566. <param name="msg" type="byte[]"/>
  76567. <param name="key" type="javax.crypto.SecretKey"/>
  76568. <doc>
  76569. <![CDATA[Compute the HMAC hash of the message using the key
  76570. @param msg the message to hash
  76571. @param key the key to use
  76572. @return the computed hash]]>
  76573. </doc>
  76574. </method>
  76575. <method name="createPassword" return="byte[]"
  76576. abstract="false" native="false" synchronized="false"
  76577. static="false" final="false" visibility="public"
  76578. deprecated="not deprecated">
  76579. <param name="identifier" type="org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier"/>
  76580. <doc>
  76581. <![CDATA[Create a new password/secret for the given job token identifier.
  76582. @param identifier the job token identifier
  76583. @return token password/secret]]>
  76584. </doc>
  76585. </method>
  76586. <method name="addTokenForJob"
  76587. abstract="false" native="false" synchronized="false"
  76588. static="false" final="false" visibility="public"
  76589. deprecated="not deprecated">
  76590. <param name="jobId" type="java.lang.String"/>
  76591. <param name="token" type="org.apache.hadoop.security.token.Token"/>
  76592. <doc>
  76593. <![CDATA[Add the job token of a job to cache
  76594. @param jobId the job that owns the token
  76595. @param token the job token]]>
  76596. </doc>
  76597. </method>
  76598. <method name="removeTokenForJob"
  76599. abstract="false" native="false" synchronized="false"
  76600. static="false" final="false" visibility="public"
  76601. deprecated="not deprecated">
  76602. <param name="jobId" type="java.lang.String"/>
  76603. <doc>
  76604. <![CDATA[Remove the cached job token of a job from cache
  76605. @param jobId the job whose token is to be removed]]>
  76606. </doc>
  76607. </method>
  76608. <method name="retrieveTokenSecret" return="javax.crypto.SecretKey"
  76609. abstract="false" native="false" synchronized="false"
  76610. static="false" final="false" visibility="public"
  76611. deprecated="not deprecated">
  76612. <param name="jobId" type="java.lang.String"/>
  76613. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  76614. <doc>
  76615. <![CDATA[Look up the token password/secret for the given jobId.
  76616. @param jobId the jobId to look up
  76617. @return token password/secret as SecretKey
  76618. @throws InvalidToken]]>
  76619. </doc>
  76620. </method>
  76621. <method name="retrievePassword" return="byte[]"
  76622. abstract="false" native="false" synchronized="false"
  76623. static="false" final="false" visibility="public"
  76624. deprecated="not deprecated">
  76625. <param name="identifier" type="org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier"/>
  76626. <exception name="SecretManager.InvalidToken" type="org.apache.hadoop.security.token.SecretManager.InvalidToken"/>
  76627. <doc>
  76628. <![CDATA[Look up the token password/secret for the given job token identifier.
  76629. @param identifier the job token identifier to look up
  76630. @return token password/secret as byte[]
  76631. @throws InvalidToken]]>
  76632. </doc>
  76633. </method>
  76634. <method name="createIdentifier" return="org.apache.hadoop.mapreduce.security.token.JobTokenIdentifier"
  76635. abstract="false" native="false" synchronized="false"
  76636. static="false" final="false" visibility="public"
  76637. deprecated="not deprecated">
  76638. <doc>
  76639. <![CDATA[Create an empty job token identifier
  76640. @return a newly created empty job token identifier]]>
  76641. </doc>
  76642. </method>
  76643. <doc>
  76644. <![CDATA[SecretManager for job token. It can be used to cache generated job tokens.]]>
  76645. </doc>
  76646. </class>
  76647. <!-- end class org.apache.hadoop.mapreduce.security.token.JobTokenSecretManager -->
  76648. <!-- start class org.apache.hadoop.mapreduce.security.token.JobTokenSelector -->
  76649. <class name="JobTokenSelector" extends="java.lang.Object"
  76650. abstract="false"
  76651. static="false" final="false" visibility="public"
  76652. deprecated="not deprecated">
  76653. <implements name="org.apache.hadoop.security.token.TokenSelector"/>
  76654. <constructor name="JobTokenSelector"
  76655. static="false" final="false" visibility="public"
  76656. deprecated="not deprecated">
  76657. </constructor>
  76658. <method name="selectToken" return="org.apache.hadoop.security.token.Token"
  76659. abstract="false" native="false" synchronized="false"
  76660. static="false" final="false" visibility="public"
  76661. deprecated="not deprecated">
  76662. <param name="service" type="org.apache.hadoop.io.Text"/>
  76663. <param name="tokens" type="java.util.Collection"/>
  76664. </method>
  76665. <doc>
  76666. <![CDATA[Look through tokens to find the first job token that matches the service
  76667. and return it.]]>
  76668. </doc>
  76669. </class>
  76670. <!-- end class org.apache.hadoop.mapreduce.security.token.JobTokenSelector -->
  76671. </package>
  76672. <package name="org.apache.hadoop.mapreduce.security.token.delegation">
  76673. <!-- start class org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenIdentifier -->
  76674. <class name="DelegationTokenIdentifier" extends="org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier"
  76675. abstract="false"
  76676. static="false" final="false" visibility="public"
  76677. deprecated="not deprecated">
  76678. <constructor name="DelegationTokenIdentifier"
  76679. static="false" final="false" visibility="public"
  76680. deprecated="not deprecated">
  76681. <doc>
  76682. <![CDATA[Create an empty delegation token identifier for reading into.]]>
  76683. </doc>
  76684. </constructor>
  76685. <constructor name="DelegationTokenIdentifier" type="org.apache.hadoop.io.Text, org.apache.hadoop.io.Text, org.apache.hadoop.io.Text"
  76686. static="false" final="false" visibility="public"
  76687. deprecated="not deprecated">
  76688. <doc>
  76689. <![CDATA[Create a new delegation token identifier
  76690. @param owner the effective username of the token owner
  76691. @param renewer the username of the renewer
  76692. @param realUser the real username of the token owner]]>
  76693. </doc>
  76694. </constructor>
  76695. <method name="getKind" return="org.apache.hadoop.io.Text"
  76696. abstract="false" native="false" synchronized="false"
  76697. static="false" final="false" visibility="public"
  76698. deprecated="not deprecated">
  76699. </method>
  76700. <field name="MAPREDUCE_DELEGATION_KIND" type="org.apache.hadoop.io.Text"
  76701. transient="false" volatile="false"
  76702. static="true" final="true" visibility="public"
  76703. deprecated="not deprecated">
  76704. </field>
  76705. <doc>
  76706. <![CDATA[A delegation token identifier that is specific to MapReduce.]]>
  76707. </doc>
  76708. </class>
  76709. <!-- end class org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenIdentifier -->
  76710. <!-- start class org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenSecretManager -->
  76711. <class name="DelegationTokenSecretManager" extends="org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager"
  76712. abstract="false"
  76713. static="false" final="false" visibility="public"
  76714. deprecated="not deprecated">
  76715. <constructor name="DelegationTokenSecretManager" type="long, long, long, long"
  76716. static="false" final="false" visibility="public"
  76717. deprecated="not deprecated">
  76718. <doc>
  76719. <![CDATA[Create a secret manager
  76720. @param delegationKeyUpdateInterval the number of seconds for rolling new
  76721. secret keys.
  76722. @param delegationTokenMaxLifetime the maximum lifetime of the delegation
  76723. tokens
  76724. @param delegationTokenRenewInterval how often the tokens must be renewed
  76725. @param delegationTokenRemoverScanInterval how often the tokens are scanned
  76726. for expired tokens]]>
  76727. </doc>
  76728. </constructor>
  76729. <method name="createIdentifier" return="org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenIdentifier"
  76730. abstract="false" native="false" synchronized="false"
  76731. static="false" final="false" visibility="public"
  76732. deprecated="not deprecated">
  76733. </method>
  76734. <doc>
  76735. <![CDATA[A MapReduce specific delegation token secret manager.
  76736. The secret manager is responsible for generating and accepting the password
  76737. for each token.]]>
  76738. </doc>
  76739. </class>
  76740. <!-- end class org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenSecretManager -->
  76741. <!-- start class org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenSelector -->
  76742. <class name="DelegationTokenSelector" extends="org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSelector"
  76743. abstract="false"
  76744. static="false" final="false" visibility="public"
  76745. deprecated="not deprecated">
  76746. <constructor name="DelegationTokenSelector"
  76747. static="false" final="false" visibility="public"
  76748. deprecated="not deprecated">
  76749. </constructor>
  76750. <doc>
  76751. <![CDATA[A delegation token that is specialized for MapReduce]]>
  76752. </doc>
  76753. </class>
  76754. <!-- end class org.apache.hadoop.mapreduce.security.token.delegation.DelegationTokenSelector -->
  76755. </package>
  76756. <package name="org.apache.hadoop.mapreduce.server.jobtracker">
  76757. <!-- start class org.apache.hadoop.mapreduce.server.jobtracker.TaskTracker -->
  76758. <class name="TaskTracker" extends="java.lang.Object"
  76759. abstract="false"
  76760. static="false" final="false" visibility="public"
  76761. deprecated="not deprecated">
  76762. <constructor name="TaskTracker" type="java.lang.String"
  76763. static="false" final="false" visibility="public"
  76764. deprecated="not deprecated">
  76765. <doc>
  76766. <![CDATA[Create a new {@link TaskTracker}.
  76767. @param trackerName Unique identifier for the <code>TaskTracker</code>]]>
  76768. </doc>
  76769. </constructor>
  76770. <method name="getTrackerName" return="java.lang.String"
  76771. abstract="false" native="false" synchronized="false"
  76772. static="false" final="false" visibility="public"
  76773. deprecated="not deprecated">
  76774. <doc>
  76775. <![CDATA[Get the unique identifier for the {@link TaskTracker}
  76776. @return the unique identifier for the <code>TaskTracker</code>]]>
  76777. </doc>
  76778. </method>
  76779. <method name="getStatus" return="org.apache.hadoop.mapred.TaskTrackerStatus"
  76780. abstract="false" native="false" synchronized="false"
  76781. static="false" final="false" visibility="public"
  76782. deprecated="not deprecated">
  76783. <doc>
  76784. <![CDATA[Get the current {@link TaskTrackerStatus} of the <code>TaskTracker</code>.
  76785. @return the current <code>TaskTrackerStatus</code> of the
  76786. <code>TaskTracker</code>]]>
  76787. </doc>
  76788. </method>
  76789. <method name="setStatus"
  76790. abstract="false" native="false" synchronized="false"
  76791. static="false" final="false" visibility="public"
  76792. deprecated="not deprecated">
  76793. <param name="status" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  76794. <doc>
  76795. <![CDATA[Set the current {@link TaskTrackerStatus} of the <code>TaskTracker</code>.
  76796. @param status the current <code>TaskTrackerStatus</code> of the
  76797. <code>TaskTracker</code>]]>
  76798. </doc>
  76799. </method>
  76800. <method name="getAvailableSlots" return="int"
  76801. abstract="false" native="false" synchronized="false"
  76802. static="false" final="false" visibility="public"
  76803. deprecated="not deprecated">
  76804. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  76805. <doc>
  76806. <![CDATA[Get the number of currently available slots on this tasktracker for the
  76807. given type of the task.
  76808. @param taskType the {@link TaskType} to check for number of available slots
  76809. @return the number of currently available slots for the given
  76810. <code>taskType</code>]]>
  76811. </doc>
  76812. </method>
  76813. <method name="getJobForFallowSlot" return="org.apache.hadoop.mapred.JobInProgress"
  76814. abstract="false" native="false" synchronized="false"
  76815. static="false" final="false" visibility="public"
  76816. deprecated="not deprecated">
  76817. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  76818. <doc>
  76819. <![CDATA[Get the {@link JobInProgress} for which the fallow slot(s) are held.
  76820. @param taskType {@link TaskType} of the task
  76821. @return the task for which the fallow slot(s) are held,
  76822. <code>null</code> if there are no fallow slots]]>
  76823. </doc>
  76824. </method>
  76825. <method name="reserveSlots"
  76826. abstract="false" native="false" synchronized="false"
  76827. static="false" final="false" visibility="public"
  76828. deprecated="not deprecated">
  76829. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  76830. <param name="job" type="org.apache.hadoop.mapred.JobInProgress"/>
  76831. <param name="numSlots" type="int"/>
  76832. <doc>
  76833. <![CDATA[Reserve specified number of slots for a given <code>job</code>.
  76834. @param taskType {@link TaskType} of the task
  76835. @param job the job for which slots on this <code>TaskTracker</code>
  76836. are to be reserved
  76837. @param numSlots number of slots to be reserved]]>
  76838. </doc>
  76839. </method>
  76840. <method name="unreserveSlots"
  76841. abstract="false" native="false" synchronized="false"
  76842. static="false" final="false" visibility="public"
  76843. deprecated="not deprecated">
  76844. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  76845. <param name="job" type="org.apache.hadoop.mapred.JobInProgress"/>
  76846. <doc>
  76847. <![CDATA[Free map slots on this <code>TaskTracker</code> which were reserved for
  76848. <code>taskType</code>.
  76849. @param taskType {@link TaskType} of the task
  76850. @param job job whose slots are being un-reserved]]>
  76851. </doc>
  76852. </method>
  76853. <method name="cancelAllReservations"
  76854. abstract="false" native="false" synchronized="false"
  76855. static="false" final="false" visibility="public"
  76856. deprecated="not deprecated">
  76857. <doc>
  76858. <![CDATA[Cleanup when the {@link TaskTracker} is declared as 'lost/blacklisted'
  76859. by the JobTracker.
  76860. The method assumes that the lock on the {@link JobTracker} is obtained
  76861. by the caller.]]>
  76862. </doc>
  76863. </method>
  76864. <doc>
  76865. <![CDATA[The representation of a single <code>TaskTracker</code> as seen by
  76866. the {@link JobTracker}.]]>
  76867. </doc>
  76868. </class>
  76869. <!-- end class org.apache.hadoop.mapreduce.server.jobtracker.TaskTracker -->
  76870. </package>
  76871. <package name="org.apache.hadoop.mapreduce.server.tasktracker">
  76872. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.JVMInfo -->
  76873. <class name="JVMInfo" extends="java.lang.Object"
  76874. abstract="false"
  76875. static="false" final="false" visibility="public"
  76876. deprecated="not deprecated">
  76877. <constructor name="JVMInfo" type="java.io.File, java.util.List"
  76878. static="false" final="false" visibility="public"
  76879. deprecated="not deprecated">
  76880. </constructor>
  76881. <method name="getLogLocation" return="java.io.File"
  76882. abstract="false" native="false" synchronized="false"
  76883. static="false" final="false" visibility="public"
  76884. deprecated="not deprecated">
  76885. </method>
  76886. <method name="getAllAttempts" return="java.util.List"
  76887. abstract="false" native="false" synchronized="false"
  76888. static="false" final="false" visibility="public"
  76889. deprecated="not deprecated">
  76890. </method>
  76891. </class>
  76892. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.JVMInfo -->
  76893. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.Localizer -->
  76894. <class name="Localizer" extends="java.lang.Object"
  76895. abstract="false"
  76896. static="false" final="false" visibility="public"
  76897. deprecated="not deprecated">
  76898. <constructor name="Localizer" type="org.apache.hadoop.fs.FileSystem, java.lang.String[]"
  76899. static="false" final="false" visibility="public"
  76900. deprecated="not deprecated">
  76901. <doc>
  76902. <![CDATA[Create a Localizer instance
  76903. @param fileSys
  76904. @param lDirs]]>
  76905. </doc>
  76906. </constructor>
  76907. <method name="initializeUserDirs"
  76908. abstract="false" native="false" synchronized="false"
  76909. static="false" final="false" visibility="public"
  76910. deprecated="not deprecated">
  76911. <param name="user" type="java.lang.String"/>
  76912. <exception name="IOException" type="java.io.IOException"/>
  76913. <doc>
  76914. <![CDATA[Initialize the local directories for a particular user on this TT. This
  76915. involves creation and setting permissions of the following directories
  76916. <ul>
  76917. <li>$mapred.local.dir/taskTracker/$user</li>
  76918. <li>$mapred.local.dir/taskTracker/$user/jobcache</li>
  76919. <li>$mapred.local.dir/taskTracker/$user/distcache</li>
  76920. </ul>
  76921. @param user
  76922. @throws IOException]]>
  76923. </doc>
  76924. </method>
  76925. <method name="initializeAttemptDirs"
  76926. abstract="false" native="false" synchronized="false"
  76927. static="false" final="false" visibility="public"
  76928. deprecated="not deprecated">
  76929. <param name="user" type="java.lang.String"/>
  76930. <param name="jobId" type="java.lang.String"/>
  76931. <param name="attemptId" type="java.lang.String"/>
  76932. <exception name="IOException" type="java.io.IOException"/>
  76933. <doc>
  76934. <![CDATA[Create taskDirs on all the disks. Otherwise, in some cases, like when
  76935. LinuxTaskController is in use, child might wish to balance load across
  76936. disks but cannot itself create attempt directory because of the fact that
  76937. job directory is writable only by the TT.
  76938. @param user
  76939. @param jobId
  76940. @param attemptId
  76941. @throws IOException]]>
  76942. </doc>
  76943. </method>
  76944. <doc>
  76945. <![CDATA[NOTE: This class is internal only and not intended for users!!]]>
  76946. </doc>
  76947. </class>
  76948. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.Localizer -->
  76949. </package>
  76950. <package name="org.apache.hadoop.mapreduce.server.tasktracker.userlogs">
  76951. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.DeleteJobEvent -->
  76952. <class name="DeleteJobEvent" extends="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent"
  76953. abstract="false"
  76954. static="false" final="false" visibility="public"
  76955. deprecated="not deprecated">
  76956. <constructor name="DeleteJobEvent" type="org.apache.hadoop.mapreduce.JobID"
  76957. static="false" final="false" visibility="public"
  76958. deprecated="not deprecated">
  76959. <doc>
  76960. <![CDATA[Create the event to delete job log directory.
  76961. @param jobid
  76962. The {@link JobID} whose logs should be deleted.]]>
  76963. </doc>
  76964. </constructor>
  76965. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  76966. abstract="false" native="false" synchronized="false"
  76967. static="false" final="false" visibility="public"
  76968. deprecated="not deprecated">
  76969. <doc>
  76970. <![CDATA[Get the jobid.
  76971. @return object of {@link JobID}]]>
  76972. </doc>
  76973. </method>
  76974. <doc>
  76975. <![CDATA[This is an {@link UserLogEvent} sent when job logs should be deleted.]]>
  76976. </doc>
  76977. </class>
  76978. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.DeleteJobEvent -->
  76979. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.JobCompletedEvent -->
  76980. <class name="JobCompletedEvent" extends="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent"
  76981. abstract="false"
  76982. static="false" final="false" visibility="public"
  76983. deprecated="not deprecated">
  76984. <constructor name="JobCompletedEvent" type="org.apache.hadoop.mapreduce.JobID, long, int"
  76985. static="false" final="false" visibility="public"
  76986. deprecated="not deprecated">
  76987. <doc>
  76988. <![CDATA[Create the event for job completion.
  76989. @param jobid
  76990. The completed {@link JobID} .
  76991. @param jobCompletionTime
  76992. The job completion time.
  76993. @param retainHours
  76994. The number of hours for which the job logs should be retained]]>
  76995. </doc>
  76996. </constructor>
  76997. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  76998. abstract="false" native="false" synchronized="false"
  76999. static="false" final="false" visibility="public"
  77000. deprecated="not deprecated">
  77001. <doc>
  77002. <![CDATA[Get the job id.
  77003. @return object of {@link JobID}]]>
  77004. </doc>
  77005. </method>
  77006. <method name="getJobCompletionTime" return="long"
  77007. abstract="false" native="false" synchronized="false"
  77008. static="false" final="false" visibility="public"
  77009. deprecated="not deprecated">
  77010. <doc>
  77011. <![CDATA[Get the job completion time-stamp in milli-seconds.
  77012. @return job completion time.]]>
  77013. </doc>
  77014. </method>
  77015. <method name="getRetainHours" return="int"
  77016. abstract="false" native="false" synchronized="false"
  77017. static="false" final="false" visibility="public"
  77018. deprecated="not deprecated">
  77019. <doc>
  77020. <![CDATA[Get the number of hours for which job logs should be retained.
  77021. @return retainHours]]>
  77022. </doc>
  77023. </method>
  77024. <doc>
  77025. <![CDATA[This is an {@link UserLogEvent} sent when the job completes]]>
  77026. </doc>
  77027. </class>
  77028. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.JobCompletedEvent -->
  77029. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.JobStartedEvent -->
  77030. <class name="JobStartedEvent" extends="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent"
  77031. abstract="false"
  77032. static="false" final="false" visibility="public"
  77033. deprecated="not deprecated">
  77034. <constructor name="JobStartedEvent" type="org.apache.hadoop.mapreduce.JobID"
  77035. static="false" final="false" visibility="public"
  77036. deprecated="not deprecated">
  77037. <doc>
  77038. <![CDATA[Create the event to inform the job has started.
  77039. @param jobid
  77040. The {@link JobID} which started]]>
  77041. </doc>
  77042. </constructor>
  77043. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  77044. abstract="false" native="false" synchronized="false"
  77045. static="false" final="false" visibility="public"
  77046. deprecated="not deprecated">
  77047. <doc>
  77048. <![CDATA[Get the job id.
  77049. @return object of {@link JobID}]]>
  77050. </doc>
  77051. </method>
  77052. <doc>
  77053. <![CDATA[This is an {@link UserLogEvent} sent when the job starts.]]>
  77054. </doc>
  77055. </class>
  77056. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.JobStartedEvent -->
  77057. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.JvmFinishedEvent -->
  77058. <class name="JvmFinishedEvent" extends="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent"
  77059. abstract="false"
  77060. static="false" final="false" visibility="public"
  77061. deprecated="not deprecated">
  77062. <constructor name="JvmFinishedEvent" type="org.apache.hadoop.mapreduce.server.tasktracker.JVMInfo"
  77063. static="false" final="false" visibility="public"
  77064. deprecated="not deprecated">
  77065. <doc>
  77066. <![CDATA[Create the event to inform that the jvm has finished.
  77067. @param jvmInfo
  77068. The finished {@link JVMInfo}]]>
  77069. </doc>
  77070. </constructor>
  77071. <method name="getJvmInfo" return="org.apache.hadoop.mapreduce.server.tasktracker.JVMInfo"
  77072. abstract="false" native="false" synchronized="false"
  77073. static="false" final="false" visibility="public"
  77074. deprecated="not deprecated">
  77075. <doc>
  77076. <![CDATA[Get the jvm info.
  77077. @return object of {@link JVMInfo}]]>
  77078. </doc>
  77079. </method>
  77080. <doc>
  77081. <![CDATA[This is an {@link UserLogEvent} sent when the jvm finishes.]]>
  77082. </doc>
  77083. </class>
  77084. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.JvmFinishedEvent -->
  77085. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent -->
  77086. <class name="UserLogEvent" extends="java.lang.Object"
  77087. abstract="true"
  77088. static="false" final="false" visibility="public"
  77089. deprecated="not deprecated">
  77090. <constructor name="UserLogEvent" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType"
  77091. static="false" final="false" visibility="protected"
  77092. deprecated="not deprecated">
  77093. </constructor>
  77094. <method name="getEventType" return="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType"
  77095. abstract="false" native="false" synchronized="false"
  77096. static="false" final="false" visibility="public"
  77097. deprecated="not deprecated">
  77098. <doc>
  77099. <![CDATA[Return the {@link EventType}.
  77100. @return the {@link EventType}.]]>
  77101. </doc>
  77102. </method>
  77103. <doc>
  77104. <![CDATA[A directive from the various components of {@link TaskTracker} to the
  77105. {@link UserLogManager} to inform about an event.]]>
  77106. </doc>
  77107. </class>
  77108. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent -->
  77109. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType -->
  77110. <class name="UserLogEvent.EventType" extends="java.lang.Enum"
  77111. abstract="false"
  77112. static="true" final="true" visibility="public"
  77113. deprecated="not deprecated">
  77114. <method name="values" return="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType[]"
  77115. abstract="false" native="false" synchronized="false"
  77116. static="true" final="false" visibility="public"
  77117. deprecated="not deprecated">
  77118. </method>
  77119. <method name="valueOf" return="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType"
  77120. abstract="false" native="false" synchronized="false"
  77121. static="true" final="false" visibility="public"
  77122. deprecated="not deprecated">
  77123. <param name="name" type="java.lang.String"/>
  77124. </method>
  77125. <field name="JVM_FINISHED" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType"
  77126. transient="false" volatile="false"
  77127. static="true" final="true" visibility="public"
  77128. deprecated="not deprecated">
  77129. </field>
  77130. <field name="JOB_STARTED" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType"
  77131. transient="false" volatile="false"
  77132. static="true" final="true" visibility="public"
  77133. deprecated="not deprecated">
  77134. </field>
  77135. <field name="JOB_COMPLETED" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType"
  77136. transient="false" volatile="false"
  77137. static="true" final="true" visibility="public"
  77138. deprecated="not deprecated">
  77139. </field>
  77140. <field name="DELETE_JOB" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType"
  77141. transient="false" volatile="false"
  77142. static="true" final="true" visibility="public"
  77143. deprecated="not deprecated">
  77144. </field>
  77145. </class>
  77146. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent.EventType -->
  77147. <!-- start class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogManager -->
  77148. <class name="UserLogManager" extends="java.lang.Object"
  77149. abstract="false"
  77150. static="false" final="false" visibility="public"
  77151. deprecated="not deprecated">
  77152. <constructor name="UserLogManager" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.TaskController"
  77153. static="false" final="false" visibility="public"
  77154. deprecated="not deprecated">
  77155. <exception name="IOException" type="java.io.IOException"/>
  77156. <doc>
  77157. <![CDATA[Create the user log manager to manage user logs on {@link TaskTracker}.
  77158. It should be explicitly started using {@link #start()} to start functioning
  77159. @param conf The {@link Configuration}
  77160. @param taskController The task controller to delete the log files
  77161. @throws IOException]]>
  77162. </doc>
  77163. </constructor>
  77164. <constructor name="UserLogManager" type="org.apache.hadoop.conf.Configuration"
  77165. static="false" final="false" visibility="public"
  77166. deprecated="not deprecated">
  77167. <exception name="IOException" type="java.io.IOException"/>
  77168. <doc>
  77169. <![CDATA[Create the user log manager to manage user logs on {@link TaskTracker}.
  77170. This constructor is there mainly for unit tests.
  77171. @param conf The {@link Configuration}
  77172. @throws IOException]]>
  77173. </doc>
  77174. </constructor>
  77175. <method name="getTaskController" return="org.apache.hadoop.mapred.TaskController"
  77176. abstract="false" native="false" synchronized="false"
  77177. static="false" final="false" visibility="public"
  77178. deprecated="not deprecated">
  77179. <doc>
  77180. <![CDATA[Get the taskController for deleting logs.
  77181. @return the TaskController]]>
  77182. </doc>
  77183. </method>
  77184. <method name="start"
  77185. abstract="false" native="false" synchronized="false"
  77186. static="false" final="false" visibility="public"
  77187. deprecated="not deprecated">
  77188. <doc>
  77189. <![CDATA[Starts managing the logs]]>
  77190. </doc>
  77191. </method>
  77192. <method name="monitor"
  77193. abstract="false" native="false" synchronized="false"
  77194. static="false" final="false" visibility="protected"
  77195. deprecated="not deprecated">
  77196. <exception name="Exception" type="java.lang.Exception"/>
  77197. </method>
  77198. <method name="processEvent"
  77199. abstract="false" native="false" synchronized="false"
  77200. static="false" final="false" visibility="protected"
  77201. deprecated="not deprecated">
  77202. <param name="event" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent"/>
  77203. <exception name="IOException" type="java.io.IOException"/>
  77204. </method>
  77205. <method name="clearOldUserLogs"
  77206. abstract="false" native="false" synchronized="false"
  77207. static="false" final="false" visibility="public"
  77208. deprecated="not deprecated">
  77209. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  77210. <exception name="IOException" type="java.io.IOException"/>
  77211. <doc>
  77212. <![CDATA[Called during TaskTracker restart/re-init.
  77213. @param conf
  77214. TT's conf
  77215. @throws IOException]]>
  77216. </doc>
  77217. </method>
  77218. <method name="addLogEvent"
  77219. abstract="false" native="false" synchronized="false"
  77220. static="false" final="false" visibility="public"
  77221. deprecated="not deprecated">
  77222. <param name="event" type="org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogEvent"/>
  77223. <doc>
  77224. <![CDATA[Add the {@link UserLogEvent} for processing.
  77225. @param event]]>
  77226. </doc>
  77227. </method>
  77228. <method name="getUserLogCleaner" return="org.apache.hadoop.mapred.UserLogCleaner"
  77229. abstract="false" native="false" synchronized="false"
  77230. static="false" final="false" visibility="public"
  77231. deprecated="not deprecated">
  77232. <doc>
  77233. <![CDATA[Get {@link UserLogCleaner}.
  77234. This method is called only from unit tests.
  77235. @return {@link UserLogCleaner}]]>
  77236. </doc>
  77237. </method>
  77238. <doc>
  77239. <![CDATA[This manages user logs on the {@link TaskTracker}.]]>
  77240. </doc>
  77241. </class>
  77242. <!-- end class org.apache.hadoop.mapreduce.server.tasktracker.userlogs.UserLogManager -->
  77243. </package>
  77244. <package name="org.apache.hadoop.mapreduce.split">
  77245. <!-- start class org.apache.hadoop.mapreduce.split.JobSplit -->
  77246. <class name="JobSplit" extends="java.lang.Object"
  77247. abstract="false"
  77248. static="false" final="false" visibility="public"
  77249. deprecated="not deprecated">
  77250. <constructor name="JobSplit"
  77251. static="false" final="false" visibility="public"
  77252. deprecated="not deprecated">
  77253. </constructor>
  77254. <field name="EMPTY_TASK_SPLIT" type="org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitMetaInfo"
  77255. transient="false" volatile="false"
  77256. static="true" final="true" visibility="public"
  77257. deprecated="not deprecated">
  77258. </field>
  77259. <doc>
  77260. <![CDATA[This class groups the fundamental classes associated with
  77261. reading/writing splits. The split information is divided into
  77262. two parts based on the consumer of the information. The two
  77263. parts are the split meta information, and the raw split
  77264. information. The first part is consumed by the JobTracker to
  77265. create the tasks' locality data structures. The second part is
  77266. used by the maps at runtime to know what to do!
  77267. These pieces of information are written to two separate files.
  77268. The metainformation file is slurped by the JobTracker during
  77269. job initialization. A map task gets the meta information during
  77270. the launch and it reads the raw split bytes directly from the
  77271. file.]]>
  77272. </doc>
  77273. </class>
  77274. <!-- end class org.apache.hadoop.mapreduce.split.JobSplit -->
  77275. <!-- start class org.apache.hadoop.mapreduce.split.JobSplit.SplitMetaInfo -->
  77276. <class name="JobSplit.SplitMetaInfo" extends="java.lang.Object"
  77277. abstract="false"
  77278. static="true" final="false" visibility="public"
  77279. deprecated="not deprecated">
  77280. <implements name="org.apache.hadoop.io.Writable"/>
  77281. <constructor name="JobSplit.SplitMetaInfo"
  77282. static="false" final="false" visibility="public"
  77283. deprecated="not deprecated">
  77284. </constructor>
  77285. <constructor name="JobSplit.SplitMetaInfo" type="java.lang.String[], long, long"
  77286. static="false" final="false" visibility="public"
  77287. deprecated="not deprecated">
  77288. </constructor>
  77289. <constructor name="JobSplit.SplitMetaInfo" type="org.apache.hadoop.mapreduce.InputSplit, long"
  77290. static="false" final="false" visibility="public"
  77291. deprecated="not deprecated">
  77292. <exception name="IOException" type="java.io.IOException"/>
  77293. </constructor>
  77294. <method name="getLocations" return="java.lang.String[]"
  77295. abstract="false" native="false" synchronized="false"
  77296. static="false" final="false" visibility="public"
  77297. deprecated="not deprecated">
  77298. </method>
  77299. <method name="getStartOffset" return="long"
  77300. abstract="false" native="false" synchronized="false"
  77301. static="false" final="false" visibility="public"
  77302. deprecated="not deprecated">
  77303. </method>
  77304. <method name="getInputDataLength" return="long"
  77305. abstract="false" native="false" synchronized="false"
  77306. static="false" final="false" visibility="public"
  77307. deprecated="not deprecated">
  77308. </method>
  77309. <method name="setInputDataLocations"
  77310. abstract="false" native="false" synchronized="false"
  77311. static="false" final="false" visibility="public"
  77312. deprecated="not deprecated">
  77313. <param name="locations" type="java.lang.String[]"/>
  77314. </method>
  77315. <method name="setInputDataLength"
  77316. abstract="false" native="false" synchronized="false"
  77317. static="false" final="false" visibility="public"
  77318. deprecated="not deprecated">
  77319. <param name="length" type="long"/>
  77320. </method>
  77321. <method name="readFields"
  77322. abstract="false" native="false" synchronized="false"
  77323. static="false" final="false" visibility="public"
  77324. deprecated="not deprecated">
  77325. <param name="in" type="java.io.DataInput"/>
  77326. <exception name="IOException" type="java.io.IOException"/>
  77327. </method>
  77328. <method name="write"
  77329. abstract="false" native="false" synchronized="false"
  77330. static="false" final="false" visibility="public"
  77331. deprecated="not deprecated">
  77332. <param name="out" type="java.io.DataOutput"/>
  77333. <exception name="IOException" type="java.io.IOException"/>
  77334. </method>
  77335. <method name="toString" return="java.lang.String"
  77336. abstract="false" native="false" synchronized="false"
  77337. static="false" final="false" visibility="public"
  77338. deprecated="not deprecated">
  77339. </method>
  77340. <doc>
  77341. <![CDATA[This represents the meta information about the task split.
  77342. The main fields are
  77343. - start offset in actual split
  77344. - data length that will be processed in this split
  77345. - hosts on which this split is local]]>
  77346. </doc>
  77347. </class>
  77348. <!-- end class org.apache.hadoop.mapreduce.split.JobSplit.SplitMetaInfo -->
  77349. <!-- start class org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitIndex -->
  77350. <class name="JobSplit.TaskSplitIndex" extends="java.lang.Object"
  77351. abstract="false"
  77352. static="true" final="false" visibility="public"
  77353. deprecated="not deprecated">
  77354. <constructor name="JobSplit.TaskSplitIndex"
  77355. static="false" final="false" visibility="public"
  77356. deprecated="not deprecated">
  77357. </constructor>
  77358. <constructor name="JobSplit.TaskSplitIndex" type="java.lang.String, long"
  77359. static="false" final="false" visibility="public"
  77360. deprecated="not deprecated">
  77361. </constructor>
  77362. <method name="getStartOffset" return="long"
  77363. abstract="false" native="false" synchronized="false"
  77364. static="false" final="false" visibility="public"
  77365. deprecated="not deprecated">
  77366. </method>
  77367. <method name="getSplitLocation" return="java.lang.String"
  77368. abstract="false" native="false" synchronized="false"
  77369. static="false" final="false" visibility="public"
  77370. deprecated="not deprecated">
  77371. </method>
  77372. <method name="readFields"
  77373. abstract="false" native="false" synchronized="false"
  77374. static="false" final="false" visibility="public"
  77375. deprecated="not deprecated">
  77376. <param name="in" type="java.io.DataInput"/>
  77377. <exception name="IOException" type="java.io.IOException"/>
  77378. </method>
  77379. <method name="write"
  77380. abstract="false" native="false" synchronized="false"
  77381. static="false" final="false" visibility="public"
  77382. deprecated="not deprecated">
  77383. <param name="out" type="java.io.DataOutput"/>
  77384. <exception name="IOException" type="java.io.IOException"/>
  77385. </method>
  77386. <doc>
  77387. <![CDATA[This represents the meta information about the task split that the
  77388. task gets]]>
  77389. </doc>
  77390. </class>
  77391. <!-- end class org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitIndex -->
  77392. <!-- start class org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitMetaInfo -->
  77393. <class name="JobSplit.TaskSplitMetaInfo" extends="java.lang.Object"
  77394. abstract="false"
  77395. static="true" final="false" visibility="public"
  77396. deprecated="not deprecated">
  77397. <constructor name="JobSplit.TaskSplitMetaInfo"
  77398. static="false" final="false" visibility="public"
  77399. deprecated="not deprecated">
  77400. </constructor>
  77401. <constructor name="JobSplit.TaskSplitMetaInfo" type="org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitIndex, java.lang.String[], long"
  77402. static="false" final="false" visibility="public"
  77403. deprecated="not deprecated">
  77404. </constructor>
  77405. <constructor name="JobSplit.TaskSplitMetaInfo" type="org.apache.hadoop.mapreduce.InputSplit, long"
  77406. static="false" final="false" visibility="public"
  77407. deprecated="not deprecated">
  77408. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  77409. <exception name="IOException" type="java.io.IOException"/>
  77410. </constructor>
  77411. <constructor name="JobSplit.TaskSplitMetaInfo" type="java.lang.String[], long, long"
  77412. static="false" final="false" visibility="public"
  77413. deprecated="not deprecated">
  77414. </constructor>
  77415. <method name="getSplitIndex" return="org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitIndex"
  77416. abstract="false" native="false" synchronized="false"
  77417. static="false" final="false" visibility="public"
  77418. deprecated="not deprecated">
  77419. </method>
  77420. <method name="getSplitLocation" return="java.lang.String"
  77421. abstract="false" native="false" synchronized="false"
  77422. static="false" final="false" visibility="public"
  77423. deprecated="not deprecated">
  77424. </method>
  77425. <method name="getInputDataLength" return="long"
  77426. abstract="false" native="false" synchronized="false"
  77427. static="false" final="false" visibility="public"
  77428. deprecated="not deprecated">
  77429. </method>
  77430. <method name="getLocations" return="java.lang.String[]"
  77431. abstract="false" native="false" synchronized="false"
  77432. static="false" final="false" visibility="public"
  77433. deprecated="not deprecated">
  77434. </method>
  77435. <method name="getStartOffset" return="long"
  77436. abstract="false" native="false" synchronized="false"
  77437. static="false" final="false" visibility="public"
  77438. deprecated="not deprecated">
  77439. </method>
  77440. <doc>
  77441. <![CDATA[This represents the meta information about the task split that the
  77442. JobTracker creates]]>
  77443. </doc>
  77444. </class>
  77445. <!-- end class org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitMetaInfo -->
  77446. <!-- start class org.apache.hadoop.mapreduce.split.JobSplitWriter -->
  77447. <class name="JobSplitWriter" extends="java.lang.Object"
  77448. abstract="false"
  77449. static="false" final="false" visibility="public"
  77450. deprecated="not deprecated">
  77451. <constructor name="JobSplitWriter"
  77452. static="false" final="false" visibility="public"
  77453. deprecated="not deprecated">
  77454. </constructor>
  77455. <method name="createSplitFiles"
  77456. abstract="false" native="false" synchronized="false"
  77457. static="true" final="false" visibility="public"
  77458. deprecated="not deprecated">
  77459. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  77460. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  77461. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  77462. <param name="splits" type="java.util.List"/>
  77463. <exception name="IOException" type="java.io.IOException"/>
  77464. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  77465. </method>
  77466. <method name="createSplitFiles"
  77467. abstract="false" native="false" synchronized="false"
  77468. static="true" final="false" visibility="public"
  77469. deprecated="not deprecated">
  77470. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  77471. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  77472. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  77473. <param name="splits" type="org.apache.hadoop.mapreduce.InputSplit[]"/>
  77474. <exception name="IOException" type="java.io.IOException"/>
  77475. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  77476. </method>
  77477. <method name="createSplitFiles"
  77478. abstract="false" native="false" synchronized="false"
  77479. static="true" final="false" visibility="public"
  77480. deprecated="not deprecated">
  77481. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  77482. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  77483. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  77484. <param name="splits" type="org.apache.hadoop.mapred.InputSplit[]"/>
  77485. <exception name="IOException" type="java.io.IOException"/>
  77486. </method>
  77487. <doc>
  77488. <![CDATA[The class that is used by the Job clients to write splits (both the meta
  77489. and the raw bytes parts)]]>
  77490. </doc>
  77491. </class>
  77492. <!-- end class org.apache.hadoop.mapreduce.split.JobSplitWriter -->
  77493. <!-- start class org.apache.hadoop.mapreduce.split.SplitMetaInfoReader -->
  77494. <class name="SplitMetaInfoReader" extends="java.lang.Object"
  77495. abstract="false"
  77496. static="false" final="false" visibility="public"
  77497. deprecated="not deprecated">
  77498. <constructor name="SplitMetaInfoReader"
  77499. static="false" final="false" visibility="public"
  77500. deprecated="not deprecated">
  77501. </constructor>
  77502. <method name="readSplitMetaInfo" return="org.apache.hadoop.mapreduce.split.JobSplit.TaskSplitMetaInfo[]"
  77503. abstract="false" native="false" synchronized="false"
  77504. static="true" final="false" visibility="public"
  77505. deprecated="not deprecated">
  77506. <param name="jobId" type="org.apache.hadoop.mapreduce.JobID"/>
  77507. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  77508. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  77509. <param name="jobSubmitDir" type="org.apache.hadoop.fs.Path"/>
  77510. <exception name="IOException" type="java.io.IOException"/>
  77511. </method>
  77512. <doc>
  77513. <![CDATA[A (internal) utility that reads the split meta info and creates
  77514. split meta info objects]]>
  77515. </doc>
  77516. </class>
  77517. <!-- end class org.apache.hadoop.mapreduce.split.SplitMetaInfoReader -->
  77518. </package>
  77519. <package name="org.apache.hadoop.tools">
  77520. <!-- start class org.apache.hadoop.tools.DistCh -->
  77521. <class name="DistCh" extends="org.apache.hadoop.tools.DistTool"
  77522. abstract="false"
  77523. static="false" final="false" visibility="public"
  77524. deprecated="not deprecated">
  77525. <method name="run" return="int"
  77526. abstract="false" native="false" synchronized="false"
  77527. static="false" final="false" visibility="public"
  77528. deprecated="not deprecated">
  77529. <param name="args" type="java.lang.String[]"/>
  77530. <exception name="Exception" type="java.lang.Exception"/>
  77531. <doc>
  77532. <![CDATA[This is the main driver for recursively changing files properties.]]>
  77533. </doc>
  77534. </method>
  77535. <method name="main"
  77536. abstract="false" native="false" synchronized="false"
  77537. static="true" final="false" visibility="public"
  77538. deprecated="not deprecated">
  77539. <param name="args" type="java.lang.String[]"/>
  77540. <exception name="Exception" type="java.lang.Exception"/>
  77541. </method>
  77542. <doc>
  77543. <![CDATA[A Map-reduce program to recursively change files properties
  77544. such as owner, group and permission.]]>
  77545. </doc>
  77546. </class>
  77547. <!-- end class org.apache.hadoop.tools.DistCh -->
  77548. <!-- start class org.apache.hadoop.tools.DistCp -->
  77549. <class name="DistCp" extends="java.lang.Object"
  77550. abstract="false"
  77551. static="false" final="false" visibility="public"
  77552. deprecated="not deprecated">
  77553. <implements name="org.apache.hadoop.util.Tool"/>
  77554. <constructor name="DistCp" type="org.apache.hadoop.conf.Configuration"
  77555. static="false" final="false" visibility="public"
  77556. deprecated="not deprecated">
  77557. </constructor>
  77558. <method name="setConf"
  77559. abstract="false" native="false" synchronized="false"
  77560. static="false" final="false" visibility="public"
  77561. deprecated="not deprecated">
  77562. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  77563. </method>
  77564. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  77565. abstract="false" native="false" synchronized="false"
  77566. static="false" final="false" visibility="public"
  77567. deprecated="not deprecated">
  77568. </method>
  77569. <method name="copy"
  77570. abstract="false" native="false" synchronized="false"
  77571. static="true" final="false" visibility="public"
  77572. deprecated="not deprecated">
  77573. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  77574. <param name="srcPath" type="java.lang.String"/>
  77575. <param name="destPath" type="java.lang.String"/>
  77576. <param name="logPath" type="org.apache.hadoop.fs.Path"/>
  77577. <param name="srcAsList" type="boolean"/>
  77578. <param name="ignoreReadFailures" type="boolean"/>
  77579. <exception name="IOException" type="java.io.IOException"/>
  77580. </method>
  77581. <method name="run" return="int"
  77582. abstract="false" native="false" synchronized="false"
  77583. static="false" final="false" visibility="public"
  77584. deprecated="not deprecated">
  77585. <param name="args" type="java.lang.String[]"/>
  77586. <doc>
  77587. <![CDATA[This is the main driver for recursively copying directories
  77588. across file systems. It takes at least two cmdline parameters. A source
  77589. URL and a destination URL. It then essentially does an "ls -lR" on the
  77590. source URL, and writes the output in a round-robin manner to all the map
  77591. input files. The mapper actually copies the files allotted to it. The
  77592. reduce is empty.]]>
  77593. </doc>
  77594. </method>
  77595. <method name="main"
  77596. abstract="false" native="false" synchronized="false"
  77597. static="true" final="false" visibility="public"
  77598. deprecated="not deprecated">
  77599. <param name="args" type="java.lang.String[]"/>
  77600. <exception name="Exception" type="java.lang.Exception"/>
  77601. </method>
  77602. <method name="getRandomId" return="java.lang.String"
  77603. abstract="false" native="false" synchronized="false"
  77604. static="true" final="false" visibility="public"
  77605. deprecated="not deprecated">
  77606. </method>
  77607. <field name="LOG" type="org.apache.commons.logging.Log"
  77608. transient="false" volatile="false"
  77609. static="true" final="true" visibility="public"
  77610. deprecated="not deprecated">
  77611. </field>
  77612. <doc>
  77613. <![CDATA[A Map-reduce program to recursively copy directories between
  77614. different file-systems.]]>
  77615. </doc>
  77616. </class>
  77617. <!-- end class org.apache.hadoop.tools.DistCp -->
  77618. <!-- start class org.apache.hadoop.tools.DistCp.DuplicationException -->
  77619. <class name="DistCp.DuplicationException" extends="java.io.IOException"
  77620. abstract="false"
  77621. static="true" final="false" visibility="public"
  77622. deprecated="not deprecated">
  77623. <field name="ERROR_CODE" type="int"
  77624. transient="false" volatile="false"
  77625. static="true" final="true" visibility="public"
  77626. deprecated="not deprecated">
  77627. <doc>
  77628. <![CDATA[Error code for this exception]]>
  77629. </doc>
  77630. </field>
  77631. <doc>
  77632. <![CDATA[An exception class for duplicated source files.]]>
  77633. </doc>
  77634. </class>
  77635. <!-- end class org.apache.hadoop.tools.DistCp.DuplicationException -->
  77636. <!-- start class org.apache.hadoop.tools.HadoopArchives -->
  77637. <class name="HadoopArchives" extends="java.lang.Object"
  77638. abstract="false"
  77639. static="false" final="false" visibility="public"
  77640. deprecated="not deprecated">
  77641. <implements name="org.apache.hadoop.util.Tool"/>
  77642. <constructor name="HadoopArchives" type="org.apache.hadoop.conf.Configuration"
  77643. static="false" final="false" visibility="public"
  77644. deprecated="not deprecated">
  77645. </constructor>
  77646. <method name="setConf"
  77647. abstract="false" native="false" synchronized="false"
  77648. static="false" final="false" visibility="public"
  77649. deprecated="not deprecated">
  77650. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  77651. </method>
  77652. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  77653. abstract="false" native="false" synchronized="false"
  77654. static="false" final="false" visibility="public"
  77655. deprecated="not deprecated">
  77656. </method>
  77657. <method name="run" return="int"
  77658. abstract="false" native="false" synchronized="false"
  77659. static="false" final="false" visibility="public"
  77660. deprecated="not deprecated">
  77661. <param name="args" type="java.lang.String[]"/>
  77662. <exception name="Exception" type="java.lang.Exception"/>
  77663. <doc>
  77664. <![CDATA[the main driver for creating the archives
  77665. it takes at least three command line parameters. The parent path,
  77666. The src and the dest. It does an lsr on the source paths.
  77667. The mapper created archuves and the reducer creates
  77668. the archive index.]]>
  77669. </doc>
  77670. </method>
  77671. <method name="main"
  77672. abstract="false" native="false" synchronized="false"
  77673. static="true" final="false" visibility="public"
  77674. deprecated="not deprecated">
  77675. <param name="args" type="java.lang.String[]"/>
  77676. <doc>
  77677. <![CDATA[the main functions]]>
  77678. </doc>
  77679. </method>
  77680. <field name="VERSION" type="int"
  77681. transient="false" volatile="false"
  77682. static="true" final="true" visibility="public"
  77683. deprecated="not deprecated">
  77684. </field>
  77685. <doc>
  77686. <![CDATA[a archive creation utility.
  77687. This class provides methods that can be used
  77688. to create hadoop archives. For understanding of
  77689. Hadoop archives look at {@link HarFileSystem}.]]>
  77690. </doc>
  77691. </class>
  77692. <!-- end class org.apache.hadoop.tools.HadoopArchives -->
  77693. <!-- start class org.apache.hadoop.tools.Logalyzer -->
  77694. <class name="Logalyzer" extends="java.lang.Object"
  77695. abstract="false"
  77696. static="false" final="false" visibility="public"
  77697. deprecated="not deprecated">
  77698. <constructor name="Logalyzer"
  77699. static="false" final="false" visibility="public"
  77700. deprecated="not deprecated">
  77701. </constructor>
  77702. <method name="doArchive"
  77703. abstract="false" native="false" synchronized="false"
  77704. static="false" final="false" visibility="public"
  77705. deprecated="not deprecated">
  77706. <param name="logListURI" type="java.lang.String"/>
  77707. <param name="archiveDirectory" type="java.lang.String"/>
  77708. <exception name="IOException" type="java.io.IOException"/>
  77709. <doc>
  77710. <![CDATA[doArchive: Workhorse function to archive log-files.
  77711. @param logListURI : The uri which will serve list of log-files to archive.
  77712. @param archiveDirectory : The directory to store archived logfiles.
  77713. @throws IOException]]>
  77714. </doc>
  77715. </method>
  77716. <method name="doAnalyze"
  77717. abstract="false" native="false" synchronized="false"
  77718. static="false" final="false" visibility="public"
  77719. deprecated="not deprecated">
  77720. <param name="inputFilesDirectory" type="java.lang.String"/>
  77721. <param name="outputDirectory" type="java.lang.String"/>
  77722. <param name="grepPattern" type="java.lang.String"/>
  77723. <param name="sortColumns" type="java.lang.String"/>
  77724. <param name="columnSeparator" type="java.lang.String"/>
  77725. <exception name="IOException" type="java.io.IOException"/>
  77726. <doc>
  77727. <![CDATA[doAnalyze:
  77728. @param inputFilesDirectory : Directory containing the files to be analyzed.
  77729. @param outputDirectory : Directory to store analysis (output).
  77730. @param grepPattern : Pattern to *grep* for.
  77731. @param sortColumns : Sort specification for output.
  77732. @param columnSeparator : Column separator.
  77733. @throws IOException]]>
  77734. </doc>
  77735. </method>
  77736. <method name="main"
  77737. abstract="false" native="false" synchronized="false"
  77738. static="true" final="false" visibility="public"
  77739. deprecated="not deprecated">
  77740. <param name="args" type="java.lang.String[]"/>
  77741. </method>
  77742. <doc>
  77743. <![CDATA[Logalyzer: A utility tool for archiving and analyzing hadoop logs.
  77744. <p>
  77745. This tool supports archiving and anaylzing (sort/grep) of log-files.
  77746. It takes as input
  77747. a) Input uri which will serve uris of the logs to be archived.
  77748. b) Output directory (not mandatory).
  77749. b) Directory on dfs to archive the logs.
  77750. c) The sort/grep patterns for analyzing the files and separator for boundaries.
  77751. Usage:
  77752. Logalyzer -archive -archiveDir <directory to archive logs> -analysis <directory> -logs <log-list uri> -grep <pattern> -sort <col1, col2> -separator <separator>
  77753. <p>]]>
  77754. </doc>
  77755. </class>
  77756. <!-- end class org.apache.hadoop.tools.Logalyzer -->
  77757. <!-- start class org.apache.hadoop.tools.Logalyzer.LogComparator -->
  77758. <class name="Logalyzer.LogComparator" extends="org.apache.hadoop.io.Text.Comparator"
  77759. abstract="false"
  77760. static="true" final="false" visibility="public"
  77761. deprecated="not deprecated">
  77762. <implements name="org.apache.hadoop.conf.Configurable"/>
  77763. <constructor name="Logalyzer.LogComparator"
  77764. static="false" final="false" visibility="public"
  77765. deprecated="not deprecated">
  77766. </constructor>
  77767. <method name="setConf"
  77768. abstract="false" native="false" synchronized="false"
  77769. static="false" final="false" visibility="public"
  77770. deprecated="not deprecated">
  77771. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  77772. </method>
  77773. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  77774. abstract="false" native="false" synchronized="false"
  77775. static="false" final="false" visibility="public"
  77776. deprecated="not deprecated">
  77777. </method>
  77778. <method name="compare" return="int"
  77779. abstract="false" native="false" synchronized="false"
  77780. static="false" final="false" visibility="public"
  77781. deprecated="not deprecated">
  77782. <param name="b1" type="byte[]"/>
  77783. <param name="s1" type="int"/>
  77784. <param name="l1" type="int"/>
  77785. <param name="b2" type="byte[]"/>
  77786. <param name="s2" type="int"/>
  77787. <param name="l2" type="int"/>
  77788. </method>
  77789. <doc>
  77790. <![CDATA[A WritableComparator optimized for UTF8 keys of the logs.]]>
  77791. </doc>
  77792. </class>
  77793. <!-- end class org.apache.hadoop.tools.Logalyzer.LogComparator -->
  77794. <!-- start class org.apache.hadoop.tools.Logalyzer.LogRegexMapper -->
  77795. <class name="Logalyzer.LogRegexMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  77796. abstract="false"
  77797. static="true" final="false" visibility="public"
  77798. deprecated="not deprecated">
  77799. <implements name="org.apache.hadoop.mapred.Mapper"/>
  77800. <constructor name="Logalyzer.LogRegexMapper"
  77801. static="false" final="false" visibility="public"
  77802. deprecated="not deprecated">
  77803. </constructor>
  77804. <method name="configure"
  77805. abstract="false" native="false" synchronized="false"
  77806. static="false" final="false" visibility="public"
  77807. deprecated="not deprecated">
  77808. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  77809. </method>
  77810. <method name="map"
  77811. abstract="false" native="false" synchronized="false"
  77812. static="false" final="false" visibility="public"
  77813. deprecated="not deprecated">
  77814. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  77815. <param name="value" type="org.apache.hadoop.io.Text"/>
  77816. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  77817. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  77818. <exception name="IOException" type="java.io.IOException"/>
  77819. </method>
  77820. <doc>
  77821. <![CDATA[A {@link Mapper} that extracts text matching a regular expression.]]>
  77822. </doc>
  77823. </class>
  77824. <!-- end class org.apache.hadoop.tools.Logalyzer.LogRegexMapper -->
  77825. </package>
  77826. <package name="org.apache.hadoop.tools.distcp2">
  77827. <!-- start class org.apache.hadoop.tools.distcp2.CopyListing -->
  77828. <class name="CopyListing" extends="org.apache.hadoop.conf.Configured"
  77829. abstract="true"
  77830. static="false" final="false" visibility="public"
  77831. deprecated="not deprecated">
  77832. <constructor name="CopyListing" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.security.Credentials"
  77833. static="false" final="false" visibility="protected"
  77834. deprecated="not deprecated">
  77835. <doc>
  77836. <![CDATA[Protected constructor, to initialize configuration.
  77837. @param configuration The input configuration,
  77838. with which the source/target FileSystems may be accessed.
  77839. @param credentials - Credentials object on which the FS delegation tokens are cached.If null
  77840. delegation token caching is skipped]]>
  77841. </doc>
  77842. </constructor>
  77843. <method name="buildListing"
  77844. abstract="false" native="false" synchronized="false"
  77845. static="false" final="true" visibility="public"
  77846. deprecated="not deprecated">
  77847. <param name="pathToListFile" type="org.apache.hadoop.fs.Path"/>
  77848. <param name="options" type="org.apache.hadoop.tools.distcp2.DistCpOptions"/>
  77849. <exception name="IOException" type="java.io.IOException"/>
  77850. <doc>
  77851. <![CDATA[Build listing function creates the input listing that distcp uses to
  77852. perform the copy.
  77853. The build listing is a sequence file that has relative path of a file in the key
  77854. and the file status information of the source file in the value
  77855. For instance if the source path is /tmp/data and the traversed path is
  77856. /tmp/data/dir1/dir2/file1, then the sequence file would contain
  77857. key: /dir1/dir2/file1 and value: FileStatus(/tmp/data/dir1/dir2/file1)
  77858. File would also contain directory entries. Meaning, if /tmp/data/dir1/dir2/file1
  77859. is the only file under /tmp/data, the resulting sequence file would contain the
  77860. following entries
  77861. key: /dir1 and value: FileStatus(/tmp/data/dir1)
  77862. key: /dir1/dir2 and value: FileStatus(/tmp/data/dir1/dir2)
  77863. key: /dir1/dir2/file1 and value: FileStatus(/tmp/data/dir1/dir2/file1)
  77864. Cases requiring special handling:
  77865. If source path is a file (/tmp/file1), contents of the file will be as follows
  77866. TARGET DOES NOT EXIST: Key-"", Value-FileStatus(/tmp/file1)
  77867. TARGET IS FILE : Key-"", Value-FileStatus(/tmp/file1)
  77868. TARGET IS DIR : Key-"/file1", Value-FileStatus(/tmp/file1)
  77869. @param pathToListFile - Output file where the listing would be stored
  77870. @param options - Input options to distcp
  77871. @throws IOException - Exception if any]]>
  77872. </doc>
  77873. </method>
  77874. <method name="validatePaths"
  77875. abstract="true" native="false" synchronized="false"
  77876. static="false" final="false" visibility="protected"
  77877. deprecated="not deprecated">
  77878. <param name="options" type="org.apache.hadoop.tools.distcp2.DistCpOptions"/>
  77879. <exception name="IOException" type="java.io.IOException"/>
  77880. <exception name="CopyListing.InvalidInputException" type="org.apache.hadoop.tools.distcp2.CopyListing.InvalidInputException"/>
  77881. <doc>
  77882. <![CDATA[Validate input and output paths
  77883. @param options - Input options
  77884. @throws InvalidInputException: If inputs are invalid
  77885. @throws IOException: any Exception with FS]]>
  77886. </doc>
  77887. </method>
  77888. <method name="doBuildListing"
  77889. abstract="true" native="false" synchronized="false"
  77890. static="false" final="false" visibility="protected"
  77891. deprecated="not deprecated">
  77892. <param name="pathToListFile" type="org.apache.hadoop.fs.Path"/>
  77893. <param name="options" type="org.apache.hadoop.tools.distcp2.DistCpOptions"/>
  77894. <exception name="IOException" type="java.io.IOException"/>
  77895. <doc>
  77896. <![CDATA[The interface to be implemented by sub-classes, to create the source/target file listing.
  77897. @param pathToListFile Path on HDFS where the listing file is written.
  77898. @param options Input Options for DistCp (indicating source/target paths.)
  77899. @throws IOException: Thrown on failure to create the listing file.]]>
  77900. </doc>
  77901. </method>
  77902. <method name="getBytesToCopy" return="long"
  77903. abstract="true" native="false" synchronized="false"
  77904. static="false" final="false" visibility="protected"
  77905. deprecated="not deprecated">
  77906. <doc>
  77907. <![CDATA[Return the total bytes that distCp should copy for the source paths
  77908. This doesn't consider whether file is same should be skipped during copy
  77909. @return total bytes to copy]]>
  77910. </doc>
  77911. </method>
  77912. <method name="getNumberOfPaths" return="long"
  77913. abstract="true" native="false" synchronized="false"
  77914. static="false" final="false" visibility="protected"
  77915. deprecated="not deprecated">
  77916. <doc>
  77917. <![CDATA[Return the total number of paths to distcp, includes directories as well
  77918. This doesn't consider whether file/dir is already present and should be skipped during copy
  77919. @return Total number of paths to distcp]]>
  77920. </doc>
  77921. </method>
  77922. <method name="setCredentials"
  77923. abstract="false" native="false" synchronized="false"
  77924. static="false" final="false" visibility="protected"
  77925. deprecated="not deprecated">
  77926. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  77927. <doc>
  77928. <![CDATA[set Credentials store, on which FS delegatin token will be cached
  77929. @param credentials - Credentials object]]>
  77930. </doc>
  77931. </method>
  77932. <method name="getCredentials" return="org.apache.hadoop.security.Credentials"
  77933. abstract="false" native="false" synchronized="false"
  77934. static="false" final="false" visibility="protected"
  77935. deprecated="not deprecated">
  77936. <doc>
  77937. <![CDATA[get credentials to update the delegation tokens for accessed FS objects
  77938. @return Credentials object]]>
  77939. </doc>
  77940. </method>
  77941. <method name="getCopyListing" return="org.apache.hadoop.tools.distcp2.CopyListing"
  77942. abstract="false" native="false" synchronized="false"
  77943. static="true" final="false" visibility="public"
  77944. deprecated="not deprecated">
  77945. <param name="configuration" type="org.apache.hadoop.conf.Configuration"/>
  77946. <param name="credentials" type="org.apache.hadoop.security.Credentials"/>
  77947. <param name="options" type="org.apache.hadoop.tools.distcp2.DistCpOptions"/>
  77948. <exception name="IOException" type="java.io.IOException"/>
  77949. <doc>
  77950. <![CDATA[Public Factory method with which the appropriate CopyListing implementation may be retrieved.
  77951. @param configuration The input configuration.
  77952. @param credentials Credentials object on which the FS delegation tokens are cached
  77953. @param options The input Options, to help choose the appropriate CopyListing Implementation.
  77954. @return An instance of the appropriate CopyListing implementation.
  77955. @throws java.io.IOException - Exception if any]]>
  77956. </doc>
  77957. </method>
  77958. <doc>
  77959. <![CDATA[The CopyListing abstraction is responsible for how the list of
  77960. sources and targets is constructed, for DistCp's copy function.
  77961. The copy-listing should be a SequenceFile<Text, FileStatus>,
  77962. located at the path specified to buildListing(),
  77963. each entry being a pair of (Source relative path, source file status),
  77964. all the paths being fully qualified.]]>
  77965. </doc>
  77966. </class>
  77967. <!-- end class org.apache.hadoop.tools.distcp2.CopyListing -->
  77968. <!-- start class org.apache.hadoop.tools.distcp2.DistCp -->
  77969. <class name="DistCp" extends="org.apache.hadoop.conf.Configured"
  77970. abstract="false"
  77971. static="false" final="false" visibility="public"
  77972. deprecated="not deprecated">
  77973. <implements name="org.apache.hadoop.util.Tool"/>
  77974. <constructor name="DistCp" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.tools.distcp2.DistCpOptions"
  77975. static="false" final="false" visibility="public"
  77976. deprecated="not deprecated">
  77977. <exception name="Exception" type="java.lang.Exception"/>
  77978. <doc>
  77979. <![CDATA[Public Constructor. Creates DistCp object with specified input-parameters.
  77980. (E.g. source-paths, target-location, etc.)
  77981. @param inputOptions Options (indicating source-paths, target-location.)
  77982. @param configuration The Hadoop configuration against which the Copy-mapper must run.
  77983. @throws Exception, on failure.]]>
  77984. </doc>
  77985. </constructor>
  77986. <method name="run" return="int"
  77987. abstract="false" native="false" synchronized="false"
  77988. static="false" final="false" visibility="public"
  77989. deprecated="not deprecated">
  77990. <param name="argv" type="java.lang.String[]"/>
  77991. <doc>
  77992. <![CDATA[Implementation of Tool::run(). Orchestrates the copy of source file(s)
  77993. to target location, by:
  77994. 1. Creating a list of files to be copied to target.
  77995. 2. Launching a Map-only job to copy the files. (Delegates to execute().)
  77996. @param argv List of arguments passed to DistCp, from the ToolRunner.
  77997. @return On success, it returns 0. Else, -1.]]>
  77998. </doc>
  77999. </method>
  78000. <method name="execute" return="org.apache.hadoop.mapreduce.Job"
  78001. abstract="false" native="false" synchronized="false"
  78002. static="false" final="false" visibility="public"
  78003. deprecated="not deprecated">
  78004. <exception name="Exception" type="java.lang.Exception"/>
  78005. <doc>
  78006. <![CDATA[Implements the core-execution. Creates the file-list for copy,
  78007. and launches the Hadoop-job, to do the copy.
  78008. @return Job handle
  78009. @throws Exception, on failure.]]>
  78010. </doc>
  78011. </method>
  78012. <method name="createInputFileListing" return="org.apache.hadoop.fs.Path"
  78013. abstract="false" native="false" synchronized="false"
  78014. static="false" final="false" visibility="protected"
  78015. deprecated="not deprecated">
  78016. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  78017. <exception name="IOException" type="java.io.IOException"/>
  78018. <doc>
  78019. <![CDATA[Create input listing by invoking an appropriate copy listing
  78020. implementation. Also add delegation tokens for each path
  78021. to job's credential store
  78022. @param job - Handle to job
  78023. @return Returns the path where the copy listing is created
  78024. @throws IOException - If any]]>
  78025. </doc>
  78026. </method>
  78027. <method name="getFileListingPath" return="org.apache.hadoop.fs.Path"
  78028. abstract="false" native="false" synchronized="false"
  78029. static="false" final="false" visibility="protected"
  78030. deprecated="not deprecated">
  78031. <exception name="IOException" type="java.io.IOException"/>
  78032. <doc>
  78033. <![CDATA[Get default name of the copy listing file. Use the meta folder
  78034. to create the copy listing file
  78035. @return - Path where the copy listing file has to be saved
  78036. @throws IOException - Exception if any]]>
  78037. </doc>
  78038. </method>
  78039. <method name="main"
  78040. abstract="false" native="false" synchronized="false"
  78041. static="true" final="false" visibility="public"
  78042. deprecated="not deprecated">
  78043. <param name="argv" type="java.lang.String[]"/>
  78044. <doc>
  78045. <![CDATA[Main function of the DistCp program. Parses the input arguments (via OptionsParser),
  78046. and invokes the DistCp::run() method, via the ToolRunner.
  78047. @param argv Command-line arguments sent to DistCp.]]>
  78048. </doc>
  78049. </method>
  78050. <field name="rand" type="java.util.Random"
  78051. transient="false" volatile="false"
  78052. static="true" final="true" visibility="public"
  78053. deprecated="not deprecated">
  78054. </field>
  78055. <doc>
  78056. <![CDATA[DistCp is the main driver-class for DistCpV2.
  78057. For command-line use, DistCp::main() orchestrates the parsing of command-line
  78058. parameters and the launch of the DistCp job.
  78059. For programmatic use, a DistCp object can be constructed by specifying
  78060. options (in a DistCpOptions object), and DistCp::execute() may be used to
  78061. launch the copy-job. DistCp may alternatively be sub-classed to fine-tune
  78062. behaviour.]]>
  78063. </doc>
  78064. </class>
  78065. <!-- end class org.apache.hadoop.tools.distcp2.DistCp -->
  78066. <!-- start class org.apache.hadoop.tools.distcp2.DistCpConstants -->
  78067. <class name="DistCpConstants" extends="java.lang.Object"
  78068. abstract="false"
  78069. static="false" final="false" visibility="public"
  78070. deprecated="not deprecated">
  78071. <constructor name="DistCpConstants"
  78072. static="false" final="false" visibility="public"
  78073. deprecated="not deprecated">
  78074. </constructor>
  78075. <field name="DEFAULT_MAPS" type="int"
  78076. transient="false" volatile="false"
  78077. static="true" final="true" visibility="public"
  78078. deprecated="not deprecated">
  78079. </field>
  78080. <field name="DEFAULT_BANDWIDTH_MB" type="int"
  78081. transient="false" volatile="false"
  78082. static="true" final="true" visibility="public"
  78083. deprecated="not deprecated">
  78084. </field>
  78085. <field name="UNIFORMSIZE" type="java.lang.String"
  78086. transient="false" volatile="false"
  78087. static="true" final="true" visibility="public"
  78088. deprecated="not deprecated">
  78089. </field>
  78090. <field name="CONF_LABEL_ATOMIC_COPY" type="java.lang.String"
  78091. transient="false" volatile="false"
  78092. static="true" final="true" visibility="public"
  78093. deprecated="not deprecated">
  78094. <doc>
  78095. <![CDATA[Constants mapping to command line switches/input options]]>
  78096. </doc>
  78097. </field>
  78098. <field name="CONF_LABEL_WORK_PATH" type="java.lang.String"
  78099. transient="false" volatile="false"
  78100. static="true" final="true" visibility="public"
  78101. deprecated="not deprecated">
  78102. </field>
  78103. <field name="CONF_LABEL_LOG_PATH" type="java.lang.String"
  78104. transient="false" volatile="false"
  78105. static="true" final="true" visibility="public"
  78106. deprecated="not deprecated">
  78107. </field>
  78108. <field name="CONF_LABEL_IGNORE_FAILURES" type="java.lang.String"
  78109. transient="false" volatile="false"
  78110. static="true" final="true" visibility="public"
  78111. deprecated="not deprecated">
  78112. </field>
  78113. <field name="CONF_LABEL_PRESERVE_STATUS" type="java.lang.String"
  78114. transient="false" volatile="false"
  78115. static="true" final="true" visibility="public"
  78116. deprecated="not deprecated">
  78117. </field>
  78118. <field name="CONF_LABEL_SYNC_FOLDERS" type="java.lang.String"
  78119. transient="false" volatile="false"
  78120. static="true" final="true" visibility="public"
  78121. deprecated="not deprecated">
  78122. </field>
  78123. <field name="CONF_LABEL_DELETE_MISSING" type="java.lang.String"
  78124. transient="false" volatile="false"
  78125. static="true" final="true" visibility="public"
  78126. deprecated="not deprecated">
  78127. </field>
  78128. <field name="CONF_LABEL_SSL_CONF" type="java.lang.String"
  78129. transient="false" volatile="false"
  78130. static="true" final="true" visibility="public"
  78131. deprecated="not deprecated">
  78132. </field>
  78133. <field name="CONF_LABEL_MAX_MAPS" type="java.lang.String"
  78134. transient="false" volatile="false"
  78135. static="true" final="true" visibility="public"
  78136. deprecated="not deprecated">
  78137. </field>
  78138. <field name="CONF_LABEL_SOURCE_LISTING" type="java.lang.String"
  78139. transient="false" volatile="false"
  78140. static="true" final="true" visibility="public"
  78141. deprecated="not deprecated">
  78142. </field>
  78143. <field name="CONF_LABEL_COPY_STRATEGY" type="java.lang.String"
  78144. transient="false" volatile="false"
  78145. static="true" final="true" visibility="public"
  78146. deprecated="not deprecated">
  78147. </field>
  78148. <field name="CONF_LABEL_SKIP_CRC" type="java.lang.String"
  78149. transient="false" volatile="false"
  78150. static="true" final="true" visibility="public"
  78151. deprecated="not deprecated">
  78152. </field>
  78153. <field name="CONF_LABEL_OVERWRITE" type="java.lang.String"
  78154. transient="false" volatile="false"
  78155. static="true" final="true" visibility="public"
  78156. deprecated="not deprecated">
  78157. </field>
  78158. <field name="CONF_LABEL_BANDWIDTH_MB" type="java.lang.String"
  78159. transient="false" volatile="false"
  78160. static="true" final="true" visibility="public"
  78161. deprecated="not deprecated">
  78162. </field>
  78163. <field name="CONF_LABEL_TOTAL_BYTES_TO_BE_COPIED" type="java.lang.String"
  78164. transient="false" volatile="false"
  78165. static="true" final="true" visibility="public"
  78166. deprecated="not deprecated">
  78167. </field>
  78168. <field name="CONF_LABEL_TOTAL_NUMBER_OF_RECORDS" type="java.lang.String"
  78169. transient="false" volatile="false"
  78170. static="true" final="true" visibility="public"
  78171. deprecated="not deprecated">
  78172. </field>
  78173. <field name="CONF_LABEL_SSL_KEYSTORE" type="java.lang.String"
  78174. transient="false" volatile="false"
  78175. static="true" final="true" visibility="public"
  78176. deprecated="not deprecated">
  78177. </field>
  78178. <field name="CONF_LABEL_LISTING_FILE_PATH" type="java.lang.String"
  78179. transient="false" volatile="false"
  78180. static="true" final="true" visibility="public"
  78181. deprecated="not deprecated">
  78182. </field>
  78183. <field name="CONF_LABEL_TARGET_WORK_PATH" type="java.lang.String"
  78184. transient="false" volatile="false"
  78185. static="true" final="true" visibility="public"
  78186. deprecated="not deprecated">
  78187. </field>
  78188. <field name="CONF_LABEL_TARGET_FINAL_PATH" type="java.lang.String"
  78189. transient="false" volatile="false"
  78190. static="true" final="true" visibility="public"
  78191. deprecated="not deprecated">
  78192. </field>
  78193. <field name="CONF_LABEL_DISTCP_JOB_ID" type="java.lang.String"
  78194. transient="false" volatile="false"
  78195. static="true" final="true" visibility="public"
  78196. deprecated="not deprecated">
  78197. <doc>
  78198. <![CDATA[DistCp job id for consumers of the Disctp]]>
  78199. </doc>
  78200. </field>
  78201. <field name="CONF_LABEL_META_FOLDER" type="java.lang.String"
  78202. transient="false" volatile="false"
  78203. static="true" final="true" visibility="public"
  78204. deprecated="not deprecated">
  78205. </field>
  78206. <field name="CONF_LABEL_COPY_LISTING_CLASS" type="java.lang.String"
  78207. transient="false" volatile="false"
  78208. static="true" final="true" visibility="public"
  78209. deprecated="not deprecated">
  78210. </field>
  78211. <field name="CONF_LABEL_SSL_TRUST_STORE_LOCATION" type="java.lang.String"
  78212. transient="false" volatile="false"
  78213. static="true" final="true" visibility="public"
  78214. deprecated="not deprecated">
  78215. <doc>
  78216. <![CDATA[Conf label for SSL Trust-store location.]]>
  78217. </doc>
  78218. </field>
  78219. <field name="CONF_LABEL_SSL_KEY_STORE_LOCATION" type="java.lang.String"
  78220. transient="false" volatile="false"
  78221. static="true" final="true" visibility="public"
  78222. deprecated="not deprecated">
  78223. <doc>
  78224. <![CDATA[Conf label for SSL Key-store location.]]>
  78225. </doc>
  78226. </field>
  78227. <field name="SUCCESS" type="int"
  78228. transient="false" volatile="false"
  78229. static="true" final="true" visibility="public"
  78230. deprecated="not deprecated">
  78231. <doc>
  78232. <![CDATA[Constants for DistCp return code to shell / consumer of ToolRunner's run]]>
  78233. </doc>
  78234. </field>
  78235. <field name="INVALID_ARGUMENT" type="int"
  78236. transient="false" volatile="false"
  78237. static="true" final="true" visibility="public"
  78238. deprecated="not deprecated">
  78239. </field>
  78240. <field name="DUPLICATE_INPUT" type="int"
  78241. transient="false" volatile="false"
  78242. static="true" final="true" visibility="public"
  78243. deprecated="not deprecated">
  78244. </field>
  78245. <field name="UNKNOWN_ERROR" type="int"
  78246. transient="false" volatile="false"
  78247. static="true" final="true" visibility="public"
  78248. deprecated="not deprecated">
  78249. </field>
  78250. <doc>
  78251. <![CDATA[Utility class to hold commonly used constants.]]>
  78252. </doc>
  78253. </class>
  78254. <!-- end class org.apache.hadoop.tools.distcp2.DistCpConstants -->
  78255. <!-- start class org.apache.hadoop.tools.distcp2.DistCpOptions -->
  78256. <class name="DistCpOptions" extends="java.lang.Object"
  78257. abstract="false"
  78258. static="false" final="false" visibility="public"
  78259. deprecated="not deprecated">
  78260. <constructor name="DistCpOptions" type="java.util.List, org.apache.hadoop.fs.Path"
  78261. static="false" final="false" visibility="public"
  78262. deprecated="not deprecated">
  78263. <doc>
  78264. <![CDATA[Constructor, to initialize source/target paths.
  78265. @param sourcePaths List of source-paths (including wildcards)
  78266. to be copied to target.
  78267. @param targetPath Destination path for the dist-copy.]]>
  78268. </doc>
  78269. </constructor>
  78270. <constructor name="DistCpOptions" type="org.apache.hadoop.fs.Path, org.apache.hadoop.fs.Path"
  78271. static="false" final="false" visibility="public"
  78272. deprecated="not deprecated">
  78273. <doc>
  78274. <![CDATA[Constructor, to initialize source/target paths.
  78275. @param sourceFileListing File containing list of source paths
  78276. @param targetPath Destination path for the dist-copy.]]>
  78277. </doc>
  78278. </constructor>
  78279. <constructor name="DistCpOptions" type="org.apache.hadoop.tools.distcp2.DistCpOptions"
  78280. static="false" final="false" visibility="public"
  78281. deprecated="not deprecated">
  78282. <doc>
  78283. <![CDATA[Copy constructor.
  78284. @param that DistCpOptions being copied from.]]>
  78285. </doc>
  78286. </constructor>
  78287. <method name="shouldAtomicCommit" return="boolean"
  78288. abstract="false" native="false" synchronized="false"
  78289. static="false" final="false" visibility="public"
  78290. deprecated="not deprecated">
  78291. <doc>
  78292. <![CDATA[Should the data be committed atomically?
  78293. @return true if data should be committed automically. false otherwise]]>
  78294. </doc>
  78295. </method>
  78296. <method name="setAtomicCommit"
  78297. abstract="false" native="false" synchronized="false"
  78298. static="false" final="false" visibility="public"
  78299. deprecated="not deprecated">
  78300. <param name="atomicCommit" type="boolean"/>
  78301. <doc>
  78302. <![CDATA[Set if data need to be committed automatically
  78303. @param atomicCommit - boolean switch]]>
  78304. </doc>
  78305. </method>
  78306. <method name="shouldSyncFolder" return="boolean"
  78307. abstract="false" native="false" synchronized="false"
  78308. static="false" final="false" visibility="public"
  78309. deprecated="not deprecated">
  78310. <doc>
  78311. <![CDATA[Should the data be sync'ed between source and target paths?
  78312. @return true if data should be sync'ed up. false otherwise]]>
  78313. </doc>
  78314. </method>
  78315. <method name="setSyncFolder"
  78316. abstract="false" native="false" synchronized="false"
  78317. static="false" final="false" visibility="public"
  78318. deprecated="not deprecated">
  78319. <param name="syncFolder" type="boolean"/>
  78320. <doc>
  78321. <![CDATA[Set if source and target folder contents be sync'ed up
  78322. @param syncFolder - boolean switch]]>
  78323. </doc>
  78324. </method>
  78325. <method name="shouldDeleteMissing" return="boolean"
  78326. abstract="false" native="false" synchronized="false"
  78327. static="false" final="false" visibility="public"
  78328. deprecated="not deprecated">
  78329. <doc>
  78330. <![CDATA[Should target files missing in source should be deleted?
  78331. @return true if zoombie target files to be removed. false otherwise]]>
  78332. </doc>
  78333. </method>
  78334. <method name="setDeleteMissing"
  78335. abstract="false" native="false" synchronized="false"
  78336. static="false" final="false" visibility="public"
  78337. deprecated="not deprecated">
  78338. <param name="deleteMissing" type="boolean"/>
  78339. <doc>
  78340. <![CDATA[Set if files only present in target should be deleted
  78341. @param deleteMissing - boolean switch]]>
  78342. </doc>
  78343. </method>
  78344. <method name="shouldIgnoreFailures" return="boolean"
  78345. abstract="false" native="false" synchronized="false"
  78346. static="false" final="false" visibility="public"
  78347. deprecated="not deprecated">
  78348. <doc>
  78349. <![CDATA[Should failures be logged and ignored during copy?
  78350. @return true if failures are to be logged and ignored. false otherwise]]>
  78351. </doc>
  78352. </method>
  78353. <method name="setIgnoreFailures"
  78354. abstract="false" native="false" synchronized="false"
  78355. static="false" final="false" visibility="public"
  78356. deprecated="not deprecated">
  78357. <param name="ignoreFailures" type="boolean"/>
  78358. <doc>
  78359. <![CDATA[Set if failures during copy be ignored
  78360. @param ignoreFailures - boolean switch]]>
  78361. </doc>
  78362. </method>
  78363. <method name="shouldBlock" return="boolean"
  78364. abstract="false" native="false" synchronized="false"
  78365. static="false" final="false" visibility="public"
  78366. deprecated="not deprecated">
  78367. <doc>
  78368. <![CDATA[Should DistCp be running in blocking mode
  78369. @return true if should run in blocking, false otherwise]]>
  78370. </doc>
  78371. </method>
  78372. <method name="setBlocking"
  78373. abstract="false" native="false" synchronized="false"
  78374. static="false" final="false" visibility="public"
  78375. deprecated="not deprecated">
  78376. <param name="blocking" type="boolean"/>
  78377. <doc>
  78378. <![CDATA[Set if Disctp should run blocking or non-blocking
  78379. @param blocking - boolean switch]]>
  78380. </doc>
  78381. </method>
  78382. <method name="shouldOverwrite" return="boolean"
  78383. abstract="false" native="false" synchronized="false"
  78384. static="false" final="false" visibility="public"
  78385. deprecated="not deprecated">
  78386. <doc>
  78387. <![CDATA[Should files be overwritten always?
  78388. @return true if files in target that may exist before distcp, should always
  78389. be overwritten. false otherwise]]>
  78390. </doc>
  78391. </method>
  78392. <method name="setOverwrite"
  78393. abstract="false" native="false" synchronized="false"
  78394. static="false" final="false" visibility="public"
  78395. deprecated="not deprecated">
  78396. <param name="overwrite" type="boolean"/>
  78397. <doc>
  78398. <![CDATA[Set if files should always be overwritten on target
  78399. @param overwrite - boolean switch]]>
  78400. </doc>
  78401. </method>
  78402. <method name="shouldSkipCRC" return="boolean"
  78403. abstract="false" native="false" synchronized="false"
  78404. static="false" final="false" visibility="public"
  78405. deprecated="not deprecated">
  78406. <doc>
  78407. <![CDATA[Should CRC/checksum check be skipped while checking files are identical
  78408. @return true if checksum check should be skipped while checking files are
  78409. identical. false otherwise]]>
  78410. </doc>
  78411. </method>
  78412. <method name="setSkipCRC"
  78413. abstract="false" native="false" synchronized="false"
  78414. static="false" final="false" visibility="public"
  78415. deprecated="not deprecated">
  78416. <param name="skipCRC" type="boolean"/>
  78417. <doc>
  78418. <![CDATA[Set if checksum comparison should be skipped while determining if
  78419. source and destination files are identical
  78420. @param skipCRC - boolean switch]]>
  78421. </doc>
  78422. </method>
  78423. <method name="getMaxMaps" return="int"
  78424. abstract="false" native="false" synchronized="false"
  78425. static="false" final="false" visibility="public"
  78426. deprecated="not deprecated">
  78427. <doc>
  78428. <![CDATA[Get the max number of maps to use for this copy
  78429. @return Max number of maps]]>
  78430. </doc>
  78431. </method>
  78432. <method name="setMaxMaps"
  78433. abstract="false" native="false" synchronized="false"
  78434. static="false" final="false" visibility="public"
  78435. deprecated="not deprecated">
  78436. <param name="maxMaps" type="int"/>
  78437. <doc>
  78438. <![CDATA[Set the max number of maps to use for copy
  78439. @param maxMaps - Number of maps]]>
  78440. </doc>
  78441. </method>
  78442. <method name="getMapBandwidth" return="int"
  78443. abstract="false" native="false" synchronized="false"
  78444. static="false" final="false" visibility="public"
  78445. deprecated="not deprecated">
  78446. <doc>
  78447. <![CDATA[Get the map bandwidth in MB
  78448. @return Bandwidth in MB]]>
  78449. </doc>
  78450. </method>
  78451. <method name="setMapBandwidth"
  78452. abstract="false" native="false" synchronized="false"
  78453. static="false" final="false" visibility="public"
  78454. deprecated="not deprecated">
  78455. <param name="mapBandwidth" type="int"/>
  78456. <doc>
  78457. <![CDATA[Set per map bandwidth
  78458. @param mapBandwidth - per map bandwidth]]>
  78459. </doc>
  78460. </method>
  78461. <method name="getSslConfigurationFile" return="java.lang.String"
  78462. abstract="false" native="false" synchronized="false"
  78463. static="false" final="false" visibility="public"
  78464. deprecated="not deprecated">
  78465. <doc>
  78466. <![CDATA[Get path where the ssl configuration file is present to use for hftps://
  78467. @return Path on local file system]]>
  78468. </doc>
  78469. </method>
  78470. <method name="setSslConfigurationFile"
  78471. abstract="false" native="false" synchronized="false"
  78472. static="false" final="false" visibility="public"
  78473. deprecated="not deprecated">
  78474. <param name="sslConfigurationFile" type="java.lang.String"/>
  78475. <doc>
  78476. <![CDATA[Set the SSL configuration file path to use with hftps:// (local path)
  78477. @param sslConfigurationFile - Local ssl config file path]]>
  78478. </doc>
  78479. </method>
  78480. <method name="preserveAttributes" return="java.util.Iterator"
  78481. abstract="false" native="false" synchronized="false"
  78482. static="false" final="false" visibility="public"
  78483. deprecated="not deprecated">
  78484. <doc>
  78485. <![CDATA[Returns an iterator with the list of file attributes to preserve
  78486. @return iterator of file attributes to preserve]]>
  78487. </doc>
  78488. </method>
  78489. <method name="shouldPreserve" return="boolean"
  78490. abstract="false" native="false" synchronized="false"
  78491. static="false" final="false" visibility="public"
  78492. deprecated="not deprecated">
  78493. <param name="attribute" type="org.apache.hadoop.tools.distcp2.DistCpOptions.FileAttribute"/>
  78494. <doc>
  78495. <![CDATA[Checks if the input attibute should be preserved or not
  78496. @param attribute - Attribute to check
  78497. @return True if attribute should be preserved, false otherwise]]>
  78498. </doc>
  78499. </method>
  78500. <method name="preserve"
  78501. abstract="false" native="false" synchronized="false"
  78502. static="false" final="false" visibility="public"
  78503. deprecated="not deprecated">
  78504. <param name="fileAttribute" type="org.apache.hadoop.tools.distcp2.DistCpOptions.FileAttribute"/>
  78505. <doc>
  78506. <![CDATA[Add file attributes that need to be preserved. This method may be
  78507. called multiple times to add attributes.
  78508. @param fileAttribute - Attribute to add, one at a time]]>
  78509. </doc>
  78510. </method>
  78511. <method name="getAtomicWorkPath" return="org.apache.hadoop.fs.Path"
  78512. abstract="false" native="false" synchronized="false"
  78513. static="false" final="false" visibility="public"
  78514. deprecated="not deprecated">
  78515. <doc>
  78516. <![CDATA[Get work path for atomic commit. If null, the work
  78517. path would be parentOf(targetPath) + "/._WIP_" + nameOf(targetPath)
  78518. @return Atomic work path on the target cluster. Null if not set]]>
  78519. </doc>
  78520. </method>
  78521. <method name="setAtomicWorkPath"
  78522. abstract="false" native="false" synchronized="false"
  78523. static="false" final="false" visibility="public"
  78524. deprecated="not deprecated">
  78525. <param name="atomicWorkPath" type="org.apache.hadoop.fs.Path"/>
  78526. <doc>
  78527. <![CDATA[Set the work path for atomic commit
  78528. @param atomicWorkPath - Path on the target cluster]]>
  78529. </doc>
  78530. </method>
  78531. <method name="getLogPath" return="org.apache.hadoop.fs.Path"
  78532. abstract="false" native="false" synchronized="false"
  78533. static="false" final="false" visibility="public"
  78534. deprecated="not deprecated">
  78535. <doc>
  78536. <![CDATA[Get output directory for writing distcp logs. Otherwise logs
  78537. are temporarily written to JobStagingDir/_logs and deleted
  78538. upon job completion
  78539. @return Log output path on the cluster where distcp job is run]]>
  78540. </doc>
  78541. </method>
  78542. <method name="setLogPath"
  78543. abstract="false" native="false" synchronized="false"
  78544. static="false" final="false" visibility="public"
  78545. deprecated="not deprecated">
  78546. <param name="logPath" type="org.apache.hadoop.fs.Path"/>
  78547. <doc>
  78548. <![CDATA[Set the log path where distcp output logs are stored
  78549. Uses JobStagingDir/_logs by default
  78550. @param logPath - Path where logs will be saved]]>
  78551. </doc>
  78552. </method>
  78553. <method name="getCopyStrategy" return="java.lang.String"
  78554. abstract="false" native="false" synchronized="false"
  78555. static="false" final="false" visibility="public"
  78556. deprecated="not deprecated">
  78557. <doc>
  78558. <![CDATA[Get the copy strategy to use. Uses appropriate input format
  78559. @return copy strategy to use]]>
  78560. </doc>
  78561. </method>
  78562. <method name="setCopyStrategy"
  78563. abstract="false" native="false" synchronized="false"
  78564. static="false" final="false" visibility="public"
  78565. deprecated="not deprecated">
  78566. <param name="copyStrategy" type="java.lang.String"/>
  78567. <doc>
  78568. <![CDATA[Set the copy strategy to use. Should map to a strategy implementation
  78569. in distp-default.xml
  78570. @param copyStrategy - copy Strategy to use]]>
  78571. </doc>
  78572. </method>
  78573. <method name="getSourceFileListing" return="org.apache.hadoop.fs.Path"
  78574. abstract="false" native="false" synchronized="false"
  78575. static="false" final="false" visibility="public"
  78576. deprecated="not deprecated">
  78577. <doc>
  78578. <![CDATA[File path (hdfs:// or file://) that contains the list of actual
  78579. files to copy
  78580. @return - Source listing file path]]>
  78581. </doc>
  78582. </method>
  78583. <method name="getSourcePaths" return="java.util.List"
  78584. abstract="false" native="false" synchronized="false"
  78585. static="false" final="false" visibility="public"
  78586. deprecated="not deprecated">
  78587. <doc>
  78588. <![CDATA[Getter for sourcePaths.
  78589. @return List of source-paths.]]>
  78590. </doc>
  78591. </method>
  78592. <method name="setSourcePaths"
  78593. abstract="false" native="false" synchronized="false"
  78594. static="false" final="false" visibility="public"
  78595. deprecated="not deprecated">
  78596. <param name="sourcePaths" type="java.util.List"/>
  78597. <doc>
  78598. <![CDATA[Setter for sourcePaths.
  78599. @param sourcePaths The new list of source-paths.]]>
  78600. </doc>
  78601. </method>
  78602. <method name="getTargetPath" return="org.apache.hadoop.fs.Path"
  78603. abstract="false" native="false" synchronized="false"
  78604. static="false" final="false" visibility="public"
  78605. deprecated="not deprecated">
  78606. <doc>
  78607. <![CDATA[Getter for the targetPath.
  78608. @return The target-path.]]>
  78609. </doc>
  78610. </method>
  78611. <method name="validate"
  78612. abstract="false" native="false" synchronized="false"
  78613. static="false" final="false" visibility="public"
  78614. deprecated="not deprecated">
  78615. <param name="option" type="org.apache.hadoop.tools.distcp2.DistCpOptionSwitch"/>
  78616. <param name="value" type="boolean"/>
  78617. </method>
  78618. <method name="appendToConf"
  78619. abstract="false" native="false" synchronized="false"
  78620. static="false" final="false" visibility="public"
  78621. deprecated="not deprecated">
  78622. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  78623. <doc>
  78624. <![CDATA[Add options to configuration. These will be used in the Mapper/committer
  78625. @param conf - Configruation object to which the options need to be added]]>
  78626. </doc>
  78627. </method>
  78628. <method name="toString" return="java.lang.String"
  78629. abstract="false" native="false" synchronized="false"
  78630. static="false" final="false" visibility="public"
  78631. deprecated="not deprecated">
  78632. <doc>
  78633. <![CDATA[Utility to easily string-ify Options, for logging.
  78634. @return String representation of the Options.]]>
  78635. </doc>
  78636. </method>
  78637. <method name="clone" return="org.apache.hadoop.tools.distcp2.DistCpOptions"
  78638. abstract="false" native="false" synchronized="false"
  78639. static="false" final="false" visibility="protected"
  78640. deprecated="not deprecated">
  78641. <exception name="CloneNotSupportedException" type="java.lang.CloneNotSupportedException"/>
  78642. </method>
  78643. <doc>
  78644. <![CDATA[The Options class encapsulates all DistCp options.
  78645. These may be set from command-line (via the OptionsParser)
  78646. or may be set manually.]]>
  78647. </doc>
  78648. </class>
  78649. <!-- end class org.apache.hadoop.tools.distcp2.DistCpOptions -->
  78650. <!-- start class org.apache.hadoop.tools.distcp2.DistCpOptions.FileAttribute -->
  78651. <class name="DistCpOptions.FileAttribute" extends="java.lang.Enum"
  78652. abstract="false"
  78653. static="true" final="true" visibility="public"
  78654. deprecated="not deprecated">
  78655. <method name="values" return="org.apache.hadoop.tools.distcp2.DistCpOptions.FileAttribute[]"
  78656. abstract="false" native="false" synchronized="false"
  78657. static="true" final="false" visibility="public"
  78658. deprecated="not deprecated">
  78659. </method>
  78660. <method name="valueOf" return="org.apache.hadoop.tools.distcp2.DistCpOptions.FileAttribute"
  78661. abstract="false" native="false" synchronized="false"
  78662. static="true" final="false" visibility="public"
  78663. deprecated="not deprecated">
  78664. <param name="name" type="java.lang.String"/>
  78665. </method>
  78666. <method name="getAttribute" return="org.apache.hadoop.tools.distcp2.DistCpOptions.FileAttribute"
  78667. abstract="false" native="false" synchronized="false"
  78668. static="true" final="false" visibility="public"
  78669. deprecated="not deprecated">
  78670. <param name="symbol" type="char"/>
  78671. </method>
  78672. <field name="REPLICATION" type="org.apache.hadoop.tools.distcp2.DistCpOptions.FileAttribute"
  78673. transient="false" volatile="false"
  78674. static="true" final="true" visibility="public"
  78675. deprecated="not deprecated">
  78676. </field>
  78677. <field name="BLOCKSIZE" type="org.apache.hadoop.tools.distcp2.DistCpOptions.FileAttribute"
  78678. transient="false" volatile="false"
  78679. static="true" final="true" visibility="public"
  78680. deprecated="not deprecated">
  78681. </field>
  78682. <field name="USER" type="org.apache.hadoop.tools.distcp2.DistCpOptions.FileAttribute"
  78683. transient="false" volatile="false"
  78684. static="true" final="true" visibility="public"
  78685. deprecated="not deprecated">
  78686. </field>
  78687. <field name="GROUP" type="org.apache.hadoop.tools.distcp2.DistCpOptions.FileAttribute"
  78688. transient="false" volatile="false"
  78689. static="true" final="true" visibility="public"
  78690. deprecated="not deprecated">
  78691. </field>
  78692. <field name="PERMISSION" type="org.apache.hadoop.tools.distcp2.DistCpOptions.FileAttribute"
  78693. transient="false" volatile="false"
  78694. static="true" final="true" visibility="public"
  78695. deprecated="not deprecated">
  78696. </field>
  78697. </class>
  78698. <!-- end class org.apache.hadoop.tools.distcp2.DistCpOptions.FileAttribute -->
  78699. <!-- start class org.apache.hadoop.tools.distcp2.DistCpOptionSwitch -->
  78700. <class name="DistCpOptionSwitch" extends="java.lang.Enum"
  78701. abstract="false"
  78702. static="false" final="true" visibility="public"
  78703. deprecated="not deprecated">
  78704. <method name="values" return="org.apache.hadoop.tools.distcp2.DistCpOptionSwitch[]"
  78705. abstract="false" native="false" synchronized="false"
  78706. static="true" final="false" visibility="public"
  78707. deprecated="not deprecated">
  78708. </method>
  78709. <method name="valueOf" return="org.apache.hadoop.tools.distcp2.DistCpOptionSwitch"
  78710. abstract="false" native="false" synchronized="false"
  78711. static="true" final="false" visibility="public"
  78712. deprecated="not deprecated">
  78713. <param name="name" type="java.lang.String"/>
  78714. </method>
  78715. <method name="getConfigLabel" return="java.lang.String"
  78716. abstract="false" native="false" synchronized="false"
  78717. static="false" final="false" visibility="public"
  78718. deprecated="not deprecated">
  78719. <doc>
  78720. <![CDATA[Get Configuration label for the option
  78721. @return configuration label name]]>
  78722. </doc>
  78723. </method>
  78724. <method name="getOption" return="org.apache.commons.cli.Option"
  78725. abstract="false" native="false" synchronized="false"
  78726. static="false" final="false" visibility="public"
  78727. deprecated="not deprecated">
  78728. <doc>
  78729. <![CDATA[Get CLI Option corresponding to the distcp option
  78730. @return option]]>
  78731. </doc>
  78732. </method>
  78733. <method name="getSwitch" return="java.lang.String"
  78734. abstract="false" native="false" synchronized="false"
  78735. static="false" final="false" visibility="public"
  78736. deprecated="not deprecated">
  78737. <doc>
  78738. <![CDATA[Get Switch symbol
  78739. @return switch symbol char]]>
  78740. </doc>
  78741. </method>
  78742. <method name="toString" return="java.lang.String"
  78743. abstract="false" native="false" synchronized="false"
  78744. static="false" final="false" visibility="public"
  78745. deprecated="not deprecated">
  78746. </method>
  78747. <method name="addToConf"
  78748. abstract="false" native="false" synchronized="false"
  78749. static="true" final="false" visibility="public"
  78750. deprecated="not deprecated">
  78751. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  78752. <param name="option" type="org.apache.hadoop.tools.distcp2.DistCpOptionSwitch"/>
  78753. <param name="value" type="java.lang.String"/>
  78754. <doc>
  78755. <![CDATA[Helper function to add an option to hadoop configuration object
  78756. @param conf - Configuration object to include the option
  78757. @param option - Option to add
  78758. @param value - Value]]>
  78759. </doc>
  78760. </method>
  78761. <method name="addToConf"
  78762. abstract="false" native="false" synchronized="false"
  78763. static="true" final="false" visibility="public"
  78764. deprecated="not deprecated">
  78765. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  78766. <param name="option" type="org.apache.hadoop.tools.distcp2.DistCpOptionSwitch"/>
  78767. <doc>
  78768. <![CDATA[Helper function to set an option to hadoop configuration object
  78769. @param conf - Configuration object to include the option
  78770. @param option - Option to add]]>
  78771. </doc>
  78772. </method>
  78773. <field name="IGNORE_FAILURES" type="org.apache.hadoop.tools.distcp2.DistCpOptionSwitch"
  78774. transient="false" volatile="false"
  78775. static="true" final="true" visibility="public"
  78776. deprecated="not deprecated">
  78777. <doc>
  78778. <![CDATA[Ignores any failures during copy, and continues with rest.
  78779. Logs failures in a file]]>
  78780. </doc>
  78781. </field>
  78782. <field name="PRESERVE_STATUS" type="org.apache.hadoop.tools.distcp2.DistCpOptionSwitch"
  78783. transient="false" volatile="false"
  78784. static="true" final="true" visibility="public"
  78785. deprecated="not deprecated">
  78786. <doc>
  78787. <![CDATA[Preserves status of file/path in the target.
  78788. Default behavior with -p, is to preserve replication,
  78789. block size, user, group and permission on the target file
  78790. If any of the optional switches are present among rbugp, then
  78791. only the corresponding file attribute is preserved]]>
  78792. </doc>
  78793. </field>
  78794. <field name="SYNC_FOLDERS" type="org.apache.hadoop.tools.distcp2.DistCpOptionSwitch"
  78795. transient="false" volatile="false"
  78796. static="true" final="true" visibility="public"
  78797. deprecated="not deprecated">
  78798. <doc>
  78799. <![CDATA[Update target location by copying only files that are missing
  78800. in the target. This can be used to periodically sync two folders
  78801. across source and target. Typically used with DELETE_MISSING
  78802. Incompatible with ATOMIC_COMMIT]]>
  78803. </doc>
  78804. </field>
  78805. <field name="DELETE_MISSING" type="org.apache.hadoop.tools.distcp2.DistCpOptionSwitch"
  78806. transient="false" volatile="false"
  78807. static="true" final="true" visibility="public"
  78808. deprecated="not deprecated">
  78809. <doc>
  78810. <![CDATA[Deletes missing files in target that are missing from source
  78811. This allows the target to be in sync with the source contents
  78812. Typically used in conjunction with SYNC_FOLDERS
  78813. Incompatible with ATOMIC_COMMIT]]>
  78814. </doc>
  78815. </field>
  78816. <field name="SSL_CONF" type="org.apache.hadoop.tools.distcp2.DistCpOptionSwitch"
  78817. transient="false" volatile="false"
  78818. static="true" final="true" visibility="public"
  78819. deprecated="not deprecated">
  78820. <doc>
  78821. <![CDATA[Configuration file to use with hftps:// for securely copying
  78822. files across clusters. Typically the configuration file contains
  78823. truststore/keystore information such as location, password and type]]>
  78824. </doc>
  78825. </field>
  78826. <field name="MAX_MAPS" type="org.apache.hadoop.tools.distcp2.DistCpOptionSwitch"
  78827. transient="false" volatile="false"
  78828. static="true" final="true" visibility="public"
  78829. deprecated="not deprecated">
  78830. <doc>
  78831. <![CDATA[Max number of maps to use during copy. DistCp will split work
  78832. as equally as possible among these maps]]>
  78833. </doc>
  78834. </field>
  78835. <field name="SOURCE_FILE_LISTING" type="org.apache.hadoop.tools.distcp2.DistCpOptionSwitch"
  78836. transient="false" volatile="false"
  78837. static="true" final="true" visibility="public"
  78838. deprecated="not deprecated">
  78839. <doc>
  78840. <![CDATA[Source file listing can be provided to DistCp in a file.
  78841. This allows DistCp to copy random list of files from source
  78842. and copy them to target]]>
  78843. </doc>
  78844. </field>
  78845. <field name="ATOMIC_COMMIT" type="org.apache.hadoop.tools.distcp2.DistCpOptionSwitch"
  78846. transient="false" volatile="false"
  78847. static="true" final="true" visibility="public"
  78848. deprecated="not deprecated">
  78849. <doc>
  78850. <![CDATA[Copy all the source files and commit them atomically to the target
  78851. This is typically useful in cases where there is a process
  78852. polling for availability of a file/dir. This option is incompatible
  78853. with SYNC_FOLDERS & DELETE_MISSING]]>
  78854. </doc>
  78855. </field>
  78856. <field name="WORK_PATH" type="org.apache.hadoop.tools.distcp2.DistCpOptionSwitch"
  78857. transient="false" volatile="false"
  78858. static="true" final="true" visibility="public"
  78859. deprecated="not deprecated">
  78860. <doc>
  78861. <![CDATA[Work path to be used only in conjunction in Atomic commit]]>
  78862. </doc>
  78863. </field>
  78864. <field name="LOG_PATH" type="org.apache.hadoop.tools.distcp2.DistCpOptionSwitch"
  78865. transient="false" volatile="false"
  78866. static="true" final="true" visibility="public"
  78867. deprecated="not deprecated">
  78868. <doc>
  78869. <![CDATA[Log path where distcp output logs are written to]]>
  78870. </doc>
  78871. </field>
  78872. <field name="COPY_STRATEGY" type="org.apache.hadoop.tools.distcp2.DistCpOptionSwitch"
  78873. transient="false" volatile="false"
  78874. static="true" final="true" visibility="public"
  78875. deprecated="not deprecated">
  78876. <doc>
  78877. <![CDATA[Copy strategy is use. This could be dynamic or uniform size etc.
  78878. DistCp would use an appropriate input format based on this.]]>
  78879. </doc>
  78880. </field>
  78881. <field name="SKIP_CRC" type="org.apache.hadoop.tools.distcp2.DistCpOptionSwitch"
  78882. transient="false" volatile="false"
  78883. static="true" final="true" visibility="public"
  78884. deprecated="not deprecated">
  78885. <doc>
  78886. <![CDATA[Skip CRC checks between source and target, when determining what
  78887. files need to be copied.]]>
  78888. </doc>
  78889. </field>
  78890. <field name="OVERWRITE" type="org.apache.hadoop.tools.distcp2.DistCpOptionSwitch"
  78891. transient="false" volatile="false"
  78892. static="true" final="true" visibility="public"
  78893. deprecated="not deprecated">
  78894. <doc>
  78895. <![CDATA[Overwrite target-files unconditionally.]]>
  78896. </doc>
  78897. </field>
  78898. <field name="BLOCKING" type="org.apache.hadoop.tools.distcp2.DistCpOptionSwitch"
  78899. transient="false" volatile="false"
  78900. static="true" final="true" visibility="public"
  78901. deprecated="not deprecated">
  78902. <doc>
  78903. <![CDATA[Should DisctpExecution be blocking]]>
  78904. </doc>
  78905. </field>
  78906. <field name="FILE_LIMIT" type="org.apache.hadoop.tools.distcp2.DistCpOptionSwitch"
  78907. transient="false" volatile="false"
  78908. static="true" final="true" visibility="public"
  78909. deprecated="not deprecated">
  78910. </field>
  78911. <field name="SIZE_LIMIT" type="org.apache.hadoop.tools.distcp2.DistCpOptionSwitch"
  78912. transient="false" volatile="false"
  78913. static="true" final="true" visibility="public"
  78914. deprecated="not deprecated">
  78915. </field>
  78916. <field name="BANDWIDTH" type="org.apache.hadoop.tools.distcp2.DistCpOptionSwitch"
  78917. transient="false" volatile="false"
  78918. static="true" final="true" visibility="public"
  78919. deprecated="not deprecated">
  78920. <doc>
  78921. <![CDATA[Specify bandwidth per map in MB]]>
  78922. </doc>
  78923. </field>
  78924. <doc>
  78925. <![CDATA[Enumeration mapping configuration keys to distcp command line
  78926. options.]]>
  78927. </doc>
  78928. </class>
  78929. <!-- end class org.apache.hadoop.tools.distcp2.DistCpOptionSwitch -->
  78930. <!-- start class org.apache.hadoop.tools.distcp2.FileBasedCopyListing -->
  78931. <class name="FileBasedCopyListing" extends="org.apache.hadoop.tools.distcp2.CopyListing"
  78932. abstract="false"
  78933. static="false" final="false" visibility="public"
  78934. deprecated="not deprecated">
  78935. <constructor name="FileBasedCopyListing" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.security.Credentials"
  78936. static="false" final="false" visibility="public"
  78937. deprecated="not deprecated">
  78938. <doc>
  78939. <![CDATA[Constructor, to initialize base-class.
  78940. @param configuration The input Configuration object.
  78941. @param credentials - Credentials object on which the FS delegation tokens are cached. If null
  78942. delegation token caching is skipped]]>
  78943. </doc>
  78944. </constructor>
  78945. <method name="validatePaths"
  78946. abstract="false" native="false" synchronized="false"
  78947. static="false" final="false" visibility="protected"
  78948. deprecated="not deprecated">
  78949. <param name="options" type="org.apache.hadoop.tools.distcp2.DistCpOptions"/>
  78950. <exception name="IOException" type="java.io.IOException"/>
  78951. <exception name="CopyListing.InvalidInputException" type="org.apache.hadoop.tools.distcp2.CopyListing.InvalidInputException"/>
  78952. <doc>
  78953. <![CDATA[{@inheritDoc}]]>
  78954. </doc>
  78955. </method>
  78956. <method name="doBuildListing"
  78957. abstract="false" native="false" synchronized="false"
  78958. static="false" final="false" visibility="public"
  78959. deprecated="not deprecated">
  78960. <param name="pathToListFile" type="org.apache.hadoop.fs.Path"/>
  78961. <param name="options" type="org.apache.hadoop.tools.distcp2.DistCpOptions"/>
  78962. <exception name="IOException" type="java.io.IOException"/>
  78963. <doc>
  78964. <![CDATA[Implementation of CopyListing::buildListing().
  78965. Iterates over all source paths mentioned in the input-file.
  78966. @param pathToListFile Path on HDFS where the listing file is written.
  78967. @param options Input Options for DistCp (indicating source/target paths.)
  78968. @throws IOException]]>
  78969. </doc>
  78970. </method>
  78971. <method name="getBytesToCopy" return="long"
  78972. abstract="false" native="false" synchronized="false"
  78973. static="false" final="false" visibility="protected"
  78974. deprecated="not deprecated">
  78975. <doc>
  78976. <![CDATA[{@inheritDoc}]]>
  78977. </doc>
  78978. </method>
  78979. <method name="getNumberOfPaths" return="long"
  78980. abstract="false" native="false" synchronized="false"
  78981. static="false" final="false" visibility="protected"
  78982. deprecated="not deprecated">
  78983. <doc>
  78984. <![CDATA[{@inheritDoc}]]>
  78985. </doc>
  78986. </method>
  78987. <doc>
  78988. <![CDATA[FileBasedCopyListing implements the CopyListing interface,
  78989. to create the copy-listing for DistCp,
  78990. by iterating over all source paths mentioned in a specified input-file.]]>
  78991. </doc>
  78992. </class>
  78993. <!-- end class org.apache.hadoop.tools.distcp2.FileBasedCopyListing -->
  78994. <!-- start class org.apache.hadoop.tools.distcp2.GlobbedCopyListing -->
  78995. <class name="GlobbedCopyListing" extends="org.apache.hadoop.tools.distcp2.CopyListing"
  78996. abstract="false"
  78997. static="false" final="false" visibility="public"
  78998. deprecated="not deprecated">
  78999. <constructor name="GlobbedCopyListing" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.security.Credentials"
  79000. static="false" final="false" visibility="public"
  79001. deprecated="not deprecated">
  79002. <doc>
  79003. <![CDATA[Constructor, to initialize the configuration.
  79004. @param configuration The input Configuration object.
  79005. @param credentials Credentials object on which the FS delegation tokens are cached. If null
  79006. delegation token caching is skipped]]>
  79007. </doc>
  79008. </constructor>
  79009. <method name="validatePaths"
  79010. abstract="false" native="false" synchronized="false"
  79011. static="false" final="false" visibility="protected"
  79012. deprecated="not deprecated">
  79013. <param name="options" type="org.apache.hadoop.tools.distcp2.DistCpOptions"/>
  79014. <exception name="IOException" type="java.io.IOException"/>
  79015. <exception name="CopyListing.InvalidInputException" type="org.apache.hadoop.tools.distcp2.CopyListing.InvalidInputException"/>
  79016. <doc>
  79017. <![CDATA[{@inheritDoc}]]>
  79018. </doc>
  79019. </method>
  79020. <method name="doBuildListing"
  79021. abstract="false" native="false" synchronized="false"
  79022. static="false" final="false" visibility="public"
  79023. deprecated="not deprecated">
  79024. <param name="pathToListingFile" type="org.apache.hadoop.fs.Path"/>
  79025. <param name="options" type="org.apache.hadoop.tools.distcp2.DistCpOptions"/>
  79026. <exception name="IOException" type="java.io.IOException"/>
  79027. <doc>
  79028. <![CDATA[Implementation of CopyListing::buildListing().
  79029. Creates the copy listing by "globbing" all source-paths.
  79030. @param pathToListingFile The location at which the copy-listing file
  79031. is to be created.
  79032. @param options Input Options for DistCp (indicating source/target paths.)
  79033. @throws IOException]]>
  79034. </doc>
  79035. </method>
  79036. <method name="getBytesToCopy" return="long"
  79037. abstract="false" native="false" synchronized="false"
  79038. static="false" final="false" visibility="protected"
  79039. deprecated="not deprecated">
  79040. <doc>
  79041. <![CDATA[{@inheritDoc}]]>
  79042. </doc>
  79043. </method>
  79044. <method name="getNumberOfPaths" return="long"
  79045. abstract="false" native="false" synchronized="false"
  79046. static="false" final="false" visibility="protected"
  79047. deprecated="not deprecated">
  79048. <doc>
  79049. <![CDATA[{@inheritDoc}]]>
  79050. </doc>
  79051. </method>
  79052. <doc>
  79053. <![CDATA[GlobbedCopyListing implements the CopyListing interface, to create the copy
  79054. listing-file by "globbing" all specified source paths (wild-cards and all.)]]>
  79055. </doc>
  79056. </class>
  79057. <!-- end class org.apache.hadoop.tools.distcp2.GlobbedCopyListing -->
  79058. <!-- start class org.apache.hadoop.tools.distcp2.OptionsParser -->
  79059. <class name="OptionsParser" extends="java.lang.Object"
  79060. abstract="false"
  79061. static="false" final="false" visibility="public"
  79062. deprecated="not deprecated">
  79063. <constructor name="OptionsParser"
  79064. static="false" final="false" visibility="public"
  79065. deprecated="not deprecated">
  79066. </constructor>
  79067. <method name="parse" return="org.apache.hadoop.tools.distcp2.DistCpOptions"
  79068. abstract="false" native="false" synchronized="false"
  79069. static="true" final="false" visibility="public"
  79070. deprecated="not deprecated">
  79071. <param name="args" type="java.lang.String[]"/>
  79072. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  79073. <doc>
  79074. <![CDATA[The parse method parses the command-line options, and creates
  79075. a corresponding Options object.
  79076. @param args Command-line arguments (excluding the options consumed
  79077. by the GenericOptionsParser).
  79078. @return The Options object, corresponding to the specified command-line.
  79079. @throws IllegalArgumentException: Thrown if the parse fails.]]>
  79080. </doc>
  79081. </method>
  79082. <method name="usage"
  79083. abstract="false" native="false" synchronized="false"
  79084. static="true" final="false" visibility="public"
  79085. deprecated="not deprecated">
  79086. </method>
  79087. <doc>
  79088. <![CDATA[The OptionsParser parses out the command-line options passed to DistCp,
  79089. and interprets those specific to DistCp, to create an Options object.]]>
  79090. </doc>
  79091. </class>
  79092. <!-- end class org.apache.hadoop.tools.distcp2.OptionsParser -->
  79093. <!-- start class org.apache.hadoop.tools.distcp2.SimpleCopyListing -->
  79094. <class name="SimpleCopyListing" extends="org.apache.hadoop.tools.distcp2.CopyListing"
  79095. abstract="false"
  79096. static="false" final="false" visibility="public"
  79097. deprecated="not deprecated">
  79098. <constructor name="SimpleCopyListing" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.security.Credentials"
  79099. static="false" final="false" visibility="protected"
  79100. deprecated="not deprecated">
  79101. <doc>
  79102. <![CDATA[Protected constructor, to initialize configuration.
  79103. @param configuration The input configuration, with which the source/target FileSystems may be accessed.
  79104. @param credentials - Credentials object on which the FS delegation tokens are cached. If null
  79105. delegation token caching is skipped]]>
  79106. </doc>
  79107. </constructor>
  79108. <method name="validatePaths"
  79109. abstract="false" native="false" synchronized="false"
  79110. static="false" final="false" visibility="protected"
  79111. deprecated="not deprecated">
  79112. <param name="options" type="org.apache.hadoop.tools.distcp2.DistCpOptions"/>
  79113. <exception name="IOException" type="java.io.IOException"/>
  79114. <exception name="CopyListing.InvalidInputException" type="org.apache.hadoop.tools.distcp2.CopyListing.InvalidInputException"/>
  79115. </method>
  79116. <method name="doBuildListing"
  79117. abstract="false" native="false" synchronized="false"
  79118. static="false" final="false" visibility="public"
  79119. deprecated="not deprecated">
  79120. <param name="pathToListingFile" type="org.apache.hadoop.fs.Path"/>
  79121. <param name="options" type="org.apache.hadoop.tools.distcp2.DistCpOptions"/>
  79122. <exception name="IOException" type="java.io.IOException"/>
  79123. <doc>
  79124. <![CDATA[{@inheritDoc}]]>
  79125. </doc>
  79126. </method>
  79127. <method name="shouldCopy" return="boolean"
  79128. abstract="false" native="false" synchronized="false"
  79129. static="false" final="false" visibility="protected"
  79130. deprecated="not deprecated">
  79131. <param name="path" type="org.apache.hadoop.fs.Path"/>
  79132. <param name="options" type="org.apache.hadoop.tools.distcp2.DistCpOptions"/>
  79133. <doc>
  79134. <![CDATA[Provide an option to skip copy of a path, Allows for exclusion
  79135. of files such as {@link org.apache.hadoop.mapreduce.lib.output.FileOutputCommitter#SUCCEEDED_FILE_NAME}
  79136. @param path - Path being considered for copy while building the file listing
  79137. @param options - Input options passed during DistCp invocation
  79138. @return - True if the path should be considered for copy, false otherwise]]>
  79139. </doc>
  79140. </method>
  79141. <method name="getBytesToCopy" return="long"
  79142. abstract="false" native="false" synchronized="false"
  79143. static="false" final="false" visibility="protected"
  79144. deprecated="not deprecated">
  79145. <doc>
  79146. <![CDATA[{@inheritDoc}]]>
  79147. </doc>
  79148. </method>
  79149. <method name="getNumberOfPaths" return="long"
  79150. abstract="false" native="false" synchronized="false"
  79151. static="false" final="false" visibility="protected"
  79152. deprecated="not deprecated">
  79153. <doc>
  79154. <![CDATA[{@inheritDoc}]]>
  79155. </doc>
  79156. </method>
  79157. <doc>
  79158. <![CDATA[The SimpleCopyListing is responsible for making the exhaustive list of
  79159. all files/directories under its specified list of input-paths.
  79160. These are written into the specified copy-listing file.
  79161. Note: The SimpleCopyListing doesn't handle wild-cards in the input-paths.]]>
  79162. </doc>
  79163. </class>
  79164. <!-- end class org.apache.hadoop.tools.distcp2.SimpleCopyListing -->
  79165. </package>
  79166. <package name="org.apache.hadoop.tools.distcp2.mapred">
  79167. <!-- start class org.apache.hadoop.tools.distcp2.mapred.CopyCommitter -->
  79168. <class name="CopyCommitter" extends="org.apache.hadoop.mapreduce.lib.output.FileOutputCommitter"
  79169. abstract="false"
  79170. static="false" final="false" visibility="public"
  79171. deprecated="not deprecated">
  79172. <constructor name="CopyCommitter" type="org.apache.hadoop.fs.Path, org.apache.hadoop.mapreduce.TaskAttemptContext"
  79173. static="false" final="false" visibility="public"
  79174. deprecated="not deprecated">
  79175. <exception name="IOException" type="java.io.IOException"/>
  79176. <doc>
  79177. <![CDATA[Create a output committer
  79178. @param outputPath the job's output path
  79179. @param context the task's context
  79180. @throws IOException - Exception if any]]>
  79181. </doc>
  79182. </constructor>
  79183. <method name="commitJob"
  79184. abstract="false" native="false" synchronized="false"
  79185. static="false" final="false" visibility="public"
  79186. deprecated="not deprecated">
  79187. <param name="jobContext" type="org.apache.hadoop.mapreduce.JobContext"/>
  79188. <exception name="IOException" type="java.io.IOException"/>
  79189. <doc>
  79190. <![CDATA[@inheritDoc]]>
  79191. </doc>
  79192. </method>
  79193. <method name="abortJob"
  79194. abstract="false" native="false" synchronized="false"
  79195. static="false" final="false" visibility="public"
  79196. deprecated="not deprecated">
  79197. <param name="jobContext" type="org.apache.hadoop.mapreduce.JobContext"/>
  79198. <param name="state" type="org.apache.hadoop.mapreduce.JobStatus.State"/>
  79199. <exception name="IOException" type="java.io.IOException"/>
  79200. <doc>
  79201. <![CDATA[@inheritDoc]]>
  79202. </doc>
  79203. </method>
  79204. <doc>
  79205. <![CDATA[The CopyCommitter class is DistCp's OutputCommitter implementation. It is
  79206. responsible for handling the completion/cleanup of the DistCp run.
  79207. Specifically, it does the following:
  79208. 1. Cleanup of the meta-folder (where DistCp maintains its file-list, etc.)
  79209. 2. Preservation of user/group/replication-factor on any directories that
  79210. have been copied. (Files are taken care of in their map-tasks.)
  79211. 3. Atomic-move of data from the temporary work-folder to the final path
  79212. (if atomic-commit was opted for).
  79213. 4. Deletion of files from the target that are missing at source (if opted for).
  79214. 5. Cleanup of any partially copied files, from previous, failed attempts.]]>
  79215. </doc>
  79216. </class>
  79217. <!-- end class org.apache.hadoop.tools.distcp2.mapred.CopyCommitter -->
  79218. <!-- start class org.apache.hadoop.tools.distcp2.mapred.CopyMapper -->
  79219. <class name="CopyMapper" extends="org.apache.hadoop.mapreduce.Mapper"
  79220. abstract="false"
  79221. static="false" final="false" visibility="public"
  79222. deprecated="not deprecated">
  79223. <constructor name="CopyMapper"
  79224. static="false" final="false" visibility="public"
  79225. deprecated="not deprecated">
  79226. </constructor>
  79227. <method name="setup"
  79228. abstract="false" native="false" synchronized="false"
  79229. static="false" final="false" visibility="public"
  79230. deprecated="not deprecated">
  79231. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  79232. <exception name="IOException" type="java.io.IOException"/>
  79233. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  79234. <doc>
  79235. <![CDATA[Implementation of the Mapper::setup() method. This extracts the DistCp-
  79236. options specified in the Job's configuration, to set up the Job.
  79237. @param context Mapper's context.
  79238. @throws IOException On IO failure.
  79239. @throws InterruptedException If the job is interrupted.]]>
  79240. </doc>
  79241. </method>
  79242. <method name="map"
  79243. abstract="false" native="false" synchronized="false"
  79244. static="false" final="false" visibility="public"
  79245. deprecated="not deprecated">
  79246. <param name="relPath" type="org.apache.hadoop.io.Text"/>
  79247. <param name="sourceFileStatus" type="org.apache.hadoop.fs.FileStatus"/>
  79248. <param name="context" type="org.apache.hadoop.mapreduce.Mapper.Context"/>
  79249. <exception name="IOException" type="java.io.IOException"/>
  79250. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  79251. <doc>
  79252. <![CDATA[Implementation of the Mapper<>::map(). Does the copy.
  79253. @param relPath The target path.
  79254. @param sourceFileStatus The source path.
  79255. @throws IOException]]>
  79256. </doc>
  79257. </method>
  79258. <doc>
  79259. <![CDATA[Mapper class that executes the DistCp copy operation.
  79260. Implements the o.a.h.mapreduce.Mapper<> interface.]]>
  79261. </doc>
  79262. </class>
  79263. <!-- end class org.apache.hadoop.tools.distcp2.mapred.CopyMapper -->
  79264. <!-- start class org.apache.hadoop.tools.distcp2.mapred.CopyMapper.Counter -->
  79265. <class name="CopyMapper.Counter" extends="java.lang.Enum"
  79266. abstract="false"
  79267. static="true" final="true" visibility="public"
  79268. deprecated="not deprecated">
  79269. <method name="values" return="org.apache.hadoop.tools.distcp2.mapred.CopyMapper.Counter[]"
  79270. abstract="false" native="false" synchronized="false"
  79271. static="true" final="false" visibility="public"
  79272. deprecated="not deprecated">
  79273. </method>
  79274. <method name="valueOf" return="org.apache.hadoop.tools.distcp2.mapred.CopyMapper.Counter"
  79275. abstract="false" native="false" synchronized="false"
  79276. static="true" final="false" visibility="public"
  79277. deprecated="not deprecated">
  79278. <param name="name" type="java.lang.String"/>
  79279. </method>
  79280. <field name="COPY" type="org.apache.hadoop.tools.distcp2.mapred.CopyMapper.Counter"
  79281. transient="false" volatile="false"
  79282. static="true" final="true" visibility="public"
  79283. deprecated="not deprecated">
  79284. </field>
  79285. <field name="SKIP" type="org.apache.hadoop.tools.distcp2.mapred.CopyMapper.Counter"
  79286. transient="false" volatile="false"
  79287. static="true" final="true" visibility="public"
  79288. deprecated="not deprecated">
  79289. </field>
  79290. <field name="FAIL" type="org.apache.hadoop.tools.distcp2.mapred.CopyMapper.Counter"
  79291. transient="false" volatile="false"
  79292. static="true" final="true" visibility="public"
  79293. deprecated="not deprecated">
  79294. </field>
  79295. <field name="BYTESCOPIED" type="org.apache.hadoop.tools.distcp2.mapred.CopyMapper.Counter"
  79296. transient="false" volatile="false"
  79297. static="true" final="true" visibility="public"
  79298. deprecated="not deprecated">
  79299. </field>
  79300. <field name="BYTESEXPECTED" type="org.apache.hadoop.tools.distcp2.mapred.CopyMapper.Counter"
  79301. transient="false" volatile="false"
  79302. static="true" final="true" visibility="public"
  79303. deprecated="not deprecated">
  79304. </field>
  79305. <field name="BYTESFAILED" type="org.apache.hadoop.tools.distcp2.mapred.CopyMapper.Counter"
  79306. transient="false" volatile="false"
  79307. static="true" final="true" visibility="public"
  79308. deprecated="not deprecated">
  79309. </field>
  79310. <field name="BYTESSKIPPED" type="org.apache.hadoop.tools.distcp2.mapred.CopyMapper.Counter"
  79311. transient="false" volatile="false"
  79312. static="true" final="true" visibility="public"
  79313. deprecated="not deprecated">
  79314. </field>
  79315. <doc>
  79316. <![CDATA[Hadoop counters for the DistCp CopyMapper.
  79317. (These have been kept identical to the old DistCp,
  79318. for backward compatibility.)]]>
  79319. </doc>
  79320. </class>
  79321. <!-- end class org.apache.hadoop.tools.distcp2.mapred.CopyMapper.Counter -->
  79322. <!-- start class org.apache.hadoop.tools.distcp2.mapred.CopyOutputFormat -->
  79323. <class name="CopyOutputFormat" extends="org.apache.hadoop.mapreduce.lib.output.TextOutputFormat"
  79324. abstract="false"
  79325. static="false" final="false" visibility="public"
  79326. deprecated="not deprecated">
  79327. <constructor name="CopyOutputFormat"
  79328. static="false" final="false" visibility="public"
  79329. deprecated="not deprecated">
  79330. </constructor>
  79331. <method name="setWorkingDirectory"
  79332. abstract="false" native="false" synchronized="false"
  79333. static="true" final="false" visibility="public"
  79334. deprecated="not deprecated">
  79335. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  79336. <param name="workingDirectory" type="org.apache.hadoop.fs.Path"/>
  79337. <doc>
  79338. <![CDATA[Setter for the working directory for DistCp (where files will be copied
  79339. before they are moved to the final commit-directory.)
  79340. @param job The Job on whose configuration the working-directory is to be set.
  79341. @param workingDirectory The path to use as the working directory.]]>
  79342. </doc>
  79343. </method>
  79344. <method name="setCommitDirectory"
  79345. abstract="false" native="false" synchronized="false"
  79346. static="true" final="false" visibility="public"
  79347. deprecated="not deprecated">
  79348. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  79349. <param name="commitDirectory" type="org.apache.hadoop.fs.Path"/>
  79350. <doc>
  79351. <![CDATA[Setter for the final directory for DistCp (where files copied will be
  79352. moved, atomically.)
  79353. @param job The Job on whose configuration the working-directory is to be set.
  79354. @param commitDirectory The path to use for final commit.]]>
  79355. </doc>
  79356. </method>
  79357. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  79358. abstract="false" native="false" synchronized="false"
  79359. static="true" final="false" visibility="public"
  79360. deprecated="not deprecated">
  79361. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  79362. <doc>
  79363. <![CDATA[Getter for the working directory.
  79364. @param job The Job from whose configuration the working-directory is to
  79365. be retrieved.
  79366. @return The working-directory Path.]]>
  79367. </doc>
  79368. </method>
  79369. <method name="getCommitDirectory" return="org.apache.hadoop.fs.Path"
  79370. abstract="false" native="false" synchronized="false"
  79371. static="true" final="false" visibility="public"
  79372. deprecated="not deprecated">
  79373. <param name="job" type="org.apache.hadoop.mapreduce.Job"/>
  79374. <doc>
  79375. <![CDATA[Getter for the final commit-directory.
  79376. @param job The Job from whose configuration the commit-directory is to be
  79377. retrieved.
  79378. @return The commit-directory Path.]]>
  79379. </doc>
  79380. </method>
  79381. <method name="getOutputCommitter" return="org.apache.hadoop.mapreduce.OutputCommitter"
  79382. abstract="false" native="false" synchronized="false"
  79383. static="false" final="false" visibility="public"
  79384. deprecated="not deprecated">
  79385. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  79386. <exception name="IOException" type="java.io.IOException"/>
  79387. <doc>
  79388. <![CDATA[@inheritDoc]]>
  79389. </doc>
  79390. </method>
  79391. <method name="checkOutputSpecs"
  79392. abstract="false" native="false" synchronized="false"
  79393. static="false" final="false" visibility="public"
  79394. deprecated="not deprecated">
  79395. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  79396. <exception name="IOException" type="java.io.IOException"/>
  79397. <doc>
  79398. <![CDATA[@inheritDoc]]>
  79399. </doc>
  79400. </method>
  79401. <doc>
  79402. <![CDATA[The CopyOutputFormat is the Hadoop OutputFormat used in DistCp.
  79403. It sets up the Job's Configuration (in the Job-Context) with the settings
  79404. for the work-directory, final commit-directory, etc. It also sets the right
  79405. output-committer.
  79406. @param <K>
  79407. @param <V>]]>
  79408. </doc>
  79409. </class>
  79410. <!-- end class org.apache.hadoop.tools.distcp2.mapred.CopyOutputFormat -->
  79411. <!-- start class org.apache.hadoop.tools.distcp2.mapred.RetriableDirectoryCreateCommand -->
  79412. <class name="RetriableDirectoryCreateCommand" extends="org.apache.hadoop.tools.distcp2.util.RetriableCommand"
  79413. abstract="false"
  79414. static="false" final="false" visibility="public"
  79415. deprecated="not deprecated">
  79416. <constructor name="RetriableDirectoryCreateCommand" type="java.lang.String"
  79417. static="false" final="false" visibility="public"
  79418. deprecated="not deprecated">
  79419. <doc>
  79420. <![CDATA[Constructor, taking a description of the action.
  79421. @param description Verbose description of the copy operation.]]>
  79422. </doc>
  79423. </constructor>
  79424. <method name="doExecute" return="java.lang.Object"
  79425. abstract="false" native="false" synchronized="false"
  79426. static="false" final="false" visibility="protected"
  79427. deprecated="not deprecated">
  79428. <param name="arguments" type="java.lang.Object[]"/>
  79429. <exception name="Exception" type="java.lang.Exception"/>
  79430. <doc>
  79431. <![CDATA[Implementation of RetriableCommand::doExecute().
  79432. This implements the actual mkdirs() functionality.
  79433. @param arguments Argument-list to the command.
  79434. @return Boolean. True, if the directory could be created successfully.
  79435. @throws Exception IOException, on failure to create the directory.]]>
  79436. </doc>
  79437. </method>
  79438. <doc>
  79439. <![CDATA[This class extends Retriable command to implement the creation of directories
  79440. with retries on failure.]]>
  79441. </doc>
  79442. </class>
  79443. <!-- end class org.apache.hadoop.tools.distcp2.mapred.RetriableDirectoryCreateCommand -->
  79444. <!-- start class org.apache.hadoop.tools.distcp2.mapred.RetriableFileCopyCommand -->
  79445. <class name="RetriableFileCopyCommand" extends="org.apache.hadoop.tools.distcp2.util.RetriableCommand"
  79446. abstract="false"
  79447. static="false" final="false" visibility="public"
  79448. deprecated="not deprecated">
  79449. <constructor name="RetriableFileCopyCommand" type="java.lang.String"
  79450. static="false" final="false" visibility="public"
  79451. deprecated="not deprecated">
  79452. <doc>
  79453. <![CDATA[Constructor, taking a description of the action.
  79454. @param description Verbose description of the copy operation.]]>
  79455. </doc>
  79456. </constructor>
  79457. <constructor name="RetriableFileCopyCommand" type="boolean, java.lang.String"
  79458. static="false" final="false" visibility="public"
  79459. deprecated="not deprecated">
  79460. <doc>
  79461. <![CDATA[Create a RetriableFileCopyCommand.
  79462. @param skipCrc Whether to skip the crc check.
  79463. @param description A verbose description of the copy operation.]]>
  79464. </doc>
  79465. </constructor>
  79466. <method name="doExecute" return="java.lang.Object"
  79467. abstract="false" native="false" synchronized="false"
  79468. static="false" final="false" visibility="protected"
  79469. deprecated="not deprecated">
  79470. <param name="arguments" type="java.lang.Object[]"/>
  79471. <exception name="Exception" type="java.lang.Exception"/>
  79472. <doc>
  79473. <![CDATA[Implementation of RetriableCommand::doExecute().
  79474. This is the actual copy-implementation.
  79475. @param arguments Argument-list to the command.
  79476. @return Number of bytes copied.
  79477. @throws Exception: CopyReadException, if there are read-failures. All other
  79478. failures are IOExceptions.]]>
  79479. </doc>
  79480. </method>
  79481. <doc>
  79482. <![CDATA[This class extends RetriableCommand to implement the copy of files,
  79483. with retries on failure.]]>
  79484. </doc>
  79485. </class>
  79486. <!-- end class org.apache.hadoop.tools.distcp2.mapred.RetriableFileCopyCommand -->
  79487. <!-- start class org.apache.hadoop.tools.distcp2.mapred.RetriableFileCopyCommand.CopyReadException -->
  79488. <class name="RetriableFileCopyCommand.CopyReadException" extends="java.io.IOException"
  79489. abstract="false"
  79490. static="true" final="false" visibility="public"
  79491. deprecated="not deprecated">
  79492. <constructor name="RetriableFileCopyCommand.CopyReadException" type="java.lang.Throwable"
  79493. static="false" final="false" visibility="public"
  79494. deprecated="not deprecated">
  79495. </constructor>
  79496. <doc>
  79497. <![CDATA[Special subclass of IOException. This is used to distinguish read-operation
  79498. failures from other kinds of IOExceptions.
  79499. The failure to read from source is dealt with specially, in the CopyMapper.
  79500. Such failures may be skipped if the DistCpOptions indicate so.
  79501. Write failures are intolerable, and amount to CopyMapper failure.]]>
  79502. </doc>
  79503. </class>
  79504. <!-- end class org.apache.hadoop.tools.distcp2.mapred.RetriableFileCopyCommand.CopyReadException -->
  79505. <!-- start class org.apache.hadoop.tools.distcp2.mapred.UniformSizeInputFormat -->
  79506. <class name="UniformSizeInputFormat" extends="org.apache.hadoop.mapreduce.InputFormat"
  79507. abstract="false"
  79508. static="false" final="false" visibility="public"
  79509. deprecated="not deprecated">
  79510. <constructor name="UniformSizeInputFormat"
  79511. static="false" final="false" visibility="public"
  79512. deprecated="not deprecated">
  79513. </constructor>
  79514. <method name="getSplits" return="java.util.List"
  79515. abstract="false" native="false" synchronized="false"
  79516. static="false" final="false" visibility="public"
  79517. deprecated="not deprecated">
  79518. <param name="context" type="org.apache.hadoop.mapreduce.JobContext"/>
  79519. <exception name="IOException" type="java.io.IOException"/>
  79520. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  79521. <doc>
  79522. <![CDATA[Implementation of InputFormat::getSplits(). Returns a list of InputSplits,
  79523. such that the number of bytes to be copied for all the splits are
  79524. approximately equal.
  79525. @param context JobContext for the job.
  79526. @return The list of uniformly-distributed input-splits.
  79527. @throws IOException: On failure.
  79528. @throws InterruptedException]]>
  79529. </doc>
  79530. </method>
  79531. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  79532. abstract="false" native="false" synchronized="false"
  79533. static="false" final="false" visibility="public"
  79534. deprecated="not deprecated">
  79535. <param name="split" type="org.apache.hadoop.mapreduce.InputSplit"/>
  79536. <param name="context" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  79537. <exception name="IOException" type="java.io.IOException"/>
  79538. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  79539. <doc>
  79540. <![CDATA[Implementation of InputFormat::createRecordReader().
  79541. @param split The split for which the RecordReader is sought.
  79542. @param context The context of the current task-attempt.
  79543. @return A SequenceFileRecordReader instance, (since the copy-listing is a
  79544. simple sequence-file.)
  79545. @throws IOException
  79546. @throws InterruptedException]]>
  79547. </doc>
  79548. </method>
  79549. <doc>
  79550. <![CDATA[UniformSizeInputFormat extends the InputFormat<> class, to produce
  79551. input-splits for DistCp.
  79552. It looks at the copy-listing and groups the contents into input-splits such
  79553. that the total-number of bytes to be copied for each input split is
  79554. uniform.]]>
  79555. </doc>
  79556. </class>
  79557. <!-- end class org.apache.hadoop.tools.distcp2.mapred.UniformSizeInputFormat -->
  79558. </package>
  79559. <package name="org.apache.hadoop.tools.distcp2.mapred.lib">
  79560. <!-- start class org.apache.hadoop.tools.distcp2.mapred.lib.DynamicInputFormat -->
  79561. <class name="DynamicInputFormat" extends="org.apache.hadoop.mapreduce.InputFormat"
  79562. abstract="false"
  79563. static="false" final="false" visibility="public"
  79564. deprecated="not deprecated">
  79565. <constructor name="DynamicInputFormat"
  79566. static="false" final="false" visibility="public"
  79567. deprecated="not deprecated">
  79568. </constructor>
  79569. <method name="getSplits" return="java.util.List"
  79570. abstract="false" native="false" synchronized="false"
  79571. static="false" final="false" visibility="public"
  79572. deprecated="not deprecated">
  79573. <param name="jobContext" type="org.apache.hadoop.mapreduce.JobContext"/>
  79574. <exception name="IOException" type="java.io.IOException"/>
  79575. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  79576. <doc>
  79577. <![CDATA[Implementation of InputFormat::getSplits(). This method splits up the
  79578. copy-listing file into chunks, and assigns the first batch to different
  79579. tasks.
  79580. @param jobContext JobContext for the map job.
  79581. @return The list of (empty) dynamic input-splits.
  79582. @throws IOException, on failure.
  79583. @throws InterruptedException]]>
  79584. </doc>
  79585. </method>
  79586. <method name="createRecordReader" return="org.apache.hadoop.mapreduce.RecordReader"
  79587. abstract="false" native="false" synchronized="false"
  79588. static="false" final="false" visibility="public"
  79589. deprecated="not deprecated">
  79590. <param name="inputSplit" type="org.apache.hadoop.mapreduce.InputSplit"/>
  79591. <param name="taskAttemptContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  79592. <exception name="IOException" type="java.io.IOException"/>
  79593. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  79594. <doc>
  79595. <![CDATA[Implementation of Inputformat::createRecordReader().
  79596. @param inputSplit The split for which the RecordReader is required.
  79597. @param taskAttemptContext TaskAttemptContext for the current attempt.
  79598. @return DynamicRecordReader instance.
  79599. @throws IOException, on failure.
  79600. @throws InterruptedException]]>
  79601. </doc>
  79602. </method>
  79603. <doc>
  79604. <![CDATA[DynamicInputFormat implements the "Worker pattern" for DistCp.
  79605. Rather than to split up the copy-list into a set of static splits,
  79606. the DynamicInputFormat does the following:
  79607. 1. Splits the copy-list into small chunks on the DFS.
  79608. 2. Creates a set of empty "dynamic" splits, that each consume as many chunks
  79609. as it can.
  79610. This arrangement ensures that a single slow mapper won't slow down the entire
  79611. job (since the slack will be picked up by other mappers, who consume more
  79612. chunks.)
  79613. By varying the split-ratio, one can vary chunk sizes to achieve different
  79614. performance characteristics.]]>
  79615. </doc>
  79616. </class>
  79617. <!-- end class org.apache.hadoop.tools.distcp2.mapred.lib.DynamicInputFormat -->
  79618. <!-- start class org.apache.hadoop.tools.distcp2.mapred.lib.DynamicRecordReader -->
  79619. <class name="DynamicRecordReader" extends="org.apache.hadoop.mapreduce.RecordReader"
  79620. abstract="false"
  79621. static="false" final="false" visibility="public"
  79622. deprecated="not deprecated">
  79623. <constructor name="DynamicRecordReader"
  79624. static="false" final="false" visibility="public"
  79625. deprecated="not deprecated">
  79626. </constructor>
  79627. <method name="initialize"
  79628. abstract="false" native="false" synchronized="false"
  79629. static="false" final="false" visibility="public"
  79630. deprecated="not deprecated">
  79631. <param name="inputSplit" type="org.apache.hadoop.mapreduce.InputSplit"/>
  79632. <param name="taskAttemptContext" type="org.apache.hadoop.mapreduce.TaskAttemptContext"/>
  79633. <exception name="IOException" type="java.io.IOException"/>
  79634. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  79635. <doc>
  79636. <![CDATA[Implementation for RecordReader::initialize(). Initializes the internal
  79637. RecordReader to read from chunks.
  79638. @param inputSplit The InputSplit for the map. Ignored entirely.
  79639. @param taskAttemptContext The AttemptContext.
  79640. @throws IOException, on failure.
  79641. @throws InterruptedException]]>
  79642. </doc>
  79643. </method>
  79644. <method name="nextKeyValue" return="boolean"
  79645. abstract="false" native="false" synchronized="false"
  79646. static="false" final="false" visibility="public"
  79647. deprecated="not deprecated">
  79648. <exception name="IOException" type="java.io.IOException"/>
  79649. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  79650. <doc>
  79651. <![CDATA[Implementation of RecordReader::nextValue().
  79652. Reads the contents of the current chunk and returns them. When a chunk has
  79653. been completely exhausted, an new chunk is acquired and read,
  79654. transparently.
  79655. @return True, if the nextValue() could be traversed to. False, otherwise.
  79656. @throws IOException, on failure.
  79657. @throws InterruptedException]]>
  79658. </doc>
  79659. </method>
  79660. <method name="getCurrentKey" return="java.lang.Object"
  79661. abstract="false" native="false" synchronized="false"
  79662. static="false" final="false" visibility="public"
  79663. deprecated="not deprecated">
  79664. <exception name="IOException" type="java.io.IOException"/>
  79665. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  79666. <doc>
  79667. <![CDATA[Implementation of RecordReader::getCurrentKey().
  79668. @return The key of the current record. (i.e. the source-path.)
  79669. @throws IOException, on failure.
  79670. @throws InterruptedException]]>
  79671. </doc>
  79672. </method>
  79673. <method name="getCurrentValue" return="java.lang.Object"
  79674. abstract="false" native="false" synchronized="false"
  79675. static="false" final="false" visibility="public"
  79676. deprecated="not deprecated">
  79677. <exception name="IOException" type="java.io.IOException"/>
  79678. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  79679. <doc>
  79680. <![CDATA[Implementation of RecordReader::getCurrentValue().
  79681. @return The value of the current record. (i.e. the target-path.)
  79682. @throws IOException, on failure.
  79683. @throws InterruptedException]]>
  79684. </doc>
  79685. </method>
  79686. <method name="getProgress" return="float"
  79687. abstract="false" native="false" synchronized="false"
  79688. static="false" final="false" visibility="public"
  79689. deprecated="not deprecated">
  79690. <exception name="IOException" type="java.io.IOException"/>
  79691. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  79692. <doc>
  79693. <![CDATA[Implementation of RecordReader::getProgress().
  79694. @return A fraction [0.0,1.0] indicating the progress of a DistCp mapper.
  79695. @throws IOException, on failure.
  79696. @throws InterruptedException]]>
  79697. </doc>
  79698. </method>
  79699. <method name="close"
  79700. abstract="false" native="false" synchronized="false"
  79701. static="false" final="false" visibility="public"
  79702. deprecated="not deprecated">
  79703. <exception name="IOException" type="java.io.IOException"/>
  79704. <doc>
  79705. <![CDATA[Implementation of RecordReader::close().
  79706. Closes the RecordReader.
  79707. @throws IOException, on failure.]]>
  79708. </doc>
  79709. </method>
  79710. <doc>
  79711. <![CDATA[The DynamicRecordReader is used in conjunction with the DynamicInputFormat
  79712. to implement the "Worker pattern" for DistCp.
  79713. The DynamicRecordReader is responsible for:
  79714. 1. Presenting the contents of each chunk to DistCp's mapper.
  79715. 2. Acquiring a new chunk when the current chunk has been completely consumed,
  79716. transparently.]]>
  79717. </doc>
  79718. </class>
  79719. <!-- end class org.apache.hadoop.tools.distcp2.mapred.lib.DynamicRecordReader -->
  79720. </package>
  79721. <package name="org.apache.hadoop.tools.distcp2.util">
  79722. <!-- start class org.apache.hadoop.tools.distcp2.util.DistCpUtils -->
  79723. <class name="DistCpUtils" extends="java.lang.Object"
  79724. abstract="false"
  79725. static="false" final="false" visibility="public"
  79726. deprecated="not deprecated">
  79727. <constructor name="DistCpUtils"
  79728. static="false" final="false" visibility="public"
  79729. deprecated="not deprecated">
  79730. </constructor>
  79731. <method name="getFileSize" return="long"
  79732. abstract="false" native="false" synchronized="false"
  79733. static="true" final="false" visibility="public"
  79734. deprecated="not deprecated">
  79735. <param name="path" type="org.apache.hadoop.fs.Path"/>
  79736. <param name="configuration" type="org.apache.hadoop.conf.Configuration"/>
  79737. <exception name="IOException" type="java.io.IOException"/>
  79738. <doc>
  79739. <![CDATA[Retrieves size of the file at the specified path.
  79740. @param path The path of the file whose size is sought.
  79741. @param configuration Configuration, to retrieve the appropriate FileSystem.
  79742. @return The file-size, in number of bytes.
  79743. @throws IOException, on failure.]]>
  79744. </doc>
  79745. </method>
  79746. <method name="publish"
  79747. abstract="false" native="false" synchronized="false"
  79748. static="true" final="false" visibility="public"
  79749. deprecated="not deprecated">
  79750. <param name="configuration" type="org.apache.hadoop.conf.Configuration"/>
  79751. <param name="label" type="java.lang.String"/>
  79752. <param name="value" type="java.lang.Object"/>
  79753. <doc>
  79754. <![CDATA[Utility to publish a value to a configuration.
  79755. @param configuration The Configuration to which the value must be written.
  79756. @param label The label for the value being published.
  79757. @param value The value being published.
  79758. @param <T> The type of the value.]]>
  79759. </doc>
  79760. </method>
  79761. <method name="getInt" return="int"
  79762. abstract="false" native="false" synchronized="false"
  79763. static="true" final="false" visibility="public"
  79764. deprecated="not deprecated">
  79765. <param name="configuration" type="org.apache.hadoop.conf.Configuration"/>
  79766. <param name="label" type="java.lang.String"/>
  79767. <doc>
  79768. <![CDATA[Utility to retrieve a specified key from a Configuration. Throw exception
  79769. if not found.
  79770. @param configuration The Configuration in which the key is sought.
  79771. @param label The key being sought.
  79772. @return Integer value of the key.]]>
  79773. </doc>
  79774. </method>
  79775. <method name="getNumMapTasks" return="int"
  79776. abstract="false" native="false" synchronized="false"
  79777. static="true" final="false" visibility="public"
  79778. deprecated="not deprecated">
  79779. <param name="configuration" type="org.apache.hadoop.conf.Configuration"/>
  79780. </method>
  79781. <method name="getLong" return="long"
  79782. abstract="false" native="false" synchronized="false"
  79783. static="true" final="false" visibility="public"
  79784. deprecated="not deprecated">
  79785. <param name="configuration" type="org.apache.hadoop.conf.Configuration"/>
  79786. <param name="label" type="java.lang.String"/>
  79787. <doc>
  79788. <![CDATA[Utility to retrieve a specified key from a Configuration. Throw exception
  79789. if not found.
  79790. @param configuration The Configuration in which the key is sought.
  79791. @param label The key being sought.
  79792. @return Long value of the key.]]>
  79793. </doc>
  79794. </method>
  79795. <method name="getStrategy" return="java.lang.Class"
  79796. abstract="false" native="false" synchronized="false"
  79797. static="true" final="false" visibility="public"
  79798. deprecated="not deprecated">
  79799. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  79800. <param name="options" type="org.apache.hadoop.tools.distcp2.DistCpOptions"/>
  79801. <doc>
  79802. <![CDATA[Returns the class that implements a copy strategy. Looks up the implementation for
  79803. a particular strategy from distcp-default.xml
  79804. @param conf - Configuration object
  79805. @param options - Handle to input options
  79806. @return Class implementing the strategy specified in options.]]>
  79807. </doc>
  79808. </method>
  79809. <method name="getRelativePath" return="java.lang.String"
  79810. abstract="false" native="false" synchronized="false"
  79811. static="true" final="false" visibility="public"
  79812. deprecated="not deprecated">
  79813. <param name="sourceRootPath" type="org.apache.hadoop.fs.Path"/>
  79814. <param name="childPath" type="org.apache.hadoop.fs.Path"/>
  79815. <doc>
  79816. <![CDATA[Gets relative path of child path with respect to a root path
  79817. For ex. If childPath = /tmp/abc/xyz/file and
  79818. sourceRootPath = /tmp/abc
  79819. Relative path would be /xyz/file
  79820. If childPath = /file and
  79821. sourceRootPath = /
  79822. Relative path would be /file
  79823. @param sourceRootPath - Source root path
  79824. @param childPath - Path for which relative path is required
  79825. @return - Relative portion of the child path (always prefixed with /
  79826. unless it is empty]]>
  79827. </doc>
  79828. </method>
  79829. <method name="packAttributes" return="java.lang.String"
  79830. abstract="false" native="false" synchronized="false"
  79831. static="true" final="false" visibility="public"
  79832. deprecated="not deprecated">
  79833. <param name="attributes" type="java.util.EnumSet"/>
  79834. <doc>
  79835. <![CDATA[Pack file preservation attributes into a string, containing
  79836. just the first character of each preservation attribute
  79837. @param attributes - Attribute set to preserve
  79838. @return - String containing first letters of each attribute to preserve]]>
  79839. </doc>
  79840. </method>
  79841. <method name="unpackAttributes" return="java.util.EnumSet"
  79842. abstract="false" native="false" synchronized="false"
  79843. static="true" final="false" visibility="public"
  79844. deprecated="not deprecated">
  79845. <param name="attributes" type="java.lang.String"/>
  79846. <doc>
  79847. <![CDATA[Un packs preservation attribute string containing the first character of
  79848. each preservation attribute back to a set of attributes to preserve
  79849. @param attributes - Attribute string
  79850. @return - Attribute set]]>
  79851. </doc>
  79852. </method>
  79853. <method name="preserve"
  79854. abstract="false" native="false" synchronized="false"
  79855. static="true" final="false" visibility="public"
  79856. deprecated="not deprecated">
  79857. <param name="targetFS" type="org.apache.hadoop.fs.FileSystem"/>
  79858. <param name="path" type="org.apache.hadoop.fs.Path"/>
  79859. <param name="srcFileStatus" type="org.apache.hadoop.fs.FileStatus"/>
  79860. <param name="attributes" type="java.util.EnumSet"/>
  79861. <exception name="IOException" type="java.io.IOException"/>
  79862. <doc>
  79863. <![CDATA[Preserve attribute on file matching that of the file status being sent
  79864. as argument. Barring the block size, all the other attributes are preserved
  79865. by this function
  79866. @param targetFS - File system
  79867. @param path - Path that needs to preserve original file status
  79868. @param srcFileStatus - Original file status
  79869. @param attributes - Attribute set that need to be preserved
  79870. @throws IOException - Exception if any (particularly relating to group/owner
  79871. change or any transient error)]]>
  79872. </doc>
  79873. </method>
  79874. <method name="sortListing" return="org.apache.hadoop.fs.Path"
  79875. abstract="false" native="false" synchronized="false"
  79876. static="true" final="false" visibility="public"
  79877. deprecated="not deprecated">
  79878. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  79879. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  79880. <param name="sourceListing" type="org.apache.hadoop.fs.Path"/>
  79881. <exception name="IOException" type="java.io.IOException"/>
  79882. <doc>
  79883. <![CDATA[Sort sequence file containing FileStatus and Text as key and value respecitvely
  79884. @param fs - File System
  79885. @param conf - Configuration
  79886. @param sourceListing - Source listing file
  79887. @return Path of the sorted file. Is source file with _sorted appended to the name
  79888. @throws IOException - Any exception during sort.]]>
  79889. </doc>
  79890. </method>
  79891. <method name="getFormatter" return="java.text.DecimalFormat"
  79892. abstract="false" native="false" synchronized="false"
  79893. static="true" final="false" visibility="public"
  79894. deprecated="not deprecated">
  79895. </method>
  79896. <method name="getStringDescriptionFor" return="java.lang.String"
  79897. abstract="false" native="false" synchronized="false"
  79898. static="true" final="false" visibility="public"
  79899. deprecated="not deprecated">
  79900. <param name="nBytes" type="long"/>
  79901. </method>
  79902. <method name="checksumsAreEqual" return="boolean"
  79903. abstract="false" native="false" synchronized="false"
  79904. static="true" final="false" visibility="public"
  79905. deprecated="not deprecated">
  79906. <param name="sourceFS" type="org.apache.hadoop.fs.FileSystem"/>
  79907. <param name="source" type="org.apache.hadoop.fs.Path"/>
  79908. <param name="targetFS" type="org.apache.hadoop.fs.FileSystem"/>
  79909. <param name="target" type="org.apache.hadoop.fs.Path"/>
  79910. <exception name="IOException" type="java.io.IOException"/>
  79911. <doc>
  79912. <![CDATA[Utility to compare checksums for the paths specified.
  79913. If checksums's can't be retrieved, it doesn't fail the test
  79914. Only time the comparison would fail is when checksums are
  79915. available and they don't match
  79916. @param sourceFS FileSystem for the source path.
  79917. @param source The source path.
  79918. @param targetFS FileSystem for the target path.
  79919. @param target The target path.
  79920. @return If either checksum couldn't be retrieved, the function returns
  79921. false. If checksums are retrieved, the function returns true if they match,
  79922. and false otherwise.
  79923. @throws IOException if there's an exception while retrieving checksums.]]>
  79924. </doc>
  79925. </method>
  79926. <method name="compareFs" return="boolean"
  79927. abstract="false" native="false" synchronized="false"
  79928. static="true" final="false" visibility="public"
  79929. deprecated="not deprecated">
  79930. <param name="srcFs" type="org.apache.hadoop.fs.FileSystem"/>
  79931. <param name="destFs" type="org.apache.hadoop.fs.FileSystem"/>
  79932. </method>
  79933. <doc>
  79934. <![CDATA[Utility functions used in DistCp.]]>
  79935. </doc>
  79936. </class>
  79937. <!-- end class org.apache.hadoop.tools.distcp2.util.DistCpUtils -->
  79938. <!-- start class org.apache.hadoop.tools.distcp2.util.RetriableCommand -->
  79939. <class name="RetriableCommand" extends="java.lang.Object"
  79940. abstract="true"
  79941. static="false" final="false" visibility="public"
  79942. deprecated="not deprecated">
  79943. <constructor name="RetriableCommand" type="java.lang.String"
  79944. static="false" final="false" visibility="public"
  79945. deprecated="not deprecated">
  79946. <doc>
  79947. <![CDATA[Constructor.
  79948. @param description The human-readable description of the command.]]>
  79949. </doc>
  79950. </constructor>
  79951. <constructor name="RetriableCommand" type="java.lang.String, org.apache.hadoop.io.retry.RetryPolicy"
  79952. static="false" final="false" visibility="public"
  79953. deprecated="not deprecated">
  79954. <doc>
  79955. <![CDATA[Constructor.
  79956. @param description The human-readable description of the command.
  79957. @param retryPolicy The RetryHandler to be used to compute retries.]]>
  79958. </doc>
  79959. </constructor>
  79960. <method name="doExecute" return="java.lang.Object"
  79961. abstract="true" native="false" synchronized="false"
  79962. static="false" final="false" visibility="protected"
  79963. deprecated="not deprecated">
  79964. <param name="arguments" type="java.lang.Object[]"/>
  79965. <exception name="Exception" type="java.lang.Exception"/>
  79966. <doc>
  79967. <![CDATA[Implement this interface-method define the command-logic that will be
  79968. retried on failure (i.e. with Exception).
  79969. @param arguments Argument-list to the command.
  79970. @return Generic "Object".
  79971. @throws Exception Throws Exception on complete failure.]]>
  79972. </doc>
  79973. </method>
  79974. <method name="execute" return="java.lang.Object"
  79975. abstract="false" native="false" synchronized="false"
  79976. static="false" final="false" visibility="public"
  79977. deprecated="not deprecated">
  79978. <param name="arguments" type="java.lang.Object[]"/>
  79979. <exception name="Exception" type="java.lang.Exception"/>
  79980. <doc>
  79981. <![CDATA[The execute() method invokes doExecute() until either:
  79982. 1. doExecute() succeeds, or
  79983. 2. the command may no longer be retried (e.g. runs out of retry-attempts).
  79984. @param arguments The list of arguments for the command.
  79985. @return Generic "Object" from doExecute(), on success.
  79986. @throws IOException, IOException, on complete failure.]]>
  79987. </doc>
  79988. </method>
  79989. <method name="setRetryPolicy" return="org.apache.hadoop.tools.distcp2.util.RetriableCommand"
  79990. abstract="false" native="false" synchronized="false"
  79991. static="false" final="false" visibility="public"
  79992. deprecated="not deprecated">
  79993. <param name="retryHandler" type="org.apache.hadoop.io.retry.RetryPolicy"/>
  79994. <doc>
  79995. <![CDATA[Fluent-interface to change the RetryHandler.
  79996. @param retryHandler The new RetryHandler instance to be used.
  79997. @return Self.]]>
  79998. </doc>
  79999. </method>
  80000. <field name="description" type="java.lang.String"
  80001. transient="false" volatile="false"
  80002. static="false" final="false" visibility="protected"
  80003. deprecated="not deprecated">
  80004. </field>
  80005. <doc>
  80006. <![CDATA[This class represents commands that be retried on failure, in a configurable
  80007. manner.]]>
  80008. </doc>
  80009. </class>
  80010. <!-- end class org.apache.hadoop.tools.distcp2.util.RetriableCommand -->
  80011. <!-- start class org.apache.hadoop.tools.distcp2.util.ThrottledInputStream -->
  80012. <class name="ThrottledInputStream" extends="java.io.InputStream"
  80013. abstract="false"
  80014. static="false" final="false" visibility="public"
  80015. deprecated="not deprecated">
  80016. <constructor name="ThrottledInputStream" type="java.io.InputStream"
  80017. static="false" final="false" visibility="public"
  80018. deprecated="not deprecated">
  80019. </constructor>
  80020. <constructor name="ThrottledInputStream" type="java.io.InputStream, long"
  80021. static="false" final="false" visibility="public"
  80022. deprecated="not deprecated">
  80023. </constructor>
  80024. <method name="close"
  80025. abstract="false" native="false" synchronized="false"
  80026. static="false" final="false" visibility="public"
  80027. deprecated="not deprecated">
  80028. <exception name="IOException" type="java.io.IOException"/>
  80029. </method>
  80030. <method name="read" return="int"
  80031. abstract="false" native="false" synchronized="false"
  80032. static="false" final="false" visibility="public"
  80033. deprecated="not deprecated">
  80034. <exception name="IOException" type="java.io.IOException"/>
  80035. <doc>
  80036. <![CDATA[@inheritDoc]]>
  80037. </doc>
  80038. </method>
  80039. <method name="read" return="int"
  80040. abstract="false" native="false" synchronized="false"
  80041. static="false" final="false" visibility="public"
  80042. deprecated="not deprecated">
  80043. <param name="b" type="byte[]"/>
  80044. <exception name="IOException" type="java.io.IOException"/>
  80045. <doc>
  80046. <![CDATA[@inheritDoc]]>
  80047. </doc>
  80048. </method>
  80049. <method name="read" return="int"
  80050. abstract="false" native="false" synchronized="false"
  80051. static="false" final="false" visibility="public"
  80052. deprecated="not deprecated">
  80053. <param name="b" type="byte[]"/>
  80054. <param name="off" type="int"/>
  80055. <param name="len" type="int"/>
  80056. <exception name="IOException" type="java.io.IOException"/>
  80057. <doc>
  80058. <![CDATA[@inheritDoc]]>
  80059. </doc>
  80060. </method>
  80061. <method name="getTotalBytesRead" return="long"
  80062. abstract="false" native="false" synchronized="false"
  80063. static="false" final="false" visibility="public"
  80064. deprecated="not deprecated">
  80065. <doc>
  80066. <![CDATA[Getter for the number of bytes read from this stream, since creation.
  80067. @return The number of bytes.]]>
  80068. </doc>
  80069. </method>
  80070. <method name="getBytesPerSec" return="long"
  80071. abstract="false" native="false" synchronized="false"
  80072. static="false" final="false" visibility="public"
  80073. deprecated="not deprecated">
  80074. <doc>
  80075. <![CDATA[Getter for the read-rate from this stream, since creation.
  80076. Calculated as bytesRead/elapsedTimeSinceStart.
  80077. @return Read rate, in bytes/sec.]]>
  80078. </doc>
  80079. </method>
  80080. <method name="getTotalSleepTime" return="long"
  80081. abstract="false" native="false" synchronized="false"
  80082. static="false" final="false" visibility="public"
  80083. deprecated="not deprecated">
  80084. <doc>
  80085. <![CDATA[Getter the total time spent in sleep.
  80086. @return Number of milliseconds spent in sleep.]]>
  80087. </doc>
  80088. </method>
  80089. <method name="toString" return="java.lang.String"
  80090. abstract="false" native="false" synchronized="false"
  80091. static="false" final="false" visibility="public"
  80092. deprecated="not deprecated">
  80093. <doc>
  80094. <![CDATA[@inheritDoc]]>
  80095. </doc>
  80096. </method>
  80097. <doc>
  80098. <![CDATA[The ThrottleInputStream provides bandwidth throttling on a specified
  80099. InputStream. It is implemented as a wrapper on top of another InputStream
  80100. instance.
  80101. The throttling works by examining the number of bytes read from the underlying
  80102. InputStream from the beginning, and sleep()ing for a time interval if
  80103. the byte-transfer is found exceed the specified tolerable maximum.
  80104. (Thus, while the read-rate might exceed the maximum for a given short interval,
  80105. the average tends towards the specified maximum, overall.)]]>
  80106. </doc>
  80107. </class>
  80108. <!-- end class org.apache.hadoop.tools.distcp2.util.ThrottledInputStream -->
  80109. </package>
  80110. <package name="org.apache.hadoop.tools.rumen">
  80111. <!-- start class org.apache.hadoop.tools.rumen.AbstractClusterStory -->
  80112. <class name="AbstractClusterStory" extends="java.lang.Object"
  80113. abstract="true"
  80114. static="false" final="false" visibility="public"
  80115. deprecated="not deprecated">
  80116. <implements name="org.apache.hadoop.tools.rumen.ClusterStory"/>
  80117. <constructor name="AbstractClusterStory"
  80118. static="false" final="false" visibility="public"
  80119. deprecated="not deprecated">
  80120. </constructor>
  80121. <method name="getMachines" return="java.util.Set"
  80122. abstract="false" native="false" synchronized="false"
  80123. static="false" final="false" visibility="public"
  80124. deprecated="not deprecated">
  80125. </method>
  80126. <method name="getRacks" return="java.util.Set"
  80127. abstract="false" native="false" synchronized="true"
  80128. static="false" final="false" visibility="public"
  80129. deprecated="not deprecated">
  80130. </method>
  80131. <method name="getRandomMachines" return="org.apache.hadoop.tools.rumen.MachineNode[]"
  80132. abstract="false" native="false" synchronized="true"
  80133. static="false" final="false" visibility="public"
  80134. deprecated="not deprecated">
  80135. <param name="expected" type="int"/>
  80136. <param name="random" type="java.util.Random"/>
  80137. </method>
  80138. <method name="buildMachineNodeMap"
  80139. abstract="false" native="false" synchronized="true"
  80140. static="false" final="false" visibility="protected"
  80141. deprecated="not deprecated">
  80142. </method>
  80143. <method name="getMachineByName" return="org.apache.hadoop.tools.rumen.MachineNode"
  80144. abstract="false" native="false" synchronized="false"
  80145. static="false" final="false" visibility="public"
  80146. deprecated="not deprecated">
  80147. <param name="name" type="java.lang.String"/>
  80148. </method>
  80149. <method name="distance" return="int"
  80150. abstract="false" native="false" synchronized="false"
  80151. static="false" final="false" visibility="public"
  80152. deprecated="not deprecated">
  80153. <param name="a" type="org.apache.hadoop.tools.rumen.Node"/>
  80154. <param name="b" type="org.apache.hadoop.tools.rumen.Node"/>
  80155. </method>
  80156. <method name="buildRackNodeMap"
  80157. abstract="false" native="false" synchronized="true"
  80158. static="false" final="false" visibility="protected"
  80159. deprecated="not deprecated">
  80160. </method>
  80161. <method name="getRackByName" return="org.apache.hadoop.tools.rumen.RackNode"
  80162. abstract="false" native="false" synchronized="false"
  80163. static="false" final="false" visibility="public"
  80164. deprecated="not deprecated">
  80165. <param name="name" type="java.lang.String"/>
  80166. </method>
  80167. <method name="getMaximumDistance" return="int"
  80168. abstract="false" native="false" synchronized="false"
  80169. static="false" final="false" visibility="public"
  80170. deprecated="not deprecated">
  80171. </method>
  80172. <method name="parseTopologyTree"
  80173. abstract="false" native="false" synchronized="true"
  80174. static="false" final="false" visibility="protected"
  80175. deprecated="not deprecated">
  80176. </method>
  80177. <field name="machineNodes" type="java.util.Set"
  80178. transient="false" volatile="false"
  80179. static="false" final="false" visibility="protected"
  80180. deprecated="not deprecated">
  80181. </field>
  80182. <field name="rackNodes" type="java.util.Set"
  80183. transient="false" volatile="false"
  80184. static="false" final="false" visibility="protected"
  80185. deprecated="not deprecated">
  80186. </field>
  80187. <field name="mNodesFlattened" type="org.apache.hadoop.tools.rumen.MachineNode[]"
  80188. transient="false" volatile="false"
  80189. static="false" final="false" visibility="protected"
  80190. deprecated="not deprecated">
  80191. </field>
  80192. <field name="mNodeMap" type="java.util.Map"
  80193. transient="false" volatile="false"
  80194. static="false" final="false" visibility="protected"
  80195. deprecated="not deprecated">
  80196. </field>
  80197. <field name="rNodeMap" type="java.util.Map"
  80198. transient="false" volatile="false"
  80199. static="false" final="false" visibility="protected"
  80200. deprecated="not deprecated">
  80201. </field>
  80202. <field name="maximumDistance" type="int"
  80203. transient="false" volatile="false"
  80204. static="false" final="false" visibility="protected"
  80205. deprecated="not deprecated">
  80206. </field>
  80207. <doc>
  80208. <![CDATA[{@link AbstractClusterStory} provides a partial implementation of
  80209. {@link ClusterStory} by parsing the topology tree.]]>
  80210. </doc>
  80211. </class>
  80212. <!-- end class org.apache.hadoop.tools.rumen.AbstractClusterStory -->
  80213. <!-- start class org.apache.hadoop.tools.rumen.CDFPiecewiseLinearRandomGenerator -->
  80214. <class name="CDFPiecewiseLinearRandomGenerator" extends="org.apache.hadoop.tools.rumen.CDFRandomGenerator"
  80215. abstract="false"
  80216. static="false" final="false" visibility="public"
  80217. deprecated="not deprecated">
  80218. <constructor name="CDFPiecewiseLinearRandomGenerator" type="org.apache.hadoop.tools.rumen.LoggedDiscreteCDF"
  80219. static="false" final="false" visibility="public"
  80220. deprecated="not deprecated">
  80221. <doc>
  80222. <![CDATA[@param cdf
  80223. builds a CDFRandomValue engine around this
  80224. {@link LoggedDiscreteCDF}, with a defaultly seeded RNG]]>
  80225. </doc>
  80226. </constructor>
  80227. <constructor name="CDFPiecewiseLinearRandomGenerator" type="org.apache.hadoop.tools.rumen.LoggedDiscreteCDF, long"
  80228. static="false" final="false" visibility="public"
  80229. deprecated="not deprecated">
  80230. <doc>
  80231. <![CDATA[@param cdf
  80232. builds a CDFRandomValue engine around this
  80233. {@link LoggedDiscreteCDF}, with an explicitly seeded RNG
  80234. @param seed
  80235. the random number generator seed]]>
  80236. </doc>
  80237. </constructor>
  80238. <method name="valueAt" return="long"
  80239. abstract="false" native="false" synchronized="false"
  80240. static="false" final="false" visibility="public"
  80241. deprecated="not deprecated">
  80242. <param name="probability" type="double"/>
  80243. <doc>
  80244. <![CDATA[TODO This code assumes that the empirical minimum resp. maximum is the
  80245. epistomological minimum resp. maximum. This is probably okay for the
  80246. minimum, because that likely represents a task where everything went well,
  80247. but for the maximum we may want to develop a way of extrapolating past the
  80248. maximum.]]>
  80249. </doc>
  80250. </method>
  80251. </class>
  80252. <!-- end class org.apache.hadoop.tools.rumen.CDFPiecewiseLinearRandomGenerator -->
  80253. <!-- start class org.apache.hadoop.tools.rumen.CDFRandomGenerator -->
  80254. <class name="CDFRandomGenerator" extends="java.lang.Object"
  80255. abstract="true"
  80256. static="false" final="false" visibility="public"
  80257. deprecated="not deprecated">
  80258. <method name="initializeTables"
  80259. abstract="false" native="false" synchronized="false"
  80260. static="false" final="true" visibility="protected"
  80261. deprecated="not deprecated">
  80262. <param name="cdf" type="org.apache.hadoop.tools.rumen.LoggedDiscreteCDF"/>
  80263. </method>
  80264. <method name="floorIndex" return="int"
  80265. abstract="false" native="false" synchronized="false"
  80266. static="false" final="false" visibility="protected"
  80267. deprecated="not deprecated">
  80268. <param name="probe" type="double"/>
  80269. </method>
  80270. <method name="getRankingAt" return="double"
  80271. abstract="false" native="false" synchronized="false"
  80272. static="false" final="false" visibility="protected"
  80273. deprecated="not deprecated">
  80274. <param name="index" type="int"/>
  80275. </method>
  80276. <method name="getDatumAt" return="long"
  80277. abstract="false" native="false" synchronized="false"
  80278. static="false" final="false" visibility="protected"
  80279. deprecated="not deprecated">
  80280. <param name="index" type="int"/>
  80281. </method>
  80282. <method name="randomValue" return="long"
  80283. abstract="false" native="false" synchronized="false"
  80284. static="false" final="false" visibility="public"
  80285. deprecated="not deprecated">
  80286. </method>
  80287. <method name="valueAt" return="long"
  80288. abstract="true" native="false" synchronized="false"
  80289. static="false" final="false" visibility="public"
  80290. deprecated="not deprecated">
  80291. <param name="probability" type="double"/>
  80292. </method>
  80293. <doc>
  80294. <![CDATA[An instance of this class generates random values that confirm to the
  80295. embedded {@link LoggedDiscreteCDF} . The discrete CDF is a pointwise
  80296. approximation of the "real" CDF. We therefore have a choice of interpolation
  80297. rules.
  80298. A concrete subclass of this abstract class will implement valueAt(double)
  80299. using a class-dependent interpolation rule.]]>
  80300. </doc>
  80301. </class>
  80302. <!-- end class org.apache.hadoop.tools.rumen.CDFRandomGenerator -->
  80303. <!-- start interface org.apache.hadoop.tools.rumen.ClusterStory -->
  80304. <interface name="ClusterStory" abstract="true"
  80305. static="false" final="false" visibility="public"
  80306. deprecated="not deprecated">
  80307. <method name="getMachines" return="java.util.Set"
  80308. abstract="false" native="false" synchronized="false"
  80309. static="false" final="false" visibility="public"
  80310. deprecated="not deprecated">
  80311. <doc>
  80312. <![CDATA[Get all machines of the cluster.
  80313. @return A read-only set that contains all machines of the cluster.]]>
  80314. </doc>
  80315. </method>
  80316. <method name="getRacks" return="java.util.Set"
  80317. abstract="false" native="false" synchronized="false"
  80318. static="false" final="false" visibility="public"
  80319. deprecated="not deprecated">
  80320. <doc>
  80321. <![CDATA[Get all racks of the cluster.
  80322. @return A read-only set that contains all racks of the cluster.]]>
  80323. </doc>
  80324. </method>
  80325. <method name="getClusterTopology" return="org.apache.hadoop.tools.rumen.Node"
  80326. abstract="false" native="false" synchronized="false"
  80327. static="false" final="false" visibility="public"
  80328. deprecated="not deprecated">
  80329. <doc>
  80330. <![CDATA[Get the cluster topology tree.
  80331. @return The root node of the cluster topology tree.]]>
  80332. </doc>
  80333. </method>
  80334. <method name="getRandomMachines" return="org.apache.hadoop.tools.rumen.MachineNode[]"
  80335. abstract="false" native="false" synchronized="false"
  80336. static="false" final="false" visibility="public"
  80337. deprecated="not deprecated">
  80338. <param name="expected" type="int"/>
  80339. <param name="random" type="java.util.Random"/>
  80340. <doc>
  80341. <![CDATA[Select a random set of machines.
  80342. @param expected The expected sample size.
  80343. @param random Random number generator to use.
  80344. @return An array of up to expected number of {@link MachineNode}s.]]>
  80345. </doc>
  80346. </method>
  80347. <method name="getMachineByName" return="org.apache.hadoop.tools.rumen.MachineNode"
  80348. abstract="false" native="false" synchronized="false"
  80349. static="false" final="false" visibility="public"
  80350. deprecated="not deprecated">
  80351. <param name="name" type="java.lang.String"/>
  80352. <doc>
  80353. <![CDATA[Get {@link MachineNode} by its host name.
  80354. @return The {@link MachineNode} with the same name. Or null if not found.]]>
  80355. </doc>
  80356. </method>
  80357. <method name="getRackByName" return="org.apache.hadoop.tools.rumen.RackNode"
  80358. abstract="false" native="false" synchronized="false"
  80359. static="false" final="false" visibility="public"
  80360. deprecated="not deprecated">
  80361. <param name="name" type="java.lang.String"/>
  80362. <doc>
  80363. <![CDATA[Get {@link RackNode} by its name.
  80364. @return The {@link RackNode} with the same name. Or null if not found.]]>
  80365. </doc>
  80366. </method>
  80367. <method name="distance" return="int"
  80368. abstract="false" native="false" synchronized="false"
  80369. static="false" final="false" visibility="public"
  80370. deprecated="not deprecated">
  80371. <param name="a" type="org.apache.hadoop.tools.rumen.Node"/>
  80372. <param name="b" type="org.apache.hadoop.tools.rumen.Node"/>
  80373. <doc>
  80374. <![CDATA[Determine the distance between two {@link Node}s. Currently, the distance
  80375. is loosely defined as the length of the longer path for either a or b to
  80376. reach their common ancestor.
  80377. @param a
  80378. @param b
  80379. @return The distance between {@link Node} a and {@link Node} b.]]>
  80380. </doc>
  80381. </method>
  80382. <method name="getMaximumDistance" return="int"
  80383. abstract="false" native="false" synchronized="false"
  80384. static="false" final="false" visibility="public"
  80385. deprecated="not deprecated">
  80386. <doc>
  80387. <![CDATA[Get the maximum distance possible between any two nodes.
  80388. @return the maximum distance possible between any two nodes.]]>
  80389. </doc>
  80390. </method>
  80391. <doc>
  80392. <![CDATA[{@link ClusterStory} represents all configurations of a MapReduce cluster,
  80393. including nodes, network topology, and slot configurations.]]>
  80394. </doc>
  80395. </interface>
  80396. <!-- end interface org.apache.hadoop.tools.rumen.ClusterStory -->
  80397. <!-- start class org.apache.hadoop.tools.rumen.ClusterTopologyReader -->
  80398. <class name="ClusterTopologyReader" extends="java.lang.Object"
  80399. abstract="false"
  80400. static="false" final="false" visibility="public"
  80401. deprecated="not deprecated">
  80402. <constructor name="ClusterTopologyReader" type="org.apache.hadoop.fs.Path, org.apache.hadoop.conf.Configuration"
  80403. static="false" final="false" visibility="public"
  80404. deprecated="not deprecated">
  80405. <exception name="IOException" type="java.io.IOException"/>
  80406. <doc>
  80407. <![CDATA[Constructor.
  80408. @param path
  80409. Path to the JSON-encoded topology file, possibly compressed.
  80410. @param conf
  80411. @throws IOException]]>
  80412. </doc>
  80413. </constructor>
  80414. <constructor name="ClusterTopologyReader" type="java.io.InputStream"
  80415. static="false" final="false" visibility="public"
  80416. deprecated="not deprecated">
  80417. <exception name="IOException" type="java.io.IOException"/>
  80418. <doc>
  80419. <![CDATA[Constructor.
  80420. @param input
  80421. The input stream for the JSON-encoded topology data.]]>
  80422. </doc>
  80423. </constructor>
  80424. <method name="get" return="org.apache.hadoop.tools.rumen.LoggedNetworkTopology"
  80425. abstract="false" native="false" synchronized="false"
  80426. static="false" final="false" visibility="public"
  80427. deprecated="not deprecated">
  80428. <doc>
  80429. <![CDATA[Get the {@link LoggedNetworkTopology} object.
  80430. @return The {@link LoggedNetworkTopology} object parsed from the input.]]>
  80431. </doc>
  80432. </method>
  80433. <doc>
  80434. <![CDATA[Reading JSON-encoded cluster topology and produce the parsed
  80435. {@link LoggedNetworkTopology} object.]]>
  80436. </doc>
  80437. </class>
  80438. <!-- end class org.apache.hadoop.tools.rumen.ClusterTopologyReader -->
  80439. <!-- start interface org.apache.hadoop.tools.rumen.DeepCompare -->
  80440. <interface name="DeepCompare" abstract="true"
  80441. static="false" final="false" visibility="public"
  80442. deprecated="not deprecated">
  80443. <method name="deepCompare"
  80444. abstract="false" native="false" synchronized="false"
  80445. static="false" final="false" visibility="public"
  80446. deprecated="not deprecated">
  80447. <param name="other" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  80448. <param name="myLocation" type="org.apache.hadoop.tools.rumen.TreePath"/>
  80449. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  80450. <doc>
  80451. <![CDATA[@param other
  80452. the other comparand that's being compared to me
  80453. @param myLocation
  80454. the path that got to me. In the root, myLocation is null. To
  80455. process the scalar {@code foo} field of the root we will make a
  80456. recursive call with a {@link TreePath} whose {@code fieldName} is
  80457. {@code "bar"} and whose {@code index} is -1 and whose {@code
  80458. parent} is {@code null}. To process the plural {@code bar} field
  80459. of the root we will make a recursive call with a {@link TreePath}
  80460. whose fieldName is {@code "foo"} and whose {@code index} is -1 and
  80461. whose {@code parent} is also {@code null}.
  80462. @throws DeepInequalityException]]>
  80463. </doc>
  80464. </method>
  80465. <doc>
  80466. <![CDATA[Classes that implement this interface can deep-compare [for equality only,
  80467. not order] with another instance. They do a deep compare. If there is any
  80468. semantically significant difference, an implementer throws an Exception to be
  80469. thrown with a chain of causes describing the chain of field references and
  80470. indices that get you to the miscompared point.]]>
  80471. </doc>
  80472. </interface>
  80473. <!-- end interface org.apache.hadoop.tools.rumen.DeepCompare -->
  80474. <!-- start class org.apache.hadoop.tools.rumen.DeepInequalityException -->
  80475. <class name="DeepInequalityException" extends="java.lang.Exception"
  80476. abstract="false"
  80477. static="false" final="false" visibility="public"
  80478. deprecated="not deprecated">
  80479. <constructor name="DeepInequalityException" type="java.lang.String, org.apache.hadoop.tools.rumen.TreePath, java.lang.Throwable"
  80480. static="false" final="false" visibility="public"
  80481. deprecated="not deprecated">
  80482. <doc>
  80483. <![CDATA[@param message
  80484. an exception message
  80485. @param path
  80486. the path that gets from the root to the inequality
  80487. This is the constructor that I intend to have used for this
  80488. exception.]]>
  80489. </doc>
  80490. </constructor>
  80491. <constructor name="DeepInequalityException" type="java.lang.String, org.apache.hadoop.tools.rumen.TreePath"
  80492. static="false" final="false" visibility="public"
  80493. deprecated="not deprecated">
  80494. <doc>
  80495. <![CDATA[@param message
  80496. an exception message
  80497. @param path
  80498. the path that gets from the root to the inequality
  80499. This is the constructor that I intend to have used for this
  80500. exception.]]>
  80501. </doc>
  80502. </constructor>
  80503. <doc>
  80504. <![CDATA[We use this exception class in the unit test, and we do a deep comparison
  80505. when we run the]]>
  80506. </doc>
  80507. </class>
  80508. <!-- end class org.apache.hadoop.tools.rumen.DeepInequalityException -->
  80509. <!-- start class org.apache.hadoop.tools.rumen.DefaultInputDemuxer -->
  80510. <class name="DefaultInputDemuxer" extends="java.lang.Object"
  80511. abstract="false"
  80512. static="false" final="false" visibility="public"
  80513. deprecated="not deprecated">
  80514. <implements name="org.apache.hadoop.tools.rumen.InputDemuxer"/>
  80515. <constructor name="DefaultInputDemuxer"
  80516. static="false" final="false" visibility="public"
  80517. deprecated="not deprecated">
  80518. </constructor>
  80519. <method name="bindTo"
  80520. abstract="false" native="false" synchronized="false"
  80521. static="false" final="false" visibility="public"
  80522. deprecated="not deprecated">
  80523. <param name="path" type="org.apache.hadoop.fs.Path"/>
  80524. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  80525. <exception name="IOException" type="java.io.IOException"/>
  80526. </method>
  80527. <method name="getNext" return="org.apache.hadoop.tools.rumen.Pair"
  80528. abstract="false" native="false" synchronized="false"
  80529. static="false" final="false" visibility="public"
  80530. deprecated="not deprecated">
  80531. <exception name="IOException" type="java.io.IOException"/>
  80532. </method>
  80533. <method name="close"
  80534. abstract="false" native="false" synchronized="false"
  80535. static="false" final="false" visibility="public"
  80536. deprecated="not deprecated">
  80537. <exception name="IOException" type="java.io.IOException"/>
  80538. </method>
  80539. <doc>
  80540. <![CDATA[{@link DefaultInputDemuxer} acts as a pass-through demuxer. It just opens
  80541. each file and returns back the input stream. If the input is compressed, it
  80542. would return a decompression stream.]]>
  80543. </doc>
  80544. </class>
  80545. <!-- end class org.apache.hadoop.tools.rumen.DefaultInputDemuxer -->
  80546. <!-- start class org.apache.hadoop.tools.rumen.DefaultOutputter -->
  80547. <class name="DefaultOutputter" extends="java.lang.Object"
  80548. abstract="false"
  80549. static="false" final="false" visibility="public"
  80550. deprecated="not deprecated">
  80551. <implements name="org.apache.hadoop.tools.rumen.Outputter"/>
  80552. <constructor name="DefaultOutputter"
  80553. static="false" final="false" visibility="public"
  80554. deprecated="not deprecated">
  80555. </constructor>
  80556. <method name="init"
  80557. abstract="false" native="false" synchronized="false"
  80558. static="false" final="false" visibility="public"
  80559. deprecated="not deprecated">
  80560. <param name="path" type="org.apache.hadoop.fs.Path"/>
  80561. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  80562. <exception name="IOException" type="java.io.IOException"/>
  80563. </method>
  80564. <method name="output"
  80565. abstract="false" native="false" synchronized="false"
  80566. static="false" final="false" visibility="public"
  80567. deprecated="not deprecated">
  80568. <param name="object" type="java.lang.Object"/>
  80569. <exception name="IOException" type="java.io.IOException"/>
  80570. </method>
  80571. <method name="close"
  80572. abstract="false" native="false" synchronized="false"
  80573. static="false" final="false" visibility="public"
  80574. deprecated="not deprecated">
  80575. <exception name="IOException" type="java.io.IOException"/>
  80576. </method>
  80577. <doc>
  80578. <![CDATA[The default {@link Outputter} that outputs to a plain file. Compression
  80579. will be applied if the path has the right suffix.]]>
  80580. </doc>
  80581. </class>
  80582. <!-- end class org.apache.hadoop.tools.rumen.DefaultOutputter -->
  80583. <!-- start class org.apache.hadoop.tools.rumen.DeskewedJobTraceReader -->
  80584. <class name="DeskewedJobTraceReader" extends="java.lang.Object"
  80585. abstract="false"
  80586. static="false" final="false" visibility="public"
  80587. deprecated="not deprecated">
  80588. <implements name="java.io.Closeable"/>
  80589. <constructor name="DeskewedJobTraceReader" type="org.apache.hadoop.tools.rumen.JobTraceReader, int, boolean"
  80590. static="false" final="false" visibility="public"
  80591. deprecated="not deprecated">
  80592. <exception name="IOException" type="java.io.IOException"/>
  80593. <doc>
  80594. <![CDATA[Constructor.
  80595. @param reader
  80596. the {@link JobTraceReader} that's being protected
  80597. @param skewBufferLength
  80598. [the number of late jobs that can preced a later out-of-order
  80599. earlier job
  80600. @throws IOException]]>
  80601. </doc>
  80602. </constructor>
  80603. <constructor name="DeskewedJobTraceReader" type="org.apache.hadoop.tools.rumen.JobTraceReader"
  80604. static="false" final="false" visibility="public"
  80605. deprecated="not deprecated">
  80606. <exception name="IOException" type="java.io.IOException"/>
  80607. </constructor>
  80608. <method name="close"
  80609. abstract="false" native="false" synchronized="false"
  80610. static="false" final="false" visibility="public"
  80611. deprecated="not deprecated">
  80612. <exception name="IOException" type="java.io.IOException"/>
  80613. </method>
  80614. </class>
  80615. <!-- end class org.apache.hadoop.tools.rumen.DeskewedJobTraceReader -->
  80616. <!-- start class org.apache.hadoop.tools.rumen.EventType -->
  80617. <class name="EventType" extends="java.lang.Enum"
  80618. abstract="false"
  80619. static="false" final="true" visibility="public"
  80620. deprecated="not deprecated">
  80621. <method name="values" return="org.apache.hadoop.tools.rumen.EventType[]"
  80622. abstract="false" native="false" synchronized="false"
  80623. static="true" final="false" visibility="public"
  80624. deprecated="not deprecated">
  80625. </method>
  80626. <method name="valueOf" return="org.apache.hadoop.tools.rumen.EventType"
  80627. abstract="false" native="false" synchronized="false"
  80628. static="true" final="false" visibility="public"
  80629. deprecated="not deprecated">
  80630. <param name="name" type="java.lang.String"/>
  80631. </method>
  80632. <field name="JOB_SUBMITTED" type="org.apache.hadoop.tools.rumen.EventType"
  80633. transient="false" volatile="false"
  80634. static="true" final="true" visibility="public"
  80635. deprecated="not deprecated">
  80636. </field>
  80637. <field name="JOB_INITED" type="org.apache.hadoop.tools.rumen.EventType"
  80638. transient="false" volatile="false"
  80639. static="true" final="true" visibility="public"
  80640. deprecated="not deprecated">
  80641. </field>
  80642. <field name="JOB_FINISHED" type="org.apache.hadoop.tools.rumen.EventType"
  80643. transient="false" volatile="false"
  80644. static="true" final="true" visibility="public"
  80645. deprecated="not deprecated">
  80646. </field>
  80647. <field name="JOB_PRIORITY_CHANGED" type="org.apache.hadoop.tools.rumen.EventType"
  80648. transient="false" volatile="false"
  80649. static="true" final="true" visibility="public"
  80650. deprecated="not deprecated">
  80651. </field>
  80652. <field name="JOB_STATUS_CHANGED" type="org.apache.hadoop.tools.rumen.EventType"
  80653. transient="false" volatile="false"
  80654. static="true" final="true" visibility="public"
  80655. deprecated="not deprecated">
  80656. </field>
  80657. <field name="JOB_FAILED" type="org.apache.hadoop.tools.rumen.EventType"
  80658. transient="false" volatile="false"
  80659. static="true" final="true" visibility="public"
  80660. deprecated="not deprecated">
  80661. </field>
  80662. <field name="JOB_KILLED" type="org.apache.hadoop.tools.rumen.EventType"
  80663. transient="false" volatile="false"
  80664. static="true" final="true" visibility="public"
  80665. deprecated="not deprecated">
  80666. </field>
  80667. <field name="JOB_INFO_CHANGED" type="org.apache.hadoop.tools.rumen.EventType"
  80668. transient="false" volatile="false"
  80669. static="true" final="true" visibility="public"
  80670. deprecated="not deprecated">
  80671. </field>
  80672. <field name="TASK_STARTED" type="org.apache.hadoop.tools.rumen.EventType"
  80673. transient="false" volatile="false"
  80674. static="true" final="true" visibility="public"
  80675. deprecated="not deprecated">
  80676. </field>
  80677. <field name="TASK_FINISHED" type="org.apache.hadoop.tools.rumen.EventType"
  80678. transient="false" volatile="false"
  80679. static="true" final="true" visibility="public"
  80680. deprecated="not deprecated">
  80681. </field>
  80682. <field name="TASK_FAILED" type="org.apache.hadoop.tools.rumen.EventType"
  80683. transient="false" volatile="false"
  80684. static="true" final="true" visibility="public"
  80685. deprecated="not deprecated">
  80686. </field>
  80687. <field name="TASK_UPDATED" type="org.apache.hadoop.tools.rumen.EventType"
  80688. transient="false" volatile="false"
  80689. static="true" final="true" visibility="public"
  80690. deprecated="not deprecated">
  80691. </field>
  80692. <field name="MAP_ATTEMPT_STARTED" type="org.apache.hadoop.tools.rumen.EventType"
  80693. transient="false" volatile="false"
  80694. static="true" final="true" visibility="public"
  80695. deprecated="not deprecated">
  80696. </field>
  80697. <field name="MAP_ATTEMPT_FINISHED" type="org.apache.hadoop.tools.rumen.EventType"
  80698. transient="false" volatile="false"
  80699. static="true" final="true" visibility="public"
  80700. deprecated="not deprecated">
  80701. </field>
  80702. <field name="MAP_ATTEMPT_FAILED" type="org.apache.hadoop.tools.rumen.EventType"
  80703. transient="false" volatile="false"
  80704. static="true" final="true" visibility="public"
  80705. deprecated="not deprecated">
  80706. </field>
  80707. <field name="MAP_ATTEMPT_KILLED" type="org.apache.hadoop.tools.rumen.EventType"
  80708. transient="false" volatile="false"
  80709. static="true" final="true" visibility="public"
  80710. deprecated="not deprecated">
  80711. </field>
  80712. <field name="REDUCE_ATTEMPT_STARTED" type="org.apache.hadoop.tools.rumen.EventType"
  80713. transient="false" volatile="false"
  80714. static="true" final="true" visibility="public"
  80715. deprecated="not deprecated">
  80716. </field>
  80717. <field name="REDUCE_ATTEMPT_FINISHED" type="org.apache.hadoop.tools.rumen.EventType"
  80718. transient="false" volatile="false"
  80719. static="true" final="true" visibility="public"
  80720. deprecated="not deprecated">
  80721. </field>
  80722. <field name="REDUCE_ATTEMPT_FAILED" type="org.apache.hadoop.tools.rumen.EventType"
  80723. transient="false" volatile="false"
  80724. static="true" final="true" visibility="public"
  80725. deprecated="not deprecated">
  80726. </field>
  80727. <field name="REDUCE_ATTEMPT_KILLED" type="org.apache.hadoop.tools.rumen.EventType"
  80728. transient="false" volatile="false"
  80729. static="true" final="true" visibility="public"
  80730. deprecated="not deprecated">
  80731. </field>
  80732. <field name="SETUP_ATTEMPT_STARTED" type="org.apache.hadoop.tools.rumen.EventType"
  80733. transient="false" volatile="false"
  80734. static="true" final="true" visibility="public"
  80735. deprecated="not deprecated">
  80736. </field>
  80737. <field name="SETUP_ATTEMPT_FINISHED" type="org.apache.hadoop.tools.rumen.EventType"
  80738. transient="false" volatile="false"
  80739. static="true" final="true" visibility="public"
  80740. deprecated="not deprecated">
  80741. </field>
  80742. <field name="SETUP_ATTEMPT_FAILED" type="org.apache.hadoop.tools.rumen.EventType"
  80743. transient="false" volatile="false"
  80744. static="true" final="true" visibility="public"
  80745. deprecated="not deprecated">
  80746. </field>
  80747. <field name="SETUP_ATTEMPT_KILLED" type="org.apache.hadoop.tools.rumen.EventType"
  80748. transient="false" volatile="false"
  80749. static="true" final="true" visibility="public"
  80750. deprecated="not deprecated">
  80751. </field>
  80752. <field name="CLEANUP_ATTEMPT_STARTED" type="org.apache.hadoop.tools.rumen.EventType"
  80753. transient="false" volatile="false"
  80754. static="true" final="true" visibility="public"
  80755. deprecated="not deprecated">
  80756. </field>
  80757. <field name="CLEANUP_ATTEMPT_FINISHED" type="org.apache.hadoop.tools.rumen.EventType"
  80758. transient="false" volatile="false"
  80759. static="true" final="true" visibility="public"
  80760. deprecated="not deprecated">
  80761. </field>
  80762. <field name="CLEANUP_ATTEMPT_FAILED" type="org.apache.hadoop.tools.rumen.EventType"
  80763. transient="false" volatile="false"
  80764. static="true" final="true" visibility="public"
  80765. deprecated="not deprecated">
  80766. </field>
  80767. <field name="CLEANUP_ATTEMPT_KILLED" type="org.apache.hadoop.tools.rumen.EventType"
  80768. transient="false" volatile="false"
  80769. static="true" final="true" visibility="public"
  80770. deprecated="not deprecated">
  80771. </field>
  80772. </class>
  80773. <!-- end class org.apache.hadoop.tools.rumen.EventType -->
  80774. <!-- start class org.apache.hadoop.tools.rumen.Hadoop20JHParser -->
  80775. <class name="Hadoop20JHParser" extends="java.lang.Object"
  80776. abstract="false"
  80777. static="false" final="false" visibility="public"
  80778. deprecated="not deprecated">
  80779. <implements name="org.apache.hadoop.tools.rumen.JobHistoryParser"/>
  80780. <constructor name="Hadoop20JHParser" type="java.io.InputStream"
  80781. static="false" final="false" visibility="public"
  80782. deprecated="not deprecated">
  80783. <exception name="IOException" type="java.io.IOException"/>
  80784. </constructor>
  80785. <constructor name="Hadoop20JHParser" type="org.apache.hadoop.util.LineReader"
  80786. static="false" final="false" visibility="public"
  80787. deprecated="not deprecated">
  80788. <exception name="IOException" type="java.io.IOException"/>
  80789. </constructor>
  80790. <method name="canParse" return="boolean"
  80791. abstract="false" native="false" synchronized="false"
  80792. static="true" final="false" visibility="public"
  80793. deprecated="not deprecated">
  80794. <param name="input" type="java.io.InputStream"/>
  80795. <exception name="IOException" type="java.io.IOException"/>
  80796. <doc>
  80797. <![CDATA[Can this parser parse the input?
  80798. @param input
  80799. @return Whether this parser can parse the input.
  80800. @throws IOException
  80801. We will deem a stream to be a good 0.20 job history stream if the
  80802. first line is exactly "Meta VERSION=\"1\" ."]]>
  80803. </doc>
  80804. </method>
  80805. <method name="nextEvent" return="org.apache.hadoop.tools.rumen.HistoryEvent"
  80806. abstract="false" native="false" synchronized="false"
  80807. static="false" final="false" visibility="public"
  80808. deprecated="not deprecated">
  80809. </method>
  80810. <method name="close"
  80811. abstract="false" native="false" synchronized="false"
  80812. static="false" final="false" visibility="public"
  80813. deprecated="not deprecated">
  80814. <exception name="IOException" type="java.io.IOException"/>
  80815. </method>
  80816. <doc>
  80817. <![CDATA[{@link JobHistoryParser} to parse job histories for hadoop 0.20 (META=1).]]>
  80818. </doc>
  80819. </class>
  80820. <!-- end class org.apache.hadoop.tools.rumen.Hadoop20JHParser -->
  80821. <!-- start class org.apache.hadoop.tools.rumen.HadoopLogsAnalyzer -->
  80822. <class name="HadoopLogsAnalyzer" extends="org.apache.hadoop.conf.Configured"
  80823. abstract="false"
  80824. static="false" final="false" visibility="public"
  80825. deprecated="not deprecated">
  80826. <implements name="org.apache.hadoop.util.Tool"/>
  80827. <constructor name="HadoopLogsAnalyzer"
  80828. static="false" final="false" visibility="public"
  80829. deprecated="not deprecated">
  80830. </constructor>
  80831. <method name="run" return="int"
  80832. abstract="false" native="false" synchronized="false"
  80833. static="false" final="false" visibility="public"
  80834. deprecated="not deprecated">
  80835. <param name="args" type="java.lang.String[]"/>
  80836. <exception name="IOException" type="java.io.IOException"/>
  80837. </method>
  80838. <method name="main"
  80839. abstract="false" native="false" synchronized="false"
  80840. static="true" final="false" visibility="public"
  80841. deprecated="not deprecated">
  80842. <param name="args" type="java.lang.String[]"/>
  80843. <doc>
  80844. <![CDATA[@param args
  80845. Last arg is the input file. That file can be a directory, in which
  80846. case you get all the files in sorted order. We will decompress
  80847. files whose nmes end in .gz .
  80848. switches: -c collect line types.
  80849. -d debug mode
  80850. -delays print out the delays [interval between job submit time and
  80851. launch time]
  80852. -runtimes print out the job runtimes
  80853. -spreads print out the ratio of 10%ile and 90%ile, of both the
  80854. successful map task attempt run times and the the successful
  80855. reduce task attempt run times
  80856. -tasktimes prints out individual task time distributions
  80857. collects all the line types and prints the first example of each
  80858. one]]>
  80859. </doc>
  80860. </method>
  80861. <doc>
  80862. <![CDATA[This is the main class for rumen log mining functionality.
  80863. It reads a directory of job tracker logs, and computes various information
  80864. about it. See {@code usage()}, below.]]>
  80865. </doc>
  80866. </class>
  80867. <!-- end class org.apache.hadoop.tools.rumen.HadoopLogsAnalyzer -->
  80868. <!-- start interface org.apache.hadoop.tools.rumen.HistoryEvent -->
  80869. <interface name="HistoryEvent" abstract="true"
  80870. static="false" final="false" visibility="public"
  80871. deprecated="not deprecated">
  80872. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  80873. abstract="false" native="false" synchronized="false"
  80874. static="false" final="false" visibility="public"
  80875. deprecated="not deprecated">
  80876. <doc>
  80877. <![CDATA[Return this event's type.]]>
  80878. </doc>
  80879. </method>
  80880. </interface>
  80881. <!-- end interface org.apache.hadoop.tools.rumen.HistoryEvent -->
  80882. <!-- start interface org.apache.hadoop.tools.rumen.InputDemuxer -->
  80883. <interface name="InputDemuxer" abstract="true"
  80884. static="false" final="false" visibility="public"
  80885. deprecated="not deprecated">
  80886. <implements name="java.io.Closeable"/>
  80887. <method name="bindTo"
  80888. abstract="false" native="false" synchronized="false"
  80889. static="false" final="false" visibility="public"
  80890. deprecated="not deprecated">
  80891. <param name="path" type="org.apache.hadoop.fs.Path"/>
  80892. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  80893. <exception name="IOException" type="java.io.IOException"/>
  80894. <doc>
  80895. <![CDATA[Bind the {@link InputDemuxer} to a particular file.
  80896. @param path
  80897. The path to the find it should bind to.
  80898. @param conf
  80899. Configuration
  80900. @throws IOException
  80901. Returns true when the binding succeeds. If the file can be read
  80902. but is in the wrong format, returns false. IOException is
  80903. reserved for read errors.]]>
  80904. </doc>
  80905. </method>
  80906. <method name="getNext" return="org.apache.hadoop.tools.rumen.Pair"
  80907. abstract="false" native="false" synchronized="false"
  80908. static="false" final="false" visibility="public"
  80909. deprecated="not deprecated">
  80910. <exception name="IOException" type="java.io.IOException"/>
  80911. <doc>
  80912. <![CDATA[Get the next <name, input> pair. The name should preserve the original job
  80913. history file or job conf file name. The input object should be closed
  80914. before calling getNext() again. The old input object would be invalid after
  80915. calling getNext() again.
  80916. @return the next <name, input> pair.]]>
  80917. </doc>
  80918. </method>
  80919. <doc>
  80920. <![CDATA[{@link InputDemuxer} dem-ultiplexes the input files into individual input
  80921. streams.]]>
  80922. </doc>
  80923. </interface>
  80924. <!-- end interface org.apache.hadoop.tools.rumen.InputDemuxer -->
  80925. <!-- start class org.apache.hadoop.tools.rumen.JhCounter -->
  80926. <class name="JhCounter" extends="java.lang.Object"
  80927. abstract="false"
  80928. static="false" final="false" visibility="public"
  80929. deprecated="not deprecated">
  80930. <constructor name="JhCounter"
  80931. static="false" final="false" visibility="public"
  80932. deprecated="not deprecated">
  80933. </constructor>
  80934. <field name="name" type="java.lang.String"
  80935. transient="false" volatile="false"
  80936. static="false" final="false" visibility="public"
  80937. deprecated="not deprecated">
  80938. </field>
  80939. <field name="displayName" type="java.lang.String"
  80940. transient="false" volatile="false"
  80941. static="false" final="false" visibility="public"
  80942. deprecated="not deprecated">
  80943. </field>
  80944. <field name="value" type="long"
  80945. transient="false" volatile="false"
  80946. static="false" final="false" visibility="public"
  80947. deprecated="not deprecated">
  80948. </field>
  80949. </class>
  80950. <!-- end class org.apache.hadoop.tools.rumen.JhCounter -->
  80951. <!-- start class org.apache.hadoop.tools.rumen.JhCounterGroup -->
  80952. <class name="JhCounterGroup" extends="java.lang.Object"
  80953. abstract="false"
  80954. static="false" final="false" visibility="public"
  80955. deprecated="not deprecated">
  80956. <constructor name="JhCounterGroup"
  80957. static="false" final="false" visibility="public"
  80958. deprecated="not deprecated">
  80959. </constructor>
  80960. <field name="name" type="java.lang.String"
  80961. transient="false" volatile="false"
  80962. static="false" final="false" visibility="public"
  80963. deprecated="not deprecated">
  80964. </field>
  80965. <field name="displayName" type="java.lang.String"
  80966. transient="false" volatile="false"
  80967. static="false" final="false" visibility="public"
  80968. deprecated="not deprecated">
  80969. </field>
  80970. <field name="counts" type="java.util.List"
  80971. transient="false" volatile="false"
  80972. static="false" final="false" visibility="public"
  80973. deprecated="not deprecated">
  80974. </field>
  80975. </class>
  80976. <!-- end class org.apache.hadoop.tools.rumen.JhCounterGroup -->
  80977. <!-- start class org.apache.hadoop.tools.rumen.JhCounters -->
  80978. <class name="JhCounters" extends="java.lang.Object"
  80979. abstract="false"
  80980. static="false" final="false" visibility="public"
  80981. deprecated="not deprecated">
  80982. <field name="name" type="java.lang.String"
  80983. transient="false" volatile="false"
  80984. static="false" final="false" visibility="public"
  80985. deprecated="not deprecated">
  80986. </field>
  80987. <field name="groups" type="java.util.List"
  80988. transient="false" volatile="false"
  80989. static="false" final="false" visibility="public"
  80990. deprecated="not deprecated">
  80991. </field>
  80992. </class>
  80993. <!-- end class org.apache.hadoop.tools.rumen.JhCounters -->
  80994. <!-- start class org.apache.hadoop.tools.rumen.Job20LineHistoryEventEmitter -->
  80995. <class name="Job20LineHistoryEventEmitter" extends="org.apache.hadoop.tools.rumen.HistoryEventEmitter"
  80996. abstract="false"
  80997. static="false" final="false" visibility="public"
  80998. deprecated="not deprecated">
  80999. </class>
  81000. <!-- end class org.apache.hadoop.tools.rumen.Job20LineHistoryEventEmitter -->
  81001. <!-- start class org.apache.hadoop.tools.rumen.JobBuilder -->
  81002. <class name="JobBuilder" extends="java.lang.Object"
  81003. abstract="false"
  81004. static="false" final="false" visibility="public"
  81005. deprecated="not deprecated">
  81006. <constructor name="JobBuilder" type="java.lang.String"
  81007. static="false" final="false" visibility="public"
  81008. deprecated="not deprecated">
  81009. </constructor>
  81010. <method name="getJobID" return="java.lang.String"
  81011. abstract="false" native="false" synchronized="false"
  81012. static="false" final="false" visibility="public"
  81013. deprecated="not deprecated">
  81014. </method>
  81015. <method name="process"
  81016. abstract="false" native="false" synchronized="false"
  81017. static="false" final="false" visibility="public"
  81018. deprecated="not deprecated">
  81019. <param name="event" type="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  81020. <doc>
  81021. <![CDATA[Process one {@link HistoryEvent}
  81022. @param event
  81023. The {@link HistoryEvent} to be processed.]]>
  81024. </doc>
  81025. </method>
  81026. <method name="process"
  81027. abstract="false" native="false" synchronized="false"
  81028. static="false" final="false" visibility="public"
  81029. deprecated="not deprecated">
  81030. <param name="conf" type="java.util.Properties"/>
  81031. <doc>
  81032. <![CDATA[Process a collection of JobConf {@link Properties}. We do not restrict it
  81033. to be called once. It is okay to process a conf before, during or after the
  81034. events.
  81035. @param conf
  81036. The job conf properties to be added.]]>
  81037. </doc>
  81038. </method>
  81039. <method name="build" return="org.apache.hadoop.tools.rumen.ParsedJob"
  81040. abstract="false" native="false" synchronized="false"
  81041. static="false" final="false" visibility="public"
  81042. deprecated="not deprecated">
  81043. <doc>
  81044. <![CDATA[Request the builder to build the final object. Once called, the
  81045. {@link JobBuilder} would accept no more events or job-conf properties.
  81046. @return Parsed {@link ParsedJob} object.]]>
  81047. </doc>
  81048. </method>
  81049. <doc>
  81050. <![CDATA[{@link JobBuilder} builds one job. It processes a sequence of
  81051. {@link HistoryEvent}s.]]>
  81052. </doc>
  81053. </class>
  81054. <!-- end class org.apache.hadoop.tools.rumen.JobBuilder -->
  81055. <!-- start class org.apache.hadoop.tools.rumen.JobConfigurationParser -->
  81056. <class name="JobConfigurationParser" extends="java.lang.Object"
  81057. abstract="false"
  81058. static="false" final="false" visibility="public"
  81059. deprecated="not deprecated">
  81060. <constructor name="JobConfigurationParser"
  81061. static="false" final="false" visibility="public"
  81062. deprecated="not deprecated">
  81063. </constructor>
  81064. <doc>
  81065. <![CDATA[{@link JobConfigurationParser} parses the job configuration xml file, and
  81066. extracts configuration properties. It parses the file using a
  81067. stream-parser and thus is more memory efficient. [This optimization may be
  81068. postponed for a future release]]]>
  81069. </doc>
  81070. </class>
  81071. <!-- end class org.apache.hadoop.tools.rumen.JobConfigurationParser -->
  81072. <!-- start class org.apache.hadoop.tools.rumen.JobConfPropertyNames -->
  81073. <class name="JobConfPropertyNames" extends="java.lang.Enum"
  81074. abstract="false"
  81075. static="false" final="true" visibility="public"
  81076. deprecated="not deprecated">
  81077. <method name="values" return="org.apache.hadoop.tools.rumen.JobConfPropertyNames[]"
  81078. abstract="false" native="false" synchronized="false"
  81079. static="true" final="false" visibility="public"
  81080. deprecated="not deprecated">
  81081. </method>
  81082. <method name="valueOf" return="org.apache.hadoop.tools.rumen.JobConfPropertyNames"
  81083. abstract="false" native="false" synchronized="false"
  81084. static="true" final="false" visibility="public"
  81085. deprecated="not deprecated">
  81086. <param name="name" type="java.lang.String"/>
  81087. </method>
  81088. <method name="getCandidates" return="java.lang.String[]"
  81089. abstract="false" native="false" synchronized="false"
  81090. static="false" final="false" visibility="public"
  81091. deprecated="not deprecated">
  81092. </method>
  81093. <field name="QUEUE_NAMES" type="org.apache.hadoop.tools.rumen.JobConfPropertyNames"
  81094. transient="false" volatile="false"
  81095. static="true" final="true" visibility="public"
  81096. deprecated="not deprecated">
  81097. </field>
  81098. <field name="JOB_NAMES" type="org.apache.hadoop.tools.rumen.JobConfPropertyNames"
  81099. transient="false" volatile="false"
  81100. static="true" final="true" visibility="public"
  81101. deprecated="not deprecated">
  81102. </field>
  81103. <field name="TASK_JAVA_OPTS_S" type="org.apache.hadoop.tools.rumen.JobConfPropertyNames"
  81104. transient="false" volatile="false"
  81105. static="true" final="true" visibility="public"
  81106. deprecated="not deprecated">
  81107. </field>
  81108. <field name="MAP_JAVA_OPTS_S" type="org.apache.hadoop.tools.rumen.JobConfPropertyNames"
  81109. transient="false" volatile="false"
  81110. static="true" final="true" visibility="public"
  81111. deprecated="not deprecated">
  81112. </field>
  81113. <field name="REDUCE_JAVA_OPTS_S" type="org.apache.hadoop.tools.rumen.JobConfPropertyNames"
  81114. transient="false" volatile="false"
  81115. static="true" final="true" visibility="public"
  81116. deprecated="not deprecated">
  81117. </field>
  81118. </class>
  81119. <!-- end class org.apache.hadoop.tools.rumen.JobConfPropertyNames -->
  81120. <!-- start class org.apache.hadoop.tools.rumen.JobFinishedEvent -->
  81121. <class name="JobFinishedEvent" extends="java.lang.Object"
  81122. abstract="false"
  81123. static="false" final="false" visibility="public"
  81124. deprecated="not deprecated">
  81125. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  81126. <constructor name="JobFinishedEvent" type="org.apache.hadoop.mapreduce.JobID, long, int, int, int, int, org.apache.hadoop.mapreduce.Counters, org.apache.hadoop.mapreduce.Counters, org.apache.hadoop.mapreduce.Counters"
  81127. static="false" final="false" visibility="public"
  81128. deprecated="not deprecated">
  81129. <doc>
  81130. <![CDATA[Create an event to record successful job completion
  81131. @param id Job ID
  81132. @param finishTime Finish time of the job
  81133. @param finishedMaps The number of finished maps
  81134. @param finishedReduces The number of finished reduces
  81135. @param failedMaps The number of failed maps
  81136. @param failedReduces The number of failed reduces
  81137. @param mapCounters Map Counters for the job
  81138. @param reduceCounters Reduce Counters for the job
  81139. @param totalCounters Total Counters for the job]]>
  81140. </doc>
  81141. </constructor>
  81142. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  81143. abstract="false" native="false" synchronized="false"
  81144. static="false" final="false" visibility="public"
  81145. deprecated="not deprecated">
  81146. </method>
  81147. <method name="getJobid" return="org.apache.hadoop.mapreduce.JobID"
  81148. abstract="false" native="false" synchronized="false"
  81149. static="false" final="false" visibility="public"
  81150. deprecated="not deprecated">
  81151. <doc>
  81152. <![CDATA[Get the Job ID]]>
  81153. </doc>
  81154. </method>
  81155. <method name="getFinishTime" return="long"
  81156. abstract="false" native="false" synchronized="false"
  81157. static="false" final="false" visibility="public"
  81158. deprecated="not deprecated">
  81159. <doc>
  81160. <![CDATA[Get the job finish time]]>
  81161. </doc>
  81162. </method>
  81163. <method name="getFinishedMaps" return="int"
  81164. abstract="false" native="false" synchronized="false"
  81165. static="false" final="false" visibility="public"
  81166. deprecated="not deprecated">
  81167. <doc>
  81168. <![CDATA[Get the number of finished maps for the job]]>
  81169. </doc>
  81170. </method>
  81171. <method name="getFinishedReduces" return="int"
  81172. abstract="false" native="false" synchronized="false"
  81173. static="false" final="false" visibility="public"
  81174. deprecated="not deprecated">
  81175. <doc>
  81176. <![CDATA[Get the number of finished reducers for the job]]>
  81177. </doc>
  81178. </method>
  81179. <method name="getFailedMaps" return="int"
  81180. abstract="false" native="false" synchronized="false"
  81181. static="false" final="false" visibility="public"
  81182. deprecated="not deprecated">
  81183. <doc>
  81184. <![CDATA[Get the number of failed maps for the job]]>
  81185. </doc>
  81186. </method>
  81187. <method name="getFailedReduces" return="int"
  81188. abstract="false" native="false" synchronized="false"
  81189. static="false" final="false" visibility="public"
  81190. deprecated="not deprecated">
  81191. <doc>
  81192. <![CDATA[Get the number of failed reducers for the job]]>
  81193. </doc>
  81194. </method>
  81195. <method name="getTotalCounters" return="org.apache.hadoop.mapreduce.Counters"
  81196. abstract="false" native="false" synchronized="false"
  81197. static="false" final="false" visibility="public"
  81198. deprecated="not deprecated">
  81199. <doc>
  81200. <![CDATA[Get the counters for the job]]>
  81201. </doc>
  81202. </method>
  81203. <method name="getMapCounters" return="org.apache.hadoop.mapreduce.Counters"
  81204. abstract="false" native="false" synchronized="false"
  81205. static="false" final="false" visibility="public"
  81206. deprecated="not deprecated">
  81207. <doc>
  81208. <![CDATA[Get the Map counters for the job]]>
  81209. </doc>
  81210. </method>
  81211. <method name="getReduceCounters" return="org.apache.hadoop.mapreduce.Counters"
  81212. abstract="false" native="false" synchronized="false"
  81213. static="false" final="false" visibility="public"
  81214. deprecated="not deprecated">
  81215. <doc>
  81216. <![CDATA[Get the reduce counters for the job]]>
  81217. </doc>
  81218. </method>
  81219. <doc>
  81220. <![CDATA[Event to record successful completion of job]]>
  81221. </doc>
  81222. </class>
  81223. <!-- end class org.apache.hadoop.tools.rumen.JobFinishedEvent -->
  81224. <!-- start interface org.apache.hadoop.tools.rumen.JobHistoryParser -->
  81225. <interface name="JobHistoryParser" abstract="true"
  81226. static="false" final="false" visibility="public"
  81227. deprecated="not deprecated">
  81228. <implements name="java.io.Closeable"/>
  81229. <method name="nextEvent" return="org.apache.hadoop.tools.rumen.HistoryEvent"
  81230. abstract="false" native="false" synchronized="false"
  81231. static="false" final="false" visibility="public"
  81232. deprecated="not deprecated">
  81233. <exception name="IOException" type="java.io.IOException"/>
  81234. <doc>
  81235. <![CDATA[Get the next {@link HistoryEvent}
  81236. @return the next {@link HistoryEvent}. If no more events left, return null.
  81237. @throws IOException]]>
  81238. </doc>
  81239. </method>
  81240. <doc>
  81241. <![CDATA[{@link JobHistoryParser} defines the interface of a Job History file parser.]]>
  81242. </doc>
  81243. </interface>
  81244. <!-- end interface org.apache.hadoop.tools.rumen.JobHistoryParser -->
  81245. <!-- start class org.apache.hadoop.tools.rumen.JobHistoryParserFactory -->
  81246. <class name="JobHistoryParserFactory" extends="java.lang.Object"
  81247. abstract="false"
  81248. static="false" final="false" visibility="public"
  81249. deprecated="not deprecated">
  81250. <constructor name="JobHistoryParserFactory"
  81251. static="false" final="false" visibility="public"
  81252. deprecated="not deprecated">
  81253. </constructor>
  81254. <method name="getParser" return="org.apache.hadoop.tools.rumen.JobHistoryParser"
  81255. abstract="false" native="false" synchronized="false"
  81256. static="true" final="false" visibility="public"
  81257. deprecated="not deprecated">
  81258. <param name="ris" type="org.apache.hadoop.tools.rumen.RewindableInputStream"/>
  81259. <exception name="IOException" type="java.io.IOException"/>
  81260. </method>
  81261. <doc>
  81262. <![CDATA[{@link JobHistoryParserFactory} is a singleton class that attempts to
  81263. determine the version of job history and return a proper parser.]]>
  81264. </doc>
  81265. </class>
  81266. <!-- end class org.apache.hadoop.tools.rumen.JobHistoryParserFactory -->
  81267. <!-- start class org.apache.hadoop.tools.rumen.JobHistoryParserFactory.VersionDetector -->
  81268. <class name="JobHistoryParserFactory.VersionDetector" extends="java.lang.Enum"
  81269. abstract="false"
  81270. static="true" final="false" visibility="public"
  81271. deprecated="not deprecated">
  81272. <method name="values" return="org.apache.hadoop.tools.rumen.JobHistoryParserFactory.VersionDetector[]"
  81273. abstract="false" native="false" synchronized="false"
  81274. static="true" final="false" visibility="public"
  81275. deprecated="not deprecated">
  81276. </method>
  81277. <method name="valueOf" return="org.apache.hadoop.tools.rumen.JobHistoryParserFactory.VersionDetector"
  81278. abstract="false" native="false" synchronized="false"
  81279. static="true" final="false" visibility="public"
  81280. deprecated="not deprecated">
  81281. <param name="name" type="java.lang.String"/>
  81282. </method>
  81283. <field name="Hadoop20" type="org.apache.hadoop.tools.rumen.JobHistoryParserFactory.VersionDetector"
  81284. transient="false" volatile="false"
  81285. static="true" final="true" visibility="public"
  81286. deprecated="not deprecated">
  81287. </field>
  81288. </class>
  81289. <!-- end class org.apache.hadoop.tools.rumen.JobHistoryParserFactory.VersionDetector -->
  81290. <!-- start class org.apache.hadoop.tools.rumen.JobHistoryUtils -->
  81291. <class name="JobHistoryUtils" extends="java.lang.Object"
  81292. abstract="false"
  81293. static="false" final="false" visibility="public"
  81294. deprecated="not deprecated">
  81295. <constructor name="JobHistoryUtils"
  81296. static="false" final="false" visibility="public"
  81297. deprecated="not deprecated">
  81298. </constructor>
  81299. </class>
  81300. <!-- end class org.apache.hadoop.tools.rumen.JobHistoryUtils -->
  81301. <!-- start class org.apache.hadoop.tools.rumen.JobInfoChangeEvent -->
  81302. <class name="JobInfoChangeEvent" extends="java.lang.Object"
  81303. abstract="false"
  81304. static="false" final="false" visibility="public"
  81305. deprecated="not deprecated">
  81306. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  81307. <constructor name="JobInfoChangeEvent" type="org.apache.hadoop.mapreduce.JobID, long, long"
  81308. static="false" final="false" visibility="public"
  81309. deprecated="not deprecated">
  81310. <doc>
  81311. <![CDATA[Create a event to record the submit and launch time of a job
  81312. @param id Job Id
  81313. @param submitTime Submit time of the job
  81314. @param launchTime Launch time of the job]]>
  81315. </doc>
  81316. </constructor>
  81317. <method name="getJobId" return="org.apache.hadoop.mapreduce.JobID"
  81318. abstract="false" native="false" synchronized="false"
  81319. static="false" final="false" visibility="public"
  81320. deprecated="not deprecated">
  81321. <doc>
  81322. <![CDATA[Get the Job ID]]>
  81323. </doc>
  81324. </method>
  81325. <method name="getSubmitTime" return="long"
  81326. abstract="false" native="false" synchronized="false"
  81327. static="false" final="false" visibility="public"
  81328. deprecated="not deprecated">
  81329. <doc>
  81330. <![CDATA[Get the Job submit time]]>
  81331. </doc>
  81332. </method>
  81333. <method name="getLaunchTime" return="long"
  81334. abstract="false" native="false" synchronized="false"
  81335. static="false" final="false" visibility="public"
  81336. deprecated="not deprecated">
  81337. <doc>
  81338. <![CDATA[Get the Job launch time]]>
  81339. </doc>
  81340. </method>
  81341. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  81342. abstract="false" native="false" synchronized="false"
  81343. static="false" final="false" visibility="public"
  81344. deprecated="not deprecated">
  81345. </method>
  81346. <doc>
  81347. <![CDATA[Event to record changes in the submit and launch time of
  81348. a job]]>
  81349. </doc>
  81350. </class>
  81351. <!-- end class org.apache.hadoop.tools.rumen.JobInfoChangeEvent -->
  81352. <!-- start class org.apache.hadoop.tools.rumen.JobInitedEvent -->
  81353. <class name="JobInitedEvent" extends="java.lang.Object"
  81354. abstract="false"
  81355. static="false" final="false" visibility="public"
  81356. deprecated="not deprecated">
  81357. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  81358. <constructor name="JobInitedEvent" type="org.apache.hadoop.mapreduce.JobID, long, int, int, java.lang.String"
  81359. static="false" final="false" visibility="public"
  81360. deprecated="not deprecated">
  81361. <doc>
  81362. <![CDATA[Create an event to record job initialization
  81363. @param id
  81364. @param launchTime
  81365. @param totalMaps
  81366. @param totalReduces
  81367. @param jobStatus]]>
  81368. </doc>
  81369. </constructor>
  81370. <method name="getJobId" return="org.apache.hadoop.mapreduce.JobID"
  81371. abstract="false" native="false" synchronized="false"
  81372. static="false" final="false" visibility="public"
  81373. deprecated="not deprecated">
  81374. <doc>
  81375. <![CDATA[Get the job ID]]>
  81376. </doc>
  81377. </method>
  81378. <method name="getLaunchTime" return="long"
  81379. abstract="false" native="false" synchronized="false"
  81380. static="false" final="false" visibility="public"
  81381. deprecated="not deprecated">
  81382. <doc>
  81383. <![CDATA[Get the launch time]]>
  81384. </doc>
  81385. </method>
  81386. <method name="getTotalMaps" return="int"
  81387. abstract="false" native="false" synchronized="false"
  81388. static="false" final="false" visibility="public"
  81389. deprecated="not deprecated">
  81390. <doc>
  81391. <![CDATA[Get the total number of maps]]>
  81392. </doc>
  81393. </method>
  81394. <method name="getTotalReduces" return="int"
  81395. abstract="false" native="false" synchronized="false"
  81396. static="false" final="false" visibility="public"
  81397. deprecated="not deprecated">
  81398. <doc>
  81399. <![CDATA[Get the total number of reduces]]>
  81400. </doc>
  81401. </method>
  81402. <method name="getStatus" return="java.lang.String"
  81403. abstract="false" native="false" synchronized="false"
  81404. static="false" final="false" visibility="public"
  81405. deprecated="not deprecated">
  81406. <doc>
  81407. <![CDATA[Get the status]]>
  81408. </doc>
  81409. </method>
  81410. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  81411. abstract="false" native="false" synchronized="false"
  81412. static="false" final="false" visibility="public"
  81413. deprecated="not deprecated">
  81414. <doc>
  81415. <![CDATA[Get the event type]]>
  81416. </doc>
  81417. </method>
  81418. <doc>
  81419. <![CDATA[Event to record the initialization of a job]]>
  81420. </doc>
  81421. </class>
  81422. <!-- end class org.apache.hadoop.tools.rumen.JobInitedEvent -->
  81423. <!-- start class org.apache.hadoop.tools.rumen.JobPriorityChangeEvent -->
  81424. <class name="JobPriorityChangeEvent" extends="java.lang.Object"
  81425. abstract="false"
  81426. static="false" final="false" visibility="public"
  81427. deprecated="not deprecated">
  81428. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  81429. <constructor name="JobPriorityChangeEvent" type="org.apache.hadoop.mapreduce.JobID, org.apache.hadoop.mapred.JobPriority"
  81430. static="false" final="false" visibility="public"
  81431. deprecated="not deprecated">
  81432. <doc>
  81433. <![CDATA[Generate an event to record changes in Job priority
  81434. @param id Job Id
  81435. @param priority The new priority of the job]]>
  81436. </doc>
  81437. </constructor>
  81438. <method name="getJobId" return="org.apache.hadoop.mapreduce.JobID"
  81439. abstract="false" native="false" synchronized="false"
  81440. static="false" final="false" visibility="public"
  81441. deprecated="not deprecated">
  81442. <doc>
  81443. <![CDATA[Get the Job ID]]>
  81444. </doc>
  81445. </method>
  81446. <method name="getPriority" return="org.apache.hadoop.mapred.JobPriority"
  81447. abstract="false" native="false" synchronized="false"
  81448. static="false" final="false" visibility="public"
  81449. deprecated="not deprecated">
  81450. <doc>
  81451. <![CDATA[Get the job priority]]>
  81452. </doc>
  81453. </method>
  81454. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  81455. abstract="false" native="false" synchronized="false"
  81456. static="false" final="false" visibility="public"
  81457. deprecated="not deprecated">
  81458. <doc>
  81459. <![CDATA[Get the event type]]>
  81460. </doc>
  81461. </method>
  81462. <doc>
  81463. <![CDATA[Event to record the change of priority of a job]]>
  81464. </doc>
  81465. </class>
  81466. <!-- end class org.apache.hadoop.tools.rumen.JobPriorityChangeEvent -->
  81467. <!-- start class org.apache.hadoop.tools.rumen.JobStatusChangedEvent -->
  81468. <class name="JobStatusChangedEvent" extends="java.lang.Object"
  81469. abstract="false"
  81470. static="false" final="false" visibility="public"
  81471. deprecated="not deprecated">
  81472. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  81473. <constructor name="JobStatusChangedEvent" type="org.apache.hadoop.mapreduce.JobID, java.lang.String"
  81474. static="false" final="false" visibility="public"
  81475. deprecated="not deprecated">
  81476. <doc>
  81477. <![CDATA[Create an event to record the change in the Job Status
  81478. @param id Job ID
  81479. @param jobStatus The new job status]]>
  81480. </doc>
  81481. </constructor>
  81482. <method name="getJobId" return="org.apache.hadoop.mapreduce.JobID"
  81483. abstract="false" native="false" synchronized="false"
  81484. static="false" final="false" visibility="public"
  81485. deprecated="not deprecated">
  81486. <doc>
  81487. <![CDATA[Get the Job Id]]>
  81488. </doc>
  81489. </method>
  81490. <method name="getStatus" return="java.lang.String"
  81491. abstract="false" native="false" synchronized="false"
  81492. static="false" final="false" visibility="public"
  81493. deprecated="not deprecated">
  81494. <doc>
  81495. <![CDATA[Get the event status]]>
  81496. </doc>
  81497. </method>
  81498. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  81499. abstract="false" native="false" synchronized="false"
  81500. static="false" final="false" visibility="public"
  81501. deprecated="not deprecated">
  81502. <doc>
  81503. <![CDATA[Get the event type]]>
  81504. </doc>
  81505. </method>
  81506. <doc>
  81507. <![CDATA[Event to record the change of status for a job]]>
  81508. </doc>
  81509. </class>
  81510. <!-- end class org.apache.hadoop.tools.rumen.JobStatusChangedEvent -->
  81511. <!-- start interface org.apache.hadoop.tools.rumen.JobStory -->
  81512. <interface name="JobStory" abstract="true"
  81513. static="false" final="false" visibility="public"
  81514. deprecated="not deprecated">
  81515. <method name="getJobConf" return="org.apache.hadoop.mapred.JobConf"
  81516. abstract="false" native="false" synchronized="false"
  81517. static="false" final="false" visibility="public"
  81518. deprecated="not deprecated">
  81519. <doc>
  81520. <![CDATA[Get the {@link JobConf} for the job.
  81521. @return the <code>JobConf</code> for the job]]>
  81522. </doc>
  81523. </method>
  81524. <method name="getName" return="java.lang.String"
  81525. abstract="false" native="false" synchronized="false"
  81526. static="false" final="false" visibility="public"
  81527. deprecated="not deprecated">
  81528. <doc>
  81529. <![CDATA[Get the job name.
  81530. @return the job name]]>
  81531. </doc>
  81532. </method>
  81533. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  81534. abstract="false" native="false" synchronized="false"
  81535. static="false" final="false" visibility="public"
  81536. deprecated="not deprecated">
  81537. <doc>
  81538. <![CDATA[Get the job ID
  81539. @return the job ID]]>
  81540. </doc>
  81541. </method>
  81542. <method name="getUser" return="java.lang.String"
  81543. abstract="false" native="false" synchronized="false"
  81544. static="false" final="false" visibility="public"
  81545. deprecated="not deprecated">
  81546. <doc>
  81547. <![CDATA[Get the user who ran the job.
  81548. @return the user who ran the job]]>
  81549. </doc>
  81550. </method>
  81551. <method name="getSubmissionTime" return="long"
  81552. abstract="false" native="false" synchronized="false"
  81553. static="false" final="false" visibility="public"
  81554. deprecated="not deprecated">
  81555. <doc>
  81556. <![CDATA[Get the job submission time.
  81557. @return the job submission time]]>
  81558. </doc>
  81559. </method>
  81560. <method name="getNumberMaps" return="int"
  81561. abstract="false" native="false" synchronized="false"
  81562. static="false" final="false" visibility="public"
  81563. deprecated="not deprecated">
  81564. <doc>
  81565. <![CDATA[Get the number of maps in the {@link JobStory}.
  81566. @return the number of maps in the <code>Job</code>]]>
  81567. </doc>
  81568. </method>
  81569. <method name="getNumberReduces" return="int"
  81570. abstract="false" native="false" synchronized="false"
  81571. static="false" final="false" visibility="public"
  81572. deprecated="not deprecated">
  81573. <doc>
  81574. <![CDATA[Get the number of reduce in the {@link JobStory}.
  81575. @return the number of reduces in the <code>Job</code>]]>
  81576. </doc>
  81577. </method>
  81578. <method name="getInputSplits" return="org.apache.hadoop.mapreduce.InputSplit[]"
  81579. abstract="false" native="false" synchronized="false"
  81580. static="false" final="false" visibility="public"
  81581. deprecated="not deprecated">
  81582. <doc>
  81583. <![CDATA[Get the input splits for the job.
  81584. @return the input splits for the job]]>
  81585. </doc>
  81586. </method>
  81587. <method name="getTaskInfo" return="org.apache.hadoop.tools.rumen.TaskInfo"
  81588. abstract="false" native="false" synchronized="false"
  81589. static="false" final="false" visibility="public"
  81590. deprecated="not deprecated">
  81591. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  81592. <param name="taskNumber" type="int"/>
  81593. <doc>
  81594. <![CDATA[Get {@link TaskInfo} for a given task.
  81595. @param taskType {@link TaskType} of the task
  81596. @param taskNumber Partition number of the task
  81597. @return the <code>TaskInfo</code> for the given task]]>
  81598. </doc>
  81599. </method>
  81600. <method name="getTaskAttemptInfo" return="org.apache.hadoop.tools.rumen.TaskAttemptInfo"
  81601. abstract="false" native="false" synchronized="false"
  81602. static="false" final="false" visibility="public"
  81603. deprecated="not deprecated">
  81604. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  81605. <param name="taskNumber" type="int"/>
  81606. <param name="taskAttemptNumber" type="int"/>
  81607. <doc>
  81608. <![CDATA[Get {@link TaskAttemptInfo} for a given task-attempt, without regard to
  81609. impact of locality (e.g. not needed to make scheduling decisions).
  81610. @param taskType {@link TaskType} of the task-attempt
  81611. @param taskNumber Partition number of the task-attempt
  81612. @param taskAttemptNumber Attempt number of the task
  81613. @return the <code>TaskAttemptInfo</code> for the given task-attempt]]>
  81614. </doc>
  81615. </method>
  81616. <method name="getMapTaskAttemptInfoAdjusted" return="org.apache.hadoop.tools.rumen.TaskAttemptInfo"
  81617. abstract="false" native="false" synchronized="false"
  81618. static="false" final="false" visibility="public"
  81619. deprecated="not deprecated">
  81620. <param name="taskNumber" type="int"/>
  81621. <param name="taskAttemptNumber" type="int"/>
  81622. <param name="locality" type="int"/>
  81623. <doc>
  81624. <![CDATA[Get {@link TaskAttemptInfo} for a given task-attempt, considering impact
  81625. of locality.
  81626. @param taskNumber Partition number of the task-attempt
  81627. @param taskAttemptNumber Attempt number of the task
  81628. @param locality Data locality of the task as scheduled in simulation
  81629. @return the <code>TaskAttemptInfo</code> for the given task-attempt]]>
  81630. </doc>
  81631. </method>
  81632. <method name="getOutcome" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  81633. abstract="false" native="false" synchronized="false"
  81634. static="false" final="false" visibility="public"
  81635. deprecated="not deprecated">
  81636. <doc>
  81637. <![CDATA[Get the outcome of the job execution.
  81638. @return The outcome of the job execution.]]>
  81639. </doc>
  81640. </method>
  81641. <method name="getQueueName" return="java.lang.String"
  81642. abstract="false" native="false" synchronized="false"
  81643. static="false" final="false" visibility="public"
  81644. deprecated="not deprecated">
  81645. <doc>
  81646. <![CDATA[Get the queue where the job is submitted.
  81647. @return the queue where the job is submitted.]]>
  81648. </doc>
  81649. </method>
  81650. <doc>
  81651. <![CDATA[{@link JobStory} represents the runtime information available for a
  81652. completed Map-Reduce job.]]>
  81653. </doc>
  81654. </interface>
  81655. <!-- end interface org.apache.hadoop.tools.rumen.JobStory -->
  81656. <!-- start interface org.apache.hadoop.tools.rumen.JobStoryProducer -->
  81657. <interface name="JobStoryProducer" abstract="true"
  81658. static="false" final="false" visibility="public"
  81659. deprecated="not deprecated">
  81660. <implements name="java.io.Closeable"/>
  81661. <method name="getNextJob" return="org.apache.hadoop.tools.rumen.JobStory"
  81662. abstract="false" native="false" synchronized="false"
  81663. static="false" final="false" visibility="public"
  81664. deprecated="not deprecated">
  81665. <exception name="IOException" type="java.io.IOException"/>
  81666. <doc>
  81667. <![CDATA[Get the next job.
  81668. @return The next job. Or null if no more job is available.
  81669. @throws IOException]]>
  81670. </doc>
  81671. </method>
  81672. <doc>
  81673. <![CDATA[{@link JobStoryProducer} produces the sequence of {@link JobStory}'s.]]>
  81674. </doc>
  81675. </interface>
  81676. <!-- end interface org.apache.hadoop.tools.rumen.JobStoryProducer -->
  81677. <!-- start class org.apache.hadoop.tools.rumen.JobSubmittedEvent -->
  81678. <class name="JobSubmittedEvent" extends="java.lang.Object"
  81679. abstract="false"
  81680. static="false" final="false" visibility="public"
  81681. deprecated="not deprecated">
  81682. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  81683. <constructor name="JobSubmittedEvent" type="org.apache.hadoop.mapreduce.JobID, java.lang.String, java.lang.String, long, java.lang.String"
  81684. static="false" final="false" visibility="public"
  81685. deprecated="Use
  81686. {@link #JobSubmittedEvent(JobID, String, String, long, String,
  81687. Map, String, String, String, String, String, String)}
  81688. instead.">
  81689. <doc>
  81690. <![CDATA[@deprecated Use
  81691. {@link #JobSubmittedEvent(JobID, String, String, long, String,
  81692. Map, String, String, String, String, String, String)}
  81693. instead.]]>
  81694. </doc>
  81695. </constructor>
  81696. <constructor name="JobSubmittedEvent" type="org.apache.hadoop.mapreduce.JobID, java.lang.String, java.lang.String, long, java.lang.String, java.util.Map"
  81697. static="false" final="false" visibility="public"
  81698. deprecated="Use
  81699. {@link #JobSubmittedEvent(JobID, String, String, long, String,
  81700. Map, String, String, String, String, String, String)}
  81701. instead.">
  81702. <doc>
  81703. <![CDATA[@deprecated Use
  81704. {@link #JobSubmittedEvent(JobID, String, String, long, String,
  81705. Map, String, String, String, String, String, String)}
  81706. instead.]]>
  81707. </doc>
  81708. </constructor>
  81709. <constructor name="JobSubmittedEvent" type="org.apache.hadoop.mapreduce.JobID, java.lang.String, java.lang.String, long, java.lang.String, java.util.Map, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String"
  81710. static="false" final="false" visibility="public"
  81711. deprecated="Use
  81712. {@link #JobSubmittedEvent(JobID, String, String, long, String,
  81713. Map, String, String, String, String, String, String)}
  81714. instead.">
  81715. <doc>
  81716. <![CDATA[@deprecated Use
  81717. {@link #JobSubmittedEvent(JobID, String, String, long, String,
  81718. Map, String, String, String, String, String, String)}
  81719. instead.]]>
  81720. </doc>
  81721. </constructor>
  81722. <constructor name="JobSubmittedEvent" type="org.apache.hadoop.mapreduce.JobID, java.lang.String, java.lang.String, long, java.lang.String, java.util.Map, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String"
  81723. static="false" final="false" visibility="public"
  81724. deprecated="not deprecated">
  81725. <doc>
  81726. <![CDATA[Create an event to record job submission
  81727. @param id The job Id of the job
  81728. @param jobName Name of the job
  81729. @param userName Name of the user who submitted the job
  81730. @param submitTime Time of submission
  81731. @param jobConfPath Path of the Job Configuration file
  81732. @param jobACLs The configured acls for the job.
  81733. @param queue job queue name
  81734. @param workflowId the workflow Id
  81735. @param workflowName the workflow name
  81736. @param workflowNodeName the workflow node name
  81737. @param workflowAdjacencies the workflow adjacencies
  81738. @param workflowTags Comma-separated workflow tags]]>
  81739. </doc>
  81740. </constructor>
  81741. <method name="getJobId" return="org.apache.hadoop.mapreduce.JobID"
  81742. abstract="false" native="false" synchronized="false"
  81743. static="false" final="false" visibility="public"
  81744. deprecated="not deprecated">
  81745. <doc>
  81746. <![CDATA[Get the Job Id]]>
  81747. </doc>
  81748. </method>
  81749. <method name="getJobName" return="java.lang.String"
  81750. abstract="false" native="false" synchronized="false"
  81751. static="false" final="false" visibility="public"
  81752. deprecated="not deprecated">
  81753. <doc>
  81754. <![CDATA[Get the Job name]]>
  81755. </doc>
  81756. </method>
  81757. <method name="getUserName" return="java.lang.String"
  81758. abstract="false" native="false" synchronized="false"
  81759. static="false" final="false" visibility="public"
  81760. deprecated="not deprecated">
  81761. <doc>
  81762. <![CDATA[Get the user name]]>
  81763. </doc>
  81764. </method>
  81765. <method name="getSubmitTime" return="long"
  81766. abstract="false" native="false" synchronized="false"
  81767. static="false" final="false" visibility="public"
  81768. deprecated="not deprecated">
  81769. <doc>
  81770. <![CDATA[Get the submit time]]>
  81771. </doc>
  81772. </method>
  81773. <method name="getJobConfPath" return="java.lang.String"
  81774. abstract="false" native="false" synchronized="false"
  81775. static="false" final="false" visibility="public"
  81776. deprecated="not deprecated">
  81777. <doc>
  81778. <![CDATA[Get the Path for the Job Configuration file]]>
  81779. </doc>
  81780. </method>
  81781. <method name="getJobAcls" return="java.util.Map"
  81782. abstract="false" native="false" synchronized="false"
  81783. static="false" final="false" visibility="public"
  81784. deprecated="not deprecated">
  81785. <doc>
  81786. <![CDATA[Get the acls configured for the job]]>
  81787. </doc>
  81788. </method>
  81789. <method name="getJobQueueName" return="java.lang.String"
  81790. abstract="false" native="false" synchronized="false"
  81791. static="false" final="false" visibility="public"
  81792. deprecated="not deprecated">
  81793. <doc>
  81794. <![CDATA[Get the acls configured for the job]]>
  81795. </doc>
  81796. </method>
  81797. <method name="getWorkflowId" return="java.lang.String"
  81798. abstract="false" native="false" synchronized="false"
  81799. static="false" final="false" visibility="public"
  81800. deprecated="not deprecated">
  81801. <doc>
  81802. <![CDATA[Get the workflow Id]]>
  81803. </doc>
  81804. </method>
  81805. <method name="getWorkflowName" return="java.lang.String"
  81806. abstract="false" native="false" synchronized="false"
  81807. static="false" final="false" visibility="public"
  81808. deprecated="not deprecated">
  81809. <doc>
  81810. <![CDATA[Get the workflow name]]>
  81811. </doc>
  81812. </method>
  81813. <method name="getWorkflowNodeName" return="java.lang.String"
  81814. abstract="false" native="false" synchronized="false"
  81815. static="false" final="false" visibility="public"
  81816. deprecated="not deprecated">
  81817. <doc>
  81818. <![CDATA[Get the workflow node name]]>
  81819. </doc>
  81820. </method>
  81821. <method name="getWorkflowAdjacencies" return="java.lang.String"
  81822. abstract="false" native="false" synchronized="false"
  81823. static="false" final="false" visibility="public"
  81824. deprecated="not deprecated">
  81825. <doc>
  81826. <![CDATA[Get the workflow adjacencies]]>
  81827. </doc>
  81828. </method>
  81829. <method name="getWorkflowTags" return="java.lang.String"
  81830. abstract="false" native="false" synchronized="false"
  81831. static="false" final="false" visibility="public"
  81832. deprecated="not deprecated">
  81833. <doc>
  81834. <![CDATA[Get the workflow tags]]>
  81835. </doc>
  81836. </method>
  81837. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  81838. abstract="false" native="false" synchronized="false"
  81839. static="false" final="false" visibility="public"
  81840. deprecated="not deprecated">
  81841. <doc>
  81842. <![CDATA[Get the event type]]>
  81843. </doc>
  81844. </method>
  81845. <doc>
  81846. <![CDATA[Event to record the submission of a job]]>
  81847. </doc>
  81848. </class>
  81849. <!-- end class org.apache.hadoop.tools.rumen.JobSubmittedEvent -->
  81850. <!-- start class org.apache.hadoop.tools.rumen.JobTraceReader -->
  81851. <class name="JobTraceReader" extends="org.apache.hadoop.tools.rumen.JsonObjectMapperParser"
  81852. abstract="false"
  81853. static="false" final="false" visibility="public"
  81854. deprecated="not deprecated">
  81855. <constructor name="JobTraceReader" type="org.apache.hadoop.fs.Path, org.apache.hadoop.conf.Configuration"
  81856. static="false" final="false" visibility="public"
  81857. deprecated="not deprecated">
  81858. <exception name="IOException" type="java.io.IOException"/>
  81859. <doc>
  81860. <![CDATA[Constructor.
  81861. @param path
  81862. Path to the JSON trace file, possibly compressed.
  81863. @param conf
  81864. @throws IOException]]>
  81865. </doc>
  81866. </constructor>
  81867. <constructor name="JobTraceReader" type="java.io.InputStream"
  81868. static="false" final="false" visibility="public"
  81869. deprecated="not deprecated">
  81870. <exception name="IOException" type="java.io.IOException"/>
  81871. <doc>
  81872. <![CDATA[Constructor.
  81873. @param input
  81874. The input stream for the JSON trace.]]>
  81875. </doc>
  81876. </constructor>
  81877. <doc>
  81878. <![CDATA[Reading JSON-encoded job traces and produce {@link LoggedJob} instances.]]>
  81879. </doc>
  81880. </class>
  81881. <!-- end class org.apache.hadoop.tools.rumen.JobTraceReader -->
  81882. <!-- start class org.apache.hadoop.tools.rumen.JobUnsuccessfulCompletionEvent -->
  81883. <class name="JobUnsuccessfulCompletionEvent" extends="java.lang.Object"
  81884. abstract="false"
  81885. static="false" final="false" visibility="public"
  81886. deprecated="not deprecated">
  81887. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  81888. <constructor name="JobUnsuccessfulCompletionEvent" type="org.apache.hadoop.mapreduce.JobID, long, int, int, java.lang.String"
  81889. static="false" final="false" visibility="public"
  81890. deprecated="not deprecated">
  81891. <doc>
  81892. <![CDATA[Create an event to record unsuccessful completion (killed/failed) of jobs
  81893. @param id Job ID
  81894. @param finishTime Finish time of the job
  81895. @param finishedMaps Number of finished maps
  81896. @param finishedReduces Number of finished reduces
  81897. @param status Status of the job]]>
  81898. </doc>
  81899. </constructor>
  81900. <method name="getJobId" return="org.apache.hadoop.mapreduce.JobID"
  81901. abstract="false" native="false" synchronized="false"
  81902. static="false" final="false" visibility="public"
  81903. deprecated="not deprecated">
  81904. <doc>
  81905. <![CDATA[Get the Job ID]]>
  81906. </doc>
  81907. </method>
  81908. <method name="getFinishTime" return="long"
  81909. abstract="false" native="false" synchronized="false"
  81910. static="false" final="false" visibility="public"
  81911. deprecated="not deprecated">
  81912. <doc>
  81913. <![CDATA[Get the job finish time]]>
  81914. </doc>
  81915. </method>
  81916. <method name="getFinishedMaps" return="int"
  81917. abstract="false" native="false" synchronized="false"
  81918. static="false" final="false" visibility="public"
  81919. deprecated="not deprecated">
  81920. <doc>
  81921. <![CDATA[Get the number of finished maps]]>
  81922. </doc>
  81923. </method>
  81924. <method name="getFinishedReduces" return="int"
  81925. abstract="false" native="false" synchronized="false"
  81926. static="false" final="false" visibility="public"
  81927. deprecated="not deprecated">
  81928. <doc>
  81929. <![CDATA[Get the number of finished reduces]]>
  81930. </doc>
  81931. </method>
  81932. <method name="getStatus" return="java.lang.String"
  81933. abstract="false" native="false" synchronized="false"
  81934. static="false" final="false" visibility="public"
  81935. deprecated="not deprecated">
  81936. <doc>
  81937. <![CDATA[Get the status]]>
  81938. </doc>
  81939. </method>
  81940. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  81941. abstract="false" native="false" synchronized="false"
  81942. static="false" final="false" visibility="public"
  81943. deprecated="not deprecated">
  81944. <doc>
  81945. <![CDATA[Get the event type]]>
  81946. </doc>
  81947. </method>
  81948. <doc>
  81949. <![CDATA[Event to record Failed and Killed completion of jobs]]>
  81950. </doc>
  81951. </class>
  81952. <!-- end class org.apache.hadoop.tools.rumen.JobUnsuccessfulCompletionEvent -->
  81953. <!-- start class org.apache.hadoop.tools.rumen.JsonObjectMapperWriter -->
  81954. <class name="JsonObjectMapperWriter" extends="java.lang.Object"
  81955. abstract="false"
  81956. static="false" final="false" visibility="public"
  81957. deprecated="not deprecated">
  81958. <implements name="java.io.Closeable"/>
  81959. <constructor name="JsonObjectMapperWriter" type="java.io.OutputStream, boolean"
  81960. static="false" final="false" visibility="public"
  81961. deprecated="not deprecated">
  81962. <exception name="IOException" type="java.io.IOException"/>
  81963. </constructor>
  81964. <method name="write"
  81965. abstract="false" native="false" synchronized="false"
  81966. static="false" final="false" visibility="public"
  81967. deprecated="not deprecated">
  81968. <param name="object" type="java.lang.Object"/>
  81969. <exception name="IOException" type="java.io.IOException"/>
  81970. </method>
  81971. <method name="close"
  81972. abstract="false" native="false" synchronized="false"
  81973. static="false" final="false" visibility="public"
  81974. deprecated="not deprecated">
  81975. <exception name="IOException" type="java.io.IOException"/>
  81976. </method>
  81977. <doc>
  81978. <![CDATA[Simple wrapper around {@link JsonGenerator} to write objects in JSON format.
  81979. @param <T> The type of the objects to be written.]]>
  81980. </doc>
  81981. </class>
  81982. <!-- end class org.apache.hadoop.tools.rumen.JsonObjectMapperWriter -->
  81983. <!-- start class org.apache.hadoop.tools.rumen.LoggedDiscreteCDF -->
  81984. <class name="LoggedDiscreteCDF" extends="java.lang.Object"
  81985. abstract="false"
  81986. static="false" final="false" visibility="public"
  81987. deprecated="not deprecated">
  81988. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  81989. <constructor name="LoggedDiscreteCDF"
  81990. static="false" final="false" visibility="public"
  81991. deprecated="not deprecated">
  81992. </constructor>
  81993. <method name="getMinimum" return="long"
  81994. abstract="false" native="false" synchronized="false"
  81995. static="false" final="false" visibility="public"
  81996. deprecated="not deprecated">
  81997. </method>
  81998. <method name="getRankings" return="java.util.List"
  81999. abstract="false" native="false" synchronized="false"
  82000. static="false" final="false" visibility="public"
  82001. deprecated="not deprecated">
  82002. </method>
  82003. <method name="getMaximum" return="long"
  82004. abstract="false" native="false" synchronized="false"
  82005. static="false" final="false" visibility="public"
  82006. deprecated="not deprecated">
  82007. </method>
  82008. <method name="getNumberValues" return="long"
  82009. abstract="false" native="false" synchronized="false"
  82010. static="false" final="false" visibility="public"
  82011. deprecated="not deprecated">
  82012. </method>
  82013. <method name="deepCompare"
  82014. abstract="false" native="false" synchronized="false"
  82015. static="false" final="false" visibility="public"
  82016. deprecated="not deprecated">
  82017. <param name="comparand" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  82018. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  82019. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  82020. </method>
  82021. <doc>
  82022. <![CDATA[A {@link LoggedDiscreteCDF} is a discrete approximation of a cumulative
  82023. distribution function, with this class set up to meet the requirements of the
  82024. Jackson JSON parser/generator.
  82025. All of the public methods are simply accessors for the instance variables we
  82026. want to write out in the JSON files.]]>
  82027. </doc>
  82028. </class>
  82029. <!-- end class org.apache.hadoop.tools.rumen.LoggedDiscreteCDF -->
  82030. <!-- start class org.apache.hadoop.tools.rumen.LoggedJob -->
  82031. <class name="LoggedJob" extends="java.lang.Object"
  82032. abstract="false"
  82033. static="false" final="false" visibility="public"
  82034. deprecated="not deprecated">
  82035. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  82036. <method name="getJobProperties" return="java.util.Properties"
  82037. abstract="false" native="false" synchronized="false"
  82038. static="false" final="false" visibility="public"
  82039. deprecated="not deprecated">
  82040. <doc>
  82041. <![CDATA[Get the configuration properties of the job.]]>
  82042. </doc>
  82043. </method>
  82044. <method name="setUnknownAttribute"
  82045. abstract="false" native="false" synchronized="false"
  82046. static="false" final="false" visibility="public"
  82047. deprecated="not deprecated">
  82048. <param name="attributeName" type="java.lang.String"/>
  82049. <param name="ignored" type="java.lang.Object"/>
  82050. </method>
  82051. <method name="getUser" return="java.lang.String"
  82052. abstract="false" native="false" synchronized="false"
  82053. static="false" final="false" visibility="public"
  82054. deprecated="not deprecated">
  82055. </method>
  82056. <method name="getJobID" return="java.lang.String"
  82057. abstract="false" native="false" synchronized="false"
  82058. static="false" final="false" visibility="public"
  82059. deprecated="not deprecated">
  82060. </method>
  82061. <method name="getPriority" return="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority"
  82062. abstract="false" native="false" synchronized="false"
  82063. static="false" final="false" visibility="public"
  82064. deprecated="not deprecated">
  82065. </method>
  82066. <method name="getComputonsPerMapInputByte" return="long"
  82067. abstract="false" native="false" synchronized="false"
  82068. static="false" final="false" visibility="public"
  82069. deprecated="not deprecated">
  82070. </method>
  82071. <method name="getComputonsPerMapOutputByte" return="long"
  82072. abstract="false" native="false" synchronized="false"
  82073. static="false" final="false" visibility="public"
  82074. deprecated="not deprecated">
  82075. </method>
  82076. <method name="getComputonsPerReduceInputByte" return="long"
  82077. abstract="false" native="false" synchronized="false"
  82078. static="false" final="false" visibility="public"
  82079. deprecated="not deprecated">
  82080. </method>
  82081. <method name="getComputonsPerReduceOutputByte" return="long"
  82082. abstract="false" native="false" synchronized="false"
  82083. static="false" final="false" visibility="public"
  82084. deprecated="not deprecated">
  82085. </method>
  82086. <method name="getSubmitTime" return="long"
  82087. abstract="false" native="false" synchronized="false"
  82088. static="false" final="false" visibility="public"
  82089. deprecated="not deprecated">
  82090. </method>
  82091. <method name="getLaunchTime" return="long"
  82092. abstract="false" native="false" synchronized="false"
  82093. static="false" final="false" visibility="public"
  82094. deprecated="not deprecated">
  82095. </method>
  82096. <method name="getFinishTime" return="long"
  82097. abstract="false" native="false" synchronized="false"
  82098. static="false" final="false" visibility="public"
  82099. deprecated="not deprecated">
  82100. </method>
  82101. <method name="getHeapMegabytes" return="int"
  82102. abstract="false" native="false" synchronized="false"
  82103. static="false" final="false" visibility="public"
  82104. deprecated="not deprecated">
  82105. </method>
  82106. <method name="getTotalMaps" return="int"
  82107. abstract="false" native="false" synchronized="false"
  82108. static="false" final="false" visibility="public"
  82109. deprecated="not deprecated">
  82110. </method>
  82111. <method name="getTotalReduces" return="int"
  82112. abstract="false" native="false" synchronized="false"
  82113. static="false" final="false" visibility="public"
  82114. deprecated="not deprecated">
  82115. </method>
  82116. <method name="getOutcome" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  82117. abstract="false" native="false" synchronized="false"
  82118. static="false" final="false" visibility="public"
  82119. deprecated="not deprecated">
  82120. </method>
  82121. <method name="getJobtype" return="org.apache.hadoop.tools.rumen.LoggedJob.JobType"
  82122. abstract="false" native="false" synchronized="false"
  82123. static="false" final="false" visibility="public"
  82124. deprecated="not deprecated">
  82125. </method>
  82126. <method name="getDirectDependantJobs" return="java.util.List"
  82127. abstract="false" native="false" synchronized="false"
  82128. static="false" final="false" visibility="public"
  82129. deprecated="not deprecated">
  82130. </method>
  82131. <method name="getMapTasks" return="java.util.List"
  82132. abstract="false" native="false" synchronized="false"
  82133. static="false" final="false" visibility="public"
  82134. deprecated="not deprecated">
  82135. </method>
  82136. <method name="getReduceTasks" return="java.util.List"
  82137. abstract="false" native="false" synchronized="false"
  82138. static="false" final="false" visibility="public"
  82139. deprecated="not deprecated">
  82140. </method>
  82141. <method name="getOtherTasks" return="java.util.List"
  82142. abstract="false" native="false" synchronized="false"
  82143. static="false" final="false" visibility="public"
  82144. deprecated="not deprecated">
  82145. </method>
  82146. <method name="getSuccessfulMapAttemptCDFs" return="java.util.ArrayList"
  82147. abstract="false" native="false" synchronized="false"
  82148. static="false" final="false" visibility="public"
  82149. deprecated="not deprecated">
  82150. </method>
  82151. <method name="getFailedMapAttemptCDFs" return="java.util.ArrayList"
  82152. abstract="false" native="false" synchronized="false"
  82153. static="false" final="false" visibility="public"
  82154. deprecated="not deprecated">
  82155. </method>
  82156. <method name="getSuccessfulReduceAttemptCDF" return="org.apache.hadoop.tools.rumen.LoggedDiscreteCDF"
  82157. abstract="false" native="false" synchronized="false"
  82158. static="false" final="false" visibility="public"
  82159. deprecated="not deprecated">
  82160. </method>
  82161. <method name="getFailedReduceAttemptCDF" return="org.apache.hadoop.tools.rumen.LoggedDiscreteCDF"
  82162. abstract="false" native="false" synchronized="false"
  82163. static="false" final="false" visibility="public"
  82164. deprecated="not deprecated">
  82165. </method>
  82166. <method name="getMapperTriesToSucceed" return="double[]"
  82167. abstract="false" native="false" synchronized="false"
  82168. static="false" final="false" visibility="public"
  82169. deprecated="not deprecated">
  82170. </method>
  82171. <method name="getFailedMapperFraction" return="double"
  82172. abstract="false" native="false" synchronized="false"
  82173. static="false" final="false" visibility="public"
  82174. deprecated="not deprecated">
  82175. </method>
  82176. <method name="getRelativeTime" return="long"
  82177. abstract="false" native="false" synchronized="false"
  82178. static="false" final="false" visibility="public"
  82179. deprecated="not deprecated">
  82180. </method>
  82181. <method name="getQueue" return="java.lang.String"
  82182. abstract="false" native="false" synchronized="false"
  82183. static="false" final="false" visibility="public"
  82184. deprecated="not deprecated">
  82185. <doc>
  82186. <![CDATA[@return job queue name if it is available in job history file or
  82187. job history conf file. Returns null otherwise.]]>
  82188. </doc>
  82189. </method>
  82190. <method name="getJobName" return="java.lang.String"
  82191. abstract="false" native="false" synchronized="false"
  82192. static="false" final="false" visibility="public"
  82193. deprecated="not deprecated">
  82194. </method>
  82195. <method name="getClusterMapMB" return="int"
  82196. abstract="false" native="false" synchronized="false"
  82197. static="false" final="false" visibility="public"
  82198. deprecated="not deprecated">
  82199. </method>
  82200. <method name="getClusterReduceMB" return="int"
  82201. abstract="false" native="false" synchronized="false"
  82202. static="false" final="false" visibility="public"
  82203. deprecated="not deprecated">
  82204. </method>
  82205. <method name="getJobMapMB" return="int"
  82206. abstract="false" native="false" synchronized="false"
  82207. static="false" final="false" visibility="public"
  82208. deprecated="not deprecated">
  82209. </method>
  82210. <method name="getJobReduceMB" return="int"
  82211. abstract="false" native="false" synchronized="false"
  82212. static="false" final="false" visibility="public"
  82213. deprecated="not deprecated">
  82214. </method>
  82215. <method name="deepCompare"
  82216. abstract="false" native="false" synchronized="false"
  82217. static="false" final="false" visibility="public"
  82218. deprecated="not deprecated">
  82219. <param name="comparand" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  82220. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  82221. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  82222. </method>
  82223. <doc>
  82224. <![CDATA[A {@link LoggedDiscreteCDF} is a representation of an hadoop job, with the
  82225. details of this class set up to meet the requirements of the Jackson JSON
  82226. parser/generator.
  82227. All of the public methods are simply accessors for the instance variables we
  82228. want to write out in the JSON files.]]>
  82229. </doc>
  82230. </class>
  82231. <!-- end class org.apache.hadoop.tools.rumen.LoggedJob -->
  82232. <!-- start class org.apache.hadoop.tools.rumen.LoggedJob.JobPriority -->
  82233. <class name="LoggedJob.JobPriority" extends="java.lang.Enum"
  82234. abstract="false"
  82235. static="true" final="true" visibility="public"
  82236. deprecated="not deprecated">
  82237. <method name="values" return="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority[]"
  82238. abstract="false" native="false" synchronized="false"
  82239. static="true" final="false" visibility="public"
  82240. deprecated="not deprecated">
  82241. </method>
  82242. <method name="valueOf" return="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority"
  82243. abstract="false" native="false" synchronized="false"
  82244. static="true" final="false" visibility="public"
  82245. deprecated="not deprecated">
  82246. <param name="name" type="java.lang.String"/>
  82247. </method>
  82248. <field name="VERY_LOW" type="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority"
  82249. transient="false" volatile="false"
  82250. static="true" final="true" visibility="public"
  82251. deprecated="not deprecated">
  82252. </field>
  82253. <field name="LOW" type="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority"
  82254. transient="false" volatile="false"
  82255. static="true" final="true" visibility="public"
  82256. deprecated="not deprecated">
  82257. </field>
  82258. <field name="NORMAL" type="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority"
  82259. transient="false" volatile="false"
  82260. static="true" final="true" visibility="public"
  82261. deprecated="not deprecated">
  82262. </field>
  82263. <field name="HIGH" type="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority"
  82264. transient="false" volatile="false"
  82265. static="true" final="true" visibility="public"
  82266. deprecated="not deprecated">
  82267. </field>
  82268. <field name="VERY_HIGH" type="org.apache.hadoop.tools.rumen.LoggedJob.JobPriority"
  82269. transient="false" volatile="false"
  82270. static="true" final="true" visibility="public"
  82271. deprecated="not deprecated">
  82272. </field>
  82273. </class>
  82274. <!-- end class org.apache.hadoop.tools.rumen.LoggedJob.JobPriority -->
  82275. <!-- start class org.apache.hadoop.tools.rumen.LoggedJob.JobType -->
  82276. <class name="LoggedJob.JobType" extends="java.lang.Enum"
  82277. abstract="false"
  82278. static="true" final="true" visibility="public"
  82279. deprecated="not deprecated">
  82280. <method name="values" return="org.apache.hadoop.tools.rumen.LoggedJob.JobType[]"
  82281. abstract="false" native="false" synchronized="false"
  82282. static="true" final="false" visibility="public"
  82283. deprecated="not deprecated">
  82284. </method>
  82285. <method name="valueOf" return="org.apache.hadoop.tools.rumen.LoggedJob.JobType"
  82286. abstract="false" native="false" synchronized="false"
  82287. static="true" final="false" visibility="public"
  82288. deprecated="not deprecated">
  82289. <param name="name" type="java.lang.String"/>
  82290. </method>
  82291. <field name="JAVA" type="org.apache.hadoop.tools.rumen.LoggedJob.JobType"
  82292. transient="false" volatile="false"
  82293. static="true" final="true" visibility="public"
  82294. deprecated="not deprecated">
  82295. </field>
  82296. <field name="PIG" type="org.apache.hadoop.tools.rumen.LoggedJob.JobType"
  82297. transient="false" volatile="false"
  82298. static="true" final="true" visibility="public"
  82299. deprecated="not deprecated">
  82300. </field>
  82301. <field name="STREAMING" type="org.apache.hadoop.tools.rumen.LoggedJob.JobType"
  82302. transient="false" volatile="false"
  82303. static="true" final="true" visibility="public"
  82304. deprecated="not deprecated">
  82305. </field>
  82306. <field name="PIPES" type="org.apache.hadoop.tools.rumen.LoggedJob.JobType"
  82307. transient="false" volatile="false"
  82308. static="true" final="true" visibility="public"
  82309. deprecated="not deprecated">
  82310. </field>
  82311. <field name="OVERALL" type="org.apache.hadoop.tools.rumen.LoggedJob.JobType"
  82312. transient="false" volatile="false"
  82313. static="true" final="true" visibility="public"
  82314. deprecated="not deprecated">
  82315. </field>
  82316. </class>
  82317. <!-- end class org.apache.hadoop.tools.rumen.LoggedJob.JobType -->
  82318. <!-- start class org.apache.hadoop.tools.rumen.LoggedLocation -->
  82319. <class name="LoggedLocation" extends="java.lang.Object"
  82320. abstract="false"
  82321. static="false" final="false" visibility="public"
  82322. deprecated="not deprecated">
  82323. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  82324. <constructor name="LoggedLocation"
  82325. static="false" final="false" visibility="public"
  82326. deprecated="not deprecated">
  82327. </constructor>
  82328. <method name="getLayers" return="java.util.List"
  82329. abstract="false" native="false" synchronized="false"
  82330. static="false" final="false" visibility="public"
  82331. deprecated="not deprecated">
  82332. </method>
  82333. <method name="setUnknownAttribute"
  82334. abstract="false" native="false" synchronized="false"
  82335. static="false" final="false" visibility="public"
  82336. deprecated="not deprecated">
  82337. <param name="attributeName" type="java.lang.String"/>
  82338. <param name="ignored" type="java.lang.Object"/>
  82339. </method>
  82340. <method name="deepCompare"
  82341. abstract="false" native="false" synchronized="false"
  82342. static="false" final="false" visibility="public"
  82343. deprecated="not deprecated">
  82344. <param name="comparand" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  82345. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  82346. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  82347. </method>
  82348. <doc>
  82349. <![CDATA[A {@link LoggedLocation} is a representation of a point in an hierarchical
  82350. network, represented as a series of membership names, broadest first.
  82351. For example, if your network has <i>hosts</i> grouped into <i>racks</i>, then
  82352. in onecluster you might have a node {@code node1} on rack {@code rack1}. This
  82353. would be represented with a ArrayList of two layers, with two {@link String}
  82354. s being {@code "rack1"} and {@code "node1"}.
  82355. The details of this class are set up to meet the requirements of the Jackson
  82356. JSON parser/generator.
  82357. All of the public methods are simply accessors for the instance variables we
  82358. want to write out in the JSON files.]]>
  82359. </doc>
  82360. </class>
  82361. <!-- end class org.apache.hadoop.tools.rumen.LoggedLocation -->
  82362. <!-- start class org.apache.hadoop.tools.rumen.LoggedNetworkTopology -->
  82363. <class name="LoggedNetworkTopology" extends="java.lang.Object"
  82364. abstract="false"
  82365. static="false" final="false" visibility="public"
  82366. deprecated="not deprecated">
  82367. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  82368. <constructor name="LoggedNetworkTopology"
  82369. static="false" final="false" visibility="public"
  82370. deprecated="not deprecated">
  82371. </constructor>
  82372. <method name="setUnknownAttribute"
  82373. abstract="false" native="false" synchronized="false"
  82374. static="false" final="false" visibility="public"
  82375. deprecated="not deprecated">
  82376. <param name="attributeName" type="java.lang.String"/>
  82377. <param name="ignored" type="java.lang.Object"/>
  82378. </method>
  82379. <method name="getName" return="java.lang.String"
  82380. abstract="false" native="false" synchronized="false"
  82381. static="false" final="false" visibility="public"
  82382. deprecated="not deprecated">
  82383. </method>
  82384. <method name="getChildren" return="java.util.List"
  82385. abstract="false" native="false" synchronized="false"
  82386. static="false" final="false" visibility="public"
  82387. deprecated="not deprecated">
  82388. </method>
  82389. <method name="deepCompare"
  82390. abstract="false" native="false" synchronized="false"
  82391. static="false" final="false" visibility="public"
  82392. deprecated="not deprecated">
  82393. <param name="comparand" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  82394. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  82395. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  82396. </method>
  82397. <doc>
  82398. <![CDATA[A {@link LoggedNetworkTopology} represents a tree that in turn represents a
  82399. hierarchy of hosts. The current version requires the tree to have all leaves
  82400. at the same level.
  82401. All of the public methods are simply accessors for the instance variables we
  82402. want to write out in the JSON files.]]>
  82403. </doc>
  82404. </class>
  82405. <!-- end class org.apache.hadoop.tools.rumen.LoggedNetworkTopology -->
  82406. <!-- start class org.apache.hadoop.tools.rumen.LoggedSingleRelativeRanking -->
  82407. <class name="LoggedSingleRelativeRanking" extends="java.lang.Object"
  82408. abstract="false"
  82409. static="false" final="false" visibility="public"
  82410. deprecated="not deprecated">
  82411. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  82412. <constructor name="LoggedSingleRelativeRanking"
  82413. static="false" final="false" visibility="public"
  82414. deprecated="not deprecated">
  82415. </constructor>
  82416. <method name="setUnknownAttribute"
  82417. abstract="false" native="false" synchronized="false"
  82418. static="false" final="false" visibility="public"
  82419. deprecated="not deprecated">
  82420. <param name="attributeName" type="java.lang.String"/>
  82421. <param name="ignored" type="java.lang.Object"/>
  82422. </method>
  82423. <method name="getRelativeRanking" return="double"
  82424. abstract="false" native="false" synchronized="false"
  82425. static="false" final="false" visibility="public"
  82426. deprecated="not deprecated">
  82427. </method>
  82428. <method name="getDatum" return="long"
  82429. abstract="false" native="false" synchronized="false"
  82430. static="false" final="false" visibility="public"
  82431. deprecated="not deprecated">
  82432. </method>
  82433. <method name="deepCompare"
  82434. abstract="false" native="false" synchronized="false"
  82435. static="false" final="false" visibility="public"
  82436. deprecated="not deprecated">
  82437. <param name="comparand" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  82438. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  82439. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  82440. </method>
  82441. <doc>
  82442. <![CDATA[A {@link LoggedSingleRelativeRanking} represents an X-Y coordinate of a
  82443. single point in a discrete CDF.
  82444. All of the public methods are simply accessors for the instance variables we
  82445. want to write out in the JSON files.]]>
  82446. </doc>
  82447. </class>
  82448. <!-- end class org.apache.hadoop.tools.rumen.LoggedSingleRelativeRanking -->
  82449. <!-- start class org.apache.hadoop.tools.rumen.LoggedTask -->
  82450. <class name="LoggedTask" extends="java.lang.Object"
  82451. abstract="false"
  82452. static="false" final="false" visibility="public"
  82453. deprecated="not deprecated">
  82454. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  82455. <method name="setUnknownAttribute"
  82456. abstract="false" native="false" synchronized="false"
  82457. static="false" final="false" visibility="public"
  82458. deprecated="not deprecated">
  82459. <param name="attributeName" type="java.lang.String"/>
  82460. <param name="ignored" type="java.lang.Object"/>
  82461. </method>
  82462. <method name="getInputBytes" return="long"
  82463. abstract="false" native="false" synchronized="false"
  82464. static="false" final="false" visibility="public"
  82465. deprecated="not deprecated">
  82466. </method>
  82467. <method name="getInputRecords" return="long"
  82468. abstract="false" native="false" synchronized="false"
  82469. static="false" final="false" visibility="public"
  82470. deprecated="not deprecated">
  82471. </method>
  82472. <method name="getOutputBytes" return="long"
  82473. abstract="false" native="false" synchronized="false"
  82474. static="false" final="false" visibility="public"
  82475. deprecated="not deprecated">
  82476. </method>
  82477. <method name="getOutputRecords" return="long"
  82478. abstract="false" native="false" synchronized="false"
  82479. static="false" final="false" visibility="public"
  82480. deprecated="not deprecated">
  82481. </method>
  82482. <method name="getTaskID" return="java.lang.String"
  82483. abstract="false" native="false" synchronized="false"
  82484. static="false" final="false" visibility="public"
  82485. deprecated="not deprecated">
  82486. </method>
  82487. <method name="getStartTime" return="long"
  82488. abstract="false" native="false" synchronized="false"
  82489. static="false" final="false" visibility="public"
  82490. deprecated="not deprecated">
  82491. </method>
  82492. <method name="getFinishTime" return="long"
  82493. abstract="false" native="false" synchronized="false"
  82494. static="false" final="false" visibility="public"
  82495. deprecated="not deprecated">
  82496. </method>
  82497. <method name="getAttempts" return="java.util.List"
  82498. abstract="false" native="false" synchronized="false"
  82499. static="false" final="false" visibility="public"
  82500. deprecated="not deprecated">
  82501. </method>
  82502. <method name="getPreferredLocations" return="java.util.List"
  82503. abstract="false" native="false" synchronized="false"
  82504. static="false" final="false" visibility="public"
  82505. deprecated="not deprecated">
  82506. </method>
  82507. <method name="getTaskStatus" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  82508. abstract="false" native="false" synchronized="false"
  82509. static="false" final="false" visibility="public"
  82510. deprecated="not deprecated">
  82511. </method>
  82512. <method name="getTaskType" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  82513. abstract="false" native="false" synchronized="false"
  82514. static="false" final="false" visibility="public"
  82515. deprecated="not deprecated">
  82516. </method>
  82517. <method name="incorporateCounters"
  82518. abstract="false" native="false" synchronized="false"
  82519. static="false" final="false" visibility="public"
  82520. deprecated="not deprecated">
  82521. <param name="counters" type="org.apache.hadoop.tools.rumen.JhCounters"/>
  82522. </method>
  82523. <method name="deepCompare"
  82524. abstract="false" native="false" synchronized="false"
  82525. static="false" final="false" visibility="public"
  82526. deprecated="not deprecated">
  82527. <param name="comparand" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  82528. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  82529. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  82530. </method>
  82531. <doc>
  82532. <![CDATA[A {@link LoggedTask} represents a [hadoop] task that is part of a hadoop job.
  82533. It knows about the [pssibly empty] sequence of attempts, its I/O footprint,
  82534. and its runtime.
  82535. All of the public methods are simply accessors for the instance variables we
  82536. want to write out in the JSON files.]]>
  82537. </doc>
  82538. </class>
  82539. <!-- end class org.apache.hadoop.tools.rumen.LoggedTask -->
  82540. <!-- start class org.apache.hadoop.tools.rumen.LoggedTaskAttempt -->
  82541. <class name="LoggedTaskAttempt" extends="java.lang.Object"
  82542. abstract="false"
  82543. static="false" final="false" visibility="public"
  82544. deprecated="not deprecated">
  82545. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  82546. <method name="setUnknownAttribute"
  82547. abstract="false" native="false" synchronized="false"
  82548. static="false" final="false" visibility="public"
  82549. deprecated="not deprecated">
  82550. <param name="attributeName" type="java.lang.String"/>
  82551. <param name="ignored" type="java.lang.Object"/>
  82552. </method>
  82553. <method name="getShuffleFinished" return="long"
  82554. abstract="false" native="false" synchronized="false"
  82555. static="false" final="false" visibility="public"
  82556. deprecated="not deprecated">
  82557. </method>
  82558. <method name="getSortFinished" return="long"
  82559. abstract="false" native="false" synchronized="false"
  82560. static="false" final="false" visibility="public"
  82561. deprecated="not deprecated">
  82562. </method>
  82563. <method name="getAttemptID" return="java.lang.String"
  82564. abstract="false" native="false" synchronized="false"
  82565. static="false" final="false" visibility="public"
  82566. deprecated="not deprecated">
  82567. </method>
  82568. <method name="getResult" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  82569. abstract="false" native="false" synchronized="false"
  82570. static="false" final="false" visibility="public"
  82571. deprecated="not deprecated">
  82572. </method>
  82573. <method name="getStartTime" return="long"
  82574. abstract="false" native="false" synchronized="false"
  82575. static="false" final="false" visibility="public"
  82576. deprecated="not deprecated">
  82577. </method>
  82578. <method name="getFinishTime" return="long"
  82579. abstract="false" native="false" synchronized="false"
  82580. static="false" final="false" visibility="public"
  82581. deprecated="not deprecated">
  82582. </method>
  82583. <method name="getHostName" return="java.lang.String"
  82584. abstract="false" native="false" synchronized="false"
  82585. static="false" final="false" visibility="public"
  82586. deprecated="not deprecated">
  82587. </method>
  82588. <method name="getHdfsBytesRead" return="long"
  82589. abstract="false" native="false" synchronized="false"
  82590. static="false" final="false" visibility="public"
  82591. deprecated="not deprecated">
  82592. </method>
  82593. <method name="getHdfsBytesWritten" return="long"
  82594. abstract="false" native="false" synchronized="false"
  82595. static="false" final="false" visibility="public"
  82596. deprecated="not deprecated">
  82597. </method>
  82598. <method name="getFileBytesRead" return="long"
  82599. abstract="false" native="false" synchronized="false"
  82600. static="false" final="false" visibility="public"
  82601. deprecated="not deprecated">
  82602. </method>
  82603. <method name="getFileBytesWritten" return="long"
  82604. abstract="false" native="false" synchronized="false"
  82605. static="false" final="false" visibility="public"
  82606. deprecated="not deprecated">
  82607. </method>
  82608. <method name="getMapInputRecords" return="long"
  82609. abstract="false" native="false" synchronized="false"
  82610. static="false" final="false" visibility="public"
  82611. deprecated="not deprecated">
  82612. </method>
  82613. <method name="getMapOutputBytes" return="long"
  82614. abstract="false" native="false" synchronized="false"
  82615. static="false" final="false" visibility="public"
  82616. deprecated="not deprecated">
  82617. </method>
  82618. <method name="getMapOutputRecords" return="long"
  82619. abstract="false" native="false" synchronized="false"
  82620. static="false" final="false" visibility="public"
  82621. deprecated="not deprecated">
  82622. </method>
  82623. <method name="getCombineInputRecords" return="long"
  82624. abstract="false" native="false" synchronized="false"
  82625. static="false" final="false" visibility="public"
  82626. deprecated="not deprecated">
  82627. </method>
  82628. <method name="getReduceInputGroups" return="long"
  82629. abstract="false" native="false" synchronized="false"
  82630. static="false" final="false" visibility="public"
  82631. deprecated="not deprecated">
  82632. </method>
  82633. <method name="getReduceInputRecords" return="long"
  82634. abstract="false" native="false" synchronized="false"
  82635. static="false" final="false" visibility="public"
  82636. deprecated="not deprecated">
  82637. </method>
  82638. <method name="getReduceShuffleBytes" return="long"
  82639. abstract="false" native="false" synchronized="false"
  82640. static="false" final="false" visibility="public"
  82641. deprecated="not deprecated">
  82642. </method>
  82643. <method name="getReduceOutputRecords" return="long"
  82644. abstract="false" native="false" synchronized="false"
  82645. static="false" final="false" visibility="public"
  82646. deprecated="not deprecated">
  82647. </method>
  82648. <method name="getSpilledRecords" return="long"
  82649. abstract="false" native="false" synchronized="false"
  82650. static="false" final="false" visibility="public"
  82651. deprecated="not deprecated">
  82652. </method>
  82653. <method name="getLocation" return="org.apache.hadoop.tools.rumen.LoggedLocation"
  82654. abstract="false" native="false" synchronized="false"
  82655. static="false" final="false" visibility="public"
  82656. deprecated="not deprecated">
  82657. </method>
  82658. <method name="getMapInputBytes" return="long"
  82659. abstract="false" native="false" synchronized="false"
  82660. static="false" final="false" visibility="public"
  82661. deprecated="not deprecated">
  82662. </method>
  82663. <method name="incorporateCounters"
  82664. abstract="false" native="false" synchronized="false"
  82665. static="false" final="false" visibility="public"
  82666. deprecated="not deprecated">
  82667. <param name="counters" type="org.apache.hadoop.tools.rumen.JhCounters"/>
  82668. </method>
  82669. <method name="getResourceUsageMetrics" return="org.apache.hadoop.tools.rumen.ResourceUsageMetrics"
  82670. abstract="false" native="false" synchronized="false"
  82671. static="false" final="false" visibility="public"
  82672. deprecated="not deprecated">
  82673. </method>
  82674. <method name="deepCompare"
  82675. abstract="false" native="false" synchronized="false"
  82676. static="false" final="false" visibility="public"
  82677. deprecated="not deprecated">
  82678. <param name="comparand" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  82679. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  82680. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  82681. </method>
  82682. <doc>
  82683. <![CDATA[A {@link LoggedTaskAttempt} represents an attempt to run an hadoop task in a
  82684. hadoop job. Note that a task can have several attempts.
  82685. All of the public methods are simply accessors for the instance variables we
  82686. want to write out in the JSON files.]]>
  82687. </doc>
  82688. </class>
  82689. <!-- end class org.apache.hadoop.tools.rumen.LoggedTaskAttempt -->
  82690. <!-- start class org.apache.hadoop.tools.rumen.MachineNode -->
  82691. <class name="MachineNode" extends="org.apache.hadoop.tools.rumen.Node"
  82692. abstract="false"
  82693. static="false" final="true" visibility="public"
  82694. deprecated="not deprecated">
  82695. <method name="equals" return="boolean"
  82696. abstract="false" native="false" synchronized="false"
  82697. static="false" final="false" visibility="public"
  82698. deprecated="not deprecated">
  82699. <param name="obj" type="java.lang.Object"/>
  82700. </method>
  82701. <method name="hashCode" return="int"
  82702. abstract="false" native="false" synchronized="false"
  82703. static="false" final="false" visibility="public"
  82704. deprecated="not deprecated">
  82705. </method>
  82706. <method name="getMemory" return="long"
  82707. abstract="false" native="false" synchronized="false"
  82708. static="false" final="false" visibility="public"
  82709. deprecated="not deprecated">
  82710. <doc>
  82711. <![CDATA[Get the available physical RAM of the node.
  82712. @return The available physical RAM of the node, in KB.]]>
  82713. </doc>
  82714. </method>
  82715. <method name="getMapSlots" return="int"
  82716. abstract="false" native="false" synchronized="false"
  82717. static="false" final="false" visibility="public"
  82718. deprecated="not deprecated">
  82719. <doc>
  82720. <![CDATA[Get the number of map slots of the node.
  82721. @return The number of map slots of the node.]]>
  82722. </doc>
  82723. </method>
  82724. <method name="getReduceSlots" return="int"
  82725. abstract="false" native="false" synchronized="false"
  82726. static="false" final="false" visibility="public"
  82727. deprecated="not deprecated">
  82728. <doc>
  82729. <![CDATA[Get the number of reduce slots of the node.
  82730. @return The number of reduce slots fo the node.]]>
  82731. </doc>
  82732. </method>
  82733. <method name="getMemoryPerMapSlot" return="long"
  82734. abstract="false" native="false" synchronized="false"
  82735. static="false" final="false" visibility="public"
  82736. deprecated="not deprecated">
  82737. <doc>
  82738. <![CDATA[Get the amount of RAM reserved for each map slot.
  82739. @return the amount of RAM reserved for each map slot, in KB.]]>
  82740. </doc>
  82741. </method>
  82742. <method name="getMemoryPerReduceSlot" return="long"
  82743. abstract="false" native="false" synchronized="false"
  82744. static="false" final="false" visibility="public"
  82745. deprecated="not deprecated">
  82746. <doc>
  82747. <![CDATA[Get the amount of RAM reserved for each reduce slot.
  82748. @return the amount of RAM reserved for each reduce slot, in KB.]]>
  82749. </doc>
  82750. </method>
  82751. <method name="getNumCores" return="int"
  82752. abstract="false" native="false" synchronized="false"
  82753. static="false" final="false" visibility="public"
  82754. deprecated="not deprecated">
  82755. <doc>
  82756. <![CDATA[Get the number of cores of the node.
  82757. @return the number of cores of the node.]]>
  82758. </doc>
  82759. </method>
  82760. <method name="getRackNode" return="org.apache.hadoop.tools.rumen.RackNode"
  82761. abstract="false" native="false" synchronized="false"
  82762. static="false" final="false" visibility="public"
  82763. deprecated="not deprecated">
  82764. <doc>
  82765. <![CDATA[Get the rack node that the machine belongs to.
  82766. @return The rack node that the machine belongs to. Returns null if the
  82767. machine does not belong to any rack.]]>
  82768. </doc>
  82769. </method>
  82770. <method name="addChild" return="boolean"
  82771. abstract="false" native="false" synchronized="true"
  82772. static="false" final="false" visibility="public"
  82773. deprecated="not deprecated">
  82774. <param name="child" type="org.apache.hadoop.tools.rumen.Node"/>
  82775. </method>
  82776. <doc>
  82777. <![CDATA[{@link MachineNode} represents the configuration of a cluster node.
  82778. {@link MachineNode} should be constructed by {@link MachineNode.Builder}.]]>
  82779. </doc>
  82780. </class>
  82781. <!-- end class org.apache.hadoop.tools.rumen.MachineNode -->
  82782. <!-- start class org.apache.hadoop.tools.rumen.MachineNode.Builder -->
  82783. <class name="MachineNode.Builder" extends="java.lang.Object"
  82784. abstract="false"
  82785. static="true" final="true" visibility="public"
  82786. deprecated="not deprecated">
  82787. <constructor name="MachineNode.Builder" type="java.lang.String, int"
  82788. static="false" final="false" visibility="public"
  82789. deprecated="not deprecated">
  82790. <doc>
  82791. <![CDATA[Start building a new NodeInfo object.
  82792. @param name
  82793. Unique name of the node. Typically the fully qualified domain
  82794. name.]]>
  82795. </doc>
  82796. </constructor>
  82797. <method name="setMemory" return="org.apache.hadoop.tools.rumen.MachineNode.Builder"
  82798. abstract="false" native="false" synchronized="false"
  82799. static="false" final="false" visibility="public"
  82800. deprecated="not deprecated">
  82801. <param name="memory" type="long"/>
  82802. <doc>
  82803. <![CDATA[Set the physical memory of the node.
  82804. @param memory Available RAM in KB.]]>
  82805. </doc>
  82806. </method>
  82807. <method name="setMapSlots" return="org.apache.hadoop.tools.rumen.MachineNode.Builder"
  82808. abstract="false" native="false" synchronized="false"
  82809. static="false" final="false" visibility="public"
  82810. deprecated="not deprecated">
  82811. <param name="mapSlots" type="int"/>
  82812. <doc>
  82813. <![CDATA[Set the number of map slot for the node.
  82814. @param mapSlots The number of map slots for the node.]]>
  82815. </doc>
  82816. </method>
  82817. <method name="setReduceSlots" return="org.apache.hadoop.tools.rumen.MachineNode.Builder"
  82818. abstract="false" native="false" synchronized="false"
  82819. static="false" final="false" visibility="public"
  82820. deprecated="not deprecated">
  82821. <param name="reduceSlots" type="int"/>
  82822. <doc>
  82823. <![CDATA[Set the number of reduce slot for the node.
  82824. @param reduceSlots The number of reduce slots for the node.]]>
  82825. </doc>
  82826. </method>
  82827. <method name="setMemoryPerMapSlot" return="org.apache.hadoop.tools.rumen.MachineNode.Builder"
  82828. abstract="false" native="false" synchronized="false"
  82829. static="false" final="false" visibility="public"
  82830. deprecated="not deprecated">
  82831. <param name="memoryPerMapSlot" type="long"/>
  82832. <doc>
  82833. <![CDATA[Set the amount of RAM reserved for each map slot.
  82834. @param memoryPerMapSlot The amount of RAM reserved for each map slot, in KB.]]>
  82835. </doc>
  82836. </method>
  82837. <method name="setMemoryPerReduceSlot" return="org.apache.hadoop.tools.rumen.MachineNode.Builder"
  82838. abstract="false" native="false" synchronized="false"
  82839. static="false" final="false" visibility="public"
  82840. deprecated="not deprecated">
  82841. <param name="memoryPerReduceSlot" type="long"/>
  82842. <doc>
  82843. <![CDATA[Set the amount of RAM reserved for each reduce slot.
  82844. @param memoryPerReduceSlot The amount of RAM reserved for each reduce slot, in KB.]]>
  82845. </doc>
  82846. </method>
  82847. <method name="setNumCores" return="org.apache.hadoop.tools.rumen.MachineNode.Builder"
  82848. abstract="false" native="false" synchronized="false"
  82849. static="false" final="false" visibility="public"
  82850. deprecated="not deprecated">
  82851. <param name="numCores" type="int"/>
  82852. <doc>
  82853. <![CDATA[Set the number of cores for the node.
  82854. @param numCores Number of cores for the node.]]>
  82855. </doc>
  82856. </method>
  82857. <method name="cloneFrom" return="org.apache.hadoop.tools.rumen.MachineNode.Builder"
  82858. abstract="false" native="false" synchronized="false"
  82859. static="false" final="false" visibility="public"
  82860. deprecated="not deprecated">
  82861. <param name="ref" type="org.apache.hadoop.tools.rumen.MachineNode"/>
  82862. <doc>
  82863. <![CDATA[Clone the settings from a reference {@link MachineNode} object.
  82864. @param ref The reference {@link MachineNode} object.]]>
  82865. </doc>
  82866. </method>
  82867. <method name="build" return="org.apache.hadoop.tools.rumen.MachineNode"
  82868. abstract="false" native="false" synchronized="false"
  82869. static="false" final="false" visibility="public"
  82870. deprecated="not deprecated">
  82871. <doc>
  82872. <![CDATA[Build the {@link MachineNode} object.
  82873. @return The {@link MachineNode} object being built.]]>
  82874. </doc>
  82875. </method>
  82876. <doc>
  82877. <![CDATA[Builder for a NodeInfo object]]>
  82878. </doc>
  82879. </class>
  82880. <!-- end class org.apache.hadoop.tools.rumen.MachineNode.Builder -->
  82881. <!-- start class org.apache.hadoop.tools.rumen.MapAttempt20LineHistoryEventEmitter -->
  82882. <class name="MapAttempt20LineHistoryEventEmitter" extends="org.apache.hadoop.tools.rumen.TaskAttempt20LineEventEmitter"
  82883. abstract="false"
  82884. static="false" final="false" visibility="public"
  82885. deprecated="not deprecated">
  82886. <constructor name="MapAttempt20LineHistoryEventEmitter"
  82887. static="false" final="false" visibility="protected"
  82888. deprecated="not deprecated">
  82889. </constructor>
  82890. </class>
  82891. <!-- end class org.apache.hadoop.tools.rumen.MapAttempt20LineHistoryEventEmitter -->
  82892. <!-- start class org.apache.hadoop.tools.rumen.MapAttemptFinishedEvent -->
  82893. <class name="MapAttemptFinishedEvent" extends="java.lang.Object"
  82894. abstract="false"
  82895. static="false" final="false" visibility="public"
  82896. deprecated="not deprecated">
  82897. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  82898. <constructor name="MapAttemptFinishedEvent" type="org.apache.hadoop.mapreduce.TaskAttemptID, org.apache.hadoop.mapreduce.TaskType, java.lang.String, long, long, java.lang.String, java.lang.String, org.apache.hadoop.mapreduce.Counters"
  82899. static="false" final="false" visibility="public"
  82900. deprecated="not deprecated">
  82901. <doc>
  82902. <![CDATA[Create an event for successful completion of map attempts
  82903. @param id Task Attempt ID
  82904. @param taskType Type of the task
  82905. @param taskStatus Status of the task
  82906. @param mapFinishTime Finish time of the map phase
  82907. @param finishTime Finish time of the attempt
  82908. @param hostname Name of the host where the map executed
  82909. @param state State string for the attempt
  82910. @param counters Counters for the attempt]]>
  82911. </doc>
  82912. </constructor>
  82913. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  82914. abstract="false" native="false" synchronized="false"
  82915. static="false" final="false" visibility="public"
  82916. deprecated="not deprecated">
  82917. <doc>
  82918. <![CDATA[Get the task ID]]>
  82919. </doc>
  82920. </method>
  82921. <method name="getAttemptId" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  82922. abstract="false" native="false" synchronized="false"
  82923. static="false" final="false" visibility="public"
  82924. deprecated="not deprecated">
  82925. <doc>
  82926. <![CDATA[Get the attempt id]]>
  82927. </doc>
  82928. </method>
  82929. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  82930. abstract="false" native="false" synchronized="false"
  82931. static="false" final="false" visibility="public"
  82932. deprecated="not deprecated">
  82933. <doc>
  82934. <![CDATA[Get the task type]]>
  82935. </doc>
  82936. </method>
  82937. <method name="getTaskStatus" return="java.lang.String"
  82938. abstract="false" native="false" synchronized="false"
  82939. static="false" final="false" visibility="public"
  82940. deprecated="not deprecated">
  82941. <doc>
  82942. <![CDATA[Get the task status]]>
  82943. </doc>
  82944. </method>
  82945. <method name="getMapFinishTime" return="long"
  82946. abstract="false" native="false" synchronized="false"
  82947. static="false" final="false" visibility="public"
  82948. deprecated="not deprecated">
  82949. <doc>
  82950. <![CDATA[Get the map phase finish time]]>
  82951. </doc>
  82952. </method>
  82953. <method name="getFinishTime" return="long"
  82954. abstract="false" native="false" synchronized="false"
  82955. static="false" final="false" visibility="public"
  82956. deprecated="not deprecated">
  82957. <doc>
  82958. <![CDATA[Get the attempt finish time]]>
  82959. </doc>
  82960. </method>
  82961. <method name="getHostname" return="java.lang.String"
  82962. abstract="false" native="false" synchronized="false"
  82963. static="false" final="false" visibility="public"
  82964. deprecated="not deprecated">
  82965. <doc>
  82966. <![CDATA[Get the host name]]>
  82967. </doc>
  82968. </method>
  82969. <method name="getState" return="java.lang.String"
  82970. abstract="false" native="false" synchronized="false"
  82971. static="false" final="false" visibility="public"
  82972. deprecated="not deprecated">
  82973. <doc>
  82974. <![CDATA[Get the state string]]>
  82975. </doc>
  82976. </method>
  82977. <method name="getCounters" return="org.apache.hadoop.tools.rumen.JhCounters"
  82978. abstract="false" native="false" synchronized="false"
  82979. static="false" final="false" visibility="public"
  82980. deprecated="not deprecated">
  82981. <doc>
  82982. <![CDATA[Get the counters]]>
  82983. </doc>
  82984. </method>
  82985. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  82986. abstract="false" native="false" synchronized="false"
  82987. static="false" final="false" visibility="public"
  82988. deprecated="not deprecated">
  82989. <doc>
  82990. <![CDATA[Get the event type]]>
  82991. </doc>
  82992. </method>
  82993. <doc>
  82994. <![CDATA[Event to record successful completion of a map attempt]]>
  82995. </doc>
  82996. </class>
  82997. <!-- end class org.apache.hadoop.tools.rumen.MapAttemptFinishedEvent -->
  82998. <!-- start class org.apache.hadoop.tools.rumen.MapTaskAttemptInfo -->
  82999. <class name="MapTaskAttemptInfo" extends="org.apache.hadoop.tools.rumen.TaskAttemptInfo"
  83000. abstract="false"
  83001. static="false" final="false" visibility="public"
  83002. deprecated="not deprecated">
  83003. <constructor name="MapTaskAttemptInfo" type="org.apache.hadoop.mapred.TaskStatus.State, org.apache.hadoop.tools.rumen.TaskInfo, long"
  83004. static="false" final="false" visibility="public"
  83005. deprecated="not deprecated">
  83006. </constructor>
  83007. <method name="getRuntime" return="long"
  83008. abstract="false" native="false" synchronized="false"
  83009. static="false" final="false" visibility="public"
  83010. deprecated="not deprecated">
  83011. </method>
  83012. <method name="getMapRuntime" return="long"
  83013. abstract="false" native="false" synchronized="false"
  83014. static="false" final="false" visibility="public"
  83015. deprecated="not deprecated">
  83016. <doc>
  83017. <![CDATA[Get the runtime for the <b>map</b> phase of the map-task attempt.
  83018. @return the runtime for the <b>map</b> phase of the map-task attempt]]>
  83019. </doc>
  83020. </method>
  83021. <doc>
  83022. <![CDATA[{@link MapTaskAttemptInfo} represents the information with regard to a
  83023. map task attempt.]]>
  83024. </doc>
  83025. </class>
  83026. <!-- end class org.apache.hadoop.tools.rumen.MapTaskAttemptInfo -->
  83027. <!-- start class org.apache.hadoop.tools.rumen.Node -->
  83028. <class name="Node" extends="java.lang.Object"
  83029. abstract="false"
  83030. static="false" final="false" visibility="public"
  83031. deprecated="not deprecated">
  83032. <implements name="java.lang.Comparable"/>
  83033. <constructor name="Node" type="java.lang.String, int"
  83034. static="false" final="false" visibility="public"
  83035. deprecated="not deprecated">
  83036. <doc>
  83037. <![CDATA[@param name
  83038. A unique name to identify a node in the cluster.
  83039. @param level
  83040. The level of the node in the cluster]]>
  83041. </doc>
  83042. </constructor>
  83043. <method name="getName" return="java.lang.String"
  83044. abstract="false" native="false" synchronized="false"
  83045. static="false" final="false" visibility="public"
  83046. deprecated="not deprecated">
  83047. <doc>
  83048. <![CDATA[Get the name of the node.
  83049. @return The name of the node.]]>
  83050. </doc>
  83051. </method>
  83052. <method name="getLevel" return="int"
  83053. abstract="false" native="false" synchronized="false"
  83054. static="false" final="false" visibility="public"
  83055. deprecated="not deprecated">
  83056. <doc>
  83057. <![CDATA[Get the level of the node.
  83058. @return The level of the node.]]>
  83059. </doc>
  83060. </method>
  83061. <method name="addChild" return="boolean"
  83062. abstract="false" native="false" synchronized="true"
  83063. static="false" final="false" visibility="public"
  83064. deprecated="not deprecated">
  83065. <param name="child" type="org.apache.hadoop.tools.rumen.Node"/>
  83066. <doc>
  83067. <![CDATA[Add a child node to this node.
  83068. @param child The child node to be added. The child node should currently not be belong to another cluster topology.
  83069. @return Boolean indicating whether the node is successfully added.]]>
  83070. </doc>
  83071. </method>
  83072. <method name="hasChildren" return="boolean"
  83073. abstract="false" native="false" synchronized="true"
  83074. static="false" final="false" visibility="public"
  83075. deprecated="not deprecated">
  83076. <doc>
  83077. <![CDATA[Does this node have any children?
  83078. @return Boolean indicate whether this node has any children.]]>
  83079. </doc>
  83080. </method>
  83081. <method name="getChildren" return="java.util.Set"
  83082. abstract="false" native="false" synchronized="true"
  83083. static="false" final="false" visibility="public"
  83084. deprecated="not deprecated">
  83085. <doc>
  83086. <![CDATA[Get the children of this node.
  83087. @return The children of this node. If no child, an empty set will be
  83088. returned. The returned set is read-only.]]>
  83089. </doc>
  83090. </method>
  83091. <method name="getParent" return="org.apache.hadoop.tools.rumen.Node"
  83092. abstract="false" native="false" synchronized="false"
  83093. static="false" final="false" visibility="public"
  83094. deprecated="not deprecated">
  83095. <doc>
  83096. <![CDATA[Get the parent node.
  83097. @return the parent node. If root node, return null.]]>
  83098. </doc>
  83099. </method>
  83100. <method name="hashCode" return="int"
  83101. abstract="false" native="false" synchronized="false"
  83102. static="false" final="false" visibility="public"
  83103. deprecated="not deprecated">
  83104. </method>
  83105. <method name="equals" return="boolean"
  83106. abstract="false" native="false" synchronized="false"
  83107. static="false" final="false" visibility="public"
  83108. deprecated="not deprecated">
  83109. <param name="obj" type="java.lang.Object"/>
  83110. </method>
  83111. <method name="toString" return="java.lang.String"
  83112. abstract="false" native="false" synchronized="false"
  83113. static="false" final="false" visibility="public"
  83114. deprecated="not deprecated">
  83115. </method>
  83116. <method name="compareTo" return="int"
  83117. abstract="false" native="false" synchronized="false"
  83118. static="false" final="false" visibility="public"
  83119. deprecated="not deprecated">
  83120. <param name="o" type="org.apache.hadoop.tools.rumen.Node"/>
  83121. </method>
  83122. <doc>
  83123. <![CDATA[{@link Node} represents a node in the cluster topology. A node can be a
  83124. {@link MachineNode}, or a {@link RackNode}, etc.]]>
  83125. </doc>
  83126. </class>
  83127. <!-- end class org.apache.hadoop.tools.rumen.Node -->
  83128. <!-- start interface org.apache.hadoop.tools.rumen.Outputter -->
  83129. <interface name="Outputter" abstract="true"
  83130. static="false" final="false" visibility="public"
  83131. deprecated="not deprecated">
  83132. <implements name="java.io.Closeable"/>
  83133. <method name="init"
  83134. abstract="false" native="false" synchronized="false"
  83135. static="false" final="false" visibility="public"
  83136. deprecated="not deprecated">
  83137. <param name="path" type="org.apache.hadoop.fs.Path"/>
  83138. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  83139. <exception name="IOException" type="java.io.IOException"/>
  83140. <doc>
  83141. <![CDATA[Initialize the {@link Outputter} to a specific path.
  83142. @param path The {@link Path} to the output file.
  83143. @param conf Configuration
  83144. @throws IOException]]>
  83145. </doc>
  83146. </method>
  83147. <method name="output"
  83148. abstract="false" native="false" synchronized="false"
  83149. static="false" final="false" visibility="public"
  83150. deprecated="not deprecated">
  83151. <param name="object" type="java.lang.Object"/>
  83152. <exception name="IOException" type="java.io.IOException"/>
  83153. <doc>
  83154. <![CDATA[Output an object.
  83155. @param object The objecte.
  83156. @throws IOException]]>
  83157. </doc>
  83158. </method>
  83159. <doc>
  83160. <![CDATA[Interface to output a sequence of objects of type T.]]>
  83161. </doc>
  83162. </interface>
  83163. <!-- end interface org.apache.hadoop.tools.rumen.Outputter -->
  83164. <!-- start class org.apache.hadoop.tools.rumen.ParsedJob -->
  83165. <class name="ParsedJob" extends="org.apache.hadoop.tools.rumen.LoggedJob"
  83166. abstract="false"
  83167. static="false" final="false" visibility="public"
  83168. deprecated="not deprecated">
  83169. <method name="obtainTotalCounters" return="java.util.Map"
  83170. abstract="false" native="false" synchronized="false"
  83171. static="false" final="false" visibility="public"
  83172. deprecated="not deprecated">
  83173. <doc>
  83174. <![CDATA[@return the job total counters]]>
  83175. </doc>
  83176. </method>
  83177. <method name="obtainMapCounters" return="java.util.Map"
  83178. abstract="false" native="false" synchronized="false"
  83179. static="false" final="false" visibility="public"
  83180. deprecated="not deprecated">
  83181. <doc>
  83182. <![CDATA[@return the job level map tasks' counters]]>
  83183. </doc>
  83184. </method>
  83185. <method name="obtainReduceCounters" return="java.util.Map"
  83186. abstract="false" native="false" synchronized="false"
  83187. static="false" final="false" visibility="public"
  83188. deprecated="not deprecated">
  83189. <doc>
  83190. <![CDATA[@return the job level reduce tasks' counters]]>
  83191. </doc>
  83192. </method>
  83193. <method name="obtainJobConfpath" return="java.lang.String"
  83194. abstract="false" native="false" synchronized="false"
  83195. static="false" final="false" visibility="public"
  83196. deprecated="not deprecated">
  83197. <doc>
  83198. <![CDATA[@return the job conf path in staging dir on hdfs]]>
  83199. </doc>
  83200. </method>
  83201. <method name="obtainJobAcls" return="java.util.Map"
  83202. abstract="false" native="false" synchronized="false"
  83203. static="false" final="false" visibility="public"
  83204. deprecated="not deprecated">
  83205. <doc>
  83206. <![CDATA[@return the job acls]]>
  83207. </doc>
  83208. </method>
  83209. <method name="obtainMapTasks" return="java.util.List"
  83210. abstract="false" native="false" synchronized="false"
  83211. static="false" final="false" visibility="public"
  83212. deprecated="not deprecated">
  83213. <doc>
  83214. <![CDATA[@return the list of map tasks of this job]]>
  83215. </doc>
  83216. </method>
  83217. <method name="obtainReduceTasks" return="java.util.List"
  83218. abstract="false" native="false" synchronized="false"
  83219. static="false" final="false" visibility="public"
  83220. deprecated="not deprecated">
  83221. <doc>
  83222. <![CDATA[@return the list of reduce tasks of this job]]>
  83223. </doc>
  83224. </method>
  83225. <method name="obtainOtherTasks" return="java.util.List"
  83226. abstract="false" native="false" synchronized="false"
  83227. static="false" final="false" visibility="public"
  83228. deprecated="not deprecated">
  83229. <doc>
  83230. <![CDATA[@return the list of other tasks of this job]]>
  83231. </doc>
  83232. </method>
  83233. <doc>
  83234. <![CDATA[This is a wrapper class around {@link LoggedJob}. This provides also the
  83235. extra information about the job obtained from job history which is not
  83236. written to the JSON trace file.]]>
  83237. </doc>
  83238. </class>
  83239. <!-- end class org.apache.hadoop.tools.rumen.ParsedJob -->
  83240. <!-- start class org.apache.hadoop.tools.rumen.ParsedTask -->
  83241. <class name="ParsedTask" extends="org.apache.hadoop.tools.rumen.LoggedTask"
  83242. abstract="false"
  83243. static="false" final="false" visibility="public"
  83244. deprecated="not deprecated">
  83245. <method name="incorporateCounters"
  83246. abstract="false" native="false" synchronized="false"
  83247. static="false" final="false" visibility="public"
  83248. deprecated="not deprecated">
  83249. <param name="counters" type="org.apache.hadoop.tools.rumen.JhCounters"/>
  83250. </method>
  83251. <method name="putCounters"
  83252. abstract="false" native="false" synchronized="false"
  83253. static="false" final="false" visibility="public"
  83254. deprecated="not deprecated">
  83255. <param name="counters" type="java.util.Map"/>
  83256. <doc>
  83257. <![CDATA[Set the task counters]]>
  83258. </doc>
  83259. </method>
  83260. <method name="obtainCounters" return="java.util.Map"
  83261. abstract="false" native="false" synchronized="false"
  83262. static="false" final="false" visibility="public"
  83263. deprecated="not deprecated">
  83264. <doc>
  83265. <![CDATA[@return the task counters]]>
  83266. </doc>
  83267. </method>
  83268. <method name="putDiagnosticInfo"
  83269. abstract="false" native="false" synchronized="false"
  83270. static="false" final="false" visibility="public"
  83271. deprecated="not deprecated">
  83272. <param name="msg" type="java.lang.String"/>
  83273. <doc>
  83274. <![CDATA[Set the task diagnostic-info]]>
  83275. </doc>
  83276. </method>
  83277. <method name="obtainDiagnosticInfo" return="java.lang.String"
  83278. abstract="false" native="false" synchronized="false"
  83279. static="false" final="false" visibility="public"
  83280. deprecated="not deprecated">
  83281. <doc>
  83282. <![CDATA[@return the diagnostic-info of this task.
  83283. If the task is successful, returns null.]]>
  83284. </doc>
  83285. </method>
  83286. <method name="putFailedDueToAttemptId"
  83287. abstract="false" native="false" synchronized="false"
  83288. static="false" final="false" visibility="public"
  83289. deprecated="not deprecated">
  83290. <param name="attempt" type="java.lang.String"/>
  83291. <doc>
  83292. <![CDATA[Set the failed-due-to-attemptId info of this task.]]>
  83293. </doc>
  83294. </method>
  83295. <method name="obtainFailedDueToAttemptId" return="java.lang.String"
  83296. abstract="false" native="false" synchronized="false"
  83297. static="false" final="false" visibility="public"
  83298. deprecated="not deprecated">
  83299. <doc>
  83300. <![CDATA[@return the failed-due-to-attemptId info of this task.
  83301. If the task is successful, returns null.]]>
  83302. </doc>
  83303. </method>
  83304. <method name="obtainTaskAttempts" return="java.util.List"
  83305. abstract="false" native="false" synchronized="false"
  83306. static="false" final="false" visibility="public"
  83307. deprecated="not deprecated">
  83308. </method>
  83309. <doc>
  83310. <![CDATA[This is a wrapper class around {@link LoggedTask}. This provides also the
  83311. extra information about the task obtained from job history which is not
  83312. written to the JSON trace file.]]>
  83313. </doc>
  83314. </class>
  83315. <!-- end class org.apache.hadoop.tools.rumen.ParsedTask -->
  83316. <!-- start class org.apache.hadoop.tools.rumen.ParsedTaskAttempt -->
  83317. <class name="ParsedTaskAttempt" extends="org.apache.hadoop.tools.rumen.LoggedTaskAttempt"
  83318. abstract="false"
  83319. static="false" final="false" visibility="public"
  83320. deprecated="not deprecated">
  83321. <method name="incorporateCounters"
  83322. abstract="false" native="false" synchronized="false"
  83323. static="false" final="false" visibility="public"
  83324. deprecated="not deprecated">
  83325. <param name="counters" type="org.apache.hadoop.tools.rumen.JhCounters"/>
  83326. <doc>
  83327. <![CDATA[incorporate event counters]]>
  83328. </doc>
  83329. </method>
  83330. <method name="putCounters"
  83331. abstract="false" native="false" synchronized="false"
  83332. static="false" final="false" visibility="public"
  83333. deprecated="not deprecated">
  83334. <param name="counters" type="java.util.Map"/>
  83335. <doc>
  83336. <![CDATA[Set the task attempt counters]]>
  83337. </doc>
  83338. </method>
  83339. <method name="obtainCounters" return="java.util.Map"
  83340. abstract="false" native="false" synchronized="false"
  83341. static="false" final="false" visibility="public"
  83342. deprecated="not deprecated">
  83343. <doc>
  83344. <![CDATA[@return the task attempt counters]]>
  83345. </doc>
  83346. </method>
  83347. <method name="putDiagnosticInfo"
  83348. abstract="false" native="false" synchronized="false"
  83349. static="false" final="false" visibility="public"
  83350. deprecated="not deprecated">
  83351. <param name="msg" type="java.lang.String"/>
  83352. <doc>
  83353. <![CDATA[Set the task attempt diagnostic-info]]>
  83354. </doc>
  83355. </method>
  83356. <method name="obtainDiagnosticInfo" return="java.lang.String"
  83357. abstract="false" native="false" synchronized="false"
  83358. static="false" final="false" visibility="public"
  83359. deprecated="not deprecated">
  83360. <doc>
  83361. <![CDATA[@return the diagnostic-info of this task attempt.
  83362. If the attempt is successful, returns null.]]>
  83363. </doc>
  83364. </method>
  83365. <method name="obtainTrackerName" return="java.lang.String"
  83366. abstract="false" native="false" synchronized="false"
  83367. static="false" final="false" visibility="public"
  83368. deprecated="not deprecated">
  83369. <doc>
  83370. <![CDATA[@return the tracker name where the attempt was run.]]>
  83371. </doc>
  83372. </method>
  83373. <method name="obtainHttpPort" return="java.lang.Integer"
  83374. abstract="false" native="false" synchronized="false"
  83375. static="false" final="false" visibility="public"
  83376. deprecated="not deprecated">
  83377. <doc>
  83378. <![CDATA[@return http port if set. Returns null otherwise.]]>
  83379. </doc>
  83380. </method>
  83381. <method name="obtainStateString" return="java.lang.String"
  83382. abstract="false" native="false" synchronized="false"
  83383. static="false" final="false" visibility="public"
  83384. deprecated="not deprecated">
  83385. <doc>
  83386. <![CDATA[@return state string of the task attempt.]]>
  83387. </doc>
  83388. </method>
  83389. <doc>
  83390. <![CDATA[This is a wrapper class around {@link LoggedTaskAttempt}. This provides
  83391. also the extra information about the task attempt obtained from
  83392. job history which is not written to the JSON trace file.]]>
  83393. </doc>
  83394. </class>
  83395. <!-- end class org.apache.hadoop.tools.rumen.ParsedTaskAttempt -->
  83396. <!-- start class org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants -->
  83397. <class name="Pre21JobHistoryConstants" extends="java.lang.Object"
  83398. abstract="false"
  83399. static="false" final="false" visibility="public"
  83400. deprecated="not deprecated">
  83401. <constructor name="Pre21JobHistoryConstants"
  83402. static="false" final="false" visibility="public"
  83403. deprecated="not deprecated">
  83404. </constructor>
  83405. </class>
  83406. <!-- end class org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants -->
  83407. <!-- start class org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values -->
  83408. <class name="Pre21JobHistoryConstants.Values" extends="java.lang.Enum"
  83409. abstract="false"
  83410. static="true" final="true" visibility="public"
  83411. deprecated="not deprecated">
  83412. <method name="values" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values[]"
  83413. abstract="false" native="false" synchronized="false"
  83414. static="true" final="false" visibility="public"
  83415. deprecated="not deprecated">
  83416. </method>
  83417. <method name="valueOf" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  83418. abstract="false" native="false" synchronized="false"
  83419. static="true" final="false" visibility="public"
  83420. deprecated="not deprecated">
  83421. <param name="name" type="java.lang.String"/>
  83422. </method>
  83423. <field name="SUCCESS" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  83424. transient="false" volatile="false"
  83425. static="true" final="true" visibility="public"
  83426. deprecated="not deprecated">
  83427. </field>
  83428. <field name="FAILED" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  83429. transient="false" volatile="false"
  83430. static="true" final="true" visibility="public"
  83431. deprecated="not deprecated">
  83432. </field>
  83433. <field name="KILLED" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  83434. transient="false" volatile="false"
  83435. static="true" final="true" visibility="public"
  83436. deprecated="not deprecated">
  83437. </field>
  83438. <field name="MAP" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  83439. transient="false" volatile="false"
  83440. static="true" final="true" visibility="public"
  83441. deprecated="not deprecated">
  83442. </field>
  83443. <field name="REDUCE" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  83444. transient="false" volatile="false"
  83445. static="true" final="true" visibility="public"
  83446. deprecated="not deprecated">
  83447. </field>
  83448. <field name="CLEANUP" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  83449. transient="false" volatile="false"
  83450. static="true" final="true" visibility="public"
  83451. deprecated="not deprecated">
  83452. </field>
  83453. <field name="RUNNING" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  83454. transient="false" volatile="false"
  83455. static="true" final="true" visibility="public"
  83456. deprecated="not deprecated">
  83457. </field>
  83458. <field name="PREP" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  83459. transient="false" volatile="false"
  83460. static="true" final="true" visibility="public"
  83461. deprecated="not deprecated">
  83462. </field>
  83463. <field name="SETUP" type="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  83464. transient="false" volatile="false"
  83465. static="true" final="true" visibility="public"
  83466. deprecated="not deprecated">
  83467. </field>
  83468. <doc>
  83469. <![CDATA[This enum contains some of the values commonly used by history log events.
  83470. since values in history can only be strings - Values.name() is used in
  83471. most places in history file.]]>
  83472. </doc>
  83473. </class>
  83474. <!-- end class org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values -->
  83475. <!-- start class org.apache.hadoop.tools.rumen.RackNode -->
  83476. <class name="RackNode" extends="org.apache.hadoop.tools.rumen.Node"
  83477. abstract="false"
  83478. static="false" final="true" visibility="public"
  83479. deprecated="not deprecated">
  83480. <constructor name="RackNode" type="java.lang.String, int"
  83481. static="false" final="false" visibility="public"
  83482. deprecated="not deprecated">
  83483. </constructor>
  83484. <method name="addChild" return="boolean"
  83485. abstract="false" native="false" synchronized="true"
  83486. static="false" final="false" visibility="public"
  83487. deprecated="not deprecated">
  83488. <param name="child" type="org.apache.hadoop.tools.rumen.Node"/>
  83489. </method>
  83490. <method name="getMachinesInRack" return="java.util.Set"
  83491. abstract="false" native="false" synchronized="false"
  83492. static="false" final="false" visibility="public"
  83493. deprecated="not deprecated">
  83494. <doc>
  83495. <![CDATA[Get the machine nodes that belong to the rack.
  83496. @return The machine nodes that belong to the rack.]]>
  83497. </doc>
  83498. </method>
  83499. <doc>
  83500. <![CDATA[{@link RackNode} represents a rack node in the cluster topology.]]>
  83501. </doc>
  83502. </class>
  83503. <!-- end class org.apache.hadoop.tools.rumen.RackNode -->
  83504. <!-- start class org.apache.hadoop.tools.rumen.RandomSeedGenerator -->
  83505. <class name="RandomSeedGenerator" extends="java.lang.Object"
  83506. abstract="false"
  83507. static="false" final="false" visibility="public"
  83508. deprecated="not deprecated">
  83509. <constructor name="RandomSeedGenerator"
  83510. static="false" final="false" visibility="public"
  83511. deprecated="not deprecated">
  83512. </constructor>
  83513. <method name="getSeed" return="long"
  83514. abstract="false" native="false" synchronized="false"
  83515. static="true" final="false" visibility="public"
  83516. deprecated="not deprecated">
  83517. <param name="streamId" type="java.lang.String"/>
  83518. <param name="masterSeed" type="long"/>
  83519. <doc>
  83520. <![CDATA[Generates a new random seed.
  83521. @param streamId a string identifying the stream of random numbers
  83522. @param masterSeed higher level master random seed
  83523. @return the random seed. Different (streamId, masterSeed) pairs result in
  83524. (vastly) different random seeds.]]>
  83525. </doc>
  83526. </method>
  83527. <doc>
  83528. <![CDATA[The purpose of this class is to generate new random seeds from a master
  83529. seed. This is needed to make the Random().next*() calls in rumen and mumak
  83530. deterministic so that mumak simulations become deterministically replayable.
  83531. In these tools we need many independent streams of random numbers, some of
  83532. which are created dynamically. We seed these streams with the sub-seeds
  83533. returned by RandomSeedGenerator.
  83534. For a slightly more complicated approach to generating multiple streams of
  83535. random numbers with better theoretical guarantees, see
  83536. P. L'Ecuyer, R. Simard, E. J. Chen, and W. D. Kelton,
  83537. ``An Objected-Oriented Random-Number Package with Many Long Streams and
  83538. Substreams'', Operations Research, 50, 6 (2002), 1073--1075
  83539. http://www.iro.umontreal.ca/~lecuyer/papers.html
  83540. http://www.iro.umontreal.ca/~lecuyer/myftp/streams00/]]>
  83541. </doc>
  83542. </class>
  83543. <!-- end class org.apache.hadoop.tools.rumen.RandomSeedGenerator -->
  83544. <!-- start class org.apache.hadoop.tools.rumen.ReduceAttempt20LineHistoryEventEmitter -->
  83545. <class name="ReduceAttempt20LineHistoryEventEmitter" extends="org.apache.hadoop.tools.rumen.TaskAttempt20LineEventEmitter"
  83546. abstract="false"
  83547. static="false" final="false" visibility="public"
  83548. deprecated="not deprecated">
  83549. </class>
  83550. <!-- end class org.apache.hadoop.tools.rumen.ReduceAttempt20LineHistoryEventEmitter -->
  83551. <!-- start class org.apache.hadoop.tools.rumen.ReduceAttemptFinishedEvent -->
  83552. <class name="ReduceAttemptFinishedEvent" extends="java.lang.Object"
  83553. abstract="false"
  83554. static="false" final="false" visibility="public"
  83555. deprecated="not deprecated">
  83556. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  83557. <constructor name="ReduceAttemptFinishedEvent" type="org.apache.hadoop.mapreduce.TaskAttemptID, org.apache.hadoop.mapreduce.TaskType, java.lang.String, long, long, long, java.lang.String, java.lang.String, org.apache.hadoop.mapreduce.Counters"
  83558. static="false" final="false" visibility="public"
  83559. deprecated="not deprecated">
  83560. <doc>
  83561. <![CDATA[Create an event to record completion of a reduce attempt
  83562. @param id Attempt Id
  83563. @param taskType Type of task
  83564. @param taskStatus Status of the task
  83565. @param shuffleFinishTime Finish time of the shuffle phase
  83566. @param sortFinishTime Finish time of the sort phase
  83567. @param finishTime Finish time of the attempt
  83568. @param hostname Name of the host where the attempt executed
  83569. @param state State of the attempt
  83570. @param counters Counters for the attempt]]>
  83571. </doc>
  83572. </constructor>
  83573. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  83574. abstract="false" native="false" synchronized="false"
  83575. static="false" final="false" visibility="public"
  83576. deprecated="not deprecated">
  83577. <doc>
  83578. <![CDATA[Get the Task ID]]>
  83579. </doc>
  83580. </method>
  83581. <method name="getAttemptId" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  83582. abstract="false" native="false" synchronized="false"
  83583. static="false" final="false" visibility="public"
  83584. deprecated="not deprecated">
  83585. <doc>
  83586. <![CDATA[Get the attempt id]]>
  83587. </doc>
  83588. </method>
  83589. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  83590. abstract="false" native="false" synchronized="false"
  83591. static="false" final="false" visibility="public"
  83592. deprecated="not deprecated">
  83593. <doc>
  83594. <![CDATA[Get the task type]]>
  83595. </doc>
  83596. </method>
  83597. <method name="getTaskStatus" return="java.lang.String"
  83598. abstract="false" native="false" synchronized="false"
  83599. static="false" final="false" visibility="public"
  83600. deprecated="not deprecated">
  83601. <doc>
  83602. <![CDATA[Get the task status]]>
  83603. </doc>
  83604. </method>
  83605. <method name="getSortFinishTime" return="long"
  83606. abstract="false" native="false" synchronized="false"
  83607. static="false" final="false" visibility="public"
  83608. deprecated="not deprecated">
  83609. <doc>
  83610. <![CDATA[Get the finish time of the sort phase]]>
  83611. </doc>
  83612. </method>
  83613. <method name="getShuffleFinishTime" return="long"
  83614. abstract="false" native="false" synchronized="false"
  83615. static="false" final="false" visibility="public"
  83616. deprecated="not deprecated">
  83617. <doc>
  83618. <![CDATA[Get the finish time of the shuffle phase]]>
  83619. </doc>
  83620. </method>
  83621. <method name="getFinishTime" return="long"
  83622. abstract="false" native="false" synchronized="false"
  83623. static="false" final="false" visibility="public"
  83624. deprecated="not deprecated">
  83625. <doc>
  83626. <![CDATA[Get the finish time of the attempt]]>
  83627. </doc>
  83628. </method>
  83629. <method name="getHostname" return="java.lang.String"
  83630. abstract="false" native="false" synchronized="false"
  83631. static="false" final="false" visibility="public"
  83632. deprecated="not deprecated">
  83633. <doc>
  83634. <![CDATA[Get the name of the host where the attempt ran]]>
  83635. </doc>
  83636. </method>
  83637. <method name="getState" return="java.lang.String"
  83638. abstract="false" native="false" synchronized="false"
  83639. static="false" final="false" visibility="public"
  83640. deprecated="not deprecated">
  83641. <doc>
  83642. <![CDATA[Get the state string]]>
  83643. </doc>
  83644. </method>
  83645. <method name="getCounters" return="org.apache.hadoop.tools.rumen.JhCounters"
  83646. abstract="false" native="false" synchronized="false"
  83647. static="false" final="false" visibility="public"
  83648. deprecated="not deprecated">
  83649. <doc>
  83650. <![CDATA[Get the counters for the attempt]]>
  83651. </doc>
  83652. </method>
  83653. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  83654. abstract="false" native="false" synchronized="false"
  83655. static="false" final="false" visibility="public"
  83656. deprecated="not deprecated">
  83657. <doc>
  83658. <![CDATA[Get the event type]]>
  83659. </doc>
  83660. </method>
  83661. <doc>
  83662. <![CDATA[Event to record successful completion of a reduce attempt]]>
  83663. </doc>
  83664. </class>
  83665. <!-- end class org.apache.hadoop.tools.rumen.ReduceAttemptFinishedEvent -->
  83666. <!-- start class org.apache.hadoop.tools.rumen.ReduceTaskAttemptInfo -->
  83667. <class name="ReduceTaskAttemptInfo" extends="org.apache.hadoop.tools.rumen.TaskAttemptInfo"
  83668. abstract="false"
  83669. static="false" final="false" visibility="public"
  83670. deprecated="not deprecated">
  83671. <constructor name="ReduceTaskAttemptInfo" type="org.apache.hadoop.mapred.TaskStatus.State, org.apache.hadoop.tools.rumen.TaskInfo, long, long, long"
  83672. static="false" final="false" visibility="public"
  83673. deprecated="not deprecated">
  83674. </constructor>
  83675. <method name="getReduceRuntime" return="long"
  83676. abstract="false" native="false" synchronized="false"
  83677. static="false" final="false" visibility="public"
  83678. deprecated="not deprecated">
  83679. <doc>
  83680. <![CDATA[Get the runtime for the <b>reduce</b> phase of the reduce task-attempt.
  83681. @return the runtime for the <b>reduce</b> phase of the reduce task-attempt]]>
  83682. </doc>
  83683. </method>
  83684. <method name="getShuffleRuntime" return="long"
  83685. abstract="false" native="false" synchronized="false"
  83686. static="false" final="false" visibility="public"
  83687. deprecated="not deprecated">
  83688. <doc>
  83689. <![CDATA[Get the runtime for the <b>shuffle</b> phase of the reduce task-attempt.
  83690. @return the runtime for the <b>shuffle</b> phase of the reduce task-attempt]]>
  83691. </doc>
  83692. </method>
  83693. <method name="getMergeRuntime" return="long"
  83694. abstract="false" native="false" synchronized="false"
  83695. static="false" final="false" visibility="public"
  83696. deprecated="not deprecated">
  83697. <doc>
  83698. <![CDATA[Get the runtime for the <b>merge</b> phase of the reduce task-attempt
  83699. @return the runtime for the <b>merge</b> phase of the reduce task-attempt]]>
  83700. </doc>
  83701. </method>
  83702. <method name="getRuntime" return="long"
  83703. abstract="false" native="false" synchronized="false"
  83704. static="false" final="false" visibility="public"
  83705. deprecated="not deprecated">
  83706. </method>
  83707. <doc>
  83708. <![CDATA[{@link ReduceTaskAttemptInfo} represents the information with regard to a
  83709. reduce task attempt.]]>
  83710. </doc>
  83711. </class>
  83712. <!-- end class org.apache.hadoop.tools.rumen.ReduceTaskAttemptInfo -->
  83713. <!-- start class org.apache.hadoop.tools.rumen.ResourceUsageMetrics -->
  83714. <class name="ResourceUsageMetrics" extends="java.lang.Object"
  83715. abstract="false"
  83716. static="false" final="false" visibility="public"
  83717. deprecated="not deprecated">
  83718. <implements name="org.apache.hadoop.io.Writable"/>
  83719. <implements name="org.apache.hadoop.tools.rumen.DeepCompare"/>
  83720. <constructor name="ResourceUsageMetrics"
  83721. static="false" final="false" visibility="public"
  83722. deprecated="not deprecated">
  83723. </constructor>
  83724. <method name="getCumulativeCpuUsage" return="long"
  83725. abstract="false" native="false" synchronized="false"
  83726. static="false" final="false" visibility="public"
  83727. deprecated="not deprecated">
  83728. <doc>
  83729. <![CDATA[Get the cumulative CPU usage.]]>
  83730. </doc>
  83731. </method>
  83732. <method name="setCumulativeCpuUsage"
  83733. abstract="false" native="false" synchronized="false"
  83734. static="false" final="false" visibility="public"
  83735. deprecated="not deprecated">
  83736. <param name="usage" type="long"/>
  83737. <doc>
  83738. <![CDATA[Set the cumulative CPU usage.]]>
  83739. </doc>
  83740. </method>
  83741. <method name="getVirtualMemoryUsage" return="long"
  83742. abstract="false" native="false" synchronized="false"
  83743. static="false" final="false" visibility="public"
  83744. deprecated="not deprecated">
  83745. <doc>
  83746. <![CDATA[Get the virtual memory usage.]]>
  83747. </doc>
  83748. </method>
  83749. <method name="setVirtualMemoryUsage"
  83750. abstract="false" native="false" synchronized="false"
  83751. static="false" final="false" visibility="public"
  83752. deprecated="not deprecated">
  83753. <param name="usage" type="long"/>
  83754. <doc>
  83755. <![CDATA[Set the virtual memory usage.]]>
  83756. </doc>
  83757. </method>
  83758. <method name="getPhysicalMemoryUsage" return="long"
  83759. abstract="false" native="false" synchronized="false"
  83760. static="false" final="false" visibility="public"
  83761. deprecated="not deprecated">
  83762. <doc>
  83763. <![CDATA[Get the physical memory usage.]]>
  83764. </doc>
  83765. </method>
  83766. <method name="setPhysicalMemoryUsage"
  83767. abstract="false" native="false" synchronized="false"
  83768. static="false" final="false" visibility="public"
  83769. deprecated="not deprecated">
  83770. <param name="usage" type="long"/>
  83771. <doc>
  83772. <![CDATA[Set the physical memory usage.]]>
  83773. </doc>
  83774. </method>
  83775. <method name="getHeapUsage" return="long"
  83776. abstract="false" native="false" synchronized="false"
  83777. static="false" final="false" visibility="public"
  83778. deprecated="not deprecated">
  83779. <doc>
  83780. <![CDATA[Get the total heap usage.]]>
  83781. </doc>
  83782. </method>
  83783. <method name="setHeapUsage"
  83784. abstract="false" native="false" synchronized="false"
  83785. static="false" final="false" visibility="public"
  83786. deprecated="not deprecated">
  83787. <param name="usage" type="long"/>
  83788. <doc>
  83789. <![CDATA[Set the total heap usage.]]>
  83790. </doc>
  83791. </method>
  83792. <method name="size" return="int"
  83793. abstract="false" native="false" synchronized="false"
  83794. static="false" final="false" visibility="public"
  83795. deprecated="not deprecated">
  83796. <doc>
  83797. <![CDATA[Returns the size of the serialized data]]>
  83798. </doc>
  83799. </method>
  83800. <method name="readFields"
  83801. abstract="false" native="false" synchronized="false"
  83802. static="false" final="false" visibility="public"
  83803. deprecated="not deprecated">
  83804. <param name="in" type="java.io.DataInput"/>
  83805. <exception name="IOException" type="java.io.IOException"/>
  83806. </method>
  83807. <method name="write"
  83808. abstract="false" native="false" synchronized="false"
  83809. static="false" final="false" visibility="public"
  83810. deprecated="not deprecated">
  83811. <param name="out" type="java.io.DataOutput"/>
  83812. <exception name="IOException" type="java.io.IOException"/>
  83813. </method>
  83814. <method name="deepCompare"
  83815. abstract="false" native="false" synchronized="false"
  83816. static="false" final="false" visibility="public"
  83817. deprecated="not deprecated">
  83818. <param name="other" type="org.apache.hadoop.tools.rumen.DeepCompare"/>
  83819. <param name="loc" type="org.apache.hadoop.tools.rumen.TreePath"/>
  83820. <exception name="DeepInequalityException" type="org.apache.hadoop.tools.rumen.DeepInequalityException"/>
  83821. </method>
  83822. <doc>
  83823. <![CDATA[Captures the resource usage metrics.]]>
  83824. </doc>
  83825. </class>
  83826. <!-- end class org.apache.hadoop.tools.rumen.ResourceUsageMetrics -->
  83827. <!-- start class org.apache.hadoop.tools.rumen.RewindableInputStream -->
  83828. <class name="RewindableInputStream" extends="java.io.InputStream"
  83829. abstract="false"
  83830. static="false" final="false" visibility="public"
  83831. deprecated="not deprecated">
  83832. <constructor name="RewindableInputStream" type="java.io.InputStream"
  83833. static="false" final="false" visibility="public"
  83834. deprecated="not deprecated">
  83835. <doc>
  83836. <![CDATA[Constructor.
  83837. @param input]]>
  83838. </doc>
  83839. </constructor>
  83840. <constructor name="RewindableInputStream" type="java.io.InputStream, int"
  83841. static="false" final="false" visibility="public"
  83842. deprecated="not deprecated">
  83843. <doc>
  83844. <![CDATA[Constructor
  83845. @param input
  83846. input stream.
  83847. @param maxBytesToRemember
  83848. Maximum number of bytes we need to remember at the beginning of
  83849. the stream. If {@link #rewind()} is called after so many bytes are
  83850. read from the stream, {@link #rewind()} would fail.]]>
  83851. </doc>
  83852. </constructor>
  83853. <method name="read" return="int"
  83854. abstract="false" native="false" synchronized="false"
  83855. static="false" final="false" visibility="public"
  83856. deprecated="not deprecated">
  83857. <exception name="IOException" type="java.io.IOException"/>
  83858. </method>
  83859. <method name="read" return="int"
  83860. abstract="false" native="false" synchronized="false"
  83861. static="false" final="false" visibility="public"
  83862. deprecated="not deprecated">
  83863. <param name="buffer" type="byte[]"/>
  83864. <param name="offset" type="int"/>
  83865. <param name="length" type="int"/>
  83866. <exception name="IOException" type="java.io.IOException"/>
  83867. </method>
  83868. <method name="close"
  83869. abstract="false" native="false" synchronized="false"
  83870. static="false" final="false" visibility="public"
  83871. deprecated="not deprecated">
  83872. <exception name="IOException" type="java.io.IOException"/>
  83873. </method>
  83874. <method name="rewind" return="java.io.InputStream"
  83875. abstract="false" native="false" synchronized="false"
  83876. static="false" final="false" visibility="public"
  83877. deprecated="not deprecated">
  83878. <exception name="IOException" type="java.io.IOException"/>
  83879. </method>
  83880. <doc>
  83881. <![CDATA[A simple wrapper class to make any input stream "rewindable". It could be
  83882. made more memory efficient by grow the internal buffer adaptively.]]>
  83883. </doc>
  83884. </class>
  83885. <!-- end class org.apache.hadoop.tools.rumen.RewindableInputStream -->
  83886. <!-- start class org.apache.hadoop.tools.rumen.Task20LineHistoryEventEmitter -->
  83887. <class name="Task20LineHistoryEventEmitter" extends="org.apache.hadoop.tools.rumen.HistoryEventEmitter"
  83888. abstract="false"
  83889. static="false" final="false" visibility="public"
  83890. deprecated="not deprecated">
  83891. <constructor name="Task20LineHistoryEventEmitter"
  83892. static="false" final="false" visibility="protected"
  83893. deprecated="not deprecated">
  83894. </constructor>
  83895. </class>
  83896. <!-- end class org.apache.hadoop.tools.rumen.Task20LineHistoryEventEmitter -->
  83897. <!-- start class org.apache.hadoop.tools.rumen.TaskAttempt20LineEventEmitter -->
  83898. <class name="TaskAttempt20LineEventEmitter" extends="org.apache.hadoop.tools.rumen.HistoryEventEmitter"
  83899. abstract="true"
  83900. static="false" final="false" visibility="public"
  83901. deprecated="not deprecated">
  83902. <constructor name="TaskAttempt20LineEventEmitter"
  83903. static="false" final="false" visibility="protected"
  83904. deprecated="not deprecated">
  83905. </constructor>
  83906. </class>
  83907. <!-- end class org.apache.hadoop.tools.rumen.TaskAttempt20LineEventEmitter -->
  83908. <!-- start class org.apache.hadoop.tools.rumen.TaskAttemptFinishedEvent -->
  83909. <class name="TaskAttemptFinishedEvent" extends="java.lang.Object"
  83910. abstract="false"
  83911. static="false" final="false" visibility="public"
  83912. deprecated="not deprecated">
  83913. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  83914. <constructor name="TaskAttemptFinishedEvent" type="org.apache.hadoop.mapreduce.TaskAttemptID, org.apache.hadoop.mapreduce.TaskType, java.lang.String, long, java.lang.String, java.lang.String, org.apache.hadoop.mapreduce.Counters"
  83915. static="false" final="false" visibility="public"
  83916. deprecated="not deprecated">
  83917. <doc>
  83918. <![CDATA[Create an event to record successful finishes for setup and cleanup
  83919. attempts
  83920. @param id Attempt ID
  83921. @param taskType Type of task
  83922. @param taskStatus Status of task
  83923. @param finishTime Finish time of attempt
  83924. @param hostname Host where the attempt executed
  83925. @param state State string
  83926. @param counters Counters for the attempt]]>
  83927. </doc>
  83928. </constructor>
  83929. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  83930. abstract="false" native="false" synchronized="false"
  83931. static="false" final="false" visibility="public"
  83932. deprecated="not deprecated">
  83933. <doc>
  83934. <![CDATA[Get the task ID]]>
  83935. </doc>
  83936. </method>
  83937. <method name="getAttemptId" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  83938. abstract="false" native="false" synchronized="false"
  83939. static="false" final="false" visibility="public"
  83940. deprecated="not deprecated">
  83941. <doc>
  83942. <![CDATA[Get the task attempt id]]>
  83943. </doc>
  83944. </method>
  83945. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  83946. abstract="false" native="false" synchronized="false"
  83947. static="false" final="false" visibility="public"
  83948. deprecated="not deprecated">
  83949. <doc>
  83950. <![CDATA[Get the task type]]>
  83951. </doc>
  83952. </method>
  83953. <method name="getTaskStatus" return="java.lang.String"
  83954. abstract="false" native="false" synchronized="false"
  83955. static="false" final="false" visibility="public"
  83956. deprecated="not deprecated">
  83957. <doc>
  83958. <![CDATA[Get the task status]]>
  83959. </doc>
  83960. </method>
  83961. <method name="getFinishTime" return="long"
  83962. abstract="false" native="false" synchronized="false"
  83963. static="false" final="false" visibility="public"
  83964. deprecated="not deprecated">
  83965. <doc>
  83966. <![CDATA[Get the attempt finish time]]>
  83967. </doc>
  83968. </method>
  83969. <method name="getHostname" return="java.lang.String"
  83970. abstract="false" native="false" synchronized="false"
  83971. static="false" final="false" visibility="public"
  83972. deprecated="not deprecated">
  83973. <doc>
  83974. <![CDATA[Get the host where the attempt executed]]>
  83975. </doc>
  83976. </method>
  83977. <method name="getState" return="java.lang.String"
  83978. abstract="false" native="false" synchronized="false"
  83979. static="false" final="false" visibility="public"
  83980. deprecated="not deprecated">
  83981. <doc>
  83982. <![CDATA[Get the state string]]>
  83983. </doc>
  83984. </method>
  83985. <method name="getCounters" return="org.apache.hadoop.tools.rumen.JhCounters"
  83986. abstract="false" native="false" synchronized="false"
  83987. static="false" final="false" visibility="public"
  83988. deprecated="not deprecated">
  83989. <doc>
  83990. <![CDATA[Get the counters for the attempt]]>
  83991. </doc>
  83992. </method>
  83993. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  83994. abstract="false" native="false" synchronized="false"
  83995. static="false" final="false" visibility="public"
  83996. deprecated="not deprecated">
  83997. <doc>
  83998. <![CDATA[Get the event type]]>
  83999. </doc>
  84000. </method>
  84001. <doc>
  84002. <![CDATA[Event to record successful task completion]]>
  84003. </doc>
  84004. </class>
  84005. <!-- end class org.apache.hadoop.tools.rumen.TaskAttemptFinishedEvent -->
  84006. <!-- start class org.apache.hadoop.tools.rumen.TaskAttemptInfo -->
  84007. <class name="TaskAttemptInfo" extends="java.lang.Object"
  84008. abstract="true"
  84009. static="false" final="false" visibility="public"
  84010. deprecated="not deprecated">
  84011. <constructor name="TaskAttemptInfo" type="org.apache.hadoop.mapred.TaskStatus.State, org.apache.hadoop.tools.rumen.TaskInfo"
  84012. static="false" final="false" visibility="protected"
  84013. deprecated="not deprecated">
  84014. </constructor>
  84015. <method name="getRunState" return="org.apache.hadoop.mapred.TaskStatus.State"
  84016. abstract="false" native="false" synchronized="false"
  84017. static="false" final="false" visibility="public"
  84018. deprecated="not deprecated">
  84019. <doc>
  84020. <![CDATA[Get the final {@link State} of the task-attempt.
  84021. @return the final <code>State</code> of the task-attempt]]>
  84022. </doc>
  84023. </method>
  84024. <method name="getRuntime" return="long"
  84025. abstract="true" native="false" synchronized="false"
  84026. static="false" final="false" visibility="public"
  84027. deprecated="not deprecated">
  84028. <doc>
  84029. <![CDATA[Get the total runtime for the task-attempt.
  84030. @return the total runtime for the task-attempt]]>
  84031. </doc>
  84032. </method>
  84033. <method name="getTaskInfo" return="org.apache.hadoop.tools.rumen.TaskInfo"
  84034. abstract="false" native="false" synchronized="false"
  84035. static="false" final="false" visibility="public"
  84036. deprecated="not deprecated">
  84037. <doc>
  84038. <![CDATA[Get the {@link TaskInfo} for the given task-attempt.
  84039. @return the <code>TaskInfo</code> for the given task-attempt]]>
  84040. </doc>
  84041. </method>
  84042. <field name="state" type="org.apache.hadoop.mapred.TaskStatus.State"
  84043. transient="false" volatile="false"
  84044. static="false" final="true" visibility="protected"
  84045. deprecated="not deprecated">
  84046. </field>
  84047. <field name="taskInfo" type="org.apache.hadoop.tools.rumen.TaskInfo"
  84048. transient="false" volatile="false"
  84049. static="false" final="true" visibility="protected"
  84050. deprecated="not deprecated">
  84051. </field>
  84052. <doc>
  84053. <![CDATA[{@link TaskAttemptInfo} is a collection of statistics about a particular
  84054. task-attempt gleaned from job-history of the job.]]>
  84055. </doc>
  84056. </class>
  84057. <!-- end class org.apache.hadoop.tools.rumen.TaskAttemptInfo -->
  84058. <!-- start class org.apache.hadoop.tools.rumen.TaskAttemptStartedEvent -->
  84059. <class name="TaskAttemptStartedEvent" extends="java.lang.Object"
  84060. abstract="false"
  84061. static="false" final="false" visibility="public"
  84062. deprecated="not deprecated">
  84063. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  84064. <constructor name="TaskAttemptStartedEvent" type="org.apache.hadoop.mapreduce.TaskAttemptID, org.apache.hadoop.mapreduce.TaskType, long, java.lang.String, int, java.lang.String, java.lang.String"
  84065. static="false" final="false" visibility="public"
  84066. deprecated="not deprecated">
  84067. <doc>
  84068. <![CDATA[Create an event to record the start of an attempt
  84069. @param attemptId Id of the attempt
  84070. @param taskType Type of task
  84071. @param startTime Start time of the attempt
  84072. @param trackerName Name of the Task Tracker where attempt is running
  84073. @param httpPort The port number of the tracker
  84074. @param locality the locality of the task attempt
  84075. @param avataar the avataar of the task attempt]]>
  84076. </doc>
  84077. </constructor>
  84078. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  84079. abstract="false" native="false" synchronized="false"
  84080. static="false" final="false" visibility="public"
  84081. deprecated="not deprecated">
  84082. <doc>
  84083. <![CDATA[Get the task id]]>
  84084. </doc>
  84085. </method>
  84086. <method name="getTrackerName" return="java.lang.String"
  84087. abstract="false" native="false" synchronized="false"
  84088. static="false" final="false" visibility="public"
  84089. deprecated="not deprecated">
  84090. <doc>
  84091. <![CDATA[Get the tracker name]]>
  84092. </doc>
  84093. </method>
  84094. <method name="getStartTime" return="long"
  84095. abstract="false" native="false" synchronized="false"
  84096. static="false" final="false" visibility="public"
  84097. deprecated="not deprecated">
  84098. <doc>
  84099. <![CDATA[Get the start time]]>
  84100. </doc>
  84101. </method>
  84102. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  84103. abstract="false" native="false" synchronized="false"
  84104. static="false" final="false" visibility="public"
  84105. deprecated="not deprecated">
  84106. <doc>
  84107. <![CDATA[Get the task type]]>
  84108. </doc>
  84109. </method>
  84110. <method name="getHttpPort" return="int"
  84111. abstract="false" native="false" synchronized="false"
  84112. static="false" final="false" visibility="public"
  84113. deprecated="not deprecated">
  84114. <doc>
  84115. <![CDATA[Get the HTTP port]]>
  84116. </doc>
  84117. </method>
  84118. <method name="getTaskAttemptId" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  84119. abstract="false" native="false" synchronized="false"
  84120. static="false" final="false" visibility="public"
  84121. deprecated="not deprecated">
  84122. <doc>
  84123. <![CDATA[Get the attempt id]]>
  84124. </doc>
  84125. </method>
  84126. <method name="getLocality" return="java.lang.String"
  84127. abstract="false" native="false" synchronized="false"
  84128. static="false" final="false" visibility="public"
  84129. deprecated="not deprecated">
  84130. <doc>
  84131. <![CDATA[Get the locality of the task attempt]]>
  84132. </doc>
  84133. </method>
  84134. <method name="getAvataar" return="java.lang.String"
  84135. abstract="false" native="false" synchronized="false"
  84136. static="false" final="false" visibility="public"
  84137. deprecated="not deprecated">
  84138. <doc>
  84139. <![CDATA[Get the avataar of the task attempt]]>
  84140. </doc>
  84141. </method>
  84142. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  84143. abstract="false" native="false" synchronized="false"
  84144. static="false" final="false" visibility="public"
  84145. deprecated="not deprecated">
  84146. <doc>
  84147. <![CDATA[Get the event type]]>
  84148. </doc>
  84149. </method>
  84150. <doc>
  84151. <![CDATA[Event to record start of a task attempt]]>
  84152. </doc>
  84153. </class>
  84154. <!-- end class org.apache.hadoop.tools.rumen.TaskAttemptStartedEvent -->
  84155. <!-- start class org.apache.hadoop.tools.rumen.TaskAttemptUnsuccessfulCompletionEvent -->
  84156. <class name="TaskAttemptUnsuccessfulCompletionEvent" extends="java.lang.Object"
  84157. abstract="false"
  84158. static="false" final="false" visibility="public"
  84159. deprecated="not deprecated">
  84160. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  84161. <constructor name="TaskAttemptUnsuccessfulCompletionEvent" type="org.apache.hadoop.mapreduce.TaskAttemptID, org.apache.hadoop.mapreduce.TaskType, java.lang.String, long, java.lang.String, java.lang.String"
  84162. static="false" final="false" visibility="public"
  84163. deprecated="not deprecated">
  84164. <doc>
  84165. <![CDATA[Create an event to record the unsuccessful completion of attempts
  84166. @param id Attempt ID
  84167. @param taskType Type of the task
  84168. @param status Status of the attempt
  84169. @param finishTime Finish time of the attempt
  84170. @param hostname Name of the host where the attempt executed
  84171. @param error Error string]]>
  84172. </doc>
  84173. </constructor>
  84174. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  84175. abstract="false" native="false" synchronized="false"
  84176. static="false" final="false" visibility="public"
  84177. deprecated="not deprecated">
  84178. <doc>
  84179. <![CDATA[Get the task id]]>
  84180. </doc>
  84181. </method>
  84182. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  84183. abstract="false" native="false" synchronized="false"
  84184. static="false" final="false" visibility="public"
  84185. deprecated="not deprecated">
  84186. <doc>
  84187. <![CDATA[Get the task type]]>
  84188. </doc>
  84189. </method>
  84190. <method name="getTaskAttemptId" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  84191. abstract="false" native="false" synchronized="false"
  84192. static="false" final="false" visibility="public"
  84193. deprecated="not deprecated">
  84194. <doc>
  84195. <![CDATA[Get the attempt id]]>
  84196. </doc>
  84197. </method>
  84198. <method name="getFinishTime" return="long"
  84199. abstract="false" native="false" synchronized="false"
  84200. static="false" final="false" visibility="public"
  84201. deprecated="not deprecated">
  84202. <doc>
  84203. <![CDATA[Get the finish time]]>
  84204. </doc>
  84205. </method>
  84206. <method name="getHostname" return="java.lang.String"
  84207. abstract="false" native="false" synchronized="false"
  84208. static="false" final="false" visibility="public"
  84209. deprecated="not deprecated">
  84210. <doc>
  84211. <![CDATA[Get the name of the host where the attempt executed]]>
  84212. </doc>
  84213. </method>
  84214. <method name="getError" return="java.lang.String"
  84215. abstract="false" native="false" synchronized="false"
  84216. static="false" final="false" visibility="public"
  84217. deprecated="not deprecated">
  84218. <doc>
  84219. <![CDATA[Get the error string]]>
  84220. </doc>
  84221. </method>
  84222. <method name="getTaskStatus" return="java.lang.String"
  84223. abstract="false" native="false" synchronized="false"
  84224. static="false" final="false" visibility="public"
  84225. deprecated="not deprecated">
  84226. <doc>
  84227. <![CDATA[Get the task status]]>
  84228. </doc>
  84229. </method>
  84230. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  84231. abstract="false" native="false" synchronized="false"
  84232. static="false" final="false" visibility="public"
  84233. deprecated="not deprecated">
  84234. <doc>
  84235. <![CDATA[Get the event type]]>
  84236. </doc>
  84237. </method>
  84238. <doc>
  84239. <![CDATA[Event to record unsuccessful (Killed/Failed) completion of task attempts]]>
  84240. </doc>
  84241. </class>
  84242. <!-- end class org.apache.hadoop.tools.rumen.TaskAttemptUnsuccessfulCompletionEvent -->
  84243. <!-- start class org.apache.hadoop.tools.rumen.TaskFailedEvent -->
  84244. <class name="TaskFailedEvent" extends="java.lang.Object"
  84245. abstract="false"
  84246. static="false" final="false" visibility="public"
  84247. deprecated="not deprecated">
  84248. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  84249. <constructor name="TaskFailedEvent" type="org.apache.hadoop.mapreduce.TaskID, long, org.apache.hadoop.mapreduce.TaskType, java.lang.String, java.lang.String, org.apache.hadoop.mapreduce.TaskAttemptID"
  84250. static="false" final="false" visibility="public"
  84251. deprecated="not deprecated">
  84252. <doc>
  84253. <![CDATA[Create an event to record task failure
  84254. @param id Task ID
  84255. @param finishTime Finish time of the task
  84256. @param taskType Type of the task
  84257. @param error Error String
  84258. @param status Status
  84259. @param failedDueToAttempt The attempt id due to which the task failed]]>
  84260. </doc>
  84261. </constructor>
  84262. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  84263. abstract="false" native="false" synchronized="false"
  84264. static="false" final="false" visibility="public"
  84265. deprecated="not deprecated">
  84266. <doc>
  84267. <![CDATA[Get the task id]]>
  84268. </doc>
  84269. </method>
  84270. <method name="getError" return="java.lang.String"
  84271. abstract="false" native="false" synchronized="false"
  84272. static="false" final="false" visibility="public"
  84273. deprecated="not deprecated">
  84274. <doc>
  84275. <![CDATA[Get the error string]]>
  84276. </doc>
  84277. </method>
  84278. <method name="getFinishTime" return="long"
  84279. abstract="false" native="false" synchronized="false"
  84280. static="false" final="false" visibility="public"
  84281. deprecated="not deprecated">
  84282. <doc>
  84283. <![CDATA[Get the finish time of the attempt]]>
  84284. </doc>
  84285. </method>
  84286. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  84287. abstract="false" native="false" synchronized="false"
  84288. static="false" final="false" visibility="public"
  84289. deprecated="not deprecated">
  84290. <doc>
  84291. <![CDATA[Get the task type]]>
  84292. </doc>
  84293. </method>
  84294. <method name="getFailedAttemptID" return="org.apache.hadoop.mapreduce.TaskAttemptID"
  84295. abstract="false" native="false" synchronized="false"
  84296. static="false" final="false" visibility="public"
  84297. deprecated="not deprecated">
  84298. <doc>
  84299. <![CDATA[Get the attempt id due to which the task failed]]>
  84300. </doc>
  84301. </method>
  84302. <method name="getTaskStatus" return="java.lang.String"
  84303. abstract="false" native="false" synchronized="false"
  84304. static="false" final="false" visibility="public"
  84305. deprecated="not deprecated">
  84306. <doc>
  84307. <![CDATA[Get the task status]]>
  84308. </doc>
  84309. </method>
  84310. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  84311. abstract="false" native="false" synchronized="false"
  84312. static="false" final="false" visibility="public"
  84313. deprecated="not deprecated">
  84314. <doc>
  84315. <![CDATA[Get the event type]]>
  84316. </doc>
  84317. </method>
  84318. <doc>
  84319. <![CDATA[Event to record the failure of a task]]>
  84320. </doc>
  84321. </class>
  84322. <!-- end class org.apache.hadoop.tools.rumen.TaskFailedEvent -->
  84323. <!-- start class org.apache.hadoop.tools.rumen.TaskFinishedEvent -->
  84324. <class name="TaskFinishedEvent" extends="java.lang.Object"
  84325. abstract="false"
  84326. static="false" final="false" visibility="public"
  84327. deprecated="not deprecated">
  84328. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  84329. <constructor name="TaskFinishedEvent" type="org.apache.hadoop.mapreduce.TaskID, long, org.apache.hadoop.mapreduce.TaskType, java.lang.String, org.apache.hadoop.mapreduce.Counters"
  84330. static="false" final="false" visibility="public"
  84331. deprecated="not deprecated">
  84332. <doc>
  84333. <![CDATA[Create an event to record the successful completion of a task
  84334. @param id Task ID
  84335. @param finishTime Finish time of the task
  84336. @param taskType Type of the task
  84337. @param status Status string
  84338. @param counters Counters for the task]]>
  84339. </doc>
  84340. </constructor>
  84341. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  84342. abstract="false" native="false" synchronized="false"
  84343. static="false" final="false" visibility="public"
  84344. deprecated="not deprecated">
  84345. <doc>
  84346. <![CDATA[Get task id]]>
  84347. </doc>
  84348. </method>
  84349. <method name="getFinishTime" return="long"
  84350. abstract="false" native="false" synchronized="false"
  84351. static="false" final="false" visibility="public"
  84352. deprecated="not deprecated">
  84353. <doc>
  84354. <![CDATA[Get the task finish time]]>
  84355. </doc>
  84356. </method>
  84357. <method name="getCounters" return="org.apache.hadoop.tools.rumen.JhCounters"
  84358. abstract="false" native="false" synchronized="false"
  84359. static="false" final="false" visibility="public"
  84360. deprecated="not deprecated">
  84361. <doc>
  84362. <![CDATA[Get task counters]]>
  84363. </doc>
  84364. </method>
  84365. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  84366. abstract="false" native="false" synchronized="false"
  84367. static="false" final="false" visibility="public"
  84368. deprecated="not deprecated">
  84369. <doc>
  84370. <![CDATA[Get task type]]>
  84371. </doc>
  84372. </method>
  84373. <method name="getTaskStatus" return="java.lang.String"
  84374. abstract="false" native="false" synchronized="false"
  84375. static="false" final="false" visibility="public"
  84376. deprecated="not deprecated">
  84377. <doc>
  84378. <![CDATA[Get task status]]>
  84379. </doc>
  84380. </method>
  84381. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  84382. abstract="false" native="false" synchronized="false"
  84383. static="false" final="false" visibility="public"
  84384. deprecated="not deprecated">
  84385. <doc>
  84386. <![CDATA[Get event type]]>
  84387. </doc>
  84388. </method>
  84389. <doc>
  84390. <![CDATA[Event to record the successful completion of a task]]>
  84391. </doc>
  84392. </class>
  84393. <!-- end class org.apache.hadoop.tools.rumen.TaskFinishedEvent -->
  84394. <!-- start class org.apache.hadoop.tools.rumen.TaskInfo -->
  84395. <class name="TaskInfo" extends="java.lang.Object"
  84396. abstract="false"
  84397. static="false" final="false" visibility="public"
  84398. deprecated="not deprecated">
  84399. <constructor name="TaskInfo" type="long, int, long, int, long"
  84400. static="false" final="false" visibility="public"
  84401. deprecated="not deprecated">
  84402. </constructor>
  84403. <constructor name="TaskInfo" type="long, int, long, int, long, org.apache.hadoop.tools.rumen.ResourceUsageMetrics"
  84404. static="false" final="false" visibility="public"
  84405. deprecated="not deprecated">
  84406. </constructor>
  84407. <method name="getInputBytes" return="long"
  84408. abstract="false" native="false" synchronized="false"
  84409. static="false" final="false" visibility="public"
  84410. deprecated="not deprecated">
  84411. <doc>
  84412. <![CDATA[@return Raw bytes read from the FileSystem into the task. Note that this
  84413. may not always match the input bytes to the task.]]>
  84414. </doc>
  84415. </method>
  84416. <method name="getInputRecords" return="int"
  84417. abstract="false" native="false" synchronized="false"
  84418. static="false" final="false" visibility="public"
  84419. deprecated="not deprecated">
  84420. <doc>
  84421. <![CDATA[@return Number of records input to this task.]]>
  84422. </doc>
  84423. </method>
  84424. <method name="getOutputBytes" return="long"
  84425. abstract="false" native="false" synchronized="false"
  84426. static="false" final="false" visibility="public"
  84427. deprecated="not deprecated">
  84428. <doc>
  84429. <![CDATA[@return Raw bytes written to the destination FileSystem. Note that this may
  84430. not match output bytes.]]>
  84431. </doc>
  84432. </method>
  84433. <method name="getOutputRecords" return="int"
  84434. abstract="false" native="false" synchronized="false"
  84435. static="false" final="false" visibility="public"
  84436. deprecated="not deprecated">
  84437. <doc>
  84438. <![CDATA[@return Number of records output from this task.]]>
  84439. </doc>
  84440. </method>
  84441. <method name="getTaskMemory" return="long"
  84442. abstract="false" native="false" synchronized="false"
  84443. static="false" final="false" visibility="public"
  84444. deprecated="not deprecated">
  84445. <doc>
  84446. <![CDATA[@return Memory used by the task leq the heap size.]]>
  84447. </doc>
  84448. </method>
  84449. <method name="getResourceUsageMetrics" return="org.apache.hadoop.tools.rumen.ResourceUsageMetrics"
  84450. abstract="false" native="false" synchronized="false"
  84451. static="false" final="false" visibility="public"
  84452. deprecated="not deprecated">
  84453. <doc>
  84454. <![CDATA[@return Resource usage metrics]]>
  84455. </doc>
  84456. </method>
  84457. </class>
  84458. <!-- end class org.apache.hadoop.tools.rumen.TaskInfo -->
  84459. <!-- start class org.apache.hadoop.tools.rumen.TaskStartedEvent -->
  84460. <class name="TaskStartedEvent" extends="java.lang.Object"
  84461. abstract="false"
  84462. static="false" final="false" visibility="public"
  84463. deprecated="not deprecated">
  84464. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  84465. <constructor name="TaskStartedEvent" type="org.apache.hadoop.mapreduce.TaskID, long, org.apache.hadoop.mapreduce.TaskType, java.lang.String"
  84466. static="false" final="false" visibility="public"
  84467. deprecated="not deprecated">
  84468. <doc>
  84469. <![CDATA[Create an event to record start of a task
  84470. @param id Task Id
  84471. @param startTime Start time of the task
  84472. @param taskType Type of the task
  84473. @param splitLocations Split locations, applicable for map tasks]]>
  84474. </doc>
  84475. </constructor>
  84476. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  84477. abstract="false" native="false" synchronized="false"
  84478. static="false" final="false" visibility="public"
  84479. deprecated="not deprecated">
  84480. <doc>
  84481. <![CDATA[Get the task id]]>
  84482. </doc>
  84483. </method>
  84484. <method name="getSplitLocations" return="java.lang.String"
  84485. abstract="false" native="false" synchronized="false"
  84486. static="false" final="false" visibility="public"
  84487. deprecated="not deprecated">
  84488. <doc>
  84489. <![CDATA[Get the split locations, applicable for map tasks]]>
  84490. </doc>
  84491. </method>
  84492. <method name="getStartTime" return="long"
  84493. abstract="false" native="false" synchronized="false"
  84494. static="false" final="false" visibility="public"
  84495. deprecated="not deprecated">
  84496. <doc>
  84497. <![CDATA[Get the start time of the task]]>
  84498. </doc>
  84499. </method>
  84500. <method name="getTaskType" return="org.apache.hadoop.mapreduce.TaskType"
  84501. abstract="false" native="false" synchronized="false"
  84502. static="false" final="false" visibility="public"
  84503. deprecated="not deprecated">
  84504. <doc>
  84505. <![CDATA[Get the task type]]>
  84506. </doc>
  84507. </method>
  84508. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  84509. abstract="false" native="false" synchronized="false"
  84510. static="false" final="false" visibility="public"
  84511. deprecated="not deprecated">
  84512. <doc>
  84513. <![CDATA[Get the event type]]>
  84514. </doc>
  84515. </method>
  84516. <doc>
  84517. <![CDATA[Event to record the start of a task]]>
  84518. </doc>
  84519. </class>
  84520. <!-- end class org.apache.hadoop.tools.rumen.TaskStartedEvent -->
  84521. <!-- start class org.apache.hadoop.tools.rumen.TaskUpdatedEvent -->
  84522. <class name="TaskUpdatedEvent" extends="java.lang.Object"
  84523. abstract="false"
  84524. static="false" final="false" visibility="public"
  84525. deprecated="not deprecated">
  84526. <implements name="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  84527. <constructor name="TaskUpdatedEvent" type="org.apache.hadoop.mapreduce.TaskID, long"
  84528. static="false" final="false" visibility="public"
  84529. deprecated="not deprecated">
  84530. <doc>
  84531. <![CDATA[Create an event to record task updates
  84532. @param id Id of the task
  84533. @param finishTime Finish time of the task]]>
  84534. </doc>
  84535. </constructor>
  84536. <method name="getTaskId" return="org.apache.hadoop.mapreduce.TaskID"
  84537. abstract="false" native="false" synchronized="false"
  84538. static="false" final="false" visibility="public"
  84539. deprecated="not deprecated">
  84540. <doc>
  84541. <![CDATA[Get the task ID]]>
  84542. </doc>
  84543. </method>
  84544. <method name="getFinishTime" return="long"
  84545. abstract="false" native="false" synchronized="false"
  84546. static="false" final="false" visibility="public"
  84547. deprecated="not deprecated">
  84548. <doc>
  84549. <![CDATA[Get the task finish time]]>
  84550. </doc>
  84551. </method>
  84552. <method name="getEventType" return="org.apache.hadoop.tools.rumen.EventType"
  84553. abstract="false" native="false" synchronized="false"
  84554. static="false" final="false" visibility="public"
  84555. deprecated="not deprecated">
  84556. <doc>
  84557. <![CDATA[Get the event type]]>
  84558. </doc>
  84559. </method>
  84560. <doc>
  84561. <![CDATA[Event to record updates to a task]]>
  84562. </doc>
  84563. </class>
  84564. <!-- end class org.apache.hadoop.tools.rumen.TaskUpdatedEvent -->
  84565. <!-- start class org.apache.hadoop.tools.rumen.TopologyBuilder -->
  84566. <class name="TopologyBuilder" extends="java.lang.Object"
  84567. abstract="false"
  84568. static="false" final="false" visibility="public"
  84569. deprecated="not deprecated">
  84570. <constructor name="TopologyBuilder"
  84571. static="false" final="false" visibility="public"
  84572. deprecated="not deprecated">
  84573. </constructor>
  84574. <method name="process"
  84575. abstract="false" native="false" synchronized="false"
  84576. static="false" final="false" visibility="public"
  84577. deprecated="not deprecated">
  84578. <param name="event" type="org.apache.hadoop.tools.rumen.HistoryEvent"/>
  84579. <doc>
  84580. <![CDATA[Process one {@link HistoryEvent}
  84581. @param event
  84582. The {@link HistoryEvent} to be processed.]]>
  84583. </doc>
  84584. </method>
  84585. <method name="process"
  84586. abstract="false" native="false" synchronized="false"
  84587. static="false" final="false" visibility="public"
  84588. deprecated="not deprecated">
  84589. <param name="conf" type="java.util.Properties"/>
  84590. <doc>
  84591. <![CDATA[Process a collection of JobConf {@link Properties}. We do not restrict it
  84592. to be called once.
  84593. @param conf
  84594. The job conf properties to be added.]]>
  84595. </doc>
  84596. </method>
  84597. <method name="build" return="org.apache.hadoop.tools.rumen.LoggedNetworkTopology"
  84598. abstract="false" native="false" synchronized="false"
  84599. static="false" final="false" visibility="public"
  84600. deprecated="not deprecated">
  84601. <doc>
  84602. <![CDATA[Request the builder to build the final object. Once called, the
  84603. {@link TopologyBuilder} would accept no more events or job-conf properties.
  84604. @return Parsed {@link LoggedNetworkTopology} object.]]>
  84605. </doc>
  84606. </method>
  84607. <doc>
  84608. <![CDATA[Building the cluster topology.]]>
  84609. </doc>
  84610. </class>
  84611. <!-- end class org.apache.hadoop.tools.rumen.TopologyBuilder -->
  84612. <!-- start class org.apache.hadoop.tools.rumen.TraceBuilder -->
  84613. <class name="TraceBuilder" extends="org.apache.hadoop.conf.Configured"
  84614. abstract="false"
  84615. static="false" final="false" visibility="public"
  84616. deprecated="not deprecated">
  84617. <implements name="org.apache.hadoop.util.Tool"/>
  84618. <constructor name="TraceBuilder"
  84619. static="false" final="false" visibility="public"
  84620. deprecated="not deprecated">
  84621. </constructor>
  84622. <method name="main"
  84623. abstract="false" native="false" synchronized="false"
  84624. static="true" final="false" visibility="public"
  84625. deprecated="not deprecated">
  84626. <param name="args" type="java.lang.String[]"/>
  84627. </method>
  84628. <method name="run" return="int"
  84629. abstract="false" native="false" synchronized="false"
  84630. static="false" final="false" visibility="public"
  84631. deprecated="not deprecated">
  84632. <param name="args" type="java.lang.String[]"/>
  84633. <exception name="Exception" type="java.lang.Exception"/>
  84634. </method>
  84635. <doc>
  84636. <![CDATA[The main driver of the Rumen Parser.]]>
  84637. </doc>
  84638. </class>
  84639. <!-- end class org.apache.hadoop.tools.rumen.TraceBuilder -->
  84640. <!-- start class org.apache.hadoop.tools.rumen.TreePath -->
  84641. <class name="TreePath" extends="java.lang.Object"
  84642. abstract="false"
  84643. static="false" final="false" visibility="public"
  84644. deprecated="not deprecated">
  84645. <constructor name="TreePath" type="org.apache.hadoop.tools.rumen.TreePath, java.lang.String"
  84646. static="false" final="false" visibility="public"
  84647. deprecated="not deprecated">
  84648. </constructor>
  84649. <constructor name="TreePath" type="org.apache.hadoop.tools.rumen.TreePath, java.lang.String, int"
  84650. static="false" final="false" visibility="public"
  84651. deprecated="not deprecated">
  84652. </constructor>
  84653. <method name="toString" return="java.lang.String"
  84654. abstract="false" native="false" synchronized="false"
  84655. static="false" final="false" visibility="public"
  84656. deprecated="not deprecated">
  84657. </method>
  84658. <doc>
  84659. <![CDATA[This describes a path from a node to the root. We use it when we compare two
  84660. trees during rumen unit tests. If the trees are not identical, this chain
  84661. will be converted to a string which describes the path from the root to the
  84662. fields that did not compare.]]>
  84663. </doc>
  84664. </class>
  84665. <!-- end class org.apache.hadoop.tools.rumen.TreePath -->
  84666. <!-- start class org.apache.hadoop.tools.rumen.ZombieCluster -->
  84667. <class name="ZombieCluster" extends="org.apache.hadoop.tools.rumen.AbstractClusterStory"
  84668. abstract="false"
  84669. static="false" final="false" visibility="public"
  84670. deprecated="not deprecated">
  84671. <constructor name="ZombieCluster" type="org.apache.hadoop.tools.rumen.LoggedNetworkTopology, org.apache.hadoop.tools.rumen.MachineNode"
  84672. static="false" final="false" visibility="public"
  84673. deprecated="not deprecated">
  84674. <doc>
  84675. <![CDATA[Construct a homogeneous cluster. We assume that the leaves on the topology
  84676. are {@link MachineNode}s, and the parents of {@link MachineNode}s are
  84677. {@link RackNode}s. We also expect all leaf nodes are on the same level.
  84678. @param topology
  84679. The network topology.
  84680. @param defaultNode
  84681. The default node setting.]]>
  84682. </doc>
  84683. </constructor>
  84684. <constructor name="ZombieCluster" type="org.apache.hadoop.fs.Path, org.apache.hadoop.tools.rumen.MachineNode, org.apache.hadoop.conf.Configuration"
  84685. static="false" final="false" visibility="public"
  84686. deprecated="not deprecated">
  84687. <exception name="IOException" type="java.io.IOException"/>
  84688. <doc>
  84689. <![CDATA[Construct a homogeneous cluster. We assume that the leaves on the topology
  84690. are {@link MachineNode}s, and the parents of {@link MachineNode}s are
  84691. {@link RackNode}s. We also expect all leaf nodes are on the same level.
  84692. @param path Path to the JSON-encoded topology file.
  84693. @param conf
  84694. @param defaultNode
  84695. The default node setting.
  84696. @throws IOException]]>
  84697. </doc>
  84698. </constructor>
  84699. <constructor name="ZombieCluster" type="java.io.InputStream, org.apache.hadoop.tools.rumen.MachineNode"
  84700. static="false" final="false" visibility="public"
  84701. deprecated="not deprecated">
  84702. <exception name="IOException" type="java.io.IOException"/>
  84703. <doc>
  84704. <![CDATA[Construct a homogeneous cluster. We assume that the leaves on the topology
  84705. are {@link MachineNode}s, and the parents of {@link MachineNode}s are
  84706. {@link RackNode}s. We also expect all leaf nodes are on the same level.
  84707. @param input The input stream for the JSON-encoded topology file.
  84708. @param defaultNode
  84709. The default node setting.
  84710. @throws IOException]]>
  84711. </doc>
  84712. </constructor>
  84713. <method name="getClusterTopology" return="org.apache.hadoop.tools.rumen.Node"
  84714. abstract="false" native="false" synchronized="false"
  84715. static="false" final="false" visibility="public"
  84716. deprecated="not deprecated">
  84717. </method>
  84718. <doc>
  84719. <![CDATA[{@link ZombieCluster} rebuilds the cluster topology using the information
  84720. obtained from job history logs.]]>
  84721. </doc>
  84722. </class>
  84723. <!-- end class org.apache.hadoop.tools.rumen.ZombieCluster -->
  84724. <!-- start class org.apache.hadoop.tools.rumen.ZombieJob -->
  84725. <class name="ZombieJob" extends="java.lang.Object"
  84726. abstract="false"
  84727. static="false" final="false" visibility="public"
  84728. deprecated="not deprecated">
  84729. <implements name="org.apache.hadoop.tools.rumen.JobStory"/>
  84730. <constructor name="ZombieJob" type="org.apache.hadoop.tools.rumen.LoggedJob, org.apache.hadoop.tools.rumen.ClusterStory, long"
  84731. static="false" final="false" visibility="public"
  84732. deprecated="not deprecated">
  84733. <doc>
  84734. <![CDATA[This constructor creates a {@link ZombieJob} with the same semantics as the
  84735. {@link LoggedJob} passed in this parameter
  84736. @param job
  84737. The dead job this ZombieJob instance is based on.
  84738. @param cluster
  84739. The cluster topology where the dead job ran on. This argument can
  84740. be null if we do not have knowledge of the cluster topology.
  84741. @param seed
  84742. Seed for the random number generator for filling in information
  84743. not available from the ZombieJob.]]>
  84744. </doc>
  84745. </constructor>
  84746. <constructor name="ZombieJob" type="org.apache.hadoop.tools.rumen.LoggedJob, org.apache.hadoop.tools.rumen.ClusterStory"
  84747. static="false" final="false" visibility="public"
  84748. deprecated="not deprecated">
  84749. <doc>
  84750. <![CDATA[This constructor creates a {@link ZombieJob} with the same semantics as the
  84751. {@link LoggedJob} passed in this parameter
  84752. @param job
  84753. The dead job this ZombieJob instance is based on.
  84754. @param cluster
  84755. The cluster topology where the dead job ran on. This argument can
  84756. be null if we do not have knowledge of the cluster topology.]]>
  84757. </doc>
  84758. </constructor>
  84759. <method name="getJobConf" return="org.apache.hadoop.mapred.JobConf"
  84760. abstract="false" native="false" synchronized="true"
  84761. static="false" final="false" visibility="public"
  84762. deprecated="not deprecated">
  84763. </method>
  84764. <method name="getInputSplits" return="org.apache.hadoop.mapreduce.InputSplit[]"
  84765. abstract="false" native="false" synchronized="false"
  84766. static="false" final="false" visibility="public"
  84767. deprecated="not deprecated">
  84768. </method>
  84769. <method name="getName" return="java.lang.String"
  84770. abstract="false" native="false" synchronized="false"
  84771. static="false" final="false" visibility="public"
  84772. deprecated="not deprecated">
  84773. </method>
  84774. <method name="getJobID" return="org.apache.hadoop.mapreduce.JobID"
  84775. abstract="false" native="false" synchronized="false"
  84776. static="false" final="false" visibility="public"
  84777. deprecated="not deprecated">
  84778. </method>
  84779. <method name="getNumberMaps" return="int"
  84780. abstract="false" native="false" synchronized="false"
  84781. static="false" final="false" visibility="public"
  84782. deprecated="not deprecated">
  84783. </method>
  84784. <method name="getNumberReduces" return="int"
  84785. abstract="false" native="false" synchronized="false"
  84786. static="false" final="false" visibility="public"
  84787. deprecated="not deprecated">
  84788. </method>
  84789. <method name="getOutcome" return="org.apache.hadoop.tools.rumen.Pre21JobHistoryConstants.Values"
  84790. abstract="false" native="false" synchronized="false"
  84791. static="false" final="false" visibility="public"
  84792. deprecated="not deprecated">
  84793. </method>
  84794. <method name="getSubmissionTime" return="long"
  84795. abstract="false" native="false" synchronized="false"
  84796. static="false" final="false" visibility="public"
  84797. deprecated="not deprecated">
  84798. </method>
  84799. <method name="getQueueName" return="java.lang.String"
  84800. abstract="false" native="false" synchronized="false"
  84801. static="false" final="false" visibility="public"
  84802. deprecated="not deprecated">
  84803. </method>
  84804. <method name="getNumLoggedMaps" return="int"
  84805. abstract="false" native="false" synchronized="false"
  84806. static="false" final="false" visibility="public"
  84807. deprecated="not deprecated">
  84808. <doc>
  84809. <![CDATA[Getting the number of map tasks that are actually logged in the trace.
  84810. @return The number of map tasks that are actually logged in the trace.]]>
  84811. </doc>
  84812. </method>
  84813. <method name="getNumLoggedReduces" return="int"
  84814. abstract="false" native="false" synchronized="false"
  84815. static="false" final="false" visibility="public"
  84816. deprecated="not deprecated">
  84817. <doc>
  84818. <![CDATA[Getting the number of reduce tasks that are actually logged in the trace.
  84819. @return The number of map tasks that are actually logged in the trace.]]>
  84820. </doc>
  84821. </method>
  84822. <method name="getUser" return="java.lang.String"
  84823. abstract="false" native="false" synchronized="false"
  84824. static="false" final="false" visibility="public"
  84825. deprecated="not deprecated">
  84826. </method>
  84827. <method name="getLoggedJob" return="org.apache.hadoop.tools.rumen.LoggedJob"
  84828. abstract="false" native="false" synchronized="false"
  84829. static="false" final="false" visibility="public"
  84830. deprecated="not deprecated">
  84831. <doc>
  84832. <![CDATA[Get the underlining {@link LoggedJob} object read directly from the trace.
  84833. This is mainly for debugging.
  84834. @return the underlining {@link LoggedJob} object]]>
  84835. </doc>
  84836. </method>
  84837. <method name="getTaskAttemptInfo" return="org.apache.hadoop.tools.rumen.TaskAttemptInfo"
  84838. abstract="false" native="false" synchronized="false"
  84839. static="false" final="false" visibility="public"
  84840. deprecated="not deprecated">
  84841. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  84842. <param name="taskNumber" type="int"/>
  84843. <param name="taskAttemptNumber" type="int"/>
  84844. <doc>
  84845. <![CDATA[Get a {@link TaskAttemptInfo} with a {@link TaskAttemptID} associated with
  84846. taskType, taskNumber, and taskAttemptNumber. This function does not care
  84847. about locality, and follows the following decision logic: 1. Make up a
  84848. {@link TaskAttemptInfo} if the task attempt is missing in trace, 2. Make up
  84849. a {@link TaskAttemptInfo} if the task attempt has a KILLED final status in
  84850. trace, 3. Otherwise (final state is SUCCEEDED or FAILED), construct the
  84851. {@link TaskAttemptInfo} from the trace.]]>
  84852. </doc>
  84853. </method>
  84854. <method name="getTaskInfo" return="org.apache.hadoop.tools.rumen.TaskInfo"
  84855. abstract="false" native="false" synchronized="false"
  84856. static="false" final="false" visibility="public"
  84857. deprecated="not deprecated">
  84858. <param name="taskType" type="org.apache.hadoop.mapreduce.TaskType"/>
  84859. <param name="taskNumber" type="int"/>
  84860. </method>
  84861. <method name="getMapTaskAttemptInfoAdjusted" return="org.apache.hadoop.tools.rumen.TaskAttemptInfo"
  84862. abstract="false" native="false" synchronized="false"
  84863. static="false" final="false" visibility="public"
  84864. deprecated="not deprecated">
  84865. <param name="taskNumber" type="int"/>
  84866. <param name="taskAttemptNumber" type="int"/>
  84867. <param name="locality" type="int"/>
  84868. <doc>
  84869. <![CDATA[Get a {@link TaskAttemptInfo} with a {@link TaskAttemptID} associated with
  84870. taskType, taskNumber, and taskAttemptNumber. This function considers
  84871. locality, and follows the following decision logic: 1. Make up a
  84872. {@link TaskAttemptInfo} if the task attempt is missing in trace, 2. Make up
  84873. a {@link TaskAttemptInfo} if the task attempt has a KILLED final status in
  84874. trace, 3. If final state is FAILED, construct a {@link TaskAttemptInfo}
  84875. from the trace, without considering locality. 4. If final state is
  84876. SUCCEEDED, construct a {@link TaskAttemptInfo} from the trace, with runtime
  84877. scaled according to locality in simulation and locality in trace.]]>
  84878. </doc>
  84879. </method>
  84880. <doc>
  84881. <![CDATA[{@link ZombieJob} is a layer above {@link LoggedJob} raw JSON objects.
  84882. Each {@link ZombieJob} object represents a job in job history. For everything
  84883. that exists in job history, contents are returned unchanged faithfully. To
  84884. get input splits of a non-exist task, a non-exist task attempt, or an
  84885. ill-formed task attempt, proper objects are made up from statistical
  84886. sketches.]]>
  84887. </doc>
  84888. </class>
  84889. <!-- end class org.apache.hadoop.tools.rumen.ZombieJob -->
  84890. <!-- start class org.apache.hadoop.tools.rumen.ZombieJobProducer -->
  84891. <class name="ZombieJobProducer" extends="java.lang.Object"
  84892. abstract="false"
  84893. static="false" final="false" visibility="public"
  84894. deprecated="not deprecated">
  84895. <implements name="org.apache.hadoop.tools.rumen.JobStoryProducer"/>
  84896. <constructor name="ZombieJobProducer" type="org.apache.hadoop.fs.Path, org.apache.hadoop.tools.rumen.ZombieCluster, org.apache.hadoop.conf.Configuration"
  84897. static="false" final="false" visibility="public"
  84898. deprecated="not deprecated">
  84899. <exception name="IOException" type="java.io.IOException"/>
  84900. <doc>
  84901. <![CDATA[Constructor
  84902. @param path
  84903. Path to the JSON trace file, possibly compressed.
  84904. @param cluster
  84905. The topology of the cluster that corresponds to the jobs in the
  84906. trace. The argument can be null if we do not have knowledge of the
  84907. cluster topology.
  84908. @param conf
  84909. @throws IOException]]>
  84910. </doc>
  84911. </constructor>
  84912. <constructor name="ZombieJobProducer" type="org.apache.hadoop.fs.Path, org.apache.hadoop.tools.rumen.ZombieCluster, org.apache.hadoop.conf.Configuration, long"
  84913. static="false" final="false" visibility="public"
  84914. deprecated="not deprecated">
  84915. <exception name="IOException" type="java.io.IOException"/>
  84916. <doc>
  84917. <![CDATA[Constructor
  84918. @param path
  84919. Path to the JSON trace file, possibly compressed.
  84920. @param cluster
  84921. The topology of the cluster that corresponds to the jobs in the
  84922. trace. The argument can be null if we do not have knowledge of the
  84923. cluster topology.
  84924. @param conf
  84925. @param randomSeed
  84926. use a deterministic seed.
  84927. @throws IOException]]>
  84928. </doc>
  84929. </constructor>
  84930. <constructor name="ZombieJobProducer" type="java.io.InputStream, org.apache.hadoop.tools.rumen.ZombieCluster"
  84931. static="false" final="false" visibility="public"
  84932. deprecated="not deprecated">
  84933. <exception name="IOException" type="java.io.IOException"/>
  84934. <doc>
  84935. <![CDATA[Constructor
  84936. @param input
  84937. The input stream for the JSON trace.
  84938. @param cluster
  84939. The topology of the cluster that corresponds to the jobs in the
  84940. trace. The argument can be null if we do not have knowledge of the
  84941. cluster topology.
  84942. @throws IOException]]>
  84943. </doc>
  84944. </constructor>
  84945. <constructor name="ZombieJobProducer" type="java.io.InputStream, org.apache.hadoop.tools.rumen.ZombieCluster, long"
  84946. static="false" final="false" visibility="public"
  84947. deprecated="not deprecated">
  84948. <exception name="IOException" type="java.io.IOException"/>
  84949. <doc>
  84950. <![CDATA[Constructor
  84951. @param input
  84952. The input stream for the JSON trace.
  84953. @param cluster
  84954. The topology of the cluster that corresponds to the jobs in the
  84955. trace. The argument can be null if we do not have knowledge of the
  84956. cluster topology.
  84957. @param randomSeed
  84958. use a deterministic seed.
  84959. @throws IOException]]>
  84960. </doc>
  84961. </constructor>
  84962. <method name="getNextJob" return="org.apache.hadoop.tools.rumen.ZombieJob"
  84963. abstract="false" native="false" synchronized="false"
  84964. static="false" final="false" visibility="public"
  84965. deprecated="not deprecated">
  84966. <exception name="IOException" type="java.io.IOException"/>
  84967. </method>
  84968. <method name="close"
  84969. abstract="false" native="false" synchronized="false"
  84970. static="false" final="false" visibility="public"
  84971. deprecated="not deprecated">
  84972. <exception name="IOException" type="java.io.IOException"/>
  84973. </method>
  84974. <doc>
  84975. <![CDATA[Producing {@link JobStory}s from job trace.]]>
  84976. </doc>
  84977. </class>
  84978. <!-- end class org.apache.hadoop.tools.rumen.ZombieJobProducer -->
  84979. </package>
  84980. </api>